1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for tk 8.6. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME='tk' 579PACKAGE_TARNAME='tk' 580PACKAGE_VERSION='8.6' 581PACKAGE_STRING='tk 8.6' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585# Factoring default headers for most tests. 586ac_includes_default="\ 587#include <stdio.h> 588#ifdef HAVE_SYS_TYPES_H 589# include <sys/types.h> 590#endif 591#ifdef HAVE_SYS_STAT_H 592# include <sys/stat.h> 593#endif 594#ifdef STDC_HEADERS 595# include <stdlib.h> 596# include <stddef.h> 597#else 598# ifdef HAVE_STDLIB_H 599# include <stdlib.h> 600# endif 601#endif 602#ifdef HAVE_STRING_H 603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 604# include <memory.h> 605# endif 606# include <string.h> 607#endif 608#ifdef HAVE_STRINGS_H 609# include <strings.h> 610#endif 611#ifdef HAVE_INTTYPES_H 612# include <inttypes.h> 613#endif 614#ifdef HAVE_STDINT_H 615# include <stdint.h> 616#endif 617#ifdef HAVE_UNISTD_H 618# include <unistd.h> 619#endif" 620 621ac_subst_vars='LTLIBOBJS 622REZ_FLAGS 623REZ 624APP_RSRC_FILE 625LIB_RSRC_FILE 626WISH_RSRC_FILE 627TK_RSRC_FILE 628CFBUNDLELOCALIZATIONS 629EXTRA_WISH_LIBS 630EXTRA_BUILD_HTML 631EXTRA_INSTALL_BINARIES 632EXTRA_INSTALL 633EXTRA_APP_CC_SWITCHES 634EXTRA_CC_SWITCHES 635HTML_DIR 636PRIVATE_INCLUDE_DIR 637LIB_RUNTIME_DIR 638TK_LIBRARY 639TK_PKG_DIR 640TK_WINDOWINGSYSTEM 641LOCALES 642XLIBSW 643XINCLUDES 644TCL_STUB_FLAGS 645TK_BUILD_LIB_SPEC 646LD_LIBRARY_PATH_VAR 647TK_SHARED_BUILD 648TK_SRC_DIR 649TK_BUILD_STUB_LIB_PATH 650TK_BUILD_STUB_LIB_SPEC 651TK_INCLUDE_SPEC 652TK_STUB_LIB_PATH 653TK_STUB_LIB_SPEC 654TK_STUB_LIB_FLAG 655TK_STUB_LIB_FILE 656TK_LIB_SPEC 657TK_LIB_FLAG 658TK_LIB_FILE 659TK_YEAR 660TK_PATCH_LEVEL 661TK_MINOR_VERSION 662TK_MAJOR_VERSION 663TK_VERSION 664UNIX_FONT_OBJS 665XFT_LIBS 666XFT_CFLAGS 667XMKMF 668LDFLAGS_DEFAULT 669CFLAGS_DEFAULT 670INSTALL_STUB_LIB 671DLL_INSTALL_DIR 672INSTALL_LIB 673MAKE_STUB_LIB 674MAKE_LIB 675SHLIB_SUFFIX 676SHLIB_CFLAGS 677SHLIB_LD_LIBS 678TK_SHLIB_LD_EXTRAS 679TCL_SHLIB_LD_EXTRAS 680SHLIB_LD 681STLIB_LD 682LD_SEARCH_FLAGS 683CC_SEARCH_FLAGS 684LDFLAGS_OPTIMIZE 685LDFLAGS_DEBUG 686CFLAGS_NOLTO 687CFLAGS_WARNING 688CFLAGS_OPTIMIZE 689CFLAGS_DEBUG 690LDAIX_SRC 691PLAT_SRCS 692PLAT_OBJS 693DL_OBJS 694DL_LIBS 695TCL_LIBS 696LIBOBJS 697AR 698RANLIB 699SHARED_BUILD 700TCL_THREADS 701EGREP 702GREP 703CPP 704OBJEXT 705EXEEXT 706ac_ct_CC 707CPPFLAGS 708LDFLAGS 709CFLAGS 710CC 711MAN_FLAGS 712BUILD_TCLSH 713TCLSH_PROG 714TCL_STUB_LIB_SPEC 715TCL_STUB_LIB_FLAG 716TCL_STUB_LIB_FILE 717TCL_LIB_SPEC 718TCL_LIB_FLAG 719TCL_LIB_FILE 720TCL_SRC_DIR 721TCL_BIN_DIR 722TCL_PATCH_LEVEL 723TCL_VERSION 724target_alias 725host_alias 726build_alias 727LIBS 728ECHO_T 729ECHO_N 730ECHO_C 731DEFS 732mandir 733localedir 734libdir 735psdir 736pdfdir 737dvidir 738htmldir 739infodir 740docdir 741oldincludedir 742includedir 743localstatedir 744sharedstatedir 745sysconfdir 746datadir 747datarootdir 748libexecdir 749sbindir 750bindir 751program_transform_name 752prefix 753exec_prefix 754PACKAGE_URL 755PACKAGE_BUGREPORT 756PACKAGE_STRING 757PACKAGE_VERSION 758PACKAGE_TARNAME 759PACKAGE_NAME 760PATH_SEPARATOR 761SHELL' 762ac_subst_files='' 763ac_user_opts=' 764enable_option_checking 765with_tcl 766enable_man_symlinks 767enable_man_compression 768enable_man_suffix 769enable_threads 770enable_shared 771enable_64bit 772enable_64bit_vis 773enable_rpath 774enable_corefoundation 775enable_load 776enable_symbols 777enable_aqua 778with_x 779enable_xft 780enable_xss 781enable_framework 782' 783 ac_precious_vars='build_alias 784host_alias 785target_alias 786CC 787CFLAGS 788LDFLAGS 789LIBS 790CPPFLAGS 791CPP 792XMKMF' 793 794 795# Initialize some variables set by options. 796ac_init_help= 797ac_init_version=false 798ac_unrecognized_opts= 799ac_unrecognized_sep= 800# The variables have the same names as the options, with 801# dashes changed to underlines. 802cache_file=/dev/null 803exec_prefix=NONE 804no_create= 805no_recursion= 806prefix=NONE 807program_prefix=NONE 808program_suffix=NONE 809program_transform_name=s,x,x, 810silent= 811site= 812srcdir= 813verbose= 814x_includes=NONE 815x_libraries=NONE 816 817# Installation directory options. 818# These are left unexpanded so users can "make install exec_prefix=/foo" 819# and all the variables that are supposed to be based on exec_prefix 820# by default will actually change. 821# Use braces instead of parens because sh, perl, etc. also accept them. 822# (The list follows the same order as the GNU Coding Standards.) 823bindir='${exec_prefix}/bin' 824sbindir='${exec_prefix}/sbin' 825libexecdir='${exec_prefix}/libexec' 826datarootdir='${prefix}/share' 827datadir='${datarootdir}' 828sysconfdir='${prefix}/etc' 829sharedstatedir='${prefix}/com' 830localstatedir='${prefix}/var' 831includedir='${prefix}/include' 832oldincludedir='/usr/include' 833docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 834infodir='${datarootdir}/info' 835htmldir='${docdir}' 836dvidir='${docdir}' 837pdfdir='${docdir}' 838psdir='${docdir}' 839libdir='${exec_prefix}/lib' 840localedir='${datarootdir}/locale' 841mandir='${datarootdir}/man' 842 843ac_prev= 844ac_dashdash= 845for ac_option 846do 847 # If the previous option needs an argument, assign it. 848 if test -n "$ac_prev"; then 849 eval $ac_prev=\$ac_option 850 ac_prev= 851 continue 852 fi 853 854 case $ac_option in 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 856 *=) ac_optarg= ;; 857 *) ac_optarg=yes ;; 858 esac 859 860 # Accept the important Cygnus configure options, so we can diagnose typos. 861 862 case $ac_dashdash$ac_option in 863 --) 864 ac_dashdash=yes ;; 865 866 -bindir | --bindir | --bindi | --bind | --bin | --bi) 867 ac_prev=bindir ;; 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 869 bindir=$ac_optarg ;; 870 871 -build | --build | --buil | --bui | --bu) 872 ac_prev=build_alias ;; 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 874 build_alias=$ac_optarg ;; 875 876 -cache-file | --cache-file | --cache-fil | --cache-fi \ 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 878 ac_prev=cache_file ;; 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 881 cache_file=$ac_optarg ;; 882 883 --config-cache | -C) 884 cache_file=config.cache ;; 885 886 -datadir | --datadir | --datadi | --datad) 887 ac_prev=datadir ;; 888 -datadir=* | --datadir=* | --datadi=* | --datad=*) 889 datadir=$ac_optarg ;; 890 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 892 | --dataroo | --dataro | --datar) 893 ac_prev=datarootdir ;; 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 896 datarootdir=$ac_optarg ;; 897 898 -disable-* | --disable-*) 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 900 # Reject names that are not valid shell variable names. 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 902 as_fn_error $? "invalid feature name: $ac_useropt" 903 ac_useropt_orig=$ac_useropt 904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 905 case $ac_user_opts in 906 *" 907"enable_$ac_useropt" 908"*) ;; 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 910 ac_unrecognized_sep=', ';; 911 esac 912 eval enable_$ac_useropt=no ;; 913 914 -docdir | --docdir | --docdi | --doc | --do) 915 ac_prev=docdir ;; 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 917 docdir=$ac_optarg ;; 918 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 920 ac_prev=dvidir ;; 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 922 dvidir=$ac_optarg ;; 923 924 -enable-* | --enable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: $ac_useropt" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=\$ac_optarg ;; 939 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 942 | --exec | --exe | --ex) 943 ac_prev=exec_prefix ;; 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 946 | --exec=* | --exe=* | --ex=*) 947 exec_prefix=$ac_optarg ;; 948 949 -gas | --gas | --ga | --g) 950 # Obsolete; use --with-gas. 951 with_gas=yes ;; 952 953 -help | --help | --hel | --he | -h) 954 ac_init_help=long ;; 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 956 ac_init_help=recursive ;; 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 958 ac_init_help=short ;; 959 960 -host | --host | --hos | --ho) 961 ac_prev=host_alias ;; 962 -host=* | --host=* | --hos=* | --ho=*) 963 host_alias=$ac_optarg ;; 964 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 966 ac_prev=htmldir ;; 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 968 | --ht=*) 969 htmldir=$ac_optarg ;; 970 971 -includedir | --includedir | --includedi | --included | --include \ 972 | --includ | --inclu | --incl | --inc) 973 ac_prev=includedir ;; 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 975 | --includ=* | --inclu=* | --incl=* | --inc=*) 976 includedir=$ac_optarg ;; 977 978 -infodir | --infodir | --infodi | --infod | --info | --inf) 979 ac_prev=infodir ;; 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 981 infodir=$ac_optarg ;; 982 983 -libdir | --libdir | --libdi | --libd) 984 ac_prev=libdir ;; 985 -libdir=* | --libdir=* | --libdi=* | --libd=*) 986 libdir=$ac_optarg ;; 987 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 989 | --libexe | --libex | --libe) 990 ac_prev=libexecdir ;; 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 992 | --libexe=* | --libex=* | --libe=*) 993 libexecdir=$ac_optarg ;; 994 995 -localedir | --localedir | --localedi | --localed | --locale) 996 ac_prev=localedir ;; 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 998 localedir=$ac_optarg ;; 999 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1001 | --localstate | --localstat | --localsta | --localst | --locals) 1002 ac_prev=localstatedir ;; 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1005 localstatedir=$ac_optarg ;; 1006 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1008 ac_prev=mandir ;; 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1010 mandir=$ac_optarg ;; 1011 1012 -nfp | --nfp | --nf) 1013 # Obsolete; use --without-fp. 1014 with_fp=no ;; 1015 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1017 | --no-cr | --no-c | -n) 1018 no_create=yes ;; 1019 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1022 no_recursion=yes ;; 1023 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1026 | --oldin | --oldi | --old | --ol | --o) 1027 ac_prev=oldincludedir ;; 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1031 oldincludedir=$ac_optarg ;; 1032 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1034 ac_prev=prefix ;; 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1036 prefix=$ac_optarg ;; 1037 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1039 | --program-pre | --program-pr | --program-p) 1040 ac_prev=program_prefix ;; 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1043 program_prefix=$ac_optarg ;; 1044 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1046 | --program-suf | --program-su | --program-s) 1047 ac_prev=program_suffix ;; 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1050 program_suffix=$ac_optarg ;; 1051 1052 -program-transform-name | --program-transform-name \ 1053 | --program-transform-nam | --program-transform-na \ 1054 | --program-transform-n | --program-transform- \ 1055 | --program-transform | --program-transfor \ 1056 | --program-transfo | --program-transf \ 1057 | --program-trans | --program-tran \ 1058 | --progr-tra | --program-tr | --program-t) 1059 ac_prev=program_transform_name ;; 1060 -program-transform-name=* | --program-transform-name=* \ 1061 | --program-transform-nam=* | --program-transform-na=* \ 1062 | --program-transform-n=* | --program-transform-=* \ 1063 | --program-transform=* | --program-transfor=* \ 1064 | --program-transfo=* | --program-transf=* \ 1065 | --program-trans=* | --program-tran=* \ 1066 | --progr-tra=* | --program-tr=* | --program-t=*) 1067 program_transform_name=$ac_optarg ;; 1068 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1070 ac_prev=pdfdir ;; 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1072 pdfdir=$ac_optarg ;; 1073 1074 -psdir | --psdir | --psdi | --psd | --ps) 1075 ac_prev=psdir ;; 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1077 psdir=$ac_optarg ;; 1078 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1080 | -silent | --silent | --silen | --sile | --sil) 1081 silent=yes ;; 1082 1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1084 ac_prev=sbindir ;; 1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1086 | --sbi=* | --sb=*) 1087 sbindir=$ac_optarg ;; 1088 1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1091 | --sharedst | --shareds | --shared | --share | --shar \ 1092 | --sha | --sh) 1093 ac_prev=sharedstatedir ;; 1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1097 | --sha=* | --sh=*) 1098 sharedstatedir=$ac_optarg ;; 1099 1100 -site | --site | --sit) 1101 ac_prev=site ;; 1102 -site=* | --site=* | --sit=*) 1103 site=$ac_optarg ;; 1104 1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1106 ac_prev=srcdir ;; 1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1108 srcdir=$ac_optarg ;; 1109 1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1111 | --syscon | --sysco | --sysc | --sys | --sy) 1112 ac_prev=sysconfdir ;; 1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1115 sysconfdir=$ac_optarg ;; 1116 1117 -target | --target | --targe | --targ | --tar | --ta | --t) 1118 ac_prev=target_alias ;; 1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1120 target_alias=$ac_optarg ;; 1121 1122 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1123 verbose=yes ;; 1124 1125 -version | --version | --versio | --versi | --vers | -V) 1126 ac_init_version=: ;; 1127 1128 -with-* | --with-*) 1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1132 as_fn_error $? "invalid package name: $ac_useropt" 1133 ac_useropt_orig=$ac_useropt 1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1135 case $ac_user_opts in 1136 *" 1137"with_$ac_useropt" 1138"*) ;; 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1140 ac_unrecognized_sep=', ';; 1141 esac 1142 eval with_$ac_useropt=\$ac_optarg ;; 1143 1144 -without-* | --without-*) 1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1146 # Reject names that are not valid shell variable names. 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1148 as_fn_error $? "invalid package name: $ac_useropt" 1149 ac_useropt_orig=$ac_useropt 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1151 case $ac_user_opts in 1152 *" 1153"with_$ac_useropt" 1154"*) ;; 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1156 ac_unrecognized_sep=', ';; 1157 esac 1158 eval with_$ac_useropt=no ;; 1159 1160 --x) 1161 # Obsolete; use --with-x. 1162 with_x=yes ;; 1163 1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1165 | --x-incl | --x-inc | --x-in | --x-i) 1166 ac_prev=x_includes ;; 1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1169 x_includes=$ac_optarg ;; 1170 1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1173 ac_prev=x_libraries ;; 1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1176 x_libraries=$ac_optarg ;; 1177 1178 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1179Try \`$0 --help' for more information" 1180 ;; 1181 1182 *=*) 1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1184 # Reject names that are not valid shell variable names. 1185 case $ac_envvar in #( 1186 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1188 esac 1189 eval $ac_envvar=\$ac_optarg 1190 export $ac_envvar ;; 1191 1192 *) 1193 # FIXME: should be removed in autoconf 3.0. 1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1198 ;; 1199 1200 esac 1201done 1202 1203if test -n "$ac_prev"; then 1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1205 as_fn_error $? "missing argument to $ac_option" 1206fi 1207 1208if test -n "$ac_unrecognized_opts"; then 1209 case $enable_option_checking in 1210 no) ;; 1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1213 esac 1214fi 1215 1216# Check all directory arguments for consistency. 1217for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1218 datadir sysconfdir sharedstatedir localstatedir includedir \ 1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1220 libdir localedir mandir 1221do 1222 eval ac_val=\$$ac_var 1223 # Remove trailing slashes. 1224 case $ac_val in 1225 */ ) 1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1227 eval $ac_var=\$ac_val;; 1228 esac 1229 # Be sure to have absolute directory names. 1230 case $ac_val in 1231 [\\/$]* | ?:[\\/]* ) continue;; 1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1233 esac 1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1235done 1236 1237# There might be people who depend on the old broken behavior: `$host' 1238# used to hold the argument of --host etc. 1239# FIXME: To remove some day. 1240build=$build_alias 1241host=$host_alias 1242target=$target_alias 1243 1244# FIXME: To remove some day. 1245if test "x$host_alias" != x; then 1246 if test "x$build_alias" = x; then 1247 cross_compiling=maybe 1248 elif test "x$build_alias" != "x$host_alias"; then 1249 cross_compiling=yes 1250 fi 1251fi 1252 1253ac_tool_prefix= 1254test -n "$host_alias" && ac_tool_prefix=$host_alias- 1255 1256test "$silent" = yes && exec 6>/dev/null 1257 1258 1259ac_pwd=`pwd` && test -n "$ac_pwd" && 1260ac_ls_di=`ls -di .` && 1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1262 as_fn_error $? "working directory cannot be determined" 1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1264 as_fn_error $? "pwd does not report name of working directory" 1265 1266 1267# Find the source files, if location was not specified. 1268if test -z "$srcdir"; then 1269 ac_srcdir_defaulted=yes 1270 # Try the directory containing this script, then the parent directory. 1271 ac_confdir=`$as_dirname -- "$as_myself" || 1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1273 X"$as_myself" : 'X\(//\)[^/]' \| \ 1274 X"$as_myself" : 'X\(//\)$' \| \ 1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1276$as_echo X"$as_myself" | 1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)[^/].*/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\/\)$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\).*/{ 1290 s//\1/ 1291 q 1292 } 1293 s/.*/./; q'` 1294 srcdir=$ac_confdir 1295 if test ! -r "$srcdir/$ac_unique_file"; then 1296 srcdir=.. 1297 fi 1298else 1299 ac_srcdir_defaulted=no 1300fi 1301if test ! -r "$srcdir/$ac_unique_file"; then 1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1304fi 1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1306ac_abs_confdir=`( 1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1308 pwd)` 1309# When building in place, set srcdir=. 1310if test "$ac_abs_confdir" = "$ac_pwd"; then 1311 srcdir=. 1312fi 1313# Remove unnecessary trailing slashes from srcdir. 1314# Double slashes in file names in object file debugging info 1315# mess up M-x gdb in Emacs. 1316case $srcdir in 1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1318esac 1319for ac_var in $ac_precious_vars; do 1320 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_env_${ac_var}_value=\$${ac_var} 1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1324done 1325 1326# 1327# Report the --help message. 1328# 1329if test "$ac_init_help" = "long"; then 1330 # Omit some internal or obsolete options to make the list less imposing. 1331 # This message is too long to be a string in the A/UX 3.1 sh. 1332 cat <<_ACEOF 1333\`configure' configures tk 8.6 to adapt to many kinds of systems. 1334 1335Usage: $0 [OPTION]... [VAR=VALUE]... 1336 1337To assign environment variables (e.g., CC, CFLAGS...), specify them as 1338VAR=VALUE. See below for descriptions of some of the useful variables. 1339 1340Defaults for the options are specified in brackets. 1341 1342Configuration: 1343 -h, --help display this help and exit 1344 --help=short display options specific to this package 1345 --help=recursive display the short help of all the included packages 1346 -V, --version display version information and exit 1347 -q, --quiet, --silent do not print \`checking ...' messages 1348 --cache-file=FILE cache test results in FILE [disabled] 1349 -C, --config-cache alias for \`--cache-file=config.cache' 1350 -n, --no-create do not create output files 1351 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1352 1353Installation directories: 1354 --prefix=PREFIX install architecture-independent files in PREFIX 1355 [$ac_default_prefix] 1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1357 [PREFIX] 1358 1359By default, \`make install' will install all the files in 1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1361an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1362for instance \`--prefix=\$HOME'. 1363 1364For better control, use the options below. 1365 1366Fine tuning of the installation directories: 1367 --bindir=DIR user executables [EPREFIX/bin] 1368 --sbindir=DIR system admin executables [EPREFIX/sbin] 1369 --libexecdir=DIR program executables [EPREFIX/libexec] 1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1373 --libdir=DIR object code libraries [EPREFIX/lib] 1374 --includedir=DIR C header files [PREFIX/include] 1375 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1378 --infodir=DIR info documentation [DATAROOTDIR/info] 1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1380 --mandir=DIR man documentation [DATAROOTDIR/man] 1381 --docdir=DIR documentation root [DATAROOTDIR/doc/tk] 1382 --htmldir=DIR html documentation [DOCDIR] 1383 --dvidir=DIR dvi documentation [DOCDIR] 1384 --pdfdir=DIR pdf documentation [DOCDIR] 1385 --psdir=DIR ps documentation [DOCDIR] 1386_ACEOF 1387 1388 cat <<\_ACEOF 1389 1390X features: 1391 --x-includes=DIR X include files are in DIR 1392 --x-libraries=DIR X library files are in DIR 1393_ACEOF 1394fi 1395 1396if test -n "$ac_init_help"; then 1397 case $ac_init_help in 1398 short | recursive ) echo "Configuration of tk 8.6:";; 1399 esac 1400 cat <<\_ACEOF 1401 1402Optional Features: 1403 --disable-option-checking ignore unrecognized --enable/--with options 1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1406 --enable-man-symlinks use symlinks for the manpages (default: off) 1407 --enable-man-compression=PROG 1408 compress the manpages with PROG (default: off) 1409 --enable-man-suffix=STRING 1410 use STRING as a suffix to manpage file names 1411 (default: no, tk if enabled without 1412 specifying STRING) 1413 --enable-threads build with threads (default: on) 1414 --enable-shared build and link with shared libraries (default: on) 1415 --enable-64bit enable 64bit support (default: off) 1416 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1417 --disable-rpath disable rpath support (default: on) 1418 --enable-corefoundation use CoreFoundation API on MacOSX (default: on) 1419 --enable-load allow dynamic loading and "load" command (default: 1420 on) 1421 --enable-symbols build with debugging symbols (default: off) 1422 --enable-aqua=yes|no use Aqua windowingsystem on Mac OS X (default: no) 1423 --enable-xft use freetype/fontconfig/xft (default: on) 1424 --enable-xss use XScreenSaver for activity timer (default: on) 1425 --enable-framework package shared libraries in MacOSX frameworks 1426 (default: off) 1427 1428Optional Packages: 1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1431 --with-tcl directory containing tcl configuration 1432 (tclConfig.sh) 1433 --with-x use the X Window System 1434 1435Some influential environment variables: 1436 CC C compiler command 1437 CFLAGS C compiler flags 1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1439 nonstandard directory <lib dir> 1440 LIBS libraries to pass to the linker, e.g. -l<library> 1441 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1442 you have headers in a nonstandard directory <include dir> 1443 CPP C preprocessor 1444 XMKMF Path to xmkmf, Makefile generator for X Window System 1445 1446Use these variables to override the choices made by `configure' or to help 1447it to find libraries and programs with nonstandard names/locations. 1448 1449Report bugs to the package provider. 1450_ACEOF 1451ac_status=$? 1452fi 1453 1454if test "$ac_init_help" = "recursive"; then 1455 # If there are subdirs, report their specific --help. 1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1457 test -d "$ac_dir" || 1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1459 continue 1460 ac_builddir=. 1461 1462case "$ac_dir" in 1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1464*) 1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1466 # A ".." for each directory in $ac_dir_suffix. 1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1468 case $ac_top_builddir_sub in 1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1471 esac ;; 1472esac 1473ac_abs_top_builddir=$ac_pwd 1474ac_abs_builddir=$ac_pwd$ac_dir_suffix 1475# for backward compatibility: 1476ac_top_builddir=$ac_top_build_prefix 1477 1478case $srcdir in 1479 .) # We are building in place. 1480 ac_srcdir=. 1481 ac_top_srcdir=$ac_top_builddir_sub 1482 ac_abs_top_srcdir=$ac_pwd ;; 1483 [\\/]* | ?:[\\/]* ) # Absolute name. 1484 ac_srcdir=$srcdir$ac_dir_suffix; 1485 ac_top_srcdir=$srcdir 1486 ac_abs_top_srcdir=$srcdir ;; 1487 *) # Relative name. 1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1489 ac_top_srcdir=$ac_top_build_prefix$srcdir 1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1491esac 1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1493 1494 cd "$ac_dir" || { ac_status=$?; continue; } 1495 # Check for guested configure. 1496 if test -f "$ac_srcdir/configure.gnu"; then 1497 echo && 1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1499 elif test -f "$ac_srcdir/configure"; then 1500 echo && 1501 $SHELL "$ac_srcdir/configure" --help=recursive 1502 else 1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1504 fi || ac_status=$? 1505 cd "$ac_pwd" || { ac_status=$?; break; } 1506 done 1507fi 1508 1509test -n "$ac_init_help" && exit $ac_status 1510if $ac_init_version; then 1511 cat <<\_ACEOF 1512tk configure 8.6 1513generated by GNU Autoconf 2.69 1514 1515Copyright (C) 2012 Free Software Foundation, Inc. 1516This configure script is free software; the Free Software Foundation 1517gives unlimited permission to copy, distribute and modify it. 1518_ACEOF 1519 exit 1520fi 1521 1522## ------------------------ ## 1523## Autoconf initialization. ## 1524## ------------------------ ## 1525 1526# ac_fn_c_try_compile LINENO 1527# -------------------------- 1528# Try to compile conftest.$ac_ext, and return whether this succeeded. 1529ac_fn_c_try_compile () 1530{ 1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1532 rm -f conftest.$ac_objext 1533 if { { ac_try="$ac_compile" 1534case "(($ac_try" in 1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1536 *) ac_try_echo=$ac_try;; 1537esac 1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1539$as_echo "$ac_try_echo"; } >&5 1540 (eval "$ac_compile") 2>conftest.err 1541 ac_status=$? 1542 if test -s conftest.err; then 1543 grep -v '^ *+' conftest.err >conftest.er1 1544 cat conftest.er1 >&5 1545 mv -f conftest.er1 conftest.err 1546 fi 1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1548 test $ac_status = 0; } && { 1549 test -z "$ac_c_werror_flag" || 1550 test ! -s conftest.err 1551 } && test -s conftest.$ac_objext; then : 1552 ac_retval=0 1553else 1554 $as_echo "$as_me: failed program was:" >&5 1555sed 's/^/| /' conftest.$ac_ext >&5 1556 1557 ac_retval=1 1558fi 1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1560 as_fn_set_status $ac_retval 1561 1562} # ac_fn_c_try_compile 1563 1564# ac_fn_c_try_cpp LINENO 1565# ---------------------- 1566# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1567ac_fn_c_try_cpp () 1568{ 1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1570 if { { ac_try="$ac_cpp conftest.$ac_ext" 1571case "(($ac_try" in 1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1573 *) ac_try_echo=$ac_try;; 1574esac 1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1576$as_echo "$ac_try_echo"; } >&5 1577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1578 ac_status=$? 1579 if test -s conftest.err; then 1580 grep -v '^ *+' conftest.err >conftest.er1 1581 cat conftest.er1 >&5 1582 mv -f conftest.er1 conftest.err 1583 fi 1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1585 test $ac_status = 0; } > conftest.i && { 1586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1587 test ! -s conftest.err 1588 }; then : 1589 ac_retval=0 1590else 1591 $as_echo "$as_me: failed program was:" >&5 1592sed 's/^/| /' conftest.$ac_ext >&5 1593 1594 ac_retval=1 1595fi 1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1597 as_fn_set_status $ac_retval 1598 1599} # ac_fn_c_try_cpp 1600 1601# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1602# ------------------------------------------------------- 1603# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1604# the include files in INCLUDES and setting the cache variable VAR 1605# accordingly. 1606ac_fn_c_check_header_mongrel () 1607{ 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 if eval \${$3+:} false; then : 1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1611$as_echo_n "checking for $2... " >&6; } 1612if eval \${$3+:} false; then : 1613 $as_echo_n "(cached) " >&6 1614fi 1615eval ac_res=\$$3 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1617$as_echo "$ac_res" >&6; } 1618else 1619 # Is the header compilable? 1620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1621$as_echo_n "checking $2 usability... " >&6; } 1622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1623/* end confdefs.h. */ 1624$4 1625#include <$2> 1626_ACEOF 1627if ac_fn_c_try_compile "$LINENO"; then : 1628 ac_header_compiler=yes 1629else 1630 ac_header_compiler=no 1631fi 1632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1634$as_echo "$ac_header_compiler" >&6; } 1635 1636# Is the header present? 1637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1638$as_echo_n "checking $2 presence... " >&6; } 1639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1640/* end confdefs.h. */ 1641#include <$2> 1642_ACEOF 1643if ac_fn_c_try_cpp "$LINENO"; then : 1644 ac_header_preproc=yes 1645else 1646 ac_header_preproc=no 1647fi 1648rm -f conftest.err conftest.i conftest.$ac_ext 1649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1650$as_echo "$ac_header_preproc" >&6; } 1651 1652# So? What about this header? 1653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1654 yes:no: ) 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1656$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1658$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1659 ;; 1660 no:yes:* ) 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1662$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1664$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1666$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1668$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1670$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1671 ;; 1672esac 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1674$as_echo_n "checking for $2... " >&6; } 1675if eval \${$3+:} false; then : 1676 $as_echo_n "(cached) " >&6 1677else 1678 eval "$3=\$ac_header_compiler" 1679fi 1680eval ac_res=\$$3 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1682$as_echo "$ac_res" >&6; } 1683fi 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 1686} # ac_fn_c_check_header_mongrel 1687 1688# ac_fn_c_try_run LINENO 1689# ---------------------- 1690# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1691# that executables *can* be run. 1692ac_fn_c_try_run () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 if { { ac_try="$ac_link" 1696case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699esac 1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701$as_echo "$ac_try_echo"; } >&5 1702 (eval "$ac_link") 2>&5 1703 ac_status=$? 1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1706 { { case "(($ac_try" in 1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1708 *) ac_try_echo=$ac_try;; 1709esac 1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1711$as_echo "$ac_try_echo"; } >&5 1712 (eval "$ac_try") 2>&5 1713 ac_status=$? 1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; }; }; then : 1716 ac_retval=0 1717else 1718 $as_echo "$as_me: program exited with status $ac_status" >&5 1719 $as_echo "$as_me: failed program was:" >&5 1720sed 's/^/| /' conftest.$ac_ext >&5 1721 1722 ac_retval=$ac_status 1723fi 1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728} # ac_fn_c_try_run 1729 1730# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1731# ------------------------------------------------------- 1732# Tests whether HEADER exists and can be compiled using the include files in 1733# INCLUDES, setting the cache variable VAR accordingly. 1734ac_fn_c_check_header_compile () 1735{ 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1738$as_echo_n "checking for $2... " >&6; } 1739if eval \${$3+:} false; then : 1740 $as_echo_n "(cached) " >&6 1741else 1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743/* end confdefs.h. */ 1744$4 1745#include <$2> 1746_ACEOF 1747if ac_fn_c_try_compile "$LINENO"; then : 1748 eval "$3=yes" 1749else 1750 eval "$3=no" 1751fi 1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1753fi 1754eval ac_res=\$$3 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1756$as_echo "$ac_res" >&6; } 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 1759} # ac_fn_c_check_header_compile 1760 1761# ac_fn_c_try_link LINENO 1762# ----------------------- 1763# Try to link conftest.$ac_ext, and return whether this succeeded. 1764ac_fn_c_try_link () 1765{ 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 rm -f conftest.$ac_objext conftest$ac_exeext 1768 if { { ac_try="$ac_link" 1769case "(($ac_try" in 1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1771 *) ac_try_echo=$ac_try;; 1772esac 1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1774$as_echo "$ac_try_echo"; } >&5 1775 (eval "$ac_link") 2>conftest.err 1776 ac_status=$? 1777 if test -s conftest.err; then 1778 grep -v '^ *+' conftest.err >conftest.er1 1779 cat conftest.er1 >&5 1780 mv -f conftest.er1 conftest.err 1781 fi 1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1783 test $ac_status = 0; } && { 1784 test -z "$ac_c_werror_flag" || 1785 test ! -s conftest.err 1786 } && test -s conftest$ac_exeext && { 1787 test "$cross_compiling" = yes || 1788 test -x conftest$ac_exeext 1789 }; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=1 1796fi 1797 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1798 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1799 # interfere with the next link command; also delete a directory that is 1800 # left behind by Apple's compiler. We do this before executing the actions. 1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 as_fn_set_status $ac_retval 1804 1805} # ac_fn_c_try_link 1806 1807# ac_fn_c_check_func LINENO FUNC VAR 1808# ---------------------------------- 1809# Tests whether FUNC exists, setting the cache variable VAR accordingly 1810ac_fn_c_check_func () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1814$as_echo_n "checking for $2... " >&6; } 1815if eval \${$3+:} false; then : 1816 $as_echo_n "(cached) " >&6 1817else 1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1819/* end confdefs.h. */ 1820/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1822#define $2 innocuous_$2 1823 1824/* System header to define __stub macros and hopefully few prototypes, 1825 which can conflict with char $2 (); below. 1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1827 <limits.h> exists even on freestanding compilers. */ 1828 1829#ifdef __STDC__ 1830# include <limits.h> 1831#else 1832# include <assert.h> 1833#endif 1834 1835#undef $2 1836 1837/* Override any GCC internal prototype to avoid an error. 1838 Use char because int might match the return type of a GCC 1839 builtin and then its argument prototype would still apply. */ 1840#ifdef __cplusplus 1841extern "C" 1842#endif 1843char $2 (); 1844/* The GNU C library defines this for functions which it implements 1845 to always fail with ENOSYS. Some functions are actually named 1846 something starting with __ and the normal name is an alias. */ 1847#if defined __stub_$2 || defined __stub___$2 1848choke me 1849#endif 1850 1851int 1852main () 1853{ 1854return $2 (); 1855 ; 1856 return 0; 1857} 1858_ACEOF 1859if ac_fn_c_try_link "$LINENO"; then : 1860 eval "$3=yes" 1861else 1862 eval "$3=no" 1863fi 1864rm -f core conftest.err conftest.$ac_objext \ 1865 conftest$ac_exeext conftest.$ac_ext 1866fi 1867eval ac_res=\$$3 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1869$as_echo "$ac_res" >&6; } 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 1872} # ac_fn_c_check_func 1873 1874# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1875# ------------------------------------------- 1876# Tests whether TYPE exists after having included INCLUDES, setting cache 1877# variable VAR accordingly. 1878ac_fn_c_check_type () 1879{ 1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1882$as_echo_n "checking for $2... " >&6; } 1883if eval \${$3+:} false; then : 1884 $as_echo_n "(cached) " >&6 1885else 1886 eval "$3=no" 1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888/* end confdefs.h. */ 1889$4 1890int 1891main () 1892{ 1893if (sizeof ($2)) 1894 return 0; 1895 ; 1896 return 0; 1897} 1898_ACEOF 1899if ac_fn_c_try_compile "$LINENO"; then : 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1901/* end confdefs.h. */ 1902$4 1903int 1904main () 1905{ 1906if (sizeof (($2))) 1907 return 0; 1908 ; 1909 return 0; 1910} 1911_ACEOF 1912if ac_fn_c_try_compile "$LINENO"; then : 1913 1914else 1915 eval "$3=yes" 1916fi 1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1920fi 1921eval ac_res=\$$3 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1923$as_echo "$ac_res" >&6; } 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 1926} # ac_fn_c_check_type 1927cat >config.log <<_ACEOF 1928This file contains any messages produced by compilers while 1929running configure, to aid debugging if configure makes a mistake. 1930 1931It was created by tk $as_me 8.6, which was 1932generated by GNU Autoconf 2.69. Invocation command line was 1933 1934 $ $0 $@ 1935 1936_ACEOF 1937exec 5>>config.log 1938{ 1939cat <<_ASUNAME 1940## --------- ## 1941## Platform. ## 1942## --------- ## 1943 1944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1945uname -m = `(uname -m) 2>/dev/null || echo unknown` 1946uname -r = `(uname -r) 2>/dev/null || echo unknown` 1947uname -s = `(uname -s) 2>/dev/null || echo unknown` 1948uname -v = `(uname -v) 2>/dev/null || echo unknown` 1949 1950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1951/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1952 1953/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1954/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1956/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1957/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1958/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1959/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1960 1961_ASUNAME 1962 1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1964for as_dir in $PATH 1965do 1966 IFS=$as_save_IFS 1967 test -z "$as_dir" && as_dir=. 1968 $as_echo "PATH: $as_dir" 1969 done 1970IFS=$as_save_IFS 1971 1972} >&5 1973 1974cat >&5 <<_ACEOF 1975 1976 1977## ----------- ## 1978## Core tests. ## 1979## ----------- ## 1980 1981_ACEOF 1982 1983 1984# Keep a trace of the command line. 1985# Strip out --no-create and --no-recursion so they do not pile up. 1986# Strip out --silent because we don't want to record it for future runs. 1987# Also quote any args containing shell meta-characters. 1988# Make two passes to allow for proper duplicate-argument suppression. 1989ac_configure_args= 1990ac_configure_args0= 1991ac_configure_args1= 1992ac_must_keep_next=false 1993for ac_pass in 1 2 1994do 1995 for ac_arg 1996 do 1997 case $ac_arg in 1998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2000 | -silent | --silent | --silen | --sile | --sil) 2001 continue ;; 2002 *\'*) 2003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2004 esac 2005 case $ac_pass in 2006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2007 2) 2008 as_fn_append ac_configure_args1 " '$ac_arg'" 2009 if test $ac_must_keep_next = true; then 2010 ac_must_keep_next=false # Got value, back to normal. 2011 else 2012 case $ac_arg in 2013 *=* | --config-cache | -C | -disable-* | --disable-* \ 2014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2016 | -with-* | --with-* | -without-* | --without-* | --x) 2017 case "$ac_configure_args0 " in 2018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2019 esac 2020 ;; 2021 -* ) ac_must_keep_next=true ;; 2022 esac 2023 fi 2024 as_fn_append ac_configure_args " '$ac_arg'" 2025 ;; 2026 esac 2027 done 2028done 2029{ ac_configure_args0=; unset ac_configure_args0;} 2030{ ac_configure_args1=; unset ac_configure_args1;} 2031 2032# When interrupted or exit'd, cleanup temporary files, and complete 2033# config.log. We remove comments because anyway the quotes in there 2034# would cause problems or look ugly. 2035# WARNING: Use '\'' to represent an apostrophe within the trap. 2036# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2037trap 'exit_status=$? 2038 # Save into config.log some information that might help in debugging. 2039 { 2040 echo 2041 2042 $as_echo "## ---------------- ## 2043## Cache variables. ## 2044## ---------------- ##" 2045 echo 2046 # The following way of writing the cache mishandles newlines in values, 2047( 2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2049 eval ac_val=\$$ac_var 2050 case $ac_val in #( 2051 *${as_nl}*) 2052 case $ac_var in #( 2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2054$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2055 esac 2056 case $ac_var in #( 2057 _ | IFS | as_nl) ;; #( 2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2059 *) { eval $ac_var=; unset $ac_var;} ;; 2060 esac ;; 2061 esac 2062 done 2063 (set) 2>&1 | 2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2065 *${as_nl}ac_space=\ *) 2066 sed -n \ 2067 "s/'\''/'\''\\\\'\'''\''/g; 2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2069 ;; #( 2070 *) 2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2072 ;; 2073 esac | 2074 sort 2075) 2076 echo 2077 2078 $as_echo "## ----------------- ## 2079## Output variables. ## 2080## ----------------- ##" 2081 echo 2082 for ac_var in $ac_subst_vars 2083 do 2084 eval ac_val=\$$ac_var 2085 case $ac_val in 2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2087 esac 2088 $as_echo "$ac_var='\''$ac_val'\''" 2089 done | sort 2090 echo 2091 2092 if test -n "$ac_subst_files"; then 2093 $as_echo "## ------------------- ## 2094## File substitutions. ## 2095## ------------------- ##" 2096 echo 2097 for ac_var in $ac_subst_files 2098 do 2099 eval ac_val=\$$ac_var 2100 case $ac_val in 2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2102 esac 2103 $as_echo "$ac_var='\''$ac_val'\''" 2104 done | sort 2105 echo 2106 fi 2107 2108 if test -s confdefs.h; then 2109 $as_echo "## ----------- ## 2110## confdefs.h. ## 2111## ----------- ##" 2112 echo 2113 cat confdefs.h 2114 echo 2115 fi 2116 test "$ac_signal" != 0 && 2117 $as_echo "$as_me: caught signal $ac_signal" 2118 $as_echo "$as_me: exit $exit_status" 2119 } >&5 2120 rm -f core *.core core.conftest.* && 2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2122 exit $exit_status 2123' 0 2124for ac_signal in 1 2 13 15; do 2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2126done 2127ac_signal=0 2128 2129# confdefs.h avoids OS command line length limits that DEFS can exceed. 2130rm -f -r conftest* confdefs.h 2131 2132$as_echo "/* confdefs.h */" > confdefs.h 2133 2134# Predefined preprocessor variables. 2135 2136cat >>confdefs.h <<_ACEOF 2137#define PACKAGE_NAME "$PACKAGE_NAME" 2138_ACEOF 2139 2140cat >>confdefs.h <<_ACEOF 2141#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145#define PACKAGE_VERSION "$PACKAGE_VERSION" 2146_ACEOF 2147 2148cat >>confdefs.h <<_ACEOF 2149#define PACKAGE_STRING "$PACKAGE_STRING" 2150_ACEOF 2151 2152cat >>confdefs.h <<_ACEOF 2153#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2154_ACEOF 2155 2156cat >>confdefs.h <<_ACEOF 2157#define PACKAGE_URL "$PACKAGE_URL" 2158_ACEOF 2159 2160 2161# Let the site file select an alternate cache file if it wants to. 2162# Prefer an explicitly selected file to automatically selected ones. 2163ac_site_file1=NONE 2164ac_site_file2=NONE 2165if test -n "$CONFIG_SITE"; then 2166 # We do not want a PATH search for config.site. 2167 case $CONFIG_SITE in #(( 2168 -*) ac_site_file1=./$CONFIG_SITE;; 2169 */*) ac_site_file1=$CONFIG_SITE;; 2170 *) ac_site_file1=./$CONFIG_SITE;; 2171 esac 2172elif test "x$prefix" != xNONE; then 2173 ac_site_file1=$prefix/share/config.site 2174 ac_site_file2=$prefix/etc/config.site 2175else 2176 ac_site_file1=$ac_default_prefix/share/config.site 2177 ac_site_file2=$ac_default_prefix/etc/config.site 2178fi 2179for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2180do 2181 test "x$ac_site_file" = xNONE && continue 2182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2184$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2185 sed 's/^/| /' "$ac_site_file" >&5 2186 . "$ac_site_file" \ 2187 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2189as_fn_error $? "failed to load site script $ac_site_file 2190See \`config.log' for more details" "$LINENO" 5; } 2191 fi 2192done 2193 2194if test -r "$cache_file"; then 2195 # Some versions of bash will fail to source /dev/null (special files 2196 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2197 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2199$as_echo "$as_me: loading cache $cache_file" >&6;} 2200 case $cache_file in 2201 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2202 *) . "./$cache_file";; 2203 esac 2204 fi 2205else 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2207$as_echo "$as_me: creating cache $cache_file" >&6;} 2208 >$cache_file 2209fi 2210 2211# Check that the precious variables saved in the cache have kept the same 2212# value. 2213ac_cache_corrupted=false 2214for ac_var in $ac_precious_vars; do 2215 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2216 eval ac_new_set=\$ac_env_${ac_var}_set 2217 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2218 eval ac_new_val=\$ac_env_${ac_var}_value 2219 case $ac_old_set,$ac_new_set in 2220 set,) 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2222$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2223 ac_cache_corrupted=: ;; 2224 ,set) 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2226$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2227 ac_cache_corrupted=: ;; 2228 ,);; 2229 *) 2230 if test "x$ac_old_val" != "x$ac_new_val"; then 2231 # differences in whitespace do not lead to failure. 2232 ac_old_val_w=`echo x $ac_old_val` 2233 ac_new_val_w=`echo x $ac_new_val` 2234 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2236$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2237 ac_cache_corrupted=: 2238 else 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2240$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2241 eval $ac_var=\$ac_old_val 2242 fi 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2244$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2246$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2247 fi;; 2248 esac 2249 # Pass precious variables to config.status. 2250 if test "$ac_new_set" = set; then 2251 case $ac_new_val in 2252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2253 *) ac_arg=$ac_var=$ac_new_val ;; 2254 esac 2255 case " $ac_configure_args " in 2256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2257 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2258 esac 2259 fi 2260done 2261if $ac_cache_corrupted; then 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2265$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2266 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2267fi 2268## -------------------- ## 2269## Main body of script. ## 2270## -------------------- ## 2271 2272ac_ext=c 2273ac_cpp='$CPP $CPPFLAGS' 2274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2276ac_compiler_gnu=$ac_cv_c_compiler_gnu 2277 2278 2279 2280 2281 2282 ac_config_headers="$ac_config_headers tkConfig.h:../unix/tkConfig.h.in" 2283 2284 2285 2286 2287 2288 2289TK_VERSION=8.6 2290TK_MAJOR_VERSION=8 2291TK_MINOR_VERSION=6 2292TK_PATCH_LEVEL=".12" 2293VERSION=${TK_VERSION} 2294LOCALES="cs da de el en en_gb eo es fr hu it nl pl pt ru sv" 2295 2296#-------------------------------------------------------------------- 2297# Find and load the tclConfig.sh file 2298#-------------------------------------------------------------------- 2299 2300 2301 # 2302 # Ok, lets find the tcl configuration 2303 # First, look for one uninstalled. 2304 # the alternative search directory is invoked by --with-tcl 2305 # 2306 2307 if test x"${no_tcl}" = x ; then 2308 # we reset no_tcl in case something fails here 2309 no_tcl=true 2310 2311# Check whether --with-tcl was given. 2312if test "${with_tcl+set}" = set; then : 2313 withval=$with_tcl; with_tclconfig="${withval}" 2314fi 2315 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 2317$as_echo_n "checking for Tcl configuration... " >&6; } 2318 if ${ac_cv_c_tclconfig+:} false; then : 2319 $as_echo_n "(cached) " >&6 2320else 2321 2322 2323 # First check to see if --with-tcl was specified. 2324 if test x"${with_tclconfig}" != x ; then 2325 case "${with_tclconfig}" in 2326 */tclConfig.sh ) 2327 if test -f "${with_tclconfig}"; then 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 2329$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 2330 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 2331 fi ;; 2332 esac 2333 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2334 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 2335 else 2336 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 2337 fi 2338 fi 2339 2340 # then check for a private Tcl installation 2341 if test x"${ac_cv_c_tclconfig}" = x ; then 2342 for i in \ 2343 ../tcl \ 2344 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2345 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2346 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2347 ../../tcl \ 2348 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2349 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2350 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2351 ../../../tcl \ 2352 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2353 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2354 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2355 if test -f "$i/unix/tclConfig.sh" ; then 2356 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2357 break 2358 fi 2359 done 2360 fi 2361 2362 # on Darwin, check in Framework installation locations 2363 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2364 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2365 `ls -d /Library/Frameworks 2>/dev/null` \ 2366 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2367 ; do 2368 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2369 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2370 break 2371 fi 2372 done 2373 fi 2374 2375 # check in a few common install locations 2376 if test x"${ac_cv_c_tclconfig}" = x ; then 2377 for i in `ls -d ${libdir} 2>/dev/null` \ 2378 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2379 `ls -d ${prefix}/lib 2>/dev/null` \ 2380 `ls -d /usr/local/lib 2>/dev/null` \ 2381 `ls -d /usr/contrib/lib 2>/dev/null` \ 2382 `ls -d /usr/pkg/lib 2>/dev/null` \ 2383 `ls -d /usr/lib/tcl8.6 2>/dev/null` \ 2384 `ls -d /usr/lib 2>/dev/null` \ 2385 `ls -d /usr/lib64 2>/dev/null` \ 2386 `ls -d /usr/local/lib/tcl8.6 2>/dev/null` \ 2387 `ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \ 2388 ; do 2389 if test -f "$i/tclConfig.sh" ; then 2390 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2391 break 2392 fi 2393 done 2394 fi 2395 2396 # check in a few other private locations 2397 if test x"${ac_cv_c_tclconfig}" = x ; then 2398 for i in \ 2399 ${srcdir}/../tcl \ 2400 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2401 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2402 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2403 if test -f "$i/unix/tclConfig.sh" ; then 2404 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2405 break 2406 fi 2407 done 2408 fi 2409 2410fi 2411 2412 2413 if test x"${ac_cv_c_tclconfig}" = x ; then 2414 TCL_BIN_DIR="# no Tcl configs found" 2415 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5 2416 else 2417 no_tcl= 2418 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2420$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2421 fi 2422 fi 2423 2424 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2426$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; } 2427 2428 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 2430$as_echo "loading" >&6; } 2431 . "${TCL_BIN_DIR}/tclConfig.sh" 2432 else 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2434$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2435 fi 2436 2437 # If the TCL_BIN_DIR is the build directory (not the install directory), 2438 # then set the common variable name to the value of the build variables. 2439 # For example, the variable TCL_LIB_SPEC will be set to the value 2440 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2441 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2442 # installed and uninstalled version of Tcl. 2443 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2444 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2445 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2446 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2447 elif test "`uname -s`" = "Darwin"; then 2448 # If Tcl was built as a framework, attempt to use the libraries 2449 # from the framework at the given location so that linking works 2450 # against Tcl.framework installed in an arbitrary location. 2451 case ${TCL_DEFS} in 2452 *TCL_FRAMEWORK*) 2453 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2454 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2455 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2456 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2457 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2458 break 2459 fi 2460 done 2461 fi 2462 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2463 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2464 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2465 fi 2466 ;; 2467 esac 2468 fi 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484if test "${TCL_MAJOR_VERSION}" -ne 8 ; then 2485 as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+ 2486Found config for Tcl ${TCL_VERSION}" "$LINENO" 5 2487fi 2488if test "${TCL_MINOR_VERSION}" -lt 6 ; then 2489 as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+ 2490Found config for Tcl ${TCL_VERSION}" "$LINENO" 5 2491fi 2492 2493 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5 2495$as_echo_n "checking for tclsh... " >&6; } 2496 if ${ac_cv_path_tclsh+:} false; then : 2497 $as_echo_n "(cached) " >&6 2498else 2499 2500 search_path=`echo ${PATH} | sed -e 's/:/ /g'` 2501 for dir in $search_path ; do 2502 for j in `ls -r $dir/tclsh[8-9]* 2> /dev/null` \ 2503 `ls -r $dir/tclsh* 2> /dev/null` ; do 2504 if test x"$ac_cv_path_tclsh" = x ; then 2505 if test -f "$j" ; then 2506 ac_cv_path_tclsh=$j 2507 break 2508 fi 2509 fi 2510 done 2511 done 2512 2513fi 2514 2515 2516 if test -f "$ac_cv_path_tclsh" ; then 2517 TCLSH_PROG="$ac_cv_path_tclsh" 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_PROG" >&5 2519$as_echo "$TCLSH_PROG" >&6; } 2520 else 2521 # It is not an error if an installed version of Tcl can't be located. 2522 TCLSH_PROG="" 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: No tclsh found on PATH" >&5 2524$as_echo "No tclsh found on PATH" >&6; } 2525 fi 2526 2527 2528 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh in Tcl build directory" >&5 2530$as_echo_n "checking for tclsh in Tcl build directory... " >&6; } 2531 BUILD_TCLSH="${TCL_BIN_DIR}"/tclsh 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_TCLSH" >&5 2533$as_echo "$BUILD_TCLSH" >&6; } 2534 2535 2536 2537#------------------------------------------------------------------------ 2538# Handle the --prefix=... option 2539#------------------------------------------------------------------------ 2540 2541if test "${prefix}" = "NONE"; then 2542 prefix="$TCL_PREFIX" 2543fi 2544if test "${exec_prefix}" = "NONE"; then 2545 exec_prefix=$prefix 2546fi 2547# Make sure srcdir is fully qualified! 2548srcdir="`cd "$srcdir" ; pwd`" 2549TK_SRC_DIR="`cd "$srcdir"/..; pwd`" 2550 2551#------------------------------------------------------------------------ 2552# Compress and/or soft link the manpages? 2553#------------------------------------------------------------------------ 2554 2555 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use symlinks for manpages" >&5 2557$as_echo_n "checking whether to use symlinks for manpages... " >&6; } 2558 # Check whether --enable-man-symlinks was given. 2559if test "${enable_man_symlinks+set}" = set; then : 2560 enableval=$enable_man_symlinks; test "$enableval" != "no" && MAN_FLAGS="$MAN_FLAGS --symlinks" 2561else 2562 enableval="no" 2563fi 2564 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 2566$as_echo "$enableval" >&6; } 2567 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compress the manpages" >&5 2569$as_echo_n "checking whether to compress the manpages... " >&6; } 2570 # Check whether --enable-man-compression was given. 2571if test "${enable_man_compression+set}" = set; then : 2572 enableval=$enable_man_compression; case $enableval in 2573 yes) as_fn_error $? "missing argument to --enable-man-compression" "$LINENO" 5;; 2574 no) ;; 2575 *) MAN_FLAGS="$MAN_FLAGS --compress $enableval";; 2576 esac 2577else 2578 enableval="no" 2579fi 2580 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 2582$as_echo "$enableval" >&6; } 2583 if test "$enableval" != "no"; then 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compressed file suffix" >&5 2585$as_echo_n "checking for compressed file suffix... " >&6; } 2586 touch TeST 2587 $enableval TeST 2588 Z=`ls TeST* | sed 's/^....//'` 2589 rm -f TeST* 2590 MAN_FLAGS="$MAN_FLAGS --extension $Z" 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Z" >&5 2592$as_echo "$Z" >&6; } 2593 fi 2594 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add a package name suffix for the manpages" >&5 2596$as_echo_n "checking whether to add a package name suffix for the manpages... " >&6; } 2597 # Check whether --enable-man-suffix was given. 2598if test "${enable_man_suffix+set}" = set; then : 2599 enableval=$enable_man_suffix; case $enableval in 2600 yes) enableval="tk" MAN_FLAGS="$MAN_FLAGS --suffix $enableval";; 2601 no) ;; 2602 *) MAN_FLAGS="$MAN_FLAGS --suffix $enableval";; 2603 esac 2604else 2605 enableval="no" 2606fi 2607 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 2609$as_echo "$enableval" >&6; } 2610 2611 2612 2613 2614#------------------------------------------------------------------------ 2615# Standard compiler checks 2616#------------------------------------------------------------------------ 2617 2618# If the user did not set CFLAGS, set it now to keep 2619# the AC_PROG_CC macro from adding "-g -O2". 2620if test "${CFLAGS+set}" != "set" ; then 2621 CFLAGS="" 2622fi 2623 2624ac_ext=c 2625ac_cpp='$CPP $CPPFLAGS' 2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2628ac_compiler_gnu=$ac_cv_c_compiler_gnu 2629if test -n "$ac_tool_prefix"; then 2630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2631set dummy ${ac_tool_prefix}gcc; ac_word=$2 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2633$as_echo_n "checking for $ac_word... " >&6; } 2634if ${ac_cv_prog_CC+:} false; then : 2635 $as_echo_n "(cached) " >&6 2636else 2637 if test -n "$CC"; then 2638 ac_cv_prog_CC="$CC" # Let the user override the test. 2639else 2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2641for as_dir in $PATH 2642do 2643 IFS=$as_save_IFS 2644 test -z "$as_dir" && as_dir=. 2645 for ac_exec_ext in '' $ac_executable_extensions; do 2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2647 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2649 break 2 2650 fi 2651done 2652 done 2653IFS=$as_save_IFS 2654 2655fi 2656fi 2657CC=$ac_cv_prog_CC 2658if test -n "$CC"; then 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2660$as_echo "$CC" >&6; } 2661else 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2663$as_echo "no" >&6; } 2664fi 2665 2666 2667fi 2668if test -z "$ac_cv_prog_CC"; then 2669 ac_ct_CC=$CC 2670 # Extract the first word of "gcc", so it can be a program name with args. 2671set dummy gcc; ac_word=$2 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2673$as_echo_n "checking for $ac_word... " >&6; } 2674if ${ac_cv_prog_ac_ct_CC+:} false; then : 2675 $as_echo_n "(cached) " >&6 2676else 2677 if test -n "$ac_ct_CC"; then 2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2679else 2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2681for as_dir in $PATH 2682do 2683 IFS=$as_save_IFS 2684 test -z "$as_dir" && as_dir=. 2685 for ac_exec_ext in '' $ac_executable_extensions; do 2686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2687 ac_cv_prog_ac_ct_CC="gcc" 2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2689 break 2 2690 fi 2691done 2692 done 2693IFS=$as_save_IFS 2694 2695fi 2696fi 2697ac_ct_CC=$ac_cv_prog_ac_ct_CC 2698if test -n "$ac_ct_CC"; then 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2700$as_echo "$ac_ct_CC" >&6; } 2701else 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2703$as_echo "no" >&6; } 2704fi 2705 2706 if test "x$ac_ct_CC" = x; then 2707 CC="" 2708 else 2709 case $cross_compiling:$ac_tool_warned in 2710yes:) 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2713ac_tool_warned=yes ;; 2714esac 2715 CC=$ac_ct_CC 2716 fi 2717else 2718 CC="$ac_cv_prog_CC" 2719fi 2720 2721if test -z "$CC"; then 2722 if test -n "$ac_tool_prefix"; then 2723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2724set dummy ${ac_tool_prefix}cc; ac_word=$2 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2726$as_echo_n "checking for $ac_word... " >&6; } 2727if ${ac_cv_prog_CC+:} false; then : 2728 $as_echo_n "(cached) " >&6 2729else 2730 if test -n "$CC"; then 2731 ac_cv_prog_CC="$CC" # Let the user override the test. 2732else 2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2734for as_dir in $PATH 2735do 2736 IFS=$as_save_IFS 2737 test -z "$as_dir" && as_dir=. 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2740 ac_cv_prog_CC="${ac_tool_prefix}cc" 2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2742 break 2 2743 fi 2744done 2745 done 2746IFS=$as_save_IFS 2747 2748fi 2749fi 2750CC=$ac_cv_prog_CC 2751if test -n "$CC"; then 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2753$as_echo "$CC" >&6; } 2754else 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2756$as_echo "no" >&6; } 2757fi 2758 2759 2760 fi 2761fi 2762if test -z "$CC"; then 2763 # Extract the first word of "cc", so it can be a program name with args. 2764set dummy cc; ac_word=$2 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2766$as_echo_n "checking for $ac_word... " >&6; } 2767if ${ac_cv_prog_CC+:} false; then : 2768 $as_echo_n "(cached) " >&6 2769else 2770 if test -n "$CC"; then 2771 ac_cv_prog_CC="$CC" # Let the user override the test. 2772else 2773 ac_prog_rejected=no 2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2775for as_dir in $PATH 2776do 2777 IFS=$as_save_IFS 2778 test -z "$as_dir" && as_dir=. 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2782 ac_prog_rejected=yes 2783 continue 2784 fi 2785 ac_cv_prog_CC="cc" 2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2787 break 2 2788 fi 2789done 2790 done 2791IFS=$as_save_IFS 2792 2793if test $ac_prog_rejected = yes; then 2794 # We found a bogon in the path, so make sure we never use it. 2795 set dummy $ac_cv_prog_CC 2796 shift 2797 if test $# != 0; then 2798 # We chose a different compiler from the bogus one. 2799 # However, it has the same basename, so the bogon will be chosen 2800 # first if we set CC to just the basename; use the full file name. 2801 shift 2802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2803 fi 2804fi 2805fi 2806fi 2807CC=$ac_cv_prog_CC 2808if test -n "$CC"; then 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2810$as_echo "$CC" >&6; } 2811else 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2813$as_echo "no" >&6; } 2814fi 2815 2816 2817fi 2818if test -z "$CC"; then 2819 if test -n "$ac_tool_prefix"; then 2820 for ac_prog in cl.exe 2821 do 2822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2823set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2825$as_echo_n "checking for $ac_word... " >&6; } 2826if ${ac_cv_prog_CC+:} false; then : 2827 $as_echo_n "(cached) " >&6 2828else 2829 if test -n "$CC"; then 2830 ac_cv_prog_CC="$CC" # Let the user override the test. 2831else 2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833for as_dir in $PATH 2834do 2835 IFS=$as_save_IFS 2836 test -z "$as_dir" && as_dir=. 2837 for ac_exec_ext in '' $ac_executable_extensions; do 2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2841 break 2 2842 fi 2843done 2844 done 2845IFS=$as_save_IFS 2846 2847fi 2848fi 2849CC=$ac_cv_prog_CC 2850if test -n "$CC"; then 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2852$as_echo "$CC" >&6; } 2853else 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2855$as_echo "no" >&6; } 2856fi 2857 2858 2859 test -n "$CC" && break 2860 done 2861fi 2862if test -z "$CC"; then 2863 ac_ct_CC=$CC 2864 for ac_prog in cl.exe 2865do 2866 # Extract the first word of "$ac_prog", so it can be a program name with args. 2867set dummy $ac_prog; ac_word=$2 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2869$as_echo_n "checking for $ac_word... " >&6; } 2870if ${ac_cv_prog_ac_ct_CC+:} false; then : 2871 $as_echo_n "(cached) " >&6 2872else 2873 if test -n "$ac_ct_CC"; then 2874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2875else 2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2877for as_dir in $PATH 2878do 2879 IFS=$as_save_IFS 2880 test -z "$as_dir" && as_dir=. 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2883 ac_cv_prog_ac_ct_CC="$ac_prog" 2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887done 2888 done 2889IFS=$as_save_IFS 2890 2891fi 2892fi 2893ac_ct_CC=$ac_cv_prog_ac_ct_CC 2894if test -n "$ac_ct_CC"; then 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2896$as_echo "$ac_ct_CC" >&6; } 2897else 2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2899$as_echo "no" >&6; } 2900fi 2901 2902 2903 test -n "$ac_ct_CC" && break 2904done 2905 2906 if test "x$ac_ct_CC" = x; then 2907 CC="" 2908 else 2909 case $cross_compiling:$ac_tool_warned in 2910yes:) 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2913ac_tool_warned=yes ;; 2914esac 2915 CC=$ac_ct_CC 2916 fi 2917fi 2918 2919fi 2920 2921 2922test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2924as_fn_error $? "no acceptable C compiler found in \$PATH 2925See \`config.log' for more details" "$LINENO" 5; } 2926 2927# Provide some information about the compiler. 2928$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2929set X $ac_compile 2930ac_compiler=$2 2931for ac_option in --version -v -V -qversion; do 2932 { { ac_try="$ac_compiler $ac_option >&5" 2933case "(($ac_try" in 2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2935 *) ac_try_echo=$ac_try;; 2936esac 2937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2938$as_echo "$ac_try_echo"; } >&5 2939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2940 ac_status=$? 2941 if test -s conftest.err; then 2942 sed '10a\ 2943... rest of stderr output deleted ... 2944 10q' conftest.err >conftest.er1 2945 cat conftest.er1 >&5 2946 fi 2947 rm -f conftest.er1 conftest.err 2948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2949 test $ac_status = 0; } 2950done 2951 2952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2953/* end confdefs.h. */ 2954 2955int 2956main () 2957{ 2958 2959 ; 2960 return 0; 2961} 2962_ACEOF 2963ac_clean_files_save=$ac_clean_files 2964ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2965# Try to create an executable without -o first, disregard a.out. 2966# It will help us diagnose broken compilers, and finding out an intuition 2967# of exeext. 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2969$as_echo_n "checking whether the C compiler works... " >&6; } 2970ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2971 2972# The possible output files: 2973ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2974 2975ac_rmfiles= 2976for ac_file in $ac_files 2977do 2978 case $ac_file in 2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2980 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2981 esac 2982done 2983rm -f $ac_rmfiles 2984 2985if { { ac_try="$ac_link_default" 2986case "(($ac_try" in 2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2988 *) ac_try_echo=$ac_try;; 2989esac 2990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2991$as_echo "$ac_try_echo"; } >&5 2992 (eval "$ac_link_default") 2>&5 2993 ac_status=$? 2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2995 test $ac_status = 0; }; then : 2996 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2997# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2998# in a Makefile. We should not override ac_cv_exeext if it was cached, 2999# so that the user can short-circuit this test for compilers unknown to 3000# Autoconf. 3001for ac_file in $ac_files '' 3002do 3003 test -f "$ac_file" || continue 3004 case $ac_file in 3005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3006 ;; 3007 [ab].out ) 3008 # We found the default executable, but exeext='' is most 3009 # certainly right. 3010 break;; 3011 *.* ) 3012 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3013 then :; else 3014 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3015 fi 3016 # We set ac_cv_exeext here because the later test for it is not 3017 # safe: cross compilers may not add the suffix if given an `-o' 3018 # argument, so we may need to know it at that point already. 3019 # Even if this section looks crufty: it has the advantage of 3020 # actually working. 3021 break;; 3022 * ) 3023 break;; 3024 esac 3025done 3026test "$ac_cv_exeext" = no && ac_cv_exeext= 3027 3028else 3029 ac_file='' 3030fi 3031if test -z "$ac_file"; then : 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3033$as_echo "no" >&6; } 3034$as_echo "$as_me: failed program was:" >&5 3035sed 's/^/| /' conftest.$ac_ext >&5 3036 3037{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3039as_fn_error 77 "C compiler cannot create executables 3040See \`config.log' for more details" "$LINENO" 5; } 3041else 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3043$as_echo "yes" >&6; } 3044fi 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3046$as_echo_n "checking for C compiler default output file name... " >&6; } 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3048$as_echo "$ac_file" >&6; } 3049ac_exeext=$ac_cv_exeext 3050 3051rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3052ac_clean_files=$ac_clean_files_save 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3054$as_echo_n "checking for suffix of executables... " >&6; } 3055if { { ac_try="$ac_link" 3056case "(($ac_try" in 3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3058 *) ac_try_echo=$ac_try;; 3059esac 3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3061$as_echo "$ac_try_echo"; } >&5 3062 (eval "$ac_link") 2>&5 3063 ac_status=$? 3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3065 test $ac_status = 0; }; then : 3066 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3067# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3068# work properly (i.e., refer to `conftest.exe'), while it won't with 3069# `rm'. 3070for ac_file in conftest.exe conftest conftest.*; do 3071 test -f "$ac_file" || continue 3072 case $ac_file in 3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3075 break;; 3076 * ) break;; 3077 esac 3078done 3079else 3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3082as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3083See \`config.log' for more details" "$LINENO" 5; } 3084fi 3085rm -f conftest conftest$ac_cv_exeext 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3087$as_echo "$ac_cv_exeext" >&6; } 3088 3089rm -f conftest.$ac_ext 3090EXEEXT=$ac_cv_exeext 3091ac_exeext=$EXEEXT 3092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3093/* end confdefs.h. */ 3094#include <stdio.h> 3095int 3096main () 3097{ 3098FILE *f = fopen ("conftest.out", "w"); 3099 return ferror (f) || fclose (f) != 0; 3100 3101 ; 3102 return 0; 3103} 3104_ACEOF 3105ac_clean_files="$ac_clean_files conftest.out" 3106# Check that the compiler produces executables we can run. If not, either 3107# the compiler is broken, or we cross compile. 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3109$as_echo_n "checking whether we are cross compiling... " >&6; } 3110if test "$cross_compiling" != yes; then 3111 { { ac_try="$ac_link" 3112case "(($ac_try" in 3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3114 *) ac_try_echo=$ac_try;; 3115esac 3116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3117$as_echo "$ac_try_echo"; } >&5 3118 (eval "$ac_link") 2>&5 3119 ac_status=$? 3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3121 test $ac_status = 0; } 3122 if { ac_try='./conftest$ac_cv_exeext' 3123 { { case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126esac 3127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3128$as_echo "$ac_try_echo"; } >&5 3129 (eval "$ac_try") 2>&5 3130 ac_status=$? 3131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3132 test $ac_status = 0; }; }; then 3133 cross_compiling=no 3134 else 3135 if test "$cross_compiling" = maybe; then 3136 cross_compiling=yes 3137 else 3138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3140as_fn_error $? "cannot run C compiled programs. 3141If you meant to cross compile, use \`--host'. 3142See \`config.log' for more details" "$LINENO" 5; } 3143 fi 3144 fi 3145fi 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3147$as_echo "$cross_compiling" >&6; } 3148 3149rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3150ac_clean_files=$ac_clean_files_save 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3152$as_echo_n "checking for suffix of object files... " >&6; } 3153if ${ac_cv_objext+:} false; then : 3154 $as_echo_n "(cached) " >&6 3155else 3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3157/* end confdefs.h. */ 3158 3159int 3160main () 3161{ 3162 3163 ; 3164 return 0; 3165} 3166_ACEOF 3167rm -f conftest.o conftest.obj 3168if { { ac_try="$ac_compile" 3169case "(($ac_try" in 3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3171 *) ac_try_echo=$ac_try;; 3172esac 3173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3174$as_echo "$ac_try_echo"; } >&5 3175 (eval "$ac_compile") 2>&5 3176 ac_status=$? 3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3178 test $ac_status = 0; }; then : 3179 for ac_file in conftest.o conftest.obj conftest.*; do 3180 test -f "$ac_file" || continue; 3181 case $ac_file in 3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3183 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3184 break;; 3185 esac 3186done 3187else 3188 $as_echo "$as_me: failed program was:" >&5 3189sed 's/^/| /' conftest.$ac_ext >&5 3190 3191{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3193as_fn_error $? "cannot compute suffix of object files: cannot compile 3194See \`config.log' for more details" "$LINENO" 5; } 3195fi 3196rm -f conftest.$ac_cv_objext conftest.$ac_ext 3197fi 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3199$as_echo "$ac_cv_objext" >&6; } 3200OBJEXT=$ac_cv_objext 3201ac_objext=$OBJEXT 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3203$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3204if ${ac_cv_c_compiler_gnu+:} false; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3208/* end confdefs.h. */ 3209 3210int 3211main () 3212{ 3213#ifndef __GNUC__ 3214 choke me 3215#endif 3216 3217 ; 3218 return 0; 3219} 3220_ACEOF 3221if ac_fn_c_try_compile "$LINENO"; then : 3222 ac_compiler_gnu=yes 3223else 3224 ac_compiler_gnu=no 3225fi 3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3227ac_cv_c_compiler_gnu=$ac_compiler_gnu 3228 3229fi 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3231$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3232if test $ac_compiler_gnu = yes; then 3233 GCC=yes 3234else 3235 GCC= 3236fi 3237ac_test_CFLAGS=${CFLAGS+set} 3238ac_save_CFLAGS=$CFLAGS 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3240$as_echo_n "checking whether $CC accepts -g... " >&6; } 3241if ${ac_cv_prog_cc_g+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 ac_save_c_werror_flag=$ac_c_werror_flag 3245 ac_c_werror_flag=yes 3246 ac_cv_prog_cc_g=no 3247 CFLAGS="-g" 3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3249/* end confdefs.h. */ 3250 3251int 3252main () 3253{ 3254 3255 ; 3256 return 0; 3257} 3258_ACEOF 3259if ac_fn_c_try_compile "$LINENO"; then : 3260 ac_cv_prog_cc_g=yes 3261else 3262 CFLAGS="" 3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3264/* end confdefs.h. */ 3265 3266int 3267main () 3268{ 3269 3270 ; 3271 return 0; 3272} 3273_ACEOF 3274if ac_fn_c_try_compile "$LINENO"; then : 3275 3276else 3277 ac_c_werror_flag=$ac_save_c_werror_flag 3278 CFLAGS="-g" 3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3280/* end confdefs.h. */ 3281 3282int 3283main () 3284{ 3285 3286 ; 3287 return 0; 3288} 3289_ACEOF 3290if ac_fn_c_try_compile "$LINENO"; then : 3291 ac_cv_prog_cc_g=yes 3292fi 3293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3294fi 3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3296fi 3297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3298 ac_c_werror_flag=$ac_save_c_werror_flag 3299fi 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3301$as_echo "$ac_cv_prog_cc_g" >&6; } 3302if test "$ac_test_CFLAGS" = set; then 3303 CFLAGS=$ac_save_CFLAGS 3304elif test $ac_cv_prog_cc_g = yes; then 3305 if test "$GCC" = yes; then 3306 CFLAGS="-g -O2" 3307 else 3308 CFLAGS="-g" 3309 fi 3310else 3311 if test "$GCC" = yes; then 3312 CFLAGS="-O2" 3313 else 3314 CFLAGS= 3315 fi 3316fi 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3318$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3319if ${ac_cv_prog_cc_c89+:} false; then : 3320 $as_echo_n "(cached) " >&6 3321else 3322 ac_cv_prog_cc_c89=no 3323ac_save_CC=$CC 3324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3325/* end confdefs.h. */ 3326#include <stdarg.h> 3327#include <stdio.h> 3328struct stat; 3329/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3330struct buf { int x; }; 3331FILE * (*rcsopen) (struct buf *, struct stat *, int); 3332static char *e (p, i) 3333 char **p; 3334 int i; 3335{ 3336 return p[i]; 3337} 3338static char *f (char * (*g) (char **, int), char **p, ...) 3339{ 3340 char *s; 3341 va_list v; 3342 va_start (v,p); 3343 s = g (p, va_arg (v,int)); 3344 va_end (v); 3345 return s; 3346} 3347 3348/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3349 function prototypes and stuff, but not '\xHH' hex character constants. 3350 These don't provoke an error unfortunately, instead are silently treated 3351 as 'x'. The following induces an error, until -std is added to get 3352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3353 array size at least. It's necessary to write '\x00'==0 to get something 3354 that's true only with -std. */ 3355int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3356 3357/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3358 inside strings and character constants. */ 3359#define FOO(x) 'x' 3360int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3361 3362int test (int i, double x); 3363struct s1 {int (*f) (int a);}; 3364struct s2 {int (*f) (double a);}; 3365int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3366int argc; 3367char **argv; 3368int 3369main () 3370{ 3371return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3372 ; 3373 return 0; 3374} 3375_ACEOF 3376for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3378do 3379 CC="$ac_save_CC $ac_arg" 3380 if ac_fn_c_try_compile "$LINENO"; then : 3381 ac_cv_prog_cc_c89=$ac_arg 3382fi 3383rm -f core conftest.err conftest.$ac_objext 3384 test "x$ac_cv_prog_cc_c89" != "xno" && break 3385done 3386rm -f conftest.$ac_ext 3387CC=$ac_save_CC 3388 3389fi 3390# AC_CACHE_VAL 3391case "x$ac_cv_prog_cc_c89" in 3392 x) 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3394$as_echo "none needed" >&6; } ;; 3395 xno) 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3397$as_echo "unsupported" >&6; } ;; 3398 *) 3399 CC="$CC $ac_cv_prog_cc_c89" 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3401$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3402esac 3403if test "x$ac_cv_prog_cc_c89" != xno; then : 3404 3405fi 3406 3407ac_ext=c 3408ac_cpp='$CPP $CPPFLAGS' 3409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3411ac_compiler_gnu=$ac_cv_c_compiler_gnu 3412 3413 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 3415$as_echo_n "checking for inline... " >&6; } 3416if ${ac_cv_c_inline+:} false; then : 3417 $as_echo_n "(cached) " >&6 3418else 3419 ac_cv_c_inline=no 3420for ac_kw in inline __inline__ __inline; do 3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3422/* end confdefs.h. */ 3423#ifndef __cplusplus 3424typedef int foo_t; 3425static $ac_kw foo_t static_foo () {return 0; } 3426$ac_kw foo_t foo () {return 0; } 3427#endif 3428 3429_ACEOF 3430if ac_fn_c_try_compile "$LINENO"; then : 3431 ac_cv_c_inline=$ac_kw 3432fi 3433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3434 test "$ac_cv_c_inline" != no && break 3435done 3436 3437fi 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 3439$as_echo "$ac_cv_c_inline" >&6; } 3440 3441case $ac_cv_c_inline in 3442 inline | yes) ;; 3443 *) 3444 case $ac_cv_c_inline in 3445 no) ac_val=;; 3446 *) ac_val=$ac_cv_c_inline;; 3447 esac 3448 cat >>confdefs.h <<_ACEOF 3449#ifndef __cplusplus 3450#define inline $ac_val 3451#endif 3452_ACEOF 3453 ;; 3454esac 3455 3456 3457#-------------------------------------------------------------------- 3458# Supply a substitute for stdlib.h if it doesn't define strtol, 3459# strtoul, or strtod (which it doesn't in some versions of SunOS). 3460#-------------------------------------------------------------------- 3461 3462ac_ext=c 3463ac_cpp='$CPP $CPPFLAGS' 3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3466ac_compiler_gnu=$ac_cv_c_compiler_gnu 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3468$as_echo_n "checking how to run the C preprocessor... " >&6; } 3469# On Suns, sometimes $CPP names a directory. 3470if test -n "$CPP" && test -d "$CPP"; then 3471 CPP= 3472fi 3473if test -z "$CPP"; then 3474 if ${ac_cv_prog_CPP+:} false; then : 3475 $as_echo_n "(cached) " >&6 3476else 3477 # Double quotes because CPP needs to be expanded 3478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3479 do 3480 ac_preproc_ok=false 3481for ac_c_preproc_warn_flag in '' yes 3482do 3483 # Use a header file that comes with gcc, so configuring glibc 3484 # with a fresh cross-compiler works. 3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3486 # <limits.h> exists even on freestanding compilers. 3487 # On the NeXT, cc -E runs the code through the compiler's parser, 3488 # not just through cpp. "Syntax error" is here to catch this case. 3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3490/* end confdefs.h. */ 3491#ifdef __STDC__ 3492# include <limits.h> 3493#else 3494# include <assert.h> 3495#endif 3496 Syntax error 3497_ACEOF 3498if ac_fn_c_try_cpp "$LINENO"; then : 3499 3500else 3501 # Broken: fails on valid input. 3502continue 3503fi 3504rm -f conftest.err conftest.i conftest.$ac_ext 3505 3506 # OK, works on sane cases. Now check whether nonexistent headers 3507 # can be detected and how. 3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3509/* end confdefs.h. */ 3510#include <ac_nonexistent.h> 3511_ACEOF 3512if ac_fn_c_try_cpp "$LINENO"; then : 3513 # Broken: success on invalid input. 3514continue 3515else 3516 # Passes both tests. 3517ac_preproc_ok=: 3518break 3519fi 3520rm -f conftest.err conftest.i conftest.$ac_ext 3521 3522done 3523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3524rm -f conftest.i conftest.err conftest.$ac_ext 3525if $ac_preproc_ok; then : 3526 break 3527fi 3528 3529 done 3530 ac_cv_prog_CPP=$CPP 3531 3532fi 3533 CPP=$ac_cv_prog_CPP 3534else 3535 ac_cv_prog_CPP=$CPP 3536fi 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3538$as_echo "$CPP" >&6; } 3539ac_preproc_ok=false 3540for ac_c_preproc_warn_flag in '' yes 3541do 3542 # Use a header file that comes with gcc, so configuring glibc 3543 # with a fresh cross-compiler works. 3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3545 # <limits.h> exists even on freestanding compilers. 3546 # On the NeXT, cc -E runs the code through the compiler's parser, 3547 # not just through cpp. "Syntax error" is here to catch this case. 3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550#ifdef __STDC__ 3551# include <limits.h> 3552#else 3553# include <assert.h> 3554#endif 3555 Syntax error 3556_ACEOF 3557if ac_fn_c_try_cpp "$LINENO"; then : 3558 3559else 3560 # Broken: fails on valid input. 3561continue 3562fi 3563rm -f conftest.err conftest.i conftest.$ac_ext 3564 3565 # OK, works on sane cases. Now check whether nonexistent headers 3566 # can be detected and how. 3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3568/* end confdefs.h. */ 3569#include <ac_nonexistent.h> 3570_ACEOF 3571if ac_fn_c_try_cpp "$LINENO"; then : 3572 # Broken: success on invalid input. 3573continue 3574else 3575 # Passes both tests. 3576ac_preproc_ok=: 3577break 3578fi 3579rm -f conftest.err conftest.i conftest.$ac_ext 3580 3581done 3582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3583rm -f conftest.i conftest.err conftest.$ac_ext 3584if $ac_preproc_ok; then : 3585 3586else 3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3589as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3590See \`config.log' for more details" "$LINENO" 5; } 3591fi 3592 3593ac_ext=c 3594ac_cpp='$CPP $CPPFLAGS' 3595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3597ac_compiler_gnu=$ac_cv_c_compiler_gnu 3598 3599 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3601$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3602if ${ac_cv_path_GREP+:} false; then : 3603 $as_echo_n "(cached) " >&6 3604else 3605 if test -z "$GREP"; then 3606 ac_path_GREP_found=false 3607 # Loop through the user's path and test for each of PROGNAME-LIST 3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3610do 3611 IFS=$as_save_IFS 3612 test -z "$as_dir" && as_dir=. 3613 for ac_prog in grep ggrep; do 3614 for ac_exec_ext in '' $ac_executable_extensions; do 3615 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3616 as_fn_executable_p "$ac_path_GREP" || continue 3617# Check for GNU ac_path_GREP and select it if it is found. 3618 # Check for GNU $ac_path_GREP 3619case `"$ac_path_GREP" --version 2>&1` in 3620*GNU*) 3621 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3622*) 3623 ac_count=0 3624 $as_echo_n 0123456789 >"conftest.in" 3625 while : 3626 do 3627 cat "conftest.in" "conftest.in" >"conftest.tmp" 3628 mv "conftest.tmp" "conftest.in" 3629 cp "conftest.in" "conftest.nl" 3630 $as_echo 'GREP' >> "conftest.nl" 3631 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3633 as_fn_arith $ac_count + 1 && ac_count=$as_val 3634 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3635 # Best one so far, save it but keep looking for a better one 3636 ac_cv_path_GREP="$ac_path_GREP" 3637 ac_path_GREP_max=$ac_count 3638 fi 3639 # 10*(2^10) chars as input seems more than enough 3640 test $ac_count -gt 10 && break 3641 done 3642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3643esac 3644 3645 $ac_path_GREP_found && break 3 3646 done 3647 done 3648 done 3649IFS=$as_save_IFS 3650 if test -z "$ac_cv_path_GREP"; then 3651 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3652 fi 3653else 3654 ac_cv_path_GREP=$GREP 3655fi 3656 3657fi 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3659$as_echo "$ac_cv_path_GREP" >&6; } 3660 GREP="$ac_cv_path_GREP" 3661 3662 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3664$as_echo_n "checking for egrep... " >&6; } 3665if ${ac_cv_path_EGREP+:} false; then : 3666 $as_echo_n "(cached) " >&6 3667else 3668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3669 then ac_cv_path_EGREP="$GREP -E" 3670 else 3671 if test -z "$EGREP"; then 3672 ac_path_EGREP_found=false 3673 # Loop through the user's path and test for each of PROGNAME-LIST 3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3675for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3676do 3677 IFS=$as_save_IFS 3678 test -z "$as_dir" && as_dir=. 3679 for ac_prog in egrep; do 3680 for ac_exec_ext in '' $ac_executable_extensions; do 3681 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3682 as_fn_executable_p "$ac_path_EGREP" || continue 3683# Check for GNU ac_path_EGREP and select it if it is found. 3684 # Check for GNU $ac_path_EGREP 3685case `"$ac_path_EGREP" --version 2>&1` in 3686*GNU*) 3687 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3688*) 3689 ac_count=0 3690 $as_echo_n 0123456789 >"conftest.in" 3691 while : 3692 do 3693 cat "conftest.in" "conftest.in" >"conftest.tmp" 3694 mv "conftest.tmp" "conftest.in" 3695 cp "conftest.in" "conftest.nl" 3696 $as_echo 'EGREP' >> "conftest.nl" 3697 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3699 as_fn_arith $ac_count + 1 && ac_count=$as_val 3700 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3701 # Best one so far, save it but keep looking for a better one 3702 ac_cv_path_EGREP="$ac_path_EGREP" 3703 ac_path_EGREP_max=$ac_count 3704 fi 3705 # 10*(2^10) chars as input seems more than enough 3706 test $ac_count -gt 10 && break 3707 done 3708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3709esac 3710 3711 $ac_path_EGREP_found && break 3 3712 done 3713 done 3714 done 3715IFS=$as_save_IFS 3716 if test -z "$ac_cv_path_EGREP"; then 3717 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3718 fi 3719else 3720 ac_cv_path_EGREP=$EGREP 3721fi 3722 3723 fi 3724fi 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3726$as_echo "$ac_cv_path_EGREP" >&6; } 3727 EGREP="$ac_cv_path_EGREP" 3728 3729 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3731$as_echo_n "checking for ANSI C header files... " >&6; } 3732if ${ac_cv_header_stdc+:} false; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3736/* end confdefs.h. */ 3737#include <stdlib.h> 3738#include <stdarg.h> 3739#include <string.h> 3740#include <float.h> 3741 3742int 3743main () 3744{ 3745 3746 ; 3747 return 0; 3748} 3749_ACEOF 3750if ac_fn_c_try_compile "$LINENO"; then : 3751 ac_cv_header_stdc=yes 3752else 3753 ac_cv_header_stdc=no 3754fi 3755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3756 3757if test $ac_cv_header_stdc = yes; then 3758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760/* end confdefs.h. */ 3761#include <string.h> 3762 3763_ACEOF 3764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3765 $EGREP "memchr" >/dev/null 2>&1; then : 3766 3767else 3768 ac_cv_header_stdc=no 3769fi 3770rm -f conftest* 3771 3772fi 3773 3774if test $ac_cv_header_stdc = yes; then 3775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3777/* end confdefs.h. */ 3778#include <stdlib.h> 3779 3780_ACEOF 3781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3782 $EGREP "free" >/dev/null 2>&1; then : 3783 3784else 3785 ac_cv_header_stdc=no 3786fi 3787rm -f conftest* 3788 3789fi 3790 3791if test $ac_cv_header_stdc = yes; then 3792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3793 if test "$cross_compiling" = yes; then : 3794 : 3795else 3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3797/* end confdefs.h. */ 3798#include <ctype.h> 3799#include <stdlib.h> 3800#if ((' ' & 0x0FF) == 0x020) 3801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3803#else 3804# define ISLOWER(c) \ 3805 (('a' <= (c) && (c) <= 'i') \ 3806 || ('j' <= (c) && (c) <= 'r') \ 3807 || ('s' <= (c) && (c) <= 'z')) 3808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3809#endif 3810 3811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3812int 3813main () 3814{ 3815 int i; 3816 for (i = 0; i < 256; i++) 3817 if (XOR (islower (i), ISLOWER (i)) 3818 || toupper (i) != TOUPPER (i)) 3819 return 2; 3820 return 0; 3821} 3822_ACEOF 3823if ac_fn_c_try_run "$LINENO"; then : 3824 3825else 3826 ac_cv_header_stdc=no 3827fi 3828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3829 conftest.$ac_objext conftest.beam conftest.$ac_ext 3830fi 3831 3832fi 3833fi 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3835$as_echo "$ac_cv_header_stdc" >&6; } 3836if test $ac_cv_header_stdc = yes; then 3837 3838$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3839 3840fi 3841 3842# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3843for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3844 inttypes.h stdint.h unistd.h 3845do : 3846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3847ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3848" 3849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3850 cat >>confdefs.h <<_ACEOF 3851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3852_ACEOF 3853 3854fi 3855 3856done 3857 3858 3859ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 3860if test "x$ac_cv_header_stdlib_h" = xyes; then : 3861 tk_ok=1 3862else 3863 tk_ok=0 3864fi 3865 3866 3867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869#include <stdlib.h> 3870 3871_ACEOF 3872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3873 $EGREP "strtol" >/dev/null 2>&1; then : 3874 3875else 3876 tk_ok=0 3877fi 3878rm -f conftest* 3879 3880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3881/* end confdefs.h. */ 3882#include <stdlib.h> 3883 3884_ACEOF 3885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3886 $EGREP "strtoul" >/dev/null 2>&1; then : 3887 3888else 3889 tk_ok=0 3890fi 3891rm -f conftest* 3892 3893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3894/* end confdefs.h. */ 3895#include <stdlib.h> 3896 3897_ACEOF 3898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3899 $EGREP "strtod" >/dev/null 2>&1; then : 3900 3901else 3902 tk_ok=0 3903fi 3904rm -f conftest* 3905 3906if test $tk_ok = 0; then 3907 3908$as_echo "#define NO_STDLIB_H 1" >>confdefs.h 3909 3910fi 3911 3912#------------------------------------------------------------------------ 3913# If we're using GCC, see if the compiler understands -pipe. If so, use it. 3914# It makes compiling go faster. (This is only a performance feature.) 3915#------------------------------------------------------------------------ 3916 3917if test -z "$no_pipe" && test -n "$GCC"; then 3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5 3919$as_echo_n "checking if the compiler understands -pipe... " >&6; } 3920if ${tcl_cv_cc_pipe+:} false; then : 3921 $as_echo_n "(cached) " >&6 3922else 3923 3924 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3926/* end confdefs.h. */ 3927 3928int 3929main () 3930{ 3931 3932 ; 3933 return 0; 3934} 3935_ACEOF 3936if ac_fn_c_try_compile "$LINENO"; then : 3937 tcl_cv_cc_pipe=yes 3938else 3939 tcl_cv_cc_pipe=no 3940fi 3941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3942 CFLAGS=$hold_cflags 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5 3945$as_echo "$tcl_cv_cc_pipe" >&6; } 3946 if test $tcl_cv_cc_pipe = yes; then 3947 CFLAGS="$CFLAGS -pipe" 3948 fi 3949fi 3950 3951#------------------------------------------------------------------------ 3952# Threads support - this auto-enables if Tcl was compiled threaded 3953#------------------------------------------------------------------------ 3954 3955 3956 # Check whether --enable-threads was given. 3957if test "${enable_threads+set}" = set; then : 3958 enableval=$enable_threads; tcl_ok=$enableval 3959else 3960 tcl_ok=yes 3961fi 3962 3963 3964 if test "${TCL_THREADS}" = 1; then 3965 tcl_threaded_core=1; 3966 fi 3967 3968 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 3969 TCL_THREADS=1 3970 # USE_THREAD_ALLOC tells us to try the special thread-based 3971 # allocator that significantly reduces lock contention 3972 3973$as_echo "#define USE_THREAD_ALLOC 1" >>confdefs.h 3974 3975 3976$as_echo "#define _REENTRANT 1" >>confdefs.h 3977 3978 if test "`uname -s`" = "SunOS" ; then 3979 3980$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3981 3982 fi 3983 3984$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 3985 3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 3987$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 3988if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : 3989 $as_echo_n "(cached) " >&6 3990else 3991 ac_check_lib_save_LIBS=$LIBS 3992LIBS="-lpthread $LIBS" 3993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995 3996/* Override any GCC internal prototype to avoid an error. 3997 Use char because int might match the return type of a GCC 3998 builtin and then its argument prototype would still apply. */ 3999#ifdef __cplusplus 4000extern "C" 4001#endif 4002char pthread_mutex_init (); 4003int 4004main () 4005{ 4006return pthread_mutex_init (); 4007 ; 4008 return 0; 4009} 4010_ACEOF 4011if ac_fn_c_try_link "$LINENO"; then : 4012 ac_cv_lib_pthread_pthread_mutex_init=yes 4013else 4014 ac_cv_lib_pthread_pthread_mutex_init=no 4015fi 4016rm -f core conftest.err conftest.$ac_objext \ 4017 conftest$ac_exeext conftest.$ac_ext 4018LIBS=$ac_check_lib_save_LIBS 4019fi 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 4021$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 4022if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : 4023 tcl_ok=yes 4024else 4025 tcl_ok=no 4026fi 4027 4028 if test "$tcl_ok" = "no"; then 4029 # Check a little harder for __pthread_mutex_init in the same 4030 # library, as some systems hide it there until pthread.h is 4031 # defined. We could alternatively do an AC_TRY_COMPILE with 4032 # pthread.h, but that will work with libpthread really doesn't 4033 # exist, like AIX 4.2. [Bug: 4359] 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5 4035$as_echo_n "checking for __pthread_mutex_init in -lpthread... " >&6; } 4036if ${ac_cv_lib_pthread___pthread_mutex_init+:} false; then : 4037 $as_echo_n "(cached) " >&6 4038else 4039 ac_check_lib_save_LIBS=$LIBS 4040LIBS="-lpthread $LIBS" 4041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4042/* end confdefs.h. */ 4043 4044/* Override any GCC internal prototype to avoid an error. 4045 Use char because int might match the return type of a GCC 4046 builtin and then its argument prototype would still apply. */ 4047#ifdef __cplusplus 4048extern "C" 4049#endif 4050char __pthread_mutex_init (); 4051int 4052main () 4053{ 4054return __pthread_mutex_init (); 4055 ; 4056 return 0; 4057} 4058_ACEOF 4059if ac_fn_c_try_link "$LINENO"; then : 4060 ac_cv_lib_pthread___pthread_mutex_init=yes 4061else 4062 ac_cv_lib_pthread___pthread_mutex_init=no 4063fi 4064rm -f core conftest.err conftest.$ac_objext \ 4065 conftest$ac_exeext conftest.$ac_ext 4066LIBS=$ac_check_lib_save_LIBS 4067fi 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 4069$as_echo "$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 4070if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes; then : 4071 tcl_ok=yes 4072else 4073 tcl_ok=no 4074fi 4075 4076 fi 4077 4078 if test "$tcl_ok" = "yes"; then 4079 # The space is needed 4080 THREADS_LIBS=" -lpthread" 4081 else 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5 4083$as_echo_n "checking for pthread_mutex_init in -lpthreads... " >&6; } 4084if ${ac_cv_lib_pthreads_pthread_mutex_init+:} false; then : 4085 $as_echo_n "(cached) " >&6 4086else 4087 ac_check_lib_save_LIBS=$LIBS 4088LIBS="-lpthreads $LIBS" 4089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4090/* end confdefs.h. */ 4091 4092/* Override any GCC internal prototype to avoid an error. 4093 Use char because int might match the return type of a GCC 4094 builtin and then its argument prototype would still apply. */ 4095#ifdef __cplusplus 4096extern "C" 4097#endif 4098char pthread_mutex_init (); 4099int 4100main () 4101{ 4102return pthread_mutex_init (); 4103 ; 4104 return 0; 4105} 4106_ACEOF 4107if ac_fn_c_try_link "$LINENO"; then : 4108 ac_cv_lib_pthreads_pthread_mutex_init=yes 4109else 4110 ac_cv_lib_pthreads_pthread_mutex_init=no 4111fi 4112rm -f core conftest.err conftest.$ac_objext \ 4113 conftest$ac_exeext conftest.$ac_ext 4114LIBS=$ac_check_lib_save_LIBS 4115fi 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 4117$as_echo "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 4118if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes; then : 4119 tcl_ok=yes 4120else 4121 tcl_ok=no 4122fi 4123 4124 if test "$tcl_ok" = "yes"; then 4125 # The space is needed 4126 THREADS_LIBS=" -lpthreads" 4127 else 4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5 4129$as_echo_n "checking for pthread_mutex_init in -lc... " >&6; } 4130if ${ac_cv_lib_c_pthread_mutex_init+:} false; then : 4131 $as_echo_n "(cached) " >&6 4132else 4133 ac_check_lib_save_LIBS=$LIBS 4134LIBS="-lc $LIBS" 4135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137 4138/* Override any GCC internal prototype to avoid an error. 4139 Use char because int might match the return type of a GCC 4140 builtin and then its argument prototype would still apply. */ 4141#ifdef __cplusplus 4142extern "C" 4143#endif 4144char pthread_mutex_init (); 4145int 4146main () 4147{ 4148return pthread_mutex_init (); 4149 ; 4150 return 0; 4151} 4152_ACEOF 4153if ac_fn_c_try_link "$LINENO"; then : 4154 ac_cv_lib_c_pthread_mutex_init=yes 4155else 4156 ac_cv_lib_c_pthread_mutex_init=no 4157fi 4158rm -f core conftest.err conftest.$ac_objext \ 4159 conftest$ac_exeext conftest.$ac_ext 4160LIBS=$ac_check_lib_save_LIBS 4161fi 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5 4163$as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; } 4164if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then : 4165 tcl_ok=yes 4166else 4167 tcl_ok=no 4168fi 4169 4170 if test "$tcl_ok" = "no"; then 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5 4172$as_echo_n "checking for pthread_mutex_init in -lc_r... " >&6; } 4173if ${ac_cv_lib_c_r_pthread_mutex_init+:} false; then : 4174 $as_echo_n "(cached) " >&6 4175else 4176 ac_check_lib_save_LIBS=$LIBS 4177LIBS="-lc_r $LIBS" 4178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4179/* end confdefs.h. */ 4180 4181/* Override any GCC internal prototype to avoid an error. 4182 Use char because int might match the return type of a GCC 4183 builtin and then its argument prototype would still apply. */ 4184#ifdef __cplusplus 4185extern "C" 4186#endif 4187char pthread_mutex_init (); 4188int 4189main () 4190{ 4191return pthread_mutex_init (); 4192 ; 4193 return 0; 4194} 4195_ACEOF 4196if ac_fn_c_try_link "$LINENO"; then : 4197 ac_cv_lib_c_r_pthread_mutex_init=yes 4198else 4199 ac_cv_lib_c_r_pthread_mutex_init=no 4200fi 4201rm -f core conftest.err conftest.$ac_objext \ 4202 conftest$ac_exeext conftest.$ac_ext 4203LIBS=$ac_check_lib_save_LIBS 4204fi 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 4206$as_echo "$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 4207if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes; then : 4208 tcl_ok=yes 4209else 4210 tcl_ok=no 4211fi 4212 4213 if test "$tcl_ok" = "yes"; then 4214 # The space is needed 4215 THREADS_LIBS=" -pthread" 4216 else 4217 TCL_THREADS=0 4218 { $as_echo "$as_me:${as_lineno-$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 4219$as_echo "$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;} 4220 fi 4221 fi 4222 fi 4223 fi 4224 4225 # Does the pthread-implementation provide 4226 # 'pthread_attr_setstacksize' ? 4227 4228 ac_saved_libs=$LIBS 4229 LIBS="$LIBS $THREADS_LIBS" 4230 for ac_func in pthread_attr_setstacksize pthread_atfork 4231do : 4232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4233ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4234if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4235 cat >>confdefs.h <<_ACEOF 4236#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4237_ACEOF 4238 4239fi 4240done 4241 4242 LIBS=$ac_saved_libs 4243 else 4244 TCL_THREADS=0 4245 fi 4246 # Do checking message here to not mess up interleaved configure output 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5 4248$as_echo_n "checking for building with threads... " >&6; } 4249 if test "${TCL_THREADS}" = 1; then 4250 4251$as_echo "#define TCL_THREADS 1" >>confdefs.h 4252 4253 if test "${tcl_threaded_core}" = 1; then 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (threaded core)" >&5 4255$as_echo "yes (threaded core)" >&6; } 4256 else 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4258$as_echo "yes" >&6; } 4259 fi 4260 else 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4262$as_echo "no" >&6; } 4263 fi 4264 4265 4266 4267 4268# Add the threads support libraries 4269LIBS="$LIBS$THREADS_LIBS" 4270 4271 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 4273$as_echo_n "checking how to build libraries... " >&6; } 4274 # Check whether --enable-shared was given. 4275if test "${enable_shared+set}" = set; then : 4276 enableval=$enable_shared; tcl_ok=$enableval 4277else 4278 tcl_ok=yes 4279fi 4280 4281 if test "$tcl_ok" = "yes" ; then 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 4283$as_echo "shared" >&6; } 4284 SHARED_BUILD=1 4285 else 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 4287$as_echo "static" >&6; } 4288 SHARED_BUILD=0 4289 4290$as_echo "#define STATIC_BUILD 1" >>confdefs.h 4291 4292 fi 4293 4294 4295 4296#-------------------------------------------------------------------- 4297# The statements below define a collection of compile flags. This 4298# macro depends on the value of SHARED_BUILD, and should be called 4299# after SC_ENABLE_SHARED checks the configure switches. 4300#-------------------------------------------------------------------- 4301 4302if test -n "$ac_tool_prefix"; then 4303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4304set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4306$as_echo_n "checking for $ac_word... " >&6; } 4307if ${ac_cv_prog_RANLIB+:} false; then : 4308 $as_echo_n "(cached) " >&6 4309else 4310 if test -n "$RANLIB"; then 4311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4312else 4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4314for as_dir in $PATH 4315do 4316 IFS=$as_save_IFS 4317 test -z "$as_dir" && as_dir=. 4318 for ac_exec_ext in '' $ac_executable_extensions; do 4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4322 break 2 4323 fi 4324done 4325 done 4326IFS=$as_save_IFS 4327 4328fi 4329fi 4330RANLIB=$ac_cv_prog_RANLIB 4331if test -n "$RANLIB"; then 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4333$as_echo "$RANLIB" >&6; } 4334else 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4336$as_echo "no" >&6; } 4337fi 4338 4339 4340fi 4341if test -z "$ac_cv_prog_RANLIB"; then 4342 ac_ct_RANLIB=$RANLIB 4343 # Extract the first word of "ranlib", so it can be a program name with args. 4344set dummy ranlib; ac_word=$2 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4346$as_echo_n "checking for $ac_word... " >&6; } 4347if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4348 $as_echo_n "(cached) " >&6 4349else 4350 if test -n "$ac_ct_RANLIB"; then 4351 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4352else 4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4354for as_dir in $PATH 4355do 4356 IFS=$as_save_IFS 4357 test -z "$as_dir" && as_dir=. 4358 for ac_exec_ext in '' $ac_executable_extensions; do 4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4360 ac_cv_prog_ac_ct_RANLIB="ranlib" 4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4362 break 2 4363 fi 4364done 4365 done 4366IFS=$as_save_IFS 4367 4368fi 4369fi 4370ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4371if test -n "$ac_ct_RANLIB"; then 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4373$as_echo "$ac_ct_RANLIB" >&6; } 4374else 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4376$as_echo "no" >&6; } 4377fi 4378 4379 if test "x$ac_ct_RANLIB" = x; then 4380 RANLIB=":" 4381 else 4382 case $cross_compiling:$ac_tool_warned in 4383yes:) 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4386ac_tool_warned=yes ;; 4387esac 4388 RANLIB=$ac_ct_RANLIB 4389 fi 4390else 4391 RANLIB="$ac_cv_prog_RANLIB" 4392fi 4393 4394 4395 4396 # Step 0.a: Enable 64 bit support? 4397 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 4399$as_echo_n "checking if 64bit support is requested... " >&6; } 4400 # Check whether --enable-64bit was given. 4401if test "${enable_64bit+set}" = set; then : 4402 enableval=$enable_64bit; do64bit=$enableval 4403else 4404 do64bit=no 4405fi 4406 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 4408$as_echo "$do64bit" >&6; } 4409 4410 # Step 0.b: Enable Solaris 64 bit VIS support? 4411 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 4413$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } 4414 # Check whether --enable-64bit-vis was given. 4415if test "${enable_64bit_vis+set}" = set; then : 4416 enableval=$enable_64bit_vis; do64bitVIS=$enableval 4417else 4418 do64bitVIS=no 4419fi 4420 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 4422$as_echo "$do64bitVIS" >&6; } 4423 # Force 64bit on with VIS 4424 if test "$do64bitVIS" = "yes"; then : 4425 do64bit=yes 4426fi 4427 4428 # Step 0.c: Check if visibility support is available. Do this here so 4429 # that platform specific alternatives can be used below if this fails. 4430 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5 4432$as_echo_n "checking if compiler supports visibility \"hidden\"... " >&6; } 4433if ${tcl_cv_cc_visibility_hidden+:} false; then : 4434 $as_echo_n "(cached) " >&6 4435else 4436 4437 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439/* end confdefs.h. */ 4440 4441 extern __attribute__((__visibility__("hidden"))) void f(void); 4442 void f(void) {} 4443int 4444main () 4445{ 4446f(); 4447 ; 4448 return 0; 4449} 4450_ACEOF 4451if ac_fn_c_try_link "$LINENO"; then : 4452 tcl_cv_cc_visibility_hidden=yes 4453else 4454 tcl_cv_cc_visibility_hidden=no 4455fi 4456rm -f core conftest.err conftest.$ac_objext \ 4457 conftest$ac_exeext conftest.$ac_ext 4458 CFLAGS=$hold_cflags 4459fi 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5 4461$as_echo "$tcl_cv_cc_visibility_hidden" >&6; } 4462 if test $tcl_cv_cc_visibility_hidden = yes; then : 4463 4464 4465$as_echo "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h 4466 4467 4468$as_echo "#define HAVE_HIDDEN 1" >>confdefs.h 4469 4470 4471fi 4472 4473 # Step 0.d: Disable -rpath support? 4474 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5 4476$as_echo_n "checking if rpath support is requested... " >&6; } 4477 # Check whether --enable-rpath was given. 4478if test "${enable_rpath+set}" = set; then : 4479 enableval=$enable_rpath; doRpath=$enableval 4480else 4481 doRpath=yes 4482fi 4483 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5 4485$as_echo "$doRpath" >&6; } 4486 4487 # Step 1: set the variable "system" to hold the name and version number 4488 # for the system. 4489 4490 4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 4492$as_echo_n "checking system version... " >&6; } 4493if ${tcl_cv_sys_version+:} false; then : 4494 $as_echo_n "(cached) " >&6 4495else 4496 4497 if test -f /usr/lib/NextStep/software_version; then 4498 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 4499 else 4500 tcl_cv_sys_version=`uname -s`-`uname -r` 4501 if test "$?" -ne 0 ; then 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 4503$as_echo "$as_me: WARNING: can't find uname command" >&2;} 4504 tcl_cv_sys_version=unknown 4505 else 4506 # Special check for weird MP-RAS system (uname returns weird 4507 # results, and the version is kept in special file). 4508 4509 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 4510 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 4511 fi 4512 if test "`uname -s`" = "AIX" ; then 4513 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 4514 fi 4515 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then 4516 tcl_cv_sys_version=NetBSD-Debian 4517 fi 4518 fi 4519 fi 4520 4521fi 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 4523$as_echo "$tcl_cv_sys_version" >&6; } 4524 system=$tcl_cv_sys_version 4525 4526 4527 # Step 2: check for existence of -ldl library. This is needed because 4528 # Linux can use either -ldl or -ldld for dynamic loading. 4529 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 4531$as_echo_n "checking for dlopen in -ldl... " >&6; } 4532if ${ac_cv_lib_dl_dlopen+:} false; then : 4533 $as_echo_n "(cached) " >&6 4534else 4535 ac_check_lib_save_LIBS=$LIBS 4536LIBS="-ldl $LIBS" 4537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4538/* end confdefs.h. */ 4539 4540/* Override any GCC internal prototype to avoid an error. 4541 Use char because int might match the return type of a GCC 4542 builtin and then its argument prototype would still apply. */ 4543#ifdef __cplusplus 4544extern "C" 4545#endif 4546char dlopen (); 4547int 4548main () 4549{ 4550return dlopen (); 4551 ; 4552 return 0; 4553} 4554_ACEOF 4555if ac_fn_c_try_link "$LINENO"; then : 4556 ac_cv_lib_dl_dlopen=yes 4557else 4558 ac_cv_lib_dl_dlopen=no 4559fi 4560rm -f core conftest.err conftest.$ac_objext \ 4561 conftest$ac_exeext conftest.$ac_ext 4562LIBS=$ac_check_lib_save_LIBS 4563fi 4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 4565$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 4566if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 4567 have_dl=yes 4568else 4569 have_dl=no 4570fi 4571 4572 4573 # Require ranlib early so we can override it in special cases below. 4574 4575 4576 4577 # Step 3: set configuration options based on system name and version. 4578 4579 do64bit_ok=no 4580 # default to '{$LIBS}' and set to "" on per-platform necessary basis 4581 SHLIB_LD_LIBS='${LIBS}' 4582 LDFLAGS_ORIG="$LDFLAGS" 4583 # When ld needs options to work in 64-bit mode, put them in 4584 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 4585 # is disabled by the user. [Bug 1016796] 4586 LDFLAGS_ARCH="" 4587 UNSHARED_LIB_SUFFIX="" 4588 TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' 4589 ECHO_VERSION='`echo ${VERSION}`' 4590 TCL_LIB_VERSIONS_OK=ok 4591 CFLAGS_DEBUG=-g 4592 if test "$GCC" = yes; then : 4593 4594 CFLAGS_OPTIMIZE=-O2 4595 CFLAGS_WARNING="-Wall -Wpointer-arith" 4596 4597else 4598 4599 CFLAGS_OPTIMIZE=-O 4600 CFLAGS_WARNING="" 4601 4602fi 4603 if test -n "$ac_tool_prefix"; then 4604 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4605set dummy ${ac_tool_prefix}ar; ac_word=$2 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4607$as_echo_n "checking for $ac_word... " >&6; } 4608if ${ac_cv_prog_AR+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 if test -n "$AR"; then 4612 ac_cv_prog_AR="$AR" # Let the user override the test. 4613else 4614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4615for as_dir in $PATH 4616do 4617 IFS=$as_save_IFS 4618 test -z "$as_dir" && as_dir=. 4619 for ac_exec_ext in '' $ac_executable_extensions; do 4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4621 ac_cv_prog_AR="${ac_tool_prefix}ar" 4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4623 break 2 4624 fi 4625done 4626 done 4627IFS=$as_save_IFS 4628 4629fi 4630fi 4631AR=$ac_cv_prog_AR 4632if test -n "$AR"; then 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4634$as_echo "$AR" >&6; } 4635else 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4637$as_echo "no" >&6; } 4638fi 4639 4640 4641fi 4642if test -z "$ac_cv_prog_AR"; then 4643 ac_ct_AR=$AR 4644 # Extract the first word of "ar", so it can be a program name with args. 4645set dummy ar; ac_word=$2 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4647$as_echo_n "checking for $ac_word... " >&6; } 4648if ${ac_cv_prog_ac_ct_AR+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 if test -n "$ac_ct_AR"; then 4652 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4653else 4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4655for as_dir in $PATH 4656do 4657 IFS=$as_save_IFS 4658 test -z "$as_dir" && as_dir=. 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4661 ac_cv_prog_ac_ct_AR="ar" 4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4663 break 2 4664 fi 4665done 4666 done 4667IFS=$as_save_IFS 4668 4669fi 4670fi 4671ac_ct_AR=$ac_cv_prog_ac_ct_AR 4672if test -n "$ac_ct_AR"; then 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4674$as_echo "$ac_ct_AR" >&6; } 4675else 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4677$as_echo "no" >&6; } 4678fi 4679 4680 if test "x$ac_ct_AR" = x; then 4681 AR="" 4682 else 4683 case $cross_compiling:$ac_tool_warned in 4684yes:) 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4687ac_tool_warned=yes ;; 4688esac 4689 AR=$ac_ct_AR 4690 fi 4691else 4692 AR="$ac_cv_prog_AR" 4693fi 4694 4695 STLIB_LD='${AR} cr' 4696 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 4697 PLAT_OBJS="" 4698 PLAT_SRCS="" 4699 LDAIX_SRC="" 4700 if test "x${SHLIB_VERSION}" = x; then : 4701 SHLIB_VERSION=".1.0" 4702else 4703 SHLIB_VERSION=".${SHLIB_VERSION}" 4704fi 4705 case $system in 4706 AIX-*) 4707 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then : 4708 4709 # AIX requires the _r compiler when gcc isn't being used 4710 case "${CC}" in 4711 *_r|*_r\ *) 4712 # ok ... 4713 ;; 4714 *) 4715 # Make sure only first arg gets _r 4716 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 4717 ;; 4718 esac 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 4720$as_echo "Using $CC for compiling with threads" >&6; } 4721 4722fi 4723 LIBS="$LIBS -lc" 4724 SHLIB_CFLAGS="" 4725 SHLIB_SUFFIX=".so" 4726 4727 DL_OBJS="tclLoadDl.o" 4728 LD_LIBRARY_PATH_VAR="LIBPATH" 4729 4730 # ldAix No longer needed with use of -bexpall/-brtl 4731 # but some extensions may still reference it 4732 LDAIX_SRC='$(UNIX_DIR)/ldAix' 4733 4734 # Check to enable 64-bit flags for compiler/linker 4735 if test "$do64bit" = yes; then : 4736 4737 if test "$GCC" = yes; then : 4738 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 4740$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 4741 4742else 4743 4744 do64bit_ok=yes 4745 CFLAGS="$CFLAGS -q64" 4746 LDFLAGS_ARCH="-q64" 4747 RANLIB="${RANLIB} -X64" 4748 AR="${AR} -X64" 4749 SHLIB_LD_FLAGS="-b64" 4750 4751fi 4752 4753fi 4754 4755 if test "`uname -m`" = ia64; then : 4756 4757 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 4758 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 4759 # AIX-5 has dl* in libc.so 4760 DL_LIBS="" 4761 if test "$GCC" = yes; then : 4762 4763 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 4764 4765else 4766 4767 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 4768 4769fi 4770 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 4771 4772else 4773 4774 if test "$GCC" = yes; then : 4775 4776 SHLIB_LD='${CC} -shared -Wl,-bexpall' 4777 4778else 4779 4780 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 4781 LDFLAGS="$LDFLAGS -brtl" 4782 4783fi 4784 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 4785 DL_LIBS="-ldl" 4786 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 4787 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4788 4789fi 4790 ;; 4791 BeOS*) 4792 SHLIB_CFLAGS="-fPIC" 4793 SHLIB_LD='${CC} -nostart' 4794 SHLIB_SUFFIX=".so" 4795 DL_OBJS="tclLoadDl.o" 4796 DL_LIBS="-ldl" 4797 4798 #----------------------------------------------------------- 4799 # Check for inet_ntoa in -lbind, for BeOS (which also needs 4800 # -lsocket, even if the network functions are in -lnet which 4801 # is always linked to, for compatibility. 4802 #----------------------------------------------------------- 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 4804$as_echo_n "checking for inet_ntoa in -lbind... " >&6; } 4805if ${ac_cv_lib_bind_inet_ntoa+:} false; then : 4806 $as_echo_n "(cached) " >&6 4807else 4808 ac_check_lib_save_LIBS=$LIBS 4809LIBS="-lbind $LIBS" 4810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4811/* end confdefs.h. */ 4812 4813/* Override any GCC internal prototype to avoid an error. 4814 Use char because int might match the return type of a GCC 4815 builtin and then its argument prototype would still apply. */ 4816#ifdef __cplusplus 4817extern "C" 4818#endif 4819char inet_ntoa (); 4820int 4821main () 4822{ 4823return inet_ntoa (); 4824 ; 4825 return 0; 4826} 4827_ACEOF 4828if ac_fn_c_try_link "$LINENO"; then : 4829 ac_cv_lib_bind_inet_ntoa=yes 4830else 4831 ac_cv_lib_bind_inet_ntoa=no 4832fi 4833rm -f core conftest.err conftest.$ac_objext \ 4834 conftest$ac_exeext conftest.$ac_ext 4835LIBS=$ac_check_lib_save_LIBS 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 4838$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } 4839if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : 4840 LIBS="$LIBS -lbind -lsocket" 4841fi 4842 4843 ;; 4844 BSD/OS-2.1*|BSD/OS-3*) 4845 SHLIB_CFLAGS="" 4846 SHLIB_LD="shlicc -r" 4847 SHLIB_SUFFIX=".so" 4848 DL_OBJS="tclLoadDl.o" 4849 DL_LIBS="-ldl" 4850 CC_SEARCH_FLAGS="" 4851 LD_SEARCH_FLAGS="" 4852 ;; 4853 BSD/OS-4.*) 4854 SHLIB_CFLAGS="-export-dynamic -fPIC" 4855 SHLIB_LD='${CC} -shared' 4856 SHLIB_SUFFIX=".so" 4857 DL_OBJS="tclLoadDl.o" 4858 DL_LIBS="-ldl" 4859 LDFLAGS="$LDFLAGS -export-dynamic" 4860 CC_SEARCH_FLAGS="" 4861 LD_SEARCH_FLAGS="" 4862 ;; 4863 CYGWIN_*|MINGW32_*|MSYS_*) 4864 SHLIB_CFLAGS="" 4865 SHLIB_LD='${CC} -shared' 4866 SHLIB_SUFFIX=".dll" 4867 DL_OBJS="tclLoadDl.o" 4868 PLAT_OBJS='${CYGWIN_OBJS}' 4869 PLAT_SRCS='${CYGWIN_SRCS}' 4870 DL_LIBS="-ldl" 4871 CC_SEARCH_FLAGS="" 4872 LD_SEARCH_FLAGS="" 4873 TCL_NEEDS_EXP_FILE=1 4874 TCL_EXPORT_FILE_SUFFIX='${VERSION}.dll.a' 4875 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a" 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cygwin version of gcc" >&5 4877$as_echo_n "checking for Cygwin version of gcc... " >&6; } 4878if ${ac_cv_cygwin+:} false; then : 4879 $as_echo_n "(cached) " >&6 4880else 4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4882/* end confdefs.h. */ 4883 4884 #ifdef __CYGWIN__ 4885 #error cygwin 4886 #endif 4887 4888int 4889main () 4890{ 4891 4892 ; 4893 return 0; 4894} 4895_ACEOF 4896if ac_fn_c_try_compile "$LINENO"; then : 4897 ac_cv_cygwin=no 4898else 4899 ac_cv_cygwin=yes 4900fi 4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4902 4903fi 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cygwin" >&5 4905$as_echo "$ac_cv_cygwin" >&6; } 4906 if test "$ac_cv_cygwin" = "no"; then 4907 as_fn_error $? "${CC} is not a cygwin compiler." "$LINENO" 5 4908 fi 4909 if test "x${TCL_THREADS}" = "x0"; then 4910 as_fn_error $? "CYGWIN compile is only supported with --enable-threads" "$LINENO" 5 4911 fi 4912 do64bit_ok=yes 4913 if test "x${SHARED_BUILD}" = "x1"; then 4914 echo "running cd ../win; ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args" 4915 # The eval makes quoting arguments work. 4916 if cd ../win; eval ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args; cd ../unix 4917 then : 4918 else 4919 { echo "configure: error: configure failed for ../win" 1>&2; exit 1; } 4920 fi 4921 fi 4922 ;; 4923 dgux*) 4924 SHLIB_CFLAGS="-K PIC" 4925 SHLIB_LD='${CC} -G' 4926 SHLIB_LD_LIBS="" 4927 SHLIB_SUFFIX=".so" 4928 DL_OBJS="tclLoadDl.o" 4929 DL_LIBS="-ldl" 4930 CC_SEARCH_FLAGS="" 4931 LD_SEARCH_FLAGS="" 4932 ;; 4933 Haiku*) 4934 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 4935 SHLIB_CFLAGS="-fPIC" 4936 SHLIB_SUFFIX=".so" 4937 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared' 4938 DL_OBJS="tclLoadDl.o" 4939 DL_LIBS="-lroot" 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5 4941$as_echo_n "checking for inet_ntoa in -lnetwork... " >&6; } 4942if ${ac_cv_lib_network_inet_ntoa+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 ac_check_lib_save_LIBS=$LIBS 4946LIBS="-lnetwork $LIBS" 4947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948/* end confdefs.h. */ 4949 4950/* Override any GCC internal prototype to avoid an error. 4951 Use char because int might match the return type of a GCC 4952 builtin and then its argument prototype would still apply. */ 4953#ifdef __cplusplus 4954extern "C" 4955#endif 4956char inet_ntoa (); 4957int 4958main () 4959{ 4960return inet_ntoa (); 4961 ; 4962 return 0; 4963} 4964_ACEOF 4965if ac_fn_c_try_link "$LINENO"; then : 4966 ac_cv_lib_network_inet_ntoa=yes 4967else 4968 ac_cv_lib_network_inet_ntoa=no 4969fi 4970rm -f core conftest.err conftest.$ac_objext \ 4971 conftest$ac_exeext conftest.$ac_ext 4972LIBS=$ac_check_lib_save_LIBS 4973fi 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5 4975$as_echo "$ac_cv_lib_network_inet_ntoa" >&6; } 4976if test "x$ac_cv_lib_network_inet_ntoa" = xyes; then : 4977 LIBS="$LIBS -lnetwork" 4978fi 4979 4980 ;; 4981 HP-UX-*.11.*) 4982 # Use updated header definitions where possible 4983 4984$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 4985 4986 4987$as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h 4988 4989 LIBS="$LIBS -lxnet" # Use the XOPEN network library 4990 4991 if test "`uname -m`" = ia64; then : 4992 4993 SHLIB_SUFFIX=".so" 4994 4995else 4996 4997 SHLIB_SUFFIX=".sl" 4998 4999fi 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 5001$as_echo_n "checking for shl_load in -ldld... " >&6; } 5002if ${ac_cv_lib_dld_shl_load+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 ac_check_lib_save_LIBS=$LIBS 5006LIBS="-ldld $LIBS" 5007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008/* end confdefs.h. */ 5009 5010/* Override any GCC internal prototype to avoid an error. 5011 Use char because int might match the return type of a GCC 5012 builtin and then its argument prototype would still apply. */ 5013#ifdef __cplusplus 5014extern "C" 5015#endif 5016char shl_load (); 5017int 5018main () 5019{ 5020return shl_load (); 5021 ; 5022 return 0; 5023} 5024_ACEOF 5025if ac_fn_c_try_link "$LINENO"; then : 5026 ac_cv_lib_dld_shl_load=yes 5027else 5028 ac_cv_lib_dld_shl_load=no 5029fi 5030rm -f core conftest.err conftest.$ac_objext \ 5031 conftest$ac_exeext conftest.$ac_ext 5032LIBS=$ac_check_lib_save_LIBS 5033fi 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 5035$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 5036if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 5037 tcl_ok=yes 5038else 5039 tcl_ok=no 5040fi 5041 5042 if test "$tcl_ok" = yes; then : 5043 5044 SHLIB_CFLAGS="+z" 5045 SHLIB_LD="ld -b" 5046 DL_OBJS="tclLoadShl.o" 5047 DL_LIBS="-ldld" 5048 LDFLAGS="$LDFLAGS -Wl,-E" 5049 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 5050 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 5051 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 5052 5053fi 5054 if test "$GCC" = yes; then : 5055 5056 SHLIB_LD='${CC} -shared' 5057 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5058 5059else 5060 5061 CFLAGS="$CFLAGS -z" 5062 5063fi 5064 5065 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 5066 #CFLAGS="$CFLAGS +DAportable" 5067 5068 # Check to enable 64-bit flags for compiler/linker 5069 if test "$do64bit" = "yes"; then : 5070 5071 if test "$GCC" = yes; then : 5072 5073 case `${CC} -dumpmachine` in 5074 hppa64*) 5075 # 64-bit gcc in use. Fix flags for GNU ld. 5076 do64bit_ok=yes 5077 SHLIB_LD='${CC} -shared' 5078 if test $doRpath = yes; then : 5079 5080 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' 5081fi 5082 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5083 ;; 5084 *) 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 5086$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 5087 ;; 5088 esac 5089 5090else 5091 5092 do64bit_ok=yes 5093 CFLAGS="$CFLAGS +DD64" 5094 LDFLAGS_ARCH="+DD64" 5095 5096fi 5097 5098fi ;; 5099 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 5100 SHLIB_SUFFIX=".sl" 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 5102$as_echo_n "checking for shl_load in -ldld... " >&6; } 5103if ${ac_cv_lib_dld_shl_load+:} false; then : 5104 $as_echo_n "(cached) " >&6 5105else 5106 ac_check_lib_save_LIBS=$LIBS 5107LIBS="-ldld $LIBS" 5108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109/* end confdefs.h. */ 5110 5111/* Override any GCC internal prototype to avoid an error. 5112 Use char because int might match the return type of a GCC 5113 builtin and then its argument prototype would still apply. */ 5114#ifdef __cplusplus 5115extern "C" 5116#endif 5117char shl_load (); 5118int 5119main () 5120{ 5121return shl_load (); 5122 ; 5123 return 0; 5124} 5125_ACEOF 5126if ac_fn_c_try_link "$LINENO"; then : 5127 ac_cv_lib_dld_shl_load=yes 5128else 5129 ac_cv_lib_dld_shl_load=no 5130fi 5131rm -f core conftest.err conftest.$ac_objext \ 5132 conftest$ac_exeext conftest.$ac_ext 5133LIBS=$ac_check_lib_save_LIBS 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 5136$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 5137if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 5138 tcl_ok=yes 5139else 5140 tcl_ok=no 5141fi 5142 5143 if test "$tcl_ok" = yes; then : 5144 5145 SHLIB_CFLAGS="+z" 5146 SHLIB_LD="ld -b" 5147 SHLIB_LD_LIBS="" 5148 DL_OBJS="tclLoadShl.o" 5149 DL_LIBS="-ldld" 5150 LDFLAGS="$LDFLAGS -Wl,-E" 5151 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 5152 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 5153 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 5154 5155fi ;; 5156 IRIX-5.*) 5157 SHLIB_CFLAGS="" 5158 SHLIB_LD="ld -shared -rdata_shared" 5159 SHLIB_SUFFIX=".so" 5160 DL_OBJS="tclLoadDl.o" 5161 DL_LIBS="" 5162 case " $LIBOBJS " in 5163 *" mkstemp.$ac_objext "* ) ;; 5164 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 5165 ;; 5166esac 5167 5168 if test $doRpath = yes; then : 5169 5170 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' 5171 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5172fi 5173 ;; 5174 IRIX-6.*) 5175 SHLIB_CFLAGS="" 5176 SHLIB_LD="ld -n32 -shared -rdata_shared" 5177 SHLIB_SUFFIX=".so" 5178 DL_OBJS="tclLoadDl.o" 5179 DL_LIBS="" 5180 case " $LIBOBJS " in 5181 *" mkstemp.$ac_objext "* ) ;; 5182 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 5183 ;; 5184esac 5185 5186 if test $doRpath = yes; then : 5187 5188 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' 5189 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5190fi 5191 if test "$GCC" = yes; then : 5192 5193 CFLAGS="$CFLAGS -mabi=n32" 5194 LDFLAGS="$LDFLAGS -mabi=n32" 5195 5196else 5197 5198 case $system in 5199 IRIX-6.3) 5200 # Use to build 6.2 compatible binaries on 6.3. 5201 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 5202 ;; 5203 *) 5204 CFLAGS="$CFLAGS -n32" 5205 ;; 5206 esac 5207 LDFLAGS="$LDFLAGS -n32" 5208 5209fi 5210 ;; 5211 IRIX64-6.*) 5212 SHLIB_CFLAGS="" 5213 SHLIB_LD="ld -n32 -shared -rdata_shared" 5214 SHLIB_SUFFIX=".so" 5215 DL_OBJS="tclLoadDl.o" 5216 DL_LIBS="" 5217 case " $LIBOBJS " in 5218 *" mkstemp.$ac_objext "* ) ;; 5219 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 5220 ;; 5221esac 5222 5223 if test $doRpath = yes; then : 5224 5225 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' 5226 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5227fi 5228 5229 # Check to enable 64-bit flags for compiler/linker 5230 5231 if test "$do64bit" = yes; then : 5232 5233 if test "$GCC" = yes; then : 5234 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 5236$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 5237 5238else 5239 5240 do64bit_ok=yes 5241 SHLIB_LD="ld -64 -shared -rdata_shared" 5242 CFLAGS="$CFLAGS -64" 5243 LDFLAGS_ARCH="-64" 5244 5245fi 5246 5247fi 5248 ;; 5249 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*) 5250 SHLIB_CFLAGS="-fPIC" 5251 SHLIB_SUFFIX=".so" 5252 5253 CFLAGS_OPTIMIZE="-O2" 5254 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 5255 # when you inline the string and math operations. Turn this off to 5256 # get rid of the warnings. 5257 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 5258 5259 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared' 5260 DL_OBJS="tclLoadDl.o" 5261 DL_LIBS="-ldl" 5262 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5263 5264 case $system in 5265 DragonFly-*|FreeBSD-*) 5266 if test "${TCL_THREADS}" = "1"; then : 5267 5268 # The -pthread needs to go in the LDFLAGS, not LIBS 5269 LIBS=`echo $LIBS | sed s/-pthread//` 5270 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5271 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 5272fi 5273 ;; 5274 esac 5275 5276 if test $doRpath = yes; then : 5277 5278 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' 5279fi 5280 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5281 if test "`uname -m`" = "alpha"; then : 5282 CFLAGS="$CFLAGS -mieee" 5283fi 5284 if test $do64bit = yes; then : 5285 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 5287$as_echo_n "checking if compiler accepts -m64 flag... " >&6; } 5288if ${tcl_cv_cc_m64+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 5292 hold_cflags=$CFLAGS 5293 CFLAGS="$CFLAGS -m64" 5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5295/* end confdefs.h. */ 5296 5297int 5298main () 5299{ 5300 5301 ; 5302 return 0; 5303} 5304_ACEOF 5305if ac_fn_c_try_link "$LINENO"; then : 5306 tcl_cv_cc_m64=yes 5307else 5308 tcl_cv_cc_m64=no 5309fi 5310rm -f core conftest.err conftest.$ac_objext \ 5311 conftest$ac_exeext conftest.$ac_ext 5312 CFLAGS=$hold_cflags 5313fi 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 5315$as_echo "$tcl_cv_cc_m64" >&6; } 5316 if test $tcl_cv_cc_m64 = yes; then : 5317 5318 CFLAGS="$CFLAGS -m64" 5319 do64bit_ok=yes 5320 5321fi 5322 5323fi 5324 5325 # The combo of gcc + glibc has a bug related to inlining of 5326 # functions like strtod(). The -fno-builtin flag should address 5327 # this problem but it does not work. The -fno-inline flag is kind 5328 # of overkill but it works. Disable inlining only when one of the 5329 # files in compat/*.c is being linked in. 5330 5331 if test x"${USE_COMPAT}" != x; then : 5332 CFLAGS="$CFLAGS -fno-inline" 5333fi 5334 ;; 5335 Lynx*) 5336 SHLIB_CFLAGS="-fPIC" 5337 SHLIB_SUFFIX=".so" 5338 CFLAGS_OPTIMIZE=-02 5339 SHLIB_LD='${CC} -shared' 5340 DL_OBJS="tclLoadDl.o" 5341 DL_LIBS="-mshared -ldl" 5342 LD_FLAGS="-Wl,--export-dynamic" 5343 if test $doRpath = yes; then : 5344 5345 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' 5346 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' 5347fi 5348 ;; 5349 MP-RAS-02*) 5350 SHLIB_CFLAGS="-K PIC" 5351 SHLIB_LD='${CC} -G' 5352 SHLIB_LD_LIBS="" 5353 SHLIB_SUFFIX=".so" 5354 DL_OBJS="tclLoadDl.o" 5355 DL_LIBS="-ldl" 5356 CC_SEARCH_FLAGS="" 5357 LD_SEARCH_FLAGS="" 5358 ;; 5359 MP-RAS-*) 5360 SHLIB_CFLAGS="-K PIC" 5361 SHLIB_LD='${CC} -G' 5362 SHLIB_LD_LIBS="" 5363 SHLIB_SUFFIX=".so" 5364 DL_OBJS="tclLoadDl.o" 5365 DL_LIBS="-ldl" 5366 LDFLAGS="$LDFLAGS -Wl,-Bexport" 5367 CC_SEARCH_FLAGS="" 5368 LD_SEARCH_FLAGS="" 5369 ;; 5370 OpenBSD-*) 5371 arch=`arch -s` 5372 case "$arch" in 5373 alpha|sparc64) 5374 SHLIB_CFLAGS="-fPIC" 5375 ;; 5376 *) 5377 SHLIB_CFLAGS="-fpic" 5378 ;; 5379 esac 5380 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared' 5381 SHLIB_SUFFIX=".so" 5382 DL_OBJS="tclLoadDl.o" 5383 DL_LIBS="" 5384 if test $doRpath = yes; then : 5385 5386 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' 5387fi 5388 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5389 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}' 5390 LDFLAGS="-Wl,-export-dynamic" 5391 CFLAGS_OPTIMIZE="-O2" 5392 if test "${TCL_THREADS}" = "1"; then : 5393 5394 # On OpenBSD: Compile with -pthread 5395 # Don't link with -lpthread 5396 LIBS=`echo $LIBS | sed s/-lpthread//` 5397 CFLAGS="$CFLAGS -pthread" 5398 5399fi 5400 # OpenBSD doesn't do version numbers with dots. 5401 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5402 TCL_LIB_VERSIONS_OK=nodots 5403 ;; 5404 NetBSD-*) 5405 # NetBSD has ELF and can use 'cc -shared' to build shared libs 5406 SHLIB_CFLAGS="-fPIC" 5407 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared' 5408 SHLIB_SUFFIX=".so" 5409 DL_OBJS="tclLoadDl.o" 5410 DL_LIBS="" 5411 LDFLAGS="$LDFLAGS -export-dynamic" 5412 if test $doRpath = yes; then : 5413 5414 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' 5415fi 5416 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5417 if test "${TCL_THREADS}" = "1"; then : 5418 5419 # The -pthread needs to go in the CFLAGS, not LIBS 5420 LIBS=`echo $LIBS | sed s/-pthread//` 5421 CFLAGS="$CFLAGS -pthread" 5422 LDFLAGS="$LDFLAGS -pthread" 5423 5424fi 5425 ;; 5426 Darwin-*) 5427 CFLAGS_OPTIMIZE="-Os" 5428 SHLIB_CFLAGS="-fno-common" 5429 # To avoid discrepancies between what headers configure sees during 5430 # preprocessing tests and compiling tests, move any -isysroot and 5431 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 5432 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 5433 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 5434 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 5435 CFLAGS="`echo " ${CFLAGS}" | \ 5436 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 5437 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 5438 if test $do64bit = yes; then : 5439 5440 case `arch` in 5441 ppc) 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 5443$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } 5444if ${tcl_cv_cc_arch_ppc64+:} false; then : 5445 $as_echo_n "(cached) " >&6 5446else 5447 5448 hold_cflags=$CFLAGS 5449 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451/* end confdefs.h. */ 5452 5453int 5454main () 5455{ 5456 5457 ; 5458 return 0; 5459} 5460_ACEOF 5461if ac_fn_c_try_link "$LINENO"; then : 5462 tcl_cv_cc_arch_ppc64=yes 5463else 5464 tcl_cv_cc_arch_ppc64=no 5465fi 5466rm -f core conftest.err conftest.$ac_objext \ 5467 conftest$ac_exeext conftest.$ac_ext 5468 CFLAGS=$hold_cflags 5469fi 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 5471$as_echo "$tcl_cv_cc_arch_ppc64" >&6; } 5472 if test $tcl_cv_cc_arch_ppc64 = yes; then : 5473 5474 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5475 do64bit_ok=yes 5476 5477fi;; 5478 i386) 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 5480$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } 5481if ${tcl_cv_cc_arch_x86_64+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 5485 hold_cflags=$CFLAGS 5486 CFLAGS="$CFLAGS -arch x86_64" 5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5488/* end confdefs.h. */ 5489 5490int 5491main () 5492{ 5493 5494 ; 5495 return 0; 5496} 5497_ACEOF 5498if ac_fn_c_try_link "$LINENO"; then : 5499 tcl_cv_cc_arch_x86_64=yes 5500else 5501 tcl_cv_cc_arch_x86_64=no 5502fi 5503rm -f core conftest.err conftest.$ac_objext \ 5504 conftest$ac_exeext conftest.$ac_ext 5505 CFLAGS=$hold_cflags 5506fi 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 5508$as_echo "$tcl_cv_cc_arch_x86_64" >&6; } 5509 if test $tcl_cv_cc_arch_x86_64 = yes; then : 5510 5511 CFLAGS="$CFLAGS -arch x86_64" 5512 do64bit_ok=yes 5513 5514fi;; 5515 *) 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 5517$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 5518 esac 5519 5520else 5521 5522 # Check for combined 32-bit and 64-bit fat build 5523 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 5524 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then : 5525 5526 fat_32_64=yes 5527fi 5528 5529fi 5530 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 5532$as_echo_n "checking if ld accepts -single_module flag... " >&6; } 5533if ${tcl_cv_ld_single_module+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535else 5536 5537 hold_ldflags=$LDFLAGS 5538 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5540/* end confdefs.h. */ 5541 5542int 5543main () 5544{ 5545int i; 5546 ; 5547 return 0; 5548} 5549_ACEOF 5550if ac_fn_c_try_link "$LINENO"; then : 5551 tcl_cv_ld_single_module=yes 5552else 5553 tcl_cv_ld_single_module=no 5554fi 5555rm -f core conftest.err conftest.$ac_objext \ 5556 conftest$ac_exeext conftest.$ac_ext 5557 LDFLAGS=$hold_ldflags 5558fi 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 5560$as_echo "$tcl_cv_ld_single_module" >&6; } 5561 if test $tcl_cv_ld_single_module = yes; then : 5562 5563 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 5564 5565fi 5566 SHLIB_SUFFIX=".dylib" 5567 DL_OBJS="tclLoadDyld.o" 5568 DL_LIBS="" 5569 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 5571$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } 5572if ${tcl_cv_ld_search_paths_first+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 5576 hold_ldflags=$LDFLAGS 5577 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579/* end confdefs.h. */ 5580 5581int 5582main () 5583{ 5584int i; 5585 ; 5586 return 0; 5587} 5588_ACEOF 5589if ac_fn_c_try_link "$LINENO"; then : 5590 tcl_cv_ld_search_paths_first=yes 5591else 5592 tcl_cv_ld_search_paths_first=no 5593fi 5594rm -f core conftest.err conftest.$ac_objext \ 5595 conftest$ac_exeext conftest.$ac_ext 5596 LDFLAGS=$hold_ldflags 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 5599$as_echo "$tcl_cv_ld_search_paths_first" >&6; } 5600 if test $tcl_cv_ld_search_paths_first = yes; then : 5601 5602 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 5603 5604fi 5605 if test "$tcl_cv_cc_visibility_hidden" != yes; then : 5606 5607 5608$as_echo "#define MODULE_SCOPE __private_extern__" >>confdefs.h 5609 5610 tcl_cv_cc_visibility_hidden=yes 5611 5612fi 5613 CC_SEARCH_FLAGS="" 5614 LD_SEARCH_FLAGS="" 5615 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 5616 5617$as_echo "#define MAC_OSX_TCL 1" >>confdefs.h 5618 5619 PLAT_OBJS='${MAC_OSX_OBJS}' 5620 PLAT_SRCS='${MAC_OSX_SRCS}' 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 5622$as_echo_n "checking whether to use CoreFoundation... " >&6; } 5623 # Check whether --enable-corefoundation was given. 5624if test "${enable_corefoundation+set}" = set; then : 5625 enableval=$enable_corefoundation; tcl_corefoundation=$enableval 5626else 5627 tcl_corefoundation=yes 5628fi 5629 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 5631$as_echo "$tcl_corefoundation" >&6; } 5632 if test $tcl_corefoundation = yes; then : 5633 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 5635$as_echo_n "checking for CoreFoundation.framework... " >&6; } 5636if ${tcl_cv_lib_corefoundation+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638else 5639 5640 hold_libs=$LIBS 5641 if test "$fat_32_64" = yes; then : 5642 5643 for v in CFLAGS CPPFLAGS LDFLAGS; do 5644 # On Tiger there is no 64-bit CF, so remove 64-bit 5645 # archs from CFLAGS et al. while testing for 5646 # presence of CF. 64-bit CF is disabled in 5647 # tclUnixPort.h if necessary. 5648 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 5649 done 5650fi 5651 LIBS="$LIBS -framework CoreFoundation" 5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5653/* end confdefs.h. */ 5654#include <CoreFoundation/CoreFoundation.h> 5655int 5656main () 5657{ 5658CFBundleRef b = CFBundleGetMainBundle(); 5659 ; 5660 return 0; 5661} 5662_ACEOF 5663if ac_fn_c_try_link "$LINENO"; then : 5664 tcl_cv_lib_corefoundation=yes 5665else 5666 tcl_cv_lib_corefoundation=no 5667fi 5668rm -f core conftest.err conftest.$ac_objext \ 5669 conftest$ac_exeext conftest.$ac_ext 5670 if test "$fat_32_64" = yes; then : 5671 5672 for v in CFLAGS CPPFLAGS LDFLAGS; do 5673 eval $v'="$hold_'$v'"' 5674 done 5675fi 5676 LIBS=$hold_libs 5677fi 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 5679$as_echo "$tcl_cv_lib_corefoundation" >&6; } 5680 if test $tcl_cv_lib_corefoundation = yes; then : 5681 5682 LIBS="$LIBS -framework CoreFoundation" 5683 5684$as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h 5685 5686 5687else 5688 tcl_corefoundation=no 5689fi 5690 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then : 5691 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 5693$as_echo_n "checking for 64-bit CoreFoundation... " >&6; } 5694if ${tcl_cv_lib_corefoundation_64+:} false; then : 5695 $as_echo_n "(cached) " >&6 5696else 5697 5698 for v in CFLAGS CPPFLAGS LDFLAGS; do 5699 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 5700 done 5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5702/* end confdefs.h. */ 5703#include <CoreFoundation/CoreFoundation.h> 5704int 5705main () 5706{ 5707CFBundleRef b = CFBundleGetMainBundle(); 5708 ; 5709 return 0; 5710} 5711_ACEOF 5712if ac_fn_c_try_link "$LINENO"; then : 5713 tcl_cv_lib_corefoundation_64=yes 5714else 5715 tcl_cv_lib_corefoundation_64=no 5716fi 5717rm -f core conftest.err conftest.$ac_objext \ 5718 conftest$ac_exeext conftest.$ac_ext 5719 for v in CFLAGS CPPFLAGS LDFLAGS; do 5720 eval $v'="$hold_'$v'"' 5721 done 5722fi 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 5724$as_echo "$tcl_cv_lib_corefoundation_64" >&6; } 5725 if test $tcl_cv_lib_corefoundation_64 = no; then : 5726 5727 5728$as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h 5729 5730 LDFLAGS="$LDFLAGS -Wl,-no_arch_warnings" 5731 5732fi 5733 5734fi 5735 5736fi 5737 ;; 5738 NEXTSTEP-*) 5739 SHLIB_CFLAGS="" 5740 SHLIB_LD='${CC} -nostdlib -r' 5741 SHLIB_LD_LIBS="" 5742 SHLIB_SUFFIX=".so" 5743 DL_OBJS="tclLoadNext.o" 5744 DL_LIBS="" 5745 CC_SEARCH_FLAGS="" 5746 LD_SEARCH_FLAGS="" 5747 ;; 5748 OS/390-*) 5749 SHLIB_LD_LIBS="" 5750 CFLAGS_OPTIMIZE="" # Optimizer is buggy 5751 5752$as_echo "#define _OE_SOCKETS 1" >>confdefs.h 5753 5754 ;; 5755 OSF1-1.0|OSF1-1.1|OSF1-1.2) 5756 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 5757 SHLIB_CFLAGS="" 5758 # Hack: make package name same as library name 5759 SHLIB_LD='ld -R -export :' 5760 SHLIB_LD_LIBS="" 5761 SHLIB_SUFFIX=".so" 5762 DL_OBJS="tclLoadOSF.o" 5763 DL_LIBS="" 5764 CC_SEARCH_FLAGS="" 5765 LD_SEARCH_FLAGS="" 5766 ;; 5767 OSF1-1.*) 5768 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 5769 SHLIB_CFLAGS="-fPIC" 5770 if test "$SHARED_BUILD" = 1; then : 5771 SHLIB_LD="ld -shared" 5772else 5773 5774 SHLIB_LD="ld -non_shared" 5775 5776fi 5777 SHLIB_LD_LIBS="" 5778 SHLIB_SUFFIX=".so" 5779 DL_OBJS="tclLoadDl.o" 5780 DL_LIBS="" 5781 CC_SEARCH_FLAGS="" 5782 LD_SEARCH_FLAGS="" 5783 ;; 5784 OSF1-V*) 5785 # Digital OSF/1 5786 SHLIB_CFLAGS="" 5787 if test "$SHARED_BUILD" = 1; then : 5788 5789 SHLIB_LD='ld -shared -expect_unresolved "*"' 5790 5791else 5792 5793 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 5794 5795fi 5796 SHLIB_SUFFIX=".so" 5797 DL_OBJS="tclLoadDl.o" 5798 DL_LIBS="" 5799 if test $doRpath = yes; then : 5800 5801 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' 5802 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5803fi 5804 if test "$GCC" = yes; then : 5805 CFLAGS="$CFLAGS -mieee" 5806else 5807 5808 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 5809fi 5810 # see pthread_intro(3) for pthread support on osf1, k.furukawa 5811 if test "${TCL_THREADS}" = 1; then : 5812 5813 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 5814 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 5815 LIBS=`echo $LIBS | sed s/-lpthreads//` 5816 if test "$GCC" = yes; then : 5817 5818 LIBS="$LIBS -lpthread -lmach -lexc" 5819 5820else 5821 5822 CFLAGS="$CFLAGS -pthread" 5823 LDFLAGS="$LDFLAGS -pthread" 5824 5825fi 5826 5827fi 5828 ;; 5829 QNX-6*) 5830 # QNX RTP 5831 # This may work for all QNX, but it was only reported for v6. 5832 SHLIB_CFLAGS="-fPIC" 5833 SHLIB_LD="ld -Bshareable -x" 5834 SHLIB_LD_LIBS="" 5835 SHLIB_SUFFIX=".so" 5836 DL_OBJS="tclLoadDl.o" 5837 # dlopen is in -lc on QNX 5838 DL_LIBS="" 5839 CC_SEARCH_FLAGS="" 5840 LD_SEARCH_FLAGS="" 5841 ;; 5842 SCO_SV-3.2*) 5843 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 5844 # this test works, since "uname -s" was non-standard in 3.2.4 and 5845 # below. 5846 if test "$GCC" = yes; then : 5847 5848 SHLIB_CFLAGS="-fPIC -melf" 5849 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 5850 5851else 5852 5853 SHLIB_CFLAGS="-Kpic -belf" 5854 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 5855 5856fi 5857 SHLIB_LD="ld -G" 5858 SHLIB_LD_LIBS="" 5859 SHLIB_SUFFIX=".so" 5860 DL_OBJS="tclLoadDl.o" 5861 DL_LIBS="" 5862 CC_SEARCH_FLAGS="" 5863 LD_SEARCH_FLAGS="" 5864 ;; 5865 SINIX*5.4*) 5866 SHLIB_CFLAGS="-K PIC" 5867 SHLIB_LD='${CC} -G' 5868 SHLIB_LD_LIBS="" 5869 SHLIB_SUFFIX=".so" 5870 DL_OBJS="tclLoadDl.o" 5871 DL_LIBS="-ldl" 5872 CC_SEARCH_FLAGS="" 5873 LD_SEARCH_FLAGS="" 5874 ;; 5875 SunOS-4*) 5876 SHLIB_CFLAGS="-PIC" 5877 SHLIB_LD="ld" 5878 SHLIB_LD_LIBS="" 5879 SHLIB_SUFFIX=".so" 5880 DL_OBJS="tclLoadDl.o" 5881 DL_LIBS="-ldl" 5882 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 5883 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5884 5885 # SunOS can't handle version numbers with dots in them in library 5886 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 5887 # requires an extra version number at the end of .so file names. 5888 # So, the library has to have a name like libtcl75.so.1.0 5889 5890 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}' 5891 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5892 TCL_LIB_VERSIONS_OK=nodots 5893 ;; 5894 SunOS-5.[0-6]) 5895 # Careful to not let 5.10+ fall into this case 5896 5897 # Note: If _REENTRANT isn't defined, then Solaris 5898 # won't define thread-safe library routines. 5899 5900 5901$as_echo "#define _REENTRANT 1" >>confdefs.h 5902 5903 5904$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5905 5906 5907 SHLIB_CFLAGS="-KPIC" 5908 SHLIB_SUFFIX=".so" 5909 DL_OBJS="tclLoadDl.o" 5910 DL_LIBS="-ldl" 5911 if test "$GCC" = yes; then : 5912 5913 SHLIB_LD='${CC} -shared' 5914 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 5915 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5916 5917else 5918 5919 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 5920 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 5921 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5922 5923fi 5924 ;; 5925 SunOS-5*) 5926 # Note: If _REENTRANT isn't defined, then Solaris 5927 # won't define thread-safe library routines. 5928 5929 5930$as_echo "#define _REENTRANT 1" >>confdefs.h 5931 5932 5933$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5934 5935 5936 SHLIB_CFLAGS="-KPIC" 5937 5938 # Check to enable 64-bit flags for compiler/linker 5939 if test "$do64bit" = yes; then : 5940 5941 arch=`isainfo` 5942 if test "$arch" = "sparcv9 sparc"; then : 5943 5944 if test "$GCC" = yes; then : 5945 5946 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then : 5947 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 5949$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 5950 5951else 5952 5953 do64bit_ok=yes 5954 CFLAGS="$CFLAGS -m64 -mcpu=v9" 5955 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 5956 SHLIB_CFLAGS="-fPIC" 5957 5958fi 5959 5960else 5961 5962 do64bit_ok=yes 5963 if test "$do64bitVIS" = yes; then : 5964 5965 CFLAGS="$CFLAGS -xarch=v9a" 5966 LDFLAGS_ARCH="-xarch=v9a" 5967 5968else 5969 5970 CFLAGS="$CFLAGS -xarch=v9" 5971 LDFLAGS_ARCH="-xarch=v9" 5972 5973fi 5974 # Solaris 64 uses this as well 5975 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 5976 5977fi 5978 5979else 5980 if test "$arch" = "amd64 i386"; then : 5981 5982 if test "$GCC" = yes; then : 5983 5984 case $system in 5985 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 5986 do64bit_ok=yes 5987 CFLAGS="$CFLAGS -m64" 5988 LDFLAGS="$LDFLAGS -m64";; 5989 *) 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 5991$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 5992 esac 5993 5994else 5995 5996 do64bit_ok=yes 5997 case $system in 5998 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 5999 CFLAGS="$CFLAGS -m64" 6000 LDFLAGS="$LDFLAGS -m64";; 6001 *) 6002 CFLAGS="$CFLAGS -xarch=amd64" 6003 LDFLAGS="$LDFLAGS -xarch=amd64";; 6004 esac 6005 6006fi 6007 6008else 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 6010$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 6011fi 6012fi 6013 6014fi 6015 6016 #-------------------------------------------------------------------- 6017 # On Solaris 5.x i386 with the sunpro compiler we need to link 6018 # with sunmath to get floating point rounding control 6019 #-------------------------------------------------------------------- 6020 if test "$GCC" = yes; then : 6021 use_sunmath=no 6022else 6023 6024 arch=`isainfo` 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use -lsunmath for fp rounding control" >&5 6026$as_echo_n "checking whether to use -lsunmath for fp rounding control... " >&6; } 6027 if test "$arch" = "amd64 i386" -o "$arch" = "i386"; then : 6028 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6030$as_echo "yes" >&6; } 6031 MATH_LIBS="-lsunmath $MATH_LIBS" 6032 ac_fn_c_check_header_mongrel "$LINENO" "sunmath.h" "ac_cv_header_sunmath_h" "$ac_includes_default" 6033if test "x$ac_cv_header_sunmath_h" = xyes; then : 6034 6035fi 6036 6037 6038 use_sunmath=yes 6039 6040else 6041 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6043$as_echo "no" >&6; } 6044 use_sunmath=no 6045 6046fi 6047 6048fi 6049 SHLIB_SUFFIX=".so" 6050 DL_OBJS="tclLoadDl.o" 6051 DL_LIBS="-ldl" 6052 if test "$GCC" = yes; then : 6053 6054 SHLIB_LD='${CC} -shared' 6055 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6056 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6057 if test "$do64bit_ok" = yes; then : 6058 6059 if test "$arch" = "sparcv9 sparc"; then : 6060 6061 # We need to specify -static-libgcc or we need to 6062 # add the path to the sparv9 libgcc. 6063 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 6064 # for finding sparcv9 libgcc, get the regular libgcc 6065 # path, remove so name and append 'sparcv9' 6066 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 6067 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 6068 6069else 6070 if test "$arch" = "amd64 i386"; then : 6071 6072 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 6073 6074fi 6075fi 6076 6077fi 6078 6079else 6080 6081 if test "$use_sunmath" = yes; then : 6082 textmode=textoff 6083else 6084 textmode=text 6085fi 6086 case $system in 6087 SunOS-5.[1-9][0-9]*|SunOS-5.[7-9]) 6088 SHLIB_LD="\${CC} -G -z $textmode \${LDFLAGS}";; 6089 *) 6090 SHLIB_LD="/usr/ccs/bin/ld -G -z $textmode";; 6091 esac 6092 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6093 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 6094 6095fi 6096 ;; 6097 UNIX_SV* | UnixWare-5*) 6098 SHLIB_CFLAGS="-KPIC" 6099 SHLIB_LD='${CC} -G' 6100 SHLIB_LD_LIBS="" 6101 SHLIB_SUFFIX=".so" 6102 DL_OBJS="tclLoadDl.o" 6103 DL_LIBS="-ldl" 6104 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 6105 # that don't grok the -Bexport option. Test that it does. 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 6107$as_echo_n "checking for ld accepts -Bexport flag... " >&6; } 6108if ${tcl_cv_ld_Bexport+:} false; then : 6109 $as_echo_n "(cached) " >&6 6110else 6111 6112 hold_ldflags=$LDFLAGS 6113 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6115/* end confdefs.h. */ 6116 6117int 6118main () 6119{ 6120int i; 6121 ; 6122 return 0; 6123} 6124_ACEOF 6125if ac_fn_c_try_link "$LINENO"; then : 6126 tcl_cv_ld_Bexport=yes 6127else 6128 tcl_cv_ld_Bexport=no 6129fi 6130rm -f core conftest.err conftest.$ac_objext \ 6131 conftest$ac_exeext conftest.$ac_ext 6132 LDFLAGS=$hold_ldflags 6133fi 6134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 6135$as_echo "$tcl_cv_ld_Bexport" >&6; } 6136 if test $tcl_cv_ld_Bexport = yes; then : 6137 6138 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6139 6140fi 6141 CC_SEARCH_FLAGS="" 6142 LD_SEARCH_FLAGS="" 6143 ;; 6144 esac 6145 6146 if test "$do64bit" = yes -a "$do64bit_ok" = no; then : 6147 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 6149$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 6150 6151fi 6152 6153 if test "$do64bit" = yes -a "$do64bit_ok" = yes; then : 6154 6155 6156$as_echo "#define TCL_CFG_DO64BIT 1" >>confdefs.h 6157 6158 6159fi 6160 6161 6162 6163 # Step 4: disable dynamic loading if requested via a command-line switch. 6164 6165 # Check whether --enable-load was given. 6166if test "${enable_load+set}" = set; then : 6167 enableval=$enable_load; tcl_ok=$enableval 6168else 6169 tcl_ok=yes 6170fi 6171 6172 if test "$tcl_ok" = no; then : 6173 DL_OBJS="" 6174fi 6175 6176 if test "x$DL_OBJS" != x; then : 6177 BUILD_DLTEST="\$(DLTEST_TARGETS)" 6178else 6179 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&5 6181$as_echo "$as_me: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&2;} 6182 SHLIB_CFLAGS="" 6183 SHLIB_LD="" 6184 SHLIB_SUFFIX="" 6185 DL_OBJS="tclLoadNone.o" 6186 DL_LIBS="" 6187 LDFLAGS="$LDFLAGS_ORIG" 6188 CC_SEARCH_FLAGS="" 6189 LD_SEARCH_FLAGS="" 6190 BUILD_DLTEST="" 6191 6192fi 6193 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 6194 6195 # If we're running gcc, then change the C flags for compiling shared 6196 # libraries to the right flags for gcc, instead of those for the 6197 # standard manufacturer compiler. 6198 6199 if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then : 6200 6201 case $system in 6202 AIX-*) ;; 6203 BSD/OS*) ;; 6204 CYGWIN_*|MINGW32_*|MSYS_*) ;; 6205 HP-UX*) ;; 6206 Darwin-*) ;; 6207 IRIX*) ;; 6208 NetBSD-*|OpenBSD-*) ;; 6209 OSF1-*) ;; 6210 SCO_SV-3.2*) ;; 6211 *) SHLIB_CFLAGS="-fPIC" ;; 6212 esac 6213fi 6214 6215 if test "$tcl_cv_cc_visibility_hidden" != yes; then : 6216 6217 6218$as_echo "#define MODULE_SCOPE extern" >>confdefs.h 6219 6220 6221fi 6222 6223 if test "$SHARED_LIB_SUFFIX" = ""; then : 6224 6225 SHARED_LIB_SUFFIX='${VERSION}${SHLIB_SUFFIX}' 6226fi 6227 if test "$UNSHARED_LIB_SUFFIX" = ""; then : 6228 6229 UNSHARED_LIB_SUFFIX='${VERSION}.a' 6230fi 6231 DLL_INSTALL_DIR="\$(LIB_INSTALL_DIR)" 6232 6233 if test "${SHARED_BUILD}" = 1 -a "${SHLIB_SUFFIX}" != ""; then : 6234 6235 LIB_SUFFIX=${SHARED_LIB_SUFFIX} 6236 MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${LDFLAGS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' 6237 if test "${SHLIB_SUFFIX}" = ".dll"; then : 6238 6239 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(BIN_INSTALL_DIR)/$(LIB_FILE)";if test -f $(LIB_FILE).a; then $(INSTALL_DATA) $(LIB_FILE).a "$(LIB_INSTALL_DIR)"; fi;' 6240 DLL_INSTALL_DIR="\$(BIN_INSTALL_DIR)" 6241 6242else 6243 6244 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"' 6245 6246fi 6247 6248else 6249 6250 LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} 6251 6252 if test "$RANLIB" = ""; then : 6253 6254 MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' 6255 6256else 6257 6258 MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' 6259 6260fi 6261 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"' 6262 6263fi 6264 6265 # Stub lib does not depend on shared/static configuration 6266 if test "$RANLIB" = ""; then : 6267 6268 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' 6269 6270else 6271 6272 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' 6273 6274fi 6275 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)"' 6276 6277 # Define TCL_LIBS now that we know what DL_LIBS is. 6278 # The trick here is that we don't want to change the value of TCL_LIBS if 6279 # it is already set when tclConfig.sh had been loaded by Tk. 6280 if test "x${TCL_LIBS}" = x; then : 6281 6282 TCL_LIBS="${DL_LIBS} ${LIBS} ${MATH_LIBS}" 6283fi 6284 6285 6286 # See if the compiler supports casting to a union type. 6287 # This is used to stop gcc from printing a compiler 6288 # warning when initializing a union member. 6289 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5 6291$as_echo_n "checking for cast to union support... " >&6; } 6292if ${tcl_cv_cast_to_union+:} false; then : 6293 $as_echo_n "(cached) " >&6 6294else 6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6296/* end confdefs.h. */ 6297 6298int 6299main () 6300{ 6301 6302 union foo { int i; double d; }; 6303 union foo f = (union foo) (int) 0; 6304 6305 ; 6306 return 0; 6307} 6308_ACEOF 6309if ac_fn_c_try_compile "$LINENO"; then : 6310 tcl_cv_cast_to_union=yes 6311else 6312 tcl_cv_cast_to_union=no 6313fi 6314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6315 6316fi 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5 6318$as_echo "$tcl_cv_cast_to_union" >&6; } 6319 if test "$tcl_cv_cast_to_union" = "yes"; then 6320 6321$as_echo "#define HAVE_CAST_TO_UNION 1" >>confdefs.h 6322 6323 fi 6324 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fno-lto" 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working -fno-lto" >&5 6326$as_echo_n "checking for working -fno-lto... " >&6; } 6327if ${ac_cv_nolto+:} false; then : 6328 $as_echo_n "(cached) " >&6 6329else 6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331/* end confdefs.h. */ 6332 6333int 6334main () 6335{ 6336 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341if ac_fn_c_try_compile "$LINENO"; then : 6342 ac_cv_nolto=yes 6343else 6344 ac_cv_nolto=no 6345fi 6346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6347 6348fi 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nolto" >&5 6350$as_echo "$ac_cv_nolto" >&6; } 6351 CFLAGS=$hold_cflags 6352 if test "$ac_cv_nolto" = "yes" ; then 6353 CFLAGS_NOLTO="-fno-lto" 6354 else 6355 CFLAGS_NOLTO="" 6356 fi 6357 6358 # FIXME: This subst was left in only because the TCL_DL_LIBS 6359 # entry in tclConfig.sh uses it. It is not clear why someone 6360 # would use TCL_DL_LIBS instead of TCL_LIBS. 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387cat >>confdefs.h <<_ACEOF 6388#define TCL_SHLIB_EXT "${SHLIB_SUFFIX}" 6389_ACEOF 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 6402$as_echo_n "checking for build with symbols... " >&6; } 6403 # Check whether --enable-symbols was given. 6404if test "${enable_symbols+set}" = set; then : 6405 enableval=$enable_symbols; tcl_ok=$enableval 6406else 6407 tcl_ok=no 6408fi 6409 6410# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. 6411 if test "$tcl_ok" = "no"; then 6412 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' 6413 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' 6414 6415$as_echo "#define NDEBUG 1" >>confdefs.h 6416 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6418$as_echo "no" >&6; } 6419 6420$as_echo "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h 6421 6422 else 6423 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' 6424 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' 6425 if test "$tcl_ok" = "yes"; then 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 6427$as_echo "yes (standard debugging)" >&6; } 6428 fi 6429 fi 6430 6431 6432 6433 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 6434 6435$as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h 6436 6437 fi 6438 6439 6440 6441 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 6442 if test "$tcl_ok" = "all"; then 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5 6444$as_echo "enabled symbols mem debugging" >&6; } 6445 else 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 6447$as_echo "enabled $tcl_ok debugging" >&6; } 6448 fi 6449 fi 6450 6451 6452#-------------------------------------------------------------------- 6453# Detect what compiler flags to set for 64-bit support. 6454#-------------------------------------------------------------------- 6455 6456 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5 6458$as_echo_n "checking for required early compiler flags... " >&6; } 6459 tcl_flags="" 6460 6461 if ${tcl_cv_flag__isoc99_source+:} false; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466#include <stdlib.h> 6467int 6468main () 6469{ 6470char *p = (char *)strtoll; char *q = (char *)strtoull; 6471 ; 6472 return 0; 6473} 6474_ACEOF 6475if ac_fn_c_try_compile "$LINENO"; then : 6476 tcl_cv_flag__isoc99_source=no 6477else 6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6479/* end confdefs.h. */ 6480#define _ISOC99_SOURCE 1 6481#include <stdlib.h> 6482int 6483main () 6484{ 6485char *p = (char *)strtoll; char *q = (char *)strtoull; 6486 ; 6487 return 0; 6488} 6489_ACEOF 6490if ac_fn_c_try_compile "$LINENO"; then : 6491 tcl_cv_flag__isoc99_source=yes 6492else 6493 tcl_cv_flag__isoc99_source=no 6494fi 6495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6496fi 6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6498fi 6499 6500 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 6501 6502$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h 6503 6504 tcl_flags="$tcl_flags _ISOC99_SOURCE" 6505 fi 6506 6507 6508 if ${tcl_cv_flag__largefile64_source+:} false; then : 6509 $as_echo_n "(cached) " >&6 6510else 6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6512/* end confdefs.h. */ 6513#include <sys/stat.h> 6514int 6515main () 6516{ 6517struct stat64 buf; int i = stat64("/", &buf); 6518 ; 6519 return 0; 6520} 6521_ACEOF 6522if ac_fn_c_try_compile "$LINENO"; then : 6523 tcl_cv_flag__largefile64_source=no 6524else 6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6526/* end confdefs.h. */ 6527#define _LARGEFILE64_SOURCE 1 6528#include <sys/stat.h> 6529int 6530main () 6531{ 6532struct stat64 buf; int i = stat64("/", &buf); 6533 ; 6534 return 0; 6535} 6536_ACEOF 6537if ac_fn_c_try_compile "$LINENO"; then : 6538 tcl_cv_flag__largefile64_source=yes 6539else 6540 tcl_cv_flag__largefile64_source=no 6541fi 6542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6543fi 6544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6545fi 6546 6547 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 6548 6549$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 6550 6551 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 6552 fi 6553 6554 6555 if ${tcl_cv_flag__largefile_source64+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560#include <sys/stat.h> 6561int 6562main () 6563{ 6564char *p = (char *)open64; 6565 ; 6566 return 0; 6567} 6568_ACEOF 6569if ac_fn_c_try_compile "$LINENO"; then : 6570 tcl_cv_flag__largefile_source64=no 6571else 6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574#define _LARGEFILE_SOURCE64 1 6575#include <sys/stat.h> 6576int 6577main () 6578{ 6579char *p = (char *)open64; 6580 ; 6581 return 0; 6582} 6583_ACEOF 6584if ac_fn_c_try_compile "$LINENO"; then : 6585 tcl_cv_flag__largefile_source64=yes 6586else 6587 tcl_cv_flag__largefile_source64=no 6588fi 6589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6590fi 6591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6592fi 6593 6594 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 6595 6596$as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h 6597 6598 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 6599 fi 6600 6601 if test "x${tcl_flags}" = "x" ; then 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6603$as_echo "none" >&6; } 6604 else 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5 6606$as_echo "${tcl_flags}" >&6; } 6607 fi 6608 6609 6610 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5 6612$as_echo_n "checking for 64-bit integer type... " >&6; } 6613 if ${tcl_cv_type_64bit+:} false; then : 6614 $as_echo_n "(cached) " >&6 6615else 6616 6617 tcl_cv_type_64bit=none 6618 # See if the compiler knows natively about __int64 6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6620/* end confdefs.h. */ 6621 6622int 6623main () 6624{ 6625__int64 value = (__int64) 0; 6626 ; 6627 return 0; 6628} 6629_ACEOF 6630if ac_fn_c_try_compile "$LINENO"; then : 6631 tcl_type_64bit=__int64 6632else 6633 tcl_type_64bit="long long" 6634fi 6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6636 # See if we should use long anyway Note that we substitute in the 6637 # type that is our current guess for a 64-bit type inside this check 6638 # program, so it should be modified only carefully... 6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6640/* end confdefs.h. */ 6641 6642int 6643main () 6644{ 6645switch (0) { 6646 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 6647 } 6648 ; 6649 return 0; 6650} 6651_ACEOF 6652if ac_fn_c_try_compile "$LINENO"; then : 6653 tcl_cv_type_64bit=${tcl_type_64bit} 6654fi 6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6656fi 6657 6658 if test "${tcl_cv_type_64bit}" = none ; then 6659 6660$as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h 6661 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using long" >&5 6663$as_echo "using long" >&6; } 6664 else 6665 6666cat >>confdefs.h <<_ACEOF 6667#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 6668_ACEOF 6669 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5 6671$as_echo "${tcl_cv_type_64bit}" >&6; } 6672 6673 # Now check for auxiliary declarations 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5 6675$as_echo_n "checking for struct dirent64... " >&6; } 6676if ${tcl_cv_struct_dirent64+:} false; then : 6677 $as_echo_n "(cached) " >&6 6678else 6679 6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6681/* end confdefs.h. */ 6682#include <sys/types.h> 6683#include <dirent.h> 6684int 6685main () 6686{ 6687struct dirent64 p; 6688 ; 6689 return 0; 6690} 6691_ACEOF 6692if ac_fn_c_try_compile "$LINENO"; then : 6693 tcl_cv_struct_dirent64=yes 6694else 6695 tcl_cv_struct_dirent64=no 6696fi 6697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6698fi 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5 6700$as_echo "$tcl_cv_struct_dirent64" >&6; } 6701 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 6702 6703$as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h 6704 6705 fi 6706 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5 6708$as_echo_n "checking for DIR64... " >&6; } 6709if ${tcl_cv_DIR64+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714/* end confdefs.h. */ 6715#include <sys/types.h> 6716#include <dirent.h> 6717int 6718main () 6719{ 6720struct dirent64 *p; DIR64 d = opendir64("."); 6721 p = readdir64(d); rewinddir64(d); closedir64(d); 6722 ; 6723 return 0; 6724} 6725_ACEOF 6726if ac_fn_c_try_compile "$LINENO"; then : 6727 tcl_cv_DIR64=yes 6728else 6729 tcl_cv_DIR64=no 6730fi 6731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6732fi 6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5 6734$as_echo "$tcl_cv_DIR64" >&6; } 6735 if test "x${tcl_cv_DIR64}" = "xyes" ; then 6736 6737$as_echo "#define HAVE_DIR64 1" >>confdefs.h 6738 6739 fi 6740 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5 6742$as_echo_n "checking for struct stat64... " >&6; } 6743if ${tcl_cv_struct_stat64+:} false; then : 6744 $as_echo_n "(cached) " >&6 6745else 6746 6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6748/* end confdefs.h. */ 6749#include <sys/stat.h> 6750int 6751main () 6752{ 6753struct stat64 p; 6754 6755 ; 6756 return 0; 6757} 6758_ACEOF 6759if ac_fn_c_try_compile "$LINENO"; then : 6760 tcl_cv_struct_stat64=yes 6761else 6762 tcl_cv_struct_stat64=no 6763fi 6764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6765fi 6766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5 6767$as_echo "$tcl_cv_struct_stat64" >&6; } 6768 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 6769 6770$as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h 6771 6772 fi 6773 6774 for ac_func in open64 lseek64 6775do : 6776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6777ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6778if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6779 cat >>confdefs.h <<_ACEOF 6780#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6781_ACEOF 6782 6783fi 6784done 6785 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5 6787$as_echo_n "checking for off64_t... " >&6; } 6788 if ${tcl_cv_type_off64_t+:} false; then : 6789 $as_echo_n "(cached) " >&6 6790else 6791 6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6793/* end confdefs.h. */ 6794#include <sys/types.h> 6795int 6796main () 6797{ 6798off64_t offset; 6799 6800 ; 6801 return 0; 6802} 6803_ACEOF 6804if ac_fn_c_try_compile "$LINENO"; then : 6805 tcl_cv_type_off64_t=yes 6806else 6807 tcl_cv_type_off64_t=no 6808fi 6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6810fi 6811 6812 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 6813 test "x${ac_cv_func_lseek64}" = "xyes" && \ 6814 test "x${ac_cv_func_open64}" = "xyes" ; then 6815 6816$as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h 6817 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6819$as_echo "yes" >&6; } 6820 else 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6822$as_echo "no" >&6; } 6823 fi 6824 fi 6825 6826 6827#-------------------------------------------------------------------- 6828# Check endianness because we can optimize some operations 6829#-------------------------------------------------------------------- 6830 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6832$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6833if ${ac_cv_c_bigendian+:} false; then : 6834 $as_echo_n "(cached) " >&6 6835else 6836 ac_cv_c_bigendian=unknown 6837 # See if we're dealing with a universal compiler. 6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6839/* end confdefs.h. */ 6840#ifndef __APPLE_CC__ 6841 not a universal capable compiler 6842 #endif 6843 typedef int dummy; 6844 6845_ACEOF 6846if ac_fn_c_try_compile "$LINENO"; then : 6847 6848 # Check for potential -arch flags. It is not universal unless 6849 # there are at least two -arch flags with different values. 6850 ac_arch= 6851 ac_prev= 6852 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6853 if test -n "$ac_prev"; then 6854 case $ac_word in 6855 i?86 | x86_64 | ppc | ppc64) 6856 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6857 ac_arch=$ac_word 6858 else 6859 ac_cv_c_bigendian=universal 6860 break 6861 fi 6862 ;; 6863 esac 6864 ac_prev= 6865 elif test "x$ac_word" = "x-arch"; then 6866 ac_prev=arch 6867 fi 6868 done 6869fi 6870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6871 if test $ac_cv_c_bigendian = unknown; then 6872 # See if sys/param.h defines the BYTE_ORDER macro. 6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875#include <sys/types.h> 6876 #include <sys/param.h> 6877 6878int 6879main () 6880{ 6881#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6882 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6883 && LITTLE_ENDIAN) 6884 bogus endian macros 6885 #endif 6886 6887 ; 6888 return 0; 6889} 6890_ACEOF 6891if ac_fn_c_try_compile "$LINENO"; then : 6892 # It does; now see whether it defined to BIG_ENDIAN or not. 6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894/* end confdefs.h. */ 6895#include <sys/types.h> 6896 #include <sys/param.h> 6897 6898int 6899main () 6900{ 6901#if BYTE_ORDER != BIG_ENDIAN 6902 not big endian 6903 #endif 6904 6905 ; 6906 return 0; 6907} 6908_ACEOF 6909if ac_fn_c_try_compile "$LINENO"; then : 6910 ac_cv_c_bigendian=yes 6911else 6912 ac_cv_c_bigendian=no 6913fi 6914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6915fi 6916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6917 fi 6918 if test $ac_cv_c_bigendian = unknown; then 6919 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921/* end confdefs.h. */ 6922#include <limits.h> 6923 6924int 6925main () 6926{ 6927#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6928 bogus endian macros 6929 #endif 6930 6931 ; 6932 return 0; 6933} 6934_ACEOF 6935if ac_fn_c_try_compile "$LINENO"; then : 6936 # It does; now see whether it defined to _BIG_ENDIAN or not. 6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6938/* end confdefs.h. */ 6939#include <limits.h> 6940 6941int 6942main () 6943{ 6944#ifndef _BIG_ENDIAN 6945 not big endian 6946 #endif 6947 6948 ; 6949 return 0; 6950} 6951_ACEOF 6952if ac_fn_c_try_compile "$LINENO"; then : 6953 ac_cv_c_bigendian=yes 6954else 6955 ac_cv_c_bigendian=no 6956fi 6957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6958fi 6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6960 fi 6961 if test $ac_cv_c_bigendian = unknown; then 6962 # Compile a test program. 6963 if test "$cross_compiling" = yes; then : 6964 # Try to guess by grepping values from an object file. 6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6966/* end confdefs.h. */ 6967short int ascii_mm[] = 6968 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6969 short int ascii_ii[] = 6970 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6971 int use_ascii (int i) { 6972 return ascii_mm[i] + ascii_ii[i]; 6973 } 6974 short int ebcdic_ii[] = 6975 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6976 short int ebcdic_mm[] = 6977 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6978 int use_ebcdic (int i) { 6979 return ebcdic_mm[i] + ebcdic_ii[i]; 6980 } 6981 extern int foo; 6982 6983int 6984main () 6985{ 6986return use_ascii (foo) == use_ebcdic (foo); 6987 ; 6988 return 0; 6989} 6990_ACEOF 6991if ac_fn_c_try_compile "$LINENO"; then : 6992 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6993 ac_cv_c_bigendian=yes 6994 fi 6995 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6996 if test "$ac_cv_c_bigendian" = unknown; then 6997 ac_cv_c_bigendian=no 6998 else 6999 # finding both strings is unlikely to happen, but who knows? 7000 ac_cv_c_bigendian=unknown 7001 fi 7002 fi 7003fi 7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7005else 7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7007/* end confdefs.h. */ 7008$ac_includes_default 7009int 7010main () 7011{ 7012 7013 /* Are we little or big endian? From Harbison&Steele. */ 7014 union 7015 { 7016 long int l; 7017 char c[sizeof (long int)]; 7018 } u; 7019 u.l = 1; 7020 return u.c[sizeof (long int) - 1] == 1; 7021 7022 ; 7023 return 0; 7024} 7025_ACEOF 7026if ac_fn_c_try_run "$LINENO"; then : 7027 ac_cv_c_bigendian=no 7028else 7029 ac_cv_c_bigendian=yes 7030fi 7031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7032 conftest.$ac_objext conftest.beam conftest.$ac_ext 7033fi 7034 7035 fi 7036fi 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 7038$as_echo "$ac_cv_c_bigendian" >&6; } 7039 case $ac_cv_c_bigendian in #( 7040 yes) 7041 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 7042;; #( 7043 no) 7044 ;; #( 7045 universal) 7046 7047$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 7048 7049 ;; #( 7050 *) 7051 as_fn_error $? "unknown endianness 7052 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 7053 esac 7054 7055 7056#------------------------------------------------------------------------ 7057# If Tcl and Tk are installed in different places, adjust the library 7058# search path to reflect this. 7059#------------------------------------------------------------------------ 7060 7061LIB_RUNTIME_DIR='$(libdir)' 7062 7063if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then 7064 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}/lib" 7065fi 7066 7067if test "$TCL_PREFIX" != "$prefix"; then 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 7069 Different --prefix selected for Tk and Tcl! 7070 [package require Tk] may not work correctly in tclsh." >&5 7071$as_echo "$as_me: WARNING: 7072 Different --prefix selected for Tk and Tcl! 7073 [package require Tk] may not work correctly in tclsh." >&2;} 7074fi 7075 7076#-------------------------------------------------------------------- 7077# Include sys/select.h if it exists and if it supplies things 7078# that appear to be useful and aren't already in sys/types.h. 7079# This appears to be true only on the RS/6000 under AIX. Some 7080# systems like OSF/1 have a sys/select.h that's of no use, and 7081# other systems like SCO UNIX have a sys/select.h that's 7082# pernicious. If "fd_set" isn't defined anywhere then set a 7083# special flag. 7084#-------------------------------------------------------------------- 7085 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set in sys/types" >&5 7087$as_echo_n "checking for fd_set in sys/types... " >&6; } 7088if ${tcl_cv_type_fd_set+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093/* end confdefs.h. */ 7094#include <sys/types.h> 7095int 7096main () 7097{ 7098fd_set readMask, writeMask; 7099 ; 7100 return 0; 7101} 7102_ACEOF 7103if ac_fn_c_try_compile "$LINENO"; then : 7104 tcl_cv_type_fd_set=yes 7105else 7106 tcl_cv_type_fd_set=no 7107fi 7108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7109fi 7110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_type_fd_set" >&5 7111$as_echo "$tcl_cv_type_fd_set" >&6; } 7112tk_ok=$tcl_cv_type_fd_set 7113if test $tk_ok = no; then 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_mask in sys/select" >&5 7115$as_echo_n "checking for fd_mask in sys/select... " >&6; } 7116if ${tcl_cv_grep_fd_mask+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7121/* end confdefs.h. */ 7122#include <sys/select.h> 7123 7124_ACEOF 7125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7126 $EGREP "fd_mask" >/dev/null 2>&1; then : 7127 tcl_cv_grep_fd_mask=present 7128else 7129 tcl_cv_grep_fd_mask=missing 7130fi 7131rm -f conftest* 7132 7133fi 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_grep_fd_mask" >&5 7135$as_echo "$tcl_cv_grep_fd_mask" >&6; } 7136 if test $tcl_cv_grep_fd_mask = present; then 7137 7138$as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 7139 7140 tk_ok=yes 7141 fi 7142fi 7143if test $tk_ok = no; then 7144 7145$as_echo "#define NO_FD_SET 1" >>confdefs.h 7146 7147fi 7148 7149#------------------------------------------------------------------------------ 7150# Find out all about time handling differences. 7151#------------------------------------------------------------------------------ 7152 7153for ac_header in sys/time.h 7154do : 7155 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 7156if test "x$ac_cv_header_sys_time_h" = xyes; then : 7157 cat >>confdefs.h <<_ACEOF 7158#define HAVE_SYS_TIME_H 1 7159_ACEOF 7160 7161fi 7162 7163done 7164 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7166$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7167if ${ac_cv_header_time+:} false; then : 7168 $as_echo_n "(cached) " >&6 7169else 7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7171/* end confdefs.h. */ 7172#include <sys/types.h> 7173#include <sys/time.h> 7174#include <time.h> 7175 7176int 7177main () 7178{ 7179if ((struct tm *) 0) 7180return 0; 7181 ; 7182 return 0; 7183} 7184_ACEOF 7185if ac_fn_c_try_compile "$LINENO"; then : 7186 ac_cv_header_time=yes 7187else 7188 ac_cv_header_time=no 7189fi 7190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7191fi 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 7193$as_echo "$ac_cv_header_time" >&6; } 7194if test $ac_cv_header_time = yes; then 7195 7196$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7197 7198fi 7199 7200 7201#-------------------------------------------------------------------- 7202# Check for various typedefs and provide substitutes if 7203# they don't exist. 7204#-------------------------------------------------------------------- 7205 7206ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 7207if test "x$ac_cv_type_mode_t" = xyes; then : 7208 7209else 7210 7211cat >>confdefs.h <<_ACEOF 7212#define mode_t int 7213_ACEOF 7214 7215fi 7216 7217ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7218if test "x$ac_cv_type_pid_t" = xyes; then : 7219 7220else 7221 7222cat >>confdefs.h <<_ACEOF 7223#define pid_t int 7224_ACEOF 7225 7226fi 7227 7228ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7229if test "x$ac_cv_type_size_t" = xyes; then : 7230 7231else 7232 7233cat >>confdefs.h <<_ACEOF 7234#define size_t unsigned int 7235_ACEOF 7236 7237fi 7238 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 7240$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 7241if ${ac_cv_type_uid_t+:} false; then : 7242 $as_echo_n "(cached) " >&6 7243else 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245/* end confdefs.h. */ 7246#include <sys/types.h> 7247 7248_ACEOF 7249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7250 $EGREP "uid_t" >/dev/null 2>&1; then : 7251 ac_cv_type_uid_t=yes 7252else 7253 ac_cv_type_uid_t=no 7254fi 7255rm -f conftest* 7256 7257fi 7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 7259$as_echo "$ac_cv_type_uid_t" >&6; } 7260if test $ac_cv_type_uid_t = no; then 7261 7262$as_echo "#define uid_t int" >>confdefs.h 7263 7264 7265$as_echo "#define gid_t int" >>confdefs.h 7266 7267fi 7268 7269 7270ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 7271if test "x$ac_cv_type_intptr_t" = xyes; then : 7272 7273 7274$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 7275 7276else 7277 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer-size signed integer type" >&5 7279$as_echo_n "checking for pointer-size signed integer type... " >&6; } 7280if ${tcl_cv_intptr_t+:} false; then : 7281 $as_echo_n "(cached) " >&6 7282else 7283 7284 for tcl_cv_intptr_t in "int" "long" "long long" none; do 7285 if test "$tcl_cv_intptr_t" != none; then 7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287/* end confdefs.h. */ 7288$ac_includes_default 7289int 7290main () 7291{ 7292static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_intptr_t))]; 7293test_array [0] = 0; 7294return test_array [0]; 7295 7296 ; 7297 return 0; 7298} 7299_ACEOF 7300if ac_fn_c_try_compile "$LINENO"; then : 7301 tcl_ok=yes 7302else 7303 tcl_ok=no 7304fi 7305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7306 test "$tcl_ok" = yes && break; fi 7307 done 7308fi 7309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_intptr_t" >&5 7310$as_echo "$tcl_cv_intptr_t" >&6; } 7311 if test "$tcl_cv_intptr_t" != none; then 7312 7313cat >>confdefs.h <<_ACEOF 7314#define intptr_t $tcl_cv_intptr_t 7315_ACEOF 7316 7317 fi 7318 7319fi 7320 7321ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 7322if test "x$ac_cv_type_uintptr_t" = xyes; then : 7323 7324 7325$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 7326 7327else 7328 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer-size unsigned integer type" >&5 7330$as_echo_n "checking for pointer-size unsigned integer type... " >&6; } 7331if ${tcl_cv_uintptr_t+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333else 7334 7335 for tcl_cv_uintptr_t in "unsigned int" "unsigned long" "unsigned long long" \ 7336 none; do 7337 if test "$tcl_cv_uintptr_t" != none; then 7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7339/* end confdefs.h. */ 7340$ac_includes_default 7341int 7342main () 7343{ 7344static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_uintptr_t))]; 7345test_array [0] = 0; 7346return test_array [0]; 7347 7348 ; 7349 return 0; 7350} 7351_ACEOF 7352if ac_fn_c_try_compile "$LINENO"; then : 7353 tcl_ok=yes 7354else 7355 tcl_ok=no 7356fi 7357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7358 test "$tcl_ok" = yes && break; fi 7359 done 7360fi 7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_uintptr_t" >&5 7362$as_echo "$tcl_cv_uintptr_t" >&6; } 7363 if test "$tcl_cv_uintptr_t" != none; then 7364 7365cat >>confdefs.h <<_ACEOF 7366#define uintptr_t $tcl_cv_uintptr_t 7367_ACEOF 7368 7369 fi 7370 7371fi 7372 7373 7374#------------------------------------------- 7375# In OS/390 struct pwd has no pw_gecos field 7376#------------------------------------------- 7377 7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pw_gecos in struct pwd" >&5 7379$as_echo_n "checking pw_gecos in struct pwd... " >&6; } 7380if ${tcl_cv_pwd_pw_gecos+:} false; then : 7381 $as_echo_n "(cached) " >&6 7382else 7383 7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7385/* end confdefs.h. */ 7386#include <pwd.h> 7387int 7388main () 7389{ 7390struct passwd pwd; (void)pwd.pw_gecos; 7391 ; 7392 return 0; 7393} 7394_ACEOF 7395if ac_fn_c_try_compile "$LINENO"; then : 7396 tcl_cv_pwd_pw_gecos=yes 7397else 7398 tcl_cv_pwd_pw_gecos=no 7399fi 7400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7401fi 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_pwd_pw_gecos" >&5 7403$as_echo "$tcl_cv_pwd_pw_gecos" >&6; } 7404if test $tcl_cv_pwd_pw_gecos = yes; then 7405 7406$as_echo "#define HAVE_PW_GECOS 1" >>confdefs.h 7407 7408fi 7409 7410#-------------------------------------------------------------------- 7411# On Mac OS X, we can build either with X11 or with Aqua 7412#-------------------------------------------------------------------- 7413 7414if test "`uname -s`" = "Darwin" ; then 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Aqua" >&5 7416$as_echo_n "checking whether to use Aqua... " >&6; } 7417 # Check whether --enable-aqua was given. 7418if test "${enable_aqua+set}" = set; then : 7419 enableval=$enable_aqua; tk_aqua=$enableval 7420else 7421 tk_aqua=no 7422fi 7423 7424 if test $tk_aqua = yes -o $tk_aqua = cocoa; then 7425 tk_aqua=yes 7426 if test $tcl_corefoundation = no; then 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Aqua can only be used when CoreFoundation is available" >&5 7428$as_echo "$as_me: WARNING: Aqua can only be used when CoreFoundation is available" >&2;} 7429 tk_aqua=no 7430 fi 7431 if test ! -d /System/Library/Frameworks/Cocoa.framework; then 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Aqua can only be used when Cocoa is available" >&5 7433$as_echo "$as_me: WARNING: Aqua can only be used when Cocoa is available" >&2;} 7434 tk_aqua=no 7435 fi 7436 if test "`uname -r | awk -F. '{print $1}'`" -lt 9; then 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Aqua requires Mac OS X 10.5 or later" >&5 7438$as_echo "$as_me: WARNING: Aqua requires Mac OS X 10.5 or later" >&2;} 7439 tk_aqua=no 7440 fi 7441 fi 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tk_aqua" >&5 7443$as_echo "$tk_aqua" >&6; } 7444 if test "$fat_32_64" = yes; then 7445 if test $tk_aqua = no; then 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5 7447$as_echo_n "checking for 64-bit X11... " >&6; } 7448if ${tcl_cv_lib_x11_64+:} false; then : 7449 $as_echo_n "(cached) " >&6 7450else 7451 7452 for v in CFLAGS CPPFLAGS LDFLAGS; do 7453 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 7454 done 7455 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 7456 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7458/* end confdefs.h. */ 7459#include <X11/Xlib.h> 7460int 7461main () 7462{ 7463XrmInitialize(); 7464 ; 7465 return 0; 7466} 7467_ACEOF 7468if ac_fn_c_try_link "$LINENO"; then : 7469 tcl_cv_lib_x11_64=yes 7470else 7471 tcl_cv_lib_x11_64=no 7472fi 7473rm -f core conftest.err conftest.$ac_objext \ 7474 conftest$ac_exeext conftest.$ac_ext 7475 for v in CFLAGS CPPFLAGS LDFLAGS; do 7476 eval $v'="$hold_'$v'"' 7477 done 7478fi 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5 7480$as_echo "$tcl_cv_lib_x11_64" >&6; } 7481 fi 7482 # remove 64-bit arch flags from CFLAGS et al. for combined 32 & 64 bit 7483 # fat builds if configuration does not support 64-bit. 7484 if test "$tcl_cv_lib_x11_64" = no; then 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5 7486$as_echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 7487 for v in CFLAGS CPPFLAGS LDFLAGS; do 7488 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 7489 done 7490 fi 7491 fi 7492 if test $tk_aqua = no; then 7493 # check if weak linking whole libraries is possible. 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -weak-l flag" >&5 7495$as_echo_n "checking if ld accepts -weak-l flag... " >&6; } 7496if ${tcl_cv_ld_weak_l+:} false; then : 7497 $as_echo_n "(cached) " >&6 7498else 7499 7500 hold_ldflags=$LDFLAGS 7501 LDFLAGS="$LDFLAGS -Wl,-weak-lm" 7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7503/* end confdefs.h. */ 7504#include <math.h> 7505int 7506main () 7507{ 7508double f = sin(1.0); 7509 ; 7510 return 0; 7511} 7512_ACEOF 7513if ac_fn_c_try_link "$LINENO"; then : 7514 tcl_cv_ld_weak_l=yes 7515else 7516 tcl_cv_ld_weak_l=no 7517fi 7518rm -f core conftest.err conftest.$ac_objext \ 7519 conftest$ac_exeext conftest.$ac_ext 7520 LDFLAGS=$hold_ldflags 7521fi 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_weak_l" >&5 7523$as_echo "$tcl_cv_ld_weak_l" >&6; } 7524 fi 7525 for ac_header in AvailabilityMacros.h 7526do : 7527 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 7528if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 7529 cat >>confdefs.h <<_ACEOF 7530#define HAVE_AVAILABILITYMACROS_H 1 7531_ACEOF 7532 7533fi 7534 7535done 7536 7537 if test "$ac_cv_header_AvailabilityMacros_h" = yes; then 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak import is available" >&5 7539$as_echo_n "checking if weak import is available... " >&6; } 7540if ${tcl_cv_cc_weak_import+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 7544 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547 7548 #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 7549 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020 7550 #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020 7551 #endif 7552 #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1020 7553 #error MAC_OS_X_VERSION_MIN_REQUIRED < 1020 7554 #endif 7555 int rand(void) __attribute__((weak_import)); 7556 7557int 7558main () 7559{ 7560rand(); 7561 ; 7562 return 0; 7563} 7564_ACEOF 7565if ac_fn_c_try_link "$LINENO"; then : 7566 tcl_cv_cc_weak_import=yes 7567else 7568 tcl_cv_cc_weak_import=no 7569fi 7570rm -f core conftest.err conftest.$ac_objext \ 7571 conftest$ac_exeext conftest.$ac_ext 7572 CFLAGS=$hold_cflags 7573fi 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_weak_import" >&5 7575$as_echo "$tcl_cv_cc_weak_import" >&6; } 7576 if test $tcl_cv_cc_weak_import = yes; then 7577 7578$as_echo "#define HAVE_WEAK_IMPORT 1" >>confdefs.h 7579 7580 fi 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin SUSv3 extensions are available" >&5 7582$as_echo_n "checking if Darwin SUSv3 extensions are available... " >&6; } 7583if ${tcl_cv_cc_darwin_c_source+:} false; then : 7584 $as_echo_n "(cached) " >&6 7585else 7586 7587 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589/* end confdefs.h. */ 7590 7591 #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 7592 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 7593 #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 7594 #endif 7595 #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1050 7596 #error MAC_OS_X_VERSION_MIN_REQUIRED < 1050 7597 #endif 7598 #define _DARWIN_C_SOURCE 1 7599 #include <sys/cdefs.h> 7600 7601int 7602main () 7603{ 7604 7605 ; 7606 return 0; 7607} 7608_ACEOF 7609if ac_fn_c_try_compile "$LINENO"; then : 7610 tcl_cv_cc_darwin_c_source=yes 7611else 7612 tcl_cv_cc_darwin_c_source=no 7613fi 7614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7615 CFLAGS=$hold_cflags 7616fi 7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_darwin_c_source" >&5 7618$as_echo "$tcl_cv_cc_darwin_c_source" >&6; } 7619 if test $tcl_cv_cc_darwin_c_source = yes; then 7620 7621$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 7622 7623 fi 7624 fi 7625else 7626 tk_aqua=no 7627fi 7628 7629if test $tk_aqua = yes; then 7630 7631$as_echo "#define MAC_OSX_TK 1" >>confdefs.h 7632 7633 LIBS="$LIBS -framework Cocoa -framework Carbon -framework IOKit -framework QuartzCore" 7634 EXTRA_CC_SWITCHES='-std=gnu99 -x objective-c' 7635 TK_WINDOWINGSYSTEM=AQUA 7636 if test -n "${enable_symbols}" -a "${enable_symbols}" != no; then 7637 7638$as_echo "#define TK_MAC_DEBUG 1" >>confdefs.h 7639 7640 fi 7641else 7642 #-------------------------------------------------------------------- 7643 # Locate the X11 header files and the X11 library archive. Try 7644 # the ac_path_x macro first, but if it doesn't find the X stuff 7645 # (e.g. because there's no xmkmf program) then check through 7646 # a list of possible directories. Under some conditions the 7647 # autoconf macro will return an include directory that contains 7648 # no include files, so double-check its result just to be safe. 7649 #-------------------------------------------------------------------- 7650 7651 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 7653$as_echo_n "checking for X... " >&6; } 7654 7655 7656# Check whether --with-x was given. 7657if test "${with_x+set}" = set; then : 7658 withval=$with_x; 7659fi 7660 7661# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7662if test "x$with_x" = xno; then 7663 # The user explicitly disabled X. 7664 have_x=disabled 7665else 7666 case $x_includes,$x_libraries in #( 7667 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 7668 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 7669 $as_echo_n "(cached) " >&6 7670else 7671 # One or both of the vars are not set, and there is no cached value. 7672ac_x_includes=no ac_x_libraries=no 7673rm -f -r conftest.dir 7674if mkdir conftest.dir; then 7675 cd conftest.dir 7676 cat >Imakefile <<'_ACEOF' 7677incroot: 7678 @echo incroot='${INCROOT}' 7679usrlibdir: 7680 @echo usrlibdir='${USRLIBDIR}' 7681libdir: 7682 @echo libdir='${LIBDIR}' 7683_ACEOF 7684 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7685 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7686 for ac_var in incroot usrlibdir libdir; do 7687 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7688 done 7689 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7690 for ac_extension in a so sl dylib la dll; do 7691 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7692 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7693 ac_im_usrlibdir=$ac_im_libdir; break 7694 fi 7695 done 7696 # Screen out bogus values from the imake configuration. They are 7697 # bogus both because they are the default anyway, and because 7698 # using them would break gcc on systems where it needs fixed includes. 7699 case $ac_im_incroot in 7700 /usr/include) ac_x_includes= ;; 7701 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7702 esac 7703 case $ac_im_usrlibdir in 7704 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 7705 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7706 esac 7707 fi 7708 cd .. 7709 rm -f -r conftest.dir 7710fi 7711 7712# Standard set of common directories for X headers. 7713# Check X11 before X11Rn because it is often a symlink to the current release. 7714ac_x_header_dirs=' 7715/usr/X11/include 7716/usr/X11R7/include 7717/usr/X11R6/include 7718/usr/X11R5/include 7719/usr/X11R4/include 7720 7721/usr/include/X11 7722/usr/include/X11R7 7723/usr/include/X11R6 7724/usr/include/X11R5 7725/usr/include/X11R4 7726 7727/usr/local/X11/include 7728/usr/local/X11R7/include 7729/usr/local/X11R6/include 7730/usr/local/X11R5/include 7731/usr/local/X11R4/include 7732 7733/usr/local/include/X11 7734/usr/local/include/X11R7 7735/usr/local/include/X11R6 7736/usr/local/include/X11R5 7737/usr/local/include/X11R4 7738 7739/usr/X386/include 7740/usr/x386/include 7741/usr/XFree86/include/X11 7742 7743/usr/include 7744/usr/local/include 7745/usr/unsupported/include 7746/usr/athena/include 7747/usr/local/x11r5/include 7748/usr/lpp/Xamples/include 7749 7750/usr/openwin/include 7751/usr/openwin/share/include' 7752 7753if test "$ac_x_includes" = no; then 7754 # Guess where to find include files, by looking for Xlib.h. 7755 # First, try using that file with no special directory specified. 7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7757/* end confdefs.h. */ 7758#include <X11/Xlib.h> 7759_ACEOF 7760if ac_fn_c_try_cpp "$LINENO"; then : 7761 # We can compile using X headers with no special include directory. 7762ac_x_includes= 7763else 7764 for ac_dir in $ac_x_header_dirs; do 7765 if test -r "$ac_dir/X11/Xlib.h"; then 7766 ac_x_includes=$ac_dir 7767 break 7768 fi 7769done 7770fi 7771rm -f conftest.err conftest.i conftest.$ac_ext 7772fi # $ac_x_includes = no 7773 7774if test "$ac_x_libraries" = no; then 7775 # Check for the libraries. 7776 # See if we find them without any special options. 7777 # Don't add to $LIBS permanently. 7778 ac_save_LIBS=$LIBS 7779 LIBS="-lX11 $LIBS" 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782#include <X11/Xlib.h> 7783int 7784main () 7785{ 7786XrmInitialize () 7787 ; 7788 return 0; 7789} 7790_ACEOF 7791if ac_fn_c_try_link "$LINENO"; then : 7792 LIBS=$ac_save_LIBS 7793# We can link X programs with no special library path. 7794ac_x_libraries= 7795else 7796 LIBS=$ac_save_LIBS 7797for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7798do 7799 # Don't even attempt the hair of trying to link an X program! 7800 for ac_extension in a so sl dylib la dll; do 7801 if test -r "$ac_dir/libX11.$ac_extension"; then 7802 ac_x_libraries=$ac_dir 7803 break 2 7804 fi 7805 done 7806done 7807fi 7808rm -f core conftest.err conftest.$ac_objext \ 7809 conftest$ac_exeext conftest.$ac_ext 7810fi # $ac_x_libraries = no 7811 7812case $ac_x_includes,$ac_x_libraries in #( 7813 no,* | *,no | *\'*) 7814 # Didn't find X, or a directory has "'" in its name. 7815 ac_cv_have_x="have_x=no";; #( 7816 *) 7817 # Record where we found X for the cache. 7818 ac_cv_have_x="have_x=yes\ 7819 ac_x_includes='$ac_x_includes'\ 7820 ac_x_libraries='$ac_x_libraries'" 7821esac 7822fi 7823;; #( 7824 *) have_x=yes;; 7825 esac 7826 eval "$ac_cv_have_x" 7827fi # $with_x != no 7828 7829if test "$have_x" != yes; then 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 7831$as_echo "$have_x" >&6; } 7832 no_x=yes 7833else 7834 # If each of the values was on the command line, it overrides each guess. 7835 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7836 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7837 # Update the cache value to reflect the command line values. 7838 ac_cv_have_x="have_x=yes\ 7839 ac_x_includes='$x_includes'\ 7840 ac_x_libraries='$x_libraries'" 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 7842$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7843fi 7844 7845 not_really_there="" 7846 if test "$no_x" = ""; then 7847 if test "$x_includes" = ""; then 7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850#include <X11/Xlib.h> 7851_ACEOF 7852if ac_fn_c_try_cpp "$LINENO"; then : 7853 7854else 7855 not_really_there="yes" 7856fi 7857rm -f conftest.err conftest.i conftest.$ac_ext 7858 else 7859 if test ! -r $x_includes/X11/Xlib.h; then 7860 not_really_there="yes" 7861 fi 7862 fi 7863 fi 7864 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5 7866$as_echo_n "checking for X11 header files... " >&6; } 7867 found_xincludes="no" 7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7869/* end confdefs.h. */ 7870#include <X11/Xlib.h> 7871_ACEOF 7872if ac_fn_c_try_cpp "$LINENO"; then : 7873 found_xincludes="yes" 7874else 7875 found_xincludes="no" 7876fi 7877rm -f conftest.err conftest.i conftest.$ac_ext 7878 if test "$found_xincludes" = "no"; then 7879 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" 7880 for i in $dirs ; do 7881 if test -r $i/X11/Xlib.h; then 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 7883$as_echo "$i" >&6; } 7884 XINCLUDES=" -I$i" 7885 found_xincludes="yes" 7886 break 7887 fi 7888 done 7889 fi 7890 else 7891 if test "$x_includes" != ""; then 7892 XINCLUDES="-I$x_includes" 7893 found_xincludes="yes" 7894 fi 7895 fi 7896 if test "$found_xincludes" = "no"; then 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: couldn't find any!" >&5 7898$as_echo "couldn't find any!" >&6; } 7899 fi 7900 7901 if test "$no_x" = yes; then 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 libraries" >&5 7903$as_echo_n "checking for X11 libraries... " >&6; } 7904 XLIBSW=nope 7905 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" 7906 for i in $dirs ; do 7907 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 7909$as_echo "$i" >&6; } 7910 XLIBSW="-L$i -lX11" 7911 x_libraries="$i" 7912 break 7913 fi 7914 done 7915 else 7916 if test "$x_libraries" = ""; then 7917 XLIBSW=-lX11 7918 else 7919 XLIBSW="-L$x_libraries -lX11" 7920 fi 7921 fi 7922 if test "$XLIBSW" = nope ; then 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lXwindow" >&5 7924$as_echo_n "checking for XCreateWindow in -lXwindow... " >&6; } 7925if ${ac_cv_lib_Xwindow_XCreateWindow+:} false; then : 7926 $as_echo_n "(cached) " >&6 7927else 7928 ac_check_lib_save_LIBS=$LIBS 7929LIBS="-lXwindow $LIBS" 7930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7931/* end confdefs.h. */ 7932 7933/* Override any GCC internal prototype to avoid an error. 7934 Use char because int might match the return type of a GCC 7935 builtin and then its argument prototype would still apply. */ 7936#ifdef __cplusplus 7937extern "C" 7938#endif 7939char XCreateWindow (); 7940int 7941main () 7942{ 7943return XCreateWindow (); 7944 ; 7945 return 0; 7946} 7947_ACEOF 7948if ac_fn_c_try_link "$LINENO"; then : 7949 ac_cv_lib_Xwindow_XCreateWindow=yes 7950else 7951 ac_cv_lib_Xwindow_XCreateWindow=no 7952fi 7953rm -f core conftest.err conftest.$ac_objext \ 7954 conftest$ac_exeext conftest.$ac_ext 7955LIBS=$ac_check_lib_save_LIBS 7956fi 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 7958$as_echo "$ac_cv_lib_Xwindow_XCreateWindow" >&6; } 7959if test "x$ac_cv_lib_Xwindow_XCreateWindow" = xyes; then : 7960 XLIBSW=-lXwindow 7961fi 7962 7963 fi 7964 if test "$XLIBSW" = nope ; then 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find any! Using -lX11." >&5 7966$as_echo "could not find any! Using -lX11." >&6; } 7967 XLIBSW=-lX11 7968 fi 7969 7970 TK_WINDOWINGSYSTEM=X11 7971fi 7972 7973#-------------------------------------------------------------------- 7974# Various manipulations on the search path used at runtime to 7975# find shared libraries: 7976# 1. If the X library binaries are in a non-standard directory, 7977# add the X library location into that search path. 7978# 2. On systems such as AIX and Ultrix that use "-L" as the 7979# search path option, colons cannot be used to separate 7980# directories from each other. Change colons to " -L". 7981# 3. Create two sets of search flags, one for use in cc lines 7982# and the other for when the linker is invoked directly. In 7983# the second case, '-Wl,' must be stripped off and commas must 7984# be replaced by spaces. 7985#-------------------------------------------------------------------- 7986 7987if test "x${x_libraries}" != "x"; then 7988 if test "x${x_libraries}" != "xNONE"; then 7989 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${x_libraries}" 7990 fi 7991fi 7992if test "${TCL_LD_SEARCH_FLAGS}" = '-L${LIB_RUNTIME_DIR}'; then 7993 LIB_RUNTIME_DIR=`echo ${LIB_RUNTIME_DIR} |sed -e 's/:/ -L/g'` 7994fi 7995 7996#-------------------------------------------------------------------- 7997# Check for the existence of various libraries. The order here 7998# is important, so that then end up in the right order in the 7999# command line generated by make. The -lsocket and -lnsl libraries 8000# require a couple of special tricks: 8001# 1. Use "connect" and "accept" to check for -lsocket, and 8002# "gethostbyname" to check for -lnsl. 8003# 2. Use each function name only once: can't redo a check because 8004# autoconf caches the results of the last check and won't redo it. 8005# 3. Use -lnsl and -lsocket only if they supply procedures that 8006# aren't already present in the normal libraries. This is because 8007# IRIX 5.2 has libraries, but they aren't needed and they're 8008# bogus: they goof up name resolution if used. 8009# 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 8010# To get around this problem, check for both libraries together 8011# if -lsocket doesn't work by itself. 8012#-------------------------------------------------------------------- 8013 8014if test $tk_aqua = no; then 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 8016$as_echo_n "checking for main in -lXbsd... " >&6; } 8017if ${ac_cv_lib_Xbsd_main+:} false; then : 8018 $as_echo_n "(cached) " >&6 8019else 8020 ac_check_lib_save_LIBS=$LIBS 8021LIBS="-lXbsd $LIBS" 8022cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8023/* end confdefs.h. */ 8024 8025 8026int 8027main () 8028{ 8029return main (); 8030 ; 8031 return 0; 8032} 8033_ACEOF 8034if ac_fn_c_try_link "$LINENO"; then : 8035 ac_cv_lib_Xbsd_main=yes 8036else 8037 ac_cv_lib_Xbsd_main=no 8038fi 8039rm -f core conftest.err conftest.$ac_objext \ 8040 conftest$ac_exeext conftest.$ac_ext 8041LIBS=$ac_check_lib_save_LIBS 8042fi 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 8044$as_echo "$ac_cv_lib_Xbsd_main" >&6; } 8045if test "x$ac_cv_lib_Xbsd_main" = xyes; then : 8046 LIBS="$LIBS -lXbsd" 8047fi 8048 8049fi 8050 8051#-------------------------------------------------------------------- 8052# One more check related to the X libraries. The standard releases 8053# of Ultrix don't support the "xauth" mechanism, so send won't work 8054# unless TK_NO_SECURITY is defined. However, there are usually copies 8055# of the MIT X server available as well, which do support xauth. 8056# Check for the MIT stuff and use it if it exists. 8057# 8058# Note: can't use ac_check_lib macro (at least, not in Autoconf 2.1) 8059# because it can't deal with the "-" in the library name. 8060#-------------------------------------------------------------------- 8061 8062if test -d /usr/include/mit -a $tk_aqua = no; then 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MIT X libraries" >&5 8064$as_echo_n "checking MIT X libraries... " >&6; } 8065 tk_oldCFlags=$CFLAGS 8066 CFLAGS="$CFLAGS -I/usr/include/mit" 8067 tk_oldLibs=$LIBS 8068 LIBS="$LIBS -lX11-mit" 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071 8072 #include <X11/Xlib.h> 8073 8074int 8075main () 8076{ 8077 8078 XOpenDisplay(0); 8079 8080 ; 8081 return 0; 8082} 8083_ACEOF 8084if ac_fn_c_try_link "$LINENO"; then : 8085 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8087$as_echo "yes" >&6; } 8088 XLIBSW="-lX11-mit" 8089 XINCLUDES="-I/usr/include/mit" 8090 8091else 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8093$as_echo "no" >&6; } 8094fi 8095rm -f core conftest.err conftest.$ac_objext \ 8096 conftest$ac_exeext conftest.$ac_ext 8097 CFLAGS=$tk_oldCFlags 8098 LIBS=$tk_oldLibs 8099fi 8100 8101#-------------------------------------------------------------------- 8102# Check for freetype / fontconfig / Xft support. 8103#-------------------------------------------------------------------- 8104 8105if test $tk_aqua = no; then 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xft" >&5 8107$as_echo_n "checking whether to use xft... " >&6; } 8108 # Check whether --enable-xft was given. 8109if test "${enable_xft+set}" = set; then : 8110 enableval=$enable_xft; enable_xft=$enableval 8111else 8112 enable_xft="default" 8113fi 8114 8115 XFT_CFLAGS="" 8116 XFT_LIBS="" 8117 if test "$enable_xft" = "no" ; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xft" >&5 8119$as_echo "$enable_xft" >&6; } 8120 else 8121 found_xft="yes" 8122 XFT_CFLAGS=`xft-config --cflags 2>/dev/null` || found_xft="no" 8123 XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no" 8124 if test "$found_xft" = "no" ; then 8125 found_xft=yes 8126 XFT_CFLAGS=`pkg-config --cflags xft fontconfig 2>/dev/null` || found_xft="no" 8127 XFT_LIBS=`pkg-config --libs xft fontconfig 2>/dev/null` || found_xft="no" 8128 fi 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_xft" >&5 8130$as_echo "$found_xft" >&6; } 8131 if test "$found_xft" = "yes" ; then 8132 tk_oldCFlags=$CFLAGS 8133 CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS" 8134 tk_oldLibs=$LIBS 8135 LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW" 8136 ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/Xlib.h> 8137" 8138if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then : 8139 8140else 8141 8142 found_xft=no 8143 8144fi 8145 8146 8147 CFLAGS=$tk_oldCFlags 8148 LIBS=$tk_oldLibs 8149 fi 8150 if test "$found_xft" = "yes" ; then 8151 tk_oldCFlags=$CFLAGS 8152 CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS" 8153 tk_oldLibs=$LIBS 8154 LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW" 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 8156$as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 8157if ${ac_cv_lib_Xft_XftFontOpen+:} false; then : 8158 $as_echo_n "(cached) " >&6 8159else 8160 ac_check_lib_save_LIBS=$LIBS 8161LIBS="-lXft $LIBS" 8162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8163/* end confdefs.h. */ 8164 8165/* Override any GCC internal prototype to avoid an error. 8166 Use char because int might match the return type of a GCC 8167 builtin and then its argument prototype would still apply. */ 8168#ifdef __cplusplus 8169extern "C" 8170#endif 8171char XftFontOpen (); 8172int 8173main () 8174{ 8175return XftFontOpen (); 8176 ; 8177 return 0; 8178} 8179_ACEOF 8180if ac_fn_c_try_link "$LINENO"; then : 8181 ac_cv_lib_Xft_XftFontOpen=yes 8182else 8183 ac_cv_lib_Xft_XftFontOpen=no 8184fi 8185rm -f core conftest.err conftest.$ac_objext \ 8186 conftest$ac_exeext conftest.$ac_ext 8187LIBS=$ac_check_lib_save_LIBS 8188fi 8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 8190$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 8191if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then : 8192 cat >>confdefs.h <<_ACEOF 8193#define HAVE_LIBXFT 1 8194_ACEOF 8195 8196 LIBS="-lXft $LIBS" 8197 8198else 8199 8200 found_xft=no 8201 8202fi 8203 8204 CFLAGS=$tk_oldCFlags 8205 LIBS=$tk_oldLibs 8206 fi 8207 if test "$found_xft" = "yes" ; then 8208 tk_oldCFlags=$CFLAGS 8209 CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS" 8210 tk_oldLibs=$LIBS 8211 LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW -lfontconfig" 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcFontSort in -lfontconfig" >&5 8213$as_echo_n "checking for FcFontSort in -lfontconfig... " >&6; } 8214if ${ac_cv_lib_fontconfig_FcFontSort+:} false; then : 8215 $as_echo_n "(cached) " >&6 8216else 8217 ac_check_lib_save_LIBS=$LIBS 8218LIBS="-lfontconfig $LIBS" 8219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8220/* end confdefs.h. */ 8221 8222/* Override any GCC internal prototype to avoid an error. 8223 Use char because int might match the return type of a GCC 8224 builtin and then its argument prototype would still apply. */ 8225#ifdef __cplusplus 8226extern "C" 8227#endif 8228char FcFontSort (); 8229int 8230main () 8231{ 8232return FcFontSort (); 8233 ; 8234 return 0; 8235} 8236_ACEOF 8237if ac_fn_c_try_link "$LINENO"; then : 8238 ac_cv_lib_fontconfig_FcFontSort=yes 8239else 8240 ac_cv_lib_fontconfig_FcFontSort=no 8241fi 8242rm -f core conftest.err conftest.$ac_objext \ 8243 conftest$ac_exeext conftest.$ac_ext 8244LIBS=$ac_check_lib_save_LIBS 8245fi 8246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcFontSort" >&5 8247$as_echo "$ac_cv_lib_fontconfig_FcFontSort" >&6; } 8248if test "x$ac_cv_lib_fontconfig_FcFontSort" = xyes; then : 8249 8250 XFT_LIBS="$XFT_LIBS -lfontconfig" 8251 8252fi 8253 8254 CFLAGS=$tk_oldCFlags 8255 LIBS=$tk_oldLibs 8256 fi 8257 if test "$found_xft" = "no" ; then 8258 if test "$enable_xft" = "yes" ; then 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find xft configuration, or xft is unusable" >&5 8260$as_echo "$as_me: WARNING: Can't find xft configuration, or xft is unusable" >&2;} 8261 fi 8262 enable_xft=no 8263 XFT_CFLAGS="" 8264 XFT_LIBS="" 8265 else 8266 enable_xft=yes 8267 fi 8268 fi 8269 if test $enable_xft = "yes" ; then 8270 UNIX_FONT_OBJS=tkUnixRFont.o 8271 8272$as_echo "#define HAVE_XFT 1" >>confdefs.h 8273 8274 else 8275 UNIX_FONT_OBJS=tkUnixFont.o 8276 fi 8277 8278 8279 8280fi 8281 8282#-------------------------------------------------------------------- 8283# Check for XkbKeycodeToKeysym. 8284#-------------------------------------------------------------------- 8285 8286if test $tk_aqua = no; then 8287 tk_oldCFlags=$CFLAGS 8288 tk_oldLibs=$LIBS 8289 CFLAGS="$CFLAGS $XINCLUDES" 8290 LIBS="$LIBS $XLIBSW" 8291 ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h> 8292" 8293if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then : 8294 8295 xkblib_header_found=yes 8296 8297else 8298 8299 xkblib_header_found=no 8300 8301fi 8302 8303 8304 if test $xkblib_header_found = "yes" ; then 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5 8306$as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; } 8307if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then : 8308 $as_echo_n "(cached) " >&6 8309else 8310 ac_check_lib_save_LIBS=$LIBS 8311LIBS="-lX11 $LIBS" 8312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313/* end confdefs.h. */ 8314 8315/* Override any GCC internal prototype to avoid an error. 8316 Use char because int might match the return type of a GCC 8317 builtin and then its argument prototype would still apply. */ 8318#ifdef __cplusplus 8319extern "C" 8320#endif 8321char XkbKeycodeToKeysym (); 8322int 8323main () 8324{ 8325return XkbKeycodeToKeysym (); 8326 ; 8327 return 0; 8328} 8329_ACEOF 8330if ac_fn_c_try_link "$LINENO"; then : 8331 ac_cv_lib_X11_XkbKeycodeToKeysym=yes 8332else 8333 ac_cv_lib_X11_XkbKeycodeToKeysym=no 8334fi 8335rm -f core conftest.err conftest.$ac_objext \ 8336 conftest$ac_exeext conftest.$ac_ext 8337LIBS=$ac_check_lib_save_LIBS 8338fi 8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5 8340$as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; } 8341if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then : 8342 8343 xkbkeycodetokeysym_found=yes 8344 8345else 8346 8347 xkbkeycodetokeysym_found=no 8348 8349fi 8350 8351 else 8352 xkbkeycodetokeysym_found=no 8353 fi 8354 if test $xkbkeycodetokeysym_found = "yes" ; then 8355 8356$as_echo "#define HAVE_XKBKEYCODETOKEYSYM 1" >>confdefs.h 8357 8358 fi 8359 CFLAGS=$tk_oldCFlags 8360 LIBS=$tk_oldLibs 8361fi 8362 8363#-------------------------------------------------------------------- 8364# Check whether XKeycodeToKeysym is deprecated in X11 headers. 8365#-------------------------------------------------------------------- 8366 8367if test $tk_aqua = no && test "$GCC" = yes; then 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XKeycodeToKeysym is deprecated" >&5 8369$as_echo_n "checking whether XKeycodeToKeysym is deprecated... " >&6; } 8370 tk_oldCFlags=$CFLAGS 8371 CFLAGS="$CFLAGS -Werror" 8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8373/* end confdefs.h. */ 8374 8375 #include <X11/Xlib.h> 8376 8377int 8378main () 8379{ 8380 8381 XKeycodeToKeysym(0,0,0); 8382 8383 ; 8384 return 0; 8385} 8386_ACEOF 8387if ac_fn_c_try_link "$LINENO"; then : 8388 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8390$as_echo "no" >&6; } 8391 8392else 8393 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8395$as_echo "yes" >&6; } 8396 8397$as_echo "#define XKEYCODETOKEYSYM_IS_DEPRECATED 1" >>confdefs.h 8398 8399 8400fi 8401rm -f core conftest.err conftest.$ac_objext \ 8402 conftest$ac_exeext conftest.$ac_ext 8403 CFLAGS=$tk_oldCFlags 8404fi 8405 8406#-------------------------------------------------------------------- 8407# XXX Do this last. 8408# It might modify XLIBSW which could affect other tests. 8409# 8410# Check whether the header and library for the XScreenSaver 8411# extension are available, and set HAVE_XSS if so. 8412# XScreenSaver is needed for Tk_GetUserInactiveTime(). 8413#-------------------------------------------------------------------- 8414 8415if test $tk_aqua = no; then 8416 tk_oldCFlags=$CFLAGS 8417 CFLAGS="$CFLAGS $XINCLUDES" 8418 tk_oldLibs=$LIBS 8419 LIBS="$tk_oldLibs $XLIBSW" 8420 xss_header_found=no 8421 xss_lib_found=no 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try to use XScreenSaver" >&5 8423$as_echo_n "checking whether to try to use XScreenSaver... " >&6; } 8424 # Check whether --enable-xss was given. 8425if test "${enable_xss+set}" = set; then : 8426 enableval=$enable_xss; enable_xss=$enableval 8427else 8428 enable_xss=yes 8429fi 8430 8431 if test "$enable_xss" = "no" ; then 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xss" >&5 8433$as_echo "$enable_xss" >&6; } 8434 else 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xss" >&5 8436$as_echo "$enable_xss" >&6; } 8437 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h> 8438" 8439if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then : 8440 8441 xss_header_found=yes 8442 8443fi 8444 8445 8446 ac_fn_c_check_func "$LINENO" "XScreenSaverQueryInfo" "ac_cv_func_XScreenSaverQueryInfo" 8447if test "x$ac_cv_func_XScreenSaverQueryInfo" = xyes; then : 8448 8449else 8450 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverQueryInfo in -lXext" >&5 8452$as_echo_n "checking for XScreenSaverQueryInfo in -lXext... " >&6; } 8453if ${ac_cv_lib_Xext_XScreenSaverQueryInfo+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 ac_check_lib_save_LIBS=$LIBS 8457LIBS="-lXext $LIBS" 8458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8459/* end confdefs.h. */ 8460 8461/* Override any GCC internal prototype to avoid an error. 8462 Use char because int might match the return type of a GCC 8463 builtin and then its argument prototype would still apply. */ 8464#ifdef __cplusplus 8465extern "C" 8466#endif 8467char XScreenSaverQueryInfo (); 8468int 8469main () 8470{ 8471return XScreenSaverQueryInfo (); 8472 ; 8473 return 0; 8474} 8475_ACEOF 8476if ac_fn_c_try_link "$LINENO"; then : 8477 ac_cv_lib_Xext_XScreenSaverQueryInfo=yes 8478else 8479 ac_cv_lib_Xext_XScreenSaverQueryInfo=no 8480fi 8481rm -f core conftest.err conftest.$ac_objext \ 8482 conftest$ac_exeext conftest.$ac_ext 8483LIBS=$ac_check_lib_save_LIBS 8484fi 8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XScreenSaverQueryInfo" >&5 8486$as_echo "$ac_cv_lib_Xext_XScreenSaverQueryInfo" >&6; } 8487if test "x$ac_cv_lib_Xext_XScreenSaverQueryInfo" = xyes; then : 8488 8489 XLIBSW="$XLIBSW -lXext" 8490 xss_lib_found=yes 8491 8492else 8493 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverQueryInfo in -lXss" >&5 8495$as_echo_n "checking for XScreenSaverQueryInfo in -lXss... " >&6; } 8496if ${ac_cv_lib_Xss_XScreenSaverQueryInfo+:} false; then : 8497 $as_echo_n "(cached) " >&6 8498else 8499 ac_check_lib_save_LIBS=$LIBS 8500LIBS="-lXss -lXext $LIBS" 8501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8502/* end confdefs.h. */ 8503 8504/* Override any GCC internal prototype to avoid an error. 8505 Use char because int might match the return type of a GCC 8506 builtin and then its argument prototype would still apply. */ 8507#ifdef __cplusplus 8508extern "C" 8509#endif 8510char XScreenSaverQueryInfo (); 8511int 8512main () 8513{ 8514return XScreenSaverQueryInfo (); 8515 ; 8516 return 0; 8517} 8518_ACEOF 8519if ac_fn_c_try_link "$LINENO"; then : 8520 ac_cv_lib_Xss_XScreenSaverQueryInfo=yes 8521else 8522 ac_cv_lib_Xss_XScreenSaverQueryInfo=no 8523fi 8524rm -f core conftest.err conftest.$ac_objext \ 8525 conftest$ac_exeext conftest.$ac_ext 8526LIBS=$ac_check_lib_save_LIBS 8527fi 8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverQueryInfo" >&5 8529$as_echo "$ac_cv_lib_Xss_XScreenSaverQueryInfo" >&6; } 8530if test "x$ac_cv_lib_Xss_XScreenSaverQueryInfo" = xyes; then : 8531 8532 if test "$tcl_cv_ld_weak_l" = yes; then 8533 # On Darwin, weak link libXss if possible, 8534 # as it is only available on Tiger or later. 8535 XLIBSW="$XLIBSW -Wl,-weak-lXss -lXext" 8536 else 8537 XLIBSW="$XLIBSW -lXss -lXext" 8538 fi 8539 xss_lib_found=yes 8540 8541fi 8542 8543 8544fi 8545 8546 8547fi 8548 8549 fi 8550 if test $enable_xss = yes -a $xss_lib_found = yes -a $xss_header_found = yes; then 8551 8552$as_echo "#define HAVE_XSS 1" >>confdefs.h 8553 8554 fi 8555 CFLAGS=$tk_oldCFlags 8556 LIBS=$tk_oldLibs 8557fi 8558 8559#-------------------------------------------------------------------- 8560# Figure out whether "char" is unsigned. If so, set a 8561# #define for __CHAR_UNSIGNED__. 8562#-------------------------------------------------------------------- 8563 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 8565$as_echo_n "checking whether char is unsigned... " >&6; } 8566if ${ac_cv_c_char_unsigned+:} false; then : 8567 $as_echo_n "(cached) " >&6 8568else 8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8570/* end confdefs.h. */ 8571$ac_includes_default 8572int 8573main () 8574{ 8575static int test_array [1 - 2 * !(((char) -1) < 0)]; 8576test_array [0] = 0; 8577return test_array [0]; 8578 8579 ; 8580 return 0; 8581} 8582_ACEOF 8583if ac_fn_c_try_compile "$LINENO"; then : 8584 ac_cv_c_char_unsigned=no 8585else 8586 ac_cv_c_char_unsigned=yes 8587fi 8588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8589fi 8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 8591$as_echo "$ac_cv_c_char_unsigned" >&6; } 8592if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 8593 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 8594 8595fi 8596 8597 8598#-------------------------------------------------------------------- 8599# The statements below define a collection of symbols related to 8600# building libtk as a shared library instead of a static library. 8601#-------------------------------------------------------------------- 8602 8603eval eval "TK_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}" 8604eval eval "TK_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}" 8605eval "TK_LIB_FILE=libtk${LIB_SUFFIX}" 8606 8607# tkConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed 8608# since on some platforms TK_LIB_FILE contains shell escapes. 8609 8610eval "TK_LIB_FILE=${TK_LIB_FILE}" 8611 8612if test "${SHARED_BUILD}" = "1" -a "${SHLIB_SUFFIX}" != ""; then 8613 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \${TCL_STUB_LIB_SPEC}" 8614 TCL_STUB_FLAGS="-DUSE_TCL_STUBS" 8615fi 8616 8617test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' 8618PRIVATE_INCLUDE_DIR='$(includedir)' 8619HTML_DIR='$(DISTDIR)/html' 8620TK_PKG_DIR='tk$(VERSION)' 8621TK_RSRC_FILE='tk$(VERSION).rsrc' 8622WISH_RSRC_FILE='wish$(VERSION).rsrc' 8623 8624# Note: in the following variable, it's important to use the absolute 8625# path name of the Tcl directory rather than "..": this is because 8626# AIX remembers this path and will attempt to use it at run-time to look 8627# up the Tcl library. 8628 8629if test "`uname -s`" = "Darwin" ; then 8630 8631 if test "`uname -s`" = "Darwin" ; then 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to package libraries" >&5 8633$as_echo_n "checking how to package libraries... " >&6; } 8634 # Check whether --enable-framework was given. 8635if test "${enable_framework+set}" = set; then : 8636 enableval=$enable_framework; enable_framework=$enableval 8637else 8638 enable_framework=no 8639fi 8640 8641 if test $enable_framework = yes; then 8642 if test $SHARED_BUILD = 0; then 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Frameworks can only be built if --enable-shared is yes" >&5 8644$as_echo "$as_me: WARNING: Frameworks can only be built if --enable-shared is yes" >&2;} 8645 enable_framework=no 8646 fi 8647 if test $tcl_corefoundation = no; then 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Frameworks can only be used when CoreFoundation is available" >&5 8649$as_echo "$as_me: WARNING: Frameworks can only be used when CoreFoundation is available" >&2;} 8650 enable_framework=no 8651 fi 8652 fi 8653 if test $enable_framework = yes; then 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5 8655$as_echo "framework" >&6; } 8656 FRAMEWORK_BUILD=1 8657 else 8658 if test $SHARED_BUILD = 1; then 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared library" >&5 8660$as_echo "shared library" >&6; } 8661 else 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static library" >&5 8663$as_echo "static library" >&6; } 8664 fi 8665 FRAMEWORK_BUILD=0 8666 fi 8667 fi 8668 8669 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)}'`" 8670 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)' 8671 echo "$LDFLAGS " | grep -q -- '-prebind ' && TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -seg1addr 0xb000000' 8672 TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -sectcreate __TEXT __info_plist Tk-Info.plist' 8673 EXTRA_WISH_LIBS='-sectcreate __TEXT __info_plist Wish-Info.plist' 8674 EXTRA_WISH_LIBS=${EXTRA_WISH_LIBS}' -sectcreate __TEXT __credits_html Credits.html' 8675 if test "${SHARED_BUILD}" = "0"; then 8676 EXTRA_WISH_LIBS=${EXTRA_WISH_LIBS}' -ObjC' 8677 fi 8678 EXTRA_APP_CC_SWITCHES="${EXTRA_APP_CC_SWITCHES}"' -mdynamic-no-pic' 8679 ac_config_files="$ac_config_files Tk-Info.plist:../macosx/Tk-Info.plist.in Wish-Info.plist:../macosx/Wish-Info.plist.in Credits.html:../macosx/Credits.html.in" 8680 8681 for l in ${LOCALES}; do CFBUNDLELOCALIZATIONS="${CFBUNDLELOCALIZATIONS}<string>$l</string>"; done 8682 TK_YEAR="`date +%Y`" 8683fi 8684 8685if test "$FRAMEWORK_BUILD" = "1" ; then 8686 8687$as_echo "#define TK_FRAMEWORK 1" >>confdefs.h 8688 8689 # Construct a fake local framework structure to make linking with 8690 # '-framework Tk' and running of tktest work 8691 ac_config_commands="$ac_config_commands Tk.framework" 8692 8693 LD_LIBRARY_PATH_VAR="DYLD_FRAMEWORK_PATH" 8694 if test "${libdir}" = '${exec_prefix}/lib'; then 8695 # override libdir default 8696 libdir="/Library/Frameworks" 8697 fi 8698 TK_LIB_FILE="Tk" 8699 TK_LIB_FLAG="-framework Tk" 8700 TK_BUILD_LIB_SPEC="-F`pwd | sed -e 's/ /\\\\ /g'` -framework Tk" 8701 TK_LIB_SPEC="-F${libdir} -framework Tk" 8702 libdir="${libdir}/Tk.framework/Versions/\${VERSION}" 8703 TK_LIBRARY="${libdir}/Resources/Scripts" 8704 TK_PKG_DIR="Resources/Scripts" 8705 TK_RSRC_FILE="Tk.rsrc" 8706 WISH_RSRC_FILE="Wish.rsrc" 8707 includedir="${libdir}/Headers" 8708 PRIVATE_INCLUDE_DIR="${libdir}/PrivateHeaders" 8709 HTML_DIR="${libdir}/Resources/Documentation/Reference/Tk" 8710 EXTRA_INSTALL="install-private-headers html-tk" 8711 EXTRA_BUILD_HTML='@ln -fs contents.htm "$(HTML_INSTALL_DIR)"/TkTOC.html' 8712 EXTRA_INSTALL_BINARIES='@echo "Installing Info.plist to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) Tk-Info.plist "$(LIB_INSTALL_DIR)/Resources/Info.plist"' 8713 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Credits.html to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) Credits.html "$(LIB_INSTALL_DIR)/Resources"' 8714 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"' 8715 if test $tk_aqua = yes; then 8716 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Images to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)/Resources" && for i in Tk.tiff Tk.icns; do $(INSTALL_DATA) "$(MAC_OSX_DIR)/$$i" "$(LIB_INSTALL_DIR)/Resources"; done' 8717 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing wish$(VERSION) script to $(INSTALL_ROOT)/'"${bindir}"'/" && $(INSTALL_DATA_DIR) "$(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)"' 8718 bindir="${libdir}/Resources/Wish.app/Contents/MacOS" 8719 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"' 8720 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Wish.icns to $(BIN_INSTALL_DIR)/../Resources" && $(INSTALL_DATA_DIR) "$(BIN_INSTALL_DIR)/../Resources"' 8721 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && $(INSTALL_DATA) "$(MAC_OSX_DIR)/Tk.icns" "$(BIN_INSTALL_DIR)/../Resources/Wish.icns"' 8722 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"' 8723 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Credits.html to $(BIN_INSTALL_DIR)/../Resources" && $(INSTALL_DATA) Credits.html "$(BIN_INSTALL_DIR)/../Resources"' 8724 fi 8725 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)/../.."' 8726 # Don't use AC_DEFINE for the following as the framework version define 8727 # needs to go into the Makefile even when using autoheader, so that we 8728 # can pick up a potential make override of VERSION. Also, don't put this 8729 # into CFLAGS as it should not go into tkConfig.sh 8730 EXTRA_CC_SWITCHES="$EXTRA_CC_SWITCHES"' -DTK_FRAMEWORK_VERSION=\"$(VERSION)\"' 8731else 8732 if test $tk_aqua = yes; then 8733 EXTRA_INSTALL_BINARIES='@echo "Installing Images to $(LIB_INSTALL_DIR)/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)" && for i in Tk.tiff Tk.icns; do $(INSTALL_DATA) "$(MAC_OSX_DIR)/$$i" "$(LIB_INSTALL_DIR)"; done' 8734 fi 8735 # libdir must be a fully qualified path and not ${exec_prefix}/lib 8736 eval libdir="$libdir" 8737 if test "${ac_cv_cygwin}" = "yes" -a "$SHARED_BUILD" = "1"; then 8738 TK_LIB_FLAG="-ltk`echo ${TK_VERSION} | tr -d .`" 8739 TK_BUILD_LIB_SPEC="-L\$(TOP_DIR)/win ${TK_LIB_FLAG}" 8740 else 8741 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 8742 TK_LIB_FLAG="-ltk${TK_VERSION}" 8743 else 8744 TK_LIB_FLAG="-ltk`echo ${TK_VERSION} | tr -d .`" 8745 fi 8746 TK_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_LIB_FLAG}" 8747 fi 8748 TK_LIB_SPEC="-L${libdir} ${TK_LIB_FLAG}" 8749fi 8750 8751#-------------------------------------------------------------------- 8752# The statements below define various symbols relating to Tk 8753# stub support. 8754#-------------------------------------------------------------------- 8755 8756# Replace ${VERSION} with contents of ${TK_VERSION} 8757eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}" 8758eval "TK_STUB_LIB_DIR=${libdir}" 8759 8760if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 8761 TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}" 8762else 8763 TK_STUB_LIB_FLAG="-ltkstub`echo ${TK_VERSION} | tr -d .`" 8764fi 8765 8766TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 8767TK_STUB_LIB_SPEC="-L${TK_STUB_LIB_DIR} ${TK_STUB_LIB_FLAG}" 8768TK_BUILD_STUB_LIB_PATH="`pwd`/${TK_STUB_LIB_FILE}" 8769TK_STUB_LIB_PATH="${TK_STUB_LIB_DIR}/${TK_STUB_LIB_FILE}" 8770 8771# Install time header dir can be set via --includedir 8772eval "TK_INCLUDE_SPEC=\"-I${includedir}\"" 8773 8774#------------------------------------------------------------------------ 8775# tkConfig.sh refers to this by a different name 8776#------------------------------------------------------------------------ 8777 8778TK_SHARED_BUILD=${SHARED_BUILD} 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831ac_config_files="$ac_config_files Makefile:../unix/Makefile.in tkConfig.sh:../unix/tkConfig.sh.in tk.pc:../unix/tk.pc.in" 8832 8833cat >confcache <<\_ACEOF 8834# This file is a shell script that caches the results of configure 8835# tests run on this system so they can be shared between configure 8836# scripts and configure runs, see configure's option --config-cache. 8837# It is not useful on other systems. If it contains results you don't 8838# want to keep, you may remove or edit it. 8839# 8840# config.status only pays attention to the cache file if you give it 8841# the --recheck option to rerun configure. 8842# 8843# `ac_cv_env_foo' variables (set or unset) will be overridden when 8844# loading this file, other *unset* `ac_cv_foo' will be assigned the 8845# following values. 8846 8847_ACEOF 8848 8849# The following way of writing the cache mishandles newlines in values, 8850# but we know of no workaround that is simple, portable, and efficient. 8851# So, we kill variables containing newlines. 8852# Ultrix sh set writes to stderr and can't be redirected directly, 8853# and sets the high bit in the cache file unless we assign to the vars. 8854( 8855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8856 eval ac_val=\$$ac_var 8857 case $ac_val in #( 8858 *${as_nl}*) 8859 case $ac_var in #( 8860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8861$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8862 esac 8863 case $ac_var in #( 8864 _ | IFS | as_nl) ;; #( 8865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8866 *) { eval $ac_var=; unset $ac_var;} ;; 8867 esac ;; 8868 esac 8869 done 8870 8871 (set) 2>&1 | 8872 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8873 *${as_nl}ac_space=\ *) 8874 # `set' does not quote correctly, so add quotes: double-quote 8875 # substitution turns \\\\ into \\, and sed turns \\ into \. 8876 sed -n \ 8877 "s/'/'\\\\''/g; 8878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8879 ;; #( 8880 *) 8881 # `set' quotes correctly as required by POSIX, so do not add quotes. 8882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8883 ;; 8884 esac | 8885 sort 8886) | 8887 sed ' 8888 /^ac_cv_env_/b end 8889 t clear 8890 :clear 8891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8892 t end 8893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8894 :end' >>confcache 8895if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8896 if test -w "$cache_file"; then 8897 if test "x$cache_file" != "x/dev/null"; then 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8899$as_echo "$as_me: updating cache $cache_file" >&6;} 8900 if test ! -f "$cache_file" || test -h "$cache_file"; then 8901 cat confcache >"$cache_file" 8902 else 8903 case $cache_file in #( 8904 */* | ?:*) 8905 mv -f confcache "$cache_file"$$ && 8906 mv -f "$cache_file"$$ "$cache_file" ;; #( 8907 *) 8908 mv -f confcache "$cache_file" ;; 8909 esac 8910 fi 8911 fi 8912 else 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8914$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8915 fi 8916fi 8917rm -f confcache 8918 8919test "x$prefix" = xNONE && prefix=$ac_default_prefix 8920# Let make expand exec_prefix. 8921test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8922 8923DEFS=-DHAVE_CONFIG_H 8924 8925ac_libobjs= 8926ac_ltlibobjs= 8927U= 8928for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8929 # 1. Remove the extension, and $U if already installed. 8930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8931 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8933 # will be set to the directory where LIBOBJS objects are built. 8934 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8935 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8936done 8937LIBOBJS=$ac_libobjs 8938 8939LTLIBOBJS=$ac_ltlibobjs 8940 8941 8942DEFS="-DHAVE_TK_CONFIG_H -imacros tkConfig.h" 8943CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 8944 8945 8946: "${CONFIG_STATUS=./config.status}" 8947ac_write_fail=0 8948ac_clean_files_save=$ac_clean_files 8949ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8950{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8951$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8952as_write_fail=0 8953cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8954#! $SHELL 8955# Generated by $as_me. 8956# Run this file to recreate the current configuration. 8957# Compiler output produced by configure, useful for debugging 8958# configure, is in config.log if it exists. 8959 8960debug=false 8961ac_cs_recheck=false 8962ac_cs_silent=false 8963 8964SHELL=\${CONFIG_SHELL-$SHELL} 8965export SHELL 8966_ASEOF 8967cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8968## -------------------- ## 8969## M4sh Initialization. ## 8970## -------------------- ## 8971 8972# Be more Bourne compatible 8973DUALCASE=1; export DUALCASE # for MKS sh 8974if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8975 emulate sh 8976 NULLCMD=: 8977 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8978 # is contrary to our usage. Disable this feature. 8979 alias -g '${1+"$@"}'='"$@"' 8980 setopt NO_GLOB_SUBST 8981else 8982 case `(set -o) 2>/dev/null` in #( 8983 *posix*) : 8984 set -o posix ;; #( 8985 *) : 8986 ;; 8987esac 8988fi 8989 8990 8991as_nl=' 8992' 8993export as_nl 8994# Printing a long string crashes Solaris 7 /usr/bin/printf. 8995as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8996as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8997as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8998# Prefer a ksh shell builtin over an external printf program on Solaris, 8999# but without wasting forks for bash or zsh. 9000if test -z "$BASH_VERSION$ZSH_VERSION" \ 9001 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9002 as_echo='print -r --' 9003 as_echo_n='print -rn --' 9004elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9005 as_echo='printf %s\n' 9006 as_echo_n='printf %s' 9007else 9008 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9009 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9010 as_echo_n='/usr/ucb/echo -n' 9011 else 9012 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9013 as_echo_n_body='eval 9014 arg=$1; 9015 case $arg in #( 9016 *"$as_nl"*) 9017 expr "X$arg" : "X\\(.*\\)$as_nl"; 9018 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9019 esac; 9020 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 9021 ' 9022 export as_echo_n_body 9023 as_echo_n='sh -c $as_echo_n_body as_echo' 9024 fi 9025 export as_echo_body 9026 as_echo='sh -c $as_echo_body as_echo' 9027fi 9028 9029# The user is always right. 9030if test "${PATH_SEPARATOR+set}" != set; then 9031 PATH_SEPARATOR=: 9032 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9033 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9034 PATH_SEPARATOR=';' 9035 } 9036fi 9037 9038 9039# IFS 9040# We need space, tab and new line, in precisely that order. Quoting is 9041# there to prevent editors from complaining about space-tab. 9042# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9043# splitting by setting IFS to empty value.) 9044IFS=" "" $as_nl" 9045 9046# Find who we are. Look in the path if we contain no directory separator. 9047as_myself= 9048case $0 in #(( 9049 *[\\/]* ) as_myself=$0 ;; 9050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9051for as_dir in $PATH 9052do 9053 IFS=$as_save_IFS 9054 test -z "$as_dir" && as_dir=. 9055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9056 done 9057IFS=$as_save_IFS 9058 9059 ;; 9060esac 9061# We did not find ourselves, most probably we were run as `sh COMMAND' 9062# in which case we are not to be found in the path. 9063if test "x$as_myself" = x; then 9064 as_myself=$0 9065fi 9066if test ! -f "$as_myself"; then 9067 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9068 exit 1 9069fi 9070 9071# Unset variables that we do not need and which cause bugs (e.g. in 9072# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9073# suppresses any "Segmentation fault" message there. '((' could 9074# trigger a bug in pdksh 5.2.14. 9075for as_var in BASH_ENV ENV MAIL MAILPATH 9076do eval test x\${$as_var+set} = xset \ 9077 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9078done 9079PS1='$ ' 9080PS2='> ' 9081PS4='+ ' 9082 9083# NLS nuisances. 9084LC_ALL=C 9085export LC_ALL 9086LANGUAGE=C 9087export LANGUAGE 9088 9089# CDPATH. 9090(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9091 9092 9093# as_fn_error STATUS ERROR [LINENO LOG_FD] 9094# ---------------------------------------- 9095# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9096# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9097# script with STATUS, using 1 if that was 0. 9098as_fn_error () 9099{ 9100 as_status=$1; test $as_status -eq 0 && as_status=1 9101 if test "$4"; then 9102 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9103 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9104 fi 9105 $as_echo "$as_me: error: $2" >&2 9106 as_fn_exit $as_status 9107} # as_fn_error 9108 9109 9110# as_fn_set_status STATUS 9111# ----------------------- 9112# Set $? to STATUS, without forking. 9113as_fn_set_status () 9114{ 9115 return $1 9116} # as_fn_set_status 9117 9118# as_fn_exit STATUS 9119# ----------------- 9120# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9121as_fn_exit () 9122{ 9123 set +e 9124 as_fn_set_status $1 9125 exit $1 9126} # as_fn_exit 9127 9128# as_fn_unset VAR 9129# --------------- 9130# Portably unset VAR. 9131as_fn_unset () 9132{ 9133 { eval $1=; unset $1;} 9134} 9135as_unset=as_fn_unset 9136# as_fn_append VAR VALUE 9137# ---------------------- 9138# Append the text in VALUE to the end of the definition contained in VAR. Take 9139# advantage of any shell optimizations that allow amortized linear growth over 9140# repeated appends, instead of the typical quadratic growth present in naive 9141# implementations. 9142if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9143 eval 'as_fn_append () 9144 { 9145 eval $1+=\$2 9146 }' 9147else 9148 as_fn_append () 9149 { 9150 eval $1=\$$1\$2 9151 } 9152fi # as_fn_append 9153 9154# as_fn_arith ARG... 9155# ------------------ 9156# Perform arithmetic evaluation on the ARGs, and store the result in the 9157# global $as_val. Take advantage of shells that can avoid forks. The arguments 9158# must be portable across $(()) and expr. 9159if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9160 eval 'as_fn_arith () 9161 { 9162 as_val=$(( $* )) 9163 }' 9164else 9165 as_fn_arith () 9166 { 9167 as_val=`expr "$@" || test $? -eq 1` 9168 } 9169fi # as_fn_arith 9170 9171 9172if expr a : '\(a\)' >/dev/null 2>&1 && 9173 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9174 as_expr=expr 9175else 9176 as_expr=false 9177fi 9178 9179if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9180 as_basename=basename 9181else 9182 as_basename=false 9183fi 9184 9185if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9186 as_dirname=dirname 9187else 9188 as_dirname=false 9189fi 9190 9191as_me=`$as_basename -- "$0" || 9192$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9193 X"$0" : 'X\(//\)$' \| \ 9194 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9195$as_echo X/"$0" | 9196 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9197 s//\1/ 9198 q 9199 } 9200 /^X\/\(\/\/\)$/{ 9201 s//\1/ 9202 q 9203 } 9204 /^X\/\(\/\).*/{ 9205 s//\1/ 9206 q 9207 } 9208 s/.*/./; q'` 9209 9210# Avoid depending upon Character Ranges. 9211as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9212as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9213as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9214as_cr_digits='0123456789' 9215as_cr_alnum=$as_cr_Letters$as_cr_digits 9216 9217ECHO_C= ECHO_N= ECHO_T= 9218case `echo -n x` in #((((( 9219-n*) 9220 case `echo 'xy\c'` in 9221 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9222 xy) ECHO_C='\c';; 9223 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9224 ECHO_T=' ';; 9225 esac;; 9226*) 9227 ECHO_N='-n';; 9228esac 9229 9230rm -f conf$$ conf$$.exe conf$$.file 9231if test -d conf$$.dir; then 9232 rm -f conf$$.dir/conf$$.file 9233else 9234 rm -f conf$$.dir 9235 mkdir conf$$.dir 2>/dev/null 9236fi 9237if (echo >conf$$.file) 2>/dev/null; then 9238 if ln -s conf$$.file conf$$ 2>/dev/null; then 9239 as_ln_s='ln -s' 9240 # ... but there are two gotchas: 9241 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9242 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9243 # In both cases, we have to default to `cp -pR'. 9244 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9245 as_ln_s='cp -pR' 9246 elif ln conf$$.file conf$$ 2>/dev/null; then 9247 as_ln_s=ln 9248 else 9249 as_ln_s='cp -pR' 9250 fi 9251else 9252 as_ln_s='cp -pR' 9253fi 9254rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9255rmdir conf$$.dir 2>/dev/null 9256 9257 9258# as_fn_mkdir_p 9259# ------------- 9260# Create "$as_dir" as a directory, including parents if necessary. 9261as_fn_mkdir_p () 9262{ 9263 9264 case $as_dir in #( 9265 -*) as_dir=./$as_dir;; 9266 esac 9267 test -d "$as_dir" || eval $as_mkdir_p || { 9268 as_dirs= 9269 while :; do 9270 case $as_dir in #( 9271 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9272 *) as_qdir=$as_dir;; 9273 esac 9274 as_dirs="'$as_qdir' $as_dirs" 9275 as_dir=`$as_dirname -- "$as_dir" || 9276$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9277 X"$as_dir" : 'X\(//\)[^/]' \| \ 9278 X"$as_dir" : 'X\(//\)$' \| \ 9279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9280$as_echo X"$as_dir" | 9281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9282 s//\1/ 9283 q 9284 } 9285 /^X\(\/\/\)[^/].*/{ 9286 s//\1/ 9287 q 9288 } 9289 /^X\(\/\/\)$/{ 9290 s//\1/ 9291 q 9292 } 9293 /^X\(\/\).*/{ 9294 s//\1/ 9295 q 9296 } 9297 s/.*/./; q'` 9298 test -d "$as_dir" && break 9299 done 9300 test -z "$as_dirs" || eval "mkdir $as_dirs" 9301 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 9302 9303 9304} # as_fn_mkdir_p 9305if mkdir -p . 2>/dev/null; then 9306 as_mkdir_p='mkdir -p "$as_dir"' 9307else 9308 test -d ./-p && rmdir ./-p 9309 as_mkdir_p=false 9310fi 9311 9312 9313# as_fn_executable_p FILE 9314# ----------------------- 9315# Test if FILE is an executable regular file. 9316as_fn_executable_p () 9317{ 9318 test -f "$1" && test -x "$1" 9319} # as_fn_executable_p 9320as_test_x='test -x' 9321as_executable_p=as_fn_executable_p 9322 9323# Sed expression to map a string onto a valid CPP name. 9324as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9325 9326# Sed expression to map a string onto a valid variable name. 9327as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9328 9329 9330exec 6>&1 9331## ----------------------------------- ## 9332## Main body of $CONFIG_STATUS script. ## 9333## ----------------------------------- ## 9334_ASEOF 9335test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 9336 9337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9338# Save the log message, to keep $0 and so on meaningful, and to 9339# report actual input values of CONFIG_FILES etc. instead of their 9340# values after options handling. 9341ac_log=" 9342This file was extended by tk $as_me 8.6, which was 9343generated by GNU Autoconf 2.69. Invocation command line was 9344 9345 CONFIG_FILES = $CONFIG_FILES 9346 CONFIG_HEADERS = $CONFIG_HEADERS 9347 CONFIG_LINKS = $CONFIG_LINKS 9348 CONFIG_COMMANDS = $CONFIG_COMMANDS 9349 $ $0 $@ 9350 9351on `(hostname || uname -n) 2>/dev/null | sed 1q` 9352" 9353 9354_ACEOF 9355 9356case $ac_config_files in *" 9357"*) set x $ac_config_files; shift; ac_config_files=$*;; 9358esac 9359 9360case $ac_config_headers in *" 9361"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 9362esac 9363 9364 9365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9366# Files that config.status was made for. 9367config_files="$ac_config_files" 9368config_headers="$ac_config_headers" 9369config_commands="$ac_config_commands" 9370 9371_ACEOF 9372 9373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9374ac_cs_usage="\ 9375\`$as_me' instantiates files and other configuration actions 9376from templates according to the current configuration. Unless the files 9377and actions are specified as TAGs, all are instantiated by default. 9378 9379Usage: $0 [OPTION]... [TAG]... 9380 9381 -h, --help print this help, then exit 9382 -V, --version print version number and configuration settings, then exit 9383 --config print configuration, then exit 9384 -q, --quiet, --silent 9385 do not print progress messages 9386 -d, --debug don't remove temporary files 9387 --recheck update $as_me by reconfiguring in the same conditions 9388 --file=FILE[:TEMPLATE] 9389 instantiate the configuration file FILE 9390 --header=FILE[:TEMPLATE] 9391 instantiate the configuration header FILE 9392 9393Configuration files: 9394$config_files 9395 9396Configuration headers: 9397$config_headers 9398 9399Configuration commands: 9400$config_commands 9401 9402Report bugs to the package provider." 9403 9404_ACEOF 9405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9406ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9407ac_cs_version="\\ 9408tk config.status 8.6 9409configured by $0, generated by GNU Autoconf 2.69, 9410 with options \\"\$ac_cs_config\\" 9411 9412Copyright (C) 2012 Free Software Foundation, Inc. 9413This config.status script is free software; the Free Software Foundation 9414gives unlimited permission to copy, distribute and modify it." 9415 9416ac_pwd='$ac_pwd' 9417srcdir='$srcdir' 9418test -n "\$AWK" || AWK=awk 9419_ACEOF 9420 9421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9422# The default lists apply if the user does not specify any file. 9423ac_need_defaults=: 9424while test $# != 0 9425do 9426 case $1 in 9427 --*=?*) 9428 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9429 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9430 ac_shift=: 9431 ;; 9432 --*=) 9433 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9434 ac_optarg= 9435 ac_shift=: 9436 ;; 9437 *) 9438 ac_option=$1 9439 ac_optarg=$2 9440 ac_shift=shift 9441 ;; 9442 esac 9443 9444 case $ac_option in 9445 # Handling of the options. 9446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9447 ac_cs_recheck=: ;; 9448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9449 $as_echo "$ac_cs_version"; exit ;; 9450 --config | --confi | --conf | --con | --co | --c ) 9451 $as_echo "$ac_cs_config"; exit ;; 9452 --debug | --debu | --deb | --de | --d | -d ) 9453 debug=: ;; 9454 --file | --fil | --fi | --f ) 9455 $ac_shift 9456 case $ac_optarg in 9457 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9458 '') as_fn_error $? "missing file argument" ;; 9459 esac 9460 as_fn_append CONFIG_FILES " '$ac_optarg'" 9461 ac_need_defaults=false;; 9462 --header | --heade | --head | --hea ) 9463 $ac_shift 9464 case $ac_optarg in 9465 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9466 esac 9467 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 9468 ac_need_defaults=false;; 9469 --he | --h) 9470 # Conflict between --help and --header 9471 as_fn_error $? "ambiguous option: \`$1' 9472Try \`$0 --help' for more information.";; 9473 --help | --hel | -h ) 9474 $as_echo "$ac_cs_usage"; exit ;; 9475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9476 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9477 ac_cs_silent=: ;; 9478 9479 # This is an error. 9480 -*) as_fn_error $? "unrecognized option: \`$1' 9481Try \`$0 --help' for more information." ;; 9482 9483 *) as_fn_append ac_config_targets " $1" 9484 ac_need_defaults=false ;; 9485 9486 esac 9487 shift 9488done 9489 9490ac_configure_extra_args= 9491 9492if $ac_cs_silent; then 9493 exec 6>/dev/null 9494 ac_configure_extra_args="$ac_configure_extra_args --silent" 9495fi 9496 9497_ACEOF 9498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9499if \$ac_cs_recheck; then 9500 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9501 shift 9502 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9503 CONFIG_SHELL='$SHELL' 9504 export CONFIG_SHELL 9505 exec "\$@" 9506fi 9507 9508_ACEOF 9509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9510exec 5>>config.log 9511{ 9512 echo 9513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9514## Running $as_me. ## 9515_ASBOX 9516 $as_echo "$ac_log" 9517} >&5 9518 9519_ACEOF 9520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9521# 9522# INIT-COMMANDS 9523# 9524VERSION=${TK_VERSION} && tk_aqua=${tk_aqua} 9525 9526_ACEOF 9527 9528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9529 9530# Handling of arguments. 9531for ac_config_target in $ac_config_targets 9532do 9533 case $ac_config_target in 9534 "tkConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS tkConfig.h:../unix/tkConfig.h.in" ;; 9535 "Tk-Info.plist") CONFIG_FILES="$CONFIG_FILES Tk-Info.plist:../macosx/Tk-Info.plist.in" ;; 9536 "Wish-Info.plist") CONFIG_FILES="$CONFIG_FILES Wish-Info.plist:../macosx/Wish-Info.plist.in" ;; 9537 "Credits.html") CONFIG_FILES="$CONFIG_FILES Credits.html:../macosx/Credits.html.in" ;; 9538 "Tk.framework") CONFIG_COMMANDS="$CONFIG_COMMANDS Tk.framework" ;; 9539 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:../unix/Makefile.in" ;; 9540 "tkConfig.sh") CONFIG_FILES="$CONFIG_FILES tkConfig.sh:../unix/tkConfig.sh.in" ;; 9541 "tk.pc") CONFIG_FILES="$CONFIG_FILES tk.pc:../unix/tk.pc.in" ;; 9542 9543 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9544 esac 9545done 9546 9547 9548# If the user did not use the arguments to specify the items to instantiate, 9549# then the envvar interface is used. Set only those that are not. 9550# We use the long form for the default assignment because of an extremely 9551# bizarre bug on SunOS 4.1.3. 9552if $ac_need_defaults; then 9553 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9554 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9555 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9556fi 9557 9558# Have a temporary directory for convenience. Make it in the build tree 9559# simply because there is no reason against having it here, and in addition, 9560# creating and moving files from /tmp can sometimes cause problems. 9561# Hook for its removal unless debugging. 9562# Note that there is a small window in which the directory will not be cleaned: 9563# after its creation but before its name has been assigned to `$tmp'. 9564$debug || 9565{ 9566 tmp= ac_tmp= 9567 trap 'exit_status=$? 9568 : "${ac_tmp:=$tmp}" 9569 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 9570' 0 9571 trap 'as_fn_exit 1' 1 2 13 15 9572} 9573# Create a (secure) tmp directory for tmp files. 9574 9575{ 9576 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9577 test -d "$tmp" 9578} || 9579{ 9580 tmp=./conf$$-$RANDOM 9581 (umask 077 && mkdir "$tmp") 9582} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9583ac_tmp=$tmp 9584 9585# Set up the scripts for CONFIG_FILES section. 9586# No need to generate them if there are no CONFIG_FILES. 9587# This happens for instance with `./config.status config.h'. 9588if test -n "$CONFIG_FILES"; then 9589 9590 9591ac_cr=`echo X | tr X '\015'` 9592# On cygwin, bash can eat \r inside `` if the user requested igncr. 9593# But we know of no other shell where ac_cr would be empty at this 9594# point, so we can use a bashism as a fallback. 9595if test "x$ac_cr" = x; then 9596 eval ac_cr=\$\'\\r\' 9597fi 9598ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9599if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9600 ac_cs_awk_cr='\\r' 9601else 9602 ac_cs_awk_cr=$ac_cr 9603fi 9604 9605echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 9606_ACEOF 9607 9608 9609{ 9610 echo "cat >conf$$subs.awk <<_ACEOF" && 9611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9612 echo "_ACEOF" 9613} >conf$$subs.sh || 9614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9615ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9616ac_delim='%!_!# ' 9617for ac_last_try in false false false false false :; do 9618 . ./conf$$subs.sh || 9619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9620 9621 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9622 if test $ac_delim_n = $ac_delim_num; then 9623 break 9624 elif $ac_last_try; then 9625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9626 else 9627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9628 fi 9629done 9630rm -f conf$$subs.sh 9631 9632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9633cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9634_ACEOF 9635sed -n ' 9636h 9637s/^/S["/; s/!.*/"]=/ 9638p 9639g 9640s/^[^!]*!// 9641:repl 9642t repl 9643s/'"$ac_delim"'$// 9644t delim 9645:nl 9646h 9647s/\(.\{148\}\)..*/\1/ 9648t more1 9649s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9650p 9651n 9652b repl 9653:more1 9654s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9655p 9656g 9657s/.\{148\}// 9658t nl 9659:delim 9660h 9661s/\(.\{148\}\)..*/\1/ 9662t more2 9663s/["\\]/\\&/g; s/^/"/; s/$/"/ 9664p 9665b 9666:more2 9667s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9668p 9669g 9670s/.\{148\}// 9671t delim 9672' <conf$$subs.awk | sed ' 9673/^[^""]/{ 9674 N 9675 s/\n// 9676} 9677' >>$CONFIG_STATUS || ac_write_fail=1 9678rm -f conf$$subs.awk 9679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9680_ACAWK 9681cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9682 for (key in S) S_is_set[key] = 1 9683 FS = "" 9684 9685} 9686{ 9687 line = $ 0 9688 nfields = split(line, field, "@") 9689 substed = 0 9690 len = length(field[1]) 9691 for (i = 2; i < nfields; i++) { 9692 key = field[i] 9693 keylen = length(key) 9694 if (S_is_set[key]) { 9695 value = S[key] 9696 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9697 len += length(value) + length(field[++i]) 9698 substed = 1 9699 } else 9700 len += 1 + keylen 9701 } 9702 9703 print line 9704} 9705 9706_ACAWK 9707_ACEOF 9708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9709if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9710 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9711else 9712 cat 9713fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9714 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9715_ACEOF 9716 9717# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9718# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9719# trailing colons and then remove the whole line if VPATH becomes empty 9720# (actually we leave an empty line to preserve line numbers). 9721if test "x$srcdir" = x.; then 9722 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9723h 9724s/// 9725s/^/:/ 9726s/[ ]*$/:/ 9727s/:\$(srcdir):/:/g 9728s/:\${srcdir}:/:/g 9729s/:@srcdir@:/:/g 9730s/^:*// 9731s/:*$// 9732x 9733s/\(=[ ]*\).*/\1/ 9734G 9735s/\n// 9736s/^[^=]*=[ ]*$// 9737}' 9738fi 9739 9740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9741fi # test -n "$CONFIG_FILES" 9742 9743# Set up the scripts for CONFIG_HEADERS section. 9744# No need to generate them if there are no CONFIG_HEADERS. 9745# This happens for instance with `./config.status Makefile'. 9746if test -n "$CONFIG_HEADERS"; then 9747cat >"$ac_tmp/defines.awk" <<\_ACAWK || 9748BEGIN { 9749_ACEOF 9750 9751# Transform confdefs.h into an awk script `defines.awk', embedded as 9752# here-document in config.status, that substitutes the proper values into 9753# config.h.in to produce config.h. 9754 9755# Create a delimiter string that does not exist in confdefs.h, to ease 9756# handling of long lines. 9757ac_delim='%!_!# ' 9758for ac_last_try in false false :; do 9759 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 9760 if test -z "$ac_tt"; then 9761 break 9762 elif $ac_last_try; then 9763 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 9764 else 9765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9766 fi 9767done 9768 9769# For the awk script, D is an array of macro values keyed by name, 9770# likewise P contains macro parameters if any. Preserve backslash 9771# newline sequences. 9772 9773ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9774sed -n ' 9775s/.\{148\}/&'"$ac_delim"'/g 9776t rset 9777:rset 9778s/^[ ]*#[ ]*define[ ][ ]*/ / 9779t def 9780d 9781:def 9782s/\\$// 9783t bsnl 9784s/["\\]/\\&/g 9785s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9786D["\1"]=" \3"/p 9787s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9788d 9789:bsnl 9790s/["\\]/\\&/g 9791s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9792D["\1"]=" \3\\\\\\n"\\/p 9793t cont 9794s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9795t cont 9796d 9797:cont 9798n 9799s/.\{148\}/&'"$ac_delim"'/g 9800t clear 9801:clear 9802s/\\$// 9803t bsnlc 9804s/["\\]/\\&/g; s/^/"/; s/$/"/p 9805d 9806:bsnlc 9807s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9808b cont 9809' <confdefs.h | sed ' 9810s/'"$ac_delim"'/"\\\ 9811"/g' >>$CONFIG_STATUS || ac_write_fail=1 9812 9813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9814 for (key in D) D_is_set[key] = 1 9815 FS = "" 9816} 9817/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9818 line = \$ 0 9819 split(line, arg, " ") 9820 if (arg[1] == "#") { 9821 defundef = arg[2] 9822 mac1 = arg[3] 9823 } else { 9824 defundef = substr(arg[1], 2) 9825 mac1 = arg[2] 9826 } 9827 split(mac1, mac2, "(") #) 9828 macro = mac2[1] 9829 prefix = substr(line, 1, index(line, defundef) - 1) 9830 if (D_is_set[macro]) { 9831 # Preserve the white space surrounding the "#". 9832 print prefix "define", macro P[macro] D[macro] 9833 next 9834 } else { 9835 # Replace #undef with comments. This is necessary, for example, 9836 # in the case of _POSIX_SOURCE, which is predefined and required 9837 # on some systems where configure will not decide to define it. 9838 if (defundef == "undef") { 9839 print "/*", prefix defundef, macro, "*/" 9840 next 9841 } 9842 } 9843} 9844{ print } 9845_ACAWK 9846_ACEOF 9847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9848 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 9849fi # test -n "$CONFIG_HEADERS" 9850 9851 9852eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 9853shift 9854for ac_tag 9855do 9856 case $ac_tag in 9857 :[FHLC]) ac_mode=$ac_tag; continue;; 9858 esac 9859 case $ac_mode$ac_tag in 9860 :[FHL]*:*);; 9861 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9862 :[FH]-) ac_tag=-:-;; 9863 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9864 esac 9865 ac_save_IFS=$IFS 9866 IFS=: 9867 set x $ac_tag 9868 IFS=$ac_save_IFS 9869 shift 9870 ac_file=$1 9871 shift 9872 9873 case $ac_mode in 9874 :L) ac_source=$1;; 9875 :[FH]) 9876 ac_file_inputs= 9877 for ac_f 9878 do 9879 case $ac_f in 9880 -) ac_f="$ac_tmp/stdin";; 9881 *) # Look for the file first in the build tree, then in the source tree 9882 # (if the path is not absolute). The absolute path cannot be DOS-style, 9883 # because $ac_f cannot contain `:'. 9884 test -f "$ac_f" || 9885 case $ac_f in 9886 [\\/$]*) false;; 9887 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9888 esac || 9889 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9890 esac 9891 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9892 as_fn_append ac_file_inputs " '$ac_f'" 9893 done 9894 9895 # Let's still pretend it is `configure' which instantiates (i.e., don't 9896 # use $as_me), people would be surprised to read: 9897 # /* config.h. Generated by config.status. */ 9898 configure_input='Generated from '` 9899 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9900 `' by configure.' 9901 if test x"$ac_file" != x-; then 9902 configure_input="$ac_file. $configure_input" 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9904$as_echo "$as_me: creating $ac_file" >&6;} 9905 fi 9906 # Neutralize special characters interpreted by sed in replacement strings. 9907 case $configure_input in #( 9908 *\&* | *\|* | *\\* ) 9909 ac_sed_conf_input=`$as_echo "$configure_input" | 9910 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9911 *) ac_sed_conf_input=$configure_input;; 9912 esac 9913 9914 case $ac_tag in 9915 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9917 esac 9918 ;; 9919 esac 9920 9921 ac_dir=`$as_dirname -- "$ac_file" || 9922$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9923 X"$ac_file" : 'X\(//\)[^/]' \| \ 9924 X"$ac_file" : 'X\(//\)$' \| \ 9925 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9926$as_echo X"$ac_file" | 9927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9928 s//\1/ 9929 q 9930 } 9931 /^X\(\/\/\)[^/].*/{ 9932 s//\1/ 9933 q 9934 } 9935 /^X\(\/\/\)$/{ 9936 s//\1/ 9937 q 9938 } 9939 /^X\(\/\).*/{ 9940 s//\1/ 9941 q 9942 } 9943 s/.*/./; q'` 9944 as_dir="$ac_dir"; as_fn_mkdir_p 9945 ac_builddir=. 9946 9947case "$ac_dir" in 9948.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9949*) 9950 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9951 # A ".." for each directory in $ac_dir_suffix. 9952 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9953 case $ac_top_builddir_sub in 9954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9956 esac ;; 9957esac 9958ac_abs_top_builddir=$ac_pwd 9959ac_abs_builddir=$ac_pwd$ac_dir_suffix 9960# for backward compatibility: 9961ac_top_builddir=$ac_top_build_prefix 9962 9963case $srcdir in 9964 .) # We are building in place. 9965 ac_srcdir=. 9966 ac_top_srcdir=$ac_top_builddir_sub 9967 ac_abs_top_srcdir=$ac_pwd ;; 9968 [\\/]* | ?:[\\/]* ) # Absolute name. 9969 ac_srcdir=$srcdir$ac_dir_suffix; 9970 ac_top_srcdir=$srcdir 9971 ac_abs_top_srcdir=$srcdir ;; 9972 *) # Relative name. 9973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9974 ac_top_srcdir=$ac_top_build_prefix$srcdir 9975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9976esac 9977ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9978 9979 9980 case $ac_mode in 9981 :F) 9982 # 9983 # CONFIG_FILE 9984 # 9985 9986_ACEOF 9987 9988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9989# If the template does not know about datarootdir, expand it. 9990# FIXME: This hack should be removed a few years after 2.60. 9991ac_datarootdir_hack=; ac_datarootdir_seen= 9992ac_sed_dataroot=' 9993/datarootdir/ { 9994 p 9995 q 9996} 9997/@datadir@/p 9998/@docdir@/p 9999/@infodir@/p 10000/@localedir@/p 10001/@mandir@/p' 10002case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10003*datarootdir*) ac_datarootdir_seen=yes;; 10004*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10006$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10007_ACEOF 10008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10009 ac_datarootdir_hack=' 10010 s&@datadir@&$datadir&g 10011 s&@docdir@&$docdir&g 10012 s&@infodir@&$infodir&g 10013 s&@localedir@&$localedir&g 10014 s&@mandir@&$mandir&g 10015 s&\\\${datarootdir}&$datarootdir&g' ;; 10016esac 10017_ACEOF 10018 10019# Neutralize VPATH when `$srcdir' = `.'. 10020# Shell code in configure.ac might set extrasub. 10021# FIXME: do we really want to maintain this feature? 10022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10023ac_sed_extra="$ac_vpsub 10024$extrasub 10025_ACEOF 10026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10027:t 10028/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10029s|@configure_input@|$ac_sed_conf_input|;t t 10030s&@top_builddir@&$ac_top_builddir_sub&;t t 10031s&@top_build_prefix@&$ac_top_build_prefix&;t t 10032s&@srcdir@&$ac_srcdir&;t t 10033s&@abs_srcdir@&$ac_abs_srcdir&;t t 10034s&@top_srcdir@&$ac_top_srcdir&;t t 10035s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10036s&@builddir@&$ac_builddir&;t t 10037s&@abs_builddir@&$ac_abs_builddir&;t t 10038s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10039$ac_datarootdir_hack 10040" 10041eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 10042 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10043 10044test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10045 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10046 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10047 "$ac_tmp/out"`; test -z "$ac_out"; } && 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10049which seems to be undefined. Please make sure it is defined" >&5 10050$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10051which seems to be undefined. Please make sure it is defined" >&2;} 10052 10053 rm -f "$ac_tmp/stdin" 10054 case $ac_file in 10055 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10056 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 10057 esac \ 10058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10059 ;; 10060 :H) 10061 # 10062 # CONFIG_HEADER 10063 # 10064 if test x"$ac_file" != x-; then 10065 { 10066 $as_echo "/* $configure_input */" \ 10067 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 10068 } >"$ac_tmp/config.h" \ 10069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10070 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 10072$as_echo "$as_me: $ac_file is unchanged" >&6;} 10073 else 10074 rm -f "$ac_file" 10075 mv "$ac_tmp/config.h" "$ac_file" \ 10076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10077 fi 10078 else 10079 $as_echo "/* $configure_input */" \ 10080 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 10081 || as_fn_error $? "could not create -" "$LINENO" 5 10082 fi 10083 ;; 10084 10085 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 10086$as_echo "$as_me: executing $ac_file commands" >&6;} 10087 ;; 10088 esac 10089 10090 10091 case $ac_file$ac_mode in 10092 "Tk.framework":C) n=Tk && 10093 f=$n.framework && v=Versions/$VERSION && 10094 rm -rf $f && mkdir -p $f/$v/Resources && 10095 ln -s $v/$n $v/Resources $f && ln -s ../../../$n $f/$v && 10096 ln -s ../../../../$n-Info.plist $f/$v/Resources/Info.plist && 10097 if test $tk_aqua = yes; then ln -s ../../../../$n.rsrc $f/$v/Resources; fi && 10098 unset n f v 10099 ;; 10100 10101 esac 10102done # for ac_tag 10103 10104 10105as_fn_exit 0 10106_ACEOF 10107ac_clean_files=$ac_clean_files_save 10108 10109test $ac_write_fail = 0 || 10110 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 10111 10112 10113# configure is writing to config.log, and then calls config.status. 10114# config.status does its own redirection, appending to config.log. 10115# Unfortunately, on DOS this fails, as config.log is still kept open 10116# by configure, so config.status won't be able to write to it; its 10117# output is simply discarded. So we exec the FD to /dev/null, 10118# effectively closing config.log, so it can be properly (re)opened and 10119# appended to by config.status. When coming back to configure, we 10120# need to make the FD available again. 10121if test "$no_create" != yes; then 10122 ac_cs_success=: 10123 ac_config_status_args= 10124 test "$silent" = yes && 10125 ac_config_status_args="$ac_config_status_args --quiet" 10126 exec 5>/dev/null 10127 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10128 exec 5>>config.log 10129 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10130 # would make configure fail if this is the last instruction. 10131 $ac_cs_success || as_fn_exit 1 10132fi 10133if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10135$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10136fi 10137 10138 10139 10140