1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for pgtcl 2.1.1. 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='pgtcl' 579PACKAGE_TARNAME='pgtcl' 580PACKAGE_VERSION='2.1.1' 581PACKAGE_STRING='pgtcl 2.1.1' 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 622LD_SEARCH_FLAGS 623TCLSH_PROG 624RANLIB_STUB 625MAKE_STUB_LIB 626MAKE_STATIC_LIB 627MAKE_SHARED_LIB 628MAKE_LIB 629PG_LIB_DIR 630PG_LIBS 631PG_INCLUDES 632LIBPG 633PG_CONFIG 634LDFLAGS_DEFAULT 635CFLAGS_DEFAULT 636TCL_DBGX 637LD_LIBRARY_PATH_VAR 638SHLIB_CFLAGS 639SHLIB_LD_LIBS 640SHLIB_LD 641STLIB_LD 642CFLAGS_WARNING 643CFLAGS_OPTIMIZE 644CFLAGS_DEBUG 645DL_LIBS 646LIBOBJS 647AR 648SHARED_BUILD 649TCL_INCLUDES 650CLEANFILES 651PKG_OBJECTS 652PKG_SOURCES 653MATH_LIBS 654EGREP 655GREP 656RANLIB 657SET_MAKE 658INSTALL_DATA 659INSTALL_SCRIPT 660INSTALL_PROGRAM 661CPP 662OBJEXT 663ac_ct_CC 664CPPFLAGS 665LDFLAGS 666CFLAGS 667CC 668TCL_SHLIB_LD_LIBS 669TCL_LD_FLAGS 670TCL_EXTRA_CFLAGS 671TCL_DEFS 672TCL_LIBS 673TCL_STUB_LIB_SPEC 674TCL_STUB_LIB_FLAG 675TCL_STUB_LIB_FILE 676TCL_LIB_SPEC 677TCL_LIB_FLAG 678TCL_LIB_FILE 679TCL_SRC_DIR 680TCL_BIN_DIR 681TCL_VERSION 682PKG_CFLAGS 683PKG_LIBS 684PKG_INCLUDES 685PKG_HEADERS 686PKG_TCL_SOURCES 687PKG_STUB_OBJECTS 688PKG_STUB_SOURCES 689PKG_STUB_LIB_FILE 690PKG_LIB_FILE 691EXEEXT 692CYGPATH 693target_alias 694host_alias 695build_alias 696LIBS 697ECHO_T 698ECHO_N 699ECHO_C 700DEFS 701mandir 702localedir 703libdir 704psdir 705pdfdir 706dvidir 707htmldir 708infodir 709docdir 710oldincludedir 711includedir 712localstatedir 713sharedstatedir 714sysconfdir 715datadir 716datarootdir 717libexecdir 718sbindir 719bindir 720program_transform_name 721prefix 722exec_prefix 723PACKAGE_URL 724PACKAGE_BUGREPORT 725PACKAGE_STRING 726PACKAGE_VERSION 727PACKAGE_TARNAME 728PACKAGE_NAME 729PATH_SEPARATOR 730SHELL' 731ac_subst_files='' 732ac_user_opts=' 733enable_option_checking 734with_tcl 735with_tclinclude 736enable_shared 737enable_64bit 738enable_64bit_vis 739enable_wince 740enable_load 741enable_symbols 742with_postgres_include 743with_postgres_lib 744' 745 ac_precious_vars='build_alias 746host_alias 747target_alias 748CC 749CFLAGS 750LDFLAGS 751LIBS 752CPPFLAGS 753CPP' 754 755 756# Initialize some variables set by options. 757ac_init_help= 758ac_init_version=false 759ac_unrecognized_opts= 760ac_unrecognized_sep= 761# The variables have the same names as the options, with 762# dashes changed to underlines. 763cache_file=/dev/null 764exec_prefix=NONE 765no_create= 766no_recursion= 767prefix=NONE 768program_prefix=NONE 769program_suffix=NONE 770program_transform_name=s,x,x, 771silent= 772site= 773srcdir= 774verbose= 775x_includes=NONE 776x_libraries=NONE 777 778# Installation directory options. 779# These are left unexpanded so users can "make install exec_prefix=/foo" 780# and all the variables that are supposed to be based on exec_prefix 781# by default will actually change. 782# Use braces instead of parens because sh, perl, etc. also accept them. 783# (The list follows the same order as the GNU Coding Standards.) 784bindir='${exec_prefix}/bin' 785sbindir='${exec_prefix}/sbin' 786libexecdir='${exec_prefix}/libexec' 787datarootdir='${prefix}/share' 788datadir='${datarootdir}' 789sysconfdir='${prefix}/etc' 790sharedstatedir='${prefix}/com' 791localstatedir='${prefix}/var' 792includedir='${prefix}/include' 793oldincludedir='/usr/include' 794docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 795infodir='${datarootdir}/info' 796htmldir='${docdir}' 797dvidir='${docdir}' 798pdfdir='${docdir}' 799psdir='${docdir}' 800libdir='${exec_prefix}/lib' 801localedir='${datarootdir}/locale' 802mandir='${datarootdir}/man' 803 804ac_prev= 805ac_dashdash= 806for ac_option 807do 808 # If the previous option needs an argument, assign it. 809 if test -n "$ac_prev"; then 810 eval $ac_prev=\$ac_option 811 ac_prev= 812 continue 813 fi 814 815 case $ac_option in 816 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 817 *=) ac_optarg= ;; 818 *) ac_optarg=yes ;; 819 esac 820 821 # Accept the important Cygnus configure options, so we can diagnose typos. 822 823 case $ac_dashdash$ac_option in 824 --) 825 ac_dashdash=yes ;; 826 827 -bindir | --bindir | --bindi | --bind | --bin | --bi) 828 ac_prev=bindir ;; 829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 830 bindir=$ac_optarg ;; 831 832 -build | --build | --buil | --bui | --bu) 833 ac_prev=build_alias ;; 834 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 835 build_alias=$ac_optarg ;; 836 837 -cache-file | --cache-file | --cache-fil | --cache-fi \ 838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 839 ac_prev=cache_file ;; 840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 842 cache_file=$ac_optarg ;; 843 844 --config-cache | -C) 845 cache_file=config.cache ;; 846 847 -datadir | --datadir | --datadi | --datad) 848 ac_prev=datadir ;; 849 -datadir=* | --datadir=* | --datadi=* | --datad=*) 850 datadir=$ac_optarg ;; 851 852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 853 | --dataroo | --dataro | --datar) 854 ac_prev=datarootdir ;; 855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 857 datarootdir=$ac_optarg ;; 858 859 -disable-* | --disable-*) 860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 861 # Reject names that are not valid shell variable names. 862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 863 as_fn_error $? "invalid feature name: $ac_useropt" 864 ac_useropt_orig=$ac_useropt 865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 866 case $ac_user_opts in 867 *" 868"enable_$ac_useropt" 869"*) ;; 870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 871 ac_unrecognized_sep=', ';; 872 esac 873 eval enable_$ac_useropt=no ;; 874 875 -docdir | --docdir | --docdi | --doc | --do) 876 ac_prev=docdir ;; 877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 878 docdir=$ac_optarg ;; 879 880 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 881 ac_prev=dvidir ;; 882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 883 dvidir=$ac_optarg ;; 884 885 -enable-* | --enable-*) 886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 887 # Reject names that are not valid shell variable names. 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 889 as_fn_error $? "invalid feature name: $ac_useropt" 890 ac_useropt_orig=$ac_useropt 891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 892 case $ac_user_opts in 893 *" 894"enable_$ac_useropt" 895"*) ;; 896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 897 ac_unrecognized_sep=', ';; 898 esac 899 eval enable_$ac_useropt=\$ac_optarg ;; 900 901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 903 | --exec | --exe | --ex) 904 ac_prev=exec_prefix ;; 905 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 906 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 907 | --exec=* | --exe=* | --ex=*) 908 exec_prefix=$ac_optarg ;; 909 910 -gas | --gas | --ga | --g) 911 # Obsolete; use --with-gas. 912 with_gas=yes ;; 913 914 -help | --help | --hel | --he | -h) 915 ac_init_help=long ;; 916 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 917 ac_init_help=recursive ;; 918 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 919 ac_init_help=short ;; 920 921 -host | --host | --hos | --ho) 922 ac_prev=host_alias ;; 923 -host=* | --host=* | --hos=* | --ho=*) 924 host_alias=$ac_optarg ;; 925 926 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 927 ac_prev=htmldir ;; 928 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 929 | --ht=*) 930 htmldir=$ac_optarg ;; 931 932 -includedir | --includedir | --includedi | --included | --include \ 933 | --includ | --inclu | --incl | --inc) 934 ac_prev=includedir ;; 935 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 936 | --includ=* | --inclu=* | --incl=* | --inc=*) 937 includedir=$ac_optarg ;; 938 939 -infodir | --infodir | --infodi | --infod | --info | --inf) 940 ac_prev=infodir ;; 941 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 942 infodir=$ac_optarg ;; 943 944 -libdir | --libdir | --libdi | --libd) 945 ac_prev=libdir ;; 946 -libdir=* | --libdir=* | --libdi=* | --libd=*) 947 libdir=$ac_optarg ;; 948 949 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 950 | --libexe | --libex | --libe) 951 ac_prev=libexecdir ;; 952 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 953 | --libexe=* | --libex=* | --libe=*) 954 libexecdir=$ac_optarg ;; 955 956 -localedir | --localedir | --localedi | --localed | --locale) 957 ac_prev=localedir ;; 958 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 959 localedir=$ac_optarg ;; 960 961 -localstatedir | --localstatedir | --localstatedi | --localstated \ 962 | --localstate | --localstat | --localsta | --localst | --locals) 963 ac_prev=localstatedir ;; 964 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 965 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 966 localstatedir=$ac_optarg ;; 967 968 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 969 ac_prev=mandir ;; 970 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 971 mandir=$ac_optarg ;; 972 973 -nfp | --nfp | --nf) 974 # Obsolete; use --without-fp. 975 with_fp=no ;; 976 977 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 978 | --no-cr | --no-c | -n) 979 no_create=yes ;; 980 981 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 982 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 983 no_recursion=yes ;; 984 985 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 986 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 987 | --oldin | --oldi | --old | --ol | --o) 988 ac_prev=oldincludedir ;; 989 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 990 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 991 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 992 oldincludedir=$ac_optarg ;; 993 994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 995 ac_prev=prefix ;; 996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 997 prefix=$ac_optarg ;; 998 999 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1000 | --program-pre | --program-pr | --program-p) 1001 ac_prev=program_prefix ;; 1002 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1003 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1004 program_prefix=$ac_optarg ;; 1005 1006 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1007 | --program-suf | --program-su | --program-s) 1008 ac_prev=program_suffix ;; 1009 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1010 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1011 program_suffix=$ac_optarg ;; 1012 1013 -program-transform-name | --program-transform-name \ 1014 | --program-transform-nam | --program-transform-na \ 1015 | --program-transform-n | --program-transform- \ 1016 | --program-transform | --program-transfor \ 1017 | --program-transfo | --program-transf \ 1018 | --program-trans | --program-tran \ 1019 | --progr-tra | --program-tr | --program-t) 1020 ac_prev=program_transform_name ;; 1021 -program-transform-name=* | --program-transform-name=* \ 1022 | --program-transform-nam=* | --program-transform-na=* \ 1023 | --program-transform-n=* | --program-transform-=* \ 1024 | --program-transform=* | --program-transfor=* \ 1025 | --program-transfo=* | --program-transf=* \ 1026 | --program-trans=* | --program-tran=* \ 1027 | --progr-tra=* | --program-tr=* | --program-t=*) 1028 program_transform_name=$ac_optarg ;; 1029 1030 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1031 ac_prev=pdfdir ;; 1032 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1033 pdfdir=$ac_optarg ;; 1034 1035 -psdir | --psdir | --psdi | --psd | --ps) 1036 ac_prev=psdir ;; 1037 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1038 psdir=$ac_optarg ;; 1039 1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1041 | -silent | --silent | --silen | --sile | --sil) 1042 silent=yes ;; 1043 1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1045 ac_prev=sbindir ;; 1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1047 | --sbi=* | --sb=*) 1048 sbindir=$ac_optarg ;; 1049 1050 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1051 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1052 | --sharedst | --shareds | --shared | --share | --shar \ 1053 | --sha | --sh) 1054 ac_prev=sharedstatedir ;; 1055 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1056 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1057 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1058 | --sha=* | --sh=*) 1059 sharedstatedir=$ac_optarg ;; 1060 1061 -site | --site | --sit) 1062 ac_prev=site ;; 1063 -site=* | --site=* | --sit=*) 1064 site=$ac_optarg ;; 1065 1066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1067 ac_prev=srcdir ;; 1068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1069 srcdir=$ac_optarg ;; 1070 1071 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1072 | --syscon | --sysco | --sysc | --sys | --sy) 1073 ac_prev=sysconfdir ;; 1074 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1075 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1076 sysconfdir=$ac_optarg ;; 1077 1078 -target | --target | --targe | --targ | --tar | --ta | --t) 1079 ac_prev=target_alias ;; 1080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1081 target_alias=$ac_optarg ;; 1082 1083 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1084 verbose=yes ;; 1085 1086 -version | --version | --versio | --versi | --vers | -V) 1087 ac_init_version=: ;; 1088 1089 -with-* | --with-*) 1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1091 # Reject names that are not valid shell variable names. 1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1093 as_fn_error $? "invalid package name: $ac_useropt" 1094 ac_useropt_orig=$ac_useropt 1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1096 case $ac_user_opts in 1097 *" 1098"with_$ac_useropt" 1099"*) ;; 1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1101 ac_unrecognized_sep=', ';; 1102 esac 1103 eval with_$ac_useropt=\$ac_optarg ;; 1104 1105 -without-* | --without-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid package name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"with_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval with_$ac_useropt=no ;; 1120 1121 --x) 1122 # Obsolete; use --with-x. 1123 with_x=yes ;; 1124 1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1126 | --x-incl | --x-inc | --x-in | --x-i) 1127 ac_prev=x_includes ;; 1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1130 x_includes=$ac_optarg ;; 1131 1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1134 ac_prev=x_libraries ;; 1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1137 x_libraries=$ac_optarg ;; 1138 1139 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1140Try \`$0 --help' for more information" 1141 ;; 1142 1143 *=*) 1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1145 # Reject names that are not valid shell variable names. 1146 case $ac_envvar in #( 1147 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1148 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1149 esac 1150 eval $ac_envvar=\$ac_optarg 1151 export $ac_envvar ;; 1152 1153 *) 1154 # FIXME: should be removed in autoconf 3.0. 1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1159 ;; 1160 1161 esac 1162done 1163 1164if test -n "$ac_prev"; then 1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1166 as_fn_error $? "missing argument to $ac_option" 1167fi 1168 1169if test -n "$ac_unrecognized_opts"; then 1170 case $enable_option_checking in 1171 no) ;; 1172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1174 esac 1175fi 1176 1177# Check all directory arguments for consistency. 1178for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1179 datadir sysconfdir sharedstatedir localstatedir includedir \ 1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1181 libdir localedir mandir 1182do 1183 eval ac_val=\$$ac_var 1184 # Remove trailing slashes. 1185 case $ac_val in 1186 */ ) 1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1188 eval $ac_var=\$ac_val;; 1189 esac 1190 # Be sure to have absolute directory names. 1191 case $ac_val in 1192 [\\/$]* | ?:[\\/]* ) continue;; 1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1194 esac 1195 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1196done 1197 1198# There might be people who depend on the old broken behavior: `$host' 1199# used to hold the argument of --host etc. 1200# FIXME: To remove some day. 1201build=$build_alias 1202host=$host_alias 1203target=$target_alias 1204 1205# FIXME: To remove some day. 1206if test "x$host_alias" != x; then 1207 if test "x$build_alias" = x; then 1208 cross_compiling=maybe 1209 elif test "x$build_alias" != "x$host_alias"; then 1210 cross_compiling=yes 1211 fi 1212fi 1213 1214ac_tool_prefix= 1215test -n "$host_alias" && ac_tool_prefix=$host_alias- 1216 1217test "$silent" = yes && exec 6>/dev/null 1218 1219 1220ac_pwd=`pwd` && test -n "$ac_pwd" && 1221ac_ls_di=`ls -di .` && 1222ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1223 as_fn_error $? "working directory cannot be determined" 1224test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1225 as_fn_error $? "pwd does not report name of working directory" 1226 1227 1228# Find the source files, if location was not specified. 1229if test -z "$srcdir"; then 1230 ac_srcdir_defaulted=yes 1231 # Try the directory containing this script, then the parent directory. 1232 ac_confdir=`$as_dirname -- "$as_myself" || 1233$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1234 X"$as_myself" : 'X\(//\)[^/]' \| \ 1235 X"$as_myself" : 'X\(//\)$' \| \ 1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1237$as_echo X"$as_myself" | 1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1239 s//\1/ 1240 q 1241 } 1242 /^X\(\/\/\)[^/].*/{ 1243 s//\1/ 1244 q 1245 } 1246 /^X\(\/\/\)$/{ 1247 s//\1/ 1248 q 1249 } 1250 /^X\(\/\).*/{ 1251 s//\1/ 1252 q 1253 } 1254 s/.*/./; q'` 1255 srcdir=$ac_confdir 1256 if test ! -r "$srcdir/$ac_unique_file"; then 1257 srcdir=.. 1258 fi 1259else 1260 ac_srcdir_defaulted=no 1261fi 1262if test ! -r "$srcdir/$ac_unique_file"; then 1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1264 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1265fi 1266ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1267ac_abs_confdir=`( 1268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1269 pwd)` 1270# When building in place, set srcdir=. 1271if test "$ac_abs_confdir" = "$ac_pwd"; then 1272 srcdir=. 1273fi 1274# Remove unnecessary trailing slashes from srcdir. 1275# Double slashes in file names in object file debugging info 1276# mess up M-x gdb in Emacs. 1277case $srcdir in 1278*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1279esac 1280for ac_var in $ac_precious_vars; do 1281 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1282 eval ac_env_${ac_var}_value=\$${ac_var} 1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1284 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1285done 1286 1287# 1288# Report the --help message. 1289# 1290if test "$ac_init_help" = "long"; then 1291 # Omit some internal or obsolete options to make the list less imposing. 1292 # This message is too long to be a string in the A/UX 3.1 sh. 1293 cat <<_ACEOF 1294\`configure' configures pgtcl 2.1.1 to adapt to many kinds of systems. 1295 1296Usage: $0 [OPTION]... [VAR=VALUE]... 1297 1298To assign environment variables (e.g., CC, CFLAGS...), specify them as 1299VAR=VALUE. See below for descriptions of some of the useful variables. 1300 1301Defaults for the options are specified in brackets. 1302 1303Configuration: 1304 -h, --help display this help and exit 1305 --help=short display options specific to this package 1306 --help=recursive display the short help of all the included packages 1307 -V, --version display version information and exit 1308 -q, --quiet, --silent do not print \`checking ...' messages 1309 --cache-file=FILE cache test results in FILE [disabled] 1310 -C, --config-cache alias for \`--cache-file=config.cache' 1311 -n, --no-create do not create output files 1312 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1313 1314Installation directories: 1315 --prefix=PREFIX install architecture-independent files in PREFIX 1316 [$ac_default_prefix] 1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1318 [PREFIX] 1319 1320By default, \`make install' will install all the files in 1321\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1322an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1323for instance \`--prefix=\$HOME'. 1324 1325For better control, use the options below. 1326 1327Fine tuning of the installation directories: 1328 --bindir=DIR user executables [EPREFIX/bin] 1329 --sbindir=DIR system admin executables [EPREFIX/sbin] 1330 --libexecdir=DIR program executables [EPREFIX/libexec] 1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1334 --libdir=DIR object code libraries [EPREFIX/lib] 1335 --includedir=DIR C header files [PREFIX/include] 1336 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1339 --infodir=DIR info documentation [DATAROOTDIR/info] 1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1341 --mandir=DIR man documentation [DATAROOTDIR/man] 1342 --docdir=DIR documentation root [DATAROOTDIR/doc/pgtcl] 1343 --htmldir=DIR html documentation [DOCDIR] 1344 --dvidir=DIR dvi documentation [DOCDIR] 1345 --pdfdir=DIR pdf documentation [DOCDIR] 1346 --psdir=DIR ps documentation [DOCDIR] 1347_ACEOF 1348 1349 cat <<\_ACEOF 1350_ACEOF 1351fi 1352 1353if test -n "$ac_init_help"; then 1354 case $ac_init_help in 1355 short | recursive ) echo "Configuration of pgtcl 2.1.1:";; 1356 esac 1357 cat <<\_ACEOF 1358 1359Optional Features: 1360 --disable-option-checking ignore unrecognized --enable/--with options 1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1363 --enable-shared build and link with shared libraries (default: on) 1364 --enable-64bit enable 64bit support (default: off) 1365 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1366 --enable-wince enable Win/CE support (where applicable) 1367 --disable-load disallow dynamic loading and "load" command 1368 (default: enabled) 1369 --enable-symbols build with debugging symbols (default: off) 1370 1371Optional Packages: 1372 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1373 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1374 --with-tcl directory containing tcl configuration 1375 (tclConfig.sh) 1376 --with-tclinclude directory containing the public Tcl header files 1377 --with-postgres-include=DIR PostgreSQL includes are in DIR 1378 --with-postgres-lib=DIR PostgreSQL libraries are in DIR 1379 1380Some influential environment variables: 1381 CC C compiler command 1382 CFLAGS C compiler flags 1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1384 nonstandard directory <lib dir> 1385 LIBS libraries to pass to the linker, e.g. -l<library> 1386 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1387 you have headers in a nonstandard directory <include dir> 1388 CPP C preprocessor 1389 1390Use these variables to override the choices made by `configure' or to help 1391it to find libraries and programs with nonstandard names/locations. 1392 1393Report bugs to the package provider. 1394_ACEOF 1395ac_status=$? 1396fi 1397 1398if test "$ac_init_help" = "recursive"; then 1399 # If there are subdirs, report their specific --help. 1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1401 test -d "$ac_dir" || 1402 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1403 continue 1404 ac_builddir=. 1405 1406case "$ac_dir" in 1407.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1408*) 1409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1410 # A ".." for each directory in $ac_dir_suffix. 1411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1412 case $ac_top_builddir_sub in 1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1415 esac ;; 1416esac 1417ac_abs_top_builddir=$ac_pwd 1418ac_abs_builddir=$ac_pwd$ac_dir_suffix 1419# for backward compatibility: 1420ac_top_builddir=$ac_top_build_prefix 1421 1422case $srcdir in 1423 .) # We are building in place. 1424 ac_srcdir=. 1425 ac_top_srcdir=$ac_top_builddir_sub 1426 ac_abs_top_srcdir=$ac_pwd ;; 1427 [\\/]* | ?:[\\/]* ) # Absolute name. 1428 ac_srcdir=$srcdir$ac_dir_suffix; 1429 ac_top_srcdir=$srcdir 1430 ac_abs_top_srcdir=$srcdir ;; 1431 *) # Relative name. 1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1433 ac_top_srcdir=$ac_top_build_prefix$srcdir 1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1435esac 1436ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1437 1438 cd "$ac_dir" || { ac_status=$?; continue; } 1439 # Check for guested configure. 1440 if test -f "$ac_srcdir/configure.gnu"; then 1441 echo && 1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1443 elif test -f "$ac_srcdir/configure"; then 1444 echo && 1445 $SHELL "$ac_srcdir/configure" --help=recursive 1446 else 1447 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1448 fi || ac_status=$? 1449 cd "$ac_pwd" || { ac_status=$?; break; } 1450 done 1451fi 1452 1453test -n "$ac_init_help" && exit $ac_status 1454if $ac_init_version; then 1455 cat <<\_ACEOF 1456pgtcl configure 2.1.1 1457generated by GNU Autoconf 2.69 1458 1459Copyright (C) 2012 Free Software Foundation, Inc. 1460This configure script is free software; the Free Software Foundation 1461gives unlimited permission to copy, distribute and modify it. 1462_ACEOF 1463 exit 1464fi 1465 1466## ------------------------ ## 1467## Autoconf initialization. ## 1468## ------------------------ ## 1469 1470# ac_fn_c_try_compile LINENO 1471# -------------------------- 1472# Try to compile conftest.$ac_ext, and return whether this succeeded. 1473ac_fn_c_try_compile () 1474{ 1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1476 rm -f conftest.$ac_objext 1477 if { { ac_try="$ac_compile" 1478case "(($ac_try" in 1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1480 *) ac_try_echo=$ac_try;; 1481esac 1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1483$as_echo "$ac_try_echo"; } >&5 1484 (eval "$ac_compile") 2>conftest.err 1485 ac_status=$? 1486 if test -s conftest.err; then 1487 grep -v '^ *+' conftest.err >conftest.er1 1488 cat conftest.er1 >&5 1489 mv -f conftest.er1 conftest.err 1490 fi 1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1492 test $ac_status = 0; } && { 1493 test -z "$ac_c_werror_flag" || 1494 test ! -s conftest.err 1495 } && test -s conftest.$ac_objext; then : 1496 ac_retval=0 1497else 1498 $as_echo "$as_me: failed program was:" >&5 1499sed 's/^/| /' conftest.$ac_ext >&5 1500 1501 ac_retval=1 1502fi 1503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1504 as_fn_set_status $ac_retval 1505 1506} # ac_fn_c_try_compile 1507 1508# ac_fn_c_try_cpp LINENO 1509# ---------------------- 1510# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1511ac_fn_c_try_cpp () 1512{ 1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1514 if { { ac_try="$ac_cpp conftest.$ac_ext" 1515case "(($ac_try" in 1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1517 *) ac_try_echo=$ac_try;; 1518esac 1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1520$as_echo "$ac_try_echo"; } >&5 1521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1522 ac_status=$? 1523 if test -s conftest.err; then 1524 grep -v '^ *+' conftest.err >conftest.er1 1525 cat conftest.er1 >&5 1526 mv -f conftest.er1 conftest.err 1527 fi 1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1529 test $ac_status = 0; } > conftest.i && { 1530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1531 test ! -s conftest.err 1532 }; then : 1533 ac_retval=0 1534else 1535 $as_echo "$as_me: failed program was:" >&5 1536sed 's/^/| /' conftest.$ac_ext >&5 1537 1538 ac_retval=1 1539fi 1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1541 as_fn_set_status $ac_retval 1542 1543} # ac_fn_c_try_cpp 1544 1545# ac_fn_c_try_run LINENO 1546# ---------------------- 1547# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1548# that executables *can* be run. 1549ac_fn_c_try_run () 1550{ 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 if { { ac_try="$ac_link" 1553case "(($ac_try" in 1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1555 *) ac_try_echo=$ac_try;; 1556esac 1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1558$as_echo "$ac_try_echo"; } >&5 1559 (eval "$ac_link") 2>&5 1560 ac_status=$? 1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1562 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1563 { { case "(($ac_try" in 1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1565 *) ac_try_echo=$ac_try;; 1566esac 1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1568$as_echo "$ac_try_echo"; } >&5 1569 (eval "$ac_try") 2>&5 1570 ac_status=$? 1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1572 test $ac_status = 0; }; }; then : 1573 ac_retval=0 1574else 1575 $as_echo "$as_me: program exited with status $ac_status" >&5 1576 $as_echo "$as_me: failed program was:" >&5 1577sed 's/^/| /' conftest.$ac_ext >&5 1578 1579 ac_retval=$ac_status 1580fi 1581 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1583 as_fn_set_status $ac_retval 1584 1585} # ac_fn_c_try_run 1586 1587# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1588# ------------------------------------------------------- 1589# Tests whether HEADER exists and can be compiled using the include files in 1590# INCLUDES, setting the cache variable VAR accordingly. 1591ac_fn_c_check_header_compile () 1592{ 1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1595$as_echo_n "checking for $2... " >&6; } 1596if eval \${$3+:} false; then : 1597 $as_echo_n "(cached) " >&6 1598else 1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1600/* end confdefs.h. */ 1601$4 1602#include <$2> 1603_ACEOF 1604if ac_fn_c_try_compile "$LINENO"; then : 1605 eval "$3=yes" 1606else 1607 eval "$3=no" 1608fi 1609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1610fi 1611eval ac_res=\$$3 1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1613$as_echo "$ac_res" >&6; } 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 1616} # ac_fn_c_check_header_compile 1617 1618# ac_fn_c_try_link LINENO 1619# ----------------------- 1620# Try to link conftest.$ac_ext, and return whether this succeeded. 1621ac_fn_c_try_link () 1622{ 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 rm -f conftest.$ac_objext conftest$ac_exeext 1625 if { { ac_try="$ac_link" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_link") 2>conftest.err 1633 ac_status=$? 1634 if test -s conftest.err; then 1635 grep -v '^ *+' conftest.err >conftest.er1 1636 cat conftest.er1 >&5 1637 mv -f conftest.er1 conftest.err 1638 fi 1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; } && { 1641 test -z "$ac_c_werror_flag" || 1642 test ! -s conftest.err 1643 } && test -s conftest$ac_exeext && { 1644 test "$cross_compiling" = yes || 1645 test -x conftest$ac_exeext 1646 }; then : 1647 ac_retval=0 1648else 1649 $as_echo "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=1 1653fi 1654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1656 # interfere with the next link command; also delete a directory that is 1657 # left behind by Apple's compiler. We do this before executing the actions. 1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660 as_fn_set_status $ac_retval 1661 1662} # ac_fn_c_try_link 1663 1664# ac_fn_c_check_func LINENO FUNC VAR 1665# ---------------------------------- 1666# Tests whether FUNC exists, setting the cache variable VAR accordingly 1667ac_fn_c_check_func () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671$as_echo_n "checking for $2... " >&6; } 1672if eval \${$3+:} false; then : 1673 $as_echo_n "(cached) " >&6 1674else 1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1676/* end confdefs.h. */ 1677/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1678 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1679#define $2 innocuous_$2 1680 1681/* System header to define __stub macros and hopefully few prototypes, 1682 which can conflict with char $2 (); below. 1683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1684 <limits.h> exists even on freestanding compilers. */ 1685 1686#ifdef __STDC__ 1687# include <limits.h> 1688#else 1689# include <assert.h> 1690#endif 1691 1692#undef $2 1693 1694/* Override any GCC internal prototype to avoid an error. 1695 Use char because int might match the return type of a GCC 1696 builtin and then its argument prototype would still apply. */ 1697#ifdef __cplusplus 1698extern "C" 1699#endif 1700char $2 (); 1701/* The GNU C library defines this for functions which it implements 1702 to always fail with ENOSYS. Some functions are actually named 1703 something starting with __ and the normal name is an alias. */ 1704#if defined __stub_$2 || defined __stub___$2 1705choke me 1706#endif 1707 1708int 1709main () 1710{ 1711return $2 (); 1712 ; 1713 return 0; 1714} 1715_ACEOF 1716if ac_fn_c_try_link "$LINENO"; then : 1717 eval "$3=yes" 1718else 1719 eval "$3=no" 1720fi 1721rm -f core conftest.err conftest.$ac_objext \ 1722 conftest$ac_exeext conftest.$ac_ext 1723fi 1724eval ac_res=\$$3 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1726$as_echo "$ac_res" >&6; } 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 1729} # ac_fn_c_check_func 1730 1731# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1732# ------------------------------------------------------- 1733# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1734# the include files in INCLUDES and setting the cache variable VAR 1735# accordingly. 1736ac_fn_c_check_header_mongrel () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 if eval \${$3+:} false; then : 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1741$as_echo_n "checking for $2... " >&6; } 1742if eval \${$3+:} false; then : 1743 $as_echo_n "(cached) " >&6 1744fi 1745eval ac_res=\$$3 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1747$as_echo "$ac_res" >&6; } 1748else 1749 # Is the header compilable? 1750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1751$as_echo_n "checking $2 usability... " >&6; } 1752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1753/* end confdefs.h. */ 1754$4 1755#include <$2> 1756_ACEOF 1757if ac_fn_c_try_compile "$LINENO"; then : 1758 ac_header_compiler=yes 1759else 1760 ac_header_compiler=no 1761fi 1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1764$as_echo "$ac_header_compiler" >&6; } 1765 1766# Is the header present? 1767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1768$as_echo_n "checking $2 presence... " >&6; } 1769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771#include <$2> 1772_ACEOF 1773if ac_fn_c_try_cpp "$LINENO"; then : 1774 ac_header_preproc=yes 1775else 1776 ac_header_preproc=no 1777fi 1778rm -f conftest.err conftest.i conftest.$ac_ext 1779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1780$as_echo "$ac_header_preproc" >&6; } 1781 1782# So? What about this header? 1783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1784 yes:no: ) 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1786$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1788$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1789 ;; 1790 no:yes:* ) 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1792$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1794$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1796$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1798$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1800$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1801 ;; 1802esac 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804$as_echo_n "checking for $2... " >&6; } 1805if eval \${$3+:} false; then : 1806 $as_echo_n "(cached) " >&6 1807else 1808 eval "$3=\$ac_header_compiler" 1809fi 1810eval ac_res=\$$3 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1812$as_echo "$ac_res" >&6; } 1813fi 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 1816} # ac_fn_c_check_header_mongrel 1817cat >config.log <<_ACEOF 1818This file contains any messages produced by compilers while 1819running configure, to aid debugging if configure makes a mistake. 1820 1821It was created by pgtcl $as_me 2.1.1, which was 1822generated by GNU Autoconf 2.69. Invocation command line was 1823 1824 $ $0 $@ 1825 1826_ACEOF 1827exec 5>>config.log 1828{ 1829cat <<_ASUNAME 1830## --------- ## 1831## Platform. ## 1832## --------- ## 1833 1834hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1835uname -m = `(uname -m) 2>/dev/null || echo unknown` 1836uname -r = `(uname -r) 2>/dev/null || echo unknown` 1837uname -s = `(uname -s) 2>/dev/null || echo unknown` 1838uname -v = `(uname -v) 2>/dev/null || echo unknown` 1839 1840/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1841/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1842 1843/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1844/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1845/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1846/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1847/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1848/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1849/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1850 1851_ASUNAME 1852 1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1854for as_dir in $PATH 1855do 1856 IFS=$as_save_IFS 1857 test -z "$as_dir" && as_dir=. 1858 $as_echo "PATH: $as_dir" 1859 done 1860IFS=$as_save_IFS 1861 1862} >&5 1863 1864cat >&5 <<_ACEOF 1865 1866 1867## ----------- ## 1868## Core tests. ## 1869## ----------- ## 1870 1871_ACEOF 1872 1873 1874# Keep a trace of the command line. 1875# Strip out --no-create and --no-recursion so they do not pile up. 1876# Strip out --silent because we don't want to record it for future runs. 1877# Also quote any args containing shell meta-characters. 1878# Make two passes to allow for proper duplicate-argument suppression. 1879ac_configure_args= 1880ac_configure_args0= 1881ac_configure_args1= 1882ac_must_keep_next=false 1883for ac_pass in 1 2 1884do 1885 for ac_arg 1886 do 1887 case $ac_arg in 1888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1890 | -silent | --silent | --silen | --sile | --sil) 1891 continue ;; 1892 *\'*) 1893 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1894 esac 1895 case $ac_pass in 1896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1897 2) 1898 as_fn_append ac_configure_args1 " '$ac_arg'" 1899 if test $ac_must_keep_next = true; then 1900 ac_must_keep_next=false # Got value, back to normal. 1901 else 1902 case $ac_arg in 1903 *=* | --config-cache | -C | -disable-* | --disable-* \ 1904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1906 | -with-* | --with-* | -without-* | --without-* | --x) 1907 case "$ac_configure_args0 " in 1908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1909 esac 1910 ;; 1911 -* ) ac_must_keep_next=true ;; 1912 esac 1913 fi 1914 as_fn_append ac_configure_args " '$ac_arg'" 1915 ;; 1916 esac 1917 done 1918done 1919{ ac_configure_args0=; unset ac_configure_args0;} 1920{ ac_configure_args1=; unset ac_configure_args1;} 1921 1922# When interrupted or exit'd, cleanup temporary files, and complete 1923# config.log. We remove comments because anyway the quotes in there 1924# would cause problems or look ugly. 1925# WARNING: Use '\'' to represent an apostrophe within the trap. 1926# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1927trap 'exit_status=$? 1928 # Save into config.log some information that might help in debugging. 1929 { 1930 echo 1931 1932 $as_echo "## ---------------- ## 1933## Cache variables. ## 1934## ---------------- ##" 1935 echo 1936 # The following way of writing the cache mishandles newlines in values, 1937( 1938 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1939 eval ac_val=\$$ac_var 1940 case $ac_val in #( 1941 *${as_nl}*) 1942 case $ac_var in #( 1943 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1944$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1945 esac 1946 case $ac_var in #( 1947 _ | IFS | as_nl) ;; #( 1948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1949 *) { eval $ac_var=; unset $ac_var;} ;; 1950 esac ;; 1951 esac 1952 done 1953 (set) 2>&1 | 1954 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1955 *${as_nl}ac_space=\ *) 1956 sed -n \ 1957 "s/'\''/'\''\\\\'\'''\''/g; 1958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1959 ;; #( 1960 *) 1961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1962 ;; 1963 esac | 1964 sort 1965) 1966 echo 1967 1968 $as_echo "## ----------------- ## 1969## Output variables. ## 1970## ----------------- ##" 1971 echo 1972 for ac_var in $ac_subst_vars 1973 do 1974 eval ac_val=\$$ac_var 1975 case $ac_val in 1976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1977 esac 1978 $as_echo "$ac_var='\''$ac_val'\''" 1979 done | sort 1980 echo 1981 1982 if test -n "$ac_subst_files"; then 1983 $as_echo "## ------------------- ## 1984## File substitutions. ## 1985## ------------------- ##" 1986 echo 1987 for ac_var in $ac_subst_files 1988 do 1989 eval ac_val=\$$ac_var 1990 case $ac_val in 1991 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1992 esac 1993 $as_echo "$ac_var='\''$ac_val'\''" 1994 done | sort 1995 echo 1996 fi 1997 1998 if test -s confdefs.h; then 1999 $as_echo "## ----------- ## 2000## confdefs.h. ## 2001## ----------- ##" 2002 echo 2003 cat confdefs.h 2004 echo 2005 fi 2006 test "$ac_signal" != 0 && 2007 $as_echo "$as_me: caught signal $ac_signal" 2008 $as_echo "$as_me: exit $exit_status" 2009 } >&5 2010 rm -f core *.core core.conftest.* && 2011 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2012 exit $exit_status 2013' 0 2014for ac_signal in 1 2 13 15; do 2015 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2016done 2017ac_signal=0 2018 2019# confdefs.h avoids OS command line length limits that DEFS can exceed. 2020rm -f -r conftest* confdefs.h 2021 2022$as_echo "/* confdefs.h */" > confdefs.h 2023 2024# Predefined preprocessor variables. 2025 2026cat >>confdefs.h <<_ACEOF 2027#define PACKAGE_NAME "$PACKAGE_NAME" 2028_ACEOF 2029 2030cat >>confdefs.h <<_ACEOF 2031#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2032_ACEOF 2033 2034cat >>confdefs.h <<_ACEOF 2035#define PACKAGE_VERSION "$PACKAGE_VERSION" 2036_ACEOF 2037 2038cat >>confdefs.h <<_ACEOF 2039#define PACKAGE_STRING "$PACKAGE_STRING" 2040_ACEOF 2041 2042cat >>confdefs.h <<_ACEOF 2043#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2044_ACEOF 2045 2046cat >>confdefs.h <<_ACEOF 2047#define PACKAGE_URL "$PACKAGE_URL" 2048_ACEOF 2049 2050 2051# Let the site file select an alternate cache file if it wants to. 2052# Prefer an explicitly selected file to automatically selected ones. 2053ac_site_file1=NONE 2054ac_site_file2=NONE 2055if test -n "$CONFIG_SITE"; then 2056 # We do not want a PATH search for config.site. 2057 case $CONFIG_SITE in #(( 2058 -*) ac_site_file1=./$CONFIG_SITE;; 2059 */*) ac_site_file1=$CONFIG_SITE;; 2060 *) ac_site_file1=./$CONFIG_SITE;; 2061 esac 2062elif test "x$prefix" != xNONE; then 2063 ac_site_file1=$prefix/share/config.site 2064 ac_site_file2=$prefix/etc/config.site 2065else 2066 ac_site_file1=$ac_default_prefix/share/config.site 2067 ac_site_file2=$ac_default_prefix/etc/config.site 2068fi 2069for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2070do 2071 test "x$ac_site_file" = xNONE && continue 2072 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2074$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2075 sed 's/^/| /' "$ac_site_file" >&5 2076 . "$ac_site_file" \ 2077 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2079as_fn_error $? "failed to load site script $ac_site_file 2080See \`config.log' for more details" "$LINENO" 5; } 2081 fi 2082done 2083 2084if test -r "$cache_file"; then 2085 # Some versions of bash will fail to source /dev/null (special files 2086 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2087 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2089$as_echo "$as_me: loading cache $cache_file" >&6;} 2090 case $cache_file in 2091 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2092 *) . "./$cache_file";; 2093 esac 2094 fi 2095else 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2097$as_echo "$as_me: creating cache $cache_file" >&6;} 2098 >$cache_file 2099fi 2100 2101# Check that the precious variables saved in the cache have kept the same 2102# value. 2103ac_cache_corrupted=false 2104for ac_var in $ac_precious_vars; do 2105 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2106 eval ac_new_set=\$ac_env_${ac_var}_set 2107 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2108 eval ac_new_val=\$ac_env_${ac_var}_value 2109 case $ac_old_set,$ac_new_set in 2110 set,) 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2112$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2113 ac_cache_corrupted=: ;; 2114 ,set) 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2116$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2117 ac_cache_corrupted=: ;; 2118 ,);; 2119 *) 2120 if test "x$ac_old_val" != "x$ac_new_val"; then 2121 # differences in whitespace do not lead to failure. 2122 ac_old_val_w=`echo x $ac_old_val` 2123 ac_new_val_w=`echo x $ac_new_val` 2124 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2126$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2127 ac_cache_corrupted=: 2128 else 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2130$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2131 eval $ac_var=\$ac_old_val 2132 fi 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2134$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2136$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2137 fi;; 2138 esac 2139 # Pass precious variables to config.status. 2140 if test "$ac_new_set" = set; then 2141 case $ac_new_val in 2142 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2143 *) ac_arg=$ac_var=$ac_new_val ;; 2144 esac 2145 case " $ac_configure_args " in 2146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2147 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2148 esac 2149 fi 2150done 2151if $ac_cache_corrupted; then 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2155$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2156 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2157fi 2158## -------------------- ## 2159## Main body of script. ## 2160## -------------------- ## 2161 2162ac_ext=c 2163ac_cpp='$CPP $CPPFLAGS' 2164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2166ac_compiler_gnu=$ac_cv_c_compiler_gnu 2167 2168 2169 2170#-------------------------------------------------------------------- 2171# Call TEA_INIT as the first TEA_ macro to set up initial vars. 2172# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 2173# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 2174#-------------------------------------------------------------------- 2175 2176 2177 # TEA extensions pass this us the version of TEA they think they 2178 # are compatible with. 2179 TEA_VERSION="3.5" 2180 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5 2182$as_echo_n "checking for correct TEA configuration... " >&6; } 2183 if test x"${PACKAGE_NAME}" = x ; then 2184 as_fn_error $? " 2185The PACKAGE_NAME variable must be defined by your TEA configure.in" "$LINENO" 5 2186 fi 2187 if test x"3.5" = x ; then 2188 as_fn_error $? " 2189TEA version not specified." "$LINENO" 5 2190 elif test "3.5" != "${TEA_VERSION}" ; then 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.5\", have \"${TEA_VERSION}\"" >&5 2192$as_echo "warning: requested TEA version \"3.5\", have \"${TEA_VERSION}\"" >&6; } 2193 else 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5 2195$as_echo "ok (TEA ${TEA_VERSION})" >&6; } 2196 fi 2197 case "`uname -s`" in 2198 *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*) 2199 # Extract the first word of "cygpath", so it can be a program name with args. 2200set dummy cygpath; ac_word=$2 2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2202$as_echo_n "checking for $ac_word... " >&6; } 2203if ${ac_cv_prog_CYGPATH+:} false; then : 2204 $as_echo_n "(cached) " >&6 2205else 2206 if test -n "$CYGPATH"; then 2207 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 2208else 2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2210for as_dir in $PATH 2211do 2212 IFS=$as_save_IFS 2213 test -z "$as_dir" && as_dir=. 2214 for ac_exec_ext in '' $ac_executable_extensions; do 2215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2216 ac_cv_prog_CYGPATH="cygpath -w" 2217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2218 break 2 2219 fi 2220done 2221 done 2222IFS=$as_save_IFS 2223 2224 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 2225fi 2226fi 2227CYGPATH=$ac_cv_prog_CYGPATH 2228if test -n "$CYGPATH"; then 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 2230$as_echo "$CYGPATH" >&6; } 2231else 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2233$as_echo "no" >&6; } 2234fi 2235 2236 2237 EXEEXT=".exe" 2238 TEA_PLATFORM="windows" 2239 ;; 2240 *) 2241 CYGPATH=echo 2242 EXEEXT="" 2243 TEA_PLATFORM="unix" 2244 ;; 2245 esac 2246 2247 # Check if exec_prefix is set. If not use fall back to prefix. 2248 # Note when adjusted, so that TEA_PREFIX can correct for this. 2249 # This is needed for recursive configures, since autoconf propagates 2250 # $prefix, but not $exec_prefix (doh!). 2251 if test x$exec_prefix = xNONE ; then 2252 exec_prefix_default=yes 2253 exec_prefix=$prefix 2254 fi 2255 2256 2257 2258 2259 # This package name must be replaced statically for AC_SUBST to work 2260 2261 # Substitute STUB_LIB_FILE in case package creates a stub library too. 2262 2263 2264 # We AC_SUBST these here to ensure they are subst'ed, 2265 # in case the user doesn't call TEA_ADD_... 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275ac_aux_dir= 2276for ac_dir in tclconfig "$srcdir"/tclconfig; do 2277 if test -f "$ac_dir/install-sh"; then 2278 ac_aux_dir=$ac_dir 2279 ac_install_sh="$ac_aux_dir/install-sh -c" 2280 break 2281 elif test -f "$ac_dir/install.sh"; then 2282 ac_aux_dir=$ac_dir 2283 ac_install_sh="$ac_aux_dir/install.sh -c" 2284 break 2285 elif test -f "$ac_dir/shtool"; then 2286 ac_aux_dir=$ac_dir 2287 ac_install_sh="$ac_aux_dir/shtool install -c" 2288 break 2289 fi 2290done 2291if test -z "$ac_aux_dir"; then 2292 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tclconfig \"$srcdir\"/tclconfig" "$LINENO" 5 2293fi 2294 2295# These three variables are undocumented and unsupported, 2296# and are intended to be withdrawn in a future Autoconf release. 2297# They can cause serious problems if a builder's source tree is in a directory 2298# whose full name contains unusual characters. 2299ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2300ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2301ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2302 2303 2304 2305#-------------------------------------------------------------------- 2306# Load the tclConfig.sh file 2307#-------------------------------------------------------------------- 2308 2309 2310 2311 # 2312 # Ok, lets find the tcl configuration 2313 # First, look for one uninstalled. 2314 # the alternative search directory is invoked by --with-tcl 2315 # 2316 2317 if test x"${no_tcl}" = x ; then 2318 # we reset no_tcl in case something fails here 2319 no_tcl=true 2320 2321# Check whether --with-tcl was given. 2322if test "${with_tcl+set}" = set; then : 2323 withval=$with_tcl; with_tclconfig=${withval} 2324fi 2325 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 2327$as_echo_n "checking for Tcl configuration... " >&6; } 2328 if ${ac_cv_c_tclconfig+:} false; then : 2329 $as_echo_n "(cached) " >&6 2330else 2331 2332 2333 # First check to see if --with-tcl was specified. 2334 if test x"${with_tclconfig}" != x ; then 2335 case ${with_tclconfig} in 2336 */tclConfig.sh ) 2337 if test -f ${with_tclconfig}; then 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 2339$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 2340 with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'` 2341 fi ;; 2342 esac 2343 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2344 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 2345 else 2346 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 2347 fi 2348 fi 2349 2350 # then check for a private Tcl installation 2351 if test x"${ac_cv_c_tclconfig}" = x ; then 2352 for i in \ 2353 ../tcl \ 2354 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2355 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2356 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2357 ../../tcl \ 2358 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2359 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2360 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2361 ../../../tcl \ 2362 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2363 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2364 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2365 if test -f "$i/unix/tclConfig.sh" ; then 2366 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 2367 break 2368 fi 2369 done 2370 fi 2371 2372 # on Darwin, check in Framework installation locations 2373 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2374 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2375 `ls -d /Library/Frameworks 2>/dev/null` \ 2376 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2377 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2378 ; do 2379 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2380 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` 2381 break 2382 fi 2383 done 2384 fi 2385 2386 # on Windows, check in common installation locations 2387 if test "${TEA_PLATFORM}" = "windows" \ 2388 -a x"${ac_cv_c_tclconfig}" = x ; then 2389 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2390 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2391 ; do 2392 if test -f "$i/tclConfig.sh" ; then 2393 ac_cv_c_tclconfig=`(cd $i; pwd)` 2394 break 2395 fi 2396 done 2397 fi 2398 2399 # check in a few common install locations 2400 if test x"${ac_cv_c_tclconfig}" = x ; then 2401 for i in `ls -d ${libdir} 2>/dev/null` \ 2402 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2403 `ls -d ${prefix}/lib 2>/dev/null` \ 2404 `ls -d /usr/local/lib 2>/dev/null` \ 2405 `ls -d /usr/contrib/lib 2>/dev/null` \ 2406 `ls -d /usr/lib 2>/dev/null` \ 2407 ; do 2408 if test -f "$i/tclConfig.sh" ; then 2409 ac_cv_c_tclconfig=`(cd $i; pwd)` 2410 break 2411 fi 2412 done 2413 fi 2414 2415 # check in a few other private locations 2416 if test x"${ac_cv_c_tclconfig}" = x ; then 2417 for i in \ 2418 ${srcdir}/../tcl \ 2419 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2420 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2421 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2422 if test -f "$i/unix/tclConfig.sh" ; then 2423 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 2424 break 2425 fi 2426 done 2427 fi 2428 2429fi 2430 2431 2432 if test x"${ac_cv_c_tclconfig}" = x ; then 2433 TCL_BIN_DIR="# no Tcl configs found" 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5 2435$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 2436 exit 0 2437 else 2438 no_tcl= 2439 TCL_BIN_DIR=${ac_cv_c_tclconfig} 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2441$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2442 fi 2443 fi 2444 2445 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2447$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; } 2448 2449 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 2451$as_echo "loading" >&6; } 2452 . ${TCL_BIN_DIR}/tclConfig.sh 2453 else 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2455$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2456 fi 2457 2458 # eval is required to do the TCL_DBGX substitution 2459 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2460 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2461 2462 # If the TCL_BIN_DIR is the build directory (not the install directory), 2463 # then set the common variable name to the value of the build variables. 2464 # For example, the variable TCL_LIB_SPEC will be set to the value 2465 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2466 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2467 # installed and uninstalled version of Tcl. 2468 if test -f ${TCL_BIN_DIR}/Makefile ; then 2469 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 2470 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 2471 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 2472 elif test "`uname -s`" = "Darwin"; then 2473 # If Tcl was built as a framework, attempt to use the libraries 2474 # from the framework at the given location so that linking works 2475 # against Tcl.framework installed in an arbitary location. 2476 case ${TCL_DEFS} in 2477 *TCL_FRAMEWORK*) 2478 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then 2479 for i in "`cd ${TCL_BIN_DIR}; pwd`" \ 2480 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do 2481 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2482 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}" 2483 break 2484 fi 2485 done 2486 fi 2487 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then 2488 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" 2489 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2490 fi 2491 ;; 2492 esac 2493 fi 2494 2495 # eval is required to do the TCL_DBGX substitution 2496 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2497 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2498 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2499 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520#-------------------------------------------------------------------- 2521# Load the tkConfig.sh file if necessary (Tk extension) 2522#-------------------------------------------------------------------- 2523 2524#TEA_PATH_TKCONFIG 2525#TEA_LOAD_TKCONFIG 2526 2527#----------------------------------------------------------------------- 2528# Handle the --prefix=... option by defaulting to what Tcl gave. 2529# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2530#----------------------------------------------------------------------- 2531 2532 2533 if test "${prefix}" = "NONE"; then 2534 prefix_default=yes 2535 if test x"${TCL_PREFIX}" != x; then 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2537$as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2538 prefix=${TCL_PREFIX} 2539 else 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5 2541$as_echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2542 prefix=/usr/local 2543 fi 2544 fi 2545 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2546 -o x"${exec_prefix_default}" = x"yes" ; then 2547 if test x"${TCL_EXEC_PREFIX}" != x; then 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2549$as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2550 exec_prefix=${TCL_EXEC_PREFIX} 2551 else 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5 2553$as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2554 exec_prefix=$prefix 2555 fi 2556 fi 2557 2558 2559#----------------------------------------------------------------------- 2560# Standard compiler checks. 2561# This sets up CC by using the CC env var, or looks for gcc otherwise. 2562# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2563# the basic setup necessary to compile executables. 2564#----------------------------------------------------------------------- 2565 2566# Find a good install program. We prefer a C program (faster), 2567# so one script is as good as another. But avoid the broken or 2568# incompatible versions: 2569# SysV /etc/install, /usr/sbin/install 2570# SunOS /usr/etc/install 2571# IRIX /sbin/install 2572# AIX /bin/install 2573# AmigaOS /C/install, which installs bootblocks on floppy discs 2574# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2575# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2576# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2577# OS/2's system install, which has a completely different semantic 2578# ./install, which can be erroneously created by make from ./install.sh. 2579# Reject install programs that cannot install multiple files. 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2581$as_echo_n "checking for a BSD-compatible install... " >&6; } 2582if test -z "$INSTALL"; then 2583if ${ac_cv_path_install+:} false; then : 2584 $as_echo_n "(cached) " >&6 2585else 2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2587for as_dir in $PATH 2588do 2589 IFS=$as_save_IFS 2590 test -z "$as_dir" && as_dir=. 2591 # Account for people who put trailing slashes in PATH elements. 2592case $as_dir/ in #(( 2593 ./ | .// | /[cC]/* | \ 2594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2595 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2596 /usr/ucb/* ) ;; 2597 *) 2598 # OSF1 and SCO ODT 3.0 have their own names for install. 2599 # Don't use installbsd from OSF since it installs stuff as root 2600 # by default. 2601 for ac_prog in ginstall scoinst install; do 2602 for ac_exec_ext in '' $ac_executable_extensions; do 2603 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2604 if test $ac_prog = install && 2605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2606 # AIX install. It has an incompatible calling convention. 2607 : 2608 elif test $ac_prog = install && 2609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2610 # program-specific install script used by HP pwplus--don't use. 2611 : 2612 else 2613 rm -rf conftest.one conftest.two conftest.dir 2614 echo one > conftest.one 2615 echo two > conftest.two 2616 mkdir conftest.dir 2617 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2618 test -s conftest.one && test -s conftest.two && 2619 test -s conftest.dir/conftest.one && 2620 test -s conftest.dir/conftest.two 2621 then 2622 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2623 break 3 2624 fi 2625 fi 2626 fi 2627 done 2628 done 2629 ;; 2630esac 2631 2632 done 2633IFS=$as_save_IFS 2634 2635rm -rf conftest.one conftest.two conftest.dir 2636 2637fi 2638 if test "${ac_cv_path_install+set}" = set; then 2639 INSTALL=$ac_cv_path_install 2640 else 2641 # As a last resort, use the slow shell script. Don't cache a 2642 # value for INSTALL within a source directory, because that will 2643 # break other packages using the cache if that directory is 2644 # removed, or if the value is a relative name. 2645 INSTALL=$ac_install_sh 2646 fi 2647fi 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2649$as_echo "$INSTALL" >&6; } 2650 2651# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2652# It thinks the first close brace ends the variable substitution. 2653test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2654 2655test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2656 2657test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2658 2659 2660 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2661 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2662 2663 # If the user did not set CFLAGS, set it now to keep 2664 # the AC_PROG_CC macro from adding "-g -O2". 2665 if test "${CFLAGS+set}" != "set" ; then 2666 CFLAGS="" 2667 fi 2668 2669 ac_ext=c 2670ac_cpp='$CPP $CPPFLAGS' 2671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2673ac_compiler_gnu=$ac_cv_c_compiler_gnu 2674if test -n "$ac_tool_prefix"; then 2675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2676set dummy ${ac_tool_prefix}gcc; ac_word=$2 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2678$as_echo_n "checking for $ac_word... " >&6; } 2679if ${ac_cv_prog_CC+:} false; then : 2680 $as_echo_n "(cached) " >&6 2681else 2682 if test -n "$CC"; then 2683 ac_cv_prog_CC="$CC" # Let the user override the test. 2684else 2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2692 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2694 break 2 2695 fi 2696done 2697 done 2698IFS=$as_save_IFS 2699 2700fi 2701fi 2702CC=$ac_cv_prog_CC 2703if test -n "$CC"; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2705$as_echo "$CC" >&6; } 2706else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2708$as_echo "no" >&6; } 2709fi 2710 2711 2712fi 2713if test -z "$ac_cv_prog_CC"; then 2714 ac_ct_CC=$CC 2715 # Extract the first word of "gcc", so it can be a program name with args. 2716set dummy gcc; ac_word=$2 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2718$as_echo_n "checking for $ac_word... " >&6; } 2719if ${ac_cv_prog_ac_ct_CC+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 if test -n "$ac_ct_CC"; then 2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2724else 2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2726for as_dir in $PATH 2727do 2728 IFS=$as_save_IFS 2729 test -z "$as_dir" && as_dir=. 2730 for ac_exec_ext in '' $ac_executable_extensions; do 2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2732 ac_cv_prog_ac_ct_CC="gcc" 2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2734 break 2 2735 fi 2736done 2737 done 2738IFS=$as_save_IFS 2739 2740fi 2741fi 2742ac_ct_CC=$ac_cv_prog_ac_ct_CC 2743if test -n "$ac_ct_CC"; then 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2745$as_echo "$ac_ct_CC" >&6; } 2746else 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2748$as_echo "no" >&6; } 2749fi 2750 2751 if test "x$ac_ct_CC" = x; then 2752 CC="" 2753 else 2754 case $cross_compiling:$ac_tool_warned in 2755yes:) 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2758ac_tool_warned=yes ;; 2759esac 2760 CC=$ac_ct_CC 2761 fi 2762else 2763 CC="$ac_cv_prog_CC" 2764fi 2765 2766if test -z "$CC"; then 2767 if test -n "$ac_tool_prefix"; then 2768 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2769set dummy ${ac_tool_prefix}cc; ac_word=$2 2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2771$as_echo_n "checking for $ac_word... " >&6; } 2772if ${ac_cv_prog_CC+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 if test -n "$CC"; then 2776 ac_cv_prog_CC="$CC" # Let the user override the test. 2777else 2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2779for as_dir in $PATH 2780do 2781 IFS=$as_save_IFS 2782 test -z "$as_dir" && as_dir=. 2783 for ac_exec_ext in '' $ac_executable_extensions; do 2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2785 ac_cv_prog_CC="${ac_tool_prefix}cc" 2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2787 break 2 2788 fi 2789done 2790 done 2791IFS=$as_save_IFS 2792 2793fi 2794fi 2795CC=$ac_cv_prog_CC 2796if test -n "$CC"; then 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2798$as_echo "$CC" >&6; } 2799else 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2801$as_echo "no" >&6; } 2802fi 2803 2804 2805 fi 2806fi 2807if test -z "$CC"; then 2808 # Extract the first word of "cc", so it can be a program name with args. 2809set dummy cc; ac_word=$2 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2811$as_echo_n "checking for $ac_word... " >&6; } 2812if ${ac_cv_prog_CC+:} false; then : 2813 $as_echo_n "(cached) " >&6 2814else 2815 if test -n "$CC"; then 2816 ac_cv_prog_CC="$CC" # Let the user override the test. 2817else 2818 ac_prog_rejected=no 2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820for as_dir in $PATH 2821do 2822 IFS=$as_save_IFS 2823 test -z "$as_dir" && as_dir=. 2824 for ac_exec_ext in '' $ac_executable_extensions; do 2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2826 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2827 ac_prog_rejected=yes 2828 continue 2829 fi 2830 ac_cv_prog_CC="cc" 2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834done 2835 done 2836IFS=$as_save_IFS 2837 2838if test $ac_prog_rejected = yes; then 2839 # We found a bogon in the path, so make sure we never use it. 2840 set dummy $ac_cv_prog_CC 2841 shift 2842 if test $# != 0; then 2843 # We chose a different compiler from the bogus one. 2844 # However, it has the same basename, so the bogon will be chosen 2845 # first if we set CC to just the basename; use the full file name. 2846 shift 2847 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2848 fi 2849fi 2850fi 2851fi 2852CC=$ac_cv_prog_CC 2853if test -n "$CC"; then 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2855$as_echo "$CC" >&6; } 2856else 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2858$as_echo "no" >&6; } 2859fi 2860 2861 2862fi 2863if test -z "$CC"; then 2864 if test -n "$ac_tool_prefix"; then 2865 for ac_prog in cl.exe 2866 do 2867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2868set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2870$as_echo_n "checking for $ac_word... " >&6; } 2871if ${ac_cv_prog_CC+:} false; then : 2872 $as_echo_n "(cached) " >&6 2873else 2874 if test -n "$CC"; then 2875 ac_cv_prog_CC="$CC" # Let the user override the test. 2876else 2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878for as_dir in $PATH 2879do 2880 IFS=$as_save_IFS 2881 test -z "$as_dir" && as_dir=. 2882 for ac_exec_ext in '' $ac_executable_extensions; do 2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2886 break 2 2887 fi 2888done 2889 done 2890IFS=$as_save_IFS 2891 2892fi 2893fi 2894CC=$ac_cv_prog_CC 2895if test -n "$CC"; then 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2897$as_echo "$CC" >&6; } 2898else 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2900$as_echo "no" >&6; } 2901fi 2902 2903 2904 test -n "$CC" && break 2905 done 2906fi 2907if test -z "$CC"; then 2908 ac_ct_CC=$CC 2909 for ac_prog in cl.exe 2910do 2911 # Extract the first word of "$ac_prog", so it can be a program name with args. 2912set dummy $ac_prog; ac_word=$2 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914$as_echo_n "checking for $ac_word... " >&6; } 2915if ${ac_cv_prog_ac_ct_CC+:} false; then : 2916 $as_echo_n "(cached) " >&6 2917else 2918 if test -n "$ac_ct_CC"; then 2919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2920else 2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2922for as_dir in $PATH 2923do 2924 IFS=$as_save_IFS 2925 test -z "$as_dir" && as_dir=. 2926 for ac_exec_ext in '' $ac_executable_extensions; do 2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2928 ac_cv_prog_ac_ct_CC="$ac_prog" 2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2930 break 2 2931 fi 2932done 2933 done 2934IFS=$as_save_IFS 2935 2936fi 2937fi 2938ac_ct_CC=$ac_cv_prog_ac_ct_CC 2939if test -n "$ac_ct_CC"; then 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2941$as_echo "$ac_ct_CC" >&6; } 2942else 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2944$as_echo "no" >&6; } 2945fi 2946 2947 2948 test -n "$ac_ct_CC" && break 2949done 2950 2951 if test "x$ac_ct_CC" = x; then 2952 CC="" 2953 else 2954 case $cross_compiling:$ac_tool_warned in 2955yes:) 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2958ac_tool_warned=yes ;; 2959esac 2960 CC=$ac_ct_CC 2961 fi 2962fi 2963 2964fi 2965 2966 2967test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2969as_fn_error $? "no acceptable C compiler found in \$PATH 2970See \`config.log' for more details" "$LINENO" 5; } 2971 2972# Provide some information about the compiler. 2973$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2974set X $ac_compile 2975ac_compiler=$2 2976for ac_option in --version -v -V -qversion; do 2977 { { ac_try="$ac_compiler $ac_option >&5" 2978case "(($ac_try" in 2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 *) ac_try_echo=$ac_try;; 2981esac 2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2983$as_echo "$ac_try_echo"; } >&5 2984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2985 ac_status=$? 2986 if test -s conftest.err; then 2987 sed '10a\ 2988... rest of stderr output deleted ... 2989 10q' conftest.err >conftest.er1 2990 cat conftest.er1 >&5 2991 fi 2992 rm -f conftest.er1 conftest.err 2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2994 test $ac_status = 0; } 2995done 2996 2997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2998/* end confdefs.h. */ 2999 3000int 3001main () 3002{ 3003 3004 ; 3005 return 0; 3006} 3007_ACEOF 3008ac_clean_files_save=$ac_clean_files 3009ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3010# Try to create an executable without -o first, disregard a.out. 3011# It will help us diagnose broken compilers, and finding out an intuition 3012# of exeext. 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3014$as_echo_n "checking whether the C compiler works... " >&6; } 3015ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3016 3017# The possible output files: 3018ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3019 3020ac_rmfiles= 3021for ac_file in $ac_files 3022do 3023 case $ac_file in 3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3025 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3026 esac 3027done 3028rm -f $ac_rmfiles 3029 3030if { { ac_try="$ac_link_default" 3031case "(($ac_try" in 3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3033 *) ac_try_echo=$ac_try;; 3034esac 3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3036$as_echo "$ac_try_echo"; } >&5 3037 (eval "$ac_link_default") 2>&5 3038 ac_status=$? 3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3040 test $ac_status = 0; }; then : 3041 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3042# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3043# in a Makefile. We should not override ac_cv_exeext if it was cached, 3044# so that the user can short-circuit this test for compilers unknown to 3045# Autoconf. 3046for ac_file in $ac_files '' 3047do 3048 test -f "$ac_file" || continue 3049 case $ac_file in 3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3051 ;; 3052 [ab].out ) 3053 # We found the default executable, but exeext='' is most 3054 # certainly right. 3055 break;; 3056 *.* ) 3057 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3058 then :; else 3059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3060 fi 3061 # We set ac_cv_exeext here because the later test for it is not 3062 # safe: cross compilers may not add the suffix if given an `-o' 3063 # argument, so we may need to know it at that point already. 3064 # Even if this section looks crufty: it has the advantage of 3065 # actually working. 3066 break;; 3067 * ) 3068 break;; 3069 esac 3070done 3071test "$ac_cv_exeext" = no && ac_cv_exeext= 3072 3073else 3074 ac_file='' 3075fi 3076if test -z "$ac_file"; then : 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3078$as_echo "no" >&6; } 3079$as_echo "$as_me: failed program was:" >&5 3080sed 's/^/| /' conftest.$ac_ext >&5 3081 3082{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3084as_fn_error 77 "C compiler cannot create executables 3085See \`config.log' for more details" "$LINENO" 5; } 3086else 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3088$as_echo "yes" >&6; } 3089fi 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3091$as_echo_n "checking for C compiler default output file name... " >&6; } 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3093$as_echo "$ac_file" >&6; } 3094ac_exeext=$ac_cv_exeext 3095 3096rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3097ac_clean_files=$ac_clean_files_save 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3099$as_echo_n "checking for suffix of executables... " >&6; } 3100if { { ac_try="$ac_link" 3101case "(($ac_try" in 3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3103 *) ac_try_echo=$ac_try;; 3104esac 3105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3106$as_echo "$ac_try_echo"; } >&5 3107 (eval "$ac_link") 2>&5 3108 ac_status=$? 3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3110 test $ac_status = 0; }; then : 3111 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3112# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3113# work properly (i.e., refer to `conftest.exe'), while it won't with 3114# `rm'. 3115for ac_file in conftest.exe conftest conftest.*; do 3116 test -f "$ac_file" || continue 3117 case $ac_file in 3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3119 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3120 break;; 3121 * ) break;; 3122 esac 3123done 3124else 3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3127as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3128See \`config.log' for more details" "$LINENO" 5; } 3129fi 3130rm -f conftest conftest$ac_cv_exeext 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3132$as_echo "$ac_cv_exeext" >&6; } 3133 3134rm -f conftest.$ac_ext 3135EXEEXT=$ac_cv_exeext 3136ac_exeext=$EXEEXT 3137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3138/* end confdefs.h. */ 3139#include <stdio.h> 3140int 3141main () 3142{ 3143FILE *f = fopen ("conftest.out", "w"); 3144 return ferror (f) || fclose (f) != 0; 3145 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150ac_clean_files="$ac_clean_files conftest.out" 3151# Check that the compiler produces executables we can run. If not, either 3152# the compiler is broken, or we cross compile. 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3154$as_echo_n "checking whether we are cross compiling... " >&6; } 3155if test "$cross_compiling" != yes; then 3156 { { ac_try="$ac_link" 3157case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160esac 3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3162$as_echo "$ac_try_echo"; } >&5 3163 (eval "$ac_link") 2>&5 3164 ac_status=$? 3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3166 test $ac_status = 0; } 3167 if { ac_try='./conftest$ac_cv_exeext' 3168 { { case "(($ac_try" in 3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3170 *) ac_try_echo=$ac_try;; 3171esac 3172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3173$as_echo "$ac_try_echo"; } >&5 3174 (eval "$ac_try") 2>&5 3175 ac_status=$? 3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3177 test $ac_status = 0; }; }; then 3178 cross_compiling=no 3179 else 3180 if test "$cross_compiling" = maybe; then 3181 cross_compiling=yes 3182 else 3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3185as_fn_error $? "cannot run C compiled programs. 3186If you meant to cross compile, use \`--host'. 3187See \`config.log' for more details" "$LINENO" 5; } 3188 fi 3189 fi 3190fi 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3192$as_echo "$cross_compiling" >&6; } 3193 3194rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3195ac_clean_files=$ac_clean_files_save 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3197$as_echo_n "checking for suffix of object files... " >&6; } 3198if ${ac_cv_objext+:} false; then : 3199 $as_echo_n "(cached) " >&6 3200else 3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3202/* end confdefs.h. */ 3203 3204int 3205main () 3206{ 3207 3208 ; 3209 return 0; 3210} 3211_ACEOF 3212rm -f conftest.o conftest.obj 3213if { { ac_try="$ac_compile" 3214case "(($ac_try" in 3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3216 *) ac_try_echo=$ac_try;; 3217esac 3218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3219$as_echo "$ac_try_echo"; } >&5 3220 (eval "$ac_compile") 2>&5 3221 ac_status=$? 3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3223 test $ac_status = 0; }; then : 3224 for ac_file in conftest.o conftest.obj conftest.*; do 3225 test -f "$ac_file" || continue; 3226 case $ac_file in 3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3229 break;; 3230 esac 3231done 3232else 3233 $as_echo "$as_me: failed program was:" >&5 3234sed 's/^/| /' conftest.$ac_ext >&5 3235 3236{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3238as_fn_error $? "cannot compute suffix of object files: cannot compile 3239See \`config.log' for more details" "$LINENO" 5; } 3240fi 3241rm -f conftest.$ac_cv_objext conftest.$ac_ext 3242fi 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3244$as_echo "$ac_cv_objext" >&6; } 3245OBJEXT=$ac_cv_objext 3246ac_objext=$OBJEXT 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3248$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3249if ${ac_cv_c_compiler_gnu+:} false; then : 3250 $as_echo_n "(cached) " >&6 3251else 3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3253/* end confdefs.h. */ 3254 3255int 3256main () 3257{ 3258#ifndef __GNUC__ 3259 choke me 3260#endif 3261 3262 ; 3263 return 0; 3264} 3265_ACEOF 3266if ac_fn_c_try_compile "$LINENO"; then : 3267 ac_compiler_gnu=yes 3268else 3269 ac_compiler_gnu=no 3270fi 3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3272ac_cv_c_compiler_gnu=$ac_compiler_gnu 3273 3274fi 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3276$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3277if test $ac_compiler_gnu = yes; then 3278 GCC=yes 3279else 3280 GCC= 3281fi 3282ac_test_CFLAGS=${CFLAGS+set} 3283ac_save_CFLAGS=$CFLAGS 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3285$as_echo_n "checking whether $CC accepts -g... " >&6; } 3286if ${ac_cv_prog_cc_g+:} false; then : 3287 $as_echo_n "(cached) " >&6 3288else 3289 ac_save_c_werror_flag=$ac_c_werror_flag 3290 ac_c_werror_flag=yes 3291 ac_cv_prog_cc_g=no 3292 CFLAGS="-g" 3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3294/* end confdefs.h. */ 3295 3296int 3297main () 3298{ 3299 3300 ; 3301 return 0; 3302} 3303_ACEOF 3304if ac_fn_c_try_compile "$LINENO"; then : 3305 ac_cv_prog_cc_g=yes 3306else 3307 CFLAGS="" 3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3309/* end confdefs.h. */ 3310 3311int 3312main () 3313{ 3314 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319if ac_fn_c_try_compile "$LINENO"; then : 3320 3321else 3322 ac_c_werror_flag=$ac_save_c_werror_flag 3323 CFLAGS="-g" 3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3325/* end confdefs.h. */ 3326 3327int 3328main () 3329{ 3330 3331 ; 3332 return 0; 3333} 3334_ACEOF 3335if ac_fn_c_try_compile "$LINENO"; then : 3336 ac_cv_prog_cc_g=yes 3337fi 3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3339fi 3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3341fi 3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3343 ac_c_werror_flag=$ac_save_c_werror_flag 3344fi 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3346$as_echo "$ac_cv_prog_cc_g" >&6; } 3347if test "$ac_test_CFLAGS" = set; then 3348 CFLAGS=$ac_save_CFLAGS 3349elif test $ac_cv_prog_cc_g = yes; then 3350 if test "$GCC" = yes; then 3351 CFLAGS="-g -O2" 3352 else 3353 CFLAGS="-g" 3354 fi 3355else 3356 if test "$GCC" = yes; then 3357 CFLAGS="-O2" 3358 else 3359 CFLAGS= 3360 fi 3361fi 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3363$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3364if ${ac_cv_prog_cc_c89+:} false; then : 3365 $as_echo_n "(cached) " >&6 3366else 3367 ac_cv_prog_cc_c89=no 3368ac_save_CC=$CC 3369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370/* end confdefs.h. */ 3371#include <stdarg.h> 3372#include <stdio.h> 3373struct stat; 3374/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3375struct buf { int x; }; 3376FILE * (*rcsopen) (struct buf *, struct stat *, int); 3377static char *e (p, i) 3378 char **p; 3379 int i; 3380{ 3381 return p[i]; 3382} 3383static char *f (char * (*g) (char **, int), char **p, ...) 3384{ 3385 char *s; 3386 va_list v; 3387 va_start (v,p); 3388 s = g (p, va_arg (v,int)); 3389 va_end (v); 3390 return s; 3391} 3392 3393/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3394 function prototypes and stuff, but not '\xHH' hex character constants. 3395 These don't provoke an error unfortunately, instead are silently treated 3396 as 'x'. The following induces an error, until -std is added to get 3397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3398 array size at least. It's necessary to write '\x00'==0 to get something 3399 that's true only with -std. */ 3400int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3401 3402/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3403 inside strings and character constants. */ 3404#define FOO(x) 'x' 3405int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3406 3407int test (int i, double x); 3408struct s1 {int (*f) (int a);}; 3409struct s2 {int (*f) (double a);}; 3410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3411int argc; 3412char **argv; 3413int 3414main () 3415{ 3416return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3417 ; 3418 return 0; 3419} 3420_ACEOF 3421for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3422 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3423do 3424 CC="$ac_save_CC $ac_arg" 3425 if ac_fn_c_try_compile "$LINENO"; then : 3426 ac_cv_prog_cc_c89=$ac_arg 3427fi 3428rm -f core conftest.err conftest.$ac_objext 3429 test "x$ac_cv_prog_cc_c89" != "xno" && break 3430done 3431rm -f conftest.$ac_ext 3432CC=$ac_save_CC 3433 3434fi 3435# AC_CACHE_VAL 3436case "x$ac_cv_prog_cc_c89" in 3437 x) 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3439$as_echo "none needed" >&6; } ;; 3440 xno) 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3442$as_echo "unsupported" >&6; } ;; 3443 *) 3444 CC="$CC $ac_cv_prog_cc_c89" 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3446$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3447esac 3448if test "x$ac_cv_prog_cc_c89" != xno; then : 3449 3450fi 3451 3452ac_ext=c 3453ac_cpp='$CPP $CPPFLAGS' 3454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3456ac_compiler_gnu=$ac_cv_c_compiler_gnu 3457 3458 ac_ext=c 3459ac_cpp='$CPP $CPPFLAGS' 3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3462ac_compiler_gnu=$ac_cv_c_compiler_gnu 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3464$as_echo_n "checking how to run the C preprocessor... " >&6; } 3465# On Suns, sometimes $CPP names a directory. 3466if test -n "$CPP" && test -d "$CPP"; then 3467 CPP= 3468fi 3469if test -z "$CPP"; then 3470 if ${ac_cv_prog_CPP+:} false; then : 3471 $as_echo_n "(cached) " >&6 3472else 3473 # Double quotes because CPP needs to be expanded 3474 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3475 do 3476 ac_preproc_ok=false 3477for ac_c_preproc_warn_flag in '' yes 3478do 3479 # Use a header file that comes with gcc, so configuring glibc 3480 # with a fresh cross-compiler works. 3481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3482 # <limits.h> exists even on freestanding compilers. 3483 # On the NeXT, cc -E runs the code through the compiler's parser, 3484 # not just through cpp. "Syntax error" is here to catch this case. 3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3486/* end confdefs.h. */ 3487#ifdef __STDC__ 3488# include <limits.h> 3489#else 3490# include <assert.h> 3491#endif 3492 Syntax error 3493_ACEOF 3494if ac_fn_c_try_cpp "$LINENO"; then : 3495 3496else 3497 # Broken: fails on valid input. 3498continue 3499fi 3500rm -f conftest.err conftest.i conftest.$ac_ext 3501 3502 # OK, works on sane cases. Now check whether nonexistent headers 3503 # can be detected and how. 3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3505/* end confdefs.h. */ 3506#include <ac_nonexistent.h> 3507_ACEOF 3508if ac_fn_c_try_cpp "$LINENO"; then : 3509 # Broken: success on invalid input. 3510continue 3511else 3512 # Passes both tests. 3513ac_preproc_ok=: 3514break 3515fi 3516rm -f conftest.err conftest.i conftest.$ac_ext 3517 3518done 3519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3520rm -f conftest.i conftest.err conftest.$ac_ext 3521if $ac_preproc_ok; then : 3522 break 3523fi 3524 3525 done 3526 ac_cv_prog_CPP=$CPP 3527 3528fi 3529 CPP=$ac_cv_prog_CPP 3530else 3531 ac_cv_prog_CPP=$CPP 3532fi 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3534$as_echo "$CPP" >&6; } 3535ac_preproc_ok=false 3536for ac_c_preproc_warn_flag in '' yes 3537do 3538 # Use a header file that comes with gcc, so configuring glibc 3539 # with a fresh cross-compiler works. 3540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3541 # <limits.h> exists even on freestanding compilers. 3542 # On the NeXT, cc -E runs the code through the compiler's parser, 3543 # not just through cpp. "Syntax error" is here to catch this case. 3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3545/* end confdefs.h. */ 3546#ifdef __STDC__ 3547# include <limits.h> 3548#else 3549# include <assert.h> 3550#endif 3551 Syntax error 3552_ACEOF 3553if ac_fn_c_try_cpp "$LINENO"; then : 3554 3555else 3556 # Broken: fails on valid input. 3557continue 3558fi 3559rm -f conftest.err conftest.i conftest.$ac_ext 3560 3561 # OK, works on sane cases. Now check whether nonexistent headers 3562 # can be detected and how. 3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564/* end confdefs.h. */ 3565#include <ac_nonexistent.h> 3566_ACEOF 3567if ac_fn_c_try_cpp "$LINENO"; then : 3568 # Broken: success on invalid input. 3569continue 3570else 3571 # Passes both tests. 3572ac_preproc_ok=: 3573break 3574fi 3575rm -f conftest.err conftest.i conftest.$ac_ext 3576 3577done 3578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3579rm -f conftest.i conftest.err conftest.$ac_ext 3580if $ac_preproc_ok; then : 3581 3582else 3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3585as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3586See \`config.log' for more details" "$LINENO" 5; } 3587fi 3588 3589ac_ext=c 3590ac_cpp='$CPP $CPPFLAGS' 3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3593ac_compiler_gnu=$ac_cv_c_compiler_gnu 3594 3595 3596 3597 3598 #-------------------------------------------------------------------- 3599 # Checks to see if the make program sets the $MAKE variable. 3600 #-------------------------------------------------------------------- 3601 3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3603$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3604set x ${MAKE-make} 3605ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3606if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3607 $as_echo_n "(cached) " >&6 3608else 3609 cat >conftest.make <<\_ACEOF 3610SHELL = /bin/sh 3611all: 3612 @echo '@@@%%%=$(MAKE)=@@@%%%' 3613_ACEOF 3614# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3615case `${MAKE-make} -f conftest.make 2>/dev/null` in 3616 *@@@%%%=?*=@@@%%%*) 3617 eval ac_cv_prog_make_${ac_make}_set=yes;; 3618 *) 3619 eval ac_cv_prog_make_${ac_make}_set=no;; 3620esac 3621rm -f conftest.make 3622fi 3623if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3625$as_echo "yes" >&6; } 3626 SET_MAKE= 3627else 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3629$as_echo "no" >&6; } 3630 SET_MAKE="MAKE=${MAKE-make}" 3631fi 3632 3633 3634 #-------------------------------------------------------------------- 3635 # Find ranlib 3636 #-------------------------------------------------------------------- 3637 3638 if test -n "$ac_tool_prefix"; then 3639 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3640set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3642$as_echo_n "checking for $ac_word... " >&6; } 3643if ${ac_cv_prog_RANLIB+:} false; then : 3644 $as_echo_n "(cached) " >&6 3645else 3646 if test -n "$RANLIB"; then 3647 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3648else 3649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3650for as_dir in $PATH 3651do 3652 IFS=$as_save_IFS 3653 test -z "$as_dir" && as_dir=. 3654 for ac_exec_ext in '' $ac_executable_extensions; do 3655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3656 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3658 break 2 3659 fi 3660done 3661 done 3662IFS=$as_save_IFS 3663 3664fi 3665fi 3666RANLIB=$ac_cv_prog_RANLIB 3667if test -n "$RANLIB"; then 3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3669$as_echo "$RANLIB" >&6; } 3670else 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3672$as_echo "no" >&6; } 3673fi 3674 3675 3676fi 3677if test -z "$ac_cv_prog_RANLIB"; then 3678 ac_ct_RANLIB=$RANLIB 3679 # Extract the first word of "ranlib", so it can be a program name with args. 3680set dummy ranlib; ac_word=$2 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3682$as_echo_n "checking for $ac_word... " >&6; } 3683if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3684 $as_echo_n "(cached) " >&6 3685else 3686 if test -n "$ac_ct_RANLIB"; then 3687 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3688else 3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3690for as_dir in $PATH 3691do 3692 IFS=$as_save_IFS 3693 test -z "$as_dir" && as_dir=. 3694 for ac_exec_ext in '' $ac_executable_extensions; do 3695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3696 ac_cv_prog_ac_ct_RANLIB="ranlib" 3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3698 break 2 3699 fi 3700done 3701 done 3702IFS=$as_save_IFS 3703 3704fi 3705fi 3706ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3707if test -n "$ac_ct_RANLIB"; then 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3709$as_echo "$ac_ct_RANLIB" >&6; } 3710else 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3712$as_echo "no" >&6; } 3713fi 3714 3715 if test "x$ac_ct_RANLIB" = x; then 3716 RANLIB=":" 3717 else 3718 case $cross_compiling:$ac_tool_warned in 3719yes:) 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3722ac_tool_warned=yes ;; 3723esac 3724 RANLIB=$ac_ct_RANLIB 3725 fi 3726else 3727 RANLIB="$ac_cv_prog_RANLIB" 3728fi 3729 3730 3731 #-------------------------------------------------------------------- 3732 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3733 #-------------------------------------------------------------------- 3734 3735 3736 3737 3738 3739 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3741$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3742if ${ac_cv_path_GREP+:} false; then : 3743 $as_echo_n "(cached) " >&6 3744else 3745 if test -z "$GREP"; then 3746 ac_path_GREP_found=false 3747 # Loop through the user's path and test for each of PROGNAME-LIST 3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3749for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3750do 3751 IFS=$as_save_IFS 3752 test -z "$as_dir" && as_dir=. 3753 for ac_prog in grep ggrep; do 3754 for ac_exec_ext in '' $ac_executable_extensions; do 3755 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3756 as_fn_executable_p "$ac_path_GREP" || continue 3757# Check for GNU ac_path_GREP and select it if it is found. 3758 # Check for GNU $ac_path_GREP 3759case `"$ac_path_GREP" --version 2>&1` in 3760*GNU*) 3761 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3762*) 3763 ac_count=0 3764 $as_echo_n 0123456789 >"conftest.in" 3765 while : 3766 do 3767 cat "conftest.in" "conftest.in" >"conftest.tmp" 3768 mv "conftest.tmp" "conftest.in" 3769 cp "conftest.in" "conftest.nl" 3770 $as_echo 'GREP' >> "conftest.nl" 3771 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3773 as_fn_arith $ac_count + 1 && ac_count=$as_val 3774 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3775 # Best one so far, save it but keep looking for a better one 3776 ac_cv_path_GREP="$ac_path_GREP" 3777 ac_path_GREP_max=$ac_count 3778 fi 3779 # 10*(2^10) chars as input seems more than enough 3780 test $ac_count -gt 10 && break 3781 done 3782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3783esac 3784 3785 $ac_path_GREP_found && break 3 3786 done 3787 done 3788 done 3789IFS=$as_save_IFS 3790 if test -z "$ac_cv_path_GREP"; then 3791 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3792 fi 3793else 3794 ac_cv_path_GREP=$GREP 3795fi 3796 3797fi 3798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3799$as_echo "$ac_cv_path_GREP" >&6; } 3800 GREP="$ac_cv_path_GREP" 3801 3802 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3804$as_echo_n "checking for egrep... " >&6; } 3805if ${ac_cv_path_EGREP+:} false; then : 3806 $as_echo_n "(cached) " >&6 3807else 3808 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3809 then ac_cv_path_EGREP="$GREP -E" 3810 else 3811 if test -z "$EGREP"; then 3812 ac_path_EGREP_found=false 3813 # Loop through the user's path and test for each of PROGNAME-LIST 3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3815for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3816do 3817 IFS=$as_save_IFS 3818 test -z "$as_dir" && as_dir=. 3819 for ac_prog in egrep; do 3820 for ac_exec_ext in '' $ac_executable_extensions; do 3821 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3822 as_fn_executable_p "$ac_path_EGREP" || continue 3823# Check for GNU ac_path_EGREP and select it if it is found. 3824 # Check for GNU $ac_path_EGREP 3825case `"$ac_path_EGREP" --version 2>&1` in 3826*GNU*) 3827 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3828*) 3829 ac_count=0 3830 $as_echo_n 0123456789 >"conftest.in" 3831 while : 3832 do 3833 cat "conftest.in" "conftest.in" >"conftest.tmp" 3834 mv "conftest.tmp" "conftest.in" 3835 cp "conftest.in" "conftest.nl" 3836 $as_echo 'EGREP' >> "conftest.nl" 3837 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3839 as_fn_arith $ac_count + 1 && ac_count=$as_val 3840 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3841 # Best one so far, save it but keep looking for a better one 3842 ac_cv_path_EGREP="$ac_path_EGREP" 3843 ac_path_EGREP_max=$ac_count 3844 fi 3845 # 10*(2^10) chars as input seems more than enough 3846 test $ac_count -gt 10 && break 3847 done 3848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3849esac 3850 3851 $ac_path_EGREP_found && break 3 3852 done 3853 done 3854 done 3855IFS=$as_save_IFS 3856 if test -z "$ac_cv_path_EGREP"; then 3857 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3858 fi 3859else 3860 ac_cv_path_EGREP=$EGREP 3861fi 3862 3863 fi 3864fi 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3866$as_echo "$ac_cv_path_EGREP" >&6; } 3867 EGREP="$ac_cv_path_EGREP" 3868 3869 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3871$as_echo_n "checking for ANSI C header files... " >&6; } 3872if ${ac_cv_header_stdc+:} false; then : 3873 $as_echo_n "(cached) " >&6 3874else 3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876/* end confdefs.h. */ 3877#include <stdlib.h> 3878#include <stdarg.h> 3879#include <string.h> 3880#include <float.h> 3881 3882int 3883main () 3884{ 3885 3886 ; 3887 return 0; 3888} 3889_ACEOF 3890if ac_fn_c_try_compile "$LINENO"; then : 3891 ac_cv_header_stdc=yes 3892else 3893 ac_cv_header_stdc=no 3894fi 3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3896 3897if test $ac_cv_header_stdc = yes; then 3898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3900/* end confdefs.h. */ 3901#include <string.h> 3902 3903_ACEOF 3904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3905 $EGREP "memchr" >/dev/null 2>&1; then : 3906 3907else 3908 ac_cv_header_stdc=no 3909fi 3910rm -f conftest* 3911 3912fi 3913 3914if test $ac_cv_header_stdc = yes; then 3915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3917/* end confdefs.h. */ 3918#include <stdlib.h> 3919 3920_ACEOF 3921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3922 $EGREP "free" >/dev/null 2>&1; then : 3923 3924else 3925 ac_cv_header_stdc=no 3926fi 3927rm -f conftest* 3928 3929fi 3930 3931if test $ac_cv_header_stdc = yes; then 3932 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3933 if test "$cross_compiling" = yes; then : 3934 : 3935else 3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937/* end confdefs.h. */ 3938#include <ctype.h> 3939#include <stdlib.h> 3940#if ((' ' & 0x0FF) == 0x020) 3941# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3942# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3943#else 3944# define ISLOWER(c) \ 3945 (('a' <= (c) && (c) <= 'i') \ 3946 || ('j' <= (c) && (c) <= 'r') \ 3947 || ('s' <= (c) && (c) <= 'z')) 3948# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3949#endif 3950 3951#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3952int 3953main () 3954{ 3955 int i; 3956 for (i = 0; i < 256; i++) 3957 if (XOR (islower (i), ISLOWER (i)) 3958 || toupper (i) != TOUPPER (i)) 3959 return 2; 3960 return 0; 3961} 3962_ACEOF 3963if ac_fn_c_try_run "$LINENO"; then : 3964 3965else 3966 ac_cv_header_stdc=no 3967fi 3968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3969 conftest.$ac_objext conftest.beam conftest.$ac_ext 3970fi 3971 3972fi 3973fi 3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3975$as_echo "$ac_cv_header_stdc" >&6; } 3976if test $ac_cv_header_stdc = yes; then 3977 3978$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3979 3980fi 3981 3982# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3983for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3984 inttypes.h stdint.h unistd.h 3985do : 3986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3987ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3988" 3989if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3990 cat >>confdefs.h <<_ACEOF 3991#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3992_ACEOF 3993 3994fi 3995 3996done 3997 3998 3999 4000 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4001 4002 4003 #------------------------------------------------------------------------ 4004 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4005 # It makes compiling go faster. (This is only a performance feature.) 4006 #------------------------------------------------------------------------ 4007 4008 if test -z "$no_pipe" -a -n "$GCC"; then 4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5 4010$as_echo_n "checking if the compiler understands -pipe... " >&6; } 4011 OLDCC="$CC" 4012 CC="$CC -pipe" 4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4014/* end confdefs.h. */ 4015 4016int 4017main () 4018{ 4019 4020 ; 4021 return 0; 4022} 4023_ACEOF 4024if ac_fn_c_try_compile "$LINENO"; then : 4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4026$as_echo "yes" >&6; } 4027else 4028 CC="$OLDCC" 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4030$as_echo "no" >&6; } 4031fi 4032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4033 fi 4034 4035 #-------------------------------------------------------------------- 4036 # Common compiler flag setup 4037 #-------------------------------------------------------------------- 4038 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4040$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4041if ${ac_cv_c_bigendian+:} false; then : 4042 $as_echo_n "(cached) " >&6 4043else 4044 ac_cv_c_bigendian=unknown 4045 # See if we're dealing with a universal compiler. 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4047/* end confdefs.h. */ 4048#ifndef __APPLE_CC__ 4049 not a universal capable compiler 4050 #endif 4051 typedef int dummy; 4052 4053_ACEOF 4054if ac_fn_c_try_compile "$LINENO"; then : 4055 4056 # Check for potential -arch flags. It is not universal unless 4057 # there are at least two -arch flags with different values. 4058 ac_arch= 4059 ac_prev= 4060 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4061 if test -n "$ac_prev"; then 4062 case $ac_word in 4063 i?86 | x86_64 | ppc | ppc64) 4064 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4065 ac_arch=$ac_word 4066 else 4067 ac_cv_c_bigendian=universal 4068 break 4069 fi 4070 ;; 4071 esac 4072 ac_prev= 4073 elif test "x$ac_word" = "x-arch"; then 4074 ac_prev=arch 4075 fi 4076 done 4077fi 4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4079 if test $ac_cv_c_bigendian = unknown; then 4080 # See if sys/param.h defines the BYTE_ORDER macro. 4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4082/* end confdefs.h. */ 4083#include <sys/types.h> 4084 #include <sys/param.h> 4085 4086int 4087main () 4088{ 4089#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4090 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4091 && LITTLE_ENDIAN) 4092 bogus endian macros 4093 #endif 4094 4095 ; 4096 return 0; 4097} 4098_ACEOF 4099if ac_fn_c_try_compile "$LINENO"; then : 4100 # It does; now see whether it defined to BIG_ENDIAN or not. 4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103#include <sys/types.h> 4104 #include <sys/param.h> 4105 4106int 4107main () 4108{ 4109#if BYTE_ORDER != BIG_ENDIAN 4110 not big endian 4111 #endif 4112 4113 ; 4114 return 0; 4115} 4116_ACEOF 4117if ac_fn_c_try_compile "$LINENO"; then : 4118 ac_cv_c_bigendian=yes 4119else 4120 ac_cv_c_bigendian=no 4121fi 4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4123fi 4124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4125 fi 4126 if test $ac_cv_c_bigendian = unknown; then 4127 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130#include <limits.h> 4131 4132int 4133main () 4134{ 4135#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4136 bogus endian macros 4137 #endif 4138 4139 ; 4140 return 0; 4141} 4142_ACEOF 4143if ac_fn_c_try_compile "$LINENO"; then : 4144 # It does; now see whether it defined to _BIG_ENDIAN or not. 4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147#include <limits.h> 4148 4149int 4150main () 4151{ 4152#ifndef _BIG_ENDIAN 4153 not big endian 4154 #endif 4155 4156 ; 4157 return 0; 4158} 4159_ACEOF 4160if ac_fn_c_try_compile "$LINENO"; then : 4161 ac_cv_c_bigendian=yes 4162else 4163 ac_cv_c_bigendian=no 4164fi 4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4166fi 4167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4168 fi 4169 if test $ac_cv_c_bigendian = unknown; then 4170 # Compile a test program. 4171 if test "$cross_compiling" = yes; then : 4172 # Try to guess by grepping values from an object file. 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174/* end confdefs.h. */ 4175short int ascii_mm[] = 4176 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4177 short int ascii_ii[] = 4178 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4179 int use_ascii (int i) { 4180 return ascii_mm[i] + ascii_ii[i]; 4181 } 4182 short int ebcdic_ii[] = 4183 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4184 short int ebcdic_mm[] = 4185 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4186 int use_ebcdic (int i) { 4187 return ebcdic_mm[i] + ebcdic_ii[i]; 4188 } 4189 extern int foo; 4190 4191int 4192main () 4193{ 4194return use_ascii (foo) == use_ebcdic (foo); 4195 ; 4196 return 0; 4197} 4198_ACEOF 4199if ac_fn_c_try_compile "$LINENO"; then : 4200 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4201 ac_cv_c_bigendian=yes 4202 fi 4203 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4204 if test "$ac_cv_c_bigendian" = unknown; then 4205 ac_cv_c_bigendian=no 4206 else 4207 # finding both strings is unlikely to happen, but who knows? 4208 ac_cv_c_bigendian=unknown 4209 fi 4210 fi 4211fi 4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4213else 4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215/* end confdefs.h. */ 4216$ac_includes_default 4217int 4218main () 4219{ 4220 4221 /* Are we little or big endian? From Harbison&Steele. */ 4222 union 4223 { 4224 long int l; 4225 char c[sizeof (long int)]; 4226 } u; 4227 u.l = 1; 4228 return u.c[sizeof (long int) - 1] == 1; 4229 4230 ; 4231 return 0; 4232} 4233_ACEOF 4234if ac_fn_c_try_run "$LINENO"; then : 4235 ac_cv_c_bigendian=no 4236else 4237 ac_cv_c_bigendian=yes 4238fi 4239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4240 conftest.$ac_objext conftest.beam conftest.$ac_ext 4241fi 4242 4243 fi 4244fi 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4246$as_echo "$ac_cv_c_bigendian" >&6; } 4247 case $ac_cv_c_bigendian in #( 4248 yes) 4249 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4250;; #( 4251 no) 4252 ;; #( 4253 universal) 4254 4255$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4256 4257 ;; #( 4258 *) 4259 as_fn_error $? "unknown endianness 4260 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4261 esac 4262 4263 if test "${TEA_PLATFORM}" = "unix" ; then 4264 ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin" 4265 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5 4267$as_echo_n "checking for main in -lieee... " >&6; } 4268if ${ac_cv_lib_ieee_main+:} false; then : 4269 $as_echo_n "(cached) " >&6 4270else 4271 ac_check_lib_save_LIBS=$LIBS 4272LIBS="-lieee $LIBS" 4273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4274/* end confdefs.h. */ 4275 4276 4277int 4278main () 4279{ 4280return main (); 4281 ; 4282 return 0; 4283} 4284_ACEOF 4285if ac_fn_c_try_link "$LINENO"; then : 4286 ac_cv_lib_ieee_main=yes 4287else 4288 ac_cv_lib_ieee_main=no 4289fi 4290rm -f core conftest.err conftest.$ac_objext \ 4291 conftest$ac_exeext conftest.$ac_ext 4292LIBS=$ac_check_lib_save_LIBS 4293fi 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5 4295$as_echo "$ac_cv_lib_ieee_main" >&6; } 4296if test "x$ac_cv_lib_ieee_main" = xyes; then : 4297 MATH_LIBS="-lieee $MATH_LIBS" 4298fi 4299 4300 4301 #-------------------------------------------------------------------- 4302 # Interactive UNIX requires -linet instead of -lsocket, plus it 4303 # needs net/errno.h to define the socket-related error codes. 4304 #-------------------------------------------------------------------- 4305 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5 4307$as_echo_n "checking for main in -linet... " >&6; } 4308if ${ac_cv_lib_inet_main+:} false; then : 4309 $as_echo_n "(cached) " >&6 4310else 4311 ac_check_lib_save_LIBS=$LIBS 4312LIBS="-linet $LIBS" 4313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4314/* end confdefs.h. */ 4315 4316 4317int 4318main () 4319{ 4320return main (); 4321 ; 4322 return 0; 4323} 4324_ACEOF 4325if ac_fn_c_try_link "$LINENO"; then : 4326 ac_cv_lib_inet_main=yes 4327else 4328 ac_cv_lib_inet_main=no 4329fi 4330rm -f core conftest.err conftest.$ac_objext \ 4331 conftest$ac_exeext conftest.$ac_ext 4332LIBS=$ac_check_lib_save_LIBS 4333fi 4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5 4335$as_echo "$ac_cv_lib_inet_main" >&6; } 4336if test "x$ac_cv_lib_inet_main" = xyes; then : 4337 LIBS="$LIBS -linet" 4338fi 4339 4340 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 4341if test "x$ac_cv_header_net_errno_h" = xyes; then : 4342 4343 4344$as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h 4345 4346fi 4347 4348 4349 4350 #-------------------------------------------------------------------- 4351 # Check for the existence of the -lsocket and -lnsl libraries. 4352 # The order here is important, so that they end up in the right 4353 # order in the command line generated by make. Here are some 4354 # special considerations: 4355 # 1. Use "connect" and "accept" to check for -lsocket, and 4356 # "gethostbyname" to check for -lnsl. 4357 # 2. Use each function name only once: can't redo a check because 4358 # autoconf caches the results of the last check and won't redo it. 4359 # 3. Use -lnsl and -lsocket only if they supply procedures that 4360 # aren't already present in the normal libraries. This is because 4361 # IRIX 5.2 has libraries, but they aren't needed and they're 4362 # bogus: they goof up name resolution if used. 4363 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4364 # To get around this problem, check for both libraries together 4365 # if -lsocket doesn't work by itself. 4366 #-------------------------------------------------------------------- 4367 4368 tcl_checkBoth=0 4369 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 4370if test "x$ac_cv_func_connect" = xyes; then : 4371 tcl_checkSocket=0 4372else 4373 tcl_checkSocket=1 4374fi 4375 4376 if test "$tcl_checkSocket" = 1; then 4377 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 4378if test "x$ac_cv_func_setsockopt" = xyes; then : 4379 4380else 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 4382$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 4383if ${ac_cv_lib_socket_setsockopt+:} false; then : 4384 $as_echo_n "(cached) " >&6 4385else 4386 ac_check_lib_save_LIBS=$LIBS 4387LIBS="-lsocket $LIBS" 4388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4389/* end confdefs.h. */ 4390 4391/* Override any GCC internal prototype to avoid an error. 4392 Use char because int might match the return type of a GCC 4393 builtin and then its argument prototype would still apply. */ 4394#ifdef __cplusplus 4395extern "C" 4396#endif 4397char setsockopt (); 4398int 4399main () 4400{ 4401return setsockopt (); 4402 ; 4403 return 0; 4404} 4405_ACEOF 4406if ac_fn_c_try_link "$LINENO"; then : 4407 ac_cv_lib_socket_setsockopt=yes 4408else 4409 ac_cv_lib_socket_setsockopt=no 4410fi 4411rm -f core conftest.err conftest.$ac_objext \ 4412 conftest$ac_exeext conftest.$ac_ext 4413LIBS=$ac_check_lib_save_LIBS 4414fi 4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 4416$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 4417if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 4418 LIBS="$LIBS -lsocket" 4419else 4420 tcl_checkBoth=1 4421fi 4422 4423fi 4424 4425 fi 4426 if test "$tcl_checkBoth" = 1; then 4427 tk_oldLibs=$LIBS 4428 LIBS="$LIBS -lsocket -lnsl" 4429 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" 4430if test "x$ac_cv_func_accept" = xyes; then : 4431 tcl_checkNsl=0 4432else 4433 LIBS=$tk_oldLibs 4434fi 4435 4436 fi 4437 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 4438if test "x$ac_cv_func_gethostbyname" = xyes; then : 4439 4440else 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 4442$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 4443if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 4444 $as_echo_n "(cached) " >&6 4445else 4446 ac_check_lib_save_LIBS=$LIBS 4447LIBS="-lnsl $LIBS" 4448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4449/* end confdefs.h. */ 4450 4451/* Override any GCC internal prototype to avoid an error. 4452 Use char because int might match the return type of a GCC 4453 builtin and then its argument prototype would still apply. */ 4454#ifdef __cplusplus 4455extern "C" 4456#endif 4457char gethostbyname (); 4458int 4459main () 4460{ 4461return gethostbyname (); 4462 ; 4463 return 0; 4464} 4465_ACEOF 4466if ac_fn_c_try_link "$LINENO"; then : 4467 ac_cv_lib_nsl_gethostbyname=yes 4468else 4469 ac_cv_lib_nsl_gethostbyname=no 4470fi 4471rm -f core conftest.err conftest.$ac_objext \ 4472 conftest$ac_exeext conftest.$ac_ext 4473LIBS=$ac_check_lib_save_LIBS 4474fi 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 4476$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 4477if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 4478 LIBS="$LIBS -lnsl" 4479fi 4480 4481fi 4482 4483 4484 # Don't perform the eval of the libraries here because DL_LIBS 4485 # won't be set until we call TEA_CONFIG_CFLAGS 4486 4487 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 4488 4489 4490 4491 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5 4493$as_echo_n "checking dirent.h... " >&6; } 4494if ${tcl_cv_dirent_h+:} false; then : 4495 $as_echo_n "(cached) " >&6 4496else 4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4498/* end confdefs.h. */ 4499#include <sys/types.h> 4500#include <dirent.h> 4501int 4502main () 4503{ 4504 4505#ifndef _POSIX_SOURCE 4506# ifdef __Lynx__ 4507 /* 4508 * Generate compilation error to make the test fail: Lynx headers 4509 * are only valid if really in the POSIX environment. 4510 */ 4511 4512 missing_procedure(); 4513# endif 4514#endif 4515DIR *d; 4516struct dirent *entryPtr; 4517char *p; 4518d = opendir("foobar"); 4519entryPtr = readdir(d); 4520p = entryPtr->d_name; 4521closedir(d); 4522 4523 ; 4524 return 0; 4525} 4526_ACEOF 4527if ac_fn_c_try_link "$LINENO"; then : 4528 tcl_cv_dirent_h=yes 4529else 4530 tcl_cv_dirent_h=no 4531fi 4532rm -f core conftest.err conftest.$ac_objext \ 4533 conftest$ac_exeext conftest.$ac_ext 4534fi 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5 4536$as_echo "$tcl_cv_dirent_h" >&6; } 4537 4538 if test $tcl_cv_dirent_h = no; then 4539 4540$as_echo "#define NO_DIRENT_H 1" >>confdefs.h 4541 4542 fi 4543 4544 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 4545if test "x$ac_cv_header_errno_h" = xyes; then : 4546 4547else 4548 4549$as_echo "#define NO_ERRNO_H 1" >>confdefs.h 4550 4551fi 4552 4553 4554 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 4555if test "x$ac_cv_header_float_h" = xyes; then : 4556 4557else 4558 4559$as_echo "#define NO_FLOAT_H 1" >>confdefs.h 4560 4561fi 4562 4563 4564 ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default" 4565if test "x$ac_cv_header_values_h" = xyes; then : 4566 4567else 4568 4569$as_echo "#define NO_VALUES_H 1" >>confdefs.h 4570 4571fi 4572 4573 4574 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 4575if test "x$ac_cv_header_limits_h" = xyes; then : 4576 4577$as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h 4578 4579else 4580 4581$as_echo "#define NO_LIMITS_H 1" >>confdefs.h 4582 4583fi 4584 4585 4586 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4587if test "x$ac_cv_header_stdlib_h" = xyes; then : 4588 tcl_ok=1 4589else 4590 tcl_ok=0 4591fi 4592 4593 4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4595/* end confdefs.h. */ 4596#include <stdlib.h> 4597 4598_ACEOF 4599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4600 $EGREP "strtol" >/dev/null 2>&1; then : 4601 4602else 4603 tcl_ok=0 4604fi 4605rm -f conftest* 4606 4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4608/* end confdefs.h. */ 4609#include <stdlib.h> 4610 4611_ACEOF 4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4613 $EGREP "strtoul" >/dev/null 2>&1; then : 4614 4615else 4616 tcl_ok=0 4617fi 4618rm -f conftest* 4619 4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4621/* end confdefs.h. */ 4622#include <stdlib.h> 4623 4624_ACEOF 4625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4626 $EGREP "strtod" >/dev/null 2>&1; then : 4627 4628else 4629 tcl_ok=0 4630fi 4631rm -f conftest* 4632 4633 if test $tcl_ok = 0; then 4634 4635$as_echo "#define NO_STDLIB_H 1" >>confdefs.h 4636 4637 fi 4638 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 4639if test "x$ac_cv_header_string_h" = xyes; then : 4640 tcl_ok=1 4641else 4642 tcl_ok=0 4643fi 4644 4645 4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4647/* end confdefs.h. */ 4648#include <string.h> 4649 4650_ACEOF 4651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4652 $EGREP "strstr" >/dev/null 2>&1; then : 4653 4654else 4655 tcl_ok=0 4656fi 4657rm -f conftest* 4658 4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4660/* end confdefs.h. */ 4661#include <string.h> 4662 4663_ACEOF 4664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4665 $EGREP "strerror" >/dev/null 2>&1; then : 4666 4667else 4668 tcl_ok=0 4669fi 4670rm -f conftest* 4671 4672 4673 # See also memmove check below for a place where NO_STRING_H can be 4674 # set and why. 4675 4676 if test $tcl_ok = 0; then 4677 4678$as_echo "#define NO_STRING_H 1" >>confdefs.h 4679 4680 fi 4681 4682 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 4683if test "x$ac_cv_header_sys_wait_h" = xyes; then : 4684 4685else 4686 4687$as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h 4688 4689fi 4690 4691 4692 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 4693if test "x$ac_cv_header_dlfcn_h" = xyes; then : 4694 4695else 4696 4697$as_echo "#define NO_DLFCN_H 1" >>confdefs.h 4698 4699fi 4700 4701 4702 4703 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 4704 for ac_header in sys/param.h 4705do : 4706 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 4707if test "x$ac_cv_header_sys_param_h" = xyes; then : 4708 cat >>confdefs.h <<_ACEOF 4709#define HAVE_SYS_PARAM_H 1 4710_ACEOF 4711 4712fi 4713 4714done 4715 4716 4717 # Let the user call this, because if it triggers, they will 4718 # need a compat/strtod.c that is correct. Users can also 4719 # use Tcl_GetDouble(FromObj) instead. 4720 #TEA_BUGGY_STRTOD 4721 fi 4722 4723 4724#-------------------------------------------------------------------- 4725# __CHANGE__ 4726# Specify the C source files to compile in TEA_ADD_SOURCES, 4727# public headers that need to be installed in TEA_ADD_HEADERS, 4728# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 4729# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 4730# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 4731# and PKG_TCL_SOURCES. 4732#----------------------------------------------------------------------- 4733 4734 4735 vars="pgtcl.c pgtclCmds.c pgtclId.c" 4736 for i in $vars; do 4737 case $i in 4738 \$*) 4739 # allow $-var names 4740 PKG_SOURCES="$PKG_SOURCES $i" 4741 PKG_OBJECTS="$PKG_OBJECTS $i" 4742 ;; 4743 *) 4744 # check for existence - allows for generic/win/unix VPATH 4745 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 4746 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 4747 ; then 4748 as_fn_error $? "could not find source file '$i'" "$LINENO" 5 4749 fi 4750 PKG_SOURCES="$PKG_SOURCES $i" 4751 # this assumes it is in a VPATH dir 4752 i=`basename $i` 4753 # handle user calling this before or after TEA_SETUP_COMPILER 4754 if test x"${OBJEXT}" != x ; then 4755 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 4756 else 4757 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 4758 fi 4759 PKG_OBJECTS="$PKG_OBJECTS $j" 4760 ;; 4761 esac 4762 done 4763 4764 4765 4766 4767 vars="libpgtcl.h" 4768 for i in $vars; do 4769 # check for existence, be strict because it is installed 4770 if test ! -f "${srcdir}/$i" ; then 4771 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5 4772 fi 4773 PKG_HEADERS="$PKG_HEADERS $i" 4774 done 4775 4776 4777 4778 vars="" 4779 for i in $vars; do 4780 PKG_INCLUDES="$PKG_INCLUDES $i" 4781 done 4782 4783 4784 4785 vars="" 4786 for i in $vars; do 4787 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 4788 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 4789 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 4790 fi 4791 PKG_LIBS="$PKG_LIBS $i" 4792 done 4793 4794 4795 4796 PKG_CFLAGS="$PKG_CFLAGS " 4797 4798 4799 4800 vars="" 4801 for i in $vars; do 4802 # check for existence - allows for generic/win/unix VPATH 4803 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 4804 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 4805 ; then 4806 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5 4807 fi 4808 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 4809 # this assumes it is in a VPATH dir 4810 i=`basename $i` 4811 # handle user calling this before or after TEA_SETUP_COMPILER 4812 if test x"${OBJEXT}" != x ; then 4813 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 4814 else 4815 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 4816 fi 4817 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 4818 done 4819 4820 4821 4822 4823 vars="" 4824 for i in $vars; do 4825 # check for existence, be strict because it is installed 4826 if test ! -f "${srcdir}/$i" ; then 4827 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5 4828 fi 4829 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 4830 done 4831 4832 4833 4834#-------------------------------------------------------------------- 4835# __CHANGE__ 4836# A few miscellaneous platform-specific items: 4837# 4838# Define a special symbol for Windows (BUILD_sample in this case) so 4839# that we create the export library with the dll. 4840# 4841# Windows creates a few extra files that need to be cleaned up. 4842# You can add more files to clean if your extension creates any extra 4843# files. 4844# 4845# TEA_ADD_* any platform specific compiler/build info here. 4846#-------------------------------------------------------------------- 4847 4848if test "${TEA_PLATFORM}" = "windows" ; then 4849 4850$as_echo "#define BUILD_sample 1" >>confdefs.h 4851 4852 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 4853 #TEA_ADD_SOURCES([win/winFile.c]) 4854 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"]) 4855else 4856 CLEANFILES="pkgIndex.tcl" 4857 #TEA_ADD_SOURCES([unix/unixFile.c]) 4858 #TEA_ADD_LIBS([-lsuperfly]) 4859fi 4860 4861 4862#-------------------------------------------------------------------- 4863# __CHANGE__ 4864# Choose which headers you need. Extension authors should try very 4865# hard to only rely on the Tcl public header files. Internal headers 4866# contain private data structures and are subject to change without 4867# notice. 4868# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 4869#-------------------------------------------------------------------- 4870 4871 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5 4873$as_echo_n "checking for Tcl public headers... " >&6; } 4874 4875 4876# Check whether --with-tclinclude was given. 4877if test "${with_tclinclude+set}" = set; then : 4878 withval=$with_tclinclude; with_tclinclude=${withval} 4879fi 4880 4881 4882 if ${ac_cv_c_tclh+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 4886 # Use the value from --with-tclinclude, if it was given 4887 4888 if test x"${with_tclinclude}" != x ; then 4889 if test -f "${with_tclinclude}/tcl.h" ; then 4890 ac_cv_c_tclh=${with_tclinclude} 4891 else 4892 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5 4893 fi 4894 else 4895 if test "`uname -s`" = "Darwin"; then 4896 # If Tcl was built as a framework, attempt to use 4897 # the framework's Headers directory 4898 case ${TCL_DEFS} in 4899 *TCL_FRAMEWORK*) 4900 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 4901 ;; 4902 esac 4903 fi 4904 4905 # Look in the source dir only if Tcl is not installed, 4906 # and in that situation, look there before installed locations. 4907 if test -f "${TCL_BIN_DIR}/Makefile" ; then 4908 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 4909 fi 4910 4911 # Check order: pkg --prefix location, Tcl's --prefix location, 4912 # relative to directory of tclConfig.sh. 4913 4914 eval "temp_includedir=${includedir}" 4915 list="$list \ 4916 `ls -d ${temp_includedir} 2>/dev/null` \ 4917 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 4918 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 4919 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 4920 list="$list /usr/local/include /usr/include" 4921 if test x"${TCL_INCLUDE_SPEC}" != x ; then 4922 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 4923 list="$list `ls -d ${d} 2>/dev/null`" 4924 fi 4925 fi 4926 for i in $list ; do 4927 if test -f "$i/tcl.h" ; then 4928 ac_cv_c_tclh=$i 4929 break 4930 fi 4931 done 4932 fi 4933 4934fi 4935 4936 4937 # Print a message based on how we determined the include path 4938 4939 if test x"${ac_cv_c_tclh}" = x ; then 4940 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5 4941 else 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5 4943$as_echo "${ac_cv_c_tclh}" >&6; } 4944 fi 4945 4946 # Convert to a native path and substitute into the output files. 4947 4948 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 4949 4950 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 4951 4952 4953 4954#TEA_PRIVATE_TCL_HEADERS 4955 4956#TEA_PUBLIC_TK_HEADERS 4957#TEA_PRIVATE_TK_HEADERS 4958#TEA_PATH_X 4959 4960#-------------------------------------------------------------------- 4961# Check whether --enable-threads or --disable-threads was given. 4962# This auto-enables if Tcl was compiled threaded. 4963#-------------------------------------------------------------------- 4964 4965#TEA_ENABLE_THREADS 4966 4967#-------------------------------------------------------------------- 4968# The statement below defines a collection of symbols related to 4969# building as a shared library instead of a static library. 4970#-------------------------------------------------------------------- 4971 4972 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 4974$as_echo_n "checking how to build libraries... " >&6; } 4975 # Check whether --enable-shared was given. 4976if test "${enable_shared+set}" = set; then : 4977 enableval=$enable_shared; tcl_ok=$enableval 4978else 4979 tcl_ok=yes 4980fi 4981 4982 4983 if test "${enable_shared+set}" = set; then 4984 enableval="$enable_shared" 4985 tcl_ok=$enableval 4986 else 4987 tcl_ok=yes 4988 fi 4989 4990 if test "$tcl_ok" = "yes" ; then 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 4992$as_echo "shared" >&6; } 4993 SHARED_BUILD=1 4994 else 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 4996$as_echo "static" >&6; } 4997 SHARED_BUILD=0 4998 4999$as_echo "#define STATIC_BUILD 1" >>confdefs.h 5000 5001 fi 5002 5003 5004 5005#-------------------------------------------------------------------- 5006# This macro figures out what flags to use with the compiler/linker 5007# when building shared/static debug/optimized objects. This information 5008# can be taken from the tclConfig.sh file, but this figures it all out. 5009#-------------------------------------------------------------------- 5010 5011 5012 5013 5014 # Step 0.a: Enable 64 bit support? 5015 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 5017$as_echo_n "checking if 64bit support is requested... " >&6; } 5018 # Check whether --enable-64bit was given. 5019if test "${enable_64bit+set}" = set; then : 5020 enableval=$enable_64bit; do64bit=$enableval 5021else 5022 do64bit=no 5023fi 5024 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 5026$as_echo "$do64bit" >&6; } 5027 5028 # Step 0.b: Enable Solaris 64 bit VIS support? 5029 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 5031$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } 5032 # Check whether --enable-64bit-vis was given. 5033if test "${enable_64bit_vis+set}" = set; then : 5034 enableval=$enable_64bit_vis; do64bitVIS=$enableval 5035else 5036 do64bitVIS=no 5037fi 5038 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 5040$as_echo "$do64bitVIS" >&6; } 5041 5042 if test "$do64bitVIS" = "yes"; then 5043 # Force 64bit on with VIS 5044 do64bit=yes 5045 fi 5046 5047 # Step 0.c: Cross-compiling options for Windows/CE builds? 5048 5049 if test "${TEA_PLATFORM}" = "windows" ; then 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows/CE build is requested" >&5 5051$as_echo_n "checking if Windows/CE build is requested... " >&6; } 5052 # Check whether --enable-wince was given. 5053if test "${enable_wince+set}" = set; then : 5054 enableval=$enable_wince; doWince=$enableval 5055else 5056 doWince=no 5057fi 5058 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5 5060$as_echo "$doWince" >&6; } 5061 fi 5062 5063 # Step 1: set the variable "system" to hold the name and version number 5064 # for the system. 5065 5066 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 5068$as_echo_n "checking system version... " >&6; } 5069if ${tcl_cv_sys_version+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071else 5072 5073 if test "${TEA_PLATFORM}" = "windows" ; then 5074 tcl_cv_sys_version=windows 5075 elif test -f /usr/lib/NextStep/software_version; then 5076 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 5077 else 5078 tcl_cv_sys_version=`uname -s`-`uname -r` 5079 if test "$?" -ne 0 ; then 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 5081$as_echo "$as_me: WARNING: can't find uname command" >&2;} 5082 tcl_cv_sys_version=unknown 5083 else 5084 # Special check for weird MP-RAS system (uname returns weird 5085 # results, and the version is kept in special file). 5086 5087 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 5088 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 5089 fi 5090 if test "`uname -s`" = "AIX" ; then 5091 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 5092 fi 5093 fi 5094 fi 5095 5096fi 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 5098$as_echo "$tcl_cv_sys_version" >&6; } 5099 system=$tcl_cv_sys_version 5100 5101 5102 # Step 2: check for existence of -ldl library. This is needed because 5103 # Linux can use either -ldl or -ldld for dynamic loading. 5104 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 5106$as_echo_n "checking for dlopen in -ldl... " >&6; } 5107if ${ac_cv_lib_dl_dlopen+:} false; then : 5108 $as_echo_n "(cached) " >&6 5109else 5110 ac_check_lib_save_LIBS=$LIBS 5111LIBS="-ldl $LIBS" 5112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113/* end confdefs.h. */ 5114 5115/* Override any GCC internal prototype to avoid an error. 5116 Use char because int might match the return type of a GCC 5117 builtin and then its argument prototype would still apply. */ 5118#ifdef __cplusplus 5119extern "C" 5120#endif 5121char dlopen (); 5122int 5123main () 5124{ 5125return dlopen (); 5126 ; 5127 return 0; 5128} 5129_ACEOF 5130if ac_fn_c_try_link "$LINENO"; then : 5131 ac_cv_lib_dl_dlopen=yes 5132else 5133 ac_cv_lib_dl_dlopen=no 5134fi 5135rm -f core conftest.err conftest.$ac_objext \ 5136 conftest$ac_exeext conftest.$ac_ext 5137LIBS=$ac_check_lib_save_LIBS 5138fi 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 5140$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 5141if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 5142 have_dl=yes 5143else 5144 have_dl=no 5145fi 5146 5147 5148 # Require ranlib early so we can override it in special cases below. 5149 5150 5151 5152 # Step 3: set configuration options based on system name and version. 5153 5154 do64bit_ok=no 5155 LDFLAGS_ORIG="$LDFLAGS" 5156 # When ld needs options to work in 64-bit mode, put them in 5157 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 5158 # is disabled by the user. [Bug 1016796] 5159 LDFLAGS_ARCH="" 5160 TCL_EXPORT_FILE_SUFFIX="" 5161 UNSHARED_LIB_SUFFIX="" 5162 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 5163 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 5164 TCL_LIB_VERSIONS_OK=ok 5165 CFLAGS_DEBUG=-g 5166 CFLAGS_OPTIMIZE=-O 5167 if test "$GCC" = "yes" ; then 5168 CFLAGS_OPTIMIZE=-O2 5169 CFLAGS_WARNING="-Wall -Wno-implicit-int" 5170 else 5171 CFLAGS_WARNING="" 5172 fi 5173 TCL_NEEDS_EXP_FILE=0 5174 TCL_BUILD_EXP_FILE="" 5175 TCL_EXP_FILE="" 5176 # Extract the first word of "ar", so it can be a program name with args. 5177set dummy ar; ac_word=$2 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5179$as_echo_n "checking for $ac_word... " >&6; } 5180if ${ac_cv_prog_AR+:} false; then : 5181 $as_echo_n "(cached) " >&6 5182else 5183 if test -n "$AR"; then 5184 ac_cv_prog_AR="$AR" # Let the user override the test. 5185else 5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5187for as_dir in $PATH 5188do 5189 IFS=$as_save_IFS 5190 test -z "$as_dir" && as_dir=. 5191 for ac_exec_ext in '' $ac_executable_extensions; do 5192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5193 ac_cv_prog_AR="ar" 5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5195 break 2 5196 fi 5197done 5198 done 5199IFS=$as_save_IFS 5200 5201fi 5202fi 5203AR=$ac_cv_prog_AR 5204if test -n "$AR"; then 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5206$as_echo "$AR" >&6; } 5207else 5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5209$as_echo "no" >&6; } 5210fi 5211 5212 5213 STLIB_LD='${AR} cr' 5214 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 5215 case $system in 5216 5217 AIX-*) 5218 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then 5219 # AIX requires the _r compiler when gcc isn't being used 5220 case "${CC}" in 5221 *_r) 5222 # ok ... 5223 ;; 5224 *) 5225 CC=${CC}_r 5226 ;; 5227 esac 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 5229$as_echo "Using $CC for compiling with threads" >&6; } 5230 fi 5231 LIBS="$LIBS -lc" 5232 SHLIB_CFLAGS="" 5233 SHLIB_LD_LIBS='${LIBS}' 5234 SHLIB_SUFFIX=".so" 5235 5236 DL_OBJS="tclLoadDl.o" 5237 LD_LIBRARY_PATH_VAR="LIBPATH" 5238 5239 # Check to enable 64-bit flags for compiler/linker on AIX 4+ 5240 if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then 5241 if test "$GCC" = "yes" ; then 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 5243$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 5244 else 5245 do64bit_ok=yes 5246 CFLAGS="$CFLAGS -q64" 5247 LDFLAGS_ARCH="-q64" 5248 RANLIB="${RANLIB} -X64" 5249 AR="${AR} -X64" 5250 SHLIB_LD_FLAGS="-b64" 5251 fi 5252 fi 5253 5254 if test "`uname -m`" = "ia64" ; then 5255 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 5256 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 5257 # AIX-5 has dl* in libc.so 5258 DL_LIBS="" 5259 if test "$GCC" = "yes" ; then 5260 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR},-R,${LIB_PGTCL_RUNTIME_DIR}' 5261 else 5262 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR} -R${LIB_PGTCL_RUNTIME_DIR}' 5263 fi 5264 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR} -R ${LIB_PGTCL_RUNTIME_DIR}' 5265 else 5266 if test "$GCC" = "yes" ; then 5267 SHLIB_LD="gcc -shared" 5268 else 5269 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 5270 fi 5271 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" 5272 DL_LIBS="-ldl" 5273 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 5274 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5275 TCL_NEEDS_EXP_FILE=1 5276 TCL_EXPORT_FILE_SUFFIX='${PACKAGE_VERSION}.exp' 5277 fi 5278 5279 # AIX v<=4.1 has some different flags than 4.2+ 5280 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then 5281 case " $LIBOBJS " in 5282 *" tclLoadAix.$ac_objext "* ) ;; 5283 *) LIBOBJS="$LIBOBJS tclLoadAix.$ac_objext" 5284 ;; 5285esac 5286 5287 DL_LIBS="-lld" 5288 fi 5289 5290 # On AIX <=v4 systems, libbsd.a has to be linked in to support 5291 # non-blocking file IO. This library has to be linked in after 5292 # the MATH_LIBS or it breaks the pow() function. The way to 5293 # insure proper sequencing, is to add it to the tail of MATH_LIBS. 5294 # This library also supplies gettimeofday. 5295 # 5296 # AIX does not have a timezone field in struct tm. When the AIX 5297 # bsd library is used, the timezone global and the gettimeofday 5298 # methods are to be avoided for timezone deduction instead, we 5299 # deduce the timezone by comparing the localtime result on a 5300 # known GMT value. 5301 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 5303$as_echo_n "checking for gettimeofday in -lbsd... " >&6; } 5304if ${ac_cv_lib_bsd_gettimeofday+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 ac_check_lib_save_LIBS=$LIBS 5308LIBS="-lbsd $LIBS" 5309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5310/* end confdefs.h. */ 5311 5312/* Override any GCC internal prototype to avoid an error. 5313 Use char because int might match the return type of a GCC 5314 builtin and then its argument prototype would still apply. */ 5315#ifdef __cplusplus 5316extern "C" 5317#endif 5318char gettimeofday (); 5319int 5320main () 5321{ 5322return gettimeofday (); 5323 ; 5324 return 0; 5325} 5326_ACEOF 5327if ac_fn_c_try_link "$LINENO"; then : 5328 ac_cv_lib_bsd_gettimeofday=yes 5329else 5330 ac_cv_lib_bsd_gettimeofday=no 5331fi 5332rm -f core conftest.err conftest.$ac_objext \ 5333 conftest$ac_exeext conftest.$ac_ext 5334LIBS=$ac_check_lib_save_LIBS 5335fi 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 5337$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } 5338if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then : 5339 libbsd=yes 5340else 5341 libbsd=no 5342fi 5343 5344 if test $libbsd = yes; then 5345 MATH_LIBS="$MATH_LIBS -lbsd" 5346 5347$as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h 5348 5349 fi 5350 ;; 5351 BeOS*) 5352 SHLIB_CFLAGS="-fPIC" 5353 SHLIB_LD="${CC} -nostart" 5354 SHLIB_LD_LIBS='${LIBS}' 5355 SHLIB_SUFFIX=".so" 5356 DL_OBJS="tclLoadDl.o" 5357 DL_LIBS="-ldl" 5358 5359 #----------------------------------------------------------- 5360 # Check for inet_ntoa in -lbind, for BeOS (which also needs 5361 # -lsocket, even if the network functions are in -lnet which 5362 # is always linked to, for compatibility. 5363 #----------------------------------------------------------- 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 5365$as_echo_n "checking for inet_ntoa in -lbind... " >&6; } 5366if ${ac_cv_lib_bind_inet_ntoa+:} false; then : 5367 $as_echo_n "(cached) " >&6 5368else 5369 ac_check_lib_save_LIBS=$LIBS 5370LIBS="-lbind $LIBS" 5371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372/* end confdefs.h. */ 5373 5374/* Override any GCC internal prototype to avoid an error. 5375 Use char because int might match the return type of a GCC 5376 builtin and then its argument prototype would still apply. */ 5377#ifdef __cplusplus 5378extern "C" 5379#endif 5380char inet_ntoa (); 5381int 5382main () 5383{ 5384return inet_ntoa (); 5385 ; 5386 return 0; 5387} 5388_ACEOF 5389if ac_fn_c_try_link "$LINENO"; then : 5390 ac_cv_lib_bind_inet_ntoa=yes 5391else 5392 ac_cv_lib_bind_inet_ntoa=no 5393fi 5394rm -f core conftest.err conftest.$ac_objext \ 5395 conftest$ac_exeext conftest.$ac_ext 5396LIBS=$ac_check_lib_save_LIBS 5397fi 5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 5399$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } 5400if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : 5401 LIBS="$LIBS -lbind -lsocket" 5402fi 5403 5404 ;; 5405 BSD/OS-2.1*|BSD/OS-3*) 5406 SHLIB_CFLAGS="" 5407 SHLIB_LD="shlicc -r" 5408 SHLIB_LD_LIBS='${LIBS}' 5409 SHLIB_SUFFIX=".so" 5410 DL_OBJS="tclLoadDl.o" 5411 DL_LIBS="-ldl" 5412 CC_SEARCH_FLAGS="" 5413 LD_SEARCH_FLAGS="" 5414 ;; 5415 BSD/OS-4.*) 5416 SHLIB_CFLAGS="-export-dynamic -fPIC" 5417 SHLIB_LD="cc -shared" 5418 SHLIB_LD_LIBS='${LIBS}' 5419 SHLIB_SUFFIX=".so" 5420 DL_OBJS="tclLoadDl.o" 5421 DL_LIBS="-ldl" 5422 LDFLAGS="$LDFLAGS -export-dynamic" 5423 CC_SEARCH_FLAGS="" 5424 LD_SEARCH_FLAGS="" 5425 ;; 5426 dgux*) 5427 SHLIB_CFLAGS="-K PIC" 5428 SHLIB_LD="cc -G" 5429 SHLIB_LD_LIBS="" 5430 SHLIB_SUFFIX=".so" 5431 DL_OBJS="tclLoadDl.o" 5432 DL_LIBS="-ldl" 5433 CC_SEARCH_FLAGS="" 5434 LD_SEARCH_FLAGS="" 5435 ;; 5436 HP-UX-*.11.*) 5437 # Use updated header definitions where possible 5438 5439$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 5440 5441 # Needed by Tcl, but not most extensions 5442 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 5443 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 5444 5445 SHLIB_SUFFIX=".sl" 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 5447$as_echo_n "checking for shl_load in -ldld... " >&6; } 5448if ${ac_cv_lib_dld_shl_load+:} false; then : 5449 $as_echo_n "(cached) " >&6 5450else 5451 ac_check_lib_save_LIBS=$LIBS 5452LIBS="-ldld $LIBS" 5453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454/* end confdefs.h. */ 5455 5456/* Override any GCC internal prototype to avoid an error. 5457 Use char because int might match the return type of a GCC 5458 builtin and then its argument prototype would still apply. */ 5459#ifdef __cplusplus 5460extern "C" 5461#endif 5462char shl_load (); 5463int 5464main () 5465{ 5466return shl_load (); 5467 ; 5468 return 0; 5469} 5470_ACEOF 5471if ac_fn_c_try_link "$LINENO"; then : 5472 ac_cv_lib_dld_shl_load=yes 5473else 5474 ac_cv_lib_dld_shl_load=no 5475fi 5476rm -f core conftest.err conftest.$ac_objext \ 5477 conftest$ac_exeext conftest.$ac_ext 5478LIBS=$ac_check_lib_save_LIBS 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 5481$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 5482if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 5483 tcl_ok=yes 5484else 5485 tcl_ok=no 5486fi 5487 5488 if test "$tcl_ok" = yes; then 5489 SHLIB_CFLAGS="+z" 5490 SHLIB_LD="ld -b" 5491 SHLIB_LD_LIBS='${LIBS}' 5492 DL_OBJS="tclLoadShl.o" 5493 DL_LIBS="-ldld" 5494 LDFLAGS="$LDFLAGS -Wl,-E" 5495 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:${LIB_PGTCL_RUNTIME_DIR}:.' 5496 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:${LIB_PGTCL_RUNTIME_DIR}:.' 5497 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 5498 fi 5499 if test "$GCC" = "yes" ; then 5500 SHLIB_LD="gcc -shared" 5501 SHLIB_LD_LIBS='${LIBS}' 5502 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5503 fi 5504 5505 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 5506 #CFLAGS="$CFLAGS +DAportable" 5507 5508 # Check to enable 64-bit flags for compiler/linker 5509 if test "$do64bit" = "yes" ; then 5510 if test "$GCC" = "yes" ; then 5511 hpux_arch=`${CC} -dumpmachine` 5512 case $hpux_arch in 5513 hppa64*) 5514 # 64-bit gcc in use. Fix flags for GNU ld. 5515 do64bit_ok=yes 5516 SHLIB_LD="${CC} -shared" 5517 SHLIB_LD_LIBS='${LIBS}' 5518 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5519 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5520 ;; 5521 *) 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 5523$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 5524 ;; 5525 esac 5526 else 5527 do64bit_ok=yes 5528 CFLAGS="$CFLAGS +DD64" 5529 LDFLAGS_ARCH="+DD64" 5530 fi 5531 fi 5532 ;; 5533 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 5534 SHLIB_SUFFIX=".sl" 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 5536$as_echo_n "checking for shl_load in -ldld... " >&6; } 5537if ${ac_cv_lib_dld_shl_load+:} false; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 ac_check_lib_save_LIBS=$LIBS 5541LIBS="-ldld $LIBS" 5542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5543/* end confdefs.h. */ 5544 5545/* Override any GCC internal prototype to avoid an error. 5546 Use char because int might match the return type of a GCC 5547 builtin and then its argument prototype would still apply. */ 5548#ifdef __cplusplus 5549extern "C" 5550#endif 5551char shl_load (); 5552int 5553main () 5554{ 5555return shl_load (); 5556 ; 5557 return 0; 5558} 5559_ACEOF 5560if ac_fn_c_try_link "$LINENO"; then : 5561 ac_cv_lib_dld_shl_load=yes 5562else 5563 ac_cv_lib_dld_shl_load=no 5564fi 5565rm -f core conftest.err conftest.$ac_objext \ 5566 conftest$ac_exeext conftest.$ac_ext 5567LIBS=$ac_check_lib_save_LIBS 5568fi 5569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 5570$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 5571if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 5572 tcl_ok=yes 5573else 5574 tcl_ok=no 5575fi 5576 5577 if test "$tcl_ok" = yes; then 5578 SHLIB_CFLAGS="+z" 5579 SHLIB_LD="ld -b" 5580 SHLIB_LD_LIBS="" 5581 DL_OBJS="tclLoadShl.o" 5582 DL_LIBS="-ldld" 5583 LDFLAGS="$LDFLAGS -Wl,-E" 5584 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:${LIB_PGTCL_RUNTIME_DIR}:.' 5585 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:${LIB_PGTCL_RUNTIME_DIR}:.' 5586 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 5587 fi 5588 ;; 5589 IRIX-5.*) 5590 SHLIB_CFLAGS="" 5591 SHLIB_LD="ld -shared -rdata_shared" 5592 SHLIB_LD_LIBS='${LIBS}' 5593 SHLIB_SUFFIX=".so" 5594 DL_OBJS="tclLoadDl.o" 5595 DL_LIBS="" 5596 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR},-rpath,${LIB_PGTCL_RUNTIME_DIR}' 5597 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR} -rpath ${LIB_PGTCL_RUNTIME_DIR}' 5598 ;; 5599 IRIX-6.*) 5600 SHLIB_CFLAGS="" 5601 SHLIB_LD="ld -n32 -shared -rdata_shared" 5602 SHLIB_LD_LIBS='${LIBS}' 5603 SHLIB_SUFFIX=".so" 5604 DL_OBJS="tclLoadDl.o" 5605 DL_LIBS="" 5606 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR},-rpath,${LIB_PGTCL_RUNTIME_DIR}' 5607 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR} -rpath ${LIB_PGTCL_RUNTIME_DIR}' 5608 if test "$GCC" = "yes" ; then 5609 CFLAGS="$CFLAGS -mabi=n32" 5610 LDFLAGS="$LDFLAGS -mabi=n32" 5611 else 5612 case $system in 5613 IRIX-6.3) 5614 # Use to build 6.2 compatible binaries on 6.3. 5615 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 5616 ;; 5617 *) 5618 CFLAGS="$CFLAGS -n32" 5619 ;; 5620 esac 5621 LDFLAGS="$LDFLAGS -n32" 5622 fi 5623 ;; 5624 IRIX64-6.*) 5625 SHLIB_CFLAGS="" 5626 SHLIB_LD="ld -n32 -shared -rdata_shared" 5627 SHLIB_LD_LIBS='${LIBS}' 5628 SHLIB_SUFFIX=".so" 5629 DL_OBJS="tclLoadDl.o" 5630 DL_LIBS="" 5631 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR},-rpath,${LIB_PGTCL_RUNTIME_DIR}' 5632 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR} -rpath ${LIB_PGTCL_RUNTIME_DIR}' 5633 5634 # Check to enable 64-bit flags for compiler/linker 5635 5636 if test "$do64bit" = "yes" ; then 5637 if test "$GCC" = "yes" ; then 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 5639$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 5640 else 5641 do64bit_ok=yes 5642 SHLIB_LD="ld -64 -shared -rdata_shared" 5643 CFLAGS="$CFLAGS -64" 5644 LDFLAGS_ARCH="-64" 5645 fi 5646 fi 5647 ;; 5648 Linux*) 5649 SHLIB_CFLAGS="-fPIC" 5650 SHLIB_LD_LIBS='${LIBS}' 5651 SHLIB_SUFFIX=".so" 5652 5653 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 5654 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 5655 # when you inline the string and math operations. Turn this off to 5656 # get rid of the warnings. 5657 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 5658 5659 SHLIB_LD="${CC} -shared" 5660 DL_OBJS="tclLoadDl.o" 5661 DL_LIBS="-ldl" 5662 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5663 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR},-rpath,${LIB_PGTCL_RUNTIME_DIR}' 5664 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5665 if test "`uname -m`" = "alpha" ; then 5666 CFLAGS="$CFLAGS -mieee" 5667 fi 5668 5669 # The combo of gcc + glibc has a bug related 5670 # to inlining of functions like strtod(). The 5671 # -fno-builtin flag should address this problem 5672 # but it does not work. The -fno-inline flag 5673 # is kind of overkill but it works. 5674 # Disable inlining only when one of the 5675 # files in compat/*.c is being linked in. 5676 if test x"${USE_COMPAT}" != x ; then 5677 CFLAGS="$CFLAGS -fno-inline" 5678 fi 5679 5680 ;; 5681 GNU*) 5682 SHLIB_CFLAGS="-fPIC" 5683 SHLIB_LD_LIBS='${LIBS}' 5684 SHLIB_SUFFIX=".so" 5685 5686 SHLIB_LD="${CC} -shared" 5687 DL_OBJS="" 5688 DL_LIBS="-ldl" 5689 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5690 CC_SEARCH_FLAGS="" 5691 LD_SEARCH_FLAGS="" 5692 if test "`uname -m`" = "alpha" ; then 5693 CFLAGS="$CFLAGS -mieee" 5694 fi 5695 ;; 5696 Lynx*) 5697 SHLIB_CFLAGS="-fPIC" 5698 SHLIB_LD_LIBS='${LIBS}' 5699 SHLIB_SUFFIX=".so" 5700 CFLAGS_OPTIMIZE=-02 5701 SHLIB_LD="${CC} -shared " 5702 DL_OBJS="tclLoadDl.o" 5703 DL_LIBS="-mshared -ldl" 5704 LD_FLAGS="-Wl,--export-dynamic" 5705 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5706 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5707 ;; 5708 MP-RAS-02*) 5709 SHLIB_CFLAGS="-K PIC" 5710 SHLIB_LD="cc -G" 5711 SHLIB_LD_LIBS="" 5712 SHLIB_SUFFIX=".so" 5713 DL_OBJS="tclLoadDl.o" 5714 DL_LIBS="-ldl" 5715 CC_SEARCH_FLAGS="" 5716 LD_SEARCH_FLAGS="" 5717 ;; 5718 MP-RAS-*) 5719 SHLIB_CFLAGS="-K PIC" 5720 SHLIB_LD="cc -G" 5721 SHLIB_LD_LIBS="" 5722 SHLIB_SUFFIX=".so" 5723 DL_OBJS="tclLoadDl.o" 5724 DL_LIBS="-ldl" 5725 LDFLAGS="$LDFLAGS -Wl,-Bexport" 5726 CC_SEARCH_FLAGS="" 5727 LD_SEARCH_FLAGS="" 5728 ;; 5729 NetBSD-*|FreeBSD-[1-2].*) 5730 # NetBSD/SPARC needs -fPIC, -fpic will not do. 5731 SHLIB_CFLAGS="-fPIC" 5732 SHLIB_LD="ld -Bshareable -x" 5733 SHLIB_LD_LIBS='${LIBS}' 5734 SHLIB_SUFFIX=".so" 5735 DL_OBJS="tclLoadDl.o" 5736 DL_LIBS="" 5737 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR},-rpath,${LIB_PGTCL_RUNTIME_DIR}' 5738 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR} -rpath ${LIB_PGTCL_RUNTIME_DIR}' 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 5740$as_echo_n "checking for ELF... " >&6; } 5741if ${tcl_cv_ld_elf+:} false; then : 5742 $as_echo_n "(cached) " >&6 5743else 5744 5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747 5748#ifdef __ELF__ 5749 yes 5750#endif 5751 5752_ACEOF 5753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5754 $EGREP "yes" >/dev/null 2>&1; then : 5755 tcl_cv_ld_elf=yes 5756else 5757 tcl_cv_ld_elf=no 5758fi 5759rm -f conftest* 5760 5761fi 5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 5763$as_echo "$tcl_cv_ld_elf" >&6; } 5764 if test $tcl_cv_ld_elf = yes; then 5765 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 5766 else 5767 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 5768 fi 5769 5770 # Ancient FreeBSD doesn't handle version numbers with dots. 5771 5772 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5773 TCL_LIB_VERSIONS_OK=nodots 5774 ;; 5775 OpenBSD-*) 5776 # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. 5777 case `machine` in 5778 sparc|sparc64) 5779 SHLIB_CFLAGS="-fPIC";; 5780 *) 5781 SHLIB_CFLAGS="-fpic";; 5782 esac 5783 SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" 5784 SHLIB_LD_LIBS='${LIBS}' 5785 SHLIB_SUFFIX=".so" 5786 DL_OBJS="tclLoadDl.o" 5787 DL_LIBS="" 5788 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR},-rpath,${LIB_PGTCL_RUNTIME_DIR}' 5789 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5790 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 5792$as_echo_n "checking for ELF... " >&6; } 5793if ${tcl_cv_ld_elf+:} false; then : 5794 $as_echo_n "(cached) " >&6 5795else 5796 5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5798/* end confdefs.h. */ 5799 5800#ifdef __ELF__ 5801 yes 5802#endif 5803 5804_ACEOF 5805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5806 $EGREP "yes" >/dev/null 2>&1; then : 5807 tcl_cv_ld_elf=yes 5808else 5809 tcl_cv_ld_elf=no 5810fi 5811rm -f conftest* 5812 5813fi 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 5815$as_echo "$tcl_cv_ld_elf" >&6; } 5816 if test $tcl_cv_ld_elf = yes; then 5817 LDFLAGS=-Wl,-export-dynamic 5818 else 5819 LDFLAGS="" 5820 fi 5821 5822 # OpenBSD doesn't do version numbers with dots. 5823 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5824 TCL_LIB_VERSIONS_OK=nodots 5825 ;; 5826 FreeBSD-*|DragonFly-*) 5827 # FreeBSD 3.* and greater have ELF. 5828 SHLIB_CFLAGS="-fPIC" 5829 SHLIB_LD="ld -Bshareable -x" 5830 SHLIB_LD_LIBS='${LIBS}' 5831 SHLIB_SUFFIX=".so" 5832 DL_OBJS="tclLoadDl.o" 5833 DL_LIBS="" 5834 LDFLAGS="$LDFLAGS -export-dynamic" 5835 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR},-rpath,${LIB_PGTCL_RUNTIME_DIR}' 5836 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR} -rpath ${LIB_PGTCL_RUNTIME_DIR}' 5837 if test "${TCL_THREADS}" = "1" ; then 5838 # The -pthread needs to go in the CFLAGS, not LIBS 5839 LIBS=`echo $LIBS | sed s/-pthread//` 5840 CFLAGS="$CFLAGS -pthread" 5841 LDFLAGS="$LDFLAGS -pthread" 5842 fi 5843 case $system in 5844 FreeBSD-3.*) 5845 # FreeBSD-3 doesn't handle version numbers with dots. 5846 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5847 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 5848 TCL_LIB_VERSIONS_OK=nodots 5849 ;; 5850 esac 5851 ;; 5852 Darwin-*) 5853 CFLAGS_OPTIMIZE="-Os" 5854 SHLIB_CFLAGS="-fno-common" 5855 if test $do64bit = yes; then 5856 do64bit_ok=yes 5857 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5858 fi 5859 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS here: 5860 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 5862$as_echo_n "checking if ld accepts -single_module flag... " >&6; } 5863if ${tcl_cv_ld_single_module+:} false; then : 5864 $as_echo_n "(cached) " >&6 5865else 5866 5867 hold_ldflags=$LDFLAGS 5868 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870/* end confdefs.h. */ 5871 5872int 5873main () 5874{ 5875int i; 5876 ; 5877 return 0; 5878} 5879_ACEOF 5880if ac_fn_c_try_link "$LINENO"; then : 5881 tcl_cv_ld_single_module=yes 5882else 5883 tcl_cv_ld_single_module=no 5884fi 5885rm -f core conftest.err conftest.$ac_objext \ 5886 conftest$ac_exeext conftest.$ac_ext 5887 LDFLAGS=$hold_ldflags 5888fi 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 5890$as_echo "$tcl_cv_ld_single_module" >&6; } 5891 if test $tcl_cv_ld_single_module = yes; then 5892 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 5893 fi 5894 SHLIB_LD_LIBS='${LIBS}' 5895 SHLIB_SUFFIX=".dylib" 5896 DL_OBJS="tclLoadDyld.o" 5897 DL_LIBS="" 5898 # Don't use -prebind when building for Mac OS X 10.4 or later only: 5899 test -z "${MACOSX_DEPLOYMENT_TARGET}" || \ 5900 test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F. '{print $2}'`" -lt 4 && \ 5901 LDFLAGS="$LDFLAGS -prebind" 5902 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 5904$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } 5905if ${tcl_cv_ld_search_paths_first+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 5909 hold_ldflags=$LDFLAGS 5910 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5912/* end confdefs.h. */ 5913 5914int 5915main () 5916{ 5917int i; 5918 ; 5919 return 0; 5920} 5921_ACEOF 5922if ac_fn_c_try_link "$LINENO"; then : 5923 tcl_cv_ld_search_paths_first=yes 5924else 5925 tcl_cv_ld_search_paths_first=no 5926fi 5927rm -f core conftest.err conftest.$ac_objext \ 5928 conftest$ac_exeext conftest.$ac_ext 5929 LDFLAGS=$hold_ldflags 5930fi 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 5932$as_echo "$tcl_cv_ld_search_paths_first" >&6; } 5933 if test $tcl_cv_ld_search_paths_first = yes; then 5934 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 5935 fi 5936 CC_SEARCH_FLAGS="" 5937 LD_SEARCH_FLAGS="" 5938 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 5939 5940 # TEA specific: for Tk extensions, remove -arch ppc64 from CFLAGS 5941 # for fat builds, as neither TkAqua nor TkX11 can be built for 64bit 5942 # at present (no 64bit GUI libraries). 5943 test $do64bit_ok = no && test -n "${TK_BIN_DIR}" && \ 5944 CFLAGS="`echo "$CFLAGS" | sed -e 's/-arch ppc64/-arch ppc/g'`" 5945 ;; 5946 NEXTSTEP-*) 5947 SHLIB_CFLAGS="" 5948 SHLIB_LD="cc -nostdlib -r" 5949 SHLIB_LD_LIBS="" 5950 SHLIB_SUFFIX=".so" 5951 DL_OBJS="tclLoadNext.o" 5952 DL_LIBS="" 5953 CC_SEARCH_FLAGS="" 5954 LD_SEARCH_FLAGS="" 5955 ;; 5956 OS/390-*) 5957 CFLAGS_OPTIMIZE="" # Optimizer is buggy 5958 5959$as_echo "#define _OE_SOCKETS 1" >>confdefs.h 5960 5961 ;; 5962 OSF1-1.0|OSF1-1.1|OSF1-1.2) 5963 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 5964 SHLIB_CFLAGS="" 5965 # Hack: make package name same as library name 5966 SHLIB_LD='ld -R -export :' 5967 SHLIB_LD_LIBS="" 5968 SHLIB_SUFFIX=".so" 5969 DL_OBJS="tclLoadOSF.o" 5970 DL_LIBS="" 5971 CC_SEARCH_FLAGS="" 5972 LD_SEARCH_FLAGS="" 5973 ;; 5974 OSF1-1.*) 5975 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 5976 SHLIB_CFLAGS="-fPIC" 5977 if test "$SHARED_BUILD" = "1" ; then 5978 SHLIB_LD="ld -shared" 5979 else 5980 SHLIB_LD="ld -non_shared" 5981 fi 5982 SHLIB_LD_LIBS="" 5983 SHLIB_SUFFIX=".so" 5984 DL_OBJS="tclLoadDl.o" 5985 DL_LIBS="" 5986 CC_SEARCH_FLAGS="" 5987 LD_SEARCH_FLAGS="" 5988 ;; 5989 OSF1-V*) 5990 # Digital OSF/1 5991 SHLIB_CFLAGS="" 5992 if test "$SHARED_BUILD" = "1" ; then 5993 SHLIB_LD='ld -shared -expect_unresolved "*"' 5994 else 5995 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 5996 fi 5997 SHLIB_LD_LIBS="" 5998 SHLIB_SUFFIX=".so" 5999 DL_OBJS="tclLoadDl.o" 6000 DL_LIBS="" 6001 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR},-rpath,${LIB_PGTCL_RUNTIME_DIR}' 6002 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR} -rpath ${LIB_PGTCL_RUNTIME_DIR}' 6003 if test "$GCC" = "yes" ; then 6004 CFLAGS="$CFLAGS -mieee" 6005 else 6006 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 6007 fi 6008 # see pthread_intro(3) for pthread support on osf1, k.furukawa 6009 if test "${TCL_THREADS}" = "1" ; then 6010 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 6011 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 6012 LIBS=`echo $LIBS | sed s/-lpthreads//` 6013 if test "$GCC" = "yes" ; then 6014 LIBS="$LIBS -lpthread -lmach -lexc" 6015 else 6016 CFLAGS="$CFLAGS -pthread" 6017 LDFLAGS="$LDFLAGS -pthread" 6018 fi 6019 fi 6020 6021 ;; 6022 QNX-6*) 6023 # QNX RTP 6024 # This may work for all QNX, but it was only reported for v6. 6025 SHLIB_CFLAGS="-fPIC" 6026 SHLIB_LD="ld -Bshareable -x" 6027 SHLIB_LD_LIBS="" 6028 SHLIB_SUFFIX=".so" 6029 DL_OBJS="tclLoadDl.o" 6030 # dlopen is in -lc on QNX 6031 DL_LIBS="" 6032 CC_SEARCH_FLAGS="" 6033 LD_SEARCH_FLAGS="" 6034 ;; 6035 SCO_SV-3.2*) 6036 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 6037 # this test works, since "uname -s" was non-standard in 3.2.4 and 6038 # below. 6039 if test "$GCC" = "yes" ; then 6040 SHLIB_CFLAGS="-fPIC -melf" 6041 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 6042 else 6043 SHLIB_CFLAGS="-Kpic -belf" 6044 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 6045 fi 6046 SHLIB_LD="ld -G" 6047 SHLIB_LD_LIBS="" 6048 SHLIB_SUFFIX=".so" 6049 DL_OBJS="tclLoadDl.o" 6050 DL_LIBS="" 6051 CC_SEARCH_FLAGS="" 6052 LD_SEARCH_FLAGS="" 6053 ;; 6054 SINIX*5.4*) 6055 SHLIB_CFLAGS="-K PIC" 6056 SHLIB_LD="cc -G" 6057 SHLIB_LD_LIBS="" 6058 SHLIB_SUFFIX=".so" 6059 DL_OBJS="tclLoadDl.o" 6060 DL_LIBS="-ldl" 6061 CC_SEARCH_FLAGS="" 6062 LD_SEARCH_FLAGS="" 6063 ;; 6064 SunOS-4*) 6065 SHLIB_CFLAGS="-PIC" 6066 SHLIB_LD="ld" 6067 SHLIB_LD_LIBS="" 6068 SHLIB_SUFFIX=".so" 6069 DL_OBJS="tclLoadDl.o" 6070 DL_LIBS="-ldl" 6071 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR} -L${LIB_PGTCL_RUNTIME_DIR}' 6072 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6073 6074 # SunOS can't handle version numbers with dots in them in library 6075 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 6076 # requires an extra version number at the end of .so file names. 6077 # So, the library has to have a name like libtcl75.so.1.0 6078 6079 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 6080 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 6081 TCL_LIB_VERSIONS_OK=nodots 6082 ;; 6083 SunOS-5.[0-6]) 6084 # Careful to not let 5.10+ fall into this case 6085 6086 # Note: If _REENTRANT isn't defined, then Solaris 6087 # won't define thread-safe library routines. 6088 6089 6090$as_echo "#define _REENTRANT 1" >>confdefs.h 6091 6092 6093$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6094 6095 6096 SHLIB_CFLAGS="-KPIC" 6097 6098 # Note: need the LIBS below, otherwise Tk won't find Tcl's 6099 # symbols when dynamically loaded into tclsh. 6100 6101 SHLIB_LD_LIBS='${LIBS}' 6102 SHLIB_SUFFIX=".so" 6103 DL_OBJS="tclLoadDl.o" 6104 DL_LIBS="-ldl" 6105 if test "$GCC" = "yes" ; then 6106 SHLIB_LD="$CC -shared" 6107 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR},-R,${LIB_PGTCL_RUNTIME_DIR}' 6108 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6109 else 6110 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 6111 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR} -R ${LIB_PGTCL_RUNTIME_DIR}' 6112 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6113 fi 6114 ;; 6115 SunOS-5*) 6116 # Note: If _REENTRANT isn't defined, then Solaris 6117 # won't define thread-safe library routines. 6118 6119 6120$as_echo "#define _REENTRANT 1" >>confdefs.h 6121 6122 6123$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6124 6125 6126 SHLIB_CFLAGS="-KPIC" 6127 6128 # Check to enable 64-bit flags for compiler/linker 6129 if test "$do64bit" = "yes" ; then 6130 arch=`isainfo` 6131 if test "$arch" = "sparcv9 sparc" ; then 6132 if test "$GCC" = "yes" ; then 6133 if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 6135$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 6136 else 6137 do64bit_ok=yes 6138 CFLAGS="$CFLAGS -m64 -mcpu=v9" 6139 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 6140 SHLIB_CFLAGS="-fPIC" 6141 fi 6142 else 6143 do64bit_ok=yes 6144 if test "$do64bitVIS" = "yes" ; then 6145 CFLAGS="$CFLAGS -xarch=v9a" 6146 LDFLAGS_ARCH="-xarch=v9a" 6147 else 6148 CFLAGS="$CFLAGS -xarch=v9" 6149 LDFLAGS_ARCH="-xarch=v9" 6150 fi 6151 # Solaris 64 uses this as well 6152 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 6153 fi 6154 elif test "$arch" = "amd64 i386" ; then 6155 if test "$GCC" = "yes" ; then 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 6157$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 6158 else 6159 do64bit_ok=yes 6160 CFLAGS="$CFLAGS -xarch=amd64" 6161 LDFLAGS="$LDFLAGS -xarch=amd64" 6162 fi 6163 else 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 6165$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 6166 fi 6167 fi 6168 6169 # Note: need the LIBS below, otherwise Tk won't find Tcl's 6170 # symbols when dynamically loaded into tclsh. 6171 6172 SHLIB_LD_LIBS='${LIBS}' 6173 SHLIB_SUFFIX=".so" 6174 DL_OBJS="tclLoadDl.o" 6175 DL_LIBS="-ldl" 6176 if test "$GCC" = "yes" ; then 6177 SHLIB_LD="$CC -shared" 6178 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR},-R,${LIB_PGTCL_RUNTIME_DIR}' 6179 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6180 if test "$do64bit_ok" = "yes" ; then 6181 # We need to specify -static-libgcc or we need to 6182 # add the path to the sparv9 libgcc. 6183 # JH: static-libgcc is necessary for core Tcl, but may 6184 # not be necessary for extensions. 6185 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 6186 # for finding sparcv9 libgcc, get the regular libgcc 6187 # path, remove so name and append 'sparcv9' 6188 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 6189 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 6190 fi 6191 else 6192 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 6193 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR},-R,${LIB_PGTCL_RUNTIME_DIR}' 6194 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR} -R ${LIB_PGTCL_RUNTIME_DIR}' 6195 fi 6196 ;; 6197 UNIX_SV* | UnixWare-5*) 6198 SHLIB_CFLAGS="-KPIC" 6199 SHLIB_LD="cc -G" 6200 SHLIB_LD_LIBS="" 6201 SHLIB_SUFFIX=".so" 6202 DL_OBJS="tclLoadDl.o" 6203 DL_LIBS="-ldl" 6204 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 6205 # that don't grok the -Bexport option. Test that it does. 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 6207$as_echo_n "checking for ld accepts -Bexport flag... " >&6; } 6208if ${tcl_cv_ld_Bexport+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 6212 hold_ldflags=$LDFLAGS 6213 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216 6217int 6218main () 6219{ 6220int i; 6221 ; 6222 return 0; 6223} 6224_ACEOF 6225if ac_fn_c_try_link "$LINENO"; then : 6226 tcl_cv_ld_Bexport=yes 6227else 6228 tcl_cv_ld_Bexport=no 6229fi 6230rm -f core conftest.err conftest.$ac_objext \ 6231 conftest$ac_exeext conftest.$ac_ext 6232 LDFLAGS=$hold_ldflags 6233fi 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 6235$as_echo "$tcl_cv_ld_Bexport" >&6; } 6236 if test $tcl_cv_ld_Bexport = yes; then 6237 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6238 fi 6239 CC_SEARCH_FLAGS="" 6240 LD_SEARCH_FLAGS="" 6241 ;; 6242 esac 6243 6244 if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 6246$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 6247 fi 6248 6249 # Step 4: disable dynamic loading if requested via a command-line switch. 6250 6251 # Check whether --enable-load was given. 6252if test "${enable_load+set}" = set; then : 6253 enableval=$enable_load; tcl_ok=$enableval 6254else 6255 tcl_ok=yes 6256fi 6257 6258 if test "$tcl_ok" = "no"; then 6259 DL_OBJS="" 6260 fi 6261 6262 if test "x$DL_OBJS" != "x" ; then 6263 BUILD_DLTEST="\$(DLTEST_TARGETS)" 6264 else 6265 echo "Can't figure out how to do dynamic loading or shared libraries" 6266 echo "on this system." 6267 SHLIB_CFLAGS="" 6268 SHLIB_LD="" 6269 SHLIB_SUFFIX="" 6270 DL_OBJS="tclLoadNone.o" 6271 DL_LIBS="" 6272 LDFLAGS="$LDFLAGS_ORIG" 6273 CC_SEARCH_FLAGS="" 6274 LD_SEARCH_FLAGS="" 6275 BUILD_DLTEST="" 6276 fi 6277 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 6278 6279 # If we're running gcc, then change the C flags for compiling shared 6280 # libraries to the right flags for gcc, instead of those for the 6281 # standard manufacturer compiler. 6282 6283 if test "$DL_OBJS" != "tclLoadNone.o" ; then 6284 if test "$GCC" = "yes" ; then 6285 case $system in 6286 AIX-*) 6287 ;; 6288 BSD/OS*) 6289 ;; 6290 IRIX*) 6291 ;; 6292 NetBSD-*|FreeBSD-*) 6293 ;; 6294 Darwin-*) 6295 ;; 6296 SCO_SV-3.2*) 6297 ;; 6298 windows) 6299 ;; 6300 *) 6301 SHLIB_CFLAGS="-fPIC" 6302 ;; 6303 esac 6304 fi 6305 fi 6306 6307 if test "$SHARED_LIB_SUFFIX" = "" ; then 6308 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 6309 fi 6310 if test "$UNSHARED_LIB_SUFFIX" = "" ; then 6311 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 6312 fi 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 # These must be called after we do the basic CFLAGS checks and 6329 # verify any possible 64-bit or similar switches are necessary 6330 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5 6332$as_echo_n "checking for required early compiler flags... " >&6; } 6333 tcl_flags="" 6334 6335 if ${tcl_cv_flag__isoc99_source+:} false; then : 6336 $as_echo_n "(cached) " >&6 6337else 6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6339/* end confdefs.h. */ 6340#include <stdlib.h> 6341int 6342main () 6343{ 6344char *p = (char *)strtoll; char *q = (char *)strtoull; 6345 ; 6346 return 0; 6347} 6348_ACEOF 6349if ac_fn_c_try_compile "$LINENO"; then : 6350 tcl_cv_flag__isoc99_source=no 6351else 6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6353/* end confdefs.h. */ 6354#define _ISOC99_SOURCE 1 6355#include <stdlib.h> 6356int 6357main () 6358{ 6359char *p = (char *)strtoll; char *q = (char *)strtoull; 6360 ; 6361 return 0; 6362} 6363_ACEOF 6364if ac_fn_c_try_compile "$LINENO"; then : 6365 tcl_cv_flag__isoc99_source=yes 6366else 6367 tcl_cv_flag__isoc99_source=no 6368fi 6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6370fi 6371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6372fi 6373 6374 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 6375 6376$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h 6377 6378 tcl_flags="$tcl_flags _ISOC99_SOURCE" 6379 fi 6380 6381 6382 if ${tcl_cv_flag__largefile64_source+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386/* end confdefs.h. */ 6387#include <sys/stat.h> 6388int 6389main () 6390{ 6391struct stat64 buf; int i = stat64("/", &buf); 6392 ; 6393 return 0; 6394} 6395_ACEOF 6396if ac_fn_c_try_compile "$LINENO"; then : 6397 tcl_cv_flag__largefile64_source=no 6398else 6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6400/* end confdefs.h. */ 6401#define _LARGEFILE64_SOURCE 1 6402#include <sys/stat.h> 6403int 6404main () 6405{ 6406struct stat64 buf; int i = stat64("/", &buf); 6407 ; 6408 return 0; 6409} 6410_ACEOF 6411if ac_fn_c_try_compile "$LINENO"; then : 6412 tcl_cv_flag__largefile64_source=yes 6413else 6414 tcl_cv_flag__largefile64_source=no 6415fi 6416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6417fi 6418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6419fi 6420 6421 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 6422 6423$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 6424 6425 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 6426 fi 6427 6428 6429 if ${tcl_cv_flag__largefile_source64+:} false; then : 6430 $as_echo_n "(cached) " >&6 6431else 6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6433/* end confdefs.h. */ 6434#include <sys/stat.h> 6435int 6436main () 6437{ 6438char *p = (char *)open64; 6439 ; 6440 return 0; 6441} 6442_ACEOF 6443if ac_fn_c_try_compile "$LINENO"; then : 6444 tcl_cv_flag__largefile_source64=no 6445else 6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6447/* end confdefs.h. */ 6448#define _LARGEFILE_SOURCE64 1 6449#include <sys/stat.h> 6450int 6451main () 6452{ 6453char *p = (char *)open64; 6454 ; 6455 return 0; 6456} 6457_ACEOF 6458if ac_fn_c_try_compile "$LINENO"; then : 6459 tcl_cv_flag__largefile_source64=yes 6460else 6461 tcl_cv_flag__largefile_source64=no 6462fi 6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6464fi 6465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6466fi 6467 6468 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 6469 6470$as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h 6471 6472 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 6473 fi 6474 6475 if test "x${tcl_flags}" = "x" ; then 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6477$as_echo "none" >&6; } 6478 else 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5 6480$as_echo "${tcl_flags}" >&6; } 6481 fi 6482 6483 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5 6485$as_echo_n "checking for 64-bit integer type... " >&6; } 6486 if ${tcl_cv_type_64bit+:} false; then : 6487 $as_echo_n "(cached) " >&6 6488else 6489 6490 tcl_cv_type_64bit=none 6491 # See if the compiler knows natively about __int64 6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6493/* end confdefs.h. */ 6494 6495int 6496main () 6497{ 6498__int64 value = (__int64) 0; 6499 ; 6500 return 0; 6501} 6502_ACEOF 6503if ac_fn_c_try_compile "$LINENO"; then : 6504 tcl_type_64bit=__int64 6505else 6506 tcl_type_64bit="long long" 6507fi 6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6509 # See if we should use long anyway Note that we substitute in the 6510 # type that is our current guess for a 64-bit type inside this check 6511 # program, so it should be modified only carefully... 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513/* end confdefs.h. */ 6514 6515int 6516main () 6517{ 6518switch (0) { 6519 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 6520 } 6521 ; 6522 return 0; 6523} 6524_ACEOF 6525if ac_fn_c_try_compile "$LINENO"; then : 6526 tcl_cv_type_64bit=${tcl_type_64bit} 6527fi 6528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6529fi 6530 6531 if test "${tcl_cv_type_64bit}" = none ; then 6532 6533$as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h 6534 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using long" >&5 6536$as_echo "using long" >&6; } 6537 elif test "${tcl_cv_type_64bit}" = "__int64" \ 6538 -a "${TEA_PLATFORM}" = "windows" ; then 6539 # We actually want to use the default tcl.h checks in this 6540 # case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5 6542$as_echo "using Tcl header defaults" >&6; } 6543 else 6544 6545cat >>confdefs.h <<_ACEOF 6546#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 6547_ACEOF 6548 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5 6550$as_echo "${tcl_cv_type_64bit}" >&6; } 6551 6552 # Now check for auxiliary declarations 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5 6554$as_echo_n "checking for struct dirent64... " >&6; } 6555if ${tcl_cv_struct_dirent64+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560/* end confdefs.h. */ 6561#include <sys/types.h> 6562#include <sys/dirent.h> 6563int 6564main () 6565{ 6566struct dirent64 p; 6567 ; 6568 return 0; 6569} 6570_ACEOF 6571if ac_fn_c_try_compile "$LINENO"; then : 6572 tcl_cv_struct_dirent64=yes 6573else 6574 tcl_cv_struct_dirent64=no 6575fi 6576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6577fi 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5 6579$as_echo "$tcl_cv_struct_dirent64" >&6; } 6580 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 6581 6582$as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h 6583 6584 fi 6585 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5 6587$as_echo_n "checking for struct stat64... " >&6; } 6588if ${tcl_cv_struct_stat64+:} false; then : 6589 $as_echo_n "(cached) " >&6 6590else 6591 6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6593/* end confdefs.h. */ 6594#include <sys/stat.h> 6595int 6596main () 6597{ 6598struct stat64 p; 6599 6600 ; 6601 return 0; 6602} 6603_ACEOF 6604if ac_fn_c_try_compile "$LINENO"; then : 6605 tcl_cv_struct_stat64=yes 6606else 6607 tcl_cv_struct_stat64=no 6608fi 6609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6610fi 6611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5 6612$as_echo "$tcl_cv_struct_stat64" >&6; } 6613 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 6614 6615$as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h 6616 6617 fi 6618 6619 for ac_func in open64 lseek64 6620do : 6621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6622ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6623if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6624 cat >>confdefs.h <<_ACEOF 6625#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6626_ACEOF 6627 6628fi 6629done 6630 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5 6632$as_echo_n "checking for off64_t... " >&6; } 6633 if ${tcl_cv_type_off64_t+:} false; then : 6634 $as_echo_n "(cached) " >&6 6635else 6636 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6638/* end confdefs.h. */ 6639#include <sys/types.h> 6640int 6641main () 6642{ 6643off64_t offset; 6644 6645 ; 6646 return 0; 6647} 6648_ACEOF 6649if ac_fn_c_try_compile "$LINENO"; then : 6650 tcl_cv_type_off64_t=yes 6651else 6652 tcl_cv_type_off64_t=no 6653fi 6654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6655fi 6656 6657 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 6658 test "x${ac_cv_func_lseek64}" = "xyes" && \ 6659 test "x${ac_cv_func_open64}" = "xyes" ; then 6660 6661$as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h 6662 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6664$as_echo "yes" >&6; } 6665 else 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6667$as_echo "no" >&6; } 6668 fi 6669 fi 6670 6671 6672 6673#-------------------------------------------------------------------- 6674# Set the default compiler switches based on the --enable-symbols option. 6675#-------------------------------------------------------------------- 6676 6677 6678 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 6680$as_echo_n "checking for build with symbols... " >&6; } 6681 # Check whether --enable-symbols was given. 6682if test "${enable_symbols+set}" = set; then : 6683 enableval=$enable_symbols; tcl_ok=$enableval 6684else 6685 tcl_ok=no 6686fi 6687 6688 DBGX="" 6689 if test "$tcl_ok" = "no"; then 6690 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 6691 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6693$as_echo "no" >&6; } 6694 else 6695 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 6696 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 6697 if test "$tcl_ok" = "yes"; then 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 6699$as_echo "yes (standard debugging)" >&6; } 6700 fi 6701 fi 6702 if test "${TEA_PLATFORM}" != "windows" ; then 6703 LDFLAGS_DEFAULT="${LDFLAGS}" 6704 fi 6705 6706 6707 6708 6709 6710 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 6711 6712$as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h 6713 6714 fi 6715 6716 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 6717 if test "$tcl_ok" = "all"; then 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5 6719$as_echo "enabled symbols mem debugging" >&6; } 6720 else 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 6722$as_echo "enabled $tcl_ok debugging" >&6; } 6723 fi 6724 fi 6725 6726 6727#-------------------------------------------------------------------- 6728# Everyone should be linking against the Tcl stub library. If you 6729# can't for some reason, remove this definition. If you aren't using 6730# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 6731# link against the non-stubbed Tcl library. Add Tk too if necessary. 6732#-------------------------------------------------------------------- 6733 6734 6735$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h 6736 6737#AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs]) 6738 6739#-------------------------------------------------------------------- 6740# Get the path to the PostgreSQL installation. 6741#-------------------------------------------------------------------- 6742 6743LIBPG="" 6744 6745# Check whether --with-postgres-include was given. 6746if test "${with_postgres_include+set}" = set; then : 6747 withval=$with_postgres_include; PG_INC_DIR=$withval 6748else 6749 PG_INC_DIR="" 6750fi 6751 6752 6753# Check whether --with-postgres-lib was given. 6754if test "${with_postgres_lib+set}" = set; then : 6755 withval=$with_postgres_lib; PG_LIB_DIR=$withval 6756else 6757 PG_LIB_DIR="" 6758fi 6759 6760 6761# Use pg_config (if found) to supply missing paths, if needed. 6762if test "$PG_INC_DIR" = "" -o "$PG_LIB_DIR" = ""; then 6763 # Extract the first word of "pg_config", so it can be a program name with args. 6764set dummy pg_config; ac_word=$2 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766$as_echo_n "checking for $ac_word... " >&6; } 6767if ${ac_cv_path_PG_CONFIG+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769else 6770 case $PG_CONFIG in 6771 [\\/]* | ?:[\\/]*) 6772 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 6773 ;; 6774 *) 6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6776for as_dir in $PATH 6777do 6778 IFS=$as_save_IFS 6779 test -z "$as_dir" && as_dir=. 6780 for ac_exec_ext in '' $ac_executable_extensions; do 6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6782 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6784 break 2 6785 fi 6786done 6787 done 6788IFS=$as_save_IFS 6789 6790 ;; 6791esac 6792fi 6793PG_CONFIG=$ac_cv_path_PG_CONFIG 6794if test -n "$PG_CONFIG"; then 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 6796$as_echo "$PG_CONFIG" >&6; } 6797else 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6799$as_echo "no" >&6; } 6800fi 6801 6802 6803 if test "$PG_CONFIG" = ""; then 6804 as_fn_error $? "cannot find pg_config program on PATH. Without pg_config, 6805you must specify both --with-postgres-include and --with-postgres-lib" "$LINENO" 5 6806 fi 6807 if test "$PG_INC_DIR" = ""; then 6808 PG_INC_DIR=`$PG_CONFIG --includedir` 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: pg_config says includedir is $PG_INC_DIR" >&5 6810$as_echo "$as_me: pg_config says includedir is $PG_INC_DIR" >&6;} 6811 fi 6812 if test "$PG_LIB_DIR" = ""; then 6813 PG_LIB_DIR=`$PG_CONFIG --libdir` 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: pg_config says libdir is $PG_LIB_DIR" >&5 6815$as_echo "$as_me: pg_config says libdir is $PG_LIB_DIR" >&6;} 6816 fi 6817fi 6818 6819PG_INCLUDES="-I$PG_INC_DIR" 6820PG_LIBS="-L$PG_LIB_DIR -lpq" 6821if test ! "$PG_LIB_DIR" = ""; then 6822 LIBPG="libpq${SHLIB_SUFFIX}" 6823fi 6824 6825 6826 6827 6828 6829 6830#-------------------------------------------------------------------- 6831# Function availability tests for the PostgreSQL library: 6832#-------------------------------------------------------------------- 6833save_LIBS="$LIBS" 6834LIBS="$PG_LIBS $LIBS" 6835for ac_func in lo_truncate PQencryptPassword 6836do : 6837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6838ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6839if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6840 cat >>confdefs.h <<_ACEOF 6841#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6842_ACEOF 6843 6844fi 6845done 6846 6847for ac_func in PQescapeStringConn PQescapeByteaConn 6848do : 6849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6850ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6851if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6852 cat >>confdefs.h <<_ACEOF 6853#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6854_ACEOF 6855 6856fi 6857done 6858 6859# Note this test which defines HAVE_PQDESCRIBEPREPARED is used for 6860# PQdescribePrepared, PQdescribePortal, PQnparams, and PQparamtype - 6861# all of which were added in the same PostgreSQL release 8.2. 6862for ac_func in PQdescribePrepared 6863do : 6864 ac_fn_c_check_func "$LINENO" "PQdescribePrepared" "ac_cv_func_PQdescribePrepared" 6865if test "x$ac_cv_func_PQdescribePrepared" = xyes; then : 6866 cat >>confdefs.h <<_ACEOF 6867#define HAVE_PQDESCRIBEPREPARED 1 6868_ACEOF 6869 6870fi 6871done 6872 6873# This test which defines HAVE_LO_TELL64 also covers lo_seek64 and 6874# lo_truncate64, all of which are added in PostgreSQL 9.3. 6875for ac_func in lo_tell64 6876do : 6877 ac_fn_c_check_func "$LINENO" "lo_tell64" "ac_cv_func_lo_tell64" 6878if test "x$ac_cv_func_lo_tell64" = xyes; then : 6879 cat >>confdefs.h <<_ACEOF 6880#define HAVE_LO_TELL64 1 6881_ACEOF 6882 6883fi 6884done 6885 6886# This test which defines HAVE_PQESCAPELITERAL covers both 6887# PQescapeliteral and PQescapeIdentifier, both added in PostgreSQL 9.0. 6888for ac_func in PQescapeLiteral 6889do : 6890 ac_fn_c_check_func "$LINENO" "PQescapeLiteral" "ac_cv_func_PQescapeLiteral" 6891if test "x$ac_cv_func_PQescapeLiteral" = xyes; then : 6892 cat >>confdefs.h <<_ACEOF 6893#define HAVE_PQESCAPELITERAL 1 6894_ACEOF 6895 6896fi 6897done 6898 6899LIBS="$save_LIBS" 6900 6901#-------------------------------------------------------------------- 6902# This macro generates a line to use when building a library. It 6903# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 6904# and TEA_LOAD_TCLCONFIG macros above. 6905#-------------------------------------------------------------------- 6906 6907 6908 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 6909 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 6910 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 6911 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 6912 else 6913 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 6914 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 6915 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 6916 fi 6917 6918 if test "${SHARED_BUILD}" = "1" ; then 6919 MAKE_LIB="${MAKE_SHARED_LIB} " 6920 else 6921 MAKE_LIB="${MAKE_STATIC_LIB} " 6922 fi 6923 6924 #-------------------------------------------------------------------- 6925 # Shared libraries and static libraries have different names. 6926 # Use the double eval to make sure any variables in the suffix is 6927 # substituted. (@@@ Might not be necessary anymore) 6928 #-------------------------------------------------------------------- 6929 6930 if test "${TEA_PLATFORM}" = "windows" ; then 6931 if test "${SHARED_BUILD}" = "1" ; then 6932 # We force the unresolved linking of symbols that are really in 6933 # the private libraries of Tcl and Tk. 6934 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 6935 if test x"${TK_BIN_DIR}" != x ; then 6936 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 6937 fi 6938 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 6939 else 6940 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 6941 fi 6942 # Some packages build their own stubs libraries 6943 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 6944 if test "$GCC" = "yes"; then 6945 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 6946 fi 6947 # These aren't needed on Windows (either MSVC or gcc) 6948 RANLIB=: 6949 RANLIB_STUB=: 6950 else 6951 RANLIB_STUB="${RANLIB}" 6952 if test "${SHARED_BUILD}" = "1" ; then 6953 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 6954 if test x"${TK_BIN_DIR}" != x ; then 6955 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 6956 fi 6957 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 6958 RANLIB=: 6959 else 6960 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 6961 fi 6962 # Some packages build their own stubs libraries 6963 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 6964 fi 6965 6966 # These are escaped so that only CFLAGS is picked up at configure time. 6967 # The other values will be substituted at make time. 6968 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 6969 if test "${SHARED_BUILD}" = "1" ; then 6970 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 6971 fi 6972 6973 6974 6975 6976 6977 6978 6979 6980#-------------------------------------------------------------------- 6981# Determine the name of the tclsh and/or wish executables in the 6982# Tcl and Tk build directories or the location they were installed 6983# into. These paths are used to support running test cases only, 6984# the Makefile should not be making use of these paths to generate 6985# a pkgIndex.tcl file or anything else at extension build time. 6986#-------------------------------------------------------------------- 6987 6988 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5 6990$as_echo_n "checking for tclsh... " >&6; } 6991 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6992 # tclConfig.sh is in Tcl build directory 6993 if test "${TEA_PLATFORM}" = "windows"; then 6994 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 6995 else 6996 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 6997 fi 6998 else 6999 # tclConfig.sh is in install location 7000 if test "${TEA_PLATFORM}" = "windows"; then 7001 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 7002 else 7003 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 7004 fi 7005 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 7006 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 7007 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 7008 for i in $list ; do 7009 if test -f "$i/${TCLSH_PROG}" ; then 7010 REAL_TCL_BIN_DIR="`cd "$i"; pwd`" 7011 break 7012 fi 7013 done 7014 TCLSH_PROG="${REAL_TCL_BIN_DIR}/${TCLSH_PROG}" 7015 fi 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5 7017$as_echo "${TCLSH_PROG}" >&6; } 7018 7019 7020#TEA_PROG_WISH 7021 7022#-------------------------------------------------------------------- 7023# Finally, substitute all of the various values into the Makefile. 7024# You may alternatively have a special pkgIndex.tcl.in or other files 7025# which require substituting th AC variables in. Include these here. 7026#-------------------------------------------------------------------- 7027 7028# Don't know why this is needed. 7029 7030 7031ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 7032 7033cat >confcache <<\_ACEOF 7034# This file is a shell script that caches the results of configure 7035# tests run on this system so they can be shared between configure 7036# scripts and configure runs, see configure's option --config-cache. 7037# It is not useful on other systems. If it contains results you don't 7038# want to keep, you may remove or edit it. 7039# 7040# config.status only pays attention to the cache file if you give it 7041# the --recheck option to rerun configure. 7042# 7043# `ac_cv_env_foo' variables (set or unset) will be overridden when 7044# loading this file, other *unset* `ac_cv_foo' will be assigned the 7045# following values. 7046 7047_ACEOF 7048 7049# The following way of writing the cache mishandles newlines in values, 7050# but we know of no workaround that is simple, portable, and efficient. 7051# So, we kill variables containing newlines. 7052# Ultrix sh set writes to stderr and can't be redirected directly, 7053# and sets the high bit in the cache file unless we assign to the vars. 7054( 7055 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7056 eval ac_val=\$$ac_var 7057 case $ac_val in #( 7058 *${as_nl}*) 7059 case $ac_var in #( 7060 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7061$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7062 esac 7063 case $ac_var in #( 7064 _ | IFS | as_nl) ;; #( 7065 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7066 *) { eval $ac_var=; unset $ac_var;} ;; 7067 esac ;; 7068 esac 7069 done 7070 7071 (set) 2>&1 | 7072 case $as_nl`(ac_space=' '; set) 2>&1` in #( 7073 *${as_nl}ac_space=\ *) 7074 # `set' does not quote correctly, so add quotes: double-quote 7075 # substitution turns \\\\ into \\, and sed turns \\ into \. 7076 sed -n \ 7077 "s/'/'\\\\''/g; 7078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7079 ;; #( 7080 *) 7081 # `set' quotes correctly as required by POSIX, so do not add quotes. 7082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7083 ;; 7084 esac | 7085 sort 7086) | 7087 sed ' 7088 /^ac_cv_env_/b end 7089 t clear 7090 :clear 7091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7092 t end 7093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7094 :end' >>confcache 7095if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7096 if test -w "$cache_file"; then 7097 if test "x$cache_file" != "x/dev/null"; then 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7099$as_echo "$as_me: updating cache $cache_file" >&6;} 7100 if test ! -f "$cache_file" || test -h "$cache_file"; then 7101 cat confcache >"$cache_file" 7102 else 7103 case $cache_file in #( 7104 */* | ?:*) 7105 mv -f confcache "$cache_file"$$ && 7106 mv -f "$cache_file"$$ "$cache_file" ;; #( 7107 *) 7108 mv -f confcache "$cache_file" ;; 7109 esac 7110 fi 7111 fi 7112 else 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7114$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7115 fi 7116fi 7117rm -f confcache 7118 7119test "x$prefix" = xNONE && prefix=$ac_default_prefix 7120# Let make expand exec_prefix. 7121test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7122 7123# Transform confdefs.h into DEFS. 7124# Protect against shell expansion while executing Makefile rules. 7125# Protect against Makefile macro expansion. 7126# 7127# If the first sed substitution is executed (which looks for macros that 7128# take arguments), then branch to the quote section. Otherwise, 7129# look for a macro that doesn't take arguments. 7130ac_script=' 7131:mline 7132/\\$/{ 7133 N 7134 s,\\\n,, 7135 b mline 7136} 7137t clear 7138:clear 7139s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 7140t quote 7141s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 7142t quote 7143b any 7144:quote 7145s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 7146s/\[/\\&/g 7147s/\]/\\&/g 7148s/\$/$$/g 7149H 7150:any 7151${ 7152 g 7153 s/^\n// 7154 s/\n/ /g 7155 p 7156} 7157' 7158DEFS=`sed -n "$ac_script" confdefs.h` 7159 7160 7161ac_libobjs= 7162ac_ltlibobjs= 7163U= 7164for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7165 # 1. Remove the extension, and $U if already installed. 7166 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7167 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7168 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7169 # will be set to the directory where LIBOBJS objects are built. 7170 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7171 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7172done 7173LIBOBJS=$ac_libobjs 7174 7175LTLIBOBJS=$ac_ltlibobjs 7176 7177 7178 7179 7180: "${CONFIG_STATUS=./config.status}" 7181ac_write_fail=0 7182ac_clean_files_save=$ac_clean_files 7183ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 7185$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7186as_write_fail=0 7187cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 7188#! $SHELL 7189# Generated by $as_me. 7190# Run this file to recreate the current configuration. 7191# Compiler output produced by configure, useful for debugging 7192# configure, is in config.log if it exists. 7193 7194debug=false 7195ac_cs_recheck=false 7196ac_cs_silent=false 7197 7198SHELL=\${CONFIG_SHELL-$SHELL} 7199export SHELL 7200_ASEOF 7201cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 7202## -------------------- ## 7203## M4sh Initialization. ## 7204## -------------------- ## 7205 7206# Be more Bourne compatible 7207DUALCASE=1; export DUALCASE # for MKS sh 7208if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 7209 emulate sh 7210 NULLCMD=: 7211 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 7212 # is contrary to our usage. Disable this feature. 7213 alias -g '${1+"$@"}'='"$@"' 7214 setopt NO_GLOB_SUBST 7215else 7216 case `(set -o) 2>/dev/null` in #( 7217 *posix*) : 7218 set -o posix ;; #( 7219 *) : 7220 ;; 7221esac 7222fi 7223 7224 7225as_nl=' 7226' 7227export as_nl 7228# Printing a long string crashes Solaris 7 /usr/bin/printf. 7229as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7230as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7231as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 7232# Prefer a ksh shell builtin over an external printf program on Solaris, 7233# but without wasting forks for bash or zsh. 7234if test -z "$BASH_VERSION$ZSH_VERSION" \ 7235 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 7236 as_echo='print -r --' 7237 as_echo_n='print -rn --' 7238elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7239 as_echo='printf %s\n' 7240 as_echo_n='printf %s' 7241else 7242 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7243 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7244 as_echo_n='/usr/ucb/echo -n' 7245 else 7246 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7247 as_echo_n_body='eval 7248 arg=$1; 7249 case $arg in #( 7250 *"$as_nl"*) 7251 expr "X$arg" : "X\\(.*\\)$as_nl"; 7252 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7253 esac; 7254 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7255 ' 7256 export as_echo_n_body 7257 as_echo_n='sh -c $as_echo_n_body as_echo' 7258 fi 7259 export as_echo_body 7260 as_echo='sh -c $as_echo_body as_echo' 7261fi 7262 7263# The user is always right. 7264if test "${PATH_SEPARATOR+set}" != set; then 7265 PATH_SEPARATOR=: 7266 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7267 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7268 PATH_SEPARATOR=';' 7269 } 7270fi 7271 7272 7273# IFS 7274# We need space, tab and new line, in precisely that order. Quoting is 7275# there to prevent editors from complaining about space-tab. 7276# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7277# splitting by setting IFS to empty value.) 7278IFS=" "" $as_nl" 7279 7280# Find who we are. Look in the path if we contain no directory separator. 7281as_myself= 7282case $0 in #(( 7283 *[\\/]* ) as_myself=$0 ;; 7284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7285for as_dir in $PATH 7286do 7287 IFS=$as_save_IFS 7288 test -z "$as_dir" && as_dir=. 7289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7290 done 7291IFS=$as_save_IFS 7292 7293 ;; 7294esac 7295# We did not find ourselves, most probably we were run as `sh COMMAND' 7296# in which case we are not to be found in the path. 7297if test "x$as_myself" = x; then 7298 as_myself=$0 7299fi 7300if test ! -f "$as_myself"; then 7301 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7302 exit 1 7303fi 7304 7305# Unset variables that we do not need and which cause bugs (e.g. in 7306# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7307# suppresses any "Segmentation fault" message there. '((' could 7308# trigger a bug in pdksh 5.2.14. 7309for as_var in BASH_ENV ENV MAIL MAILPATH 7310do eval test x\${$as_var+set} = xset \ 7311 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7312done 7313PS1='$ ' 7314PS2='> ' 7315PS4='+ ' 7316 7317# NLS nuisances. 7318LC_ALL=C 7319export LC_ALL 7320LANGUAGE=C 7321export LANGUAGE 7322 7323# CDPATH. 7324(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7325 7326 7327# as_fn_error STATUS ERROR [LINENO LOG_FD] 7328# ---------------------------------------- 7329# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7330# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7331# script with STATUS, using 1 if that was 0. 7332as_fn_error () 7333{ 7334 as_status=$1; test $as_status -eq 0 && as_status=1 7335 if test "$4"; then 7336 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7337 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7338 fi 7339 $as_echo "$as_me: error: $2" >&2 7340 as_fn_exit $as_status 7341} # as_fn_error 7342 7343 7344# as_fn_set_status STATUS 7345# ----------------------- 7346# Set $? to STATUS, without forking. 7347as_fn_set_status () 7348{ 7349 return $1 7350} # as_fn_set_status 7351 7352# as_fn_exit STATUS 7353# ----------------- 7354# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7355as_fn_exit () 7356{ 7357 set +e 7358 as_fn_set_status $1 7359 exit $1 7360} # as_fn_exit 7361 7362# as_fn_unset VAR 7363# --------------- 7364# Portably unset VAR. 7365as_fn_unset () 7366{ 7367 { eval $1=; unset $1;} 7368} 7369as_unset=as_fn_unset 7370# as_fn_append VAR VALUE 7371# ---------------------- 7372# Append the text in VALUE to the end of the definition contained in VAR. Take 7373# advantage of any shell optimizations that allow amortized linear growth over 7374# repeated appends, instead of the typical quadratic growth present in naive 7375# implementations. 7376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7377 eval 'as_fn_append () 7378 { 7379 eval $1+=\$2 7380 }' 7381else 7382 as_fn_append () 7383 { 7384 eval $1=\$$1\$2 7385 } 7386fi # as_fn_append 7387 7388# as_fn_arith ARG... 7389# ------------------ 7390# Perform arithmetic evaluation on the ARGs, and store the result in the 7391# global $as_val. Take advantage of shells that can avoid forks. The arguments 7392# must be portable across $(()) and expr. 7393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7394 eval 'as_fn_arith () 7395 { 7396 as_val=$(( $* )) 7397 }' 7398else 7399 as_fn_arith () 7400 { 7401 as_val=`expr "$@" || test $? -eq 1` 7402 } 7403fi # as_fn_arith 7404 7405 7406if expr a : '\(a\)' >/dev/null 2>&1 && 7407 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7408 as_expr=expr 7409else 7410 as_expr=false 7411fi 7412 7413if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7414 as_basename=basename 7415else 7416 as_basename=false 7417fi 7418 7419if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7420 as_dirname=dirname 7421else 7422 as_dirname=false 7423fi 7424 7425as_me=`$as_basename -- "$0" || 7426$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7427 X"$0" : 'X\(//\)$' \| \ 7428 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7429$as_echo X/"$0" | 7430 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7431 s//\1/ 7432 q 7433 } 7434 /^X\/\(\/\/\)$/{ 7435 s//\1/ 7436 q 7437 } 7438 /^X\/\(\/\).*/{ 7439 s//\1/ 7440 q 7441 } 7442 s/.*/./; q'` 7443 7444# Avoid depending upon Character Ranges. 7445as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7446as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7447as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7448as_cr_digits='0123456789' 7449as_cr_alnum=$as_cr_Letters$as_cr_digits 7450 7451ECHO_C= ECHO_N= ECHO_T= 7452case `echo -n x` in #((((( 7453-n*) 7454 case `echo 'xy\c'` in 7455 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7456 xy) ECHO_C='\c';; 7457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7458 ECHO_T=' ';; 7459 esac;; 7460*) 7461 ECHO_N='-n';; 7462esac 7463 7464rm -f conf$$ conf$$.exe conf$$.file 7465if test -d conf$$.dir; then 7466 rm -f conf$$.dir/conf$$.file 7467else 7468 rm -f conf$$.dir 7469 mkdir conf$$.dir 2>/dev/null 7470fi 7471if (echo >conf$$.file) 2>/dev/null; then 7472 if ln -s conf$$.file conf$$ 2>/dev/null; then 7473 as_ln_s='ln -s' 7474 # ... but there are two gotchas: 7475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7477 # In both cases, we have to default to `cp -pR'. 7478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7479 as_ln_s='cp -pR' 7480 elif ln conf$$.file conf$$ 2>/dev/null; then 7481 as_ln_s=ln 7482 else 7483 as_ln_s='cp -pR' 7484 fi 7485else 7486 as_ln_s='cp -pR' 7487fi 7488rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7489rmdir conf$$.dir 2>/dev/null 7490 7491 7492# as_fn_mkdir_p 7493# ------------- 7494# Create "$as_dir" as a directory, including parents if necessary. 7495as_fn_mkdir_p () 7496{ 7497 7498 case $as_dir in #( 7499 -*) as_dir=./$as_dir;; 7500 esac 7501 test -d "$as_dir" || eval $as_mkdir_p || { 7502 as_dirs= 7503 while :; do 7504 case $as_dir in #( 7505 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7506 *) as_qdir=$as_dir;; 7507 esac 7508 as_dirs="'$as_qdir' $as_dirs" 7509 as_dir=`$as_dirname -- "$as_dir" || 7510$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7511 X"$as_dir" : 'X\(//\)[^/]' \| \ 7512 X"$as_dir" : 'X\(//\)$' \| \ 7513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7514$as_echo X"$as_dir" | 7515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7516 s//\1/ 7517 q 7518 } 7519 /^X\(\/\/\)[^/].*/{ 7520 s//\1/ 7521 q 7522 } 7523 /^X\(\/\/\)$/{ 7524 s//\1/ 7525 q 7526 } 7527 /^X\(\/\).*/{ 7528 s//\1/ 7529 q 7530 } 7531 s/.*/./; q'` 7532 test -d "$as_dir" && break 7533 done 7534 test -z "$as_dirs" || eval "mkdir $as_dirs" 7535 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7536 7537 7538} # as_fn_mkdir_p 7539if mkdir -p . 2>/dev/null; then 7540 as_mkdir_p='mkdir -p "$as_dir"' 7541else 7542 test -d ./-p && rmdir ./-p 7543 as_mkdir_p=false 7544fi 7545 7546 7547# as_fn_executable_p FILE 7548# ----------------------- 7549# Test if FILE is an executable regular file. 7550as_fn_executable_p () 7551{ 7552 test -f "$1" && test -x "$1" 7553} # as_fn_executable_p 7554as_test_x='test -x' 7555as_executable_p=as_fn_executable_p 7556 7557# Sed expression to map a string onto a valid CPP name. 7558as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7559 7560# Sed expression to map a string onto a valid variable name. 7561as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7562 7563 7564exec 6>&1 7565## ----------------------------------- ## 7566## Main body of $CONFIG_STATUS script. ## 7567## ----------------------------------- ## 7568_ASEOF 7569test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7570 7571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7572# Save the log message, to keep $0 and so on meaningful, and to 7573# report actual input values of CONFIG_FILES etc. instead of their 7574# values after options handling. 7575ac_log=" 7576This file was extended by pgtcl $as_me 2.1.1, which was 7577generated by GNU Autoconf 2.69. Invocation command line was 7578 7579 CONFIG_FILES = $CONFIG_FILES 7580 CONFIG_HEADERS = $CONFIG_HEADERS 7581 CONFIG_LINKS = $CONFIG_LINKS 7582 CONFIG_COMMANDS = $CONFIG_COMMANDS 7583 $ $0 $@ 7584 7585on `(hostname || uname -n) 2>/dev/null | sed 1q` 7586" 7587 7588_ACEOF 7589 7590case $ac_config_files in *" 7591"*) set x $ac_config_files; shift; ac_config_files=$*;; 7592esac 7593 7594 7595 7596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7597# Files that config.status was made for. 7598config_files="$ac_config_files" 7599 7600_ACEOF 7601 7602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7603ac_cs_usage="\ 7604\`$as_me' instantiates files and other configuration actions 7605from templates according to the current configuration. Unless the files 7606and actions are specified as TAGs, all are instantiated by default. 7607 7608Usage: $0 [OPTION]... [TAG]... 7609 7610 -h, --help print this help, then exit 7611 -V, --version print version number and configuration settings, then exit 7612 --config print configuration, then exit 7613 -q, --quiet, --silent 7614 do not print progress messages 7615 -d, --debug don't remove temporary files 7616 --recheck update $as_me by reconfiguring in the same conditions 7617 --file=FILE[:TEMPLATE] 7618 instantiate the configuration file FILE 7619 7620Configuration files: 7621$config_files 7622 7623Report bugs to the package provider." 7624 7625_ACEOF 7626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7627ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7628ac_cs_version="\\ 7629pgtcl config.status 2.1.1 7630configured by $0, generated by GNU Autoconf 2.69, 7631 with options \\"\$ac_cs_config\\" 7632 7633Copyright (C) 2012 Free Software Foundation, Inc. 7634This config.status script is free software; the Free Software Foundation 7635gives unlimited permission to copy, distribute and modify it." 7636 7637ac_pwd='$ac_pwd' 7638srcdir='$srcdir' 7639INSTALL='$INSTALL' 7640test -n "\$AWK" || AWK=awk 7641_ACEOF 7642 7643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7644# The default lists apply if the user does not specify any file. 7645ac_need_defaults=: 7646while test $# != 0 7647do 7648 case $1 in 7649 --*=?*) 7650 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7651 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7652 ac_shift=: 7653 ;; 7654 --*=) 7655 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7656 ac_optarg= 7657 ac_shift=: 7658 ;; 7659 *) 7660 ac_option=$1 7661 ac_optarg=$2 7662 ac_shift=shift 7663 ;; 7664 esac 7665 7666 case $ac_option in 7667 # Handling of the options. 7668 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7669 ac_cs_recheck=: ;; 7670 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7671 $as_echo "$ac_cs_version"; exit ;; 7672 --config | --confi | --conf | --con | --co | --c ) 7673 $as_echo "$ac_cs_config"; exit ;; 7674 --debug | --debu | --deb | --de | --d | -d ) 7675 debug=: ;; 7676 --file | --fil | --fi | --f ) 7677 $ac_shift 7678 case $ac_optarg in 7679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7680 '') as_fn_error $? "missing file argument" ;; 7681 esac 7682 as_fn_append CONFIG_FILES " '$ac_optarg'" 7683 ac_need_defaults=false;; 7684 --he | --h | --help | --hel | -h ) 7685 $as_echo "$ac_cs_usage"; exit ;; 7686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7687 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7688 ac_cs_silent=: ;; 7689 7690 # This is an error. 7691 -*) as_fn_error $? "unrecognized option: \`$1' 7692Try \`$0 --help' for more information." ;; 7693 7694 *) as_fn_append ac_config_targets " $1" 7695 ac_need_defaults=false ;; 7696 7697 esac 7698 shift 7699done 7700 7701ac_configure_extra_args= 7702 7703if $ac_cs_silent; then 7704 exec 6>/dev/null 7705 ac_configure_extra_args="$ac_configure_extra_args --silent" 7706fi 7707 7708_ACEOF 7709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7710if \$ac_cs_recheck; then 7711 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7712 shift 7713 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7714 CONFIG_SHELL='$SHELL' 7715 export CONFIG_SHELL 7716 exec "\$@" 7717fi 7718 7719_ACEOF 7720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7721exec 5>>config.log 7722{ 7723 echo 7724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7725## Running $as_me. ## 7726_ASBOX 7727 $as_echo "$ac_log" 7728} >&5 7729 7730_ACEOF 7731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7732_ACEOF 7733 7734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7735 7736# Handling of arguments. 7737for ac_config_target in $ac_config_targets 7738do 7739 case $ac_config_target in 7740 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7741 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 7742 7743 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7744 esac 7745done 7746 7747 7748# If the user did not use the arguments to specify the items to instantiate, 7749# then the envvar interface is used. Set only those that are not. 7750# We use the long form for the default assignment because of an extremely 7751# bizarre bug on SunOS 4.1.3. 7752if $ac_need_defaults; then 7753 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7754fi 7755 7756# Have a temporary directory for convenience. Make it in the build tree 7757# simply because there is no reason against having it here, and in addition, 7758# creating and moving files from /tmp can sometimes cause problems. 7759# Hook for its removal unless debugging. 7760# Note that there is a small window in which the directory will not be cleaned: 7761# after its creation but before its name has been assigned to `$tmp'. 7762$debug || 7763{ 7764 tmp= ac_tmp= 7765 trap 'exit_status=$? 7766 : "${ac_tmp:=$tmp}" 7767 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7768' 0 7769 trap 'as_fn_exit 1' 1 2 13 15 7770} 7771# Create a (secure) tmp directory for tmp files. 7772 7773{ 7774 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7775 test -d "$tmp" 7776} || 7777{ 7778 tmp=./conf$$-$RANDOM 7779 (umask 077 && mkdir "$tmp") 7780} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7781ac_tmp=$tmp 7782 7783# Set up the scripts for CONFIG_FILES section. 7784# No need to generate them if there are no CONFIG_FILES. 7785# This happens for instance with `./config.status config.h'. 7786if test -n "$CONFIG_FILES"; then 7787 7788 7789ac_cr=`echo X | tr X '\015'` 7790# On cygwin, bash can eat \r inside `` if the user requested igncr. 7791# But we know of no other shell where ac_cr would be empty at this 7792# point, so we can use a bashism as a fallback. 7793if test "x$ac_cr" = x; then 7794 eval ac_cr=\$\'\\r\' 7795fi 7796ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7797if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7798 ac_cs_awk_cr='\\r' 7799else 7800 ac_cs_awk_cr=$ac_cr 7801fi 7802 7803echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 7804_ACEOF 7805 7806 7807{ 7808 echo "cat >conf$$subs.awk <<_ACEOF" && 7809 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7810 echo "_ACEOF" 7811} >conf$$subs.sh || 7812 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7813ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 7814ac_delim='%!_!# ' 7815for ac_last_try in false false false false false :; do 7816 . ./conf$$subs.sh || 7817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7818 7819 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7820 if test $ac_delim_n = $ac_delim_num; then 7821 break 7822 elif $ac_last_try; then 7823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7824 else 7825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7826 fi 7827done 7828rm -f conf$$subs.sh 7829 7830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7831cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 7832_ACEOF 7833sed -n ' 7834h 7835s/^/S["/; s/!.*/"]=/ 7836p 7837g 7838s/^[^!]*!// 7839:repl 7840t repl 7841s/'"$ac_delim"'$// 7842t delim 7843:nl 7844h 7845s/\(.\{148\}\)..*/\1/ 7846t more1 7847s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7848p 7849n 7850b repl 7851:more1 7852s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7853p 7854g 7855s/.\{148\}// 7856t nl 7857:delim 7858h 7859s/\(.\{148\}\)..*/\1/ 7860t more2 7861s/["\\]/\\&/g; s/^/"/; s/$/"/ 7862p 7863b 7864:more2 7865s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7866p 7867g 7868s/.\{148\}// 7869t delim 7870' <conf$$subs.awk | sed ' 7871/^[^""]/{ 7872 N 7873 s/\n// 7874} 7875' >>$CONFIG_STATUS || ac_write_fail=1 7876rm -f conf$$subs.awk 7877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7878_ACAWK 7879cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 7880 for (key in S) S_is_set[key] = 1 7881 FS = "" 7882 7883} 7884{ 7885 line = $ 0 7886 nfields = split(line, field, "@") 7887 substed = 0 7888 len = length(field[1]) 7889 for (i = 2; i < nfields; i++) { 7890 key = field[i] 7891 keylen = length(key) 7892 if (S_is_set[key]) { 7893 value = S[key] 7894 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7895 len += length(value) + length(field[++i]) 7896 substed = 1 7897 } else 7898 len += 1 + keylen 7899 } 7900 7901 print line 7902} 7903 7904_ACAWK 7905_ACEOF 7906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7907if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7908 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7909else 7910 cat 7911fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 7912 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 7913_ACEOF 7914 7915# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 7916# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 7917# trailing colons and then remove the whole line if VPATH becomes empty 7918# (actually we leave an empty line to preserve line numbers). 7919if test "x$srcdir" = x.; then 7920 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 7921h 7922s/// 7923s/^/:/ 7924s/[ ]*$/:/ 7925s/:\$(srcdir):/:/g 7926s/:\${srcdir}:/:/g 7927s/:@srcdir@:/:/g 7928s/^:*// 7929s/:*$// 7930x 7931s/\(=[ ]*\).*/\1/ 7932G 7933s/\n// 7934s/^[^=]*=[ ]*$// 7935}' 7936fi 7937 7938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7939fi # test -n "$CONFIG_FILES" 7940 7941 7942eval set X " :F $CONFIG_FILES " 7943shift 7944for ac_tag 7945do 7946 case $ac_tag in 7947 :[FHLC]) ac_mode=$ac_tag; continue;; 7948 esac 7949 case $ac_mode$ac_tag in 7950 :[FHL]*:*);; 7951 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 7952 :[FH]-) ac_tag=-:-;; 7953 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7954 esac 7955 ac_save_IFS=$IFS 7956 IFS=: 7957 set x $ac_tag 7958 IFS=$ac_save_IFS 7959 shift 7960 ac_file=$1 7961 shift 7962 7963 case $ac_mode in 7964 :L) ac_source=$1;; 7965 :[FH]) 7966 ac_file_inputs= 7967 for ac_f 7968 do 7969 case $ac_f in 7970 -) ac_f="$ac_tmp/stdin";; 7971 *) # Look for the file first in the build tree, then in the source tree 7972 # (if the path is not absolute). The absolute path cannot be DOS-style, 7973 # because $ac_f cannot contain `:'. 7974 test -f "$ac_f" || 7975 case $ac_f in 7976 [\\/$]*) false;; 7977 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7978 esac || 7979 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7980 esac 7981 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7982 as_fn_append ac_file_inputs " '$ac_f'" 7983 done 7984 7985 # Let's still pretend it is `configure' which instantiates (i.e., don't 7986 # use $as_me), people would be surprised to read: 7987 # /* config.h. Generated by config.status. */ 7988 configure_input='Generated from '` 7989 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7990 `' by configure.' 7991 if test x"$ac_file" != x-; then 7992 configure_input="$ac_file. $configure_input" 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7994$as_echo "$as_me: creating $ac_file" >&6;} 7995 fi 7996 # Neutralize special characters interpreted by sed in replacement strings. 7997 case $configure_input in #( 7998 *\&* | *\|* | *\\* ) 7999 ac_sed_conf_input=`$as_echo "$configure_input" | 8000 sed 's/[\\\\&|]/\\\\&/g'`;; #( 8001 *) ac_sed_conf_input=$configure_input;; 8002 esac 8003 8004 case $ac_tag in 8005 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 8006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 8007 esac 8008 ;; 8009 esac 8010 8011 ac_dir=`$as_dirname -- "$ac_file" || 8012$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8013 X"$ac_file" : 'X\(//\)[^/]' \| \ 8014 X"$ac_file" : 'X\(//\)$' \| \ 8015 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8016$as_echo X"$ac_file" | 8017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8018 s//\1/ 8019 q 8020 } 8021 /^X\(\/\/\)[^/].*/{ 8022 s//\1/ 8023 q 8024 } 8025 /^X\(\/\/\)$/{ 8026 s//\1/ 8027 q 8028 } 8029 /^X\(\/\).*/{ 8030 s//\1/ 8031 q 8032 } 8033 s/.*/./; q'` 8034 as_dir="$ac_dir"; as_fn_mkdir_p 8035 ac_builddir=. 8036 8037case "$ac_dir" in 8038.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8039*) 8040 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 8041 # A ".." for each directory in $ac_dir_suffix. 8042 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 8043 case $ac_top_builddir_sub in 8044 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8045 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8046 esac ;; 8047esac 8048ac_abs_top_builddir=$ac_pwd 8049ac_abs_builddir=$ac_pwd$ac_dir_suffix 8050# for backward compatibility: 8051ac_top_builddir=$ac_top_build_prefix 8052 8053case $srcdir in 8054 .) # We are building in place. 8055 ac_srcdir=. 8056 ac_top_srcdir=$ac_top_builddir_sub 8057 ac_abs_top_srcdir=$ac_pwd ;; 8058 [\\/]* | ?:[\\/]* ) # Absolute name. 8059 ac_srcdir=$srcdir$ac_dir_suffix; 8060 ac_top_srcdir=$srcdir 8061 ac_abs_top_srcdir=$srcdir ;; 8062 *) # Relative name. 8063 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8064 ac_top_srcdir=$ac_top_build_prefix$srcdir 8065 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8066esac 8067ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8068 8069 8070 case $ac_mode in 8071 :F) 8072 # 8073 # CONFIG_FILE 8074 # 8075 8076 case $INSTALL in 8077 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8078 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 8079 esac 8080_ACEOF 8081 8082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8083# If the template does not know about datarootdir, expand it. 8084# FIXME: This hack should be removed a few years after 2.60. 8085ac_datarootdir_hack=; ac_datarootdir_seen= 8086ac_sed_dataroot=' 8087/datarootdir/ { 8088 p 8089 q 8090} 8091/@datadir@/p 8092/@docdir@/p 8093/@infodir@/p 8094/@localedir@/p 8095/@mandir@/p' 8096case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 8097*datarootdir*) ac_datarootdir_seen=yes;; 8098*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8100$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8101_ACEOF 8102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8103 ac_datarootdir_hack=' 8104 s&@datadir@&$datadir&g 8105 s&@docdir@&$docdir&g 8106 s&@infodir@&$infodir&g 8107 s&@localedir@&$localedir&g 8108 s&@mandir@&$mandir&g 8109 s&\\\${datarootdir}&$datarootdir&g' ;; 8110esac 8111_ACEOF 8112 8113# Neutralize VPATH when `$srcdir' = `.'. 8114# Shell code in configure.ac might set extrasub. 8115# FIXME: do we really want to maintain this feature? 8116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8117ac_sed_extra="$ac_vpsub 8118$extrasub 8119_ACEOF 8120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8121:t 8122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8123s|@configure_input@|$ac_sed_conf_input|;t t 8124s&@top_builddir@&$ac_top_builddir_sub&;t t 8125s&@top_build_prefix@&$ac_top_build_prefix&;t t 8126s&@srcdir@&$ac_srcdir&;t t 8127s&@abs_srcdir@&$ac_abs_srcdir&;t t 8128s&@top_srcdir@&$ac_top_srcdir&;t t 8129s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8130s&@builddir@&$ac_builddir&;t t 8131s&@abs_builddir@&$ac_abs_builddir&;t t 8132s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8133s&@INSTALL@&$ac_INSTALL&;t t 8134$ac_datarootdir_hack 8135" 8136eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 8137 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8138 8139test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8140 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 8141 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 8142 "$ac_tmp/out"`; test -z "$ac_out"; } && 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8144which seems to be undefined. Please make sure it is defined" >&5 8145$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8146which seems to be undefined. Please make sure it is defined" >&2;} 8147 8148 rm -f "$ac_tmp/stdin" 8149 case $ac_file in 8150 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8151 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8152 esac \ 8153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8154 ;; 8155 8156 8157 8158 esac 8159 8160done # for ac_tag 8161 8162 8163as_fn_exit 0 8164_ACEOF 8165ac_clean_files=$ac_clean_files_save 8166 8167test $ac_write_fail = 0 || 8168 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8169 8170 8171# configure is writing to config.log, and then calls config.status. 8172# config.status does its own redirection, appending to config.log. 8173# Unfortunately, on DOS this fails, as config.log is still kept open 8174# by configure, so config.status won't be able to write to it; its 8175# output is simply discarded. So we exec the FD to /dev/null, 8176# effectively closing config.log, so it can be properly (re)opened and 8177# appended to by config.status. When coming back to configure, we 8178# need to make the FD available again. 8179if test "$no_create" != yes; then 8180 ac_cs_success=: 8181 ac_config_status_args= 8182 test "$silent" = yes && 8183 ac_config_status_args="$ac_config_status_args --quiet" 8184 exec 5>/dev/null 8185 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8186 exec 5>>config.log 8187 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8188 # would make configure fail if this is the last instruction. 8189 $ac_cs_success || as_fn_exit 1 8190fi 8191if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8193$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8194fi 8195 8196