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