1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 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= 574PACKAGE_TARNAME= 575PACKAGE_VERSION= 576PACKAGE_STRING= 577PACKAGE_BUGREPORT= 578 579ac_unique_file="tcpillust.h" 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 617tclincdir 618tkincdir 619tcllib 620tklib 621tcllibdir 622tklibdir 623CC 624CFLAGS 625LDFLAGS 626CPPFLAGS 627ac_ct_CC 628EXEEXT 629OBJEXT 630XMKMF 631CPP 632LIBOBJS 633LTLIBOBJS' 634ac_subst_files='' 635 ac_precious_vars='build_alias 636host_alias 637target_alias 638CC 639CFLAGS 640LDFLAGS 641LIBS 642CPPFLAGS 643XMKMF 644CPP' 645 646 647# Initialize some variables set by options. 648ac_init_help= 649ac_init_version=false 650# The variables have the same names as the options, with 651# dashes changed to underlines. 652cache_file=/dev/null 653exec_prefix=NONE 654no_create= 655no_recursion= 656prefix=NONE 657program_prefix=NONE 658program_suffix=NONE 659program_transform_name=s,x,x, 660silent= 661site= 662srcdir= 663verbose= 664x_includes=NONE 665x_libraries=NONE 666 667# Installation directory options. 668# These are left unexpanded so users can "make install exec_prefix=/foo" 669# and all the variables that are supposed to be based on exec_prefix 670# by default will actually change. 671# Use braces instead of parens because sh, perl, etc. also accept them. 672# (The list follows the same order as the GNU Coding Standards.) 673bindir='${exec_prefix}/bin' 674sbindir='${exec_prefix}/sbin' 675libexecdir='${exec_prefix}/libexec' 676datarootdir='${prefix}/share' 677datadir='${datarootdir}' 678sysconfdir='${prefix}/etc' 679sharedstatedir='${prefix}/com' 680localstatedir='${prefix}/var' 681includedir='${prefix}/include' 682oldincludedir='/usr/include' 683docdir='${datarootdir}/doc/${PACKAGE}' 684infodir='${datarootdir}/info' 685htmldir='${docdir}' 686dvidir='${docdir}' 687pdfdir='${docdir}' 688psdir='${docdir}' 689libdir='${exec_prefix}/lib' 690localedir='${datarootdir}/locale' 691mandir='${datarootdir}/man' 692 693ac_prev= 694ac_dashdash= 695for ac_option 696do 697 # If the previous option needs an argument, assign it. 698 if test -n "$ac_prev"; then 699 eval $ac_prev=\$ac_option 700 ac_prev= 701 continue 702 fi 703 704 case $ac_option in 705 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 706 *) ac_optarg=yes ;; 707 esac 708 709 # Accept the important Cygnus configure options, so we can diagnose typos. 710 711 case $ac_dashdash$ac_option in 712 --) 713 ac_dashdash=yes ;; 714 715 -bindir | --bindir | --bindi | --bind | --bin | --bi) 716 ac_prev=bindir ;; 717 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 718 bindir=$ac_optarg ;; 719 720 -build | --build | --buil | --bui | --bu) 721 ac_prev=build_alias ;; 722 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 723 build_alias=$ac_optarg ;; 724 725 -cache-file | --cache-file | --cache-fil | --cache-fi \ 726 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 727 ac_prev=cache_file ;; 728 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 729 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 730 cache_file=$ac_optarg ;; 731 732 --config-cache | -C) 733 cache_file=config.cache ;; 734 735 -datadir | --datadir | --datadi | --datad) 736 ac_prev=datadir ;; 737 -datadir=* | --datadir=* | --datadi=* | --datad=*) 738 datadir=$ac_optarg ;; 739 740 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 741 | --dataroo | --dataro | --datar) 742 ac_prev=datarootdir ;; 743 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 744 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 745 datarootdir=$ac_optarg ;; 746 747 -disable-* | --disable-*) 748 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 749 # Reject names that are not valid shell variable names. 750 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 751 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 752 { (exit 1); exit 1; }; } 753 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 754 eval enable_$ac_feature=no ;; 755 756 -docdir | --docdir | --docdi | --doc | --do) 757 ac_prev=docdir ;; 758 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 759 docdir=$ac_optarg ;; 760 761 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 762 ac_prev=dvidir ;; 763 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 764 dvidir=$ac_optarg ;; 765 766 -enable-* | --enable-*) 767 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 768 # Reject names that are not valid shell variable names. 769 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 770 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 771 { (exit 1); exit 1; }; } 772 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 773 eval enable_$ac_feature=\$ac_optarg ;; 774 775 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 776 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 777 | --exec | --exe | --ex) 778 ac_prev=exec_prefix ;; 779 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 780 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 781 | --exec=* | --exe=* | --ex=*) 782 exec_prefix=$ac_optarg ;; 783 784 -gas | --gas | --ga | --g) 785 # Obsolete; use --with-gas. 786 with_gas=yes ;; 787 788 -help | --help | --hel | --he | -h) 789 ac_init_help=long ;; 790 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 791 ac_init_help=recursive ;; 792 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 793 ac_init_help=short ;; 794 795 -host | --host | --hos | --ho) 796 ac_prev=host_alias ;; 797 -host=* | --host=* | --hos=* | --ho=*) 798 host_alias=$ac_optarg ;; 799 800 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 801 ac_prev=htmldir ;; 802 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 803 | --ht=*) 804 htmldir=$ac_optarg ;; 805 806 -includedir | --includedir | --includedi | --included | --include \ 807 | --includ | --inclu | --incl | --inc) 808 ac_prev=includedir ;; 809 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 810 | --includ=* | --inclu=* | --incl=* | --inc=*) 811 includedir=$ac_optarg ;; 812 813 -infodir | --infodir | --infodi | --infod | --info | --inf) 814 ac_prev=infodir ;; 815 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 816 infodir=$ac_optarg ;; 817 818 -libdir | --libdir | --libdi | --libd) 819 ac_prev=libdir ;; 820 -libdir=* | --libdir=* | --libdi=* | --libd=*) 821 libdir=$ac_optarg ;; 822 823 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 824 | --libexe | --libex | --libe) 825 ac_prev=libexecdir ;; 826 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 827 | --libexe=* | --libex=* | --libe=*) 828 libexecdir=$ac_optarg ;; 829 830 -localedir | --localedir | --localedi | --localed | --locale) 831 ac_prev=localedir ;; 832 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 833 localedir=$ac_optarg ;; 834 835 -localstatedir | --localstatedir | --localstatedi | --localstated \ 836 | --localstate | --localstat | --localsta | --localst | --locals) 837 ac_prev=localstatedir ;; 838 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 839 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 840 localstatedir=$ac_optarg ;; 841 842 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 843 ac_prev=mandir ;; 844 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 845 mandir=$ac_optarg ;; 846 847 -nfp | --nfp | --nf) 848 # Obsolete; use --without-fp. 849 with_fp=no ;; 850 851 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 852 | --no-cr | --no-c | -n) 853 no_create=yes ;; 854 855 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 856 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 857 no_recursion=yes ;; 858 859 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 860 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 861 | --oldin | --oldi | --old | --ol | --o) 862 ac_prev=oldincludedir ;; 863 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 864 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 865 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 866 oldincludedir=$ac_optarg ;; 867 868 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 869 ac_prev=prefix ;; 870 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 871 prefix=$ac_optarg ;; 872 873 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 874 | --program-pre | --program-pr | --program-p) 875 ac_prev=program_prefix ;; 876 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 877 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 878 program_prefix=$ac_optarg ;; 879 880 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 881 | --program-suf | --program-su | --program-s) 882 ac_prev=program_suffix ;; 883 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 884 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 885 program_suffix=$ac_optarg ;; 886 887 -program-transform-name | --program-transform-name \ 888 | --program-transform-nam | --program-transform-na \ 889 | --program-transform-n | --program-transform- \ 890 | --program-transform | --program-transfor \ 891 | --program-transfo | --program-transf \ 892 | --program-trans | --program-tran \ 893 | --progr-tra | --program-tr | --program-t) 894 ac_prev=program_transform_name ;; 895 -program-transform-name=* | --program-transform-name=* \ 896 | --program-transform-nam=* | --program-transform-na=* \ 897 | --program-transform-n=* | --program-transform-=* \ 898 | --program-transform=* | --program-transfor=* \ 899 | --program-transfo=* | --program-transf=* \ 900 | --program-trans=* | --program-tran=* \ 901 | --progr-tra=* | --program-tr=* | --program-t=*) 902 program_transform_name=$ac_optarg ;; 903 904 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 905 ac_prev=pdfdir ;; 906 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 907 pdfdir=$ac_optarg ;; 908 909 -psdir | --psdir | --psdi | --psd | --ps) 910 ac_prev=psdir ;; 911 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 912 psdir=$ac_optarg ;; 913 914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 915 | -silent | --silent | --silen | --sile | --sil) 916 silent=yes ;; 917 918 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 919 ac_prev=sbindir ;; 920 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 921 | --sbi=* | --sb=*) 922 sbindir=$ac_optarg ;; 923 924 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 925 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 926 | --sharedst | --shareds | --shared | --share | --shar \ 927 | --sha | --sh) 928 ac_prev=sharedstatedir ;; 929 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 930 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 931 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 932 | --sha=* | --sh=*) 933 sharedstatedir=$ac_optarg ;; 934 935 -site | --site | --sit) 936 ac_prev=site ;; 937 -site=* | --site=* | --sit=*) 938 site=$ac_optarg ;; 939 940 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 941 ac_prev=srcdir ;; 942 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 943 srcdir=$ac_optarg ;; 944 945 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 946 | --syscon | --sysco | --sysc | --sys | --sy) 947 ac_prev=sysconfdir ;; 948 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 949 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 950 sysconfdir=$ac_optarg ;; 951 952 -target | --target | --targe | --targ | --tar | --ta | --t) 953 ac_prev=target_alias ;; 954 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 955 target_alias=$ac_optarg ;; 956 957 -v | -verbose | --verbose | --verbos | --verbo | --verb) 958 verbose=yes ;; 959 960 -version | --version | --versio | --versi | --vers | -V) 961 ac_init_version=: ;; 962 963 -with-* | --with-*) 964 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 967 { echo "$as_me: error: invalid package name: $ac_package" >&2 968 { (exit 1); exit 1; }; } 969 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 970 eval with_$ac_package=\$ac_optarg ;; 971 972 -without-* | --without-*) 973 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 976 { echo "$as_me: error: invalid package name: $ac_package" >&2 977 { (exit 1); exit 1; }; } 978 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 979 eval with_$ac_package=no ;; 980 981 --x) 982 # Obsolete; use --with-x. 983 with_x=yes ;; 984 985 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 986 | --x-incl | --x-inc | --x-in | --x-i) 987 ac_prev=x_includes ;; 988 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 989 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 990 x_includes=$ac_optarg ;; 991 992 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 993 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 994 ac_prev=x_libraries ;; 995 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 996 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 997 x_libraries=$ac_optarg ;; 998 999 -*) { echo "$as_me: error: unrecognized option: $ac_option 1000Try \`$0 --help' for more information." >&2 1001 { (exit 1); exit 1; }; } 1002 ;; 1003 1004 *=*) 1005 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1008 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1009 { (exit 1); exit 1; }; } 1010 eval $ac_envvar=\$ac_optarg 1011 export $ac_envvar ;; 1012 1013 *) 1014 # FIXME: should be removed in autoconf 3.0. 1015 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1016 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1017 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1018 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1019 ;; 1020 1021 esac 1022done 1023 1024if test -n "$ac_prev"; then 1025 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1026 { echo "$as_me: error: missing argument to $ac_option" >&2 1027 { (exit 1); exit 1; }; } 1028fi 1029 1030# Be sure to have absolute directory names. 1031for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1032 datadir sysconfdir sharedstatedir localstatedir includedir \ 1033 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1034 libdir localedir mandir 1035do 1036 eval ac_val=\$$ac_var 1037 case $ac_val in 1038 [\\/$]* | ?:[\\/]* ) continue;; 1039 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1040 esac 1041 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1042 { (exit 1); exit 1; }; } 1043done 1044 1045# There might be people who depend on the old broken behavior: `$host' 1046# used to hold the argument of --host etc. 1047# FIXME: To remove some day. 1048build=$build_alias 1049host=$host_alias 1050target=$target_alias 1051 1052# FIXME: To remove some day. 1053if test "x$host_alias" != x; then 1054 if test "x$build_alias" = x; then 1055 cross_compiling=maybe 1056 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1057 If a cross compiler is detected then cross compile mode will be used." >&2 1058 elif test "x$build_alias" != "x$host_alias"; then 1059 cross_compiling=yes 1060 fi 1061fi 1062 1063ac_tool_prefix= 1064test -n "$host_alias" && ac_tool_prefix=$host_alias- 1065 1066test "$silent" = yes && exec 6>/dev/null 1067 1068 1069ac_pwd=`pwd` && test -n "$ac_pwd" && 1070ac_ls_di=`ls -di .` && 1071ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1072 { echo "$as_me: error: Working directory cannot be determined" >&2 1073 { (exit 1); exit 1; }; } 1074test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1075 { echo "$as_me: error: pwd does not report name of working directory" >&2 1076 { (exit 1); exit 1; }; } 1077 1078 1079# Find the source files, if location was not specified. 1080if test -z "$srcdir"; then 1081 ac_srcdir_defaulted=yes 1082 # Try the directory containing this script, then the parent directory. 1083 ac_confdir=`$as_dirname -- "$0" || 1084$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1085 X"$0" : 'X\(//\)[^/]' \| \ 1086 X"$0" : 'X\(//\)$' \| \ 1087 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1088echo X"$0" | 1089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1090 s//\1/ 1091 q 1092 } 1093 /^X\(\/\/\)[^/].*/{ 1094 s//\1/ 1095 q 1096 } 1097 /^X\(\/\/\)$/{ 1098 s//\1/ 1099 q 1100 } 1101 /^X\(\/\).*/{ 1102 s//\1/ 1103 q 1104 } 1105 s/.*/./; q'` 1106 srcdir=$ac_confdir 1107 if test ! -r "$srcdir/$ac_unique_file"; then 1108 srcdir=.. 1109 fi 1110else 1111 ac_srcdir_defaulted=no 1112fi 1113if test ! -r "$srcdir/$ac_unique_file"; then 1114 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1115 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1116 { (exit 1); exit 1; }; } 1117fi 1118ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1119ac_abs_confdir=`( 1120 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1121 { (exit 1); exit 1; }; } 1122 pwd)` 1123# When building in place, set srcdir=. 1124if test "$ac_abs_confdir" = "$ac_pwd"; then 1125 srcdir=. 1126fi 1127# Remove unnecessary trailing slashes from srcdir. 1128# Double slashes in file names in object file debugging info 1129# mess up M-x gdb in Emacs. 1130case $srcdir in 1131*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1132esac 1133for ac_var in $ac_precious_vars; do 1134 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1135 eval ac_env_${ac_var}_value=\$${ac_var} 1136 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1137 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1138done 1139 1140# 1141# Report the --help message. 1142# 1143if test "$ac_init_help" = "long"; then 1144 # Omit some internal or obsolete options to make the list less imposing. 1145 # This message is too long to be a string in the A/UX 3.1 sh. 1146 cat <<_ACEOF 1147\`configure' configures this package to adapt to many kinds of systems. 1148 1149Usage: $0 [OPTION]... [VAR=VALUE]... 1150 1151To assign environment variables (e.g., CC, CFLAGS...), specify them as 1152VAR=VALUE. See below for descriptions of some of the useful variables. 1153 1154Defaults for the options are specified in brackets. 1155 1156Configuration: 1157 -h, --help display this help and exit 1158 --help=short display options specific to this package 1159 --help=recursive display the short help of all the included packages 1160 -V, --version display version information and exit 1161 -q, --quiet, --silent do not print \`checking...' messages 1162 --cache-file=FILE cache test results in FILE [disabled] 1163 -C, --config-cache alias for \`--cache-file=config.cache' 1164 -n, --no-create do not create output files 1165 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1166 1167Installation directories: 1168 --prefix=PREFIX install architecture-independent files in PREFIX 1169 [$ac_default_prefix] 1170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1171 [PREFIX] 1172 1173By default, \`make install' will install all the files in 1174\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1175an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1176for instance \`--prefix=\$HOME'. 1177 1178For better control, use the options below. 1179 1180Fine tuning of the installation directories: 1181 --bindir=DIR user executables [EPREFIX/bin] 1182 --sbindir=DIR system admin executables [EPREFIX/sbin] 1183 --libexecdir=DIR program executables [EPREFIX/libexec] 1184 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1185 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1186 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1187 --libdir=DIR object code libraries [EPREFIX/lib] 1188 --includedir=DIR C header files [PREFIX/include] 1189 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1190 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1191 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1192 --infodir=DIR info documentation [DATAROOTDIR/info] 1193 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1194 --mandir=DIR man documentation [DATAROOTDIR/man] 1195 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1196 --htmldir=DIR html documentation [DOCDIR] 1197 --dvidir=DIR dvi documentation [DOCDIR] 1198 --pdfdir=DIR pdf documentation [DOCDIR] 1199 --psdir=DIR ps documentation [DOCDIR] 1200_ACEOF 1201 1202 cat <<\_ACEOF 1203 1204X features: 1205 --x-includes=DIR X include files are in DIR 1206 --x-libraries=DIR X library files are in DIR 1207_ACEOF 1208fi 1209 1210if test -n "$ac_init_help"; then 1211 1212 cat <<\_ACEOF 1213 1214Optional Packages: 1215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1217 --with-tcl-include=PATH specify path for tcl.h 1218 --with-tk-include=PATH specify path for tk.h 1219 --with-tcl-lib=PATH specify path for tcllib 1220 --with-tk-lib=PATH specify path for tklib 1221 --with-x use the X Window System 1222 1223Some influential environment variables: 1224 CC C compiler command 1225 CFLAGS C compiler flags 1226 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1227 nonstandard directory <lib dir> 1228 LIBS libraries to pass to the linker, e.g. -l<library> 1229 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1230 you have headers in a nonstandard directory <include dir> 1231 XMKMF Path to xmkmf, Makefile generator for X Window System 1232 CPP C preprocessor 1233 1234Use these variables to override the choices made by `configure' or to help 1235it to find libraries and programs with nonstandard names/locations. 1236 1237_ACEOF 1238ac_status=$? 1239fi 1240 1241if test "$ac_init_help" = "recursive"; then 1242 # If there are subdirs, report their specific --help. 1243 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1244 test -d "$ac_dir" || continue 1245 ac_builddir=. 1246 1247case "$ac_dir" in 1248.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1249*) 1250 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1251 # A ".." for each directory in $ac_dir_suffix. 1252 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1253 case $ac_top_builddir_sub in 1254 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1255 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1256 esac ;; 1257esac 1258ac_abs_top_builddir=$ac_pwd 1259ac_abs_builddir=$ac_pwd$ac_dir_suffix 1260# for backward compatibility: 1261ac_top_builddir=$ac_top_build_prefix 1262 1263case $srcdir in 1264 .) # We are building in place. 1265 ac_srcdir=. 1266 ac_top_srcdir=$ac_top_builddir_sub 1267 ac_abs_top_srcdir=$ac_pwd ;; 1268 [\\/]* | ?:[\\/]* ) # Absolute name. 1269 ac_srcdir=$srcdir$ac_dir_suffix; 1270 ac_top_srcdir=$srcdir 1271 ac_abs_top_srcdir=$srcdir ;; 1272 *) # Relative name. 1273 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1274 ac_top_srcdir=$ac_top_build_prefix$srcdir 1275 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1276esac 1277ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1278 1279 cd "$ac_dir" || { ac_status=$?; continue; } 1280 # Check for guested configure. 1281 if test -f "$ac_srcdir/configure.gnu"; then 1282 echo && 1283 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1284 elif test -f "$ac_srcdir/configure"; then 1285 echo && 1286 $SHELL "$ac_srcdir/configure" --help=recursive 1287 else 1288 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1289 fi || ac_status=$? 1290 cd "$ac_pwd" || { ac_status=$?; break; } 1291 done 1292fi 1293 1294test -n "$ac_init_help" && exit $ac_status 1295if $ac_init_version; then 1296 cat <<\_ACEOF 1297configure 1298generated by GNU Autoconf 2.61 1299 1300Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13012002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1302This configure script is free software; the Free Software Foundation 1303gives unlimited permission to copy, distribute and modify it. 1304_ACEOF 1305 exit 1306fi 1307cat >config.log <<_ACEOF 1308This file contains any messages produced by compilers while 1309running configure, to aid debugging if configure makes a mistake. 1310 1311It was created by $as_me, which was 1312generated by GNU Autoconf 2.61. Invocation command line was 1313 1314 $ $0 $@ 1315 1316_ACEOF 1317exec 5>>config.log 1318{ 1319cat <<_ASUNAME 1320## --------- ## 1321## Platform. ## 1322## --------- ## 1323 1324hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1325uname -m = `(uname -m) 2>/dev/null || echo unknown` 1326uname -r = `(uname -r) 2>/dev/null || echo unknown` 1327uname -s = `(uname -s) 2>/dev/null || echo unknown` 1328uname -v = `(uname -v) 2>/dev/null || echo unknown` 1329 1330/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1331/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1332 1333/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1334/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1335/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1336/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1337/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1338/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1339/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1340 1341_ASUNAME 1342 1343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1344for as_dir in $PATH 1345do 1346 IFS=$as_save_IFS 1347 test -z "$as_dir" && as_dir=. 1348 echo "PATH: $as_dir" 1349done 1350IFS=$as_save_IFS 1351 1352} >&5 1353 1354cat >&5 <<_ACEOF 1355 1356 1357## ----------- ## 1358## Core tests. ## 1359## ----------- ## 1360 1361_ACEOF 1362 1363 1364# Keep a trace of the command line. 1365# Strip out --no-create and --no-recursion so they do not pile up. 1366# Strip out --silent because we don't want to record it for future runs. 1367# Also quote any args containing shell meta-characters. 1368# Make two passes to allow for proper duplicate-argument suppression. 1369ac_configure_args= 1370ac_configure_args0= 1371ac_configure_args1= 1372ac_must_keep_next=false 1373for ac_pass in 1 2 1374do 1375 for ac_arg 1376 do 1377 case $ac_arg in 1378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1380 | -silent | --silent | --silen | --sile | --sil) 1381 continue ;; 1382 *\'*) 1383 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1384 esac 1385 case $ac_pass in 1386 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1387 2) 1388 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1389 if test $ac_must_keep_next = true; then 1390 ac_must_keep_next=false # Got value, back to normal. 1391 else 1392 case $ac_arg in 1393 *=* | --config-cache | -C | -disable-* | --disable-* \ 1394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1396 | -with-* | --with-* | -without-* | --without-* | --x) 1397 case "$ac_configure_args0 " in 1398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1399 esac 1400 ;; 1401 -* ) ac_must_keep_next=true ;; 1402 esac 1403 fi 1404 ac_configure_args="$ac_configure_args '$ac_arg'" 1405 ;; 1406 esac 1407 done 1408done 1409$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1410$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1411 1412# When interrupted or exit'd, cleanup temporary files, and complete 1413# config.log. We remove comments because anyway the quotes in there 1414# would cause problems or look ugly. 1415# WARNING: Use '\'' to represent an apostrophe within the trap. 1416# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1417trap 'exit_status=$? 1418 # Save into config.log some information that might help in debugging. 1419 { 1420 echo 1421 1422 cat <<\_ASBOX 1423## ---------------- ## 1424## Cache variables. ## 1425## ---------------- ## 1426_ASBOX 1427 echo 1428 # The following way of writing the cache mishandles newlines in values, 1429( 1430 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1431 eval ac_val=\$$ac_var 1432 case $ac_val in #( 1433 *${as_nl}*) 1434 case $ac_var in #( 1435 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1436echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1437 esac 1438 case $ac_var in #( 1439 _ | IFS | as_nl) ;; #( 1440 *) $as_unset $ac_var ;; 1441 esac ;; 1442 esac 1443 done 1444 (set) 2>&1 | 1445 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1446 *${as_nl}ac_space=\ *) 1447 sed -n \ 1448 "s/'\''/'\''\\\\'\'''\''/g; 1449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1450 ;; #( 1451 *) 1452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1453 ;; 1454 esac | 1455 sort 1456) 1457 echo 1458 1459 cat <<\_ASBOX 1460## ----------------- ## 1461## Output variables. ## 1462## ----------------- ## 1463_ASBOX 1464 echo 1465 for ac_var in $ac_subst_vars 1466 do 1467 eval ac_val=\$$ac_var 1468 case $ac_val in 1469 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1470 esac 1471 echo "$ac_var='\''$ac_val'\''" 1472 done | sort 1473 echo 1474 1475 if test -n "$ac_subst_files"; then 1476 cat <<\_ASBOX 1477## ------------------- ## 1478## File substitutions. ## 1479## ------------------- ## 1480_ASBOX 1481 echo 1482 for ac_var in $ac_subst_files 1483 do 1484 eval ac_val=\$$ac_var 1485 case $ac_val in 1486 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1487 esac 1488 echo "$ac_var='\''$ac_val'\''" 1489 done | sort 1490 echo 1491 fi 1492 1493 if test -s confdefs.h; then 1494 cat <<\_ASBOX 1495## ----------- ## 1496## confdefs.h. ## 1497## ----------- ## 1498_ASBOX 1499 echo 1500 cat confdefs.h 1501 echo 1502 fi 1503 test "$ac_signal" != 0 && 1504 echo "$as_me: caught signal $ac_signal" 1505 echo "$as_me: exit $exit_status" 1506 } >&5 1507 rm -f core *.core core.conftest.* && 1508 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1509 exit $exit_status 1510' 0 1511for ac_signal in 1 2 13 15; do 1512 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1513done 1514ac_signal=0 1515 1516# confdefs.h avoids OS command line length limits that DEFS can exceed. 1517rm -f -r conftest* confdefs.h 1518 1519# Predefined preprocessor variables. 1520 1521cat >>confdefs.h <<_ACEOF 1522#define PACKAGE_NAME "$PACKAGE_NAME" 1523_ACEOF 1524 1525 1526cat >>confdefs.h <<_ACEOF 1527#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1528_ACEOF 1529 1530 1531cat >>confdefs.h <<_ACEOF 1532#define PACKAGE_VERSION "$PACKAGE_VERSION" 1533_ACEOF 1534 1535 1536cat >>confdefs.h <<_ACEOF 1537#define PACKAGE_STRING "$PACKAGE_STRING" 1538_ACEOF 1539 1540 1541cat >>confdefs.h <<_ACEOF 1542#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1543_ACEOF 1544 1545 1546# Let the site file select an alternate cache file if it wants to. 1547# Prefer explicitly selected file to automatically selected ones. 1548if test -n "$CONFIG_SITE"; then 1549 set x "$CONFIG_SITE" 1550elif test "x$prefix" != xNONE; then 1551 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1552else 1553 set x "$ac_default_prefix/share/config.site" \ 1554 "$ac_default_prefix/etc/config.site" 1555fi 1556shift 1557for ac_site_file 1558do 1559 if test -r "$ac_site_file"; then 1560 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1561echo "$as_me: loading site script $ac_site_file" >&6;} 1562 sed 's/^/| /' "$ac_site_file" >&5 1563 . "$ac_site_file" 1564 fi 1565done 1566 1567if test -r "$cache_file"; then 1568 # Some versions of bash will fail to source /dev/null (special 1569 # files actually), so we avoid doing that. 1570 if test -f "$cache_file"; then 1571 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1572echo "$as_me: loading cache $cache_file" >&6;} 1573 case $cache_file in 1574 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1575 *) . "./$cache_file";; 1576 esac 1577 fi 1578else 1579 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1580echo "$as_me: creating cache $cache_file" >&6;} 1581 >$cache_file 1582fi 1583 1584# Check that the precious variables saved in the cache have kept the same 1585# value. 1586ac_cache_corrupted=false 1587for ac_var in $ac_precious_vars; do 1588 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1589 eval ac_new_set=\$ac_env_${ac_var}_set 1590 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1591 eval ac_new_val=\$ac_env_${ac_var}_value 1592 case $ac_old_set,$ac_new_set in 1593 set,) 1594 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1595echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1596 ac_cache_corrupted=: ;; 1597 ,set) 1598 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1599echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1600 ac_cache_corrupted=: ;; 1601 ,);; 1602 *) 1603 if test "x$ac_old_val" != "x$ac_new_val"; then 1604 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1605echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1606 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1607echo "$as_me: former value: $ac_old_val" >&2;} 1608 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1609echo "$as_me: current value: $ac_new_val" >&2;} 1610 ac_cache_corrupted=: 1611 fi;; 1612 esac 1613 # Pass precious variables to config.status. 1614 if test "$ac_new_set" = set; then 1615 case $ac_new_val in 1616 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1617 *) ac_arg=$ac_var=$ac_new_val ;; 1618 esac 1619 case " $ac_configure_args " in 1620 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1621 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1622 esac 1623 fi 1624done 1625if $ac_cache_corrupted; then 1626 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1627echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1628 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1629echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1630 { (exit 1); exit 1; }; } 1631fi 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649ac_ext=c 1650ac_cpp='$CPP $CPPFLAGS' 1651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1653ac_compiler_gnu=$ac_cv_c_compiler_gnu 1654 1655 1656 1657 1658# Check whether --with-tcl-include was given. 1659if test "${with_tcl_include+set}" = set; then 1660 withval=$with_tcl_include; 1661fi 1662 1663 1664# Check whether --with-tk-include was given. 1665if test "${with_tk_include+set}" = set; then 1666 withval=$with_tk_include; 1667fi 1668 1669 1670# Check whether --with-tcl-lib was given. 1671if test "${with_tcl_lib+set}" = set; then 1672 withval=$with_tcl_lib; 1673fi 1674 1675 1676# Check whether --with-tk-lib was given. 1677if test "${with_tk_lib+set}" = set; then 1678 withval=$with_tk_lib; 1679fi 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689ac_ext=c 1690ac_cpp='$CPP $CPPFLAGS' 1691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1693ac_compiler_gnu=$ac_cv_c_compiler_gnu 1694if test -n "$ac_tool_prefix"; then 1695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1696set dummy ${ac_tool_prefix}gcc; ac_word=$2 1697{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1699if test "${ac_cv_prog_CC+set}" = set; then 1700 echo $ECHO_N "(cached) $ECHO_C" >&6 1701else 1702 if test -n "$CC"; then 1703 ac_cv_prog_CC="$CC" # Let the user override the test. 1704else 1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1706for as_dir in $PATH 1707do 1708 IFS=$as_save_IFS 1709 test -z "$as_dir" && as_dir=. 1710 for ac_exec_ext in '' $ac_executable_extensions; do 1711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1712 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1714 break 2 1715 fi 1716done 1717done 1718IFS=$as_save_IFS 1719 1720fi 1721fi 1722CC=$ac_cv_prog_CC 1723if test -n "$CC"; then 1724 { echo "$as_me:$LINENO: result: $CC" >&5 1725echo "${ECHO_T}$CC" >&6; } 1726else 1727 { echo "$as_me:$LINENO: result: no" >&5 1728echo "${ECHO_T}no" >&6; } 1729fi 1730 1731 1732fi 1733if test -z "$ac_cv_prog_CC"; then 1734 ac_ct_CC=$CC 1735 # Extract the first word of "gcc", so it can be a program name with args. 1736set dummy gcc; ac_word=$2 1737{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1740 echo $ECHO_N "(cached) $ECHO_C" >&6 1741else 1742 if test -n "$ac_ct_CC"; then 1743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1744else 1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1746for as_dir in $PATH 1747do 1748 IFS=$as_save_IFS 1749 test -z "$as_dir" && as_dir=. 1750 for ac_exec_ext in '' $ac_executable_extensions; do 1751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1752 ac_cv_prog_ac_ct_CC="gcc" 1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1754 break 2 1755 fi 1756done 1757done 1758IFS=$as_save_IFS 1759 1760fi 1761fi 1762ac_ct_CC=$ac_cv_prog_ac_ct_CC 1763if test -n "$ac_ct_CC"; then 1764 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1765echo "${ECHO_T}$ac_ct_CC" >&6; } 1766else 1767 { echo "$as_me:$LINENO: result: no" >&5 1768echo "${ECHO_T}no" >&6; } 1769fi 1770 1771 if test "x$ac_ct_CC" = x; then 1772 CC="" 1773 else 1774 case $cross_compiling:$ac_tool_warned in 1775yes:) 1776{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1777whose name does not start with the host triplet. If you think this 1778configuration is useful to you, please write to autoconf@gnu.org." >&5 1779echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1780whose name does not start with the host triplet. If you think this 1781configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1782ac_tool_warned=yes ;; 1783esac 1784 CC=$ac_ct_CC 1785 fi 1786else 1787 CC="$ac_cv_prog_CC" 1788fi 1789 1790if test -z "$CC"; then 1791 if test -n "$ac_tool_prefix"; then 1792 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1793set dummy ${ac_tool_prefix}cc; ac_word=$2 1794{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1796if test "${ac_cv_prog_CC+set}" = set; then 1797 echo $ECHO_N "(cached) $ECHO_C" >&6 1798else 1799 if test -n "$CC"; then 1800 ac_cv_prog_CC="$CC" # Let the user override the test. 1801else 1802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1803for as_dir in $PATH 1804do 1805 IFS=$as_save_IFS 1806 test -z "$as_dir" && as_dir=. 1807 for ac_exec_ext in '' $ac_executable_extensions; do 1808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1809 ac_cv_prog_CC="${ac_tool_prefix}cc" 1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1811 break 2 1812 fi 1813done 1814done 1815IFS=$as_save_IFS 1816 1817fi 1818fi 1819CC=$ac_cv_prog_CC 1820if test -n "$CC"; then 1821 { echo "$as_me:$LINENO: result: $CC" >&5 1822echo "${ECHO_T}$CC" >&6; } 1823else 1824 { echo "$as_me:$LINENO: result: no" >&5 1825echo "${ECHO_T}no" >&6; } 1826fi 1827 1828 1829 fi 1830fi 1831if test -z "$CC"; then 1832 # Extract the first word of "cc", so it can be a program name with args. 1833set dummy cc; ac_word=$2 1834{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1836if test "${ac_cv_prog_CC+set}" = set; then 1837 echo $ECHO_N "(cached) $ECHO_C" >&6 1838else 1839 if test -n "$CC"; then 1840 ac_cv_prog_CC="$CC" # Let the user override the test. 1841else 1842 ac_prog_rejected=no 1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1844for as_dir in $PATH 1845do 1846 IFS=$as_save_IFS 1847 test -z "$as_dir" && as_dir=. 1848 for ac_exec_ext in '' $ac_executable_extensions; do 1849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1850 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1851 ac_prog_rejected=yes 1852 continue 1853 fi 1854 ac_cv_prog_CC="cc" 1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1856 break 2 1857 fi 1858done 1859done 1860IFS=$as_save_IFS 1861 1862if test $ac_prog_rejected = yes; then 1863 # We found a bogon in the path, so make sure we never use it. 1864 set dummy $ac_cv_prog_CC 1865 shift 1866 if test $# != 0; then 1867 # We chose a different compiler from the bogus one. 1868 # However, it has the same basename, so the bogon will be chosen 1869 # first if we set CC to just the basename; use the full file name. 1870 shift 1871 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1872 fi 1873fi 1874fi 1875fi 1876CC=$ac_cv_prog_CC 1877if test -n "$CC"; then 1878 { echo "$as_me:$LINENO: result: $CC" >&5 1879echo "${ECHO_T}$CC" >&6; } 1880else 1881 { echo "$as_me:$LINENO: result: no" >&5 1882echo "${ECHO_T}no" >&6; } 1883fi 1884 1885 1886fi 1887if test -z "$CC"; then 1888 if test -n "$ac_tool_prefix"; then 1889 for ac_prog in cl.exe 1890 do 1891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1892set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1893{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1895if test "${ac_cv_prog_CC+set}" = set; then 1896 echo $ECHO_N "(cached) $ECHO_C" >&6 1897else 1898 if test -n "$CC"; then 1899 ac_cv_prog_CC="$CC" # Let the user override the test. 1900else 1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1902for as_dir in $PATH 1903do 1904 IFS=$as_save_IFS 1905 test -z "$as_dir" && as_dir=. 1906 for ac_exec_ext in '' $ac_executable_extensions; do 1907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1908 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1910 break 2 1911 fi 1912done 1913done 1914IFS=$as_save_IFS 1915 1916fi 1917fi 1918CC=$ac_cv_prog_CC 1919if test -n "$CC"; then 1920 { echo "$as_me:$LINENO: result: $CC" >&5 1921echo "${ECHO_T}$CC" >&6; } 1922else 1923 { echo "$as_me:$LINENO: result: no" >&5 1924echo "${ECHO_T}no" >&6; } 1925fi 1926 1927 1928 test -n "$CC" && break 1929 done 1930fi 1931if test -z "$CC"; then 1932 ac_ct_CC=$CC 1933 for ac_prog in cl.exe 1934do 1935 # Extract the first word of "$ac_prog", so it can be a program name with args. 1936set dummy $ac_prog; ac_word=$2 1937{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1939if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1940 echo $ECHO_N "(cached) $ECHO_C" >&6 1941else 1942 if test -n "$ac_ct_CC"; then 1943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1944else 1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1946for as_dir in $PATH 1947do 1948 IFS=$as_save_IFS 1949 test -z "$as_dir" && as_dir=. 1950 for ac_exec_ext in '' $ac_executable_extensions; do 1951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1952 ac_cv_prog_ac_ct_CC="$ac_prog" 1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1954 break 2 1955 fi 1956done 1957done 1958IFS=$as_save_IFS 1959 1960fi 1961fi 1962ac_ct_CC=$ac_cv_prog_ac_ct_CC 1963if test -n "$ac_ct_CC"; then 1964 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1965echo "${ECHO_T}$ac_ct_CC" >&6; } 1966else 1967 { echo "$as_me:$LINENO: result: no" >&5 1968echo "${ECHO_T}no" >&6; } 1969fi 1970 1971 1972 test -n "$ac_ct_CC" && break 1973done 1974 1975 if test "x$ac_ct_CC" = x; then 1976 CC="" 1977 else 1978 case $cross_compiling:$ac_tool_warned in 1979yes:) 1980{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1981whose name does not start with the host triplet. If you think this 1982configuration is useful to you, please write to autoconf@gnu.org." >&5 1983echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1984whose name does not start with the host triplet. If you think this 1985configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1986ac_tool_warned=yes ;; 1987esac 1988 CC=$ac_ct_CC 1989 fi 1990fi 1991 1992fi 1993 1994 1995test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1996See \`config.log' for more details." >&5 1997echo "$as_me: error: no acceptable C compiler found in \$PATH 1998See \`config.log' for more details." >&2;} 1999 { (exit 1); exit 1; }; } 2000 2001# Provide some information about the compiler. 2002echo "$as_me:$LINENO: checking for C compiler version" >&5 2003ac_compiler=`set X $ac_compile; echo $2` 2004{ (ac_try="$ac_compiler --version >&5" 2005case "(($ac_try" in 2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2007 *) ac_try_echo=$ac_try;; 2008esac 2009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2010 (eval "$ac_compiler --version >&5") 2>&5 2011 ac_status=$? 2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2013 (exit $ac_status); } 2014{ (ac_try="$ac_compiler -v >&5" 2015case "(($ac_try" in 2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2017 *) ac_try_echo=$ac_try;; 2018esac 2019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2020 (eval "$ac_compiler -v >&5") 2>&5 2021 ac_status=$? 2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2023 (exit $ac_status); } 2024{ (ac_try="$ac_compiler -V >&5" 2025case "(($ac_try" in 2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2027 *) ac_try_echo=$ac_try;; 2028esac 2029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2030 (eval "$ac_compiler -V >&5") 2>&5 2031 ac_status=$? 2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2033 (exit $ac_status); } 2034 2035cat >conftest.$ac_ext <<_ACEOF 2036/* confdefs.h. */ 2037_ACEOF 2038cat confdefs.h >>conftest.$ac_ext 2039cat >>conftest.$ac_ext <<_ACEOF 2040/* end confdefs.h. */ 2041 2042int 2043main () 2044{ 2045 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050ac_clean_files_save=$ac_clean_files 2051ac_clean_files="$ac_clean_files a.out a.exe b.out" 2052# Try to create an executable without -o first, disregard a.out. 2053# It will help us diagnose broken compilers, and finding out an intuition 2054# of exeext. 2055{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2056echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2057ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2058# 2059# List of possible output files, starting from the most likely. 2060# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2061# only as a last resort. b.out is created by i960 compilers. 2062ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2063# 2064# The IRIX 6 linker writes into existing files which may not be 2065# executable, retaining their permissions. Remove them first so a 2066# subsequent execution test works. 2067ac_rmfiles= 2068for ac_file in $ac_files 2069do 2070 case $ac_file in 2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2072 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2073 esac 2074done 2075rm -f $ac_rmfiles 2076 2077if { (ac_try="$ac_link_default" 2078case "(($ac_try" in 2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2080 *) ac_try_echo=$ac_try;; 2081esac 2082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2083 (eval "$ac_link_default") 2>&5 2084 ac_status=$? 2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2086 (exit $ac_status); }; then 2087 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2088# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2089# in a Makefile. We should not override ac_cv_exeext if it was cached, 2090# so that the user can short-circuit this test for compilers unknown to 2091# Autoconf. 2092for ac_file in $ac_files '' 2093do 2094 test -f "$ac_file" || continue 2095 case $ac_file in 2096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2097 ;; 2098 [ab].out ) 2099 # We found the default executable, but exeext='' is most 2100 # certainly right. 2101 break;; 2102 *.* ) 2103 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2104 then :; else 2105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2106 fi 2107 # We set ac_cv_exeext here because the later test for it is not 2108 # safe: cross compilers may not add the suffix if given an `-o' 2109 # argument, so we may need to know it at that point already. 2110 # Even if this section looks crufty: it has the advantage of 2111 # actually working. 2112 break;; 2113 * ) 2114 break;; 2115 esac 2116done 2117test "$ac_cv_exeext" = no && ac_cv_exeext= 2118 2119else 2120 ac_file='' 2121fi 2122 2123{ echo "$as_me:$LINENO: result: $ac_file" >&5 2124echo "${ECHO_T}$ac_file" >&6; } 2125if test -z "$ac_file"; then 2126 echo "$as_me: failed program was:" >&5 2127sed 's/^/| /' conftest.$ac_ext >&5 2128 2129{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2130See \`config.log' for more details." >&5 2131echo "$as_me: error: C compiler cannot create executables 2132See \`config.log' for more details." >&2;} 2133 { (exit 77); exit 77; }; } 2134fi 2135 2136ac_exeext=$ac_cv_exeext 2137 2138# Check that the compiler produces executables we can run. If not, either 2139# the compiler is broken, or we cross compile. 2140{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2141echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2142# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2143# If not cross compiling, check that we can run a simple program. 2144if test "$cross_compiling" != yes; then 2145 if { ac_try='./$ac_file' 2146 { (case "(($ac_try" in 2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2148 *) ac_try_echo=$ac_try;; 2149esac 2150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2151 (eval "$ac_try") 2>&5 2152 ac_status=$? 2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2154 (exit $ac_status); }; }; then 2155 cross_compiling=no 2156 else 2157 if test "$cross_compiling" = maybe; then 2158 cross_compiling=yes 2159 else 2160 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2161If you meant to cross compile, use \`--host'. 2162See \`config.log' for more details." >&5 2163echo "$as_me: error: cannot run C compiled programs. 2164If you meant to cross compile, use \`--host'. 2165See \`config.log' for more details." >&2;} 2166 { (exit 1); exit 1; }; } 2167 fi 2168 fi 2169fi 2170{ echo "$as_me:$LINENO: result: yes" >&5 2171echo "${ECHO_T}yes" >&6; } 2172 2173rm -f a.out a.exe conftest$ac_cv_exeext b.out 2174ac_clean_files=$ac_clean_files_save 2175# Check that the compiler produces executables we can run. If not, either 2176# the compiler is broken, or we cross compile. 2177{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2178echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2179{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2180echo "${ECHO_T}$cross_compiling" >&6; } 2181 2182{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2183echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2184if { (ac_try="$ac_link" 2185case "(($ac_try" in 2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2187 *) ac_try_echo=$ac_try;; 2188esac 2189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2190 (eval "$ac_link") 2>&5 2191 ac_status=$? 2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2193 (exit $ac_status); }; then 2194 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2195# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2196# work properly (i.e., refer to `conftest.exe'), while it won't with 2197# `rm'. 2198for ac_file in conftest.exe conftest conftest.*; do 2199 test -f "$ac_file" || continue 2200 case $ac_file in 2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2203 break;; 2204 * ) break;; 2205 esac 2206done 2207else 2208 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2209See \`config.log' for more details." >&5 2210echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2211See \`config.log' for more details." >&2;} 2212 { (exit 1); exit 1; }; } 2213fi 2214 2215rm -f conftest$ac_cv_exeext 2216{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2217echo "${ECHO_T}$ac_cv_exeext" >&6; } 2218 2219rm -f conftest.$ac_ext 2220EXEEXT=$ac_cv_exeext 2221ac_exeext=$EXEEXT 2222{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2223echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2224if test "${ac_cv_objext+set}" = set; then 2225 echo $ECHO_N "(cached) $ECHO_C" >&6 2226else 2227 cat >conftest.$ac_ext <<_ACEOF 2228/* confdefs.h. */ 2229_ACEOF 2230cat confdefs.h >>conftest.$ac_ext 2231cat >>conftest.$ac_ext <<_ACEOF 2232/* end confdefs.h. */ 2233 2234int 2235main () 2236{ 2237 2238 ; 2239 return 0; 2240} 2241_ACEOF 2242rm -f conftest.o conftest.obj 2243if { (ac_try="$ac_compile" 2244case "(($ac_try" in 2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2246 *) ac_try_echo=$ac_try;; 2247esac 2248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2249 (eval "$ac_compile") 2>&5 2250 ac_status=$? 2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2252 (exit $ac_status); }; then 2253 for ac_file in conftest.o conftest.obj conftest.*; do 2254 test -f "$ac_file" || continue; 2255 case $ac_file in 2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2258 break;; 2259 esac 2260done 2261else 2262 echo "$as_me: failed program was:" >&5 2263sed 's/^/| /' conftest.$ac_ext >&5 2264 2265{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2266See \`config.log' for more details." >&5 2267echo "$as_me: error: cannot compute suffix of object files: cannot compile 2268See \`config.log' for more details." >&2;} 2269 { (exit 1); exit 1; }; } 2270fi 2271 2272rm -f conftest.$ac_cv_objext conftest.$ac_ext 2273fi 2274{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2275echo "${ECHO_T}$ac_cv_objext" >&6; } 2276OBJEXT=$ac_cv_objext 2277ac_objext=$OBJEXT 2278{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2279echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2280if test "${ac_cv_c_compiler_gnu+set}" = set; then 2281 echo $ECHO_N "(cached) $ECHO_C" >&6 2282else 2283 cat >conftest.$ac_ext <<_ACEOF 2284/* confdefs.h. */ 2285_ACEOF 2286cat confdefs.h >>conftest.$ac_ext 2287cat >>conftest.$ac_ext <<_ACEOF 2288/* end confdefs.h. */ 2289 2290int 2291main () 2292{ 2293#ifndef __GNUC__ 2294 choke me 2295#endif 2296 2297 ; 2298 return 0; 2299} 2300_ACEOF 2301rm -f conftest.$ac_objext 2302if { (ac_try="$ac_compile" 2303case "(($ac_try" in 2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2305 *) ac_try_echo=$ac_try;; 2306esac 2307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2308 (eval "$ac_compile") 2>conftest.er1 2309 ac_status=$? 2310 grep -v '^ *+' conftest.er1 >conftest.err 2311 rm -f conftest.er1 2312 cat conftest.err >&5 2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2314 (exit $ac_status); } && { 2315 test -z "$ac_c_werror_flag" || 2316 test ! -s conftest.err 2317 } && test -s conftest.$ac_objext; then 2318 ac_compiler_gnu=yes 2319else 2320 echo "$as_me: failed program was:" >&5 2321sed 's/^/| /' conftest.$ac_ext >&5 2322 2323 ac_compiler_gnu=no 2324fi 2325 2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2327ac_cv_c_compiler_gnu=$ac_compiler_gnu 2328 2329fi 2330{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2331echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2332GCC=`test $ac_compiler_gnu = yes && echo yes` 2333ac_test_CFLAGS=${CFLAGS+set} 2334ac_save_CFLAGS=$CFLAGS 2335{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2336echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2337if test "${ac_cv_prog_cc_g+set}" = set; then 2338 echo $ECHO_N "(cached) $ECHO_C" >&6 2339else 2340 ac_save_c_werror_flag=$ac_c_werror_flag 2341 ac_c_werror_flag=yes 2342 ac_cv_prog_cc_g=no 2343 CFLAGS="-g" 2344 cat >conftest.$ac_ext <<_ACEOF 2345/* confdefs.h. */ 2346_ACEOF 2347cat confdefs.h >>conftest.$ac_ext 2348cat >>conftest.$ac_ext <<_ACEOF 2349/* end confdefs.h. */ 2350 2351int 2352main () 2353{ 2354 2355 ; 2356 return 0; 2357} 2358_ACEOF 2359rm -f conftest.$ac_objext 2360if { (ac_try="$ac_compile" 2361case "(($ac_try" in 2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2363 *) ac_try_echo=$ac_try;; 2364esac 2365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2366 (eval "$ac_compile") 2>conftest.er1 2367 ac_status=$? 2368 grep -v '^ *+' conftest.er1 >conftest.err 2369 rm -f conftest.er1 2370 cat conftest.err >&5 2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2372 (exit $ac_status); } && { 2373 test -z "$ac_c_werror_flag" || 2374 test ! -s conftest.err 2375 } && test -s conftest.$ac_objext; then 2376 ac_cv_prog_cc_g=yes 2377else 2378 echo "$as_me: failed program was:" >&5 2379sed 's/^/| /' conftest.$ac_ext >&5 2380 2381 CFLAGS="" 2382 cat >conftest.$ac_ext <<_ACEOF 2383/* confdefs.h. */ 2384_ACEOF 2385cat confdefs.h >>conftest.$ac_ext 2386cat >>conftest.$ac_ext <<_ACEOF 2387/* end confdefs.h. */ 2388 2389int 2390main () 2391{ 2392 2393 ; 2394 return 0; 2395} 2396_ACEOF 2397rm -f conftest.$ac_objext 2398if { (ac_try="$ac_compile" 2399case "(($ac_try" in 2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2401 *) ac_try_echo=$ac_try;; 2402esac 2403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2404 (eval "$ac_compile") 2>conftest.er1 2405 ac_status=$? 2406 grep -v '^ *+' conftest.er1 >conftest.err 2407 rm -f conftest.er1 2408 cat conftest.err >&5 2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2410 (exit $ac_status); } && { 2411 test -z "$ac_c_werror_flag" || 2412 test ! -s conftest.err 2413 } && test -s conftest.$ac_objext; then 2414 : 2415else 2416 echo "$as_me: failed program was:" >&5 2417sed 's/^/| /' conftest.$ac_ext >&5 2418 2419 ac_c_werror_flag=$ac_save_c_werror_flag 2420 CFLAGS="-g" 2421 cat >conftest.$ac_ext <<_ACEOF 2422/* confdefs.h. */ 2423_ACEOF 2424cat confdefs.h >>conftest.$ac_ext 2425cat >>conftest.$ac_ext <<_ACEOF 2426/* end confdefs.h. */ 2427 2428int 2429main () 2430{ 2431 2432 ; 2433 return 0; 2434} 2435_ACEOF 2436rm -f conftest.$ac_objext 2437if { (ac_try="$ac_compile" 2438case "(($ac_try" in 2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2440 *) ac_try_echo=$ac_try;; 2441esac 2442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2443 (eval "$ac_compile") 2>conftest.er1 2444 ac_status=$? 2445 grep -v '^ *+' conftest.er1 >conftest.err 2446 rm -f conftest.er1 2447 cat conftest.err >&5 2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2449 (exit $ac_status); } && { 2450 test -z "$ac_c_werror_flag" || 2451 test ! -s conftest.err 2452 } && test -s conftest.$ac_objext; then 2453 ac_cv_prog_cc_g=yes 2454else 2455 echo "$as_me: failed program was:" >&5 2456sed 's/^/| /' conftest.$ac_ext >&5 2457 2458 2459fi 2460 2461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2462fi 2463 2464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2465fi 2466 2467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2468 ac_c_werror_flag=$ac_save_c_werror_flag 2469fi 2470{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2471echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2472if test "$ac_test_CFLAGS" = set; then 2473 CFLAGS=$ac_save_CFLAGS 2474elif test $ac_cv_prog_cc_g = yes; then 2475 if test "$GCC" = yes; then 2476 CFLAGS="-g -O2" 2477 else 2478 CFLAGS="-g" 2479 fi 2480else 2481 if test "$GCC" = yes; then 2482 CFLAGS="-O2" 2483 else 2484 CFLAGS= 2485 fi 2486fi 2487{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2488echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2489if test "${ac_cv_prog_cc_c89+set}" = set; then 2490 echo $ECHO_N "(cached) $ECHO_C" >&6 2491else 2492 ac_cv_prog_cc_c89=no 2493ac_save_CC=$CC 2494cat >conftest.$ac_ext <<_ACEOF 2495/* confdefs.h. */ 2496_ACEOF 2497cat confdefs.h >>conftest.$ac_ext 2498cat >>conftest.$ac_ext <<_ACEOF 2499/* end confdefs.h. */ 2500#include <stdarg.h> 2501#include <stdio.h> 2502#include <sys/types.h> 2503#include <sys/stat.h> 2504/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2505struct buf { int x; }; 2506FILE * (*rcsopen) (struct buf *, struct stat *, int); 2507static char *e (p, i) 2508 char **p; 2509 int i; 2510{ 2511 return p[i]; 2512} 2513static char *f (char * (*g) (char **, int), char **p, ...) 2514{ 2515 char *s; 2516 va_list v; 2517 va_start (v,p); 2518 s = g (p, va_arg (v,int)); 2519 va_end (v); 2520 return s; 2521} 2522 2523/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2524 function prototypes and stuff, but not '\xHH' hex character constants. 2525 These don't provoke an error unfortunately, instead are silently treated 2526 as 'x'. The following induces an error, until -std is added to get 2527 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2528 array size at least. It's necessary to write '\x00'==0 to get something 2529 that's true only with -std. */ 2530int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2531 2532/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2533 inside strings and character constants. */ 2534#define FOO(x) 'x' 2535int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2536 2537int test (int i, double x); 2538struct s1 {int (*f) (int a);}; 2539struct s2 {int (*f) (double a);}; 2540int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2541int argc; 2542char **argv; 2543int 2544main () 2545{ 2546return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2547 ; 2548 return 0; 2549} 2550_ACEOF 2551for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2552 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2553do 2554 CC="$ac_save_CC $ac_arg" 2555 rm -f conftest.$ac_objext 2556if { (ac_try="$ac_compile" 2557case "(($ac_try" in 2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2559 *) ac_try_echo=$ac_try;; 2560esac 2561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2562 (eval "$ac_compile") 2>conftest.er1 2563 ac_status=$? 2564 grep -v '^ *+' conftest.er1 >conftest.err 2565 rm -f conftest.er1 2566 cat conftest.err >&5 2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2568 (exit $ac_status); } && { 2569 test -z "$ac_c_werror_flag" || 2570 test ! -s conftest.err 2571 } && test -s conftest.$ac_objext; then 2572 ac_cv_prog_cc_c89=$ac_arg 2573else 2574 echo "$as_me: failed program was:" >&5 2575sed 's/^/| /' conftest.$ac_ext >&5 2576 2577 2578fi 2579 2580rm -f core conftest.err conftest.$ac_objext 2581 test "x$ac_cv_prog_cc_c89" != "xno" && break 2582done 2583rm -f conftest.$ac_ext 2584CC=$ac_save_CC 2585 2586fi 2587# AC_CACHE_VAL 2588case "x$ac_cv_prog_cc_c89" in 2589 x) 2590 { echo "$as_me:$LINENO: result: none needed" >&5 2591echo "${ECHO_T}none needed" >&6; } ;; 2592 xno) 2593 { echo "$as_me:$LINENO: result: unsupported" >&5 2594echo "${ECHO_T}unsupported" >&6; } ;; 2595 *) 2596 CC="$CC $ac_cv_prog_cc_c89" 2597 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2598echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2599esac 2600 2601 2602ac_ext=c 2603ac_cpp='$CPP $CPPFLAGS' 2604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2606ac_compiler_gnu=$ac_cv_c_compiler_gnu 2607 2608 2609 2610 2611 2612for ac_func in strsep strdup error 2613do 2614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 2615{ echo "$as_me:$LINENO: checking for $ac_func" >&5 2616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 2617if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 2618 echo $ECHO_N "(cached) $ECHO_C" >&6 2619else 2620 cat >conftest.$ac_ext <<_ACEOF 2621/* confdefs.h. */ 2622_ACEOF 2623cat confdefs.h >>conftest.$ac_ext 2624cat >>conftest.$ac_ext <<_ACEOF 2625/* end confdefs.h. */ 2626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 2627 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2628#define $ac_func innocuous_$ac_func 2629 2630/* System header to define __stub macros and hopefully few prototypes, 2631 which can conflict with char $ac_func (); below. 2632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2633 <limits.h> exists even on freestanding compilers. */ 2634 2635#ifdef __STDC__ 2636# include <limits.h> 2637#else 2638# include <assert.h> 2639#endif 2640 2641#undef $ac_func 2642 2643/* Override any GCC internal prototype to avoid an error. 2644 Use char because int might match the return type of a GCC 2645 builtin and then its argument prototype would still apply. */ 2646#ifdef __cplusplus 2647extern "C" 2648#endif 2649char $ac_func (); 2650/* The GNU C library defines this for functions which it implements 2651 to always fail with ENOSYS. Some functions are actually named 2652 something starting with __ and the normal name is an alias. */ 2653#if defined __stub_$ac_func || defined __stub___$ac_func 2654choke me 2655#endif 2656 2657int 2658main () 2659{ 2660return $ac_func (); 2661 ; 2662 return 0; 2663} 2664_ACEOF 2665rm -f conftest.$ac_objext conftest$ac_exeext 2666if { (ac_try="$ac_link" 2667case "(($ac_try" in 2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2669 *) ac_try_echo=$ac_try;; 2670esac 2671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2672 (eval "$ac_link") 2>conftest.er1 2673 ac_status=$? 2674 grep -v '^ *+' conftest.er1 >conftest.err 2675 rm -f conftest.er1 2676 cat conftest.err >&5 2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2678 (exit $ac_status); } && { 2679 test -z "$ac_c_werror_flag" || 2680 test ! -s conftest.err 2681 } && test -s conftest$ac_exeext && 2682 $as_test_x conftest$ac_exeext; then 2683 eval "$as_ac_var=yes" 2684else 2685 echo "$as_me: failed program was:" >&5 2686sed 's/^/| /' conftest.$ac_ext >&5 2687 2688 eval "$as_ac_var=no" 2689fi 2690 2691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2692 conftest$ac_exeext conftest.$ac_ext 2693fi 2694ac_res=`eval echo '${'$as_ac_var'}'` 2695 { echo "$as_me:$LINENO: result: $ac_res" >&5 2696echo "${ECHO_T}$ac_res" >&6; } 2697if test `eval echo '${'$as_ac_var'}'` = yes; then 2698 cat >>confdefs.h <<_ACEOF 2699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 2700_ACEOF 2701 2702fi 2703done 2704 2705 2706{ echo "$as_me:$LINENO: checking for pcap library" >&5 2707echo $ECHO_N "checking for pcap library... $ECHO_C" >&6; } 2708{ echo "$as_me:$LINENO: result: $ac_cv_pcap_dir" >&5 2709echo "${ECHO_T}$ac_cv_pcap_dir" >&6; } 2710 2711{ echo "$as_me:$LINENO: checking for pcap_dispatch in -lpcap" >&5 2712echo $ECHO_N "checking for pcap_dispatch in -lpcap... $ECHO_C" >&6; } 2713if test "${ac_cv_lib_pcap_pcap_dispatch+set}" = set; then 2714 echo $ECHO_N "(cached) $ECHO_C" >&6 2715else 2716 ac_check_lib_save_LIBS=$LIBS 2717LIBS="-lpcap $LIBS" 2718cat >conftest.$ac_ext <<_ACEOF 2719/* confdefs.h. */ 2720_ACEOF 2721cat confdefs.h >>conftest.$ac_ext 2722cat >>conftest.$ac_ext <<_ACEOF 2723/* end confdefs.h. */ 2724 2725/* Override any GCC internal prototype to avoid an error. 2726 Use char because int might match the return type of a GCC 2727 builtin and then its argument prototype would still apply. */ 2728#ifdef __cplusplus 2729extern "C" 2730#endif 2731char pcap_dispatch (); 2732int 2733main () 2734{ 2735return pcap_dispatch (); 2736 ; 2737 return 0; 2738} 2739_ACEOF 2740rm -f conftest.$ac_objext conftest$ac_exeext 2741if { (ac_try="$ac_link" 2742case "(($ac_try" in 2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2744 *) ac_try_echo=$ac_try;; 2745esac 2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2747 (eval "$ac_link") 2>conftest.er1 2748 ac_status=$? 2749 grep -v '^ *+' conftest.er1 >conftest.err 2750 rm -f conftest.er1 2751 cat conftest.err >&5 2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2753 (exit $ac_status); } && { 2754 test -z "$ac_c_werror_flag" || 2755 test ! -s conftest.err 2756 } && test -s conftest$ac_exeext && 2757 $as_test_x conftest$ac_exeext; then 2758 ac_cv_lib_pcap_pcap_dispatch=yes 2759else 2760 echo "$as_me: failed program was:" >&5 2761sed 's/^/| /' conftest.$ac_ext >&5 2762 2763 ac_cv_lib_pcap_pcap_dispatch=no 2764fi 2765 2766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2767 conftest$ac_exeext conftest.$ac_ext 2768LIBS=$ac_check_lib_save_LIBS 2769fi 2770{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_dispatch" >&5 2771echo "${ECHO_T}$ac_cv_lib_pcap_pcap_dispatch" >&6; } 2772if test $ac_cv_lib_pcap_pcap_dispatch = yes; then 2773 cat >>confdefs.h <<_ACEOF 2774#define HAVE_LIBPCAP 1 2775_ACEOF 2776 2777 LIBS="-lpcap $LIBS" 2778 2779else 2780 2781 echo Fatal: no pcap library found. cannot continue; 2782 echo You need to fetch libpcap-* from ftp.ee.lbl.gov, and compile. 2783 exit 1 2784fi 2785 2786 2787{ echo "$as_me:$LINENO: checking for tcl.h" >&5 2788echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; } 2789if test -f "$with_tcl_include/tcl.h"; then 2790 tclincdir="$with_tcl_include" 2791else 2792 tclincdir=no 2793 for ac_dir in /usr/include /usr/include/tcl* /usr/local/include/tcl* 2794 do 2795 if test -d $ac_dir -a -f $ac_dir/tcl.h; then 2796 tclincdir=$ac_dir 2797 break 2798 fi 2799 done 2800fi 2801{ echo "$as_me:$LINENO: result: $tclincdir/tcl.h" >&5 2802echo "${ECHO_T}$tclincdir/tcl.h" >&6; } 2803if test "$tclincdir" = "no"; then 2804 echo Fatal: can not find tcl.h, use --with-tcl-inc option 2805 exit 1 2806fi 2807 2808{ echo "$as_me:$LINENO: checking for tk.h" >&5 2809echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; } 2810if test -f "$with_tk_include/tk.h"; then 2811 tkincdir="$with_tk_include" 2812else 2813 tkincdir=no 2814 for ac_dir in /usr/include /usr/include/tk* /usr/local/include/tk* \ 2815 /usr/include/tcl* 2816 do 2817 if test -d $ac_dir -a -f $ac_dir/tk.h; then 2818 tkincdir=$ac_dir 2819 break 2820 fi 2821 done 2822fi 2823{ echo "$as_me:$LINENO: result: $tkincdir/tk.h" >&5 2824echo "${ECHO_T}$tkincdir/tk.h" >&6; } 2825if test "$tkincdir" = "no"; then 2826 echo Fatal: can not find tk.h, use --with-tk-inc option 2827 exit 1 2828fi 2829 2830tcllib=none 2831for ac_dir in $with_tcl_lib /usr/local/lib /usr/local/lib/tcl* /usr/lib/ 2832do 2833 for file in `ls $ac_dir/libtcl*.a 2>/dev/null` 2834 do 2835 if test -f $file 2836 then 2837 tcllib=`basename $file .a | sed -e 's/lib//'` 2838 tcllibdir=`dirname $file` 2839 break 2840 fi 2841 done 2842done 2843LIBS="-L$tcllibdir -lm" 2844{ echo "$as_me:$LINENO: checking for tcllib $tcllib" >&5 2845echo $ECHO_N "checking for tcllib $tcllib... $ECHO_C" >&6; } 2846as_ac_Lib=`echo "ac_cv_lib_$tcllib''_Tcl_Init" | $as_tr_sh` 2847{ echo "$as_me:$LINENO: checking for Tcl_Init in -l$tcllib" >&5 2848echo $ECHO_N "checking for Tcl_Init in -l$tcllib... $ECHO_C" >&6; } 2849if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then 2850 echo $ECHO_N "(cached) $ECHO_C" >&6 2851else 2852 ac_check_lib_save_LIBS=$LIBS 2853LIBS="-l$tcllib $LIBS" 2854cat >conftest.$ac_ext <<_ACEOF 2855/* confdefs.h. */ 2856_ACEOF 2857cat confdefs.h >>conftest.$ac_ext 2858cat >>conftest.$ac_ext <<_ACEOF 2859/* end confdefs.h. */ 2860 2861/* Override any GCC internal prototype to avoid an error. 2862 Use char because int might match the return type of a GCC 2863 builtin and then its argument prototype would still apply. */ 2864#ifdef __cplusplus 2865extern "C" 2866#endif 2867char Tcl_Init (); 2868int 2869main () 2870{ 2871return Tcl_Init (); 2872 ; 2873 return 0; 2874} 2875_ACEOF 2876rm -f conftest.$ac_objext conftest$ac_exeext 2877if { (ac_try="$ac_link" 2878case "(($ac_try" in 2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2880 *) ac_try_echo=$ac_try;; 2881esac 2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2883 (eval "$ac_link") 2>conftest.er1 2884 ac_status=$? 2885 grep -v '^ *+' conftest.er1 >conftest.err 2886 rm -f conftest.er1 2887 cat conftest.err >&5 2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2889 (exit $ac_status); } && { 2890 test -z "$ac_c_werror_flag" || 2891 test ! -s conftest.err 2892 } && test -s conftest$ac_exeext && 2893 $as_test_x conftest$ac_exeext; then 2894 eval "$as_ac_Lib=yes" 2895else 2896 echo "$as_me: failed program was:" >&5 2897sed 's/^/| /' conftest.$ac_ext >&5 2898 2899 eval "$as_ac_Lib=no" 2900fi 2901 2902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2903 conftest$ac_exeext conftest.$ac_ext 2904LIBS=$ac_check_lib_save_LIBS 2905fi 2906ac_res=`eval echo '${'$as_ac_Lib'}'` 2907 { echo "$as_me:$LINENO: result: $ac_res" >&5 2908echo "${ECHO_T}$ac_res" >&6; } 2909if test `eval echo '${'$as_ac_Lib'}'` = yes; then 2910 tcllib=$tcllib 2911fi 2912 2913if test "$tcllib" = "none"; then 2914 echo "Fatal: can not find tcllib, use --with-tcl-lib option"; exit 1; 2915fi 2916 2917ac_ext=c 2918ac_cpp='$CPP $CPPFLAGS' 2919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2921ac_compiler_gnu=$ac_cv_c_compiler_gnu 2922{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2923echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 2924# On Suns, sometimes $CPP names a directory. 2925if test -n "$CPP" && test -d "$CPP"; then 2926 CPP= 2927fi 2928if test -z "$CPP"; then 2929 if test "${ac_cv_prog_CPP+set}" = set; then 2930 echo $ECHO_N "(cached) $ECHO_C" >&6 2931else 2932 # Double quotes because CPP needs to be expanded 2933 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2934 do 2935 ac_preproc_ok=false 2936for ac_c_preproc_warn_flag in '' yes 2937do 2938 # Use a header file that comes with gcc, so configuring glibc 2939 # with a fresh cross-compiler works. 2940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2941 # <limits.h> exists even on freestanding compilers. 2942 # On the NeXT, cc -E runs the code through the compiler's parser, 2943 # not just through cpp. "Syntax error" is here to catch this case. 2944 cat >conftest.$ac_ext <<_ACEOF 2945/* confdefs.h. */ 2946_ACEOF 2947cat confdefs.h >>conftest.$ac_ext 2948cat >>conftest.$ac_ext <<_ACEOF 2949/* end confdefs.h. */ 2950#ifdef __STDC__ 2951# include <limits.h> 2952#else 2953# include <assert.h> 2954#endif 2955 Syntax error 2956_ACEOF 2957if { (ac_try="$ac_cpp conftest.$ac_ext" 2958case "(($ac_try" in 2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2960 *) ac_try_echo=$ac_try;; 2961esac 2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2964 ac_status=$? 2965 grep -v '^ *+' conftest.er1 >conftest.err 2966 rm -f conftest.er1 2967 cat conftest.err >&5 2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2969 (exit $ac_status); } >/dev/null && { 2970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2971 test ! -s conftest.err 2972 }; then 2973 : 2974else 2975 echo "$as_me: failed program was:" >&5 2976sed 's/^/| /' conftest.$ac_ext >&5 2977 2978 # Broken: fails on valid input. 2979continue 2980fi 2981 2982rm -f conftest.err conftest.$ac_ext 2983 2984 # OK, works on sane cases. Now check whether nonexistent headers 2985 # can be detected and how. 2986 cat >conftest.$ac_ext <<_ACEOF 2987/* confdefs.h. */ 2988_ACEOF 2989cat confdefs.h >>conftest.$ac_ext 2990cat >>conftest.$ac_ext <<_ACEOF 2991/* end confdefs.h. */ 2992#include <ac_nonexistent.h> 2993_ACEOF 2994if { (ac_try="$ac_cpp conftest.$ac_ext" 2995case "(($ac_try" in 2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2997 *) ac_try_echo=$ac_try;; 2998esac 2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3001 ac_status=$? 3002 grep -v '^ *+' conftest.er1 >conftest.err 3003 rm -f conftest.er1 3004 cat conftest.err >&5 3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); } >/dev/null && { 3007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3008 test ! -s conftest.err 3009 }; then 3010 # Broken: success on invalid input. 3011continue 3012else 3013 echo "$as_me: failed program was:" >&5 3014sed 's/^/| /' conftest.$ac_ext >&5 3015 3016 # Passes both tests. 3017ac_preproc_ok=: 3018break 3019fi 3020 3021rm -f conftest.err conftest.$ac_ext 3022 3023done 3024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3025rm -f conftest.err conftest.$ac_ext 3026if $ac_preproc_ok; then 3027 break 3028fi 3029 3030 done 3031 ac_cv_prog_CPP=$CPP 3032 3033fi 3034 CPP=$ac_cv_prog_CPP 3035else 3036 ac_cv_prog_CPP=$CPP 3037fi 3038{ echo "$as_me:$LINENO: result: $CPP" >&5 3039echo "${ECHO_T}$CPP" >&6; } 3040ac_preproc_ok=false 3041for ac_c_preproc_warn_flag in '' yes 3042do 3043 # Use a header file that comes with gcc, so configuring glibc 3044 # with a fresh cross-compiler works. 3045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3046 # <limits.h> exists even on freestanding compilers. 3047 # On the NeXT, cc -E runs the code through the compiler's parser, 3048 # not just through cpp. "Syntax error" is here to catch this case. 3049 cat >conftest.$ac_ext <<_ACEOF 3050/* confdefs.h. */ 3051_ACEOF 3052cat confdefs.h >>conftest.$ac_ext 3053cat >>conftest.$ac_ext <<_ACEOF 3054/* end confdefs.h. */ 3055#ifdef __STDC__ 3056# include <limits.h> 3057#else 3058# include <assert.h> 3059#endif 3060 Syntax error 3061_ACEOF 3062if { (ac_try="$ac_cpp conftest.$ac_ext" 3063case "(($ac_try" in 3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3065 *) ac_try_echo=$ac_try;; 3066esac 3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3069 ac_status=$? 3070 grep -v '^ *+' conftest.er1 >conftest.err 3071 rm -f conftest.er1 3072 cat conftest.err >&5 3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3074 (exit $ac_status); } >/dev/null && { 3075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3076 test ! -s conftest.err 3077 }; then 3078 : 3079else 3080 echo "$as_me: failed program was:" >&5 3081sed 's/^/| /' conftest.$ac_ext >&5 3082 3083 # Broken: fails on valid input. 3084continue 3085fi 3086 3087rm -f conftest.err conftest.$ac_ext 3088 3089 # OK, works on sane cases. Now check whether nonexistent headers 3090 # can be detected and how. 3091 cat >conftest.$ac_ext <<_ACEOF 3092/* confdefs.h. */ 3093_ACEOF 3094cat confdefs.h >>conftest.$ac_ext 3095cat >>conftest.$ac_ext <<_ACEOF 3096/* end confdefs.h. */ 3097#include <ac_nonexistent.h> 3098_ACEOF 3099if { (ac_try="$ac_cpp conftest.$ac_ext" 3100case "(($ac_try" in 3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3102 *) ac_try_echo=$ac_try;; 3103esac 3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3106 ac_status=$? 3107 grep -v '^ *+' conftest.er1 >conftest.err 3108 rm -f conftest.er1 3109 cat conftest.err >&5 3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3111 (exit $ac_status); } >/dev/null && { 3112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3113 test ! -s conftest.err 3114 }; then 3115 # Broken: success on invalid input. 3116continue 3117else 3118 echo "$as_me: failed program was:" >&5 3119sed 's/^/| /' conftest.$ac_ext >&5 3120 3121 # Passes both tests. 3122ac_preproc_ok=: 3123break 3124fi 3125 3126rm -f conftest.err conftest.$ac_ext 3127 3128done 3129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3130rm -f conftest.err conftest.$ac_ext 3131if $ac_preproc_ok; then 3132 : 3133else 3134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3135See \`config.log' for more details." >&5 3136echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3137See \`config.log' for more details." >&2;} 3138 { (exit 1); exit 1; }; } 3139fi 3140 3141ac_ext=c 3142ac_cpp='$CPP $CPPFLAGS' 3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3145ac_compiler_gnu=$ac_cv_c_compiler_gnu 3146 3147 3148{ echo "$as_me:$LINENO: checking for X" >&5 3149echo $ECHO_N "checking for X... $ECHO_C" >&6; } 3150 3151 3152# Check whether --with-x was given. 3153if test "${with_x+set}" = set; then 3154 withval=$with_x; 3155fi 3156 3157# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 3158if test "x$with_x" = xno; then 3159 # The user explicitly disabled X. 3160 have_x=disabled 3161else 3162 case $x_includes,$x_libraries in #( 3163 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 3164echo "$as_me: error: Cannot use X directory names containing '" >&2;} 3165 { (exit 1); exit 1; }; };; #( 3166 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 3167 echo $ECHO_N "(cached) $ECHO_C" >&6 3168else 3169 # One or both of the vars are not set, and there is no cached value. 3170ac_x_includes=no ac_x_libraries=no 3171rm -f -r conftest.dir 3172if mkdir conftest.dir; then 3173 cd conftest.dir 3174 cat >Imakefile <<'_ACEOF' 3175incroot: 3176 @echo incroot='${INCROOT}' 3177usrlibdir: 3178 @echo usrlibdir='${USRLIBDIR}' 3179libdir: 3180 @echo libdir='${LIBDIR}' 3181_ACEOF 3182 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 3183 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3184 for ac_var in incroot usrlibdir libdir; do 3185 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 3186 done 3187 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 3188 for ac_extension in a so sl; do 3189 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 3190 test -f "$ac_im_libdir/libX11.$ac_extension"; then 3191 ac_im_usrlibdir=$ac_im_libdir; break 3192 fi 3193 done 3194 # Screen out bogus values from the imake configuration. They are 3195 # bogus both because they are the default anyway, and because 3196 # using them would break gcc on systems where it needs fixed includes. 3197 case $ac_im_incroot in 3198 /usr/include) ac_x_includes= ;; 3199 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 3200 esac 3201 case $ac_im_usrlibdir in 3202 /usr/lib | /lib) ;; 3203 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 3204 esac 3205 fi 3206 cd .. 3207 rm -f -r conftest.dir 3208fi 3209 3210# Standard set of common directories for X headers. 3211# Check X11 before X11Rn because it is often a symlink to the current release. 3212ac_x_header_dirs=' 3213/usr/X11/include 3214/usr/X11R6/include 3215/usr/X11R5/include 3216/usr/X11R4/include 3217 3218/usr/include/X11 3219/usr/include/X11R6 3220/usr/include/X11R5 3221/usr/include/X11R4 3222 3223/usr/local/X11/include 3224/usr/local/X11R6/include 3225/usr/local/X11R5/include 3226/usr/local/X11R4/include 3227 3228/usr/local/include/X11 3229/usr/local/include/X11R6 3230/usr/local/include/X11R5 3231/usr/local/include/X11R4 3232 3233/usr/X386/include 3234/usr/x386/include 3235/usr/XFree86/include/X11 3236 3237/usr/include 3238/usr/local/include 3239/usr/unsupported/include 3240/usr/athena/include 3241/usr/local/x11r5/include 3242/usr/lpp/Xamples/include 3243 3244/usr/openwin/include 3245/usr/openwin/share/include' 3246 3247if test "$ac_x_includes" = no; then 3248 # Guess where to find include files, by looking for Xlib.h. 3249 # First, try using that file with no special directory specified. 3250 cat >conftest.$ac_ext <<_ACEOF 3251/* confdefs.h. */ 3252_ACEOF 3253cat confdefs.h >>conftest.$ac_ext 3254cat >>conftest.$ac_ext <<_ACEOF 3255/* end confdefs.h. */ 3256#include <X11/Xlib.h> 3257_ACEOF 3258if { (ac_try="$ac_cpp conftest.$ac_ext" 3259case "(($ac_try" in 3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3261 *) ac_try_echo=$ac_try;; 3262esac 3263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3265 ac_status=$? 3266 grep -v '^ *+' conftest.er1 >conftest.err 3267 rm -f conftest.er1 3268 cat conftest.err >&5 3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3270 (exit $ac_status); } >/dev/null && { 3271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3272 test ! -s conftest.err 3273 }; then 3274 # We can compile using X headers with no special include directory. 3275ac_x_includes= 3276else 3277 echo "$as_me: failed program was:" >&5 3278sed 's/^/| /' conftest.$ac_ext >&5 3279 3280 for ac_dir in $ac_x_header_dirs; do 3281 if test -r "$ac_dir/X11/Xlib.h"; then 3282 ac_x_includes=$ac_dir 3283 break 3284 fi 3285done 3286fi 3287 3288rm -f conftest.err conftest.$ac_ext 3289fi # $ac_x_includes = no 3290 3291if test "$ac_x_libraries" = no; then 3292 # Check for the libraries. 3293 # See if we find them without any special options. 3294 # Don't add to $LIBS permanently. 3295 ac_save_LIBS=$LIBS 3296 LIBS="-lX11 $LIBS" 3297 cat >conftest.$ac_ext <<_ACEOF 3298/* confdefs.h. */ 3299_ACEOF 3300cat confdefs.h >>conftest.$ac_ext 3301cat >>conftest.$ac_ext <<_ACEOF 3302/* end confdefs.h. */ 3303#include <X11/Xlib.h> 3304int 3305main () 3306{ 3307XrmInitialize () 3308 ; 3309 return 0; 3310} 3311_ACEOF 3312rm -f conftest.$ac_objext conftest$ac_exeext 3313if { (ac_try="$ac_link" 3314case "(($ac_try" in 3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3316 *) ac_try_echo=$ac_try;; 3317esac 3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3319 (eval "$ac_link") 2>conftest.er1 3320 ac_status=$? 3321 grep -v '^ *+' conftest.er1 >conftest.err 3322 rm -f conftest.er1 3323 cat conftest.err >&5 3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3325 (exit $ac_status); } && { 3326 test -z "$ac_c_werror_flag" || 3327 test ! -s conftest.err 3328 } && test -s conftest$ac_exeext && 3329 $as_test_x conftest$ac_exeext; then 3330 LIBS=$ac_save_LIBS 3331# We can link X programs with no special library path. 3332ac_x_libraries= 3333else 3334 echo "$as_me: failed program was:" >&5 3335sed 's/^/| /' conftest.$ac_ext >&5 3336 3337 LIBS=$ac_save_LIBS 3338for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 3339do 3340 # Don't even attempt the hair of trying to link an X program! 3341 for ac_extension in a so sl; do 3342 if test -r "$ac_dir/libX11.$ac_extension"; then 3343 ac_x_libraries=$ac_dir 3344 break 2 3345 fi 3346 done 3347done 3348fi 3349 3350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3351 conftest$ac_exeext conftest.$ac_ext 3352fi # $ac_x_libraries = no 3353 3354case $ac_x_includes,$ac_x_libraries in #( 3355 no,* | *,no | *\'*) 3356 # Didn't find X, or a directory has "'" in its name. 3357 ac_cv_have_x="have_x=no";; #( 3358 *) 3359 # Record where we found X for the cache. 3360 ac_cv_have_x="have_x=yes\ 3361 ac_x_includes='$ac_x_includes'\ 3362 ac_x_libraries='$ac_x_libraries'" 3363esac 3364fi 3365;; #( 3366 *) have_x=yes;; 3367 esac 3368 eval "$ac_cv_have_x" 3369fi # $with_x != no 3370 3371if test "$have_x" != yes; then 3372 { echo "$as_me:$LINENO: result: $have_x" >&5 3373echo "${ECHO_T}$have_x" >&6; } 3374 no_x=yes 3375else 3376 # If each of the values was on the command line, it overrides each guess. 3377 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 3378 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 3379 # Update the cache value to reflect the command line values. 3380 ac_cv_have_x="have_x=yes\ 3381 ac_x_includes='$x_includes'\ 3382 ac_x_libraries='$x_libraries'" 3383 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 3384echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 3385fi 3386 3387tklib=none 3388for ac_dir in $with_tk_lib /usr/local/lib /usr/local/lib/tcl* /usr/lib/ 3389do 3390 for file in `ls $ac_dir/libtk*.a 2>/dev/null` 3391 do 3392 if test -f $file 3393 then 3394 tklib=`basename $file .a | sed -e 's/lib//'` 3395 tklibdir=`dirname $file` 3396 break 3397 fi 3398 done 3399done 3400LIBS="-L$tklibdir" 3401{ echo "$as_me:$LINENO: checking for tklib $tklib" >&5 3402echo $ECHO_N "checking for tklib $tklib... $ECHO_C" >&6; } 3403as_ac_Lib=`echo "ac_cv_lib_$tklib''_Tk_Init" | $as_tr_sh` 3404{ echo "$as_me:$LINENO: checking for Tk_Init in -l$tklib" >&5 3405echo $ECHO_N "checking for Tk_Init in -l$tklib... $ECHO_C" >&6; } 3406if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then 3407 echo $ECHO_N "(cached) $ECHO_C" >&6 3408else 3409 ac_check_lib_save_LIBS=$LIBS 3410LIBS="-l$tklib $LIBS" 3411cat >conftest.$ac_ext <<_ACEOF 3412/* confdefs.h. */ 3413_ACEOF 3414cat confdefs.h >>conftest.$ac_ext 3415cat >>conftest.$ac_ext <<_ACEOF 3416/* end confdefs.h. */ 3417 3418/* Override any GCC internal prototype to avoid an error. 3419 Use char because int might match the return type of a GCC 3420 builtin and then its argument prototype would still apply. */ 3421#ifdef __cplusplus 3422extern "C" 3423#endif 3424char Tk_Init (); 3425int 3426main () 3427{ 3428return Tk_Init (); 3429 ; 3430 return 0; 3431} 3432_ACEOF 3433rm -f conftest.$ac_objext conftest$ac_exeext 3434if { (ac_try="$ac_link" 3435case "(($ac_try" in 3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3437 *) ac_try_echo=$ac_try;; 3438esac 3439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3440 (eval "$ac_link") 2>conftest.er1 3441 ac_status=$? 3442 grep -v '^ *+' conftest.er1 >conftest.err 3443 rm -f conftest.er1 3444 cat conftest.err >&5 3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3446 (exit $ac_status); } && { 3447 test -z "$ac_c_werror_flag" || 3448 test ! -s conftest.err 3449 } && test -s conftest$ac_exeext && 3450 $as_test_x conftest$ac_exeext; then 3451 eval "$as_ac_Lib=yes" 3452else 3453 echo "$as_me: failed program was:" >&5 3454sed 's/^/| /' conftest.$ac_ext >&5 3455 3456 eval "$as_ac_Lib=no" 3457fi 3458 3459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3460 conftest$ac_exeext conftest.$ac_ext 3461LIBS=$ac_check_lib_save_LIBS 3462fi 3463ac_res=`eval echo '${'$as_ac_Lib'}'` 3464 { echo "$as_me:$LINENO: result: $ac_res" >&5 3465echo "${ECHO_T}$ac_res" >&6; } 3466if test `eval echo '${'$as_ac_Lib'}'` = yes; then 3467 tklib=$tklib 3468fi 3469 3470if test "$tklib" = "none"; then 3471 echo "Fatal: can not find tcllib, use --with-tk-lib option"; exit 1; 3472fi 3473 3474ac_config_files="$ac_config_files Imakefile" 3475 3476cat >confcache <<\_ACEOF 3477# This file is a shell script that caches the results of configure 3478# tests run on this system so they can be shared between configure 3479# scripts and configure runs, see configure's option --config-cache. 3480# It is not useful on other systems. If it contains results you don't 3481# want to keep, you may remove or edit it. 3482# 3483# config.status only pays attention to the cache file if you give it 3484# the --recheck option to rerun configure. 3485# 3486# `ac_cv_env_foo' variables (set or unset) will be overridden when 3487# loading this file, other *unset* `ac_cv_foo' will be assigned the 3488# following values. 3489 3490_ACEOF 3491 3492# The following way of writing the cache mishandles newlines in values, 3493# but we know of no workaround that is simple, portable, and efficient. 3494# So, we kill variables containing newlines. 3495# Ultrix sh set writes to stderr and can't be redirected directly, 3496# and sets the high bit in the cache file unless we assign to the vars. 3497( 3498 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 3499 eval ac_val=\$$ac_var 3500 case $ac_val in #( 3501 *${as_nl}*) 3502 case $ac_var in #( 3503 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 3504echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 3505 esac 3506 case $ac_var in #( 3507 _ | IFS | as_nl) ;; #( 3508 *) $as_unset $ac_var ;; 3509 esac ;; 3510 esac 3511 done 3512 3513 (set) 2>&1 | 3514 case $as_nl`(ac_space=' '; set) 2>&1` in #( 3515 *${as_nl}ac_space=\ *) 3516 # `set' does not quote correctly, so add quotes (double-quote 3517 # substitution turns \\\\ into \\, and sed turns \\ into \). 3518 sed -n \ 3519 "s/'/'\\\\''/g; 3520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3521 ;; #( 3522 *) 3523 # `set' quotes correctly as required by POSIX, so do not add quotes. 3524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3525 ;; 3526 esac | 3527 sort 3528) | 3529 sed ' 3530 /^ac_cv_env_/b end 3531 t clear 3532 :clear 3533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3534 t end 3535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3536 :end' >>confcache 3537if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 3538 if test -w "$cache_file"; then 3539 test "x$cache_file" != "x/dev/null" && 3540 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 3541echo "$as_me: updating cache $cache_file" >&6;} 3542 cat confcache >$cache_file 3543 else 3544 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 3545echo "$as_me: not updating unwritable cache $cache_file" >&6;} 3546 fi 3547fi 3548rm -f confcache 3549 3550test "x$prefix" = xNONE && prefix=$ac_default_prefix 3551# Let make expand exec_prefix. 3552test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3553 3554# Transform confdefs.h into DEFS. 3555# Protect against shell expansion while executing Makefile rules. 3556# Protect against Makefile macro expansion. 3557# 3558# If the first sed substitution is executed (which looks for macros that 3559# take arguments), then branch to the quote section. Otherwise, 3560# look for a macro that doesn't take arguments. 3561ac_script=' 3562t clear 3563:clear 3564s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 3565t quote 3566s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 3567t quote 3568b any 3569:quote 3570s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 3571s/\[/\\&/g 3572s/\]/\\&/g 3573s/\$/$$/g 3574H 3575:any 3576${ 3577 g 3578 s/^\n// 3579 s/\n/ /g 3580 p 3581} 3582' 3583DEFS=`sed -n "$ac_script" confdefs.h` 3584 3585 3586ac_libobjs= 3587ac_ltlibobjs= 3588for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3589 # 1. Remove the extension, and $U if already installed. 3590 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 3591 ac_i=`echo "$ac_i" | sed "$ac_script"` 3592 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 3593 # will be set to the directory where LIBOBJS objects are built. 3594 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 3595 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 3596done 3597LIBOBJS=$ac_libobjs 3598 3599LTLIBOBJS=$ac_ltlibobjs 3600 3601 3602 3603: ${CONFIG_STATUS=./config.status} 3604ac_clean_files_save=$ac_clean_files 3605ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3606{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 3607echo "$as_me: creating $CONFIG_STATUS" >&6;} 3608cat >$CONFIG_STATUS <<_ACEOF 3609#! $SHELL 3610# Generated by $as_me. 3611# Run this file to recreate the current configuration. 3612# Compiler output produced by configure, useful for debugging 3613# configure, is in config.log if it exists. 3614 3615debug=false 3616ac_cs_recheck=false 3617ac_cs_silent=false 3618SHELL=\${CONFIG_SHELL-$SHELL} 3619_ACEOF 3620 3621cat >>$CONFIG_STATUS <<\_ACEOF 3622## --------------------- ## 3623## M4sh Initialization. ## 3624## --------------------- ## 3625 3626# Be more Bourne compatible 3627DUALCASE=1; export DUALCASE # for MKS sh 3628if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 3629 emulate sh 3630 NULLCMD=: 3631 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 3632 # is contrary to our usage. Disable this feature. 3633 alias -g '${1+"$@"}'='"$@"' 3634 setopt NO_GLOB_SUBST 3635else 3636 case `(set -o) 2>/dev/null` in 3637 *posix*) set -o posix ;; 3638esac 3639 3640fi 3641 3642 3643 3644 3645# PATH needs CR 3646# Avoid depending upon Character Ranges. 3647as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3648as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3649as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3650as_cr_digits='0123456789' 3651as_cr_alnum=$as_cr_Letters$as_cr_digits 3652 3653# The user is always right. 3654if test "${PATH_SEPARATOR+set}" != set; then 3655 echo "#! /bin/sh" >conf$$.sh 3656 echo "exit 0" >>conf$$.sh 3657 chmod +x conf$$.sh 3658 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3659 PATH_SEPARATOR=';' 3660 else 3661 PATH_SEPARATOR=: 3662 fi 3663 rm -f conf$$.sh 3664fi 3665 3666# Support unset when possible. 3667if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3668 as_unset=unset 3669else 3670 as_unset=false 3671fi 3672 3673 3674# IFS 3675# We need space, tab and new line, in precisely that order. Quoting is 3676# there to prevent editors from complaining about space-tab. 3677# (If _AS_PATH_WALK were called with IFS unset, it would disable word 3678# splitting by setting IFS to empty value.) 3679as_nl=' 3680' 3681IFS=" "" $as_nl" 3682 3683# Find who we are. Look in the path if we contain no directory separator. 3684case $0 in 3685 *[\\/]* ) as_myself=$0 ;; 3686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3687for as_dir in $PATH 3688do 3689 IFS=$as_save_IFS 3690 test -z "$as_dir" && as_dir=. 3691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3692done 3693IFS=$as_save_IFS 3694 3695 ;; 3696esac 3697# We did not find ourselves, most probably we were run as `sh COMMAND' 3698# in which case we are not to be found in the path. 3699if test "x$as_myself" = x; then 3700 as_myself=$0 3701fi 3702if test ! -f "$as_myself"; then 3703 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 3704 { (exit 1); exit 1; } 3705fi 3706 3707# Work around bugs in pre-3.0 UWIN ksh. 3708for as_var in ENV MAIL MAILPATH 3709do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 3710done 3711PS1='$ ' 3712PS2='> ' 3713PS4='+ ' 3714 3715# NLS nuisances. 3716for as_var in \ 3717 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 3718 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 3719 LC_TELEPHONE LC_TIME 3720do 3721 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 3722 eval $as_var=C; export $as_var 3723 else 3724 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 3725 fi 3726done 3727 3728# Required to use basename. 3729if expr a : '\(a\)' >/dev/null 2>&1 && 3730 test "X`expr 00001 : '.*\(...\)'`" = X001; then 3731 as_expr=expr 3732else 3733 as_expr=false 3734fi 3735 3736if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3737 as_basename=basename 3738else 3739 as_basename=false 3740fi 3741 3742 3743# Name of the executable. 3744as_me=`$as_basename -- "$0" || 3745$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3746 X"$0" : 'X\(//\)$' \| \ 3747 X"$0" : 'X\(/\)' \| . 2>/dev/null || 3748echo X/"$0" | 3749 sed '/^.*\/\([^/][^/]*\)\/*$/{ 3750 s//\1/ 3751 q 3752 } 3753 /^X\/\(\/\/\)$/{ 3754 s//\1/ 3755 q 3756 } 3757 /^X\/\(\/\).*/{ 3758 s//\1/ 3759 q 3760 } 3761 s/.*/./; q'` 3762 3763# CDPATH. 3764$as_unset CDPATH 3765 3766 3767 3768 as_lineno_1=$LINENO 3769 as_lineno_2=$LINENO 3770 test "x$as_lineno_1" != "x$as_lineno_2" && 3771 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 3772 3773 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 3774 # uniformly replaced by the line number. The first 'sed' inserts a 3775 # line-number line after each line using $LINENO; the second 'sed' 3776 # does the real work. The second script uses 'N' to pair each 3777 # line-number line with the line containing $LINENO, and appends 3778 # trailing '-' during substitution so that $LINENO is not a special 3779 # case at line end. 3780 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 3781 # scripts with optimization help from Paolo Bonzini. Blame Lee 3782 # E. McMahon (1931-1989) for sed's syntax. :-) 3783 sed -n ' 3784 p 3785 /[$]LINENO/= 3786 ' <$as_myself | 3787 sed ' 3788 s/[$]LINENO.*/&-/ 3789 t lineno 3790 b 3791 :lineno 3792 N 3793 :loop 3794 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 3795 t loop 3796 s/-\n.*// 3797 ' >$as_me.lineno && 3798 chmod +x "$as_me.lineno" || 3799 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 3800 { (exit 1); exit 1; }; } 3801 3802 # Don't try to exec as it changes $[0], causing all sort of problems 3803 # (the dirname of $[0] is not the place where we might find the 3804 # original and so on. Autoconf is especially sensitive to this). 3805 . "./$as_me.lineno" 3806 # Exit status is that of the last command. 3807 exit 3808} 3809 3810 3811if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 3812 as_dirname=dirname 3813else 3814 as_dirname=false 3815fi 3816 3817ECHO_C= ECHO_N= ECHO_T= 3818case `echo -n x` in 3819-n*) 3820 case `echo 'x\c'` in 3821 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 3822 *) ECHO_C='\c';; 3823 esac;; 3824*) 3825 ECHO_N='-n';; 3826esac 3827 3828if expr a : '\(a\)' >/dev/null 2>&1 && 3829 test "X`expr 00001 : '.*\(...\)'`" = X001; then 3830 as_expr=expr 3831else 3832 as_expr=false 3833fi 3834 3835rm -f conf$$ conf$$.exe conf$$.file 3836if test -d conf$$.dir; then 3837 rm -f conf$$.dir/conf$$.file 3838else 3839 rm -f conf$$.dir 3840 mkdir conf$$.dir 3841fi 3842echo >conf$$.file 3843if ln -s conf$$.file conf$$ 2>/dev/null; then 3844 as_ln_s='ln -s' 3845 # ... but there are two gotchas: 3846 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 3847 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 3848 # In both cases, we have to default to `cp -p'. 3849 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 3850 as_ln_s='cp -p' 3851elif ln conf$$.file conf$$ 2>/dev/null; then 3852 as_ln_s=ln 3853else 3854 as_ln_s='cp -p' 3855fi 3856rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 3857rmdir conf$$.dir 2>/dev/null 3858 3859if mkdir -p . 2>/dev/null; then 3860 as_mkdir_p=: 3861else 3862 test -d ./-p && rmdir ./-p 3863 as_mkdir_p=false 3864fi 3865 3866if test -x / >/dev/null 2>&1; then 3867 as_test_x='test -x' 3868else 3869 if ls -dL / >/dev/null 2>&1; then 3870 as_ls_L_option=L 3871 else 3872 as_ls_L_option= 3873 fi 3874 as_test_x=' 3875 eval sh -c '\'' 3876 if test -d "$1"; then 3877 test -d "$1/."; 3878 else 3879 case $1 in 3880 -*)set "./$1";; 3881 esac; 3882 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 3883 ???[sx]*):;;*)false;;esac;fi 3884 '\'' sh 3885 ' 3886fi 3887as_executable_p=$as_test_x 3888 3889# Sed expression to map a string onto a valid CPP name. 3890as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 3891 3892# Sed expression to map a string onto a valid variable name. 3893as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 3894 3895 3896exec 6>&1 3897 3898# Save the log message, to keep $[0] and so on meaningful, and to 3899# report actual input values of CONFIG_FILES etc. instead of their 3900# values after options handling. 3901ac_log=" 3902This file was extended by $as_me, which was 3903generated by GNU Autoconf 2.61. Invocation command line was 3904 3905 CONFIG_FILES = $CONFIG_FILES 3906 CONFIG_HEADERS = $CONFIG_HEADERS 3907 CONFIG_LINKS = $CONFIG_LINKS 3908 CONFIG_COMMANDS = $CONFIG_COMMANDS 3909 $ $0 $@ 3910 3911on `(hostname || uname -n) 2>/dev/null | sed 1q` 3912" 3913 3914_ACEOF 3915 3916cat >>$CONFIG_STATUS <<_ACEOF 3917# Files that config.status was made for. 3918config_files="$ac_config_files" 3919 3920_ACEOF 3921 3922cat >>$CONFIG_STATUS <<\_ACEOF 3923ac_cs_usage="\ 3924\`$as_me' instantiates files from templates according to the 3925current configuration. 3926 3927Usage: $0 [OPTIONS] [FILE]... 3928 3929 -h, --help print this help, then exit 3930 -V, --version print version number and configuration settings, then exit 3931 -q, --quiet do not print progress messages 3932 -d, --debug don't remove temporary files 3933 --recheck update $as_me by reconfiguring in the same conditions 3934 --file=FILE[:TEMPLATE] 3935 instantiate the configuration file FILE 3936 3937Configuration files: 3938$config_files 3939 3940Report bugs to <bug-autoconf@gnu.org>." 3941 3942_ACEOF 3943cat >>$CONFIG_STATUS <<_ACEOF 3944ac_cs_version="\\ 3945config.status 3946configured by $0, generated by GNU Autoconf 2.61, 3947 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 3948 3949Copyright (C) 2006 Free Software Foundation, Inc. 3950This config.status script is free software; the Free Software Foundation 3951gives unlimited permission to copy, distribute and modify it." 3952 3953ac_pwd='$ac_pwd' 3954srcdir='$srcdir' 3955_ACEOF 3956 3957cat >>$CONFIG_STATUS <<\_ACEOF 3958# If no file are specified by the user, then we need to provide default 3959# value. By we need to know if files were specified by the user. 3960ac_need_defaults=: 3961while test $# != 0 3962do 3963 case $1 in 3964 --*=*) 3965 ac_option=`expr "X$1" : 'X\([^=]*\)='` 3966 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 3967 ac_shift=: 3968 ;; 3969 *) 3970 ac_option=$1 3971 ac_optarg=$2 3972 ac_shift=shift 3973 ;; 3974 esac 3975 3976 case $ac_option in 3977 # Handling of the options. 3978 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3979 ac_cs_recheck=: ;; 3980 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 3981 echo "$ac_cs_version"; exit ;; 3982 --debug | --debu | --deb | --de | --d | -d ) 3983 debug=: ;; 3984 --file | --fil | --fi | --f ) 3985 $ac_shift 3986 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 3987 ac_need_defaults=false;; 3988 --he | --h | --help | --hel | -h ) 3989 echo "$ac_cs_usage"; exit ;; 3990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3991 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3992 ac_cs_silent=: ;; 3993 3994 # This is an error. 3995 -*) { echo "$as_me: error: unrecognized option: $1 3996Try \`$0 --help' for more information." >&2 3997 { (exit 1); exit 1; }; } ;; 3998 3999 *) ac_config_targets="$ac_config_targets $1" 4000 ac_need_defaults=false ;; 4001 4002 esac 4003 shift 4004done 4005 4006ac_configure_extra_args= 4007 4008if $ac_cs_silent; then 4009 exec 6>/dev/null 4010 ac_configure_extra_args="$ac_configure_extra_args --silent" 4011fi 4012 4013_ACEOF 4014cat >>$CONFIG_STATUS <<_ACEOF 4015if \$ac_cs_recheck; then 4016 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 4017 CONFIG_SHELL=$SHELL 4018 export CONFIG_SHELL 4019 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4020fi 4021 4022_ACEOF 4023cat >>$CONFIG_STATUS <<\_ACEOF 4024exec 5>>config.log 4025{ 4026 echo 4027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4028## Running $as_me. ## 4029_ASBOX 4030 echo "$ac_log" 4031} >&5 4032 4033_ACEOF 4034cat >>$CONFIG_STATUS <<_ACEOF 4035_ACEOF 4036 4037cat >>$CONFIG_STATUS <<\_ACEOF 4038 4039# Handling of arguments. 4040for ac_config_target in $ac_config_targets 4041do 4042 case $ac_config_target in 4043 "Imakefile") CONFIG_FILES="$CONFIG_FILES Imakefile" ;; 4044 4045 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 4046echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 4047 { (exit 1); exit 1; }; };; 4048 esac 4049done 4050 4051 4052# If the user did not use the arguments to specify the items to instantiate, 4053# then the envvar interface is used. Set only those that are not. 4054# We use the long form for the default assignment because of an extremely 4055# bizarre bug on SunOS 4.1.3. 4056if $ac_need_defaults; then 4057 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4058fi 4059 4060# Have a temporary directory for convenience. Make it in the build tree 4061# simply because there is no reason against having it here, and in addition, 4062# creating and moving files from /tmp can sometimes cause problems. 4063# Hook for its removal unless debugging. 4064# Note that there is a small window in which the directory will not be cleaned: 4065# after its creation but before its name has been assigned to `$tmp'. 4066$debug || 4067{ 4068 tmp= 4069 trap 'exit_status=$? 4070 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 4071' 0 4072 trap '{ (exit 1); exit 1; }' 1 2 13 15 4073} 4074# Create a (secure) tmp directory for tmp files. 4075 4076{ 4077 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4078 test -n "$tmp" && test -d "$tmp" 4079} || 4080{ 4081 tmp=./conf$$-$RANDOM 4082 (umask 077 && mkdir "$tmp") 4083} || 4084{ 4085 echo "$me: cannot create a temporary directory in ." >&2 4086 { (exit 1); exit 1; } 4087} 4088 4089# 4090# Set up the sed scripts for CONFIG_FILES section. 4091# 4092 4093# No need to generate the scripts if there are no CONFIG_FILES. 4094# This happens for instance when ./config.status config.h 4095if test -n "$CONFIG_FILES"; then 4096 4097_ACEOF 4098 4099 4100 4101ac_delim='%!_!# ' 4102for ac_last_try in false false false false false :; do 4103 cat >conf$$subs.sed <<_ACEOF 4104SHELL!$SHELL$ac_delim 4105PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 4106PACKAGE_NAME!$PACKAGE_NAME$ac_delim 4107PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 4108PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 4109PACKAGE_STRING!$PACKAGE_STRING$ac_delim 4110PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 4111exec_prefix!$exec_prefix$ac_delim 4112prefix!$prefix$ac_delim 4113program_transform_name!$program_transform_name$ac_delim 4114bindir!$bindir$ac_delim 4115sbindir!$sbindir$ac_delim 4116libexecdir!$libexecdir$ac_delim 4117datarootdir!$datarootdir$ac_delim 4118datadir!$datadir$ac_delim 4119sysconfdir!$sysconfdir$ac_delim 4120sharedstatedir!$sharedstatedir$ac_delim 4121localstatedir!$localstatedir$ac_delim 4122includedir!$includedir$ac_delim 4123oldincludedir!$oldincludedir$ac_delim 4124docdir!$docdir$ac_delim 4125infodir!$infodir$ac_delim 4126htmldir!$htmldir$ac_delim 4127dvidir!$dvidir$ac_delim 4128pdfdir!$pdfdir$ac_delim 4129psdir!$psdir$ac_delim 4130libdir!$libdir$ac_delim 4131localedir!$localedir$ac_delim 4132mandir!$mandir$ac_delim 4133DEFS!$DEFS$ac_delim 4134ECHO_C!$ECHO_C$ac_delim 4135ECHO_N!$ECHO_N$ac_delim 4136ECHO_T!$ECHO_T$ac_delim 4137LIBS!$LIBS$ac_delim 4138build_alias!$build_alias$ac_delim 4139host_alias!$host_alias$ac_delim 4140target_alias!$target_alias$ac_delim 4141tclincdir!$tclincdir$ac_delim 4142tkincdir!$tkincdir$ac_delim 4143tcllib!$tcllib$ac_delim 4144tklib!$tklib$ac_delim 4145tcllibdir!$tcllibdir$ac_delim 4146tklibdir!$tklibdir$ac_delim 4147CC!$CC$ac_delim 4148CFLAGS!$CFLAGS$ac_delim 4149LDFLAGS!$LDFLAGS$ac_delim 4150CPPFLAGS!$CPPFLAGS$ac_delim 4151ac_ct_CC!$ac_ct_CC$ac_delim 4152EXEEXT!$EXEEXT$ac_delim 4153OBJEXT!$OBJEXT$ac_delim 4154XMKMF!$XMKMF$ac_delim 4155CPP!$CPP$ac_delim 4156LIBOBJS!$LIBOBJS$ac_delim 4157LTLIBOBJS!$LTLIBOBJS$ac_delim 4158_ACEOF 4159 4160 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then 4161 break 4162 elif $ac_last_try; then 4163 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 4164echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 4165 { (exit 1); exit 1; }; } 4166 else 4167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 4168 fi 4169done 4170 4171ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 4172if test -n "$ac_eof"; then 4173 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 4174 ac_eof=`expr $ac_eof + 1` 4175fi 4176 4177cat >>$CONFIG_STATUS <<_ACEOF 4178cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 4179/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 4180_ACEOF 4181sed ' 4182s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 4183s/^/s,@/; s/!/@,|#_!!_#|/ 4184:n 4185t n 4186s/'"$ac_delim"'$/,g/; t 4187s/$/\\/; p 4188N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 4189' >>$CONFIG_STATUS <conf$$subs.sed 4190rm -f conf$$subs.sed 4191cat >>$CONFIG_STATUS <<_ACEOF 4192:end 4193s/|#_!!_#|//g 4194CEOF$ac_eof 4195_ACEOF 4196 4197 4198# VPATH may cause trouble with some makes, so we remove $(srcdir), 4199# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4200# trailing colons and then remove the whole line if VPATH becomes empty 4201# (actually we leave an empty line to preserve line numbers). 4202if test "x$srcdir" = x.; then 4203 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4204s/:*\$(srcdir):*/:/ 4205s/:*\${srcdir}:*/:/ 4206s/:*@srcdir@:*/:/ 4207s/^\([^=]*=[ ]*\):*/\1/ 4208s/:*$// 4209s/^[^=]*=[ ]*$// 4210}' 4211fi 4212 4213cat >>$CONFIG_STATUS <<\_ACEOF 4214fi # test -n "$CONFIG_FILES" 4215 4216 4217for ac_tag in :F $CONFIG_FILES 4218do 4219 case $ac_tag in 4220 :[FHLC]) ac_mode=$ac_tag; continue;; 4221 esac 4222 case $ac_mode$ac_tag in 4223 :[FHL]*:*);; 4224 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 4225echo "$as_me: error: Invalid tag $ac_tag." >&2;} 4226 { (exit 1); exit 1; }; };; 4227 :[FH]-) ac_tag=-:-;; 4228 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 4229 esac 4230 ac_save_IFS=$IFS 4231 IFS=: 4232 set x $ac_tag 4233 IFS=$ac_save_IFS 4234 shift 4235 ac_file=$1 4236 shift 4237 4238 case $ac_mode in 4239 :L) ac_source=$1;; 4240 :[FH]) 4241 ac_file_inputs= 4242 for ac_f 4243 do 4244 case $ac_f in 4245 -) ac_f="$tmp/stdin";; 4246 *) # Look for the file first in the build tree, then in the source tree 4247 # (if the path is not absolute). The absolute path cannot be DOS-style, 4248 # because $ac_f cannot contain `:'. 4249 test -f "$ac_f" || 4250 case $ac_f in 4251 [\\/$]*) false;; 4252 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 4253 esac || 4254 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 4255echo "$as_me: error: cannot find input file: $ac_f" >&2;} 4256 { (exit 1); exit 1; }; };; 4257 esac 4258 ac_file_inputs="$ac_file_inputs $ac_f" 4259 done 4260 4261 # Let's still pretend it is `configure' which instantiates (i.e., don't 4262 # use $as_me), people would be surprised to read: 4263 # /* config.h. Generated by config.status. */ 4264 configure_input="Generated from "`IFS=: 4265 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 4266 if test x"$ac_file" != x-; then 4267 configure_input="$ac_file. $configure_input" 4268 { echo "$as_me:$LINENO: creating $ac_file" >&5 4269echo "$as_me: creating $ac_file" >&6;} 4270 fi 4271 4272 case $ac_tag in 4273 *:-:* | *:-) cat >"$tmp/stdin";; 4274 esac 4275 ;; 4276 esac 4277 4278 ac_dir=`$as_dirname -- "$ac_file" || 4279$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4280 X"$ac_file" : 'X\(//\)[^/]' \| \ 4281 X"$ac_file" : 'X\(//\)$' \| \ 4282 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 4283echo X"$ac_file" | 4284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4285 s//\1/ 4286 q 4287 } 4288 /^X\(\/\/\)[^/].*/{ 4289 s//\1/ 4290 q 4291 } 4292 /^X\(\/\/\)$/{ 4293 s//\1/ 4294 q 4295 } 4296 /^X\(\/\).*/{ 4297 s//\1/ 4298 q 4299 } 4300 s/.*/./; q'` 4301 { as_dir="$ac_dir" 4302 case $as_dir in #( 4303 -*) as_dir=./$as_dir;; 4304 esac 4305 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 4306 as_dirs= 4307 while :; do 4308 case $as_dir in #( 4309 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 4310 *) as_qdir=$as_dir;; 4311 esac 4312 as_dirs="'$as_qdir' $as_dirs" 4313 as_dir=`$as_dirname -- "$as_dir" || 4314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4315 X"$as_dir" : 'X\(//\)[^/]' \| \ 4316 X"$as_dir" : 'X\(//\)$' \| \ 4317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4318echo X"$as_dir" | 4319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4320 s//\1/ 4321 q 4322 } 4323 /^X\(\/\/\)[^/].*/{ 4324 s//\1/ 4325 q 4326 } 4327 /^X\(\/\/\)$/{ 4328 s//\1/ 4329 q 4330 } 4331 /^X\(\/\).*/{ 4332 s//\1/ 4333 q 4334 } 4335 s/.*/./; q'` 4336 test -d "$as_dir" && break 4337 done 4338 test -z "$as_dirs" || eval "mkdir $as_dirs" 4339 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 4340echo "$as_me: error: cannot create directory $as_dir" >&2;} 4341 { (exit 1); exit 1; }; }; } 4342 ac_builddir=. 4343 4344case "$ac_dir" in 4345.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 4346*) 4347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 4348 # A ".." for each directory in $ac_dir_suffix. 4349 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 4350 case $ac_top_builddir_sub in 4351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 4352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 4353 esac ;; 4354esac 4355ac_abs_top_builddir=$ac_pwd 4356ac_abs_builddir=$ac_pwd$ac_dir_suffix 4357# for backward compatibility: 4358ac_top_builddir=$ac_top_build_prefix 4359 4360case $srcdir in 4361 .) # We are building in place. 4362 ac_srcdir=. 4363 ac_top_srcdir=$ac_top_builddir_sub 4364 ac_abs_top_srcdir=$ac_pwd ;; 4365 [\\/]* | ?:[\\/]* ) # Absolute name. 4366 ac_srcdir=$srcdir$ac_dir_suffix; 4367 ac_top_srcdir=$srcdir 4368 ac_abs_top_srcdir=$srcdir ;; 4369 *) # Relative name. 4370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 4371 ac_top_srcdir=$ac_top_build_prefix$srcdir 4372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 4373esac 4374ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 4375 4376 4377 case $ac_mode in 4378 :F) 4379 # 4380 # CONFIG_FILE 4381 # 4382 4383_ACEOF 4384 4385cat >>$CONFIG_STATUS <<\_ACEOF 4386# If the template does not know about datarootdir, expand it. 4387# FIXME: This hack should be removed a few years after 2.60. 4388ac_datarootdir_hack=; ac_datarootdir_seen= 4389 4390case `sed -n '/datarootdir/ { 4391 p 4392 q 4393} 4394/@datadir@/p 4395/@docdir@/p 4396/@infodir@/p 4397/@localedir@/p 4398/@mandir@/p 4399' $ac_file_inputs` in 4400*datarootdir*) ac_datarootdir_seen=yes;; 4401*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 4402 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 4403echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 4404_ACEOF 4405cat >>$CONFIG_STATUS <<_ACEOF 4406 ac_datarootdir_hack=' 4407 s&@datadir@&$datadir&g 4408 s&@docdir@&$docdir&g 4409 s&@infodir@&$infodir&g 4410 s&@localedir@&$localedir&g 4411 s&@mandir@&$mandir&g 4412 s&\\\${datarootdir}&$datarootdir&g' ;; 4413esac 4414_ACEOF 4415 4416# Neutralize VPATH when `$srcdir' = `.'. 4417# Shell code in configure.ac might set extrasub. 4418# FIXME: do we really want to maintain this feature? 4419cat >>$CONFIG_STATUS <<_ACEOF 4420 sed "$ac_vpsub 4421$extrasub 4422_ACEOF 4423cat >>$CONFIG_STATUS <<\_ACEOF 4424:t 4425/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 4426s&@configure_input@&$configure_input&;t t 4427s&@top_builddir@&$ac_top_builddir_sub&;t t 4428s&@srcdir@&$ac_srcdir&;t t 4429s&@abs_srcdir@&$ac_abs_srcdir&;t t 4430s&@top_srcdir@&$ac_top_srcdir&;t t 4431s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 4432s&@builddir@&$ac_builddir&;t t 4433s&@abs_builddir@&$ac_abs_builddir&;t t 4434s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 4435$ac_datarootdir_hack 4436" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 4437 4438test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 4439 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 4440 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 4441 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4442which seems to be undefined. Please make sure it is defined." >&5 4443echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4444which seems to be undefined. Please make sure it is defined." >&2;} 4445 4446 rm -f "$tmp/stdin" 4447 case $ac_file in 4448 -) cat "$tmp/out"; rm -f "$tmp/out";; 4449 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 4450 esac 4451 ;; 4452 4453 4454 4455 esac 4456 4457done # for ac_tag 4458 4459 4460{ (exit 0); exit 0; } 4461_ACEOF 4462chmod +x $CONFIG_STATUS 4463ac_clean_files=$ac_clean_files_save 4464 4465 4466# configure is writing to config.log, and then calls config.status. 4467# config.status does its own redirection, appending to config.log. 4468# Unfortunately, on DOS this fails, as config.log is still kept open 4469# by configure, so config.status won't be able to write to it; its 4470# output is simply discarded. So we exec the FD to /dev/null, 4471# effectively closing config.log, so it can be properly (re)opened and 4472# appended to by config.status. When coming back to configure, we 4473# need to make the FD available again. 4474if test "$no_create" != yes; then 4475 ac_cs_success=: 4476 ac_config_status_args= 4477 test "$silent" = yes && 4478 ac_config_status_args="$ac_config_status_args --quiet" 4479 exec 5>/dev/null 4480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 4481 exec 5>>config.log 4482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4483 # would make configure fail if this is the last instruction. 4484 $ac_cs_success || { (exit 1); exit 1; } 4485fi 4486 4487xmkmf 4488