1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for iwidgets 4.0.2. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME='iwidgets' 574PACKAGE_TARNAME='iwidgets' 575PACKAGE_VERSION='4.0.2' 576PACKAGE_STRING='iwidgets 4.0.2' 577PACKAGE_BUGREPORT='' 578 579ac_unique_file="generic/buttonbox.itk" 580ac_subst_vars='SHELL 581PATH_SEPARATOR 582PACKAGE_NAME 583PACKAGE_TARNAME 584PACKAGE_VERSION 585PACKAGE_STRING 586PACKAGE_BUGREPORT 587exec_prefix 588prefix 589program_transform_name 590bindir 591sbindir 592libexecdir 593datarootdir 594datadir 595sysconfdir 596sharedstatedir 597localstatedir 598includedir 599oldincludedir 600docdir 601infodir 602htmldir 603dvidir 604pdfdir 605psdir 606libdir 607localedir 608mandir 609DEFS 610ECHO_C 611ECHO_N 612ECHO_T 613LIBS 614build_alias 615host_alias 616target_alias 617CYGPATH 618EXEEXT 619PKG_LIB_FILE 620PKG_STUB_LIB_FILE 621PKG_STUB_SOURCES 622PKG_STUB_OBJECTS 623PKG_TCL_SOURCES 624PKG_HEADERS 625PKG_INCLUDES 626PKG_LIBS 627PKG_CFLAGS 628ITCL_VERSION 629TCL_VERSION 630TCL_PATCH_LEVEL 631TCL_BIN_DIR 632TCL_SRC_DIR 633TCL_LIB_FILE 634TCL_LIB_FLAG 635TCL_LIB_SPEC 636TCL_STUB_LIB_FILE 637TCL_STUB_LIB_FLAG 638TCL_STUB_LIB_SPEC 639CLEANFILES 640TCL_LIBS 641TCL_DEFS 642TCL_EXTRA_CFLAGS 643TCL_LD_FLAGS 644TCL_SHLIB_LD_LIBS 645TK_VERSION 646TK_BIN_DIR 647TK_SRC_DIR 648TK_LIB_FILE 649TK_LIB_FLAG 650TK_LIB_SPEC 651TK_STUB_LIB_FILE 652TK_STUB_LIB_FLAG 653TK_STUB_LIB_SPEC 654TK_LIBS 655TK_XINCLUDES 656INSTALL_PROGRAM 657INSTALL_SCRIPT 658INSTALL_DATA 659TCLSH_PROG 660WISH_PROG 661ITCL_LIB_DIR 662ITCL_SRC_DIR 663ITK_LIB_DIR 664ITK_SRC_DIR 665IWIDGETS_SRC_DIR 666LIBOBJS 667LTLIBOBJS' 668ac_subst_files='' 669 ac_precious_vars='build_alias 670host_alias 671target_alias' 672 673 674# Initialize some variables set by options. 675ac_init_help= 676ac_init_version=false 677# The variables have the same names as the options, with 678# dashes changed to underlines. 679cache_file=/dev/null 680exec_prefix=NONE 681no_create= 682no_recursion= 683prefix=NONE 684program_prefix=NONE 685program_suffix=NONE 686program_transform_name=s,x,x, 687silent= 688site= 689srcdir= 690verbose= 691x_includes=NONE 692x_libraries=NONE 693 694# Installation directory options. 695# These are left unexpanded so users can "make install exec_prefix=/foo" 696# and all the variables that are supposed to be based on exec_prefix 697# by default will actually change. 698# Use braces instead of parens because sh, perl, etc. also accept them. 699# (The list follows the same order as the GNU Coding Standards.) 700bindir='${exec_prefix}/bin' 701sbindir='${exec_prefix}/sbin' 702libexecdir='${exec_prefix}/libexec' 703datarootdir='${prefix}/share' 704datadir='${datarootdir}' 705sysconfdir='${prefix}/etc' 706sharedstatedir='${prefix}/com' 707localstatedir='${prefix}/var' 708includedir='${prefix}/include' 709oldincludedir='/usr/include' 710docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 711infodir='${datarootdir}/info' 712htmldir='${docdir}' 713dvidir='${docdir}' 714pdfdir='${docdir}' 715psdir='${docdir}' 716libdir='${exec_prefix}/lib' 717localedir='${datarootdir}/locale' 718mandir='${datarootdir}/man' 719 720ac_prev= 721ac_dashdash= 722for ac_option 723do 724 # If the previous option needs an argument, assign it. 725 if test -n "$ac_prev"; then 726 eval $ac_prev=\$ac_option 727 ac_prev= 728 continue 729 fi 730 731 case $ac_option in 732 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 733 *) ac_optarg=yes ;; 734 esac 735 736 # Accept the important Cygnus configure options, so we can diagnose typos. 737 738 case $ac_dashdash$ac_option in 739 --) 740 ac_dashdash=yes ;; 741 742 -bindir | --bindir | --bindi | --bind | --bin | --bi) 743 ac_prev=bindir ;; 744 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 745 bindir=$ac_optarg ;; 746 747 -build | --build | --buil | --bui | --bu) 748 ac_prev=build_alias ;; 749 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 750 build_alias=$ac_optarg ;; 751 752 -cache-file | --cache-file | --cache-fil | --cache-fi \ 753 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 754 ac_prev=cache_file ;; 755 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 756 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 757 cache_file=$ac_optarg ;; 758 759 --config-cache | -C) 760 cache_file=config.cache ;; 761 762 -datadir | --datadir | --datadi | --datad) 763 ac_prev=datadir ;; 764 -datadir=* | --datadir=* | --datadi=* | --datad=*) 765 datadir=$ac_optarg ;; 766 767 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 768 | --dataroo | --dataro | --datar) 769 ac_prev=datarootdir ;; 770 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 771 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 772 datarootdir=$ac_optarg ;; 773 774 -disable-* | --disable-*) 775 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 776 # Reject names that are not valid shell variable names. 777 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 778 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 779 { (exit 1); exit 1; }; } 780 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 781 eval enable_$ac_feature=no ;; 782 783 -docdir | --docdir | --docdi | --doc | --do) 784 ac_prev=docdir ;; 785 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 786 docdir=$ac_optarg ;; 787 788 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 789 ac_prev=dvidir ;; 790 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 791 dvidir=$ac_optarg ;; 792 793 -enable-* | --enable-*) 794 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 795 # Reject names that are not valid shell variable names. 796 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 797 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 798 { (exit 1); exit 1; }; } 799 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 800 eval enable_$ac_feature=\$ac_optarg ;; 801 802 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 803 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 804 | --exec | --exe | --ex) 805 ac_prev=exec_prefix ;; 806 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 807 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 808 | --exec=* | --exe=* | --ex=*) 809 exec_prefix=$ac_optarg ;; 810 811 -gas | --gas | --ga | --g) 812 # Obsolete; use --with-gas. 813 with_gas=yes ;; 814 815 -help | --help | --hel | --he | -h) 816 ac_init_help=long ;; 817 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 818 ac_init_help=recursive ;; 819 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 820 ac_init_help=short ;; 821 822 -host | --host | --hos | --ho) 823 ac_prev=host_alias ;; 824 -host=* | --host=* | --hos=* | --ho=*) 825 host_alias=$ac_optarg ;; 826 827 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 828 ac_prev=htmldir ;; 829 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 830 | --ht=*) 831 htmldir=$ac_optarg ;; 832 833 -includedir | --includedir | --includedi | --included | --include \ 834 | --includ | --inclu | --incl | --inc) 835 ac_prev=includedir ;; 836 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 837 | --includ=* | --inclu=* | --incl=* | --inc=*) 838 includedir=$ac_optarg ;; 839 840 -infodir | --infodir | --infodi | --infod | --info | --inf) 841 ac_prev=infodir ;; 842 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 843 infodir=$ac_optarg ;; 844 845 -libdir | --libdir | --libdi | --libd) 846 ac_prev=libdir ;; 847 -libdir=* | --libdir=* | --libdi=* | --libd=*) 848 libdir=$ac_optarg ;; 849 850 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 851 | --libexe | --libex | --libe) 852 ac_prev=libexecdir ;; 853 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 854 | --libexe=* | --libex=* | --libe=*) 855 libexecdir=$ac_optarg ;; 856 857 -localedir | --localedir | --localedi | --localed | --locale) 858 ac_prev=localedir ;; 859 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 860 localedir=$ac_optarg ;; 861 862 -localstatedir | --localstatedir | --localstatedi | --localstated \ 863 | --localstate | --localstat | --localsta | --localst | --locals) 864 ac_prev=localstatedir ;; 865 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 866 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 867 localstatedir=$ac_optarg ;; 868 869 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 870 ac_prev=mandir ;; 871 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 872 mandir=$ac_optarg ;; 873 874 -nfp | --nfp | --nf) 875 # Obsolete; use --without-fp. 876 with_fp=no ;; 877 878 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 879 | --no-cr | --no-c | -n) 880 no_create=yes ;; 881 882 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 883 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 884 no_recursion=yes ;; 885 886 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 887 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 888 | --oldin | --oldi | --old | --ol | --o) 889 ac_prev=oldincludedir ;; 890 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 891 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 892 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 893 oldincludedir=$ac_optarg ;; 894 895 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 896 ac_prev=prefix ;; 897 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 898 prefix=$ac_optarg ;; 899 900 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 901 | --program-pre | --program-pr | --program-p) 902 ac_prev=program_prefix ;; 903 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 904 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 905 program_prefix=$ac_optarg ;; 906 907 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 908 | --program-suf | --program-su | --program-s) 909 ac_prev=program_suffix ;; 910 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 911 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 912 program_suffix=$ac_optarg ;; 913 914 -program-transform-name | --program-transform-name \ 915 | --program-transform-nam | --program-transform-na \ 916 | --program-transform-n | --program-transform- \ 917 | --program-transform | --program-transfor \ 918 | --program-transfo | --program-transf \ 919 | --program-trans | --program-tran \ 920 | --progr-tra | --program-tr | --program-t) 921 ac_prev=program_transform_name ;; 922 -program-transform-name=* | --program-transform-name=* \ 923 | --program-transform-nam=* | --program-transform-na=* \ 924 | --program-transform-n=* | --program-transform-=* \ 925 | --program-transform=* | --program-transfor=* \ 926 | --program-transfo=* | --program-transf=* \ 927 | --program-trans=* | --program-tran=* \ 928 | --progr-tra=* | --program-tr=* | --program-t=*) 929 program_transform_name=$ac_optarg ;; 930 931 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 932 ac_prev=pdfdir ;; 933 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 934 pdfdir=$ac_optarg ;; 935 936 -psdir | --psdir | --psdi | --psd | --ps) 937 ac_prev=psdir ;; 938 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 939 psdir=$ac_optarg ;; 940 941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 942 | -silent | --silent | --silen | --sile | --sil) 943 silent=yes ;; 944 945 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 946 ac_prev=sbindir ;; 947 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 948 | --sbi=* | --sb=*) 949 sbindir=$ac_optarg ;; 950 951 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 952 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 953 | --sharedst | --shareds | --shared | --share | --shar \ 954 | --sha | --sh) 955 ac_prev=sharedstatedir ;; 956 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 957 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 958 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 959 | --sha=* | --sh=*) 960 sharedstatedir=$ac_optarg ;; 961 962 -site | --site | --sit) 963 ac_prev=site ;; 964 -site=* | --site=* | --sit=*) 965 site=$ac_optarg ;; 966 967 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 968 ac_prev=srcdir ;; 969 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 970 srcdir=$ac_optarg ;; 971 972 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 973 | --syscon | --sysco | --sysc | --sys | --sy) 974 ac_prev=sysconfdir ;; 975 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 976 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 977 sysconfdir=$ac_optarg ;; 978 979 -target | --target | --targe | --targ | --tar | --ta | --t) 980 ac_prev=target_alias ;; 981 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 982 target_alias=$ac_optarg ;; 983 984 -v | -verbose | --verbose | --verbos | --verbo | --verb) 985 verbose=yes ;; 986 987 -version | --version | --versio | --versi | --vers | -V) 988 ac_init_version=: ;; 989 990 -with-* | --with-*) 991 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 992 # Reject names that are not valid shell variable names. 993 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 994 { echo "$as_me: error: invalid package name: $ac_package" >&2 995 { (exit 1); exit 1; }; } 996 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 997 eval with_$ac_package=\$ac_optarg ;; 998 999 -without-* | --without-*) 1000 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1001 # Reject names that are not valid shell variable names. 1002 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1003 { echo "$as_me: error: invalid package name: $ac_package" >&2 1004 { (exit 1); exit 1; }; } 1005 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1006 eval with_$ac_package=no ;; 1007 1008 --x) 1009 # Obsolete; use --with-x. 1010 with_x=yes ;; 1011 1012 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1013 | --x-incl | --x-inc | --x-in | --x-i) 1014 ac_prev=x_includes ;; 1015 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1016 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1017 x_includes=$ac_optarg ;; 1018 1019 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1020 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1021 ac_prev=x_libraries ;; 1022 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1023 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1024 x_libraries=$ac_optarg ;; 1025 1026 -*) { echo "$as_me: error: unrecognized option: $ac_option 1027Try \`$0 --help' for more information." >&2 1028 { (exit 1); exit 1; }; } 1029 ;; 1030 1031 *=*) 1032 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1033 # Reject names that are not valid shell variable names. 1034 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1035 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1036 { (exit 1); exit 1; }; } 1037 eval $ac_envvar=\$ac_optarg 1038 export $ac_envvar ;; 1039 1040 *) 1041 # FIXME: should be removed in autoconf 3.0. 1042 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1043 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1044 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1045 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1046 ;; 1047 1048 esac 1049done 1050 1051if test -n "$ac_prev"; then 1052 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1053 { echo "$as_me: error: missing argument to $ac_option" >&2 1054 { (exit 1); exit 1; }; } 1055fi 1056 1057# Be sure to have absolute directory names. 1058for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1059 datadir sysconfdir sharedstatedir localstatedir includedir \ 1060 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1061 libdir localedir mandir 1062do 1063 eval ac_val=\$$ac_var 1064 case $ac_val in 1065 [\\/$]* | ?:[\\/]* ) continue;; 1066 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1067 esac 1068 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1069 { (exit 1); exit 1; }; } 1070done 1071 1072# There might be people who depend on the old broken behavior: `$host' 1073# used to hold the argument of --host etc. 1074# FIXME: To remove some day. 1075build=$build_alias 1076host=$host_alias 1077target=$target_alias 1078 1079# FIXME: To remove some day. 1080if test "x$host_alias" != x; then 1081 if test "x$build_alias" = x; then 1082 cross_compiling=maybe 1083 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1084 If a cross compiler is detected then cross compile mode will be used." >&2 1085 elif test "x$build_alias" != "x$host_alias"; then 1086 cross_compiling=yes 1087 fi 1088fi 1089 1090ac_tool_prefix= 1091test -n "$host_alias" && ac_tool_prefix=$host_alias- 1092 1093test "$silent" = yes && exec 6>/dev/null 1094 1095 1096ac_pwd=`pwd` && test -n "$ac_pwd" && 1097ac_ls_di=`ls -di .` && 1098ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1099 { echo "$as_me: error: Working directory cannot be determined" >&2 1100 { (exit 1); exit 1; }; } 1101test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1102 { echo "$as_me: error: pwd does not report name of working directory" >&2 1103 { (exit 1); exit 1; }; } 1104 1105 1106# Find the source files, if location was not specified. 1107if test -z "$srcdir"; then 1108 ac_srcdir_defaulted=yes 1109 # Try the directory containing this script, then the parent directory. 1110 ac_confdir=`$as_dirname -- "$0" || 1111$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1112 X"$0" : 'X\(//\)[^/]' \| \ 1113 X"$0" : 'X\(//\)$' \| \ 1114 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1115echo X"$0" | 1116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1117 s//\1/ 1118 q 1119 } 1120 /^X\(\/\/\)[^/].*/{ 1121 s//\1/ 1122 q 1123 } 1124 /^X\(\/\/\)$/{ 1125 s//\1/ 1126 q 1127 } 1128 /^X\(\/\).*/{ 1129 s//\1/ 1130 q 1131 } 1132 s/.*/./; q'` 1133 srcdir=$ac_confdir 1134 if test ! -r "$srcdir/$ac_unique_file"; then 1135 srcdir=.. 1136 fi 1137else 1138 ac_srcdir_defaulted=no 1139fi 1140if test ! -r "$srcdir/$ac_unique_file"; then 1141 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1142 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1143 { (exit 1); exit 1; }; } 1144fi 1145ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1146ac_abs_confdir=`( 1147 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1148 { (exit 1); exit 1; }; } 1149 pwd)` 1150# When building in place, set srcdir=. 1151if test "$ac_abs_confdir" = "$ac_pwd"; then 1152 srcdir=. 1153fi 1154# Remove unnecessary trailing slashes from srcdir. 1155# Double slashes in file names in object file debugging info 1156# mess up M-x gdb in Emacs. 1157case $srcdir in 1158*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1159esac 1160for ac_var in $ac_precious_vars; do 1161 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1162 eval ac_env_${ac_var}_value=\$${ac_var} 1163 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1164 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1165done 1166 1167# 1168# Report the --help message. 1169# 1170if test "$ac_init_help" = "long"; then 1171 # Omit some internal or obsolete options to make the list less imposing. 1172 # This message is too long to be a string in the A/UX 3.1 sh. 1173 cat <<_ACEOF 1174\`configure' configures iwidgets 4.0.2 to adapt to many kinds of systems. 1175 1176Usage: $0 [OPTION]... [VAR=VALUE]... 1177 1178To assign environment variables (e.g., CC, CFLAGS...), specify them as 1179VAR=VALUE. See below for descriptions of some of the useful variables. 1180 1181Defaults for the options are specified in brackets. 1182 1183Configuration: 1184 -h, --help display this help and exit 1185 --help=short display options specific to this package 1186 --help=recursive display the short help of all the included packages 1187 -V, --version display version information and exit 1188 -q, --quiet, --silent do not print \`checking...' messages 1189 --cache-file=FILE cache test results in FILE [disabled] 1190 -C, --config-cache alias for \`--cache-file=config.cache' 1191 -n, --no-create do not create output files 1192 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1193 1194Installation directories: 1195 --prefix=PREFIX install architecture-independent files in PREFIX 1196 [$ac_default_prefix] 1197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1198 [PREFIX] 1199 1200By default, \`make install' will install all the files in 1201\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1202an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1203for instance \`--prefix=\$HOME'. 1204 1205For better control, use the options below. 1206 1207Fine tuning of the installation directories: 1208 --bindir=DIR user executables [EPREFIX/bin] 1209 --sbindir=DIR system admin executables [EPREFIX/sbin] 1210 --libexecdir=DIR program executables [EPREFIX/libexec] 1211 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1212 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1213 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1214 --libdir=DIR object code libraries [EPREFIX/lib] 1215 --includedir=DIR C header files [PREFIX/include] 1216 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1217 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1218 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1219 --infodir=DIR info documentation [DATAROOTDIR/info] 1220 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1221 --mandir=DIR man documentation [DATAROOTDIR/man] 1222 --docdir=DIR documentation root [DATAROOTDIR/doc/iwidgets] 1223 --htmldir=DIR html documentation [DOCDIR] 1224 --dvidir=DIR dvi documentation [DOCDIR] 1225 --pdfdir=DIR pdf documentation [DOCDIR] 1226 --psdir=DIR ps documentation [DOCDIR] 1227_ACEOF 1228 1229 cat <<\_ACEOF 1230_ACEOF 1231fi 1232 1233if test -n "$ac_init_help"; then 1234 case $ac_init_help in 1235 short | recursive ) echo "Configuration of iwidgets 4.0.2:";; 1236 esac 1237 cat <<\_ACEOF 1238 1239Optional Packages: 1240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1242 --with-tcl directory containing tcl configuration 1243 (tclConfig.sh) 1244 --with-tk directory containing tk configuration (tkConfig.sh) 1245 --with-itcl=DIR use Itcl 3.0 binaries from DIR 1246 1247_ACEOF 1248ac_status=$? 1249fi 1250 1251if test "$ac_init_help" = "recursive"; then 1252 # If there are subdirs, report their specific --help. 1253 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1254 test -d "$ac_dir" || continue 1255 ac_builddir=. 1256 1257case "$ac_dir" in 1258.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1259*) 1260 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1261 # A ".." for each directory in $ac_dir_suffix. 1262 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1263 case $ac_top_builddir_sub in 1264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1266 esac ;; 1267esac 1268ac_abs_top_builddir=$ac_pwd 1269ac_abs_builddir=$ac_pwd$ac_dir_suffix 1270# for backward compatibility: 1271ac_top_builddir=$ac_top_build_prefix 1272 1273case $srcdir in 1274 .) # We are building in place. 1275 ac_srcdir=. 1276 ac_top_srcdir=$ac_top_builddir_sub 1277 ac_abs_top_srcdir=$ac_pwd ;; 1278 [\\/]* | ?:[\\/]* ) # Absolute name. 1279 ac_srcdir=$srcdir$ac_dir_suffix; 1280 ac_top_srcdir=$srcdir 1281 ac_abs_top_srcdir=$srcdir ;; 1282 *) # Relative name. 1283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1284 ac_top_srcdir=$ac_top_build_prefix$srcdir 1285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1286esac 1287ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1288 1289 cd "$ac_dir" || { ac_status=$?; continue; } 1290 # Check for guested configure. 1291 if test -f "$ac_srcdir/configure.gnu"; then 1292 echo && 1293 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1294 elif test -f "$ac_srcdir/configure"; then 1295 echo && 1296 $SHELL "$ac_srcdir/configure" --help=recursive 1297 else 1298 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1299 fi || ac_status=$? 1300 cd "$ac_pwd" || { ac_status=$?; break; } 1301 done 1302fi 1303 1304test -n "$ac_init_help" && exit $ac_status 1305if $ac_init_version; then 1306 cat <<\_ACEOF 1307iwidgets configure 4.0.2 1308generated by GNU Autoconf 2.61 1309 1310Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13112002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1312This configure script is free software; the Free Software Foundation 1313gives unlimited permission to copy, distribute and modify it. 1314_ACEOF 1315 exit 1316fi 1317cat >config.log <<_ACEOF 1318This file contains any messages produced by compilers while 1319running configure, to aid debugging if configure makes a mistake. 1320 1321It was created by iwidgets $as_me 4.0.2, which was 1322generated by GNU Autoconf 2.61. Invocation command line was 1323 1324 $ $0 $@ 1325 1326_ACEOF 1327exec 5>>config.log 1328{ 1329cat <<_ASUNAME 1330## --------- ## 1331## Platform. ## 1332## --------- ## 1333 1334hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1335uname -m = `(uname -m) 2>/dev/null || echo unknown` 1336uname -r = `(uname -r) 2>/dev/null || echo unknown` 1337uname -s = `(uname -s) 2>/dev/null || echo unknown` 1338uname -v = `(uname -v) 2>/dev/null || echo unknown` 1339 1340/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1341/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1342 1343/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1344/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1345/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1346/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1347/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1348/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1349/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1350 1351_ASUNAME 1352 1353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1354for as_dir in $PATH 1355do 1356 IFS=$as_save_IFS 1357 test -z "$as_dir" && as_dir=. 1358 echo "PATH: $as_dir" 1359done 1360IFS=$as_save_IFS 1361 1362} >&5 1363 1364cat >&5 <<_ACEOF 1365 1366 1367## ----------- ## 1368## Core tests. ## 1369## ----------- ## 1370 1371_ACEOF 1372 1373 1374# Keep a trace of the command line. 1375# Strip out --no-create and --no-recursion so they do not pile up. 1376# Strip out --silent because we don't want to record it for future runs. 1377# Also quote any args containing shell meta-characters. 1378# Make two passes to allow for proper duplicate-argument suppression. 1379ac_configure_args= 1380ac_configure_args0= 1381ac_configure_args1= 1382ac_must_keep_next=false 1383for ac_pass in 1 2 1384do 1385 for ac_arg 1386 do 1387 case $ac_arg in 1388 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1390 | -silent | --silent | --silen | --sile | --sil) 1391 continue ;; 1392 *\'*) 1393 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1394 esac 1395 case $ac_pass in 1396 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1397 2) 1398 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1399 if test $ac_must_keep_next = true; then 1400 ac_must_keep_next=false # Got value, back to normal. 1401 else 1402 case $ac_arg in 1403 *=* | --config-cache | -C | -disable-* | --disable-* \ 1404 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1405 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1406 | -with-* | --with-* | -without-* | --without-* | --x) 1407 case "$ac_configure_args0 " in 1408 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1409 esac 1410 ;; 1411 -* ) ac_must_keep_next=true ;; 1412 esac 1413 fi 1414 ac_configure_args="$ac_configure_args '$ac_arg'" 1415 ;; 1416 esac 1417 done 1418done 1419$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1420$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1421 1422# When interrupted or exit'd, cleanup temporary files, and complete 1423# config.log. We remove comments because anyway the quotes in there 1424# would cause problems or look ugly. 1425# WARNING: Use '\'' to represent an apostrophe within the trap. 1426# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1427trap 'exit_status=$? 1428 # Save into config.log some information that might help in debugging. 1429 { 1430 echo 1431 1432 cat <<\_ASBOX 1433## ---------------- ## 1434## Cache variables. ## 1435## ---------------- ## 1436_ASBOX 1437 echo 1438 # The following way of writing the cache mishandles newlines in values, 1439( 1440 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1441 eval ac_val=\$$ac_var 1442 case $ac_val in #( 1443 *${as_nl}*) 1444 case $ac_var in #( 1445 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1446echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1447 esac 1448 case $ac_var in #( 1449 _ | IFS | as_nl) ;; #( 1450 *) $as_unset $ac_var ;; 1451 esac ;; 1452 esac 1453 done 1454 (set) 2>&1 | 1455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1456 *${as_nl}ac_space=\ *) 1457 sed -n \ 1458 "s/'\''/'\''\\\\'\'''\''/g; 1459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1460 ;; #( 1461 *) 1462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1463 ;; 1464 esac | 1465 sort 1466) 1467 echo 1468 1469 cat <<\_ASBOX 1470## ----------------- ## 1471## Output variables. ## 1472## ----------------- ## 1473_ASBOX 1474 echo 1475 for ac_var in $ac_subst_vars 1476 do 1477 eval ac_val=\$$ac_var 1478 case $ac_val in 1479 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1480 esac 1481 echo "$ac_var='\''$ac_val'\''" 1482 done | sort 1483 echo 1484 1485 if test -n "$ac_subst_files"; then 1486 cat <<\_ASBOX 1487## ------------------- ## 1488## File substitutions. ## 1489## ------------------- ## 1490_ASBOX 1491 echo 1492 for ac_var in $ac_subst_files 1493 do 1494 eval ac_val=\$$ac_var 1495 case $ac_val in 1496 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1497 esac 1498 echo "$ac_var='\''$ac_val'\''" 1499 done | sort 1500 echo 1501 fi 1502 1503 if test -s confdefs.h; then 1504 cat <<\_ASBOX 1505## ----------- ## 1506## confdefs.h. ## 1507## ----------- ## 1508_ASBOX 1509 echo 1510 cat confdefs.h 1511 echo 1512 fi 1513 test "$ac_signal" != 0 && 1514 echo "$as_me: caught signal $ac_signal" 1515 echo "$as_me: exit $exit_status" 1516 } >&5 1517 rm -f core *.core core.conftest.* && 1518 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1519 exit $exit_status 1520' 0 1521for ac_signal in 1 2 13 15; do 1522 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1523done 1524ac_signal=0 1525 1526# confdefs.h avoids OS command line length limits that DEFS can exceed. 1527rm -f -r conftest* confdefs.h 1528 1529# Predefined preprocessor variables. 1530 1531cat >>confdefs.h <<_ACEOF 1532#define PACKAGE_NAME "$PACKAGE_NAME" 1533_ACEOF 1534 1535 1536cat >>confdefs.h <<_ACEOF 1537#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1538_ACEOF 1539 1540 1541cat >>confdefs.h <<_ACEOF 1542#define PACKAGE_VERSION "$PACKAGE_VERSION" 1543_ACEOF 1544 1545 1546cat >>confdefs.h <<_ACEOF 1547#define PACKAGE_STRING "$PACKAGE_STRING" 1548_ACEOF 1549 1550 1551cat >>confdefs.h <<_ACEOF 1552#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1553_ACEOF 1554 1555 1556# Let the site file select an alternate cache file if it wants to. 1557# Prefer explicitly selected file to automatically selected ones. 1558if test -n "$CONFIG_SITE"; then 1559 set x "$CONFIG_SITE" 1560elif test "x$prefix" != xNONE; then 1561 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1562else 1563 set x "$ac_default_prefix/share/config.site" \ 1564 "$ac_default_prefix/etc/config.site" 1565fi 1566shift 1567for ac_site_file 1568do 1569 if test -r "$ac_site_file"; then 1570 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1571echo "$as_me: loading site script $ac_site_file" >&6;} 1572 sed 's/^/| /' "$ac_site_file" >&5 1573 . "$ac_site_file" 1574 fi 1575done 1576 1577if test -r "$cache_file"; then 1578 # Some versions of bash will fail to source /dev/null (special 1579 # files actually), so we avoid doing that. 1580 if test -f "$cache_file"; then 1581 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1582echo "$as_me: loading cache $cache_file" >&6;} 1583 case $cache_file in 1584 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1585 *) . "./$cache_file";; 1586 esac 1587 fi 1588else 1589 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1590echo "$as_me: creating cache $cache_file" >&6;} 1591 >$cache_file 1592fi 1593 1594# Check that the precious variables saved in the cache have kept the same 1595# value. 1596ac_cache_corrupted=false 1597for ac_var in $ac_precious_vars; do 1598 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1599 eval ac_new_set=\$ac_env_${ac_var}_set 1600 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1601 eval ac_new_val=\$ac_env_${ac_var}_value 1602 case $ac_old_set,$ac_new_set in 1603 set,) 1604 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1605echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1606 ac_cache_corrupted=: ;; 1607 ,set) 1608 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1609echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1610 ac_cache_corrupted=: ;; 1611 ,);; 1612 *) 1613 if test "x$ac_old_val" != "x$ac_new_val"; then 1614 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1615echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1616 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1617echo "$as_me: former value: $ac_old_val" >&2;} 1618 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1619echo "$as_me: current value: $ac_new_val" >&2;} 1620 ac_cache_corrupted=: 1621 fi;; 1622 esac 1623 # Pass precious variables to config.status. 1624 if test "$ac_new_set" = set; then 1625 case $ac_new_val in 1626 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1627 *) ac_arg=$ac_var=$ac_new_val ;; 1628 esac 1629 case " $ac_configure_args " in 1630 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1631 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1632 esac 1633 fi 1634done 1635if $ac_cache_corrupted; then 1636 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1637echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1638 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1639echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1640 { (exit 1); exit 1; }; } 1641fi 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667ac_ext=c 1668ac_cpp='$CPP $CPPFLAGS' 1669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1671ac_compiler_gnu=$ac_cv_c_compiler_gnu 1672 1673 1674 1675 1676 # TEA extensions pass this us the version of TEA they think they 1677 # are compatible with. 1678 TEA_VERSION="3.9" 1679 1680 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1681echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1682 if test x"${PACKAGE_NAME}" = x ; then 1683 { { echo "$as_me:$LINENO: error: 1684The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1685echo "$as_me: error: 1686The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1687 { (exit 1); exit 1; }; } 1688 fi 1689 if test x"3.9" = x ; then 1690 { { echo "$as_me:$LINENO: error: 1691TEA version not specified." >&5 1692echo "$as_me: error: 1693TEA version not specified." >&2;} 1694 { (exit 1); exit 1; }; } 1695 elif test "3.9" != "${TEA_VERSION}" ; then 1696 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1697echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1698 else 1699 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1700echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1701 fi 1702 case "`uname -s`" in 1703 *win32*|*WIN32*|*MINGW32_*) 1704 # Extract the first word of "cygpath", so it can be a program name with args. 1705set dummy cygpath; ac_word=$2 1706{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1708if test "${ac_cv_prog_CYGPATH+set}" = set; then 1709 echo $ECHO_N "(cached) $ECHO_C" >&6 1710else 1711 if test -n "$CYGPATH"; then 1712 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1713else 1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1715for as_dir in $PATH 1716do 1717 IFS=$as_save_IFS 1718 test -z "$as_dir" && as_dir=. 1719 for ac_exec_ext in '' $ac_executable_extensions; do 1720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1721 ac_cv_prog_CYGPATH="cygpath -w" 1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1723 break 2 1724 fi 1725done 1726done 1727IFS=$as_save_IFS 1728 1729 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1730fi 1731fi 1732CYGPATH=$ac_cv_prog_CYGPATH 1733if test -n "$CYGPATH"; then 1734 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1735echo "${ECHO_T}$CYGPATH" >&6; } 1736else 1737 { echo "$as_me:$LINENO: result: no" >&5 1738echo "${ECHO_T}no" >&6; } 1739fi 1740 1741 1742 EXEEXT=".exe" 1743 TEA_PLATFORM="windows" 1744 ;; 1745 *CYGWIN_*) 1746 CYGPATH=echo 1747 EXEEXT=".exe" 1748 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1749 ;; 1750 *) 1751 CYGPATH=echo 1752 EXEEXT="" 1753 TEA_PLATFORM="unix" 1754 ;; 1755 esac 1756 1757 # Check if exec_prefix is set. If not use fall back to prefix. 1758 # Note when adjusted, so that TEA_PREFIX can correct for this. 1759 # This is needed for recursive configures, since autoconf propagates 1760 # $prefix, but not $exec_prefix (doh!). 1761 if test x$exec_prefix = xNONE ; then 1762 exec_prefix_default=yes 1763 exec_prefix=$prefix 1764 fi 1765 1766 1767 1768 1769 # This package name must be replaced statically for AC_SUBST to work 1770 1771 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1772 1773 1774 # We AC_SUBST these here to ensure they are subst'ed, 1775 # in case the user doesn't call TEA_ADD_... 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785ac_aux_dir= 1786for ac_dir in tclconfig "$srcdir"/tclconfig; do 1787 if test -f "$ac_dir/install-sh"; then 1788 ac_aux_dir=$ac_dir 1789 ac_install_sh="$ac_aux_dir/install-sh -c" 1790 break 1791 elif test -f "$ac_dir/install.sh"; then 1792 ac_aux_dir=$ac_dir 1793 ac_install_sh="$ac_aux_dir/install.sh -c" 1794 break 1795 elif test -f "$ac_dir/shtool"; then 1796 ac_aux_dir=$ac_dir 1797 ac_install_sh="$ac_aux_dir/shtool install -c" 1798 break 1799 fi 1800done 1801if test -z "$ac_aux_dir"; then 1802 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1803echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1804 { (exit 1); exit 1; }; } 1805fi 1806 1807# These three variables are undocumented and unsupported, 1808# and are intended to be withdrawn in a future Autoconf release. 1809# They can cause serious problems if a builder's source tree is in a directory 1810# whose full name contains unusual characters. 1811ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1812ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1813ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1814 1815 1816 1817 1818 1819ITCL_VERSION=3.2 1820 1821 1822#-------------------------------------------------------------------- 1823# See if there was a command-line option for where Tcl or Tk is; if 1824# not, search for Tcl and/or Tk. 1825#-------------------------------------------------------------------- 1826 1827 1828 1829 # 1830 # Ok, lets find the tcl configuration 1831 # First, look for one uninstalled. 1832 # the alternative search directory is invoked by --with-tcl 1833 # 1834 1835 if test x"${no_tcl}" = x ; then 1836 # we reset no_tcl in case something fails here 1837 no_tcl=true 1838 1839# Check whether --with-tcl was given. 1840if test "${with_tcl+set}" = set; then 1841 withval=$with_tcl; with_tclconfig="${withval}" 1842fi 1843 1844 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1845echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1846 if test "${ac_cv_c_tclconfig+set}" = set; then 1847 echo $ECHO_N "(cached) $ECHO_C" >&6 1848else 1849 1850 1851 # First check to see if --with-tcl was specified. 1852 if test x"${with_tclconfig}" != x ; then 1853 case "${with_tclconfig}" in 1854 */tclConfig.sh ) 1855 if test -f "${with_tclconfig}"; then 1856 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1857echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1858 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1859 fi ;; 1860 esac 1861 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1862 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1863 else 1864 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1865echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1866 { (exit 1); exit 1; }; } 1867 fi 1868 fi 1869 1870 # then check for a private Tcl installation 1871 if test x"${ac_cv_c_tclconfig}" = x ; then 1872 for i in \ 1873 ../tcl \ 1874 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1875 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1876 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1877 ../../tcl \ 1878 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1879 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1880 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1881 ../../../tcl \ 1882 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1883 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1884 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1885 if test "${TEA_PLATFORM}" = "windows" \ 1886 -a -f "$i/win/tclConfig.sh" ; then 1887 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1888 break 1889 fi 1890 if test -f "$i/unix/tclConfig.sh" ; then 1891 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1892 break 1893 fi 1894 done 1895 fi 1896 1897 # on Darwin, check in Framework installation locations 1898 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1899 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1900 `ls -d /Library/Frameworks 2>/dev/null` \ 1901 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1902 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1903 ; do 1904 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1905 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1906 break 1907 fi 1908 done 1909 fi 1910 1911 # TEA specific: on Windows, check in common installation locations 1912 if test "${TEA_PLATFORM}" = "windows" \ 1913 -a x"${ac_cv_c_tclconfig}" = x ; then 1914 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 1915 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 1916 ; do 1917 if test -f "$i/tclConfig.sh" ; then 1918 ac_cv_c_tclconfig="`(cd $i; pwd)`" 1919 break 1920 fi 1921 done 1922 fi 1923 1924 # check in a few common install locations 1925 if test x"${ac_cv_c_tclconfig}" = x ; then 1926 for i in `ls -d ${libdir} 2>/dev/null` \ 1927 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 1928 `ls -d ${prefix}/lib 2>/dev/null` \ 1929 `ls -d /usr/local/lib 2>/dev/null` \ 1930 `ls -d /usr/contrib/lib 2>/dev/null` \ 1931 `ls -d /usr/lib 2>/dev/null` \ 1932 `ls -d /usr/lib64 2>/dev/null` \ 1933 ; do 1934 if test -f "$i/tclConfig.sh" ; then 1935 ac_cv_c_tclconfig="`(cd $i; pwd)`" 1936 break 1937 fi 1938 done 1939 fi 1940 1941 # check in a few other private locations 1942 if test x"${ac_cv_c_tclconfig}" = x ; then 1943 for i in \ 1944 ${srcdir}/../tcl \ 1945 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1946 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 1947 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 1948 if test "${TEA_PLATFORM}" = "windows" \ 1949 -a -f "$i/win/tclConfig.sh" ; then 1950 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1951 break 1952 fi 1953 if test -f "$i/unix/tclConfig.sh" ; then 1954 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1955 break 1956 fi 1957 done 1958 fi 1959 1960fi 1961 1962 1963 if test x"${ac_cv_c_tclconfig}" = x ; then 1964 TCL_BIN_DIR="# no Tcl configs found" 1965 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 1966echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 1967 { (exit 1); exit 1; }; } 1968 else 1969 no_tcl= 1970 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 1971 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 1972echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 1973 fi 1974 fi 1975 1976 1977 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 1978echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 1979 1980 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 1981 { echo "$as_me:$LINENO: result: loading" >&5 1982echo "${ECHO_T}loading" >&6; } 1983 . "${TCL_BIN_DIR}/tclConfig.sh" 1984 else 1985 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 1986echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 1987 fi 1988 1989 # eval is required to do the TCL_DBGX substitution 1990 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 1991 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 1992 1993 # If the TCL_BIN_DIR is the build directory (not the install directory), 1994 # then set the common variable name to the value of the build variables. 1995 # For example, the variable TCL_LIB_SPEC will be set to the value 1996 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 1997 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 1998 # installed and uninstalled version of Tcl. 1999 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2000 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2001 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2002 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2003 elif test "`uname -s`" = "Darwin"; then 2004 # If Tcl was built as a framework, attempt to use the libraries 2005 # from the framework at the given location so that linking works 2006 # against Tcl.framework installed in an arbitrary location. 2007 case ${TCL_DEFS} in 2008 *TCL_FRAMEWORK*) 2009 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2010 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2011 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2012 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2013 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2014 break 2015 fi 2016 done 2017 fi 2018 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2019 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2020 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2021 fi 2022 ;; 2023 esac 2024 fi 2025 2026 # eval is required to do the TCL_DBGX substitution 2027 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2028 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2029 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2030 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 case "`uname -s`" in 2046 *CYGWIN_*) 2047 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2048echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2049 case ${TCL_EXTRA_CFLAGS} in 2050 *-mwin32*|*-mno-cygwin*) 2051 TEA_PLATFORM="windows" 2052 CFLAGS="$CFLAGS -mwin32" 2053 { echo "$as_me:$LINENO: result: win32" >&5 2054echo "${ECHO_T}win32" >&6; } 2055 ;; 2056 *) 2057 TEA_PLATFORM="unix" 2058 { echo "$as_me:$LINENO: result: unix" >&5 2059echo "${ECHO_T}unix" >&6; } 2060 ;; 2061 esac 2062 EXEEXT=".exe" 2063 ;; 2064 *) 2065 ;; 2066 esac 2067 2068 # Do this here as we have fully defined TEA_PLATFORM now 2069 if test "${TEA_PLATFORM}" = "windows" ; then 2070 # The BUILD_$pkg is to define the correct extern storage class 2071 # handling when making this package 2072 2073cat >>confdefs.h <<_ACEOF 2074#define BUILD_${PACKAGE_NAME} 2075_ACEOF 2076 2077 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2078 fi 2079 2080 # TEA specific: 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 # 2091 # Ok, lets find the tk configuration 2092 # First, look for one uninstalled. 2093 # the alternative search directory is invoked by --with-tk 2094 # 2095 2096 if test x"${no_tk}" = x ; then 2097 # we reset no_tk in case something fails here 2098 no_tk=true 2099 2100# Check whether --with-tk was given. 2101if test "${with_tk+set}" = set; then 2102 withval=$with_tk; with_tkconfig="${withval}" 2103fi 2104 2105 { echo "$as_me:$LINENO: checking for Tk configuration" >&5 2106echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; } 2107 if test "${ac_cv_c_tkconfig+set}" = set; then 2108 echo $ECHO_N "(cached) $ECHO_C" >&6 2109else 2110 2111 2112 # First check to see if --with-tkconfig was specified. 2113 if test x"${with_tkconfig}" != x ; then 2114 case "${with_tkconfig}" in 2115 */tkConfig.sh ) 2116 if test -f "${with_tkconfig}"; then 2117 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 2118echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 2119 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" 2120 fi ;; 2121 esac 2122 if test -f "${with_tkconfig}/tkConfig.sh" ; then 2123 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" 2124 else 2125 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 2126echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 2127 { (exit 1); exit 1; }; } 2128 fi 2129 fi 2130 2131 # then check for a private Tk library 2132 if test x"${ac_cv_c_tkconfig}" = x ; then 2133 for i in \ 2134 ../tk \ 2135 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2136 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 2137 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 2138 ../../tk \ 2139 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2140 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 2141 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 2142 ../../../tk \ 2143 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2144 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 2145 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 2146 if test "${TEA_PLATFORM}" = "windows" \ 2147 -a -f "$i/win/tkConfig.sh" ; then 2148 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2149 break 2150 fi 2151 if test -f "$i/unix/tkConfig.sh" ; then 2152 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2153 break 2154 fi 2155 done 2156 fi 2157 2158 # on Darwin, check in Framework installation locations 2159 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 2160 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2161 `ls -d /Library/Frameworks 2>/dev/null` \ 2162 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2163 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2164 ; do 2165 if test -f "$i/Tk.framework/tkConfig.sh" ; then 2166 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" 2167 break 2168 fi 2169 done 2170 fi 2171 2172 # check in a few common install locations 2173 if test x"${ac_cv_c_tkconfig}" = x ; then 2174 for i in `ls -d ${libdir} 2>/dev/null` \ 2175 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2176 `ls -d ${prefix}/lib 2>/dev/null` \ 2177 `ls -d /usr/local/lib 2>/dev/null` \ 2178 `ls -d /usr/contrib/lib 2>/dev/null` \ 2179 `ls -d /usr/lib 2>/dev/null` \ 2180 `ls -d /usr/lib64 2>/dev/null` \ 2181 ; do 2182 if test -f "$i/tkConfig.sh" ; then 2183 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2184 break 2185 fi 2186 done 2187 fi 2188 2189 # TEA specific: on Windows, check in common installation locations 2190 if test "${TEA_PLATFORM}" = "windows" \ 2191 -a x"${ac_cv_c_tkconfig}" = x ; then 2192 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2193 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2194 ; do 2195 if test -f "$i/tkConfig.sh" ; then 2196 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2197 break 2198 fi 2199 done 2200 fi 2201 2202 # check in a few other private locations 2203 if test x"${ac_cv_c_tkconfig}" = x ; then 2204 for i in \ 2205 ${srcdir}/../tk \ 2206 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2207 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 2208 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 2209 if test "${TEA_PLATFORM}" = "windows" \ 2210 -a -f "$i/win/tkConfig.sh" ; then 2211 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2212 break 2213 fi 2214 if test -f "$i/unix/tkConfig.sh" ; then 2215 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2216 break 2217 fi 2218 done 2219 fi 2220 2221fi 2222 2223 2224 if test x"${ac_cv_c_tkconfig}" = x ; then 2225 TK_BIN_DIR="# no Tk configs found" 2226 { { echo "$as_me:$LINENO: error: Can't find Tk configuration definitions" >&5 2227echo "$as_me: error: Can't find Tk configuration definitions" >&2;} 2228 { (exit 1); exit 1; }; } 2229 else 2230 no_tk= 2231 TK_BIN_DIR="${ac_cv_c_tkconfig}" 2232 { echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 2233echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2234 fi 2235 fi 2236 2237 2238 { echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 2239echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6; } 2240 2241 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 2242 { echo "$as_me:$LINENO: result: loading" >&5 2243echo "${ECHO_T}loading" >&6; } 2244 . "${TK_BIN_DIR}/tkConfig.sh" 2245 else 2246 { echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 2247echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2248 fi 2249 2250 # eval is required to do the TK_DBGX substitution 2251 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 2252 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 2253 2254 # If the TK_BIN_DIR is the build directory (not the install directory), 2255 # then set the common variable name to the value of the build variables. 2256 # For example, the variable TK_LIB_SPEC will be set to the value 2257 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 2258 # instead of TK_BUILD_LIB_SPEC since it will work with both an 2259 # installed and uninstalled version of Tcl. 2260 if test -f "${TK_BIN_DIR}/Makefile" ; then 2261 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" 2262 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" 2263 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" 2264 elif test "`uname -s`" = "Darwin"; then 2265 # If Tk was built as a framework, attempt to use the libraries 2266 # from the framework at the given location so that linking works 2267 # against Tk.framework installed in an arbitrary location. 2268 case ${TK_DEFS} in 2269 *TK_FRAMEWORK*) 2270 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 2271 for i in "`cd "${TK_BIN_DIR}"; pwd`" \ 2272 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do 2273 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 2274 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" 2275 break 2276 fi 2277 done 2278 fi 2279 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 2280 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 2281 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 2282 fi 2283 ;; 2284 esac 2285 fi 2286 2287 # eval is required to do the TK_DBGX substitution 2288 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 2289 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 2290 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 2291 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 2292 2293 # TEA specific: Ensure windowingsystem is defined 2294 if test "${TEA_PLATFORM}" = "unix" ; then 2295 case ${TK_DEFS} in 2296 *MAC_OSX_TK*) 2297 2298cat >>confdefs.h <<\_ACEOF 2299#define MAC_OSX_TK 1 2300_ACEOF 2301 2302 TEA_WINDOWINGSYSTEM="aqua" 2303 ;; 2304 *) 2305 TEA_WINDOWINGSYSTEM="x11" 2306 ;; 2307 esac 2308 elif test "${TEA_PLATFORM}" = "windows" ; then 2309 TEA_WINDOWINGSYSTEM="win32" 2310 fi 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 # TEA specific: 2325 2326 2327 2328 2329# Find a good install program. We prefer a C program (faster), 2330# so one script is as good as another. But avoid the broken or 2331# incompatible versions: 2332# SysV /etc/install, /usr/sbin/install 2333# SunOS /usr/etc/install 2334# IRIX /sbin/install 2335# AIX /bin/install 2336# AmigaOS /C/install, which installs bootblocks on floppy discs 2337# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2338# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2339# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2340# OS/2's system install, which has a completely different semantic 2341# ./install, which can be erroneously created by make from ./install.sh. 2342{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2343echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2344if test -z "$INSTALL"; then 2345if test "${ac_cv_path_install+set}" = set; then 2346 echo $ECHO_N "(cached) $ECHO_C" >&6 2347else 2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349for as_dir in $PATH 2350do 2351 IFS=$as_save_IFS 2352 test -z "$as_dir" && as_dir=. 2353 # Account for people who put trailing slashes in PATH elements. 2354case $as_dir/ in 2355 ./ | .// | /cC/* | \ 2356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2357 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2358 /usr/ucb/* ) ;; 2359 *) 2360 # OSF1 and SCO ODT 3.0 have their own names for install. 2361 # Don't use installbsd from OSF since it installs stuff as root 2362 # by default. 2363 for ac_prog in ginstall scoinst install; do 2364 for ac_exec_ext in '' $ac_executable_extensions; do 2365 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2366 if test $ac_prog = install && 2367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2368 # AIX install. It has an incompatible calling convention. 2369 : 2370 elif test $ac_prog = install && 2371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2372 # program-specific install script used by HP pwplus--don't use. 2373 : 2374 else 2375 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2376 break 3 2377 fi 2378 fi 2379 done 2380 done 2381 ;; 2382esac 2383done 2384IFS=$as_save_IFS 2385 2386 2387fi 2388 if test "${ac_cv_path_install+set}" = set; then 2389 INSTALL=$ac_cv_path_install 2390 else 2391 # As a last resort, use the slow shell script. Don't cache a 2392 # value for INSTALL within a source directory, because that will 2393 # break other packages using the cache if that directory is 2394 # removed, or if the value is a relative name. 2395 INSTALL=$ac_install_sh 2396 fi 2397fi 2398{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2399echo "${ECHO_T}$INSTALL" >&6; } 2400 2401# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2402# It thinks the first close brace ends the variable substitution. 2403test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2404 2405test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2406 2407test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2408 2409 2410#-------------------------------------------------------------------- 2411# See if --with-itcl was specified to give the [incr Tcl] and [incr Tk] 2412# source code location. If not, then we'll assume that the Iwidgets 2413# package is being installed directly beneath the toplevel Itcl directory. 2414#-------------------------------------------------------------------- 2415 2416 2417# Check whether --with-itcl was given. 2418if test "${with_itcl+set}" = set; then 2419 withval=$with_itcl; itcl_search=$withval 2420else 2421 itcl_search=`cd ${srcdir}/..; pwd` 2422fi 2423 2424 2425ITCL_LIB_DIR="" 2426if test -r $itcl_search/itcl/library/itcl.tcl \ 2427 -a -r $itcl_search/itk/library/itk.tcl; then 2428 ITCL_LIB_DIR=$itcl_search/itcl/library 2429 ITCL_SRC_DIR=$itcl_search/itcl 2430 ITK_LIB_DIR=$itcl_search/itk/library 2431 ITK_SRC_DIR=$itcl_search/itk 2432fi 2433 2434if test -z "$ITCL_LIB_DIR"; then 2435 { { echo "$as_me:$LINENO: error: Can't find Itcl source. Use --with-itcl to specify the the toplevel incr Tcl directory on your system. This directory should contain itcl/library/itcl.tcl, itk/library/itk.tcl." >&5 2436echo "$as_me: error: Can't find Itcl source. Use --with-itcl to specify the the toplevel incr Tcl directory on your system. This directory should contain itcl/library/itcl.tcl, itk/library/itk.tcl." >&2;} 2437 { (exit 1); exit 1; }; } 2438fi 2439 2440#-------------------------------------------------------------------- 2441# Handle the --prefix=... option by defaulting to what Tcl gave. 2442# Must be called after TEA_LOAD_TCLCONFIG and before $prefix is used. 2443#-------------------------------------------------------------------- 2444 2445 2446 if test "${prefix}" = "NONE"; then 2447 prefix_default=yes 2448 if test x"${TCL_PREFIX}" != x; then 2449 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2450echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2451 prefix=${TCL_PREFIX} 2452 else 2453 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2454echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2455 prefix=/usr/local 2456 fi 2457 fi 2458 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2459 -o x"${exec_prefix_default}" = x"yes" ; then 2460 if test x"${TCL_EXEC_PREFIX}" != x; then 2461 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2462echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2463 exec_prefix=${TCL_EXEC_PREFIX} 2464 else 2465 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2466echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2467 exec_prefix=$prefix 2468 fi 2469 fi 2470 2471 2472#-------------------------------------------------------------------- 2473# Needed for running the test suite 2474#-------------------------------------------------------------------- 2475 2476 2477 { echo "$as_me:$LINENO: checking for tclsh" >&5 2478echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 2479 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2480 # tclConfig.sh is in Tcl build directory 2481 if test "${TEA_PLATFORM}" = "windows"; then 2482 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 2483 else 2484 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 2485 fi 2486 else 2487 # tclConfig.sh is in install location 2488 if test "${TEA_PLATFORM}" = "windows"; then 2489 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 2490 else 2491 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 2492 fi 2493 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 2494 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 2495 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 2496 for i in $list ; do 2497 if test -f "$i/${TCLSH_PROG}" ; then 2498 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 2499 break 2500 fi 2501 done 2502 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 2503 fi 2504 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 2505echo "${ECHO_T}${TCLSH_PROG}" >&6; } 2506 2507 2508 2509 { echo "$as_me:$LINENO: checking for wish" >&5 2510echo $ECHO_N "checking for wish... $ECHO_C" >&6; } 2511 if test -f "${TK_BIN_DIR}/Makefile" ; then 2512 # tkConfig.sh is in Tk build directory 2513 if test "${TEA_PLATFORM}" = "windows"; then 2514 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 2515 else 2516 WISH_PROG="${TK_BIN_DIR}/wish" 2517 fi 2518 else 2519 # tkConfig.sh is in install location 2520 if test "${TEA_PLATFORM}" = "windows"; then 2521 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 2522 else 2523 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 2524 fi 2525 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 2526 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 2527 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 2528 for i in $list ; do 2529 if test -f "$i/${WISH_PROG}" ; then 2530 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 2531 break 2532 fi 2533 done 2534 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 2535 fi 2536 { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 2537echo "${ECHO_T}${WISH_PROG}" >&6; } 2538 2539 2540 2541#-------------------------------------------------------------------- 2542# Fill in template files with the proper info. 2543#-------------------------------------------------------------------- 2544 2545 2546 2547 2548 2549 2550 2551 2552ac_config_files="$ac_config_files Makefile iwidgets.tcl pkgIndex.tcl" 2553 2554cat >confcache <<\_ACEOF 2555# This file is a shell script that caches the results of configure 2556# tests run on this system so they can be shared between configure 2557# scripts and configure runs, see configure's option --config-cache. 2558# It is not useful on other systems. If it contains results you don't 2559# want to keep, you may remove or edit it. 2560# 2561# config.status only pays attention to the cache file if you give it 2562# the --recheck option to rerun configure. 2563# 2564# `ac_cv_env_foo' variables (set or unset) will be overridden when 2565# loading this file, other *unset* `ac_cv_foo' will be assigned the 2566# following values. 2567 2568_ACEOF 2569 2570# The following way of writing the cache mishandles newlines in values, 2571# but we know of no workaround that is simple, portable, and efficient. 2572# So, we kill variables containing newlines. 2573# Ultrix sh set writes to stderr and can't be redirected directly, 2574# and sets the high bit in the cache file unless we assign to the vars. 2575( 2576 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 2577 eval ac_val=\$$ac_var 2578 case $ac_val in #( 2579 *${as_nl}*) 2580 case $ac_var in #( 2581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2582echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 2583 esac 2584 case $ac_var in #( 2585 _ | IFS | as_nl) ;; #( 2586 *) $as_unset $ac_var ;; 2587 esac ;; 2588 esac 2589 done 2590 2591 (set) 2>&1 | 2592 case $as_nl`(ac_space=' '; set) 2>&1` in #( 2593 *${as_nl}ac_space=\ *) 2594 # `set' does not quote correctly, so add quotes (double-quote 2595 # substitution turns \\\\ into \\, and sed turns \\ into \). 2596 sed -n \ 2597 "s/'/'\\\\''/g; 2598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2599 ;; #( 2600 *) 2601 # `set' quotes correctly as required by POSIX, so do not add quotes. 2602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2603 ;; 2604 esac | 2605 sort 2606) | 2607 sed ' 2608 /^ac_cv_env_/b end 2609 t clear 2610 :clear 2611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 2612 t end 2613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2614 :end' >>confcache 2615if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 2616 if test -w "$cache_file"; then 2617 test "x$cache_file" != "x/dev/null" && 2618 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 2619echo "$as_me: updating cache $cache_file" >&6;} 2620 cat confcache >$cache_file 2621 else 2622 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 2623echo "$as_me: not updating unwritable cache $cache_file" >&6;} 2624 fi 2625fi 2626rm -f confcache 2627 2628test "x$prefix" = xNONE && prefix=$ac_default_prefix 2629# Let make expand exec_prefix. 2630test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2631 2632# Transform confdefs.h into DEFS. 2633# Protect against shell expansion while executing Makefile rules. 2634# Protect against Makefile macro expansion. 2635# 2636# If the first sed substitution is executed (which looks for macros that 2637# take arguments), then branch to the quote section. Otherwise, 2638# look for a macro that doesn't take arguments. 2639ac_script=' 2640t clear 2641:clear 2642s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 2643t quote 2644s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 2645t quote 2646b any 2647:quote 2648s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 2649s/\[/\\&/g 2650s/\]/\\&/g 2651s/\$/$$/g 2652H 2653:any 2654${ 2655 g 2656 s/^\n// 2657 s/\n/ /g 2658 p 2659} 2660' 2661DEFS=`sed -n "$ac_script" confdefs.h` 2662 2663 2664ac_libobjs= 2665ac_ltlibobjs= 2666for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 2667 # 1. Remove the extension, and $U if already installed. 2668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 2669 ac_i=`echo "$ac_i" | sed "$ac_script"` 2670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 2671 # will be set to the directory where LIBOBJS objects are built. 2672 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 2673 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 2674done 2675LIBOBJS=$ac_libobjs 2676 2677LTLIBOBJS=$ac_ltlibobjs 2678 2679 2680 2681: ${CONFIG_STATUS=./config.status} 2682ac_clean_files_save=$ac_clean_files 2683ac_clean_files="$ac_clean_files $CONFIG_STATUS" 2684{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 2685echo "$as_me: creating $CONFIG_STATUS" >&6;} 2686cat >$CONFIG_STATUS <<_ACEOF 2687#! $SHELL 2688# Generated by $as_me. 2689# Run this file to recreate the current configuration. 2690# Compiler output produced by configure, useful for debugging 2691# configure, is in config.log if it exists. 2692 2693debug=false 2694ac_cs_recheck=false 2695ac_cs_silent=false 2696SHELL=\${CONFIG_SHELL-$SHELL} 2697_ACEOF 2698 2699cat >>$CONFIG_STATUS <<\_ACEOF 2700## --------------------- ## 2701## M4sh Initialization. ## 2702## --------------------- ## 2703 2704# Be more Bourne compatible 2705DUALCASE=1; export DUALCASE # for MKS sh 2706if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 2707 emulate sh 2708 NULLCMD=: 2709 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 2710 # is contrary to our usage. Disable this feature. 2711 alias -g '${1+"$@"}'='"$@"' 2712 setopt NO_GLOB_SUBST 2713else 2714 case `(set -o) 2>/dev/null` in 2715 *posix*) set -o posix ;; 2716esac 2717 2718fi 2719 2720 2721 2722 2723# PATH needs CR 2724# Avoid depending upon Character Ranges. 2725as_cr_letters='abcdefghijklmnopqrstuvwxyz' 2726as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 2727as_cr_Letters=$as_cr_letters$as_cr_LETTERS 2728as_cr_digits='0123456789' 2729as_cr_alnum=$as_cr_Letters$as_cr_digits 2730 2731# The user is always right. 2732if test "${PATH_SEPARATOR+set}" != set; then 2733 echo "#! /bin/sh" >conf$$.sh 2734 echo "exit 0" >>conf$$.sh 2735 chmod +x conf$$.sh 2736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 2737 PATH_SEPARATOR=';' 2738 else 2739 PATH_SEPARATOR=: 2740 fi 2741 rm -f conf$$.sh 2742fi 2743 2744# Support unset when possible. 2745if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 2746 as_unset=unset 2747else 2748 as_unset=false 2749fi 2750 2751 2752# IFS 2753# We need space, tab and new line, in precisely that order. Quoting is 2754# there to prevent editors from complaining about space-tab. 2755# (If _AS_PATH_WALK were called with IFS unset, it would disable word 2756# splitting by setting IFS to empty value.) 2757as_nl=' 2758' 2759IFS=" "" $as_nl" 2760 2761# Find who we are. Look in the path if we contain no directory separator. 2762case $0 in 2763 *[\\/]* ) as_myself=$0 ;; 2764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 test -z "$as_dir" && as_dir=. 2769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 2770done 2771IFS=$as_save_IFS 2772 2773 ;; 2774esac 2775# We did not find ourselves, most probably we were run as `sh COMMAND' 2776# in which case we are not to be found in the path. 2777if test "x$as_myself" = x; then 2778 as_myself=$0 2779fi 2780if test ! -f "$as_myself"; then 2781 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 2782 { (exit 1); exit 1; } 2783fi 2784 2785# Work around bugs in pre-3.0 UWIN ksh. 2786for as_var in ENV MAIL MAILPATH 2787do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 2788done 2789PS1='$ ' 2790PS2='> ' 2791PS4='+ ' 2792 2793# NLS nuisances. 2794for as_var in \ 2795 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 2796 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 2797 LC_TELEPHONE LC_TIME 2798do 2799 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 2800 eval $as_var=C; export $as_var 2801 else 2802 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 2803 fi 2804done 2805 2806# Required to use basename. 2807if expr a : '\(a\)' >/dev/null 2>&1 && 2808 test "X`expr 00001 : '.*\(...\)'`" = X001; then 2809 as_expr=expr 2810else 2811 as_expr=false 2812fi 2813 2814if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 2815 as_basename=basename 2816else 2817 as_basename=false 2818fi 2819 2820 2821# Name of the executable. 2822as_me=`$as_basename -- "$0" || 2823$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2824 X"$0" : 'X\(//\)$' \| \ 2825 X"$0" : 'X\(/\)' \| . 2>/dev/null || 2826echo X/"$0" | 2827 sed '/^.*\/\([^/][^/]*\)\/*$/{ 2828 s//\1/ 2829 q 2830 } 2831 /^X\/\(\/\/\)$/{ 2832 s//\1/ 2833 q 2834 } 2835 /^X\/\(\/\).*/{ 2836 s//\1/ 2837 q 2838 } 2839 s/.*/./; q'` 2840 2841# CDPATH. 2842$as_unset CDPATH 2843 2844 2845 2846 as_lineno_1=$LINENO 2847 as_lineno_2=$LINENO 2848 test "x$as_lineno_1" != "x$as_lineno_2" && 2849 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 2850 2851 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 2852 # uniformly replaced by the line number. The first 'sed' inserts a 2853 # line-number line after each line using $LINENO; the second 'sed' 2854 # does the real work. The second script uses 'N' to pair each 2855 # line-number line with the line containing $LINENO, and appends 2856 # trailing '-' during substitution so that $LINENO is not a special 2857 # case at line end. 2858 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 2859 # scripts with optimization help from Paolo Bonzini. Blame Lee 2860 # E. McMahon (1931-1989) for sed's syntax. :-) 2861 sed -n ' 2862 p 2863 /[$]LINENO/= 2864 ' <$as_myself | 2865 sed ' 2866 s/[$]LINENO.*/&-/ 2867 t lineno 2868 b 2869 :lineno 2870 N 2871 :loop 2872 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 2873 t loop 2874 s/-\n.*// 2875 ' >$as_me.lineno && 2876 chmod +x "$as_me.lineno" || 2877 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 2878 { (exit 1); exit 1; }; } 2879 2880 # Don't try to exec as it changes $[0], causing all sort of problems 2881 # (the dirname of $[0] is not the place where we might find the 2882 # original and so on. Autoconf is especially sensitive to this). 2883 . "./$as_me.lineno" 2884 # Exit status is that of the last command. 2885 exit 2886} 2887 2888 2889if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 2890 as_dirname=dirname 2891else 2892 as_dirname=false 2893fi 2894 2895ECHO_C= ECHO_N= ECHO_T= 2896case `echo -n x` in 2897-n*) 2898 case `echo 'x\c'` in 2899 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 2900 *) ECHO_C='\c';; 2901 esac;; 2902*) 2903 ECHO_N='-n';; 2904esac 2905 2906if expr a : '\(a\)' >/dev/null 2>&1 && 2907 test "X`expr 00001 : '.*\(...\)'`" = X001; then 2908 as_expr=expr 2909else 2910 as_expr=false 2911fi 2912 2913rm -f conf$$ conf$$.exe conf$$.file 2914if test -d conf$$.dir; then 2915 rm -f conf$$.dir/conf$$.file 2916else 2917 rm -f conf$$.dir 2918 mkdir conf$$.dir 2919fi 2920echo >conf$$.file 2921if ln -s conf$$.file conf$$ 2>/dev/null; then 2922 as_ln_s='ln -s' 2923 # ... but there are two gotchas: 2924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 2925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 2926 # In both cases, we have to default to `cp -p'. 2927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 2928 as_ln_s='cp -p' 2929elif ln conf$$.file conf$$ 2>/dev/null; then 2930 as_ln_s=ln 2931else 2932 as_ln_s='cp -p' 2933fi 2934rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 2935rmdir conf$$.dir 2>/dev/null 2936 2937if mkdir -p . 2>/dev/null; then 2938 as_mkdir_p=: 2939else 2940 test -d ./-p && rmdir ./-p 2941 as_mkdir_p=false 2942fi 2943 2944if test -x / >/dev/null 2>&1; then 2945 as_test_x='test -x' 2946else 2947 if ls -dL / >/dev/null 2>&1; then 2948 as_ls_L_option=L 2949 else 2950 as_ls_L_option= 2951 fi 2952 as_test_x=' 2953 eval sh -c '\'' 2954 if test -d "$1"; then 2955 test -d "$1/."; 2956 else 2957 case $1 in 2958 -*)set "./$1";; 2959 esac; 2960 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 2961 ???[sx]*):;;*)false;;esac;fi 2962 '\'' sh 2963 ' 2964fi 2965as_executable_p=$as_test_x 2966 2967# Sed expression to map a string onto a valid CPP name. 2968as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 2969 2970# Sed expression to map a string onto a valid variable name. 2971as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 2972 2973 2974exec 6>&1 2975 2976# Save the log message, to keep $[0] and so on meaningful, and to 2977# report actual input values of CONFIG_FILES etc. instead of their 2978# values after options handling. 2979ac_log=" 2980This file was extended by iwidgets $as_me 4.0.2, which was 2981generated by GNU Autoconf 2.61. Invocation command line was 2982 2983 CONFIG_FILES = $CONFIG_FILES 2984 CONFIG_HEADERS = $CONFIG_HEADERS 2985 CONFIG_LINKS = $CONFIG_LINKS 2986 CONFIG_COMMANDS = $CONFIG_COMMANDS 2987 $ $0 $@ 2988 2989on `(hostname || uname -n) 2>/dev/null | sed 1q` 2990" 2991 2992_ACEOF 2993 2994cat >>$CONFIG_STATUS <<_ACEOF 2995# Files that config.status was made for. 2996config_files="$ac_config_files" 2997 2998_ACEOF 2999 3000cat >>$CONFIG_STATUS <<\_ACEOF 3001ac_cs_usage="\ 3002\`$as_me' instantiates files from templates according to the 3003current configuration. 3004 3005Usage: $0 [OPTIONS] [FILE]... 3006 3007 -h, --help print this help, then exit 3008 -V, --version print version number and configuration settings, then exit 3009 -q, --quiet do not print progress messages 3010 -d, --debug don't remove temporary files 3011 --recheck update $as_me by reconfiguring in the same conditions 3012 --file=FILE[:TEMPLATE] 3013 instantiate the configuration file FILE 3014 3015Configuration files: 3016$config_files 3017 3018Report bugs to <bug-autoconf@gnu.org>." 3019 3020_ACEOF 3021cat >>$CONFIG_STATUS <<_ACEOF 3022ac_cs_version="\\ 3023iwidgets config.status 4.0.2 3024configured by $0, generated by GNU Autoconf 2.61, 3025 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 3026 3027Copyright (C) 2006 Free Software Foundation, Inc. 3028This config.status script is free software; the Free Software Foundation 3029gives unlimited permission to copy, distribute and modify it." 3030 3031ac_pwd='$ac_pwd' 3032srcdir='$srcdir' 3033INSTALL='$INSTALL' 3034_ACEOF 3035 3036cat >>$CONFIG_STATUS <<\_ACEOF 3037# If no file are specified by the user, then we need to provide default 3038# value. By we need to know if files were specified by the user. 3039ac_need_defaults=: 3040while test $# != 0 3041do 3042 case $1 in 3043 --*=*) 3044 ac_option=`expr "X$1" : 'X\([^=]*\)='` 3045 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 3046 ac_shift=: 3047 ;; 3048 *) 3049 ac_option=$1 3050 ac_optarg=$2 3051 ac_shift=shift 3052 ;; 3053 esac 3054 3055 case $ac_option in 3056 # Handling of the options. 3057 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3058 ac_cs_recheck=: ;; 3059 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 3060 echo "$ac_cs_version"; exit ;; 3061 --debug | --debu | --deb | --de | --d | -d ) 3062 debug=: ;; 3063 --file | --fil | --fi | --f ) 3064 $ac_shift 3065 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 3066 ac_need_defaults=false;; 3067 --he | --h | --help | --hel | -h ) 3068 echo "$ac_cs_usage"; exit ;; 3069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3070 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3071 ac_cs_silent=: ;; 3072 3073 # This is an error. 3074 -*) { echo "$as_me: error: unrecognized option: $1 3075Try \`$0 --help' for more information." >&2 3076 { (exit 1); exit 1; }; } ;; 3077 3078 *) ac_config_targets="$ac_config_targets $1" 3079 ac_need_defaults=false ;; 3080 3081 esac 3082 shift 3083done 3084 3085ac_configure_extra_args= 3086 3087if $ac_cs_silent; then 3088 exec 6>/dev/null 3089 ac_configure_extra_args="$ac_configure_extra_args --silent" 3090fi 3091 3092_ACEOF 3093cat >>$CONFIG_STATUS <<_ACEOF 3094if \$ac_cs_recheck; then 3095 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 3096 CONFIG_SHELL=$SHELL 3097 export CONFIG_SHELL 3098 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3099fi 3100 3101_ACEOF 3102cat >>$CONFIG_STATUS <<\_ACEOF 3103exec 5>>config.log 3104{ 3105 echo 3106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3107## Running $as_me. ## 3108_ASBOX 3109 echo "$ac_log" 3110} >&5 3111 3112_ACEOF 3113cat >>$CONFIG_STATUS <<_ACEOF 3114_ACEOF 3115 3116cat >>$CONFIG_STATUS <<\_ACEOF 3117 3118# Handling of arguments. 3119for ac_config_target in $ac_config_targets 3120do 3121 case $ac_config_target in 3122 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3123 "iwidgets.tcl") CONFIG_FILES="$CONFIG_FILES iwidgets.tcl" ;; 3124 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 3125 3126 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 3127echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 3128 { (exit 1); exit 1; }; };; 3129 esac 3130done 3131 3132 3133# If the user did not use the arguments to specify the items to instantiate, 3134# then the envvar interface is used. Set only those that are not. 3135# We use the long form for the default assignment because of an extremely 3136# bizarre bug on SunOS 4.1.3. 3137if $ac_need_defaults; then 3138 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3139fi 3140 3141# Have a temporary directory for convenience. Make it in the build tree 3142# simply because there is no reason against having it here, and in addition, 3143# creating and moving files from /tmp can sometimes cause problems. 3144# Hook for its removal unless debugging. 3145# Note that there is a small window in which the directory will not be cleaned: 3146# after its creation but before its name has been assigned to `$tmp'. 3147$debug || 3148{ 3149 tmp= 3150 trap 'exit_status=$? 3151 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 3152' 0 3153 trap '{ (exit 1); exit 1; }' 1 2 13 15 3154} 3155# Create a (secure) tmp directory for tmp files. 3156 3157{ 3158 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 3159 test -n "$tmp" && test -d "$tmp" 3160} || 3161{ 3162 tmp=./conf$$-$RANDOM 3163 (umask 077 && mkdir "$tmp") 3164} || 3165{ 3166 echo "$me: cannot create a temporary directory in ." >&2 3167 { (exit 1); exit 1; } 3168} 3169 3170# 3171# Set up the sed scripts for CONFIG_FILES section. 3172# 3173 3174# No need to generate the scripts if there are no CONFIG_FILES. 3175# This happens for instance when ./config.status config.h 3176if test -n "$CONFIG_FILES"; then 3177 3178_ACEOF 3179 3180 3181 3182ac_delim='%!_!# ' 3183for ac_last_try in false false false false false :; do 3184 cat >conf$$subs.sed <<_ACEOF 3185SHELL!$SHELL$ac_delim 3186PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 3187PACKAGE_NAME!$PACKAGE_NAME$ac_delim 3188PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 3189PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 3190PACKAGE_STRING!$PACKAGE_STRING$ac_delim 3191PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 3192exec_prefix!$exec_prefix$ac_delim 3193prefix!$prefix$ac_delim 3194program_transform_name!$program_transform_name$ac_delim 3195bindir!$bindir$ac_delim 3196sbindir!$sbindir$ac_delim 3197libexecdir!$libexecdir$ac_delim 3198datarootdir!$datarootdir$ac_delim 3199datadir!$datadir$ac_delim 3200sysconfdir!$sysconfdir$ac_delim 3201sharedstatedir!$sharedstatedir$ac_delim 3202localstatedir!$localstatedir$ac_delim 3203includedir!$includedir$ac_delim 3204oldincludedir!$oldincludedir$ac_delim 3205docdir!$docdir$ac_delim 3206infodir!$infodir$ac_delim 3207htmldir!$htmldir$ac_delim 3208dvidir!$dvidir$ac_delim 3209pdfdir!$pdfdir$ac_delim 3210psdir!$psdir$ac_delim 3211libdir!$libdir$ac_delim 3212localedir!$localedir$ac_delim 3213mandir!$mandir$ac_delim 3214DEFS!$DEFS$ac_delim 3215ECHO_C!$ECHO_C$ac_delim 3216ECHO_N!$ECHO_N$ac_delim 3217ECHO_T!$ECHO_T$ac_delim 3218LIBS!$LIBS$ac_delim 3219build_alias!$build_alias$ac_delim 3220host_alias!$host_alias$ac_delim 3221target_alias!$target_alias$ac_delim 3222CYGPATH!$CYGPATH$ac_delim 3223EXEEXT!$EXEEXT$ac_delim 3224PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 3225PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 3226PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 3227PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 3228PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 3229PKG_HEADERS!$PKG_HEADERS$ac_delim 3230PKG_INCLUDES!$PKG_INCLUDES$ac_delim 3231PKG_LIBS!$PKG_LIBS$ac_delim 3232PKG_CFLAGS!$PKG_CFLAGS$ac_delim 3233ITCL_VERSION!$ITCL_VERSION$ac_delim 3234TCL_VERSION!$TCL_VERSION$ac_delim 3235TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 3236TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 3237TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 3238TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 3239TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 3240TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 3241TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 3242TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 3243TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 3244CLEANFILES!$CLEANFILES$ac_delim 3245TCL_LIBS!$TCL_LIBS$ac_delim 3246TCL_DEFS!$TCL_DEFS$ac_delim 3247TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 3248TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 3249TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 3250TK_VERSION!$TK_VERSION$ac_delim 3251TK_BIN_DIR!$TK_BIN_DIR$ac_delim 3252TK_SRC_DIR!$TK_SRC_DIR$ac_delim 3253TK_LIB_FILE!$TK_LIB_FILE$ac_delim 3254TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim 3255TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim 3256TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim 3257TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim 3258TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim 3259TK_LIBS!$TK_LIBS$ac_delim 3260TK_XINCLUDES!$TK_XINCLUDES$ac_delim 3261INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 3262INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 3263INSTALL_DATA!$INSTALL_DATA$ac_delim 3264TCLSH_PROG!$TCLSH_PROG$ac_delim 3265WISH_PROG!$WISH_PROG$ac_delim 3266ITCL_LIB_DIR!$ITCL_LIB_DIR$ac_delim 3267ITCL_SRC_DIR!$ITCL_SRC_DIR$ac_delim 3268ITK_LIB_DIR!$ITK_LIB_DIR$ac_delim 3269ITK_SRC_DIR!$ITK_SRC_DIR$ac_delim 3270IWIDGETS_SRC_DIR!$IWIDGETS_SRC_DIR$ac_delim 3271LIBOBJS!$LIBOBJS$ac_delim 3272LTLIBOBJS!$LTLIBOBJS$ac_delim 3273_ACEOF 3274 3275 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then 3276 break 3277 elif $ac_last_try; then 3278 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 3279echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 3280 { (exit 1); exit 1; }; } 3281 else 3282 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 3283 fi 3284done 3285 3286ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 3287if test -n "$ac_eof"; then 3288 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 3289 ac_eof=`expr $ac_eof + 1` 3290fi 3291 3292cat >>$CONFIG_STATUS <<_ACEOF 3293cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 3294/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 3295_ACEOF 3296sed ' 3297s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 3298s/^/s,@/; s/!/@,|#_!!_#|/ 3299:n 3300t n 3301s/'"$ac_delim"'$/,g/; t 3302s/$/\\/; p 3303N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 3304' >>$CONFIG_STATUS <conf$$subs.sed 3305rm -f conf$$subs.sed 3306cat >>$CONFIG_STATUS <<_ACEOF 3307:end 3308s/|#_!!_#|//g 3309CEOF$ac_eof 3310_ACEOF 3311 3312 3313# VPATH may cause trouble with some makes, so we remove $(srcdir), 3314# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 3315# trailing colons and then remove the whole line if VPATH becomes empty 3316# (actually we leave an empty line to preserve line numbers). 3317if test "x$srcdir" = x.; then 3318 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 3319s/:*\$(srcdir):*/:/ 3320s/:*\${srcdir}:*/:/ 3321s/:*@srcdir@:*/:/ 3322s/^\([^=]*=[ ]*\):*/\1/ 3323s/:*$// 3324s/^[^=]*=[ ]*$// 3325}' 3326fi 3327 3328cat >>$CONFIG_STATUS <<\_ACEOF 3329fi # test -n "$CONFIG_FILES" 3330 3331 3332for ac_tag in :F $CONFIG_FILES 3333do 3334 case $ac_tag in 3335 :[FHLC]) ac_mode=$ac_tag; continue;; 3336 esac 3337 case $ac_mode$ac_tag in 3338 :[FHL]*:*);; 3339 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 3340echo "$as_me: error: Invalid tag $ac_tag." >&2;} 3341 { (exit 1); exit 1; }; };; 3342 :[FH]-) ac_tag=-:-;; 3343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 3344 esac 3345 ac_save_IFS=$IFS 3346 IFS=: 3347 set x $ac_tag 3348 IFS=$ac_save_IFS 3349 shift 3350 ac_file=$1 3351 shift 3352 3353 case $ac_mode in 3354 :L) ac_source=$1;; 3355 :[FH]) 3356 ac_file_inputs= 3357 for ac_f 3358 do 3359 case $ac_f in 3360 -) ac_f="$tmp/stdin";; 3361 *) # Look for the file first in the build tree, then in the source tree 3362 # (if the path is not absolute). The absolute path cannot be DOS-style, 3363 # because $ac_f cannot contain `:'. 3364 test -f "$ac_f" || 3365 case $ac_f in 3366 [\\/$]*) false;; 3367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 3368 esac || 3369 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 3370echo "$as_me: error: cannot find input file: $ac_f" >&2;} 3371 { (exit 1); exit 1; }; };; 3372 esac 3373 ac_file_inputs="$ac_file_inputs $ac_f" 3374 done 3375 3376 # Let's still pretend it is `configure' which instantiates (i.e., don't 3377 # use $as_me), people would be surprised to read: 3378 # /* config.h. Generated by config.status. */ 3379 configure_input="Generated from "`IFS=: 3380 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 3381 if test x"$ac_file" != x-; then 3382 configure_input="$ac_file. $configure_input" 3383 { echo "$as_me:$LINENO: creating $ac_file" >&5 3384echo "$as_me: creating $ac_file" >&6;} 3385 fi 3386 3387 case $ac_tag in 3388 *:-:* | *:-) cat >"$tmp/stdin";; 3389 esac 3390 ;; 3391 esac 3392 3393 ac_dir=`$as_dirname -- "$ac_file" || 3394$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3395 X"$ac_file" : 'X\(//\)[^/]' \| \ 3396 X"$ac_file" : 'X\(//\)$' \| \ 3397 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 3398echo X"$ac_file" | 3399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3400 s//\1/ 3401 q 3402 } 3403 /^X\(\/\/\)[^/].*/{ 3404 s//\1/ 3405 q 3406 } 3407 /^X\(\/\/\)$/{ 3408 s//\1/ 3409 q 3410 } 3411 /^X\(\/\).*/{ 3412 s//\1/ 3413 q 3414 } 3415 s/.*/./; q'` 3416 { as_dir="$ac_dir" 3417 case $as_dir in #( 3418 -*) as_dir=./$as_dir;; 3419 esac 3420 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 3421 as_dirs= 3422 while :; do 3423 case $as_dir in #( 3424 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 3425 *) as_qdir=$as_dir;; 3426 esac 3427 as_dirs="'$as_qdir' $as_dirs" 3428 as_dir=`$as_dirname -- "$as_dir" || 3429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3430 X"$as_dir" : 'X\(//\)[^/]' \| \ 3431 X"$as_dir" : 'X\(//\)$' \| \ 3432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3433echo X"$as_dir" | 3434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3435 s//\1/ 3436 q 3437 } 3438 /^X\(\/\/\)[^/].*/{ 3439 s//\1/ 3440 q 3441 } 3442 /^X\(\/\/\)$/{ 3443 s//\1/ 3444 q 3445 } 3446 /^X\(\/\).*/{ 3447 s//\1/ 3448 q 3449 } 3450 s/.*/./; q'` 3451 test -d "$as_dir" && break 3452 done 3453 test -z "$as_dirs" || eval "mkdir $as_dirs" 3454 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 3455echo "$as_me: error: cannot create directory $as_dir" >&2;} 3456 { (exit 1); exit 1; }; }; } 3457 ac_builddir=. 3458 3459case "$ac_dir" in 3460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 3461*) 3462 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 3463 # A ".." for each directory in $ac_dir_suffix. 3464 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 3465 case $ac_top_builddir_sub in 3466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 3467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 3468 esac ;; 3469esac 3470ac_abs_top_builddir=$ac_pwd 3471ac_abs_builddir=$ac_pwd$ac_dir_suffix 3472# for backward compatibility: 3473ac_top_builddir=$ac_top_build_prefix 3474 3475case $srcdir in 3476 .) # We are building in place. 3477 ac_srcdir=. 3478 ac_top_srcdir=$ac_top_builddir_sub 3479 ac_abs_top_srcdir=$ac_pwd ;; 3480 [\\/]* | ?:[\\/]* ) # Absolute name. 3481 ac_srcdir=$srcdir$ac_dir_suffix; 3482 ac_top_srcdir=$srcdir 3483 ac_abs_top_srcdir=$srcdir ;; 3484 *) # Relative name. 3485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 3486 ac_top_srcdir=$ac_top_build_prefix$srcdir 3487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 3488esac 3489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 3490 3491 3492 case $ac_mode in 3493 :F) 3494 # 3495 # CONFIG_FILE 3496 # 3497 3498 case $INSTALL in 3499 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 3500 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 3501 esac 3502_ACEOF 3503 3504cat >>$CONFIG_STATUS <<\_ACEOF 3505# If the template does not know about datarootdir, expand it. 3506# FIXME: This hack should be removed a few years after 2.60. 3507ac_datarootdir_hack=; ac_datarootdir_seen= 3508 3509case `sed -n '/datarootdir/ { 3510 p 3511 q 3512} 3513/@datadir@/p 3514/@docdir@/p 3515/@infodir@/p 3516/@localedir@/p 3517/@mandir@/p 3518' $ac_file_inputs` in 3519*datarootdir*) ac_datarootdir_seen=yes;; 3520*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 3521 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 3522echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 3523_ACEOF 3524cat >>$CONFIG_STATUS <<_ACEOF 3525 ac_datarootdir_hack=' 3526 s&@datadir@&$datadir&g 3527 s&@docdir@&$docdir&g 3528 s&@infodir@&$infodir&g 3529 s&@localedir@&$localedir&g 3530 s&@mandir@&$mandir&g 3531 s&\\\${datarootdir}&$datarootdir&g' ;; 3532esac 3533_ACEOF 3534 3535# Neutralize VPATH when `$srcdir' = `.'. 3536# Shell code in configure.ac might set extrasub. 3537# FIXME: do we really want to maintain this feature? 3538cat >>$CONFIG_STATUS <<_ACEOF 3539 sed "$ac_vpsub 3540$extrasub 3541_ACEOF 3542cat >>$CONFIG_STATUS <<\_ACEOF 3543:t 3544/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3545s&@configure_input@&$configure_input&;t t 3546s&@top_builddir@&$ac_top_builddir_sub&;t t 3547s&@srcdir@&$ac_srcdir&;t t 3548s&@abs_srcdir@&$ac_abs_srcdir&;t t 3549s&@top_srcdir@&$ac_top_srcdir&;t t 3550s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 3551s&@builddir@&$ac_builddir&;t t 3552s&@abs_builddir@&$ac_abs_builddir&;t t 3553s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 3554s&@INSTALL@&$ac_INSTALL&;t t 3555$ac_datarootdir_hack 3556" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 3557 3558test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 3559 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 3560 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 3561 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 3562which seems to be undefined. Please make sure it is defined." >&5 3563echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 3564which seems to be undefined. Please make sure it is defined." >&2;} 3565 3566 rm -f "$tmp/stdin" 3567 case $ac_file in 3568 -) cat "$tmp/out"; rm -f "$tmp/out";; 3569 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 3570 esac 3571 ;; 3572 3573 3574 3575 esac 3576 3577done # for ac_tag 3578 3579 3580{ (exit 0); exit 0; } 3581_ACEOF 3582chmod +x $CONFIG_STATUS 3583ac_clean_files=$ac_clean_files_save 3584 3585 3586# configure is writing to config.log, and then calls config.status. 3587# config.status does its own redirection, appending to config.log. 3588# Unfortunately, on DOS this fails, as config.log is still kept open 3589# by configure, so config.status won't be able to write to it; its 3590# output is simply discarded. So we exec the FD to /dev/null, 3591# effectively closing config.log, so it can be properly (re)opened and 3592# appended to by config.status. When coming back to configure, we 3593# need to make the FD available again. 3594if test "$no_create" != yes; then 3595 ac_cs_success=: 3596 ac_config_status_args= 3597 test "$silent" = yes && 3598 ac_config_status_args="$ac_config_status_args --quiet" 3599 exec 5>/dev/null 3600 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 3601 exec 5>>config.log 3602 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 3603 # would make configure fail if this is the last instruction. 3604 $ac_cs_success || { (exit 1); exit 1; } 3605fi 3606 3607