1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --with-tcl directory containing tcl configuration (tclConfig.sh)" 16ac_help="$ac_help 17 --with-tclinclude directory containing the public Tcl header files" 18ac_help="$ac_help 19 --enable-threads build with threads" 20ac_help="$ac_help 21 --enable-shared build and link with shared libraries [--enable-shared]" 22ac_help="$ac_help 23 --enable-64bit enable 64bit support (where applicable)" 24ac_help="$ac_help 25 --enable-64bit-vis enable 64bit Sparc VIS support" 26ac_help="$ac_help 27 --disable-load disallow dynamic loading and "load" command" 28ac_help="$ac_help 29 --enable-symbols build with debugging symbols [--disable-symbols]" 30ac_help="$ac_help 31 --with-aolserver directory with AOLserver distribution" 32ac_help="$ac_help 33 --enable-dtd build with the dtd support [--enable-dtd]" 34ac_help="$ac_help 35 --enable-ns build with the namespace support [--enable-ns]" 36ac_help="$ac_help 37 --enable-unknown enable built-in unknown command [--disable-unknown]" 38ac_help="$ac_help 39 --enable-tdomalloc build with the tDOM allocator [--enable-tdomalloc]" 40 41# Initialize some variables set by options. 42# The variables have the same names as the options, with 43# dashes changed to underlines. 44build=NONE 45cache_file=./config.cache 46exec_prefix=NONE 47host=NONE 48no_create= 49nonopt=NONE 50no_recursion= 51prefix=NONE 52program_prefix=NONE 53program_suffix=NONE 54program_transform_name=s,x,x, 55silent= 56site= 57srcdir= 58target=NONE 59verbose= 60x_includes=NONE 61x_libraries=NONE 62bindir='${exec_prefix}/bin' 63sbindir='${exec_prefix}/sbin' 64libexecdir='${exec_prefix}/libexec' 65datadir='${prefix}/share' 66sysconfdir='${prefix}/etc' 67sharedstatedir='${prefix}/com' 68localstatedir='${prefix}/var' 69libdir='${exec_prefix}/lib' 70includedir='${prefix}/include' 71oldincludedir='/usr/include' 72infodir='${prefix}/info' 73mandir='${prefix}/man' 74 75# Initialize some other variables. 76subdirs= 77MFLAGS= MAKEFLAGS= 78SHELL=${CONFIG_SHELL-/bin/sh} 79# Maximum number of lines to put in a shell here document. 80ac_max_here_lines=12 81 82ac_prev= 83for ac_option 84do 85 86 # If the previous option needs an argument, assign it. 87 if test -n "$ac_prev"; then 88 eval "$ac_prev=\$ac_option" 89 ac_prev= 90 continue 91 fi 92 93 case "$ac_option" in 94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 95 *) ac_optarg= ;; 96 esac 97 98 # Accept the important Cygnus configure options, so we can diagnose typos. 99 100 case "$ac_option" in 101 102 -bindir | --bindir | --bindi | --bind | --bin | --bi) 103 ac_prev=bindir ;; 104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 105 bindir="$ac_optarg" ;; 106 107 -build | --build | --buil | --bui | --bu) 108 ac_prev=build ;; 109 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 110 build="$ac_optarg" ;; 111 112 -cache-file | --cache-file | --cache-fil | --cache-fi \ 113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 114 ac_prev=cache_file ;; 115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 117 cache_file="$ac_optarg" ;; 118 119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 120 ac_prev=datadir ;; 121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 122 | --da=*) 123 datadir="$ac_optarg" ;; 124 125 -disable-* | --disable-*) 126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 127 # Reject names that are not valid shell variable names. 128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 130 fi 131 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 132 eval "enable_${ac_feature}=no" ;; 133 134 -enable-* | --enable-*) 135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 136 # Reject names that are not valid shell variable names. 137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 139 fi 140 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 141 case "$ac_option" in 142 *=*) ;; 143 *) ac_optarg=yes ;; 144 esac 145 eval "enable_${ac_feature}='$ac_optarg'" ;; 146 147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 149 | --exec | --exe | --ex) 150 ac_prev=exec_prefix ;; 151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 153 | --exec=* | --exe=* | --ex=*) 154 exec_prefix="$ac_optarg" ;; 155 156 -gas | --gas | --ga | --g) 157 # Obsolete; use --with-gas. 158 with_gas=yes ;; 159 160 -help | --help | --hel | --he) 161 # Omit some internal or obsolete options to make the list less imposing. 162 # This message is too long to be a string in the A/UX 3.1 sh. 163 cat << EOF 164Usage: configure [options] [host] 165Options: [defaults in brackets after descriptions] 166Configuration: 167 --cache-file=FILE cache test results in FILE 168 --help print this message 169 --no-create do not create output files 170 --quiet, --silent do not print \`checking...' messages 171 --version print the version of autoconf that created configure 172Directory and file names: 173 --prefix=PREFIX install architecture-independent files in PREFIX 174 [$ac_default_prefix] 175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 176 [same as prefix] 177 --bindir=DIR user executables in DIR [EPREFIX/bin] 178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 180 --datadir=DIR read-only architecture-independent data in DIR 181 [PREFIX/share] 182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 183 --sharedstatedir=DIR modifiable architecture-independent data in DIR 184 [PREFIX/com] 185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 186 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 187 --includedir=DIR C header files in DIR [PREFIX/include] 188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 189 --infodir=DIR info documentation in DIR [PREFIX/info] 190 --mandir=DIR man documentation in DIR [PREFIX/man] 191 --srcdir=DIR find the sources in DIR [configure dir or ..] 192 --program-prefix=PREFIX prepend PREFIX to installed program names 193 --program-suffix=SUFFIX append SUFFIX to installed program names 194 --program-transform-name=PROGRAM 195 run sed PROGRAM on installed program names 196EOF 197 cat << EOF 198Host type: 199 --build=BUILD configure for building on BUILD [BUILD=HOST] 200 --host=HOST configure for HOST [guessed] 201 --target=TARGET configure for TARGET [TARGET=HOST] 202Features and packages: 203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 207 --x-includes=DIR X include files are in DIR 208 --x-libraries=DIR X library files are in DIR 209EOF 210 if test -n "$ac_help"; then 211 echo "--enable and --with options recognized:$ac_help" 212 fi 213 exit 0 ;; 214 215 -host | --host | --hos | --ho) 216 ac_prev=host ;; 217 -host=* | --host=* | --hos=* | --ho=*) 218 host="$ac_optarg" ;; 219 220 -includedir | --includedir | --includedi | --included | --include \ 221 | --includ | --inclu | --incl | --inc) 222 ac_prev=includedir ;; 223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 224 | --includ=* | --inclu=* | --incl=* | --inc=*) 225 includedir="$ac_optarg" ;; 226 227 -infodir | --infodir | --infodi | --infod | --info | --inf) 228 ac_prev=infodir ;; 229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 230 infodir="$ac_optarg" ;; 231 232 -libdir | --libdir | --libdi | --libd) 233 ac_prev=libdir ;; 234 -libdir=* | --libdir=* | --libdi=* | --libd=*) 235 libdir="$ac_optarg" ;; 236 237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 238 | --libexe | --libex | --libe) 239 ac_prev=libexecdir ;; 240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 241 | --libexe=* | --libex=* | --libe=*) 242 libexecdir="$ac_optarg" ;; 243 244 -localstatedir | --localstatedir | --localstatedi | --localstated \ 245 | --localstate | --localstat | --localsta | --localst \ 246 | --locals | --local | --loca | --loc | --lo) 247 ac_prev=localstatedir ;; 248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 251 localstatedir="$ac_optarg" ;; 252 253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 254 ac_prev=mandir ;; 255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 256 mandir="$ac_optarg" ;; 257 258 -nfp | --nfp | --nf) 259 # Obsolete; use --without-fp. 260 with_fp=no ;; 261 262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 263 | --no-cr | --no-c) 264 no_create=yes ;; 265 266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 268 no_recursion=yes ;; 269 270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 272 | --oldin | --oldi | --old | --ol | --o) 273 ac_prev=oldincludedir ;; 274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 277 oldincludedir="$ac_optarg" ;; 278 279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 280 ac_prev=prefix ;; 281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 282 prefix="$ac_optarg" ;; 283 284 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 285 | --program-pre | --program-pr | --program-p) 286 ac_prev=program_prefix ;; 287 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 289 program_prefix="$ac_optarg" ;; 290 291 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 292 | --program-suf | --program-su | --program-s) 293 ac_prev=program_suffix ;; 294 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 296 program_suffix="$ac_optarg" ;; 297 298 -program-transform-name | --program-transform-name \ 299 | --program-transform-nam | --program-transform-na \ 300 | --program-transform-n | --program-transform- \ 301 | --program-transform | --program-transfor \ 302 | --program-transfo | --program-transf \ 303 | --program-trans | --program-tran \ 304 | --progr-tra | --program-tr | --program-t) 305 ac_prev=program_transform_name ;; 306 -program-transform-name=* | --program-transform-name=* \ 307 | --program-transform-nam=* | --program-transform-na=* \ 308 | --program-transform-n=* | --program-transform-=* \ 309 | --program-transform=* | --program-transfor=* \ 310 | --program-transfo=* | --program-transf=* \ 311 | --program-trans=* | --program-tran=* \ 312 | --progr-tra=* | --program-tr=* | --program-t=*) 313 program_transform_name="$ac_optarg" ;; 314 315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 316 | -silent | --silent | --silen | --sile | --sil) 317 silent=yes ;; 318 319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 320 ac_prev=sbindir ;; 321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 322 | --sbi=* | --sb=*) 323 sbindir="$ac_optarg" ;; 324 325 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 327 | --sharedst | --shareds | --shared | --share | --shar \ 328 | --sha | --sh) 329 ac_prev=sharedstatedir ;; 330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 333 | --sha=* | --sh=*) 334 sharedstatedir="$ac_optarg" ;; 335 336 -site | --site | --sit) 337 ac_prev=site ;; 338 -site=* | --site=* | --sit=*) 339 site="$ac_optarg" ;; 340 341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 342 ac_prev=srcdir ;; 343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 344 srcdir="$ac_optarg" ;; 345 346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 347 | --syscon | --sysco | --sysc | --sys | --sy) 348 ac_prev=sysconfdir ;; 349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 351 sysconfdir="$ac_optarg" ;; 352 353 -target | --target | --targe | --targ | --tar | --ta | --t) 354 ac_prev=target ;; 355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 356 target="$ac_optarg" ;; 357 358 -v | -verbose | --verbose | --verbos | --verbo | --verb) 359 verbose=yes ;; 360 361 -version | --version | --versio | --versi | --vers) 362 echo "configure generated by autoconf version 2.13" 363 exit 0 ;; 364 365 -with-* | --with-*) 366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 367 # Reject names that are not valid shell variable names. 368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 370 fi 371 ac_package=`echo $ac_package| sed 's/-/_/g'` 372 case "$ac_option" in 373 *=*) ;; 374 *) ac_optarg=yes ;; 375 esac 376 eval "with_${ac_package}='$ac_optarg'" ;; 377 378 -without-* | --without-*) 379 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 380 # Reject names that are not valid shell variable names. 381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 383 fi 384 ac_package=`echo $ac_package| sed 's/-/_/g'` 385 eval "with_${ac_package}=no" ;; 386 387 --x) 388 # Obsolete; use --with-x. 389 with_x=yes ;; 390 391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 392 | --x-incl | --x-inc | --x-in | --x-i) 393 ac_prev=x_includes ;; 394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 396 x_includes="$ac_optarg" ;; 397 398 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 400 ac_prev=x_libraries ;; 401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 403 x_libraries="$ac_optarg" ;; 404 405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 406 ;; 407 408 *) 409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 410 echo "configure: warning: $ac_option: invalid host type" 1>&2 411 fi 412 if test "x$nonopt" != xNONE; then 413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 414 fi 415 nonopt="$ac_option" 416 ;; 417 418 esac 419done 420 421if test -n "$ac_prev"; then 422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 423fi 424 425trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 426 427# File descriptor usage: 428# 0 standard input 429# 1 file creation 430# 2 errors and warnings 431# 3 some systems may open it to /dev/tty 432# 4 used on the Kubota Titan 433# 6 checking for... messages and results 434# 5 compiler messages saved in config.log 435if test "$silent" = yes; then 436 exec 6>/dev/null 437else 438 exec 6>&1 439fi 440exec 5>./config.log 441 442echo "\ 443This file contains any messages produced by compilers while 444running configure, to aid debugging if configure makes a mistake. 445" 1>&5 446 447# Strip out --no-create and --no-recursion so they do not pile up. 448# Also quote any args containing shell metacharacters. 449ac_configure_args= 450for ac_arg 451do 452 case "$ac_arg" in 453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 454 | --no-cr | --no-c) ;; 455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 458 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 459 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 460 esac 461done 462 463# NLS nuisances. 464# Only set these to C if already set. These must not be set unconditionally 465# because not all systems understand e.g. LANG=C (notably SCO). 466# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 467# Non-C LC_CTYPE values break the ctype check. 468if test "${LANG+set}" = set; then LANG=C; export LANG; fi 469if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 470if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 471if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 472 473# confdefs.h avoids OS command line length limits that DEFS can exceed. 474rm -rf conftest* confdefs.h 475# AIX cpp loses on an empty file, so make sure it contains at least a newline. 476echo > confdefs.h 477 478# A filename unique to this package, relative to the directory that 479# configure is in, which we can look for to find out if srcdir is correct. 480ac_unique_file=generic/tcldom.c 481 482# Find the source files, if location was not specified. 483if test -z "$srcdir"; then 484 ac_srcdir_defaulted=yes 485 # Try the directory containing this script, then its parent. 486 ac_prog=$0 487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 489 srcdir=$ac_confdir 490 if test ! -r $srcdir/$ac_unique_file; then 491 srcdir=.. 492 fi 493else 494 ac_srcdir_defaulted=no 495fi 496if test ! -r $srcdir/$ac_unique_file; then 497 if test "$ac_srcdir_defaulted" = yes; then 498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 499 else 500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 501 fi 502fi 503srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 504 505# Prefer explicitly selected file to automatically selected ones. 506if test -z "$CONFIG_SITE"; then 507 if test "x$prefix" != xNONE; then 508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 509 else 510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 511 fi 512fi 513for ac_site_file in $CONFIG_SITE; do 514 if test -r "$ac_site_file"; then 515 echo "loading site script $ac_site_file" 516 . "$ac_site_file" 517 fi 518done 519 520if test -r "$cache_file"; then 521 echo "loading cache $cache_file" 522 . $cache_file 523else 524 echo "creating cache $cache_file" 525 > $cache_file 526fi 527 528ac_ext=c 529# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 530ac_cpp='$CPP $CPPFLAGS' 531ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 532ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 533cross_compiling=$ac_cv_prog_cc_cross 534 535ac_exeext= 536ac_objext=o 537if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 540 ac_n= ac_c=' 541' ac_t=' ' 542 else 543 ac_n=-n ac_c= ac_t= 544 fi 545else 546 ac_n= ac_c='\c' ac_t= 547fi 548 549 550 551#----------------------------------------------------------------------- 552# Be sure we're invoked from the platform directory. 553#----------------------------------------------------------------------- 554 555if test ${srcdir} = "." ; then 556 echo "" 557 echo "Please cd to the platform-specific dir (unix or win) and invoke:" 558 echo " ../configure" 559 echo "" 560 exit 1 561fi 562 563#----------------------------------------------------------------------- 564# These are needed for the expat compilation. Do this early so we 565# do not step over some CFLAGS which will confuse the compiler. 566#----------------------------------------------------------------------- 567 568for ac_func in memmove bcopy 569do 570echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 571echo "configure:572: checking for $ac_func" >&5 572if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 573 echo $ac_n "(cached) $ac_c" 1>&6 574else 575 cat > conftest.$ac_ext <<EOF 576#line 577 "configure" 577#include "confdefs.h" 578/* System header to define __stub macros and hopefully few prototypes, 579 which can conflict with char $ac_func(); below. */ 580#include <assert.h> 581/* Override any gcc2 internal prototype to avoid an error. */ 582/* We use char because int might match the return type of a gcc2 583 builtin and then its argument prototype would still apply. */ 584char $ac_func(); 585 586int main() { 587 588/* The GNU C library defines this for functions which it implements 589 to always fail with ENOSYS. Some functions are actually named 590 something starting with __ and the normal name is an alias. */ 591#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 592choke me 593#else 594$ac_func(); 595#endif 596 597; return 0; } 598EOF 599if { (eval echo configure:600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 600 rm -rf conftest* 601 eval "ac_cv_func_$ac_func=yes" 602else 603 echo "configure: failed program was:" >&5 604 cat conftest.$ac_ext >&5 605 rm -rf conftest* 606 eval "ac_cv_func_$ac_func=no" 607fi 608rm -f conftest* 609fi 610 611if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 612 echo "$ac_t""yes" 1>&6 613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 614 cat >> confdefs.h <<EOF 615#define $ac_tr_func 1 616EOF 617 618else 619 echo "$ac_t""no" 1>&6 620fi 621done 622 623 624#----------------------------------------------------------------------- 625# Where is the tcl.m4 and brothers? 626#----------------------------------------------------------------------- 627 628ac_aux_dir= 629for ac_dir in tclconfig $srcdir/tclconfig; do 630 if test -f $ac_dir/install-sh; then 631 ac_aux_dir=$ac_dir 632 ac_install_sh="$ac_aux_dir/install-sh -c" 633 break 634 elif test -f $ac_dir/install.sh; then 635 ac_aux_dir=$ac_dir 636 ac_install_sh="$ac_aux_dir/install.sh -c" 637 break 638 fi 639done 640if test -z "$ac_aux_dir"; then 641 { echo "configure: error: can not find install-sh or install.sh in tclconfig $srcdir/tclconfig" 1>&2; exit 1; } 642fi 643ac_config_guess=$ac_aux_dir/config.guess 644ac_config_sub=$ac_aux_dir/config.sub 645ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 646 647CONFIGDIR=${srcdir}/tclconfig 648 649 650#---------------------------------------------------------------------- 651# __CHANGE__ 652# Set your package name and version numbers here. The NODOT_VERSION is 653# required for constructing the library name on systems that don't like 654# dots in library names (Windows). The VERSION variable is used on the 655# other systems. Note that we substitute the VERSIN later down, after 656# we have initialized TEA so we know which platform we're dealing with. 657#---------------------------------------------------------------------- 658 659PACKAGE=tdom 660 661 662TDOMSHELL=tcldomsh 663 664 665MAJOR_VERSION=0 666 667 668MINOR_VERSION=8 669 670 671PATCHLEVEL=3 672 673# This package name must be replaced statically for AC_SUBST to work 674 675 676# Substitute stub_LIB_FILE if your package creates a stub library too. 677 678 679#-------------------------------------------------------------------- 680# Call TEA_INIT as the first TEA_ macro to set up initial vars. 681# This will define a ${TEA_PLATFORM} variable == "unix" or "windows". 682#-------------------------------------------------------------------- 683 684 685 echo $ac_n "checking for correct TEA configuration""... $ac_c" 1>&6 686echo "configure:688: checking for correct TEA configuration" >&5 687 if test x"${PACKAGE}" = x ; then 688 { echo "configure: error: 689The PACKAGE variable must be defined by your TEA configure.in" 1>&2; exit 1; } 690 fi 691 echo "$ac_t""ok" 1>&6 692 TEA_INITED=ok 693 case "`uname -s`" in 694 *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*|*CYGWIN_ME*|*MINGW32_*) 695 # Extract the first word of "cygpath", so it can be a program name with args. 696set dummy cygpath; ac_word=$2 697echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 698echo "configure:700: checking for $ac_word" >&5 699if eval "test \"`echo '$''{'ac_cv_prog_CYGPATH'+set}'`\" = set"; then 700 echo $ac_n "(cached) $ac_c" 1>&6 701else 702 if test -n "$CYGPATH"; then 703 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 704else 705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 706 ac_dummy="$PATH" 707 for ac_dir in $ac_dummy; do 708 test -z "$ac_dir" && ac_dir=. 709 if test -f $ac_dir/$ac_word; then 710 ac_cv_prog_CYGPATH="cygpath -w" 711 break 712 fi 713 done 714 IFS="$ac_save_ifs" 715 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 716fi 717fi 718CYGPATH="$ac_cv_prog_CYGPATH" 719if test -n "$CYGPATH"; then 720 echo "$ac_t""$CYGPATH" 1>&6 721else 722 echo "$ac_t""no" 1>&6 723fi 724 725 EXEEXT=".exe" 726 TEA_PLATFORM="windows" 727 ;; 728 *) 729 CYGPATH=echo 730 EXEEXT="" 731 TEA_PLATFORM="unix" 732 ;; 733 esac 734 735 736 737 738 739#-------------------------------------------------------------------- 740# Load the tclConfig.sh file 741#-------------------------------------------------------------------- 742 743 744 if test x"${TEA_INITED}" = x ; then 745 # Can't refer to exact macro name or it will be substituted 746 { echo "configure: error: Must call TEA INIT before PATH_TCLCONFIG" 1>&2; exit 1; } 747 fi 748 # 749 # Ok, lets find the tcl configuration 750 # First, look for one uninstalled. 751 # the alternative search directory is invoked by --with-tcl 752 # 753 754 if test x"${no_tcl}" = x ; then 755 # we reset no_tcl in case something fails here 756 no_tcl=true 757 # Check whether --with-tcl or --without-tcl was given. 758if test "${with_tcl+set}" = set; then 759 withval="$with_tcl" 760 with_tclconfig=${withval} 761fi 762 763 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6 764echo "configure:766: checking for Tcl configuration" >&5 765 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then 766 echo $ac_n "(cached) $ac_c" 1>&6 767else 768 769 770 # First check to see if --with-tcl was specified. 771 if test x"${with_tclconfig}" != x ; then 772 if test -f "${with_tclconfig}/tclConfig.sh" ; then 773 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 774 else 775 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; } 776 fi 777 fi 778 779 # then check for a private Tcl installation 780 if test x"${ac_cv_c_tclconfig}" = x ; then 781 for i in \ 782 ../tcl \ 783 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 784 ../../tcl \ 785 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 786 ../../../tcl \ 787 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 788 if test -f "$i/unix/tclConfig.sh" ; then 789 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 790 break 791 fi 792 done 793 fi 794 795 # check in a few common install locations 796 if test x"${ac_cv_c_tclconfig}" = x ; then 797 for i in `ls -d ${exec_prefix}/lib 2>/dev/null` \ 798 `ls -d /usr/local/lib 2>/dev/null` \ 799 `ls -d /usr/contrib/lib 2>/dev/null` \ 800 `ls -d /usr/lib 2>/dev/null` \ 801 ; do 802 if test -f "$i/tclConfig.sh" ; then 803 ac_cv_c_tclconfig=`(cd $i; pwd)` 804 break 805 fi 806 done 807 fi 808 809 # check in a few other private locations 810 if test x"${ac_cv_c_tclconfig}" = x ; then 811 for i in \ 812 ${srcdir}/../tcl \ 813 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 814 if test -f "$i/unix/tclConfig.sh" ; then 815 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 816 break 817 fi 818 done 819 fi 820 821fi 822 823 824 if test x"${ac_cv_c_tclconfig}" = x ; then 825 TCL_BIN_DIR="# no Tcl configs found" 826 echo "configure: warning: "Cannot find Tcl configuration definitions"" 1>&2 827 exit 0 828 else 829 no_tcl= 830 TCL_BIN_DIR=${ac_cv_c_tclconfig} 831 echo "$ac_t""found $TCL_BIN_DIR/tclConfig.sh" 1>&6 832 fi 833 fi 834 835 836 echo $ac_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh""... $ac_c" 1>&6 837echo "configure:839: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 838 839 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 840 echo "$ac_t""loading" 1>&6 841 . $TCL_BIN_DIR/tclConfig.sh 842 else 843 echo "$ac_t""file not found" 1>&6 844 fi 845 846 # 847 # If the TCL_BIN_DIR is the build directory (not the install directory), 848 # then set the common variable name to the value of the build variables. 849 # For example, the variable TCL_LIB_SPEC will be set to the value 850 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 851 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 852 # installed and uninstalled version of Tcl. 853 # 854 855 if test -f $TCL_BIN_DIR/Makefile ; then 856 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 857 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 858 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 859 fi 860 861 # 862 # eval is required to do the TCL_DBGX substitution 863 # 864 865 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 866 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 867 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 868 869 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 870 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 871 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 872 873 874 875 876 877 878 879 880 881 882 883 884 885 #AC_SUBST(TCL_DBGX) 886 887 888 889 890 891 #AC_SUBST(TCL_BUILD_LIB_SPEC) 892 #AC_SUBST(TCL_BUILD_STUB_LIB_SPEC) 893 894 895#-------------------------------------------------------------------- 896# Load the tkConfig.sh file if necessary (Tk extension) 897#-------------------------------------------------------------------- 898 899#TEA_PATH_TKCONFIG 900#TEA_LOAD_TKCONFIG 901 902#----------------------------------------------------------------------- 903# Handle the --prefix=... option by defaulting to what Tcl gave. 904# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 905#----------------------------------------------------------------------- 906 907 908 # Should be AC_MSG_NOTICE, but that requires autoconf 2.50 909 if test "${prefix}" = "NONE"; then 910 prefix_default=yes 911 if test x"${TCL_PREFIX}" != x; then 912 echo "configure: warning: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" 1>&2 913 prefix=${TCL_PREFIX} 914 else 915 prefix=/usr/local 916 fi 917 fi 918 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" ; then 919 if test x"${TCL_EXEC_PREFIX}" != x; then 920 echo "configure: warning: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" 1>&2 921 exec_prefix=${TCL_EXEC_PREFIX} 922 else 923 exec_prefix=$prefix 924 fi 925 fi 926 927 928#----------------------------------------------------------------------- 929# Standard compiler checks. 930# This sets up CC by using the CC env var, or looks for gcc otherwise. 931# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 932# the basic setup necessary to compile executables. 933#----------------------------------------------------------------------- 934 935echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 936echo "configure:938: checking for Cygwin environment" >&5 937if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 938 echo $ac_n "(cached) $ac_c" 1>&6 939else 940 cat > conftest.$ac_ext <<EOF 941#line 943 "configure" 942#include "confdefs.h" 943 944int main() { 945 946#ifndef __CYGWIN__ 947#define __CYGWIN__ __CYGWIN32__ 948#endif 949return __CYGWIN__; 950; return 0; } 951EOF 952if { (eval echo configure:954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 953 rm -rf conftest* 954 ac_cv_cygwin=yes 955else 956 echo "configure: failed program was:" >&5 957 cat conftest.$ac_ext >&5 958 rm -rf conftest* 959 ac_cv_cygwin=no 960fi 961rm -f conftest* 962rm -f conftest* 963fi 964 965echo "$ac_t""$ac_cv_cygwin" 1>&6 966CYGWIN= 967test "$ac_cv_cygwin" = yes && CYGWIN=yes 968echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 969echo "configure:971: checking for mingw32 environment" >&5 970if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 971 echo $ac_n "(cached) $ac_c" 1>&6 972else 973 cat > conftest.$ac_ext <<EOF 974#line 976 "configure" 975#include "confdefs.h" 976 977int main() { 978return __MINGW32__; 979; return 0; } 980EOF 981if { (eval echo configure:983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 982 rm -rf conftest* 983 ac_cv_mingw32=yes 984else 985 echo "configure: failed program was:" >&5 986 cat conftest.$ac_ext >&5 987 rm -rf conftest* 988 ac_cv_mingw32=no 989fi 990rm -f conftest* 991rm -f conftest* 992fi 993 994echo "$ac_t""$ac_cv_mingw32" 1>&6 995MINGW32= 996test "$ac_cv_mingw32" = yes && MINGW32=yes 997 998 # If the user did not set CFLAGS, set it now to keep 999 # the AC_PROG_CC macro from adding "-g -O2". 1000 if test "${CFLAGS+set}" != "set" ; then 1001 CFLAGS="" 1002 fi 1003 1004 # Extract the first word of "gcc", so it can be a program name with args. 1005set dummy gcc; ac_word=$2 1006echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1007echo "configure:1009: checking for $ac_word" >&5 1008if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1009 echo $ac_n "(cached) $ac_c" 1>&6 1010else 1011 if test -n "$CC"; then 1012 ac_cv_prog_CC="$CC" # Let the user override the test. 1013else 1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1015 ac_dummy="$PATH" 1016 for ac_dir in $ac_dummy; do 1017 test -z "$ac_dir" && ac_dir=. 1018 if test -f $ac_dir/$ac_word; then 1019 ac_cv_prog_CC="gcc" 1020 break 1021 fi 1022 done 1023 IFS="$ac_save_ifs" 1024fi 1025fi 1026CC="$ac_cv_prog_CC" 1027if test -n "$CC"; then 1028 echo "$ac_t""$CC" 1>&6 1029else 1030 echo "$ac_t""no" 1>&6 1031fi 1032 1033if test -z "$CC"; then 1034 # Extract the first word of "cc", so it can be a program name with args. 1035set dummy cc; ac_word=$2 1036echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1037echo "configure:1039: checking for $ac_word" >&5 1038if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1039 echo $ac_n "(cached) $ac_c" 1>&6 1040else 1041 if test -n "$CC"; then 1042 ac_cv_prog_CC="$CC" # Let the user override the test. 1043else 1044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1045 ac_prog_rejected=no 1046 ac_dummy="$PATH" 1047 for ac_dir in $ac_dummy; do 1048 test -z "$ac_dir" && ac_dir=. 1049 if test -f $ac_dir/$ac_word; then 1050 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1051 ac_prog_rejected=yes 1052 continue 1053 fi 1054 ac_cv_prog_CC="cc" 1055 break 1056 fi 1057 done 1058 IFS="$ac_save_ifs" 1059if test $ac_prog_rejected = yes; then 1060 # We found a bogon in the path, so make sure we never use it. 1061 set dummy $ac_cv_prog_CC 1062 shift 1063 if test $# -gt 0; then 1064 # We chose a different compiler from the bogus one. 1065 # However, it has the same basename, so the bogon will be chosen 1066 # first if we set CC to just the basename; use the full file name. 1067 shift 1068 set dummy "$ac_dir/$ac_word" "$@" 1069 shift 1070 ac_cv_prog_CC="$@" 1071 fi 1072fi 1073fi 1074fi 1075CC="$ac_cv_prog_CC" 1076if test -n "$CC"; then 1077 echo "$ac_t""$CC" 1>&6 1078else 1079 echo "$ac_t""no" 1>&6 1080fi 1081 1082 if test -z "$CC"; then 1083 case "`uname -s`" in 1084 *win32* | *WIN32*) 1085 # Extract the first word of "cl", so it can be a program name with args. 1086set dummy cl; ac_word=$2 1087echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1088echo "configure:1090: checking for $ac_word" >&5 1089if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1090 echo $ac_n "(cached) $ac_c" 1>&6 1091else 1092 if test -n "$CC"; then 1093 ac_cv_prog_CC="$CC" # Let the user override the test. 1094else 1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1096 ac_dummy="$PATH" 1097 for ac_dir in $ac_dummy; do 1098 test -z "$ac_dir" && ac_dir=. 1099 if test -f $ac_dir/$ac_word; then 1100 ac_cv_prog_CC="cl" 1101 break 1102 fi 1103 done 1104 IFS="$ac_save_ifs" 1105fi 1106fi 1107CC="$ac_cv_prog_CC" 1108if test -n "$CC"; then 1109 echo "$ac_t""$CC" 1>&6 1110else 1111 echo "$ac_t""no" 1>&6 1112fi 1113 ;; 1114 esac 1115 fi 1116 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1117fi 1118 1119echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1120echo "configure:1122: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1121 1122ac_ext=c 1123# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1124ac_cpp='$CPP $CPPFLAGS' 1125ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1126ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1127cross_compiling=$ac_cv_prog_cc_cross 1128 1129cat > conftest.$ac_ext << EOF 1130 1131#line 1133 "configure" 1132#include "confdefs.h" 1133 1134main(){return(0);} 1135EOF 1136if { (eval echo configure:1138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1137 ac_cv_prog_cc_works=yes 1138 # If we can't run a trivial program, we are probably using a cross compiler. 1139 if (./conftest; exit) 2>/dev/null; then 1140 ac_cv_prog_cc_cross=no 1141 else 1142 ac_cv_prog_cc_cross=yes 1143 fi 1144else 1145 echo "configure: failed program was:" >&5 1146 cat conftest.$ac_ext >&5 1147 ac_cv_prog_cc_works=no 1148fi 1149rm -fr conftest* 1150ac_ext=c 1151# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1152ac_cpp='$CPP $CPPFLAGS' 1153ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1154ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1155cross_compiling=$ac_cv_prog_cc_cross 1156 1157echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1158if test $ac_cv_prog_cc_works = no; then 1159 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1160fi 1161echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1162echo "configure:1164: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1163echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1164cross_compiling=$ac_cv_prog_cc_cross 1165 1166echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1167echo "configure:1169: checking whether we are using GNU C" >&5 1168if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1169 echo $ac_n "(cached) $ac_c" 1>&6 1170else 1171 cat > conftest.c <<EOF 1172#ifdef __GNUC__ 1173 yes; 1174#endif 1175EOF 1176if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1177 ac_cv_prog_gcc=yes 1178else 1179 ac_cv_prog_gcc=no 1180fi 1181fi 1182 1183echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1184 1185if test $ac_cv_prog_gcc = yes; then 1186 GCC=yes 1187else 1188 GCC= 1189fi 1190 1191ac_test_CFLAGS="${CFLAGS+set}" 1192ac_save_CFLAGS="$CFLAGS" 1193CFLAGS= 1194echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1195echo "configure:1197: checking whether ${CC-cc} accepts -g" >&5 1196if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1197 echo $ac_n "(cached) $ac_c" 1>&6 1198else 1199 echo 'void f(){}' > conftest.c 1200if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1201 ac_cv_prog_cc_g=yes 1202else 1203 ac_cv_prog_cc_g=no 1204fi 1205rm -f conftest* 1206 1207fi 1208 1209echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1210if test "$ac_test_CFLAGS" = set; then 1211 CFLAGS="$ac_save_CFLAGS" 1212elif test $ac_cv_prog_cc_g = yes; then 1213 if test "$GCC" = yes; then 1214 CFLAGS="-g -O2" 1215 else 1216 CFLAGS="-g" 1217 fi 1218else 1219 if test "$GCC" = yes; then 1220 CFLAGS="-O2" 1221 else 1222 CFLAGS= 1223 fi 1224fi 1225 1226 1227 #------------------------------------------------------------------------ 1228 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 1229 # It makes compiling go faster. (This is only a performance feature.) 1230 #------------------------------------------------------------------------ 1231 1232 if test -z "$no_pipe" -a -n "$GCC"; then 1233 echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6 1234echo "configure:1236: checking if the compiler understands -pipe" >&5 1235 OLDCC="$CC" 1236 CC="$CC -pipe" 1237 cat > conftest.$ac_ext <<EOF 1238#line 1240 "configure" 1239#include "confdefs.h" 1240 1241int main() { 1242 1243; return 0; } 1244EOF 1245if { (eval echo configure:1247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1246 rm -rf conftest* 1247 echo "$ac_t""yes" 1>&6 1248else 1249 echo "configure: failed program was:" >&5 1250 cat conftest.$ac_ext >&5 1251 rm -rf conftest* 1252 CC="$OLDCC" 1253 echo "$ac_t""no" 1>&6 1254fi 1255rm -f conftest* 1256 fi 1257 1258 # Find a good install program. We prefer a C program (faster), 1259# so one script is as good as another. But avoid the broken or 1260# incompatible versions: 1261# SysV /etc/install, /usr/sbin/install 1262# SunOS /usr/etc/install 1263# IRIX /sbin/install 1264# AIX /bin/install 1265# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1266# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1267# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1268# ./install, which can be erroneously created by make from ./install.sh. 1269echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1270echo "configure:1272: checking for a BSD compatible install" >&5 1271if test -z "$INSTALL"; then 1272if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1273 echo $ac_n "(cached) $ac_c" 1>&6 1274else 1275 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1276 for ac_dir in $PATH; do 1277 # Account for people who put trailing slashes in PATH elements. 1278 case "$ac_dir/" in 1279 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1280 *) 1281 # OSF1 and SCO ODT 3.0 have their own names for install. 1282 # Don't use installbsd from OSF since it installs stuff as root 1283 # by default. 1284 for ac_prog in ginstall scoinst install; do 1285 if test -f $ac_dir/$ac_prog; then 1286 if test $ac_prog = install && 1287 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1288 # AIX install. It has an incompatible calling convention. 1289 : 1290 else 1291 ac_cv_path_install="$ac_dir/$ac_prog -c" 1292 break 2 1293 fi 1294 fi 1295 done 1296 ;; 1297 esac 1298 done 1299 IFS="$ac_save_IFS" 1300 1301fi 1302 if test "${ac_cv_path_install+set}" = set; then 1303 INSTALL="$ac_cv_path_install" 1304 else 1305 # As a last resort, use the slow shell script. We don't cache a 1306 # path for INSTALL within a source directory, because that will 1307 # break other packages using the cache if that directory is 1308 # removed, or if the path is relative. 1309 INSTALL="$ac_install_sh" 1310 fi 1311fi 1312echo "$ac_t""$INSTALL" 1>&6 1313 1314# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1315# It thinks the first close brace ends the variable substitution. 1316test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1317 1318test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1319 1320test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1321 1322 1323 #-------------------------------------------------------------------- 1324 # Checks to see if the make program sets the $MAKE variable. 1325 #-------------------------------------------------------------------- 1326 1327 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1328echo "configure:1330: checking whether ${MAKE-make} sets \${MAKE}" >&5 1329set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1330if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1331 echo $ac_n "(cached) $ac_c" 1>&6 1332else 1333 cat > conftestmake <<\EOF 1334all: 1335 @echo 'ac_maketemp="${MAKE}"' 1336EOF 1337# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1338eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1339if test -n "$ac_maketemp"; then 1340 eval ac_cv_prog_make_${ac_make}_set=yes 1341else 1342 eval ac_cv_prog_make_${ac_make}_set=no 1343fi 1344rm -f conftestmake 1345fi 1346if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1347 echo "$ac_t""yes" 1>&6 1348 SET_MAKE= 1349else 1350 echo "$ac_t""no" 1>&6 1351 SET_MAKE="MAKE=${MAKE-make}" 1352fi 1353 1354 1355 #-------------------------------------------------------------------- 1356 # Find ranlib 1357 #-------------------------------------------------------------------- 1358 1359 # Extract the first word of "ranlib", so it can be a program name with args. 1360set dummy ranlib; ac_word=$2 1361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1362echo "configure:1364: checking for $ac_word" >&5 1363if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1364 echo $ac_n "(cached) $ac_c" 1>&6 1365else 1366 if test -n "$RANLIB"; then 1367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1368else 1369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1370 ac_dummy="$PATH" 1371 for ac_dir in $ac_dummy; do 1372 test -z "$ac_dir" && ac_dir=. 1373 if test -f $ac_dir/$ac_word; then 1374 ac_cv_prog_RANLIB="ranlib" 1375 break 1376 fi 1377 done 1378 IFS="$ac_save_ifs" 1379 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1380fi 1381fi 1382RANLIB="$ac_cv_prog_RANLIB" 1383if test -n "$RANLIB"; then 1384 echo "$ac_t""$RANLIB" 1>&6 1385else 1386 echo "$ac_t""no" 1>&6 1387fi 1388 1389 1390 #-------------------------------------------------------------------- 1391 # Determines the correct binary file extension (.o, .obj, .exe etc.) 1392 #-------------------------------------------------------------------- 1393 1394 echo $ac_n "checking for object suffix""... $ac_c" 1>&6 1395echo "configure:1397: checking for object suffix" >&5 1396if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 1397 echo $ac_n "(cached) $ac_c" 1>&6 1398else 1399 rm -f conftest* 1400echo 'int i = 1;' > conftest.$ac_ext 1401if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1402 for ac_file in conftest.*; do 1403 case $ac_file in 1404 *.c) ;; 1405 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 1406 esac 1407 done 1408else 1409 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 1410fi 1411rm -f conftest* 1412fi 1413 1414echo "$ac_t""$ac_cv_objext" 1>&6 1415OBJEXT=$ac_cv_objext 1416ac_objext=$ac_cv_objext 1417 1418 1419 1420echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 1421echo "configure:1423: checking for executable suffix" >&5 1422if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 1423 echo $ac_n "(cached) $ac_c" 1>&6 1424else 1425 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 1426 ac_cv_exeext=.exe 1427else 1428 rm -f conftest* 1429 echo 'int main () { return 0; }' > conftest.$ac_ext 1430 ac_cv_exeext= 1431 if { (eval echo configure:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1432 for file in conftest.*; do 1433 case $file in 1434 *.c | *.o | *.obj) ;; 1435 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 1436 esac 1437 done 1438 else 1439 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 1440 fi 1441 rm -f conftest* 1442 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 1443fi 1444fi 1445 1446EXEEXT="" 1447test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 1448echo "$ac_t""${ac_cv_exeext}" 1>&6 1449ac_exeext=$EXEEXT 1450 1451 1452 1453#-------------------------------------------------------------------- 1454# __CHANGE__ 1455# Choose which headers you need. Extension authors should try very 1456# hard to only rely on the Tcl public header files. Internal headers 1457# contain private data structures and are subject to change without 1458# notice. 1459# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 1460#-------------------------------------------------------------------- 1461 1462 1463 echo $ac_n "checking for Tcl public headers""... $ac_c" 1>&6 1464echo "configure:1466: checking for Tcl public headers" >&5 1465 1466 # Check whether --with-tclinclude or --without-tclinclude was given. 1467if test "${with_tclinclude+set}" = set; then 1468 withval="$with_tclinclude" 1469 with_tclinclude=${withval} 1470fi 1471 1472 1473 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then 1474 echo $ac_n "(cached) $ac_c" 1>&6 1475else 1476 1477 # Use the value from --with-tclinclude, if it was given 1478 1479 if test x"${with_tclinclude}" != x ; then 1480 if test -f "${with_tclinclude}/tcl.h" ; then 1481 ac_cv_c_tclh=${with_tclinclude} 1482 else 1483 { echo "configure: error: ${with_tclinclude} directory does not contain tcl.h" 1>&2; exit 1; } 1484 fi 1485 else 1486 # Check order: pkg --prefix location, Tcl's --prefix location, 1487 # directory of tclConfig.sh, and Tcl source directory. 1488 # Looking in the source dir is not ideal, but OK. 1489 1490 eval "temp_includedir=${includedir}" 1491 list="`ls -d ${temp_includedir} 2>/dev/null` \ 1492 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 1493 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null` \ 1494 `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 1495 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 1496 list="$list /usr/local/include /usr/include" 1497 fi 1498 for i in $list ; do 1499 if test -f "$i/tcl.h" ; then 1500 ac_cv_c_tclh=$i 1501 break 1502 fi 1503 done 1504 fi 1505 1506fi 1507 1508 1509 # Print a message based on how we determined the include path 1510 1511 if test x"${ac_cv_c_tclh}" = x ; then 1512 { echo "configure: error: tcl.h not found. Please specify its location with --with-tclinclude" 1>&2; exit 1; } 1513 else 1514 echo "$ac_t""${ac_cv_c_tclh}" 1>&6 1515 fi 1516 1517 # Convert to a native path and substitute into the output files. 1518 1519 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 1520 1521 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 1522 1523 1524 1525#TEA_PRIVATE_TCL_HEADERS 1526 1527#TEA_PUBLIC_TK_HEADERS 1528#TEA_PRIVATE_TK_HEADERS 1529 1530#-------------------------------------------------------------------- 1531# __CHANGE__ 1532# A few miscellaneous platform-specific items: 1533# 1534# Define a special symbol for Windows (BUILD_sample in this case) so 1535# that we create the export library with the dll. See sha1.h on how 1536# to use this. 1537# 1538# Windows creates a few extra files that need to be cleaned up. 1539# You can add more files to clean if your extension creates any extra 1540# files. 1541# 1542# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 1543# These will be appended to the current set of compiler flags for 1544# your system. 1545#-------------------------------------------------------------------- 1546 1547if test "${TEA_PLATFORM}" = "windows" ; then 1548 cat >> confdefs.h <<\EOF 1549#define BUILD_tdom 1 1550EOF 1551 1552 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 1553 EXTRA_SOURCES='$(WIN_SOURCES)' 1554 VERSION=${MAJOR_VERSION}${MINOR_VERSION}${PATCHLEVEL} 1555else 1556 CLEANFILES="pkgIndex.tcl" 1557 EXTRA_SOURCES='$(UNIX_SOURCES)' 1558 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCHLEVEL} 1559fi 1560 1561 1562 1563 1564 1565#-------------------------------------------------------------------- 1566# We put this here so that you can compile with -DVERSION="1.2" to 1567# encode the package version directly into the source files. 1568#-------------------------------------------------------------------- 1569 1570eval cat >> confdefs.h <<EOF 1571#define VERSION "${VERSION}" 1572EOF 1573 1574 1575#-------------------------------------------------------------------- 1576# Setup the current source directory so extensions building against 1577# tDOM stub library will know where to find binary directories. 1578# Setup paths and linker specification of the stub library. 1579# Note: some of those below are replicated in Makefile.in as well. 1580#-------------------------------------------------------------------- 1581 1582tdom_SRC_DIR=`cd ${srcdir}; pwd` 1583 1584pkglibdir="${exec_prefix}/lib/${PACKAGE}${VERSION}" 1585tdomstub_LIB_FLAG="-ltdomstub${VERSION}${TCL_DBGX}" 1586 1587tdomstub_BUILD_SPEC="-L`pwd` ${tdomstub_LIB_FLAG}" 1588tdomstub_FILE_SPEC="-L${pkglibdir} ${tdomstub_LIB_FLAG}" 1589 1590 1591 1592 1593 1594#-------------------------------------------------------------------- 1595# Check whether --enable-threads or --disable-threads was given. 1596#-------------------------------------------------------------------- 1597 1598 1599 # Check whether --enable-threads or --disable-threads was given. 1600if test "${enable_threads+set}" = set; then 1601 enableval="$enable_threads" 1602 tcl_ok=$enableval 1603else 1604 tcl_ok= 1605fi 1606 1607 1608 if test "$tcl_ok" = "yes"; then 1609 TCL_THREADS=1 1610 1611 if test "${TEA_PLATFORM}" != "windows" ; then 1612 # We are always OK on Windows, so check what this platform wants. 1613 cat >> confdefs.h <<\EOF 1614#define USE_THREAD_ALLOC 1 1615EOF 1616 1617 cat >> confdefs.h <<\EOF 1618#define _REENTRANT 1 1619EOF 1620 1621 cat >> confdefs.h <<\EOF 1622#define _THREAD_SAFE 1 1623EOF 1624 1625 echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6 1626echo "configure:1628: checking for pthread_mutex_init in -lpthread" >&5 1627ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'` 1628if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1629 echo $ac_n "(cached) $ac_c" 1>&6 1630else 1631 ac_save_LIBS="$LIBS" 1632LIBS="-lpthread $LIBS" 1633cat > conftest.$ac_ext <<EOF 1634#line 1636 "configure" 1635#include "confdefs.h" 1636/* Override any gcc2 internal prototype to avoid an error. */ 1637/* We use char because int might match the return type of a gcc2 1638 builtin and then its argument prototype would still apply. */ 1639char pthread_mutex_init(); 1640 1641int main() { 1642pthread_mutex_init() 1643; return 0; } 1644EOF 1645if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1646 rm -rf conftest* 1647 eval "ac_cv_lib_$ac_lib_var=yes" 1648else 1649 echo "configure: failed program was:" >&5 1650 cat conftest.$ac_ext >&5 1651 rm -rf conftest* 1652 eval "ac_cv_lib_$ac_lib_var=no" 1653fi 1654rm -f conftest* 1655LIBS="$ac_save_LIBS" 1656 1657fi 1658if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1659 echo "$ac_t""yes" 1>&6 1660 tcl_ok=yes 1661else 1662 echo "$ac_t""no" 1>&6 1663tcl_ok=no 1664fi 1665 1666 if test "$tcl_ok" = "no"; then 1667 # Check a little harder for __pthread_mutex_init in the 1668 # same library, as some systems hide it there until 1669 # pthread.h is defined. We could alternatively do an 1670 # AC_TRY_COMPILE with pthread.h, but that will work with 1671 # libpthread really doesn't exist, like AIX 4.2. 1672 # [Bug: 4359] 1673 echo $ac_n "checking for __pthread_mutex_init in -lpthread""... $ac_c" 1>&6 1674echo "configure:1676: checking for __pthread_mutex_init in -lpthread" >&5 1675ac_lib_var=`echo pthread'_'__pthread_mutex_init | sed 'y%./+-%__p_%'` 1676if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1677 echo $ac_n "(cached) $ac_c" 1>&6 1678else 1679 ac_save_LIBS="$LIBS" 1680LIBS="-lpthread $LIBS" 1681cat > conftest.$ac_ext <<EOF 1682#line 1684 "configure" 1683#include "confdefs.h" 1684/* Override any gcc2 internal prototype to avoid an error. */ 1685/* We use char because int might match the return type of a gcc2 1686 builtin and then its argument prototype would still apply. */ 1687char __pthread_mutex_init(); 1688 1689int main() { 1690__pthread_mutex_init() 1691; return 0; } 1692EOF 1693if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1694 rm -rf conftest* 1695 eval "ac_cv_lib_$ac_lib_var=yes" 1696else 1697 echo "configure: failed program was:" >&5 1698 cat conftest.$ac_ext >&5 1699 rm -rf conftest* 1700 eval "ac_cv_lib_$ac_lib_var=no" 1701fi 1702rm -f conftest* 1703LIBS="$ac_save_LIBS" 1704 1705fi 1706if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1707 echo "$ac_t""yes" 1>&6 1708 tcl_ok=yes 1709else 1710 echo "$ac_t""no" 1>&6 1711tcl_ok=no 1712fi 1713 1714 fi 1715 1716 if test "$tcl_ok" = "yes"; then 1717 # The space is needed 1718 THREADS_LIBS=" -lpthread" 1719 else 1720 echo $ac_n "checking for pthread_mutex_init in -lpthreads""... $ac_c" 1>&6 1721echo "configure:1723: checking for pthread_mutex_init in -lpthreads" >&5 1722ac_lib_var=`echo pthreads'_'pthread_mutex_init | sed 'y%./+-%__p_%'` 1723if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1724 echo $ac_n "(cached) $ac_c" 1>&6 1725else 1726 ac_save_LIBS="$LIBS" 1727LIBS="-lpthreads $LIBS" 1728cat > conftest.$ac_ext <<EOF 1729#line 1731 "configure" 1730#include "confdefs.h" 1731/* Override any gcc2 internal prototype to avoid an error. */ 1732/* We use char because int might match the return type of a gcc2 1733 builtin and then its argument prototype would still apply. */ 1734char pthread_mutex_init(); 1735 1736int main() { 1737pthread_mutex_init() 1738; return 0; } 1739EOF 1740if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1741 rm -rf conftest* 1742 eval "ac_cv_lib_$ac_lib_var=yes" 1743else 1744 echo "configure: failed program was:" >&5 1745 cat conftest.$ac_ext >&5 1746 rm -rf conftest* 1747 eval "ac_cv_lib_$ac_lib_var=no" 1748fi 1749rm -f conftest* 1750LIBS="$ac_save_LIBS" 1751 1752fi 1753if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1754 echo "$ac_t""yes" 1>&6 1755 tcl_ok=yes 1756else 1757 echo "$ac_t""no" 1>&6 1758tcl_ok=no 1759fi 1760 1761 if test "$tcl_ok" = "yes"; then 1762 # The space is needed 1763 THREADS_LIBS=" -lpthreads" 1764 else 1765 echo $ac_n "checking for pthread_mutex_init in -lc""... $ac_c" 1>&6 1766echo "configure:1768: checking for pthread_mutex_init in -lc" >&5 1767ac_lib_var=`echo c'_'pthread_mutex_init | sed 'y%./+-%__p_%'` 1768if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1769 echo $ac_n "(cached) $ac_c" 1>&6 1770else 1771 ac_save_LIBS="$LIBS" 1772LIBS="-lc $LIBS" 1773cat > conftest.$ac_ext <<EOF 1774#line 1776 "configure" 1775#include "confdefs.h" 1776/* Override any gcc2 internal prototype to avoid an error. */ 1777/* We use char because int might match the return type of a gcc2 1778 builtin and then its argument prototype would still apply. */ 1779char pthread_mutex_init(); 1780 1781int main() { 1782pthread_mutex_init() 1783; return 0; } 1784EOF 1785if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1786 rm -rf conftest* 1787 eval "ac_cv_lib_$ac_lib_var=yes" 1788else 1789 echo "configure: failed program was:" >&5 1790 cat conftest.$ac_ext >&5 1791 rm -rf conftest* 1792 eval "ac_cv_lib_$ac_lib_var=no" 1793fi 1794rm -f conftest* 1795LIBS="$ac_save_LIBS" 1796 1797fi 1798if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1799 echo "$ac_t""yes" 1>&6 1800 tcl_ok=yes 1801else 1802 echo "$ac_t""no" 1>&6 1803tcl_ok=no 1804fi 1805 1806 if test "$tcl_ok" = "no"; then 1807 echo $ac_n "checking for pthread_mutex_init in -lc_r""... $ac_c" 1>&6 1808echo "configure:1810: checking for pthread_mutex_init in -lc_r" >&5 1809ac_lib_var=`echo c_r'_'pthread_mutex_init | sed 'y%./+-%__p_%'` 1810if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1811 echo $ac_n "(cached) $ac_c" 1>&6 1812else 1813 ac_save_LIBS="$LIBS" 1814LIBS="-lc_r $LIBS" 1815cat > conftest.$ac_ext <<EOF 1816#line 1818 "configure" 1817#include "confdefs.h" 1818/* Override any gcc2 internal prototype to avoid an error. */ 1819/* We use char because int might match the return type of a gcc2 1820 builtin and then its argument prototype would still apply. */ 1821char pthread_mutex_init(); 1822 1823int main() { 1824pthread_mutex_init() 1825; return 0; } 1826EOF 1827if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1828 rm -rf conftest* 1829 eval "ac_cv_lib_$ac_lib_var=yes" 1830else 1831 echo "configure: failed program was:" >&5 1832 cat conftest.$ac_ext >&5 1833 rm -rf conftest* 1834 eval "ac_cv_lib_$ac_lib_var=no" 1835fi 1836rm -f conftest* 1837LIBS="$ac_save_LIBS" 1838 1839fi 1840if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1841 echo "$ac_t""yes" 1>&6 1842 tcl_ok=yes 1843else 1844 echo "$ac_t""no" 1>&6 1845tcl_ok=no 1846fi 1847 1848 if test "$tcl_ok" = "yes"; then 1849 # The space is needed 1850 THREADS_LIBS=" -pthread" 1851 else 1852 TCL_THREADS=0 1853 echo "configure: warning: "Don t know how to find pthread lib on your system - thread support disabled"" 1>&2 1854 fi 1855 fi 1856 fi 1857 fi 1858 1859 # Does the pthread-implementation provide 1860 # 'pthread_attr_setstacksize' ? 1861 for ac_func in pthread_attr_setstacksize 1862do 1863echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1864echo "configure:1866: checking for $ac_func" >&5 1865if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1866 echo $ac_n "(cached) $ac_c" 1>&6 1867else 1868 cat > conftest.$ac_ext <<EOF 1869#line 1871 "configure" 1870#include "confdefs.h" 1871/* System header to define __stub macros and hopefully few prototypes, 1872 which can conflict with char $ac_func(); below. */ 1873#include <assert.h> 1874/* Override any gcc2 internal prototype to avoid an error. */ 1875/* We use char because int might match the return type of a gcc2 1876 builtin and then its argument prototype would still apply. */ 1877char $ac_func(); 1878 1879int main() { 1880 1881/* The GNU C library defines this for functions which it implements 1882 to always fail with ENOSYS. Some functions are actually named 1883 something starting with __ and the normal name is an alias. */ 1884#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1885choke me 1886#else 1887$ac_func(); 1888#endif 1889 1890; return 0; } 1891EOF 1892if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1893 rm -rf conftest* 1894 eval "ac_cv_func_$ac_func=yes" 1895else 1896 echo "configure: failed program was:" >&5 1897 cat conftest.$ac_ext >&5 1898 rm -rf conftest* 1899 eval "ac_cv_func_$ac_func=no" 1900fi 1901rm -f conftest* 1902fi 1903 1904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1905 echo "$ac_t""yes" 1>&6 1906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1907 cat >> confdefs.h <<EOF 1908#define $ac_tr_func 1 1909EOF 1910 1911else 1912 echo "$ac_t""no" 1>&6 1913fi 1914done 1915 1916 fi 1917 else 1918 TCL_THREADS=0 1919 fi 1920 # Do checking message here to not mess up interleaved configure output 1921 echo $ac_n "checking for building with threads""... $ac_c" 1>&6 1922echo "configure:1924: checking for building with threads" >&5 1923 if test "${TCL_THREADS}" = "1"; then 1924 cat >> confdefs.h <<\EOF 1925#define TCL_THREADS 1 1926EOF 1927 1928 echo "$ac_t""yes" 1>&6 1929 else 1930 echo "$ac_t""no (default)" 1>&6 1931 fi 1932 # TCL_THREADS sanity checking. See if our request for building with 1933 # threads is the same as the way Tcl was built. If not, warn the user. 1934 case ${TCL_DEFS} in 1935 *THREADS=1*) 1936 if test "${TCL_THREADS}" = "0"; then 1937 echo "configure: warning: 1938 Building ${PACKAGE} without threads enabled, but building against a Tcl 1939 that IS thread-enabled." 1>&2 1940 fi 1941 ;; 1942 *) 1943 if test "${TCL_THREADS}" = "1"; then 1944 echo "configure: warning: 1945 --enable-threads requested, but attempting building against a Tcl 1946 that is NOT thread-enabled." 1>&2 1947 fi 1948 ;; 1949 esac 1950 1951 1952 1953#-------------------------------------------------------------------- 1954# The statement below defines a collection of symbols related to 1955# building as a shared library instead of a static library. 1956#-------------------------------------------------------------------- 1957 1958 1959 echo $ac_n "checking how to build libraries""... $ac_c" 1>&6 1960echo "configure:1962: checking how to build libraries" >&5 1961 # Check whether --enable-shared or --disable-shared was given. 1962if test "${enable_shared+set}" = set; then 1963 enableval="$enable_shared" 1964 tcl_ok=$enableval 1965else 1966 tcl_ok=yes 1967fi 1968 1969 1970 if test "${enable_shared+set}" = set; then 1971 enableval="$enable_shared" 1972 tcl_ok=$enableval 1973 else 1974 tcl_ok=yes 1975 fi 1976 1977 if test "$tcl_ok" = "yes" ; then 1978 echo "$ac_t""shared" 1>&6 1979 SHARED_BUILD=1 1980 else 1981 echo "$ac_t""static" 1>&6 1982 SHARED_BUILD=0 1983 cat >> confdefs.h <<\EOF 1984#define STATIC_BUILD 1 1985EOF 1986 1987 fi 1988 1989 1990#-------------------------------------------------------------------- 1991# This macro figures out what flags to use with the compiler/linker 1992# when building shared/static debug/optimized objects. This information 1993# can be taken from the tclConfig.sh file, but this figures it all out. 1994#-------------------------------------------------------------------- 1995 1996echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1997echo "configure:1999: checking how to run the C preprocessor" >&5 1998# On Suns, sometimes $CPP names a directory. 1999if test -n "$CPP" && test -d "$CPP"; then 2000 CPP= 2001fi 2002if test -z "$CPP"; then 2003if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2004 echo $ac_n "(cached) $ac_c" 1>&6 2005else 2006 # This must be in double quotes, not single quotes, because CPP may get 2007 # substituted into the Makefile and "${CC-cc}" will confuse make. 2008 CPP="${CC-cc} -E" 2009 # On the NeXT, cc -E runs the code through the compiler's parser, 2010 # not just through cpp. 2011 cat > conftest.$ac_ext <<EOF 2012#line 2014 "configure" 2013#include "confdefs.h" 2014#include <assert.h> 2015Syntax Error 2016EOF 2017ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2018{ (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2019ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2020if test -z "$ac_err"; then 2021 : 2022else 2023 echo "$ac_err" >&5 2024 echo "configure: failed program was:" >&5 2025 cat conftest.$ac_ext >&5 2026 rm -rf conftest* 2027 CPP="${CC-cc} -E -traditional-cpp" 2028 cat > conftest.$ac_ext <<EOF 2029#line 2031 "configure" 2030#include "confdefs.h" 2031#include <assert.h> 2032Syntax Error 2033EOF 2034ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2035{ (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2036ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2037if test -z "$ac_err"; then 2038 : 2039else 2040 echo "$ac_err" >&5 2041 echo "configure: failed program was:" >&5 2042 cat conftest.$ac_ext >&5 2043 rm -rf conftest* 2044 CPP="${CC-cc} -nologo -E" 2045 cat > conftest.$ac_ext <<EOF 2046#line 2048 "configure" 2047#include "confdefs.h" 2048#include <assert.h> 2049Syntax Error 2050EOF 2051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2052{ (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2053ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2054if test -z "$ac_err"; then 2055 : 2056else 2057 echo "$ac_err" >&5 2058 echo "configure: failed program was:" >&5 2059 cat conftest.$ac_ext >&5 2060 rm -rf conftest* 2061 CPP=/lib/cpp 2062fi 2063rm -f conftest* 2064fi 2065rm -f conftest* 2066fi 2067rm -f conftest* 2068 ac_cv_prog_CPP="$CPP" 2069fi 2070 CPP="$ac_cv_prog_CPP" 2071else 2072 ac_cv_prog_CPP="$CPP" 2073fi 2074echo "$ac_t""$CPP" 1>&6 2075 2076 2077 if test x"${TEA_INITED}" = x ; then 2078 # Can't refer to exact macro name or it will be substituted 2079 { echo "configure: error: Must call TEA INIT before CONFIG_CFLAGS" 1>&2; exit 1; } 2080 fi 2081 2082 # Step 0: Enable 64 bit support? 2083 2084 echo $ac_n "checking if 64bit support is enabled""... $ac_c" 1>&6 2085echo "configure:2087: checking if 64bit support is enabled" >&5 2086 # Check whether --enable-64bit or --disable-64bit was given. 2087if test "${enable_64bit+set}" = set; then 2088 enableval="$enable_64bit" 2089 do64bit=$enableval 2090else 2091 do64bit=no 2092fi 2093 2094 echo "$ac_t""$do64bit" 1>&6 2095 2096 # Step 0.b: Enable Solaris 64 bit VIS support? 2097 2098 echo $ac_n "checking if 64bit Sparc VIS support is requested""... $ac_c" 1>&6 2099echo "configure:2101: checking if 64bit Sparc VIS support is requested" >&5 2100 # Check whether --enable-64bit-vis or --disable-64bit-vis was given. 2101if test "${enable_64bit_vis+set}" = set; then 2102 enableval="$enable_64bit_vis" 2103 do64bitVIS=$enableval 2104else 2105 do64bitVIS=no 2106fi 2107 2108 echo "$ac_t""$do64bitVIS" 1>&6 2109 2110 if test "$do64bitVIS" = "yes"; then 2111 # Force 64bit on with VIS 2112 do64bit=yes 2113 fi 2114 2115 # Step 1: set the variable "system" to hold the name and version number 2116 # for the system. This can usually be done via the "uname" command, but 2117 # there are a few systems, like Next, where this doesn't work. 2118 2119 echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6 2120echo "configure:2122: checking system version (for dynamic loading)" >&5 2121 if test -f /usr/lib/NextStep/software_version; then 2122 system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 2123 else 2124 system=`uname -s`-`uname -r` 2125 if test "$?" -ne 0 ; then 2126 echo "$ac_t""unknown (can't find uname command)" 1>&6 2127 system=unknown 2128 else 2129 # Special check for weird MP-RAS system (uname returns weird 2130 # results, and the version is kept in special file). 2131 2132 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 2133 system=MP-RAS-`awk '{print }' /etc/.relid'` 2134 fi 2135 if test "`uname -s`" = "AIX" ; then 2136 system=AIX-`uname -v`.`uname -r` 2137 fi 2138 if test "${TEA_PLATFORM}" = "windows" ; then 2139 system=windows 2140 fi 2141 echo "$ac_t""$system" 1>&6 2142 fi 2143 fi 2144 2145 # Step 2: check for existence of -ldl library. This is needed because 2146 # Linux can use either -ldl or -ldld for dynamic loading. 2147 2148 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2149echo "configure:2151: checking for dlopen in -ldl" >&5 2150ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2151if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2152 echo $ac_n "(cached) $ac_c" 1>&6 2153else 2154 ac_save_LIBS="$LIBS" 2155LIBS="-ldl $LIBS" 2156cat > conftest.$ac_ext <<EOF 2157#line 2159 "configure" 2158#include "confdefs.h" 2159/* Override any gcc2 internal prototype to avoid an error. */ 2160/* We use char because int might match the return type of a gcc2 2161 builtin and then its argument prototype would still apply. */ 2162char dlopen(); 2163 2164int main() { 2165dlopen() 2166; return 0; } 2167EOF 2168if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2169 rm -rf conftest* 2170 eval "ac_cv_lib_$ac_lib_var=yes" 2171else 2172 echo "configure: failed program was:" >&5 2173 cat conftest.$ac_ext >&5 2174 rm -rf conftest* 2175 eval "ac_cv_lib_$ac_lib_var=no" 2176fi 2177rm -f conftest* 2178LIBS="$ac_save_LIBS" 2179 2180fi 2181if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2182 echo "$ac_t""yes" 1>&6 2183 have_dl=yes 2184else 2185 echo "$ac_t""no" 1>&6 2186have_dl=no 2187fi 2188 2189 2190 # Step 3: set configuration options based on system name and version. 2191 2192 do64bit_ok=no 2193 EXTRA_CFLAGS="" 2194 TCL_EXPORT_FILE_SUFFIX="" 2195 UNSHARED_LIB_SUFFIX="" 2196 TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' 2197 ECHO_VERSION='`echo ${VERSION}`' 2198 TCL_LIB_VERSIONS_OK=ok 2199 CFLAGS_DEBUG=-g 2200 CFLAGS_OPTIMIZE=-O 2201 if test "$GCC" = "yes" ; then 2202 CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int" 2203 else 2204 CFLAGS_WARNING="" 2205 fi 2206 TCL_NEEDS_EXP_FILE=0 2207 TCL_BUILD_EXP_FILE="" 2208 TCL_EXP_FILE="" 2209 # Extract the first word of "ar", so it can be a program name with args. 2210set dummy ar; ac_word=$2 2211echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2212echo "configure:2214: checking for $ac_word" >&5 2213if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 2214 echo $ac_n "(cached) $ac_c" 1>&6 2215else 2216 if test -n "$AR"; then 2217 ac_cv_prog_AR="$AR" # Let the user override the test. 2218else 2219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2220 ac_dummy="$PATH" 2221 for ac_dir in $ac_dummy; do 2222 test -z "$ac_dir" && ac_dir=. 2223 if test -f $ac_dir/$ac_word; then 2224 ac_cv_prog_AR="ar" 2225 break 2226 fi 2227 done 2228 IFS="$ac_save_ifs" 2229fi 2230fi 2231AR="$ac_cv_prog_AR" 2232if test -n "$AR"; then 2233 echo "$ac_t""$AR" 1>&6 2234else 2235 echo "$ac_t""no" 1>&6 2236fi 2237 2238 STLIB_LD='${AR} cr' 2239 case $system in 2240 windows) 2241 # This is a 2-stage check to make sure we have the 64-bit SDK 2242 # We have to know where the SDK is installed. 2243 if test "$do64bit" = "yes" ; then 2244 if test "x${MSSDK}x" = "xx" ; then 2245 MSSDK="C:/Progra~1/Microsoft SDK" 2246 fi 2247 # In order to work in the tortured autoconf environment, 2248 # we need to ensure that this path has no spaces 2249 MSSDK=`cygpath -w -s "$MSSDK" | sed -e 's!\\\!/!g'` 2250 if test ! -d "${MSSDK}/bin/win64" ; then 2251 echo "configure: warning: "could not find 64-bit SDK to enable 64bit mode"" 1>&2 2252 do64bit="no" 2253 else 2254 do64bit_ok="yes" 2255 fi 2256 fi 2257 2258 if test "${SHARED_BUILD}" = "0" ; then 2259 runtime=-MT 2260 else 2261 runtime=-MD 2262 fi 2263 2264 if test "$do64bit" = "yes" ; then 2265 # All this magic is necessary for the Win64 SDK RC1 - hobbs 2266 export CC="${MSSDK}/Bin/Win64/cl.exe \ 2267 -I${MSSDK}/Include/prerelease -I${MSSDK}/Include/Win64/crt \ 2268 -I${MSSDK}/Include" 2269 export RC="${MSSDK}/bin/rc.exe" 2270 export lflags="-MACHINE:IA64 -LIBPATH:${MSSDK}/Lib/IA64 \ 2271 -LIBPATH:${MSSDK}/Lib/Prerelease/IA64" 2272 export STLIB_LD="${MSSDK}/bin/win64/lib.exe -nologo ${lflags}" 2273 export LINKBIN="${MSSDK}/bin/win64/link.exe ${lflags}" 2274 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 2275 CFLAGS_OPTIMIZE="-nologo -O2 -Gs -W2 ${runtime}" 2276 else 2277 RC="rc" 2278 STLIB_LD="lib -nologo" 2279 LINKBIN="link -link50compat" 2280 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 2281 CFLAGS_OPTIMIZE="-nologo -O2 -Gs -GD -W2 ${runtime}" 2282 fi 2283 2284 if test "$MINGW32" = "yes"; then 2285 # mingw gcc mode 2286 CFLAGS_DEBUG="-g" 2287 CFLAGS_OPTIMIZE="-O2" 2288 SHLIB_LD="gcc -shared" 2289 STLIB_LD='${AR} cr' 2290 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 2291 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 2292 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 2293 else 2294 SHLIB_LD="${LINKBIN} -dll -nologo" 2295 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.lib' 2296 EXTRA_CFLAGS="-YX" 2297 # For information on what debugtype is most useful, see: 2298 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 2299 # This essentially turns it all on. 2300 LDFLAGS_DEBUG="-debug:full -debugtype:both -warn:2" 2301 LDFLAGS_OPTIMIZE="-release" 2302 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 2303 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 2304 PATHTYPE=-w 2305 fi 2306 2307 SHLIB_LD_LIBS='${LIBS}' 2308 SHLIB_SUFFIX=".dll" 2309 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.dll' 2310 2311 TCL_LIB_VERSIONS_OK=nodots 2312 # Bogus to avoid getting this turned off 2313 DL_OBJS="tclLoadNone.obj" 2314 ;; 2315 AIX-*) 2316 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then 2317 # AIX requires the _r compiler when gcc isn't being used 2318 if test "${CC}" != "cc_r" ; then 2319 CC=${CC}_r 2320 fi 2321 echo "$ac_t""Using $CC for compiling with threads" 1>&6 2322 fi 2323 LIBS="$LIBS -lc" 2324 SHLIB_CFLAGS="" 2325 SHLIB_SUFFIX=".so" 2326 SHLIB_LD_LIBS='${LIBS}' 2327 if test "`uname -m`" = "ia64" ; then 2328 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 2329 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 2330 # AIX-5 has dl* in libc.so 2331 DL_LIBS="" 2332 if test "$GCC" = "yes" ; then 2333 LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 2334 else 2335 LD_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 2336 fi 2337 else 2338 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 2339 DL_LIBS="-ldl" 2340 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 2341 TCL_NEEDS_EXP_FILE=1 2342 TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' 2343 fi 2344 DL_OBJS="tclLoadDl.o" 2345 LDFLAGS="" 2346 2347 # AIX v<=4.1 has some different flags than 4.2+ 2348 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then 2349 LIBOBJS="$LIBOBJS tclLoadAix.o" 2350 DL_LIBS="-lld" 2351 fi 2352 2353 # On AIX <=v4 systems, libbsd.a has to be linked in to support 2354 # non-blocking file IO. This library has to be linked in after 2355 # the MATH_LIBS or it breaks the pow() function. The way to 2356 # insure proper sequencing, is to add it to the tail of MATH_LIBS. 2357 # This library also supplies gettimeofday. 2358 # 2359 # AIX does not have a timezone field in struct tm. When the AIX 2360 # bsd library is used, the timezone global and the gettimeofday 2361 # methods are to be avoided for timezone deduction instead, we 2362 # deduce the timezone by comparing the localtime result on a 2363 # known GMT value. 2364 2365 echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6 2366echo "configure:2368: checking for gettimeofday in -lbsd" >&5 2367ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'` 2368if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2369 echo $ac_n "(cached) $ac_c" 1>&6 2370else 2371 ac_save_LIBS="$LIBS" 2372LIBS="-lbsd $LIBS" 2373cat > conftest.$ac_ext <<EOF 2374#line 2376 "configure" 2375#include "confdefs.h" 2376/* Override any gcc2 internal prototype to avoid an error. */ 2377/* We use char because int might match the return type of a gcc2 2378 builtin and then its argument prototype would still apply. */ 2379char gettimeofday(); 2380 2381int main() { 2382gettimeofday() 2383; return 0; } 2384EOF 2385if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2386 rm -rf conftest* 2387 eval "ac_cv_lib_$ac_lib_var=yes" 2388else 2389 echo "configure: failed program was:" >&5 2390 cat conftest.$ac_ext >&5 2391 rm -rf conftest* 2392 eval "ac_cv_lib_$ac_lib_var=no" 2393fi 2394rm -f conftest* 2395LIBS="$ac_save_LIBS" 2396 2397fi 2398if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2399 echo "$ac_t""yes" 1>&6 2400 libbsd=yes 2401else 2402 echo "$ac_t""no" 1>&6 2403libbsd=no 2404fi 2405 2406 if test $libbsd = yes; then 2407 MATH_LIBS="$MATH_LIBS -lbsd" 2408 cat >> confdefs.h <<\EOF 2409#define USE_DELTA_FOR_TZ 1 2410EOF 2411 2412 fi 2413 2414 # Check to enable 64-bit flags for compiler/linker on AIX 5+ 2415 if test "$do64bit" = "yes" -a "`uname -v`" -gt "4" ; then 2416 if test "$GCC" = "yes" ; then 2417 echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2 2418 else 2419 do64bit_ok=yes 2420 EXTRA_CFLAGS="-q64" 2421 LDFLAGS="-q64" 2422 fi 2423 fi 2424 ;; 2425 BSD/OS-2.1*|BSD/OS-3*) 2426 SHLIB_CFLAGS="" 2427 SHLIB_LD="shlicc -r" 2428 SHLIB_LD_LIBS='${LIBS}' 2429 SHLIB_SUFFIX=".so" 2430 DL_OBJS="tclLoadDl.o" 2431 DL_LIBS="-ldl" 2432 LDFLAGS="" 2433 LD_SEARCH_FLAGS="" 2434 ;; 2435 BSD/OS-4.*) 2436 SHLIB_CFLAGS="-export-dynamic -fPIC" 2437 SHLIB_LD="cc -shared" 2438 SHLIB_LD_LIBS='${LIBS}' 2439 SHLIB_SUFFIX=".so" 2440 DL_OBJS="tclLoadDl.o" 2441 DL_LIBS="-ldl" 2442 LDFLAGS="-export-dynamic" 2443 LD_SEARCH_FLAGS="" 2444 ;; 2445 dgux*) 2446 SHLIB_CFLAGS="-K PIC" 2447 SHLIB_LD="cc -G" 2448 SHLIB_LD_LIBS="" 2449 SHLIB_SUFFIX=".so" 2450 DL_OBJS="tclLoadDl.o" 2451 DL_LIBS="-ldl" 2452 LDFLAGS="" 2453 LD_SEARCH_FLAGS="" 2454 ;; 2455 HP-UX-*.11.*) 2456 # Use updated header definitions where possible 2457 cat >> confdefs.h <<\EOF 2458#define _XOPEN_SOURCE_EXTENDED 1 2459EOF 2460 2461 2462 SHLIB_SUFFIX=".sl" 2463 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 2464echo "configure:2466: checking for shl_load in -ldld" >&5 2465ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 2466if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2467 echo $ac_n "(cached) $ac_c" 1>&6 2468else 2469 ac_save_LIBS="$LIBS" 2470LIBS="-ldld $LIBS" 2471cat > conftest.$ac_ext <<EOF 2472#line 2474 "configure" 2473#include "confdefs.h" 2474/* Override any gcc2 internal prototype to avoid an error. */ 2475/* We use char because int might match the return type of a gcc2 2476 builtin and then its argument prototype would still apply. */ 2477char shl_load(); 2478 2479int main() { 2480shl_load() 2481; return 0; } 2482EOF 2483if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2484 rm -rf conftest* 2485 eval "ac_cv_lib_$ac_lib_var=yes" 2486else 2487 echo "configure: failed program was:" >&5 2488 cat conftest.$ac_ext >&5 2489 rm -rf conftest* 2490 eval "ac_cv_lib_$ac_lib_var=no" 2491fi 2492rm -f conftest* 2493LIBS="$ac_save_LIBS" 2494 2495fi 2496if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2497 echo "$ac_t""yes" 1>&6 2498 tcl_ok=yes 2499else 2500 echo "$ac_t""no" 1>&6 2501tcl_ok=no 2502fi 2503 2504 if test "$tcl_ok" = yes; then 2505 SHLIB_CFLAGS="+z" 2506 SHLIB_LD="ld -b" 2507 SHLIB_LD_LIBS="" 2508 DL_OBJS="tclLoadShl.o" 2509 DL_LIBS="-ldld" 2510 LDFLAGS="-Wl,-E" 2511 LD_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 2512 fi 2513 2514 # Check to enable 64-bit flags for compiler/linker 2515 if test "$do64bit" = "yes" ; then 2516 if test "$GCC" = "yes" ; then 2517 echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2 2518 else 2519 do64bit_ok=yes 2520 EXTRA_CFLAGS="+DA2.0W" 2521 LDFLAGS="+DA2.0W $LDFLAGS" 2522 fi 2523 fi 2524 ;; 2525 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 2526 SHLIB_SUFFIX=".sl" 2527 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 2528echo "configure:2530: checking for shl_load in -ldld" >&5 2529ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 2530if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2531 echo $ac_n "(cached) $ac_c" 1>&6 2532else 2533 ac_save_LIBS="$LIBS" 2534LIBS="-ldld $LIBS" 2535cat > conftest.$ac_ext <<EOF 2536#line 2538 "configure" 2537#include "confdefs.h" 2538/* Override any gcc2 internal prototype to avoid an error. */ 2539/* We use char because int might match the return type of a gcc2 2540 builtin and then its argument prototype would still apply. */ 2541char shl_load(); 2542 2543int main() { 2544shl_load() 2545; return 0; } 2546EOF 2547if { (eval echo configure:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2548 rm -rf conftest* 2549 eval "ac_cv_lib_$ac_lib_var=yes" 2550else 2551 echo "configure: failed program was:" >&5 2552 cat conftest.$ac_ext >&5 2553 rm -rf conftest* 2554 eval "ac_cv_lib_$ac_lib_var=no" 2555fi 2556rm -f conftest* 2557LIBS="$ac_save_LIBS" 2558 2559fi 2560if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2561 echo "$ac_t""yes" 1>&6 2562 tcl_ok=yes 2563else 2564 echo "$ac_t""no" 1>&6 2565tcl_ok=no 2566fi 2567 2568 if test "$tcl_ok" = yes; then 2569 SHLIB_CFLAGS="+z" 2570 SHLIB_LD="ld -b" 2571 SHLIB_LD_LIBS="" 2572 DL_OBJS="tclLoadShl.o" 2573 DL_LIBS="-ldld" 2574 LDFLAGS="-Wl,-E" 2575 LD_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 2576 fi 2577 ;; 2578 IRIX-4.*) 2579 SHLIB_CFLAGS="-G 0" 2580 SHLIB_SUFFIX=".a" 2581 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 2582 SHLIB_LD_LIBS='${LIBS}' 2583 DL_OBJS="tclLoadAout.o" 2584 DL_LIBS="" 2585 LDFLAGS="-Wl,-D,08000000" 2586 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 2587 SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' 2588 ;; 2589 IRIX-5.*) 2590 SHLIB_CFLAGS="" 2591 SHLIB_LD="ld -shared -rdata_shared" 2592 SHLIB_LD_LIBS='${LIBS}' 2593 SHLIB_SUFFIX=".so" 2594 DL_OBJS="tclLoadDl.o" 2595 DL_LIBS="" 2596 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 2597 EXTRA_CFLAGS="" 2598 LDFLAGS="" 2599 ;; 2600 IRIX-6.*|IRIX64-6.5*) 2601 SHLIB_CFLAGS="" 2602 SHLIB_LD="ld -n32 -shared -rdata_shared" 2603 SHLIB_LD_LIBS='${LIBS}' 2604 SHLIB_SUFFIX=".so" 2605 DL_OBJS="tclLoadDl.o" 2606 DL_LIBS="" 2607 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 2608 if test "$GCC" = "yes" ; then 2609 EXTRA_CFLAGS="-mabi=n32" 2610 LDFLAGS="-mabi=n32" 2611 else 2612 case $system in 2613 IRIX-6.3) 2614 # Use to build 6.2 compatible binaries on 6.3. 2615 EXTRA_CFLAGS="-n32 -D_OLD_TERMIOS" 2616 ;; 2617 *) 2618 EXTRA_CFLAGS="-n32" 2619 ;; 2620 esac 2621 LDFLAGS="-n32" 2622 fi 2623 ;; 2624 IRIX64-6.*) 2625 SHLIB_CFLAGS="" 2626 SHLIB_LD="ld -n32 -shared -rdata_shared" 2627 SHLIB_LD_LIBS='${LIBS}' 2628 SHLIB_SUFFIX=".so" 2629 DL_OBJS="tclLoadDl.o" 2630 DL_LIBS="" 2631 LDFLAGS="" 2632 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 2633 ;; 2634 Linux*) 2635 SHLIB_CFLAGS="-fPIC" 2636 SHLIB_LD_LIBS='${LIBS}' 2637 SHLIB_SUFFIX=".so" 2638 2639 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 2640 # when you inline the string and math operations. Turn this off to 2641 # get rid of the warnings. 2642 2643 CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 2644 2645 if test "$have_dl" = yes; then 2646 SHLIB_LD="${CC} -shared" 2647 DL_OBJS="tclLoadDl.o" 2648 DL_LIBS="-ldl" 2649 LDFLAGS="-rdynamic" 2650 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 2651 else 2652 ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'` 2653echo $ac_n "checking for dld.h""... $ac_c" 1>&6 2654echo "configure:2656: checking for dld.h" >&5 2655if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2656 echo $ac_n "(cached) $ac_c" 1>&6 2657else 2658 cat > conftest.$ac_ext <<EOF 2659#line 2661 "configure" 2660#include "confdefs.h" 2661#include <dld.h> 2662EOF 2663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2664{ (eval echo configure:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2665ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2666if test -z "$ac_err"; then 2667 rm -rf conftest* 2668 eval "ac_cv_header_$ac_safe=yes" 2669else 2670 echo "$ac_err" >&5 2671 echo "configure: failed program was:" >&5 2672 cat conftest.$ac_ext >&5 2673 rm -rf conftest* 2674 eval "ac_cv_header_$ac_safe=no" 2675fi 2676rm -f conftest* 2677fi 2678if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2679 echo "$ac_t""yes" 1>&6 2680 2681 SHLIB_LD="ld -shared" 2682 DL_OBJS="tclLoadDld.o" 2683 DL_LIBS="-ldld" 2684 LDFLAGS="" 2685 LD_SEARCH_FLAGS="" 2686else 2687 echo "$ac_t""no" 1>&6 2688fi 2689 2690 fi 2691 if test "`uname -m`" = "alpha" ; then 2692 EXTRA_CFLAGS="-mieee" 2693 fi 2694 2695 # The combo of gcc + glibc has a bug related 2696 # to inlining of functions like strtod(). The 2697 # -fno-builtin flag should address this problem 2698 # but it does not work. The -fno-inline flag 2699 # is kind of overkill but it works. 2700 # Disable inlining only when one of the 2701 # files in compat/*.c is being linked in. 2702 if test x"${LIBOBJS}" != x ; then 2703 EXTRA_CFLAGS="${EXTRA_CFLAGS} -fno-inline" 2704 fi 2705 2706 ;; 2707 GNU*) 2708 SHLIB_CFLAGS="-fPIC" 2709 SHLIB_LD_LIBS='${LIBS}' 2710 SHLIB_SUFFIX=".so" 2711 2712 if test "$have_dl" = yes; then 2713 SHLIB_LD="${CC} -shared" 2714 DL_OBJS="" 2715 DL_LIBS="-ldl" 2716 LDFLAGS="-rdynamic" 2717 LD_SEARCH_FLAGS="" 2718 else 2719 ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'` 2720echo $ac_n "checking for dld.h""... $ac_c" 1>&6 2721echo "configure:2723: checking for dld.h" >&5 2722if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2723 echo $ac_n "(cached) $ac_c" 1>&6 2724else 2725 cat > conftest.$ac_ext <<EOF 2726#line 2728 "configure" 2727#include "confdefs.h" 2728#include <dld.h> 2729EOF 2730ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2731{ (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2732ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2733if test -z "$ac_err"; then 2734 rm -rf conftest* 2735 eval "ac_cv_header_$ac_safe=yes" 2736else 2737 echo "$ac_err" >&5 2738 echo "configure: failed program was:" >&5 2739 cat conftest.$ac_ext >&5 2740 rm -rf conftest* 2741 eval "ac_cv_header_$ac_safe=no" 2742fi 2743rm -f conftest* 2744fi 2745if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2746 echo "$ac_t""yes" 1>&6 2747 2748 SHLIB_LD="ld -shared" 2749 DL_OBJS="" 2750 DL_LIBS="-ldld" 2751 LDFLAGS="" 2752 LD_SEARCH_FLAGS="" 2753else 2754 echo "$ac_t""no" 1>&6 2755fi 2756 2757 fi 2758 if test "`uname -m`" = "alpha" ; then 2759 EXTRA_CFLAGS="-mieee" 2760 fi 2761 ;; 2762 MP-RAS-02*) 2763 SHLIB_CFLAGS="-K PIC" 2764 SHLIB_LD="cc -G" 2765 SHLIB_LD_LIBS="" 2766 SHLIB_SUFFIX=".so" 2767 DL_OBJS="tclLoadDl.o" 2768 DL_LIBS="-ldl" 2769 LDFLAGS="" 2770 LD_SEARCH_FLAGS="" 2771 ;; 2772 MP-RAS-*) 2773 SHLIB_CFLAGS="-K PIC" 2774 SHLIB_LD="cc -G" 2775 SHLIB_LD_LIBS="" 2776 SHLIB_SUFFIX=".so" 2777 DL_OBJS="tclLoadDl.o" 2778 DL_LIBS="-ldl" 2779 LDFLAGS="-Wl,-Bexport" 2780 LD_SEARCH_FLAGS="" 2781 ;; 2782 NetBSD-*|FreeBSD-[1-2].*|OpenBSD-*) 2783 # Not available on all versions: check for include file. 2784 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 2785echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 2786echo "configure:2788: checking for dlfcn.h" >&5 2787if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2788 echo $ac_n "(cached) $ac_c" 1>&6 2789else 2790 cat > conftest.$ac_ext <<EOF 2791#line 2793 "configure" 2792#include "confdefs.h" 2793#include <dlfcn.h> 2794EOF 2795ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2796{ (eval echo configure:2798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2797ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2798if test -z "$ac_err"; then 2799 rm -rf conftest* 2800 eval "ac_cv_header_$ac_safe=yes" 2801else 2802 echo "$ac_err" >&5 2803 echo "configure: failed program was:" >&5 2804 cat conftest.$ac_ext >&5 2805 rm -rf conftest* 2806 eval "ac_cv_header_$ac_safe=no" 2807fi 2808rm -f conftest* 2809fi 2810if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2811 echo "$ac_t""yes" 1>&6 2812 2813 # NetBSD/SPARC needs -fPIC, -fpic will not do. 2814 SHLIB_CFLAGS="-fPIC" 2815 SHLIB_LD="ld -Bshareable -x" 2816 SHLIB_LD_LIBS="" 2817 SHLIB_SUFFIX=".so" 2818 DL_OBJS="tclLoadDl.o" 2819 DL_LIBS="" 2820 LDFLAGS="" 2821 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 2822 echo $ac_n "checking for ELF""... $ac_c" 1>&6 2823echo "configure:2825: checking for ELF" >&5 2824 cat > conftest.$ac_ext <<EOF 2825#line 2827 "configure" 2826#include "confdefs.h" 2827 2828#ifdef __ELF__ 2829 yes 2830#endif 2831 2832EOF 2833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2834 egrep "yes" >/dev/null 2>&1; then 2835 rm -rf conftest* 2836 echo "$ac_t""yes" 1>&6 2837 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' 2838else 2839 rm -rf conftest* 2840 echo "$ac_t""no" 1>&6 2841 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 2842 2843fi 2844rm -f conftest* 2845 2846 2847else 2848 echo "$ac_t""no" 1>&6 2849 2850 SHLIB_CFLAGS="" 2851 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" 2852 SHLIB_LD_LIBS='${LIBS}' 2853 SHLIB_SUFFIX=".a" 2854 DL_OBJS="tclLoadAout.o" 2855 DL_LIBS="" 2856 LDFLAGS="" 2857 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 2858 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 2859 2860fi 2861 2862 2863 # FreeBSD doesn't handle version numbers with dots. 2864 2865 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 2866 TCL_LIB_VERSIONS_OK=nodots 2867 ;; 2868 FreeBSD-*) 2869 # FreeBSD 3.* and greater have ELF. 2870 SHLIB_CFLAGS="-fPIC" 2871 SHLIB_LD="ld -Bshareable -x" 2872 SHLIB_LD_LIBS='${LIBS}' 2873 SHLIB_SUFFIX=".so" 2874 DL_OBJS="tclLoadDl.o" 2875 DL_LIBS="" 2876 LDFLAGS="-export-dynamic" 2877 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 2878 if test "${TCL_THREADS}" = "1" ; then 2879 EXTRA_CFLAGS="-pthread" 2880 LDFLAGS="$LDFLAGS -pthread" 2881 fi 2882 case $system in 2883 FreeBSD-3.*) 2884 # FreeBSD-3 doesn't handle version numbers with dots. 2885 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 2886 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' 2887 TCL_LIB_VERSIONS_OK=nodots 2888 ;; 2889 esac 2890 ;; 2891 Rhapsody-*|Darwin-*) 2892 SHLIB_CFLAGS="-fno-common" 2893 SHLIB_LD="cc -dynamiclib \${LDFLAGS}" 2894 TCL_SHLIB_LD_EXTRAS="-compatibility_version ${TCL_MAJOR_VERSION} -current_version \${VERSION} -install_name \${LIB_RUNTIME_DIR}/\${TCL_LIB_FILE} -prebind -seg1addr a000000" 2895 SHLIB_LD_LIBS='${LIBS}' 2896 SHLIB_SUFFIX=".dylib" 2897 DL_OBJS="tclLoadDyld.o" 2898 DL_LIBS="" 2899 LDFLAGS="-prebind" 2900 LD_SEARCH_FLAGS="" 2901 CFLAGS_OPTIMIZE="-O3" 2902 EXTRA_CFLAGS="-arch ppc -pipe" 2903 ;; 2904 NEXTSTEP-*) 2905 SHLIB_CFLAGS="" 2906 SHLIB_LD="cc -nostdlib -r" 2907 SHLIB_LD_LIBS="" 2908 SHLIB_SUFFIX=".so" 2909 DL_OBJS="tclLoadNext.o" 2910 DL_LIBS="" 2911 LDFLAGS="" 2912 LD_SEARCH_FLAGS="" 2913 ;; 2914 OS/390-*) 2915 CFLAGS_OPTIMIZE="" # Optimizer is buggy 2916 cat >> confdefs.h <<\EOF 2917#define _OE_SOCKETS 1 2918EOF 2919 # needed in sys/socket.h 2920 ;; 2921 OSF1-1.0|OSF1-1.1|OSF1-1.2) 2922 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 2923 SHLIB_CFLAGS="" 2924 # Hack: make package name same as library name 2925 SHLIB_LD='ld -R -export :' 2926 SHLIB_LD_LIBS="" 2927 SHLIB_SUFFIX=".so" 2928 DL_OBJS="tclLoadOSF.o" 2929 DL_LIBS="" 2930 LDFLAGS="" 2931 LD_SEARCH_FLAGS="" 2932 ;; 2933 OSF1-1.*) 2934 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 2935 SHLIB_CFLAGS="-fPIC" 2936 SHLIB_LD="ld -shared" 2937 SHLIB_LD_LIBS="" 2938 SHLIB_SUFFIX=".so" 2939 DL_OBJS="tclLoadDl.o" 2940 DL_LIBS="" 2941 LDFLAGS="" 2942 LD_SEARCH_FLAGS="" 2943 ;; 2944 OSF1-V*) 2945 # Digital OSF/1 2946 SHLIB_CFLAGS="" 2947 SHLIB_LD='ld -shared -expect_unresolved "*"' 2948 SHLIB_LD_LIBS="" 2949 SHLIB_SUFFIX=".so" 2950 DL_OBJS="tclLoadDl.o" 2951 DL_LIBS="" 2952 LDFLAGS="" 2953 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 2954 if test "$GCC" != "yes" ; then 2955 EXTRA_CFLAGS="-DHAVE_TZSET -std1" 2956 fi 2957 # see pthread_intro(3) for pthread support on osf1, k.furukawa 2958 if test "${TCL_THREADS}" = "1" ; then 2959 EXTRA_CFLAGS="${EXTRA_CFLAGS} -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 2960 EXTRA_CFLAGS="${EXTRA_CFLAGS} -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 2961 LIBS=`echo $LIBS | sed s/-lpthreads//` 2962 if test "$GCC" = "yes" ; then 2963 LIBS="$LIBS -lpthread -lmach -lexc" 2964 else 2965 EXTRA_CFLAGS="${EXTRA_CFLAGS} -pthread" 2966 LDFLAGS="-pthread" 2967 fi 2968 fi 2969 2970 ;; 2971 QNX-6*) 2972 # QNX RTP 2973 # This may work for all QNX, but it was only reported for v6. 2974 SHLIB_CFLAGS="-fPIC" 2975 SHLIB_LD="ld -Bshareable -x" 2976 SHLIB_LD_LIBS="" 2977 SHLIB_SUFFIX=".so" 2978 DL_OBJS="tclLoadDl.o" 2979 # dlopen is in -lc on QNX 2980 DL_LIBS="" 2981 LDFLAGS="" 2982 LD_SEARCH_FLAGS="" 2983 ;; 2984 RISCos-*) 2985 SHLIB_CFLAGS="-G 0" 2986 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 2987 SHLIB_LD_LIBS='${LIBS}' 2988 SHLIB_SUFFIX=".a" 2989 DL_OBJS="tclLoadAout.o" 2990 DL_LIBS="" 2991 LDFLAGS="-Wl,-D,08000000" 2992 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 2993 ;; 2994 SCO_SV-3.2*) 2995 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 2996 # this test works, since "uname -s" was non-standard in 3.2.4 and 2997 # below. 2998 if test "$GCC" = "yes" ; then 2999 SHLIB_CFLAGS="-fPIC -melf" 3000 LDFLAGS="-melf -Wl,-Bexport" 3001 else 3002 SHLIB_CFLAGS="-Kpic -belf" 3003 LDFLAGS="-belf -Wl,-Bexport" 3004 fi 3005 SHLIB_LD="ld -G" 3006 SHLIB_LD_LIBS="" 3007 SHLIB_SUFFIX=".so" 3008 DL_OBJS="tclLoadDl.o" 3009 DL_LIBS="" 3010 LD_SEARCH_FLAGS="" 3011 ;; 3012 SINIX*5.4*) 3013 SHLIB_CFLAGS="-K PIC" 3014 SHLIB_LD="cc -G" 3015 SHLIB_LD_LIBS="" 3016 SHLIB_SUFFIX=".so" 3017 DL_OBJS="tclLoadDl.o" 3018 DL_LIBS="-ldl" 3019 LDFLAGS="" 3020 LD_SEARCH_FLAGS="" 3021 ;; 3022 SunOS-4*) 3023 SHLIB_CFLAGS="-PIC" 3024 SHLIB_LD="ld" 3025 SHLIB_LD_LIBS="" 3026 SHLIB_SUFFIX=".so" 3027 DL_OBJS="tclLoadDl.o" 3028 DL_LIBS="-ldl" 3029 LDFLAGS="" 3030 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 3031 3032 # SunOS can't handle version numbers with dots in them in library 3033 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 3034 # requires an extra version number at the end of .so file names. 3035 # So, the library has to have a name like libtcl75.so.1.0 3036 3037 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 3038 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 3039 TCL_LIB_VERSIONS_OK=nodots 3040 ;; 3041 SunOS-5.[0-6]*) 3042 3043 # Note: If _REENTRANT isn't defined, then Solaris 3044 # won't define thread-safe library routines. 3045 3046 cat >> confdefs.h <<\EOF 3047#define _REENTRANT 1 3048EOF 3049 3050 cat >> confdefs.h <<\EOF 3051#define _POSIX_PTHREAD_SEMANTICS 1 3052EOF 3053 3054 3055 SHLIB_CFLAGS="-KPIC" 3056 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 3057 3058 # Note: need the LIBS below, otherwise Tk won't find Tcl's 3059 # symbols when dynamically loaded into tclsh. 3060 3061 SHLIB_LD_LIBS='${LIBS}' 3062 SHLIB_SUFFIX=".so" 3063 DL_OBJS="tclLoadDl.o" 3064 DL_LIBS="-ldl" 3065 LDFLAGS="" 3066 if test "$GCC" = "yes" ; then 3067 LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 3068 else 3069 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 3070 fi 3071 ;; 3072 SunOS-5*) 3073 3074 # Note: If _REENTRANT isn't defined, then Solaris 3075 # won't define thread-safe library routines. 3076 3077 cat >> confdefs.h <<\EOF 3078#define _REENTRANT 1 3079EOF 3080 3081 cat >> confdefs.h <<\EOF 3082#define _POSIX_PTHREAD_SEMANTICS 1 3083EOF 3084 3085 3086 SHLIB_CFLAGS="-KPIC" 3087 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 3088 LDFLAGS="" 3089 3090 # Check to enable 64-bit flags for compiler/linker 3091 if test "$do64bit" = "yes" ; then 3092 arch=`isainfo` 3093 if test "$arch" = "sparcv9 sparc" ; then 3094 if test "$GCC" = "yes" ; then 3095 echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2 3096 else 3097 do64bit_ok=yes 3098 if test "$do64bitVIS" = "yes" ; then 3099 EXTRA_CFLAGS="-xarch=v9a" 3100 LDFLAGS="-xarch=v9a" 3101 else 3102 EXTRA_CFLAGS="-xarch=v9" 3103 LDFLAGS="-xarch=v9" 3104 fi 3105 fi 3106 else 3107 echo "configure: warning: "64bit mode only supported sparcv9 system"" 1>&2 3108 fi 3109 fi 3110 3111 # Note: need the LIBS below, otherwise Tk won't find Tcl's 3112 # symbols when dynamically loaded into tclsh. 3113 3114 SHLIB_LD_LIBS='${LIBS}' 3115 SHLIB_SUFFIX=".so" 3116 DL_OBJS="tclLoadDl.o" 3117 DL_LIBS="-ldl" 3118 if test "$GCC" = "yes" ; then 3119 LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 3120 else 3121 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 3122 fi 3123 ;; 3124 ULTRIX-4.*) 3125 SHLIB_CFLAGS="-G 0" 3126 SHLIB_SUFFIX=".a" 3127 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 3128 SHLIB_LD_LIBS='${LIBS}' 3129 DL_OBJS="tclLoadAout.o" 3130 DL_LIBS="" 3131 LDFLAGS="-Wl,-D,08000000" 3132 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 3133 if test "$GCC" != "yes" ; then 3134 EXTRA_CFLAGS="-DHAVE_TZSET -std1" 3135 fi 3136 ;; 3137 UNIX_SV* | UnixWare-5*) 3138 SHLIB_CFLAGS="-KPIC" 3139 SHLIB_LD="cc -G" 3140 SHLIB_LD_LIBS="" 3141 SHLIB_SUFFIX=".so" 3142 DL_OBJS="tclLoadDl.o" 3143 DL_LIBS="-ldl" 3144 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 3145 # that don't grok the -Bexport option. Test that it does. 3146 hold_ldflags=$LDFLAGS 3147 echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6 3148echo "configure:3150: checking for ld accepts -Bexport flag" >&5 3149 LDFLAGS="${LDFLAGS} -Wl,-Bexport" 3150 cat > conftest.$ac_ext <<EOF 3151#line 3153 "configure" 3152#include "confdefs.h" 3153 3154int main() { 3155int i; 3156; return 0; } 3157EOF 3158if { (eval echo configure:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3159 rm -rf conftest* 3160 found=yes 3161else 3162 echo "configure: failed program was:" >&5 3163 cat conftest.$ac_ext >&5 3164 rm -rf conftest* 3165 found=no 3166fi 3167rm -f conftest* 3168 LDFLAGS=$hold_ldflags 3169 echo "$ac_t""$found" 1>&6 3170 if test $found = yes; then 3171 LDFLAGS="-Wl,-Bexport" 3172 else 3173 LDFLAGS="" 3174 fi 3175 LD_SEARCH_FLAGS="" 3176 ;; 3177 esac 3178 3179 if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then 3180 echo "configure: warning: "64bit support being disabled -- don\'t know magic for this platform"" 1>&2 3181 fi 3182 3183 # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic 3184 # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, 3185 # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need 3186 # to determine which of several header files defines the a.out file 3187 # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we 3188 # support only a file format that is more or less version-7-compatible. 3189 # In particular, 3190 # - a.out files must begin with `struct exec'. 3191 # - the N_TXTOFF on the `struct exec' must compute the seek address 3192 # of the text segment 3193 # - The `struct exec' must contain a_magic, a_text, a_data, a_bss 3194 # and a_entry fields. 3195 # The following compilation should succeed if and only if either sys/exec.h 3196 # or a.out.h is usable for the purpose. 3197 # 3198 # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the 3199 # `struct exec' includes a second header that contains information that 3200 # duplicates the v7 fields that are needed. 3201 3202 if test "x$DL_OBJS" = "xtclLoadAout.o" ; then 3203 echo $ac_n "checking sys/exec.h""... $ac_c" 1>&6 3204echo "configure:3206: checking sys/exec.h" >&5 3205 cat > conftest.$ac_ext <<EOF 3206#line 3208 "configure" 3207#include "confdefs.h" 3208#include <sys/exec.h> 3209int main() { 3210 3211 struct exec foo; 3212 unsigned long seek; 3213 int flag; 3214#if defined(__mips) || defined(mips) 3215 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 3216#else 3217 seek = N_TXTOFF (foo); 3218#endif 3219 flag = (foo.a_magic == OMAGIC); 3220 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 3221 3222; return 0; } 3223EOF 3224if { (eval echo configure:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3225 rm -rf conftest* 3226 tcl_ok=usable 3227else 3228 echo "configure: failed program was:" >&5 3229 cat conftest.$ac_ext >&5 3230 rm -rf conftest* 3231 tcl_ok=unusable 3232fi 3233rm -f conftest* 3234 echo "$ac_t""$tcl_ok" 1>&6 3235 if test $tcl_ok = usable; then 3236 cat >> confdefs.h <<\EOF 3237#define USE_SYS_EXEC_H 1 3238EOF 3239 3240 else 3241 echo $ac_n "checking a.out.h""... $ac_c" 1>&6 3242echo "configure:3244: checking a.out.h" >&5 3243 cat > conftest.$ac_ext <<EOF 3244#line 3246 "configure" 3245#include "confdefs.h" 3246#include <a.out.h> 3247int main() { 3248 3249 struct exec foo; 3250 unsigned long seek; 3251 int flag; 3252#if defined(__mips) || defined(mips) 3253 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 3254#else 3255 seek = N_TXTOFF (foo); 3256#endif 3257 flag = (foo.a_magic == OMAGIC); 3258 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 3259 3260; return 0; } 3261EOF 3262if { (eval echo configure:3264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3263 rm -rf conftest* 3264 tcl_ok=usable 3265else 3266 echo "configure: failed program was:" >&5 3267 cat conftest.$ac_ext >&5 3268 rm -rf conftest* 3269 tcl_ok=unusable 3270fi 3271rm -f conftest* 3272 echo "$ac_t""$tcl_ok" 1>&6 3273 if test $tcl_ok = usable; then 3274 cat >> confdefs.h <<\EOF 3275#define USE_A_OUT_H 1 3276EOF 3277 3278 else 3279 echo $ac_n "checking sys/exec_aout.h""... $ac_c" 1>&6 3280echo "configure:3282: checking sys/exec_aout.h" >&5 3281 cat > conftest.$ac_ext <<EOF 3282#line 3284 "configure" 3283#include "confdefs.h" 3284#include <sys/exec_aout.h> 3285int main() { 3286 3287 struct exec foo; 3288 unsigned long seek; 3289 int flag; 3290#if defined(__mips) || defined(mips) 3291 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 3292#else 3293 seek = N_TXTOFF (foo); 3294#endif 3295 flag = (foo.a_midmag == OMAGIC); 3296 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 3297 3298; return 0; } 3299EOF 3300if { (eval echo configure:3302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3301 rm -rf conftest* 3302 tcl_ok=usable 3303else 3304 echo "configure: failed program was:" >&5 3305 cat conftest.$ac_ext >&5 3306 rm -rf conftest* 3307 tcl_ok=unusable 3308fi 3309rm -f conftest* 3310 echo "$ac_t""$tcl_ok" 1>&6 3311 if test $tcl_ok = usable; then 3312 cat >> confdefs.h <<\EOF 3313#define USE_SYS_EXEC_AOUT_H 1 3314EOF 3315 3316 else 3317 DL_OBJS="" 3318 fi 3319 fi 3320 fi 3321 fi 3322 3323 # Step 5: disable dynamic loading if requested via a command-line switch. 3324 3325 # Check whether --enable-load or --disable-load was given. 3326if test "${enable_load+set}" = set; then 3327 enableval="$enable_load" 3328 tcl_ok=$enableval 3329else 3330 tcl_ok=yes 3331fi 3332 3333 if test "$tcl_ok" = "no"; then 3334 DL_OBJS="" 3335 fi 3336 3337 if test "x$DL_OBJS" != "x" ; then 3338 BUILD_DLTEST="\$(DLTEST_TARGETS)" 3339 else 3340 echo "Can't figure out how to do dynamic loading or shared libraries" 3341 echo "on this system." 3342 SHLIB_CFLAGS="" 3343 SHLIB_LD="" 3344 SHLIB_SUFFIX="" 3345 DL_OBJS="tclLoadNone.o" 3346 DL_LIBS="" 3347 LDFLAGS="" 3348 LD_SEARCH_FLAGS="" 3349 BUILD_DLTEST="" 3350 fi 3351 3352 # If we're running gcc, then change the C flags for compiling shared 3353 # libraries to the right flags for gcc, instead of those for the 3354 # standard manufacturer compiler. 3355 3356 if test "$DL_OBJS" != "tclLoadNone.o" ; then 3357 if test "$GCC" = "yes" ; then 3358 case $system in 3359 AIX-*) 3360 ;; 3361 BSD/OS*) 3362 ;; 3363 IRIX*) 3364 ;; 3365 NetBSD-*|FreeBSD-*|OpenBSD-*) 3366 ;; 3367 Rhapsody-*|Darwin-*) 3368 ;; 3369 RISCos-*) 3370 ;; 3371 SCO_SV-3.2*) 3372 ;; 3373 ULTRIX-4.*) 3374 ;; 3375 windows) 3376 if test "$MINGW32" != "yes"; then 3377 SHLIB_CFLAGS="-fPIC" 3378 fi 3379 ;; 3380 *) 3381 SHLIB_CFLAGS="-fPIC" 3382 ;; 3383 esac 3384 fi 3385 fi 3386 3387 if test "$SHARED_LIB_SUFFIX" = "" ; then 3388 SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' 3389 fi 3390 if test "$UNSHARED_LIB_SUFFIX" = "" ; then 3391 UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' 3392 fi 3393 3394 3395 3396 3397 3398 3399 3400 SHLIB_LDFLAGS='$(LDFLAGS_DEFAULT)' 3401 3402 3403 3404 3405 3406 3407 3408 3409TDOM_LD_SEARCH_FLAGS=${LD_SEARCH_FLAGS} 3410 3411 3412#-------------------------------------------------------------------- 3413# Set the default compiler switches based on the --enable-symbols option. 3414#-------------------------------------------------------------------- 3415 3416 3417 if test x"${TEA_INITED}" = x ; then 3418 # Can't refer to exact macro name or it will be substituted 3419 { echo "configure: error: Must call TEA INIT before ENABLE_SYMBOLS" 1>&2; exit 1; } 3420 fi 3421 3422 if test "${TEA_PLATFORM}" = "windows" ; then 3423 tcl_dbgx=d 3424 else 3425 tcl_dbgx=g 3426 fi 3427 3428 echo $ac_n "checking for build with symbols""... $ac_c" 1>&6 3429echo "configure:3431: checking for build with symbols" >&5 3430 # Check whether --enable-symbols or --disable-symbols was given. 3431if test "${enable_symbols+set}" = set; then 3432 enableval="$enable_symbols" 3433 tcl_ok=$enableval 3434else 3435 tcl_ok=no 3436fi 3437 3438 if test "$tcl_ok" = "yes"; then 3439 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' 3440 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' 3441 DBGX=${tcl_dbgx} 3442 TCL_DBGX=${tcl_dbgx} 3443 echo "$ac_t""yes" 1>&6 3444 else 3445 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' 3446 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' 3447 DBGX="" 3448 TCL_DBGX="" 3449 echo "$ac_t""no" 1>&6 3450 fi 3451 3452 3453 3454 3455 3456 3457if test "${SHARED_BUILD}" = "1" ; then 3458 CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}' 3459else 3460 CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING}' 3461fi 3462 3463 3464#-------------------------------------------------------------------- 3465# Everyone should be linking against the Tcl stub library. If you 3466# can't for some reason, remove this definition. If you aren't using 3467# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 3468# link against the non-stubbed Tcl library. Add Tk too if necessary. 3469#-------------------------------------------------------------------- 3470 3471#AC_DEFINE(USE_TCL_STUBS) 3472#AC_DEFINE(USE_TK_STUBS) 3473 3474#-------------------------------------------------------------------- 3475# This macro generates a line to use when building a library. It 3476# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 3477# and TEA_LOAD_TCLCONFIG macros above. 3478# For tDOM we always build both, static and shared libraries 3479#-------------------------------------------------------------------- 3480 3481 3482 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 3483 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(\$(PACKAGE)_OBJECTS)" 3484 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LDFLAGS} \${SHLIB_LD_LIBS} \$(LDFLAGS) -out:\$@ \$(\$(PACKAGE)_OBJECTS)" 3485 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(\$(PACKAGE)stub_OBJECTS)" 3486 else 3487 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(\$(PACKAGE)_OBJECTS)" 3488 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(\$(PACKAGE)_OBJECTS) \${SHLIB_LDFLAGS} \${SHLIB_LD_LIBS}" 3489 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(\$(PACKAGE)stub_OBJECTS)" 3490 fi 3491 3492 if test "${SHARED_BUILD}" = "1" ; then 3493 MAKE_LIB="${MAKE_SHARED_LIB} " 3494 else 3495 MAKE_LIB="${MAKE_STATIC_LIB} " 3496 fi 3497 3498 #-------------------------------------------------------------------- 3499 # Shared libraries and static libraries have different names. 3500 # Use the double eval to make sure the ${DBGX} in the suffix is 3501 # substituted. 3502 #-------------------------------------------------------------------- 3503 3504 if test "${TEA_PLATFORM}" = "windows" ; then 3505 if test "${SHARED_BUILD}" = "1" ; then 3506 # We force the unresolved linking of symbols that are really in 3507 # the private libraries of Tcl and Tk. 3508 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 3509 if test x"${TK_BIN_DIR}" != x ; then 3510 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 3511 fi 3512 eval eval "${PACKAGE}_LIB_FILE=${PACKAGE}${SHARED_LIB_SUFFIX}" 3513 RANLIB=: 3514 else 3515 eval eval "${PACKAGE}_LIB_FILE=${PACKAGE}${UNSHARED_LIB_SUFFIX}" 3516 fi 3517 # Some packages build there own stubs libraries 3518 eval eval "${PACKAGE}stub_LIB_FILE=${PACKAGE}stub${UNSHARED_LIB_SUFFIX}" 3519 else 3520 if test "${SHARED_BUILD}" = "1" ; then 3521 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 3522 if test x"${TK_BIN_DIR}" != x ; then 3523 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 3524 fi 3525 eval eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${SHARED_LIB_SUFFIX}" 3526 RANLIB=: 3527 else 3528 eval eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${UNSHARED_LIB_SUFFIX}" 3529 fi 3530 # Some packages build there own stubs libraries 3531 eval eval "${PACKAGE}stub_LIB_FILE=lib${PACKAGE}stub${UNSHARED_LIB_SUFFIX}" 3532 fi 3533 3534 3535 3536 3537 3538 3539 3540#-------------------------------------------------------------------- 3541# __CHANGE__ 3542# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 3543#-------------------------------------------------------------------- 3544 3545#LIBS="${LIBS} -lsuperfly" 3546 3547#-------------------------------------------------------------------- 3548# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 3549# file during the install process. Don't run the TCLSH_PROG through 3550# ${CYGPATH} because it's being used directly by make. 3551# Require that we use a tclsh shell version 8.2 or later since earlier 3552# versions have bugs in the pkg_mkIndex routine. 3553# Add WISH as well if this is a Tk extension. 3554#-------------------------------------------------------------------- 3555 3556 3557 echo $ac_n "checking for tclsh""... $ac_c" 1>&6 3558echo "configure:3560: checking for tclsh" >&5 3559 3560 if eval "test \"`echo '$''{'ac_cv_path_tclsh'+set}'`\" = set"; then 3561 echo $ac_n "(cached) $ac_c" 1>&6 3562else 3563 3564 search_path=`echo ${TCL_BIN_DIR}:${TCL_BIN_DIR}/../bin:${exec_prefix}/bin:${prefix}/bin:${PATH} | sed -e 's/:/ /g'` 3565 for dir in $search_path ; do 3566 for j in `ls -r $dir/tclsh[8-9]*${EXEEXT} 2> /dev/null` \ 3567 `ls -r $dir/tclsh*${EXEEXT} 2> /dev/null` ; do 3568 if test x"$ac_cv_path_tclsh" = x ; then 3569 if test -f "$j" ; then 3570 ac_cv_path_tclsh=$j 3571 break 3572 fi 3573 fi 3574 done 3575 done 3576 3577fi 3578 3579 3580 if test -f "$ac_cv_path_tclsh" ; then 3581 TCLSH_PROG=$ac_cv_path_tclsh 3582 echo "$ac_t""$TCLSH_PROG" 1>&6 3583 else 3584 { echo "configure: error: No tclsh found in PATH: $search_path" 1>&2; exit 1; } 3585 fi 3586 3587 3588#TEA_PROG_WISH 3589 3590#-------------------------------------------------------------------- 3591# Add some private include directories 3592#-------------------------------------------------------------------- 3593 3594TDOM_INCLUDES="-I${srcdir}/generic -I${srcdir}/expat" 3595 3596 3597#-------------------------------------------------------------------- 3598# Add optional AOLserver includes 3599#-------------------------------------------------------------------- 3600 3601 3602 echo $ac_n "checking for AOLserver configuration""... $ac_c" 1>&6 3603echo "configure:3605: checking for AOLserver configuration" >&5 3604 # Check whether --with-aol or --without-aol was given. 3605if test "${with_aol+set}" = set; then 3606 withval="$with_aol" 3607 \ 3608 with_aolserver=${withval} 3609fi 3610 3611 3612 if eval "test \"`echo '$''{'ac_cv_c_aolserver'+set}'`\" = set"; then 3613 echo $ac_n "(cached) $ac_c" 1>&6 3614else 3615 3616 if test x"${with_aolserver}" != x ; then 3617 if test -f "${with_aolserver}/include/ns.h" ; then 3618 ac_cv_c_aolserver=`(cd ${with_aolserver}; pwd)` 3619 else 3620 { echo "configure: error: ${with_aolserver} directory doesn't contain ns.h" 1>&2; exit 1; } 3621 fi 3622 fi 3623 3624fi 3625 3626 if test x"${ac_cv_c_aolserver}" = x ; then 3627 echo "$ac_t""none found" 1>&6 3628 else 3629 AOL_DIR=${ac_cv_c_aolserver} 3630 echo "$ac_t""found AOLserver in $AOL_DIR" 1>&6 3631 cat >> confdefs.h <<\EOF 3632#define NS_AOLSERVER 1 3633EOF 3634 3635 cat >> confdefs.h <<\EOF 3636#define USE_NORMAL_ALLOCATOR 1 3637EOF 3638 3639 fi 3640 3641if test x"${AOL_DIR}" != "x" ; then 3642 AOL_INCLUDES="-I${AOL_DIR}/include" 3643else 3644 AOL_INCLUDES= 3645fi 3646 3647 3648 3649#-------------------------------------------------------------------- 3650# Add some private preprocessor options 3651#-------------------------------------------------------------------- 3652 3653 3654 echo $ac_n "checking wether to enable dtd support""... $ac_c" 1>&6 3655echo "configure:3657: checking wether to enable dtd support" >&5 3656 # Check whether --enable-dtd or --disable-dtd was given. 3657if test "${enable_dtd+set}" = set; then 3658 enableval="$enable_dtd" 3659 tcl_ok=$enableval 3660else 3661 tcl_ok=yes 3662fi 3663 3664 3665 if test "${enable_dt+set}" = set; then 3666 enableval="$enable_dtd" 3667 tcl_ok=$enableval 3668 else 3669 tcl_ok=yes 3670 fi 3671 3672 if test "$tcl_ok" = "yes" ; then 3673 echo "$ac_t""yes" 1>&6 3674 cat >> confdefs.h <<\EOF 3675#define XML_DTD 1 3676EOF 3677 3678 else 3679 echo "$ac_t""no" 1>&6 3680 fi 3681 3682 3683 echo $ac_n "checking wether to enable namespace support""... $ac_c" 1>&6 3684echo "configure:3686: checking wether to enable namespace support" >&5 3685 # Check whether --enable-ns or --disable-ns was given. 3686if test "${enable_ns+set}" = set; then 3687 enableval="$enable_ns" 3688 tcl_ok=$enableval 3689else 3690 tcl_ok=yes 3691fi 3692 3693 3694 if test "${enable_ns+set}" = set; then 3695 enableval="$enable_ns" 3696 tcl_ok=$enableval 3697 else 3698 tcl_ok=yes 3699 fi 3700 3701 if test "$tcl_ok" = "yes" ; then 3702 echo "$ac_t""yes" 1>&6 3703 cat >> confdefs.h <<\EOF 3704#define XML_NS 1 3705EOF 3706 3707 else 3708 echo "$ac_t""no" 1>&6 3709 fi 3710 3711 3712 echo $ac_n "checking wether to enable built-in unknown command""... $ac_c" 1>&6 3713echo "configure:3715: checking wether to enable built-in unknown command" >&5 3714 # Check whether --enable-ucmd or --disable-ucmd was given. 3715if test "${enable_ucmd+set}" = set; then 3716 enableval="$enable_ucmd" 3717 tcl_ok=$enableval 3718else 3719 tcl_ok=no 3720fi 3721 3722 3723 if test "${enable_unknown+set}" = set; then 3724 enableval="$enable_unknown" 3725 tcl_ok=$enableval 3726 else 3727 tcl_ok=no 3728 fi 3729 3730 if test "$tcl_ok" = "no" ; then 3731 echo "$ac_t""no" 1>&6 3732 cat >> confdefs.h <<\EOF 3733#define TDOM_NO_UNKNOWN_CMD 1 3734EOF 3735 3736 else 3737 echo "$ac_t""yes" 1>&6 3738 fi 3739 3740 3741 echo $ac_n "checking wether to enable tDOMs block allocator""... $ac_c" 1>&6 3742echo "configure:3744: checking wether to enable tDOMs block allocator" >&5 3743 # Check whether --enable-tdomalloc or --disable-tdomalloc was given. 3744if test "${enable_tdomalloc+set}" = set; then 3745 enableval="$enable_tdomalloc" 3746 tcl_ok=$enableval 3747else 3748 tcl_ok=yes 3749fi 3750 3751 3752 if test "${enable_tdomalloc+set}" = set; then 3753 enableval="$enable_tdomalloc" 3754 tcl_ok=$enableval 3755 else 3756 tcl_ok=yes 3757 fi 3758 3759 if test "$tcl_ok" = "yes" ; then 3760 echo "$ac_t""yes" 1>&6 3761 else 3762 echo "$ac_t""no" 1>&6 3763 cat >> confdefs.h <<\EOF 3764#define USE_NORMAL_ALLOCATOR 1 3765EOF 3766 3767 fi 3768 3769echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3770echo "configure:3772: checking whether byte ordering is bigendian" >&5 3771if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 3772 echo $ac_n "(cached) $ac_c" 1>&6 3773else 3774 ac_cv_c_bigendian=unknown 3775# See if sys/param.h defines the BYTE_ORDER macro. 3776cat > conftest.$ac_ext <<EOF 3777#line 3779 "configure" 3778#include "confdefs.h" 3779#include <sys/types.h> 3780#include <sys/param.h> 3781int main() { 3782 3783#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3784 bogus endian macros 3785#endif 3786; return 0; } 3787EOF 3788if { (eval echo configure:3790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3789 rm -rf conftest* 3790 # It does; now see whether it defined to BIG_ENDIAN or not. 3791cat > conftest.$ac_ext <<EOF 3792#line 3794 "configure" 3793#include "confdefs.h" 3794#include <sys/types.h> 3795#include <sys/param.h> 3796int main() { 3797 3798#if BYTE_ORDER != BIG_ENDIAN 3799 not big endian 3800#endif 3801; return 0; } 3802EOF 3803if { (eval echo configure:3805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3804 rm -rf conftest* 3805 ac_cv_c_bigendian=yes 3806else 3807 echo "configure: failed program was:" >&5 3808 cat conftest.$ac_ext >&5 3809 rm -rf conftest* 3810 ac_cv_c_bigendian=no 3811fi 3812rm -f conftest* 3813else 3814 echo "configure: failed program was:" >&5 3815 cat conftest.$ac_ext >&5 3816fi 3817rm -f conftest* 3818if test $ac_cv_c_bigendian = unknown; then 3819if test "$cross_compiling" = yes; then 3820 echo $ac_n "cross-compiling... " 2>&6 3821else 3822 cat > conftest.$ac_ext <<EOF 3823#line 3825 "configure" 3824#include "confdefs.h" 3825main () { 3826 /* Are we little or big endian? From Harbison&Steele. */ 3827 union 3828 { 3829 long l; 3830 char c[sizeof (long)]; 3831 } u; 3832 u.l = 1; 3833 exit (u.c[sizeof (long) - 1] == 1); 3834} 3835EOF 3836if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3837then 3838 ac_cv_c_bigendian=no 3839else 3840 echo "configure: failed program was:" >&5 3841 cat conftest.$ac_ext >&5 3842 rm -fr conftest* 3843 ac_cv_c_bigendian=yes 3844fi 3845rm -fr conftest* 3846fi 3847 3848fi 3849fi 3850 3851echo "$ac_t""$ac_cv_c_bigendian" 1>&6 3852if test $ac_cv_c_bigendian = unknown; then 3853echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6 3854echo "configure:3856: checking to probe for byte ordering" >&5 3855 3856cat >conftest.c <<EOF 3857short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 3858short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 3859void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; } 3860short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 3861short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 3862void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; } 3863int main() { _ascii (); _ebcdic (); return 0; } 3864EOF 3865 if test -f conftest.c ; then 3866 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then 3867 if test `grep -l BIGenDianSyS conftest.o` ; then 3868 echo $ac_n ' big endian probe OK, ' 1>&6 3869 ac_cv_c_bigendian=yes 3870 fi 3871 if test `grep -l LiTTleEnDian conftest.o` ; then 3872 echo $ac_n ' little endian probe OK, ' 1>&6 3873 if test $ac_cv_c_bigendian = yes ; then 3874 ac_cv_c_bigendian=unknown; 3875 else 3876 ac_cv_c_bigendian=no 3877 fi 3878 fi 3879 echo $ac_n 'guessing bigendian ... ' >&6 3880 fi 3881 fi 3882echo "$ac_t""$ac_cv_c_bigendian" 1>&6 3883fi 3884if test $ac_cv_c_bigendian = yes; then 3885 cat >> confdefs.h <<\EOF 3886#define WORDS_BIGENDIAN 1 3887EOF 3888 3889 BYTEORDER=4321 3890else 3891 BYTEORDER=1234 3892fi 3893if test $ac_cv_c_bigendian = unknown; then 3894 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; } 3895fi 3896 3897 3898 3899#-------------------------------------------------------------------- 3900# Finally, substitute all of the various values into the Makefile. 3901# You may alternatively have a special pkgIndex.tcl.in or other files 3902# which require substituting th AC variables in. Include these here. 3903#-------------------------------------------------------------------- 3904 3905trap '' 1 2 15 3906cat > confcache <<\EOF 3907# This file is a shell script that caches the results of configure 3908# tests run on this system so they can be shared between configure 3909# scripts and configure runs. It is not useful on other systems. 3910# If it contains results you don't want to keep, you may remove or edit it. 3911# 3912# By default, configure uses ./config.cache as the cache file, 3913# creating it if it does not exist already. You can give configure 3914# the --cache-file=FILE option to use a different cache file; that is 3915# what configure does when it calls configure scripts in 3916# subdirectories, so they share the cache. 3917# Giving --cache-file=/dev/null disables caching, for debugging configure. 3918# config.status only pays attention to the cache file if you give it the 3919# --recheck option to rerun configure. 3920# 3921EOF 3922# The following way of writing the cache mishandles newlines in values, 3923# but we know of no workaround that is simple, portable, and efficient. 3924# So, don't put newlines in cache variables' values. 3925# Ultrix sh set writes to stderr and can't be redirected directly, 3926# and sets the high bit in the cache file unless we assign to the vars. 3927(set) 2>&1 | 3928 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3929 *ac_space=\ *) 3930 # `set' does not quote correctly, so add quotes (double-quote substitution 3931 # turns \\\\ into \\, and sed turns \\ into \). 3932 sed -n \ 3933 -e "s/'/'\\\\''/g" \ 3934 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 3935 ;; 3936 *) 3937 # `set' quotes correctly as required by POSIX, so do not add quotes. 3938 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 3939 ;; 3940 esac >> confcache 3941if cmp -s $cache_file confcache; then 3942 : 3943else 3944 if test -w $cache_file; then 3945 echo "updating cache $cache_file" 3946 cat confcache > $cache_file 3947 else 3948 echo "not updating unwritable cache $cache_file" 3949 fi 3950fi 3951rm -f confcache 3952 3953trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 3954 3955test "x$prefix" = xNONE && prefix=$ac_default_prefix 3956# Let make expand exec_prefix. 3957test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3958 3959# Any assignment to VPATH causes Sun make to only execute 3960# the first set of double-colon rules, so remove it if not needed. 3961# If there is a colon in the path, we need to keep it. 3962if test "x$srcdir" = x.; then 3963 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 3964fi 3965 3966trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 3967 3968# Transform confdefs.h into DEFS. 3969# Protect against shell expansion while executing Makefile rules. 3970# Protect against Makefile macro expansion. 3971cat > conftest.defs <<\EOF 3972s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 3973s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 3974s%\[%\\&%g 3975s%\]%\\&%g 3976s%\$%$$%g 3977EOF 3978DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 3979rm -f conftest.defs 3980 3981 3982# Without the "./", some shells look in PATH for config.status. 3983: ${CONFIG_STATUS=./config.status} 3984 3985echo creating $CONFIG_STATUS 3986rm -f $CONFIG_STATUS 3987cat > $CONFIG_STATUS <<EOF 3988#! /bin/sh 3989# Generated automatically by configure. 3990# Run this file to recreate the current configuration. 3991# This directory was configured as follows, 3992# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 3993# 3994# $0 $ac_configure_args 3995# 3996# Compiler output produced by configure, useful for debugging 3997# configure, is in ./config.log if it exists. 3998 3999ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4000for ac_option 4001do 4002 case "\$ac_option" in 4003 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4004 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4005 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4006 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4007 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4008 exit 0 ;; 4009 -help | --help | --hel | --he | --h) 4010 echo "\$ac_cs_usage"; exit 0 ;; 4011 *) echo "\$ac_cs_usage"; exit 1 ;; 4012 esac 4013done 4014 4015ac_given_srcdir=$srcdir 4016ac_given_INSTALL="$INSTALL" 4017 4018trap 'rm -fr `echo "Makefile tdomConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4019EOF 4020cat >> $CONFIG_STATUS <<EOF 4021 4022# Protect against being on the right side of a sed subst in config.status. 4023sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4024 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4025$ac_vpsub 4026$extrasub 4027s%@SHELL@%$SHELL%g 4028s%@CFLAGS@%$CFLAGS%g 4029s%@CPPFLAGS@%$CPPFLAGS%g 4030s%@CXXFLAGS@%$CXXFLAGS%g 4031s%@FFLAGS@%$FFLAGS%g 4032s%@DEFS@%$DEFS%g 4033s%@LDFLAGS@%$LDFLAGS%g 4034s%@LIBS@%$LIBS%g 4035s%@exec_prefix@%$exec_prefix%g 4036s%@prefix@%$prefix%g 4037s%@program_transform_name@%$program_transform_name%g 4038s%@bindir@%$bindir%g 4039s%@sbindir@%$sbindir%g 4040s%@libexecdir@%$libexecdir%g 4041s%@datadir@%$datadir%g 4042s%@sysconfdir@%$sysconfdir%g 4043s%@sharedstatedir@%$sharedstatedir%g 4044s%@localstatedir@%$localstatedir%g 4045s%@libdir@%$libdir%g 4046s%@includedir@%$includedir%g 4047s%@oldincludedir@%$oldincludedir%g 4048s%@infodir@%$infodir%g 4049s%@mandir@%$mandir%g 4050s%@CONFIGDIR@%$CONFIGDIR%g 4051s%@PACKAGE@%$PACKAGE%g 4052s%@TDOMSHELL@%$TDOMSHELL%g 4053s%@MAJOR_VERSION@%$MAJOR_VERSION%g 4054s%@MINOR_VERSION@%$MINOR_VERSION%g 4055s%@PATCHLEVEL@%$PATCHLEVEL%g 4056s%@tdom_LIB_FILE@%$tdom_LIB_FILE%g 4057s%@tdomstub_LIB_FILE@%$tdomstub_LIB_FILE%g 4058s%@CYGPATH@%$CYGPATH%g 4059s%@EXEEXT@%$EXEEXT%g 4060s%@TCL_VERSION@%$TCL_VERSION%g 4061s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g 4062s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g 4063s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g 4064s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g 4065s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g 4066s%@TCL_STUB_LIB_FILE@%$TCL_STUB_LIB_FILE%g 4067s%@TCL_STUB_LIB_FLAG@%$TCL_STUB_LIB_FLAG%g 4068s%@TCL_STUB_LIB_SPEC@%$TCL_STUB_LIB_SPEC%g 4069s%@TCL_LIBS@%$TCL_LIBS%g 4070s%@TCL_DEFS@%$TCL_DEFS%g 4071s%@TCL_EXTRA_CFLAGS@%$TCL_EXTRA_CFLAGS%g 4072s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g 4073s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g 4074s%@CC@%$CC%g 4075s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4076s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4077s%@INSTALL_DATA@%$INSTALL_DATA%g 4078s%@SET_MAKE@%$SET_MAKE%g 4079s%@RANLIB@%$RANLIB%g 4080s%@OBJEXT@%$OBJEXT%g 4081s%@TCL_INCLUDES@%$TCL_INCLUDES%g 4082s%@CLEANFILES@%$CLEANFILES%g 4083s%@EXTRA_SOURCES@%$EXTRA_SOURCES%g 4084s%@VERSION@%$VERSION%g 4085s%@tdomstub_BUILD_SPEC@%$tdomstub_BUILD_SPEC%g 4086s%@tdomstub_FILE_SPEC@%$tdomstub_FILE_SPEC%g 4087s%@tdom_SRC_DIR@%$tdom_SRC_DIR%g 4088s%@TCL_THREADS@%$TCL_THREADS%g 4089s%@AR@%$AR%g 4090s%@CPP@%$CPP%g 4091s%@DL_LIBS@%$DL_LIBS%g 4092s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g 4093s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g 4094s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g 4095s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g 4096s%@STLIB_LD@%$STLIB_LD%g 4097s%@SHLIB_LD@%$SHLIB_LD%g 4098s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g 4099s%@SHLIB_LDFLAGS@%$SHLIB_LDFLAGS%g 4100s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g 4101s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g 4102s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g 4103s%@TDOM_LD_SEARCH_FLAGS@%$TDOM_LD_SEARCH_FLAGS%g 4104s%@TCL_DBGX@%$TCL_DBGX%g 4105s%@CFLAGS_DEFAULT@%$CFLAGS_DEFAULT%g 4106s%@LDFLAGS_DEFAULT@%$LDFLAGS_DEFAULT%g 4107s%@SHARED_BUILD@%$SHARED_BUILD%g 4108s%@MAKE_LIB@%$MAKE_LIB%g 4109s%@MAKE_SHARED_LIB@%$MAKE_SHARED_LIB%g 4110s%@MAKE_STATIC_LIB@%$MAKE_STATIC_LIB%g 4111s%@MAKE_STUB_LIB@%$MAKE_STUB_LIB%g 4112s%@TCLSH_PROG@%$TCLSH_PROG%g 4113s%@TDOM_INCLUDES@%$TDOM_INCLUDES%g 4114s%@AOL_DIR@%$AOL_DIR%g 4115s%@AOL_INCLUDES@%$AOL_INCLUDES%g 4116s%@BYTEORDER@%$BYTEORDER%g 4117 4118CEOF 4119EOF 4120 4121cat >> $CONFIG_STATUS <<\EOF 4122 4123# Split the substitutions into bite-sized pieces for seds with 4124# small command number limits, like on Digital OSF/1 and HP-UX. 4125ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4126ac_file=1 # Number of current file. 4127ac_beg=1 # First line for current file. 4128ac_end=$ac_max_sed_cmds # Line after last line for current file. 4129ac_more_lines=: 4130ac_sed_cmds="" 4131while $ac_more_lines; do 4132 if test $ac_beg -gt 1; then 4133 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4134 else 4135 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4136 fi 4137 if test ! -s conftest.s$ac_file; then 4138 ac_more_lines=false 4139 rm -f conftest.s$ac_file 4140 else 4141 if test -z "$ac_sed_cmds"; then 4142 ac_sed_cmds="sed -f conftest.s$ac_file" 4143 else 4144 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4145 fi 4146 ac_file=`expr $ac_file + 1` 4147 ac_beg=$ac_end 4148 ac_end=`expr $ac_end + $ac_max_sed_cmds` 4149 fi 4150done 4151if test -z "$ac_sed_cmds"; then 4152 ac_sed_cmds=cat 4153fi 4154EOF 4155 4156cat >> $CONFIG_STATUS <<EOF 4157 4158CONFIG_FILES=\${CONFIG_FILES-"Makefile tdomConfig.sh"} 4159EOF 4160cat >> $CONFIG_STATUS <<\EOF 4161for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4163 case "$ac_file" in 4164 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4165 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4166 *) ac_file_in="${ac_file}.in" ;; 4167 esac 4168 4169 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 4170 4171 # Remove last slash and all that follows it. Not all systems have dirname. 4172 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4173 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4174 # The file is in a subdirectory. 4175 test ! -d "$ac_dir" && mkdir "$ac_dir" 4176 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 4177 # A "../" for each directory in $ac_dir_suffix. 4178 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 4179 else 4180 ac_dir_suffix= ac_dots= 4181 fi 4182 4183 case "$ac_given_srcdir" in 4184 .) srcdir=. 4185 if test -z "$ac_dots"; then top_srcdir=. 4186 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 4187 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 4188 *) # Relative path. 4189 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 4190 top_srcdir="$ac_dots$ac_given_srcdir" ;; 4191 esac 4192 4193 case "$ac_given_INSTALL" in 4194 [/$]*) INSTALL="$ac_given_INSTALL" ;; 4195 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 4196 esac 4197 4198 echo creating "$ac_file" 4199 rm -f "$ac_file" 4200 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 4201 case "$ac_file" in 4202 *Makefile*) ac_comsub="1i\\ 4203# $configure_input" ;; 4204 *) ac_comsub= ;; 4205 esac 4206 4207 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4208 sed -e "$ac_comsub 4209s%@configure_input@%$configure_input%g 4210s%@srcdir@%$srcdir%g 4211s%@top_srcdir@%$top_srcdir%g 4212s%@INSTALL@%$INSTALL%g 4213" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 4214fi; done 4215rm -f conftest.s* 4216 4217EOF 4218cat >> $CONFIG_STATUS <<EOF 4219 4220EOF 4221cat >> $CONFIG_STATUS <<\EOF 4222 4223exit 0 4224EOF 4225chmod +x $CONFIG_STATUS 4226rm -fr confdefs* $ac_clean_files 4227test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 4228 4229