1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for pcc 0.9.9. 4# 5# Report bugs to <<pcc-list@ludd.ltu.se>>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554exec 7<&0 </dev/null 6>&1 555 556# Name of the host. 557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 558# so uname gets run too. 559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 560 561# 562# Initializations. 563# 564ac_default_prefix=/usr/local 565ac_clean_files= 566ac_config_libobj_dir=. 567LIBOBJS= 568cross_compiling=no 569subdirs= 570MFLAGS= 571MAKEFLAGS= 572SHELL=${CONFIG_SHELL-/bin/sh} 573 574# Identity of this package. 575PACKAGE_NAME='pcc' 576PACKAGE_TARNAME='pcc' 577PACKAGE_VERSION='0.9.9' 578PACKAGE_STRING='pcc 0.9.9' 579PACKAGE_BUGREPORT='<pcc-list@ludd.ltu.se>' 580 581# Factoring default headers for most tests. 582ac_includes_default="\ 583#include <stdio.h> 584#ifdef HAVE_SYS_TYPES_H 585# include <sys/types.h> 586#endif 587#ifdef HAVE_SYS_STAT_H 588# include <sys/stat.h> 589#endif 590#ifdef STDC_HEADERS 591# include <stdlib.h> 592# include <stddef.h> 593#else 594# ifdef HAVE_STDLIB_H 595# include <stdlib.h> 596# endif 597#endif 598#ifdef HAVE_STRING_H 599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 600# include <memory.h> 601# endif 602# include <string.h> 603#endif 604#ifdef HAVE_STRINGS_H 605# include <strings.h> 606#endif 607#ifdef HAVE_INTTYPES_H 608# include <inttypes.h> 609#endif 610#ifdef HAVE_STDINT_H 611# include <stdint.h> 612#endif 613#ifdef HAVE_UNISTD_H 614# include <unistd.h> 615#endif" 616 617ac_subst_vars='SHELL 618PATH_SEPARATOR 619PACKAGE_NAME 620PACKAGE_TARNAME 621PACKAGE_VERSION 622PACKAGE_STRING 623PACKAGE_BUGREPORT 624exec_prefix 625prefix 626program_transform_name 627bindir 628sbindir 629libexecdir 630datarootdir 631datadir 632sysconfdir 633sharedstatedir 634localstatedir 635includedir 636oldincludedir 637docdir 638infodir 639htmldir 640dvidir 641pdfdir 642psdir 643libdir 644localedir 645mandir 646DEFS 647ECHO_C 648ECHO_N 649ECHO_T 650LIBS 651build_alias 652host_alias 653target_alias 654build 655build_cpu 656build_vendor 657build_os 658host 659host_cpu 660host_vendor 661host_os 662target 663target_cpu 664target_vendor 665target_os 666BINPREFIX 667CC 668CFLAGS 669LDFLAGS 670CPPFLAGS 671ac_ct_CC 672EXEEXT 673OBJEXT 674CC_FOR_BUILD 675CPP 676GREP 677EGREP 678SET_MAKE 679INSTALL_PROGRAM 680INSTALL_SCRIPT 681INSTALL_DATA 682YACC 683YFLAGS 684strip 685LEX 686LEX_OUTPUT_ROOT 687LEXLIB 688targos 689targosver 690targmach 691ADD_CFLAGS 692ADD_CPPFLAGS 693LIBOBJS 694LTLIBOBJS' 695ac_subst_files='' 696 ac_precious_vars='build_alias 697host_alias 698target_alias 699CC 700CFLAGS 701LDFLAGS 702LIBS 703CPPFLAGS 704CPP 705YACC 706YFLAGS' 707 708 709# Initialize some variables set by options. 710ac_init_help= 711ac_init_version=false 712# The variables have the same names as the options, with 713# dashes changed to underlines. 714cache_file=/dev/null 715exec_prefix=NONE 716no_create= 717no_recursion= 718prefix=NONE 719program_prefix=NONE 720program_suffix=NONE 721program_transform_name=s,x,x, 722silent= 723site= 724srcdir= 725verbose= 726x_includes=NONE 727x_libraries=NONE 728 729# Installation directory options. 730# These are left unexpanded so users can "make install exec_prefix=/foo" 731# and all the variables that are supposed to be based on exec_prefix 732# by default will actually change. 733# Use braces instead of parens because sh, perl, etc. also accept them. 734# (The list follows the same order as the GNU Coding Standards.) 735bindir='${exec_prefix}/bin' 736sbindir='${exec_prefix}/sbin' 737libexecdir='${exec_prefix}/libexec' 738datarootdir='${prefix}/share' 739datadir='${datarootdir}' 740sysconfdir='${prefix}/etc' 741sharedstatedir='${prefix}/com' 742localstatedir='${prefix}/var' 743includedir='${prefix}/include' 744oldincludedir='/usr/include' 745docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 746infodir='${datarootdir}/info' 747htmldir='${docdir}' 748dvidir='${docdir}' 749pdfdir='${docdir}' 750psdir='${docdir}' 751libdir='${exec_prefix}/lib' 752localedir='${datarootdir}/locale' 753mandir='${datarootdir}/man' 754 755ac_prev= 756ac_dashdash= 757for ac_option 758do 759 # If the previous option needs an argument, assign it. 760 if test -n "$ac_prev"; then 761 eval $ac_prev=\$ac_option 762 ac_prev= 763 continue 764 fi 765 766 case $ac_option in 767 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 768 *) ac_optarg=yes ;; 769 esac 770 771 # Accept the important Cygnus configure options, so we can diagnose typos. 772 773 case $ac_dashdash$ac_option in 774 --) 775 ac_dashdash=yes ;; 776 777 -bindir | --bindir | --bindi | --bind | --bin | --bi) 778 ac_prev=bindir ;; 779 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 780 bindir=$ac_optarg ;; 781 782 -build | --build | --buil | --bui | --bu) 783 ac_prev=build_alias ;; 784 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 785 build_alias=$ac_optarg ;; 786 787 -cache-file | --cache-file | --cache-fil | --cache-fi \ 788 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 789 ac_prev=cache_file ;; 790 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 791 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 792 cache_file=$ac_optarg ;; 793 794 --config-cache | -C) 795 cache_file=config.cache ;; 796 797 -datadir | --datadir | --datadi | --datad) 798 ac_prev=datadir ;; 799 -datadir=* | --datadir=* | --datadi=* | --datad=*) 800 datadir=$ac_optarg ;; 801 802 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 803 | --dataroo | --dataro | --datar) 804 ac_prev=datarootdir ;; 805 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 806 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 807 datarootdir=$ac_optarg ;; 808 809 -disable-* | --disable-*) 810 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 811 # Reject names that are not valid shell variable names. 812 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 813 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 814 { (exit 1); exit 1; }; } 815 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 816 eval enable_$ac_feature=no ;; 817 818 -docdir | --docdir | --docdi | --doc | --do) 819 ac_prev=docdir ;; 820 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 821 docdir=$ac_optarg ;; 822 823 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 824 ac_prev=dvidir ;; 825 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 826 dvidir=$ac_optarg ;; 827 828 -enable-* | --enable-*) 829 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 830 # Reject names that are not valid shell variable names. 831 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 832 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 833 { (exit 1); exit 1; }; } 834 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 835 eval enable_$ac_feature=\$ac_optarg ;; 836 837 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 838 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 839 | --exec | --exe | --ex) 840 ac_prev=exec_prefix ;; 841 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 842 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 843 | --exec=* | --exe=* | --ex=*) 844 exec_prefix=$ac_optarg ;; 845 846 -gas | --gas | --ga | --g) 847 # Obsolete; use --with-gas. 848 with_gas=yes ;; 849 850 -help | --help | --hel | --he | -h) 851 ac_init_help=long ;; 852 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 853 ac_init_help=recursive ;; 854 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 855 ac_init_help=short ;; 856 857 -host | --host | --hos | --ho) 858 ac_prev=host_alias ;; 859 -host=* | --host=* | --hos=* | --ho=*) 860 host_alias=$ac_optarg ;; 861 862 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 863 ac_prev=htmldir ;; 864 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 865 | --ht=*) 866 htmldir=$ac_optarg ;; 867 868 -includedir | --includedir | --includedi | --included | --include \ 869 | --includ | --inclu | --incl | --inc) 870 ac_prev=includedir ;; 871 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 872 | --includ=* | --inclu=* | --incl=* | --inc=*) 873 includedir=$ac_optarg ;; 874 875 -infodir | --infodir | --infodi | --infod | --info | --inf) 876 ac_prev=infodir ;; 877 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 878 infodir=$ac_optarg ;; 879 880 -libdir | --libdir | --libdi | --libd) 881 ac_prev=libdir ;; 882 -libdir=* | --libdir=* | --libdi=* | --libd=*) 883 libdir=$ac_optarg ;; 884 885 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 886 | --libexe | --libex | --libe) 887 ac_prev=libexecdir ;; 888 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 889 | --libexe=* | --libex=* | --libe=*) 890 libexecdir=$ac_optarg ;; 891 892 -localedir | --localedir | --localedi | --localed | --locale) 893 ac_prev=localedir ;; 894 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 895 localedir=$ac_optarg ;; 896 897 -localstatedir | --localstatedir | --localstatedi | --localstated \ 898 | --localstate | --localstat | --localsta | --localst | --locals) 899 ac_prev=localstatedir ;; 900 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 901 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 902 localstatedir=$ac_optarg ;; 903 904 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 905 ac_prev=mandir ;; 906 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 907 mandir=$ac_optarg ;; 908 909 -nfp | --nfp | --nf) 910 # Obsolete; use --without-fp. 911 with_fp=no ;; 912 913 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 914 | --no-cr | --no-c | -n) 915 no_create=yes ;; 916 917 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 918 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 919 no_recursion=yes ;; 920 921 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 922 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 923 | --oldin | --oldi | --old | --ol | --o) 924 ac_prev=oldincludedir ;; 925 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 926 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 927 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 928 oldincludedir=$ac_optarg ;; 929 930 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 931 ac_prev=prefix ;; 932 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 933 prefix=$ac_optarg ;; 934 935 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 936 | --program-pre | --program-pr | --program-p) 937 ac_prev=program_prefix ;; 938 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 939 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 940 program_prefix=$ac_optarg ;; 941 942 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 943 | --program-suf | --program-su | --program-s) 944 ac_prev=program_suffix ;; 945 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 946 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 947 program_suffix=$ac_optarg ;; 948 949 -program-transform-name | --program-transform-name \ 950 | --program-transform-nam | --program-transform-na \ 951 | --program-transform-n | --program-transform- \ 952 | --program-transform | --program-transfor \ 953 | --program-transfo | --program-transf \ 954 | --program-trans | --program-tran \ 955 | --progr-tra | --program-tr | --program-t) 956 ac_prev=program_transform_name ;; 957 -program-transform-name=* | --program-transform-name=* \ 958 | --program-transform-nam=* | --program-transform-na=* \ 959 | --program-transform-n=* | --program-transform-=* \ 960 | --program-transform=* | --program-transfor=* \ 961 | --program-transfo=* | --program-transf=* \ 962 | --program-trans=* | --program-tran=* \ 963 | --progr-tra=* | --program-tr=* | --program-t=*) 964 program_transform_name=$ac_optarg ;; 965 966 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 967 ac_prev=pdfdir ;; 968 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 969 pdfdir=$ac_optarg ;; 970 971 -psdir | --psdir | --psdi | --psd | --ps) 972 ac_prev=psdir ;; 973 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 974 psdir=$ac_optarg ;; 975 976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 977 | -silent | --silent | --silen | --sile | --sil) 978 silent=yes ;; 979 980 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 981 ac_prev=sbindir ;; 982 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 983 | --sbi=* | --sb=*) 984 sbindir=$ac_optarg ;; 985 986 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 987 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 988 | --sharedst | --shareds | --shared | --share | --shar \ 989 | --sha | --sh) 990 ac_prev=sharedstatedir ;; 991 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 992 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 993 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 994 | --sha=* | --sh=*) 995 sharedstatedir=$ac_optarg ;; 996 997 -site | --site | --sit) 998 ac_prev=site ;; 999 -site=* | --site=* | --sit=*) 1000 site=$ac_optarg ;; 1001 1002 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1003 ac_prev=srcdir ;; 1004 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1005 srcdir=$ac_optarg ;; 1006 1007 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1008 | --syscon | --sysco | --sysc | --sys | --sy) 1009 ac_prev=sysconfdir ;; 1010 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1011 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1012 sysconfdir=$ac_optarg ;; 1013 1014 -target | --target | --targe | --targ | --tar | --ta | --t) 1015 ac_prev=target_alias ;; 1016 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1017 target_alias=$ac_optarg ;; 1018 1019 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1020 verbose=yes ;; 1021 1022 -version | --version | --versio | --versi | --vers | -V) 1023 ac_init_version=: ;; 1024 1025 -with-* | --with-*) 1026 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1027 # Reject names that are not valid shell variable names. 1028 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1029 { echo "$as_me: error: invalid package name: $ac_package" >&2 1030 { (exit 1); exit 1; }; } 1031 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1032 eval with_$ac_package=\$ac_optarg ;; 1033 1034 -without-* | --without-*) 1035 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1036 # Reject names that are not valid shell variable names. 1037 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1038 { echo "$as_me: error: invalid package name: $ac_package" >&2 1039 { (exit 1); exit 1; }; } 1040 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1041 eval with_$ac_package=no ;; 1042 1043 --x) 1044 # Obsolete; use --with-x. 1045 with_x=yes ;; 1046 1047 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1048 | --x-incl | --x-inc | --x-in | --x-i) 1049 ac_prev=x_includes ;; 1050 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1051 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1052 x_includes=$ac_optarg ;; 1053 1054 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1055 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1056 ac_prev=x_libraries ;; 1057 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1058 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1059 x_libraries=$ac_optarg ;; 1060 1061 -*) { echo "$as_me: error: unrecognized option: $ac_option 1062Try \`$0 --help' for more information." >&2 1063 { (exit 1); exit 1; }; } 1064 ;; 1065 1066 *=*) 1067 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1068 # Reject names that are not valid shell variable names. 1069 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1070 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1071 { (exit 1); exit 1; }; } 1072 eval $ac_envvar=\$ac_optarg 1073 export $ac_envvar ;; 1074 1075 *) 1076 # FIXME: should be removed in autoconf 3.0. 1077 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1078 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1079 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1080 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1081 ;; 1082 1083 esac 1084done 1085 1086if test -n "$ac_prev"; then 1087 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1088 { echo "$as_me: error: missing argument to $ac_option" >&2 1089 { (exit 1); exit 1; }; } 1090fi 1091 1092# Be sure to have absolute directory names. 1093for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1094 datadir sysconfdir sharedstatedir localstatedir includedir \ 1095 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1096 libdir localedir mandir 1097do 1098 eval ac_val=\$$ac_var 1099 case $ac_val in 1100 [\\/$]* | ?:[\\/]* ) continue;; 1101 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1102 esac 1103 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1104 { (exit 1); exit 1; }; } 1105done 1106 1107# There might be people who depend on the old broken behavior: `$host' 1108# used to hold the argument of --host etc. 1109# FIXME: To remove some day. 1110build=$build_alias 1111host=$host_alias 1112target=$target_alias 1113 1114# FIXME: To remove some day. 1115if test "x$host_alias" != x; then 1116 if test "x$build_alias" = x; then 1117 cross_compiling=maybe 1118 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1119 If a cross compiler is detected then cross compile mode will be used." >&2 1120 elif test "x$build_alias" != "x$host_alias"; then 1121 cross_compiling=yes 1122 fi 1123fi 1124 1125ac_tool_prefix= 1126test -n "$host_alias" && ac_tool_prefix=$host_alias- 1127 1128test "$silent" = yes && exec 6>/dev/null 1129 1130 1131ac_pwd=`pwd` && test -n "$ac_pwd" && 1132ac_ls_di=`ls -di .` && 1133ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1134 { echo "$as_me: error: Working directory cannot be determined" >&2 1135 { (exit 1); exit 1; }; } 1136test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1137 { echo "$as_me: error: pwd does not report name of working directory" >&2 1138 { (exit 1); exit 1; }; } 1139 1140 1141# Find the source files, if location was not specified. 1142if test -z "$srcdir"; then 1143 ac_srcdir_defaulted=yes 1144 # Try the directory containing this script, then the parent directory. 1145 ac_confdir=`$as_dirname -- "$0" || 1146$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1147 X"$0" : 'X\(//\)[^/]' \| \ 1148 X"$0" : 'X\(//\)$' \| \ 1149 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1150echo X"$0" | 1151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1152 s//\1/ 1153 q 1154 } 1155 /^X\(\/\/\)[^/].*/{ 1156 s//\1/ 1157 q 1158 } 1159 /^X\(\/\/\)$/{ 1160 s//\1/ 1161 q 1162 } 1163 /^X\(\/\).*/{ 1164 s//\1/ 1165 q 1166 } 1167 s/.*/./; q'` 1168 srcdir=$ac_confdir 1169 if test ! -r "$srcdir/$ac_unique_file"; then 1170 srcdir=.. 1171 fi 1172else 1173 ac_srcdir_defaulted=no 1174fi 1175if test ! -r "$srcdir/$ac_unique_file"; then 1176 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1177 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1178 { (exit 1); exit 1; }; } 1179fi 1180ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1181ac_abs_confdir=`( 1182 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1183 { (exit 1); exit 1; }; } 1184 pwd)` 1185# When building in place, set srcdir=. 1186if test "$ac_abs_confdir" = "$ac_pwd"; then 1187 srcdir=. 1188fi 1189# Remove unnecessary trailing slashes from srcdir. 1190# Double slashes in file names in object file debugging info 1191# mess up M-x gdb in Emacs. 1192case $srcdir in 1193*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1194esac 1195for ac_var in $ac_precious_vars; do 1196 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1197 eval ac_env_${ac_var}_value=\$${ac_var} 1198 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1199 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1200done 1201 1202# 1203# Report the --help message. 1204# 1205if test "$ac_init_help" = "long"; then 1206 # Omit some internal or obsolete options to make the list less imposing. 1207 # This message is too long to be a string in the A/UX 3.1 sh. 1208 cat <<_ACEOF 1209\`configure' configures pcc 0.9.9 to adapt to many kinds of systems. 1210 1211Usage: $0 [OPTION]... [VAR=VALUE]... 1212 1213To assign environment variables (e.g., CC, CFLAGS...), specify them as 1214VAR=VALUE. See below for descriptions of some of the useful variables. 1215 1216Defaults for the options are specified in brackets. 1217 1218Configuration: 1219 -h, --help display this help and exit 1220 --help=short display options specific to this package 1221 --help=recursive display the short help of all the included packages 1222 -V, --version display version information and exit 1223 -q, --quiet, --silent do not print \`checking...' messages 1224 --cache-file=FILE cache test results in FILE [disabled] 1225 -C, --config-cache alias for \`--cache-file=config.cache' 1226 -n, --no-create do not create output files 1227 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1228 1229Installation directories: 1230 --prefix=PREFIX install architecture-independent files in PREFIX 1231 [$ac_default_prefix] 1232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1233 [PREFIX] 1234 1235By default, \`make install' will install all the files in 1236\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1237an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1238for instance \`--prefix=\$HOME'. 1239 1240For better control, use the options below. 1241 1242Fine tuning of the installation directories: 1243 --bindir=DIR user executables [EPREFIX/bin] 1244 --sbindir=DIR system admin executables [EPREFIX/sbin] 1245 --libexecdir=DIR program executables [EPREFIX/libexec] 1246 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1247 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1248 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1249 --libdir=DIR object code libraries [EPREFIX/lib] 1250 --includedir=DIR C header files [PREFIX/include] 1251 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1252 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1253 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1254 --infodir=DIR info documentation [DATAROOTDIR/info] 1255 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1256 --mandir=DIR man documentation [DATAROOTDIR/man] 1257 --docdir=DIR documentation root [DATAROOTDIR/doc/pcc] 1258 --htmldir=DIR html documentation [DOCDIR] 1259 --dvidir=DIR dvi documentation [DOCDIR] 1260 --pdfdir=DIR pdf documentation [DOCDIR] 1261 --psdir=DIR ps documentation [DOCDIR] 1262_ACEOF 1263 1264 cat <<\_ACEOF 1265 1266System types: 1267 --build=BUILD configure for building on BUILD [guessed] 1268 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1269 --target=TARGET configure for building compilers for TARGET [HOST] 1270_ACEOF 1271fi 1272 1273if test -n "$ac_init_help"; then 1274 case $ac_init_help in 1275 short | recursive ) echo "Configuration of pcc 0.9.9:";; 1276 esac 1277 cat <<\_ACEOF 1278 1279Optional Features: 1280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1282 --enable-tls Enable Thread-local storage (TLS). 1283 --disable-gcc-compat Disable GCC compatibility 1284 1285Optional Packages: 1286 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1287 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1288 --with-incdir=<path> Specify the default include path. 1289 --with-libdir=<path> Specify the default library path. 1290 --with-assembler=<path> Specify alternate assember. 1291 --with-linker=<path> Specify alternate linker. 1292 1293Some influential environment variables: 1294 CC C compiler command 1295 CFLAGS C compiler flags 1296 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1297 nonstandard directory <lib dir> 1298 LIBS libraries to pass to the linker, e.g. -l<library> 1299 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1300 you have headers in a nonstandard directory <include dir> 1301 CPP C preprocessor 1302 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1303 the first program found out of: `bison -y', `byacc', `yacc'. 1304 YFLAGS The list of arguments that will be passed by default to $YACC. 1305 This script will default YFLAGS to the empty string to avoid a 1306 default value of `-d' given by some make applications. 1307 1308Use these variables to override the choices made by `configure' or to help 1309it to find libraries and programs with nonstandard names/locations. 1310 1311Report bugs to <<pcc-list@ludd.ltu.se>>. 1312_ACEOF 1313ac_status=$? 1314fi 1315 1316if test "$ac_init_help" = "recursive"; then 1317 # If there are subdirs, report their specific --help. 1318 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1319 test -d "$ac_dir" || continue 1320 ac_builddir=. 1321 1322case "$ac_dir" in 1323.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1324*) 1325 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1326 # A ".." for each directory in $ac_dir_suffix. 1327 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1328 case $ac_top_builddir_sub in 1329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1331 esac ;; 1332esac 1333ac_abs_top_builddir=$ac_pwd 1334ac_abs_builddir=$ac_pwd$ac_dir_suffix 1335# for backward compatibility: 1336ac_top_builddir=$ac_top_build_prefix 1337 1338case $srcdir in 1339 .) # We are building in place. 1340 ac_srcdir=. 1341 ac_top_srcdir=$ac_top_builddir_sub 1342 ac_abs_top_srcdir=$ac_pwd ;; 1343 [\\/]* | ?:[\\/]* ) # Absolute name. 1344 ac_srcdir=$srcdir$ac_dir_suffix; 1345 ac_top_srcdir=$srcdir 1346 ac_abs_top_srcdir=$srcdir ;; 1347 *) # Relative name. 1348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1349 ac_top_srcdir=$ac_top_build_prefix$srcdir 1350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1351esac 1352ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1353 1354 cd "$ac_dir" || { ac_status=$?; continue; } 1355 # Check for guested configure. 1356 if test -f "$ac_srcdir/configure.gnu"; then 1357 echo && 1358 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1359 elif test -f "$ac_srcdir/configure"; then 1360 echo && 1361 $SHELL "$ac_srcdir/configure" --help=recursive 1362 else 1363 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1364 fi || ac_status=$? 1365 cd "$ac_pwd" || { ac_status=$?; break; } 1366 done 1367fi 1368 1369test -n "$ac_init_help" && exit $ac_status 1370if $ac_init_version; then 1371 cat <<\_ACEOF 1372pcc configure 0.9.9 1373generated by GNU Autoconf 2.61 1374 1375Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13762002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1377This configure script is free software; the Free Software Foundation 1378gives unlimited permission to copy, distribute and modify it. 1379_ACEOF 1380 exit 1381fi 1382cat >config.log <<_ACEOF 1383This file contains any messages produced by compilers while 1384running configure, to aid debugging if configure makes a mistake. 1385 1386It was created by pcc $as_me 0.9.9, which was 1387generated by GNU Autoconf 2.61. Invocation command line was 1388 1389 $ $0 $@ 1390 1391_ACEOF 1392exec 5>>config.log 1393{ 1394cat <<_ASUNAME 1395## --------- ## 1396## Platform. ## 1397## --------- ## 1398 1399hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1400uname -m = `(uname -m) 2>/dev/null || echo unknown` 1401uname -r = `(uname -r) 2>/dev/null || echo unknown` 1402uname -s = `(uname -s) 2>/dev/null || echo unknown` 1403uname -v = `(uname -v) 2>/dev/null || echo unknown` 1404 1405/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1406/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1407 1408/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1409/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1410/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1411/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1412/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1413/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1414/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1415 1416_ASUNAME 1417 1418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1419for as_dir in $PATH 1420do 1421 IFS=$as_save_IFS 1422 test -z "$as_dir" && as_dir=. 1423 echo "PATH: $as_dir" 1424done 1425IFS=$as_save_IFS 1426 1427} >&5 1428 1429cat >&5 <<_ACEOF 1430 1431 1432## ----------- ## 1433## Core tests. ## 1434## ----------- ## 1435 1436_ACEOF 1437 1438 1439# Keep a trace of the command line. 1440# Strip out --no-create and --no-recursion so they do not pile up. 1441# Strip out --silent because we don't want to record it for future runs. 1442# Also quote any args containing shell meta-characters. 1443# Make two passes to allow for proper duplicate-argument suppression. 1444ac_configure_args= 1445ac_configure_args0= 1446ac_configure_args1= 1447ac_must_keep_next=false 1448for ac_pass in 1 2 1449do 1450 for ac_arg 1451 do 1452 case $ac_arg in 1453 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1455 | -silent | --silent | --silen | --sile | --sil) 1456 continue ;; 1457 *\'*) 1458 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1459 esac 1460 case $ac_pass in 1461 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1462 2) 1463 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1464 if test $ac_must_keep_next = true; then 1465 ac_must_keep_next=false # Got value, back to normal. 1466 else 1467 case $ac_arg in 1468 *=* | --config-cache | -C | -disable-* | --disable-* \ 1469 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1470 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1471 | -with-* | --with-* | -without-* | --without-* | --x) 1472 case "$ac_configure_args0 " in 1473 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1474 esac 1475 ;; 1476 -* ) ac_must_keep_next=true ;; 1477 esac 1478 fi 1479 ac_configure_args="$ac_configure_args '$ac_arg'" 1480 ;; 1481 esac 1482 done 1483done 1484$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1485$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1486 1487# When interrupted or exit'd, cleanup temporary files, and complete 1488# config.log. We remove comments because anyway the quotes in there 1489# would cause problems or look ugly. 1490# WARNING: Use '\'' to represent an apostrophe within the trap. 1491# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1492trap 'exit_status=$? 1493 # Save into config.log some information that might help in debugging. 1494 { 1495 echo 1496 1497 cat <<\_ASBOX 1498## ---------------- ## 1499## Cache variables. ## 1500## ---------------- ## 1501_ASBOX 1502 echo 1503 # The following way of writing the cache mishandles newlines in values, 1504( 1505 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1506 eval ac_val=\$$ac_var 1507 case $ac_val in #( 1508 *${as_nl}*) 1509 case $ac_var in #( 1510 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1511echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1512 esac 1513 case $ac_var in #( 1514 _ | IFS | as_nl) ;; #( 1515 *) $as_unset $ac_var ;; 1516 esac ;; 1517 esac 1518 done 1519 (set) 2>&1 | 1520 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1521 *${as_nl}ac_space=\ *) 1522 sed -n \ 1523 "s/'\''/'\''\\\\'\'''\''/g; 1524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1525 ;; #( 1526 *) 1527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1528 ;; 1529 esac | 1530 sort 1531) 1532 echo 1533 1534 cat <<\_ASBOX 1535## ----------------- ## 1536## Output variables. ## 1537## ----------------- ## 1538_ASBOX 1539 echo 1540 for ac_var in $ac_subst_vars 1541 do 1542 eval ac_val=\$$ac_var 1543 case $ac_val in 1544 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1545 esac 1546 echo "$ac_var='\''$ac_val'\''" 1547 done | sort 1548 echo 1549 1550 if test -n "$ac_subst_files"; then 1551 cat <<\_ASBOX 1552## ------------------- ## 1553## File substitutions. ## 1554## ------------------- ## 1555_ASBOX 1556 echo 1557 for ac_var in $ac_subst_files 1558 do 1559 eval ac_val=\$$ac_var 1560 case $ac_val in 1561 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1562 esac 1563 echo "$ac_var='\''$ac_val'\''" 1564 done | sort 1565 echo 1566 fi 1567 1568 if test -s confdefs.h; then 1569 cat <<\_ASBOX 1570## ----------- ## 1571## confdefs.h. ## 1572## ----------- ## 1573_ASBOX 1574 echo 1575 cat confdefs.h 1576 echo 1577 fi 1578 test "$ac_signal" != 0 && 1579 echo "$as_me: caught signal $ac_signal" 1580 echo "$as_me: exit $exit_status" 1581 } >&5 1582 rm -f core *.core core.conftest.* && 1583 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1584 exit $exit_status 1585' 0 1586for ac_signal in 1 2 13 15; do 1587 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1588done 1589ac_signal=0 1590 1591# confdefs.h avoids OS command line length limits that DEFS can exceed. 1592rm -f -r conftest* confdefs.h 1593 1594# Predefined preprocessor variables. 1595 1596cat >>confdefs.h <<_ACEOF 1597#define PACKAGE_NAME "$PACKAGE_NAME" 1598_ACEOF 1599 1600 1601cat >>confdefs.h <<_ACEOF 1602#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1603_ACEOF 1604 1605 1606cat >>confdefs.h <<_ACEOF 1607#define PACKAGE_VERSION "$PACKAGE_VERSION" 1608_ACEOF 1609 1610 1611cat >>confdefs.h <<_ACEOF 1612#define PACKAGE_STRING "$PACKAGE_STRING" 1613_ACEOF 1614 1615 1616cat >>confdefs.h <<_ACEOF 1617#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1618_ACEOF 1619 1620 1621# Let the site file select an alternate cache file if it wants to. 1622# Prefer explicitly selected file to automatically selected ones. 1623if test -n "$CONFIG_SITE"; then 1624 set x "$CONFIG_SITE" 1625elif test "x$prefix" != xNONE; then 1626 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1627else 1628 set x "$ac_default_prefix/share/config.site" \ 1629 "$ac_default_prefix/etc/config.site" 1630fi 1631shift 1632for ac_site_file 1633do 1634 if test -r "$ac_site_file"; then 1635 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1636echo "$as_me: loading site script $ac_site_file" >&6;} 1637 sed 's/^/| /' "$ac_site_file" >&5 1638 . "$ac_site_file" 1639 fi 1640done 1641 1642if test -r "$cache_file"; then 1643 # Some versions of bash will fail to source /dev/null (special 1644 # files actually), so we avoid doing that. 1645 if test -f "$cache_file"; then 1646 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1647echo "$as_me: loading cache $cache_file" >&6;} 1648 case $cache_file in 1649 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1650 *) . "./$cache_file";; 1651 esac 1652 fi 1653else 1654 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1655echo "$as_me: creating cache $cache_file" >&6;} 1656 >$cache_file 1657fi 1658 1659# Check that the precious variables saved in the cache have kept the same 1660# value. 1661ac_cache_corrupted=false 1662for ac_var in $ac_precious_vars; do 1663 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1664 eval ac_new_set=\$ac_env_${ac_var}_set 1665 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1666 eval ac_new_val=\$ac_env_${ac_var}_value 1667 case $ac_old_set,$ac_new_set in 1668 set,) 1669 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1670echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1671 ac_cache_corrupted=: ;; 1672 ,set) 1673 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1674echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1675 ac_cache_corrupted=: ;; 1676 ,);; 1677 *) 1678 if test "x$ac_old_val" != "x$ac_new_val"; then 1679 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1680echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1681 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1682echo "$as_me: former value: $ac_old_val" >&2;} 1683 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1684echo "$as_me: current value: $ac_new_val" >&2;} 1685 ac_cache_corrupted=: 1686 fi;; 1687 esac 1688 # Pass precious variables to config.status. 1689 if test "$ac_new_set" = set; then 1690 case $ac_new_val in 1691 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1692 *) ac_arg=$ac_var=$ac_new_val ;; 1693 esac 1694 case " $ac_configure_args " in 1695 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1696 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1697 esac 1698 fi 1699done 1700if $ac_cache_corrupted; then 1701 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1702echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1703 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1704echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1705 { (exit 1); exit 1; }; } 1706fi 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732ac_ext=c 1733ac_cpp='$CPP $CPPFLAGS' 1734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1736ac_compiler_gnu=$ac_cv_c_compiler_gnu 1737 1738 1739ac_config_headers="$ac_config_headers config.h" 1740 1741 1742ac_aux_dir= 1743for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1744 if test -f "$ac_dir/install-sh"; then 1745 ac_aux_dir=$ac_dir 1746 ac_install_sh="$ac_aux_dir/install-sh -c" 1747 break 1748 elif test -f "$ac_dir/install.sh"; then 1749 ac_aux_dir=$ac_dir 1750 ac_install_sh="$ac_aux_dir/install.sh -c" 1751 break 1752 elif test -f "$ac_dir/shtool"; then 1753 ac_aux_dir=$ac_dir 1754 ac_install_sh="$ac_aux_dir/shtool install -c" 1755 break 1756 fi 1757done 1758if test -z "$ac_aux_dir"; then 1759 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1760echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1761 { (exit 1); exit 1; }; } 1762fi 1763 1764# These three variables are undocumented and unsupported, 1765# and are intended to be withdrawn in a future Autoconf release. 1766# They can cause serious problems if a builder's source tree is in a directory 1767# whose full name contains unusual characters. 1768ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1769ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1770ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1771 1772 1773# Make sure we can run config.sub. 1774$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1775 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1776echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1777 { (exit 1); exit 1; }; } 1778 1779{ echo "$as_me:$LINENO: checking build system type" >&5 1780echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1781if test "${ac_cv_build+set}" = set; then 1782 echo $ECHO_N "(cached) $ECHO_C" >&6 1783else 1784 ac_build_alias=$build_alias 1785test "x$ac_build_alias" = x && 1786 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1787test "x$ac_build_alias" = x && 1788 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1789echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1790 { (exit 1); exit 1; }; } 1791ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1792 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1793echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1794 { (exit 1); exit 1; }; } 1795 1796fi 1797{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1798echo "${ECHO_T}$ac_cv_build" >&6; } 1799case $ac_cv_build in 1800*-*-*) ;; 1801*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1802echo "$as_me: error: invalid value of canonical build" >&2;} 1803 { (exit 1); exit 1; }; };; 1804esac 1805build=$ac_cv_build 1806ac_save_IFS=$IFS; IFS='-' 1807set x $ac_cv_build 1808shift 1809build_cpu=$1 1810build_vendor=$2 1811shift; shift 1812# Remember, the first character of IFS is used to create $*, 1813# except with old shells: 1814build_os=$* 1815IFS=$ac_save_IFS 1816case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1817 1818 1819{ echo "$as_me:$LINENO: checking host system type" >&5 1820echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1821if test "${ac_cv_host+set}" = set; then 1822 echo $ECHO_N "(cached) $ECHO_C" >&6 1823else 1824 if test "x$host_alias" = x; then 1825 ac_cv_host=$ac_cv_build 1826else 1827 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1828 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1829echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1830 { (exit 1); exit 1; }; } 1831fi 1832 1833fi 1834{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1835echo "${ECHO_T}$ac_cv_host" >&6; } 1836case $ac_cv_host in 1837*-*-*) ;; 1838*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1839echo "$as_me: error: invalid value of canonical host" >&2;} 1840 { (exit 1); exit 1; }; };; 1841esac 1842host=$ac_cv_host 1843ac_save_IFS=$IFS; IFS='-' 1844set x $ac_cv_host 1845shift 1846host_cpu=$1 1847host_vendor=$2 1848shift; shift 1849# Remember, the first character of IFS is used to create $*, 1850# except with old shells: 1851host_os=$* 1852IFS=$ac_save_IFS 1853case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1854 1855 1856{ echo "$as_me:$LINENO: checking target system type" >&5 1857echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 1858if test "${ac_cv_target+set}" = set; then 1859 echo $ECHO_N "(cached) $ECHO_C" >&6 1860else 1861 if test "x$target_alias" = x; then 1862 ac_cv_target=$ac_cv_host 1863else 1864 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 1865 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 1866echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 1867 { (exit 1); exit 1; }; } 1868fi 1869 1870fi 1871{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1872echo "${ECHO_T}$ac_cv_target" >&6; } 1873case $ac_cv_target in 1874*-*-*) ;; 1875*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 1876echo "$as_me: error: invalid value of canonical target" >&2;} 1877 { (exit 1); exit 1; }; };; 1878esac 1879target=$ac_cv_target 1880ac_save_IFS=$IFS; IFS='-' 1881set x $ac_cv_target 1882shift 1883target_cpu=$1 1884target_vendor=$2 1885shift; shift 1886# Remember, the first character of IFS is used to create $*, 1887# except with old shells: 1888target_os=$* 1889IFS=$ac_save_IFS 1890case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 1891 1892 1893# The aliases save the names the user supplied, while $host etc. 1894# will get canonicalized. 1895test -n "$target_alias" && 1896 test "$program_prefix$program_suffix$program_transform_name" = \ 1897 NONENONEs,x,x, && 1898 program_prefix=${target_alias}- 1899 1900abi=unknown 1901endian=little 1902targosver=0 1903tls=no 1904gcccompat=yes 1905wchar_type=UNSIGNED 1906wchar_size=4 1907 1908case "$target_os" in 1909 1910 apple) 1911 targos=apple 1912 abi=classic68k 1913 case "$target_cpu" in 1914 m68k) targmach=m68k endian=big ;; 1915 esac 1916 ;; 1917 1918 bsd) 1919 targos=bsd 1920 abi=aout 1921 targmach=pdp11 1922 ;; 1923 1924 darwin*) 1925 targos=darwin 1926 abi=macho 1927 case "$target_os" in 1928 *9.*) targosver=9 ;; 1929 *8.*) targosver=8 ;; 1930 *7.*) targosver=7 ;; 1931 esac 1932 case "$target_cpu" in 1933 i?86) targmach=i386 ;; 1934 powerpc) targmach=powerpc endian=big ;; 1935 x86_64) targmach=amd64 ;; 1936 esac 1937 ;; 1938 1939 dragonfly*) 1940 targos=dragonfly 1941 abi=elf 1942 tls=yes 1943 case "$target_cpu" in 1944 i?86) targmach=i386 ;; 1945 esac 1946 ;; 1947 1948 freebsd*) 1949 targos=freebsd 1950 abi=elf 1951 case "$target_os" in 1952 *7.*) targosver=7 ;; 1953 *6.*) targosver=6 ;; 1954 *5.*) targosver=5 ;; 1955 *4.*) targosver=4 ;; 1956 esac 1957 case "$target_cpu" in 1958 i386) targmach=i386 ;; 1959 esac 1960 ;; 1961 1962 linux*) 1963 targos=linux 1964 abi=elf 1965 case "$target_cpu" in 1966 i?86) targmach=i386 ;; 1967 powerpc*) targmach=powerpc endian=big ;; 1968 x86_64) targmach=amd64 ;; 1969 esac 1970 ;; 1971 1972 midnightbsd*) 1973 targos=midnightbsd 1974 abi=elf 1975 case "$target_cpu" in 1976 i?86) targmach=i386 ;; 1977 sparc64) targmach=sparc64 endian=big ;; 1978 esac 1979 ;; 1980 1981 mingw*) 1982 targos=win32 1983 abi=pecoff 1984 wchar_type=USHORT 1985 wchar_size=2 1986 targmach=i386 1987 altincdir="c:/mingw/include" 1988 altlibdir="c:/mingw/lib" 1989 ;; 1990 1991 minix) 1992 targos=minix 1993 abi=coff 1994 case "$target_cpu" in 1995 m68k) targmach=m68k endian=big ;; 1996 esac 1997 ;; 1998 1999 mirbsd*) 2000 targos=mirbsd 2001 abi=elf 2002 wchar_type=USHORT 2003 wchar_size=2 2004 case "$target_cpu" in 2005 i?86) targmach=i386 ;; 2006 esac 2007 ;; 2008 2009 netbsd*) 2010 targos=netbsd 2011 abi=elf 2012 case "$target_os" in 2013 *5.*) targosver=5 ;; 2014 *4.*) targosver=4 ;; 2015 *3.*) targosver=3 ;; 2016 *2.*) targosver=2 ;; 2017 *1.*) targosver=1 ;; 2018 esac 2019 case "$target_cpu" in 2020 armeb) targmach=arm endian=big ;; 2021 arm*) targmach=arm ;; 2022 i?86) targmach=i386 ;; 2023 m68k*) targmach=m68k endian=big ;; 2024 mipseb) targmach=mips endian=big ;; 2025 mips*) targmach=mips ;; 2026 pdp10) targmach=pdp10 ;; 2027 powerpc) targmach=powerpc endian=big ;; 2028 sparc64) targmach=sparc64 endian=big ;; 2029 vax) targmach=vax ;; 2030 x86_64) targmach=amd64 ;; 2031 esac 2032 ;; 2033 2034 nextstep*) 2035 targos=nextstep 2036 abi=macho 2037 case "$target_cpu" in 2038 i?86) targmach=i386 ;; 2039 sparc) targmach=sparc endian=big ;; 2040 hppa) targmach=hppa endian=big ;; 2041 esac 2042 ;; 2043 2044 openbsd*) 2045 targos=openbsd 2046 abi=elf 2047 case "$target_cpu" in 2048 i?86) targmach=i386 ;; 2049 vax) targmach=vax ;; 2050 powerpc) targmach=powerpc endian=big ;; 2051 sparc64) targmach=sparc64 endian=big ;; 2052 x86_64) targmach=amd64 ;; 2053 esac 2054 ;; 2055 2056 sunos*|solaris*) 2057 targos=sunos 2058 abi=elf 2059 case "$target_cpu" in 2060 i?86) targmach=i386 ;; 2061 sparc*) targmach=sparc64 endian=big ;; 2062 esac 2063 ;; 2064 2065 windows*|pe*) 2066 target_alias=i386-pe 2067 targos=win32 2068 abi=pecoff 2069 wchar_type=USHORT 2070 wchar_size=2 2071 targmach=i386 2072 ;; 2073 2074 *) 2075 targos="$target_os" 2076 case "$target_cpu" in 2077 m16c) targmach=m16c ;; 2078 nova) targmach=nova ;; 2079 esac 2080 ;; 2081esac 2082 2083if test "X$targos" = X -o "X$targmach" = X ; then 2084 { { echo "$as_me:$LINENO: error: '$target' is not (yet) supported by pcc." >&5 2085echo "$as_me: error: '$target' is not (yet) supported by pcc." >&2;} 2086 { (exit 1); exit 1; }; } 2087fi 2088 2089case "$host_os" in 2090 2091 pe*) 2092 # quick hack for cross-build to win32 host 2093 if "$prefix" = NONE; then 2094 prefix="c:/pcc" 2095 assembler="yasm.exe -p gnu -f win32" 2096 linker="link.exe /nologo" 2097 ADD_CFLAGS=-DMSLINKER 2098 fi 2099 ;; 2100 2101 sunos*|solaris*) 2102 ADD_CPPFLAGS="$ADD_CPPFLAGS -D_XOPEN_SOURCE=600" 2103 ;; 2104 2105esac 2106 2107if test "X$endian" = "Xbig" ; then 2108 2109cat >>confdefs.h <<\_ACEOF 2110#define TARGET_BIG_ENDIAN 1 2111_ACEOF 2112 2113else 2114 2115cat >>confdefs.h <<\_ACEOF 2116#define TARGET_LITTLE_ENDIAN 1 2117_ACEOF 2118 2119fi 2120 2121case "$abi" in 2122 elf*) 2123cat >>confdefs.h <<\_ACEOF 2124#define ELFABI 2125_ACEOF 2126 ;; 2127 aout) 2128cat >>confdefs.h <<\_ACEOF 2129#define AOUTABI 2130_ACEOF 2131 ;; 2132 macho) 2133cat >>confdefs.h <<\_ACEOF 2134#define MACHOABI 2135_ACEOF 2136 ;; 2137 coff) 2138cat >>confdefs.h <<\_ACEOF 2139#define COFFABI 2140_ACEOF 2141 ;; 2142 ecoff) 2143cat >>confdefs.h <<\_ACEOF 2144#define ECOFFABI 2145_ACEOF 2146 ;; 2147 pecoff) 2148cat >>confdefs.h <<\_ACEOF 2149#define PECOFFABI 2150_ACEOF 2151 ;; 2152 classic68k) 2153cat >>confdefs.h <<\_ACEOF 2154#define CLASSIC68K 2155_ACEOF 2156 ;; 2157esac 2158 2159# Specify alternate assembler, linker, include and lib paths 2160 2161# Check whether --with-incdir was given. 2162if test "${with_incdir+set}" = set; then 2163 withval=$with_incdir; altincdir=$withval 2164fi 2165 2166 2167# Check whether --with-libdir was given. 2168if test "${with_libdir+set}" = set; then 2169 withval=$with_libdir; altlibdir=$withval 2170fi 2171 2172 2173# Check whether --with-assembler was given. 2174if test "${with_assembler+set}" = set; then 2175 withval=$with_assembler; assembler=$withval 2176fi 2177 2178 2179# Check whether --with-linker was given. 2180if test "${with_linker+set}" = set; then 2181 withval=$with_linker; linker=$withval 2182fi 2183 2184# Check whether --enable-tls was given. 2185if test "${enable_tls+set}" = set; then 2186 enableval=$enable_tls; tls=$enableval 2187fi 2188 2189if test "$tls" = "yes"; then 2190 2191cat >>confdefs.h <<\_ACEOF 2192#define TLS 1 2193_ACEOF 2194 2195fi 2196# Check whether --enable-gcc-compat was given. 2197if test "${enable_gcc_compat+set}" = set; then 2198 enableval=$enable_gcc_compat; gcccompat=$enableval 2199fi 2200 2201if test "$gcccompat" = "yes"; then 2202 ADD_CPPFLAGS="$ADD_CPPFLAGS -DGCC_COMPAT"; 2203fi 2204 2205# setup for building a cross-compiler 2206if test "X$target_alias" = "X$host_alias" -o "X$target_alias" = "X"; then 2207 BINPREFIX="" 2208else 2209 BINPREFIX="${target_alias}-" 2210 test "X$prefix" = XNONE && prefix="$ac_default_prefix" 2211 test "X$exec_prefix" = XNONE && exec_prefix="${prefix}" 2212 if test -z "$altincdir"; then 2213 altincdir=${exec_prefix}/${target_alias}/include 2214 fi 2215 if test -z "$altlibdir"; then 2216 altlibdir=${exec_prefix}/${target_alias}/lib 2217 fi 2218 if test -z "$assembler"; then 2219 assembler=${BINPREFIX}as 2220 fi 2221 if test -z "$linker"; then 2222 linker=${BINPREFIX}ld 2223 fi 2224 preprocessor="${BINPREFIX}cpp" 2225 compiler="${BINPREFIX}ccom" 2226fi 2227 2228 2229if test -n "$altincdir"; then 2230 2231cat >>confdefs.h <<_ACEOF 2232#define STDINC "$altincdir" 2233_ACEOF 2234 2235fi 2236if test -n "$altlibdir"; then 2237 2238cat >>confdefs.h <<_ACEOF 2239#define LIBDIR "${altlibdir}/" 2240_ACEOF 2241 2242fi 2243if test -n "$assembler"; then 2244 2245cat >>confdefs.h <<_ACEOF 2246#define ASSEMBLER "$assembler" 2247_ACEOF 2248 2249fi 2250if test -n "$linker"; then 2251 2252cat >>confdefs.h <<_ACEOF 2253#define LINKER "$linker" 2254_ACEOF 2255 2256fi 2257if test -n "$preprocessor"; then 2258 2259cat >>confdefs.h <<_ACEOF 2260#define PREPROCESSOR "${BINPREFIX}cpp" 2261_ACEOF 2262 2263fi 2264if test -n "$compiler"; then 2265 2266cat >>confdefs.h <<_ACEOF 2267#define COMPILER "${BINPREFIX}ccom" 2268_ACEOF 2269 2270fi 2271 2272 2273cat >>confdefs.h <<_ACEOF 2274#define WCHAR_TYPE $wchar_type 2275_ACEOF 2276 2277 2278cat >>confdefs.h <<_ACEOF 2279#define WCHAR_SIZE $wchar_size 2280_ACEOF 2281 2282 2283# check for additional compiler flags 2284ac_ext=c 2285ac_cpp='$CPP $CPPFLAGS' 2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2288ac_compiler_gnu=$ac_cv_c_compiler_gnu 2289if test -n "$ac_tool_prefix"; then 2290 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2291set dummy ${ac_tool_prefix}gcc; ac_word=$2 2292{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2294if test "${ac_cv_prog_CC+set}" = set; then 2295 echo $ECHO_N "(cached) $ECHO_C" >&6 2296else 2297 if test -n "$CC"; then 2298 ac_cv_prog_CC="$CC" # Let the user override the test. 2299else 2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2301for as_dir in $PATH 2302do 2303 IFS=$as_save_IFS 2304 test -z "$as_dir" && as_dir=. 2305 for ac_exec_ext in '' $ac_executable_extensions; do 2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2307 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2309 break 2 2310 fi 2311done 2312done 2313IFS=$as_save_IFS 2314 2315fi 2316fi 2317CC=$ac_cv_prog_CC 2318if test -n "$CC"; then 2319 { echo "$as_me:$LINENO: result: $CC" >&5 2320echo "${ECHO_T}$CC" >&6; } 2321else 2322 { echo "$as_me:$LINENO: result: no" >&5 2323echo "${ECHO_T}no" >&6; } 2324fi 2325 2326 2327fi 2328if test -z "$ac_cv_prog_CC"; then 2329 ac_ct_CC=$CC 2330 # Extract the first word of "gcc", so it can be a program name with args. 2331set dummy gcc; ac_word=$2 2332{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2334if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2335 echo $ECHO_N "(cached) $ECHO_C" >&6 2336else 2337 if test -n "$ac_ct_CC"; then 2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2339else 2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2341for as_dir in $PATH 2342do 2343 IFS=$as_save_IFS 2344 test -z "$as_dir" && as_dir=. 2345 for ac_exec_ext in '' $ac_executable_extensions; do 2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2347 ac_cv_prog_ac_ct_CC="gcc" 2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2349 break 2 2350 fi 2351done 2352done 2353IFS=$as_save_IFS 2354 2355fi 2356fi 2357ac_ct_CC=$ac_cv_prog_ac_ct_CC 2358if test -n "$ac_ct_CC"; then 2359 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2360echo "${ECHO_T}$ac_ct_CC" >&6; } 2361else 2362 { echo "$as_me:$LINENO: result: no" >&5 2363echo "${ECHO_T}no" >&6; } 2364fi 2365 2366 if test "x$ac_ct_CC" = x; then 2367 CC="" 2368 else 2369 case $cross_compiling:$ac_tool_warned in 2370yes:) 2371{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2372whose name does not start with the host triplet. If you think this 2373configuration is useful to you, please write to autoconf@gnu.org." >&5 2374echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2375whose name does not start with the host triplet. If you think this 2376configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2377ac_tool_warned=yes ;; 2378esac 2379 CC=$ac_ct_CC 2380 fi 2381else 2382 CC="$ac_cv_prog_CC" 2383fi 2384 2385if test -z "$CC"; then 2386 if test -n "$ac_tool_prefix"; then 2387 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2388set dummy ${ac_tool_prefix}cc; ac_word=$2 2389{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2391if test "${ac_cv_prog_CC+set}" = set; then 2392 echo $ECHO_N "(cached) $ECHO_C" >&6 2393else 2394 if test -n "$CC"; then 2395 ac_cv_prog_CC="$CC" # Let the user override the test. 2396else 2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2398for as_dir in $PATH 2399do 2400 IFS=$as_save_IFS 2401 test -z "$as_dir" && as_dir=. 2402 for ac_exec_ext in '' $ac_executable_extensions; do 2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2404 ac_cv_prog_CC="${ac_tool_prefix}cc" 2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2406 break 2 2407 fi 2408done 2409done 2410IFS=$as_save_IFS 2411 2412fi 2413fi 2414CC=$ac_cv_prog_CC 2415if test -n "$CC"; then 2416 { echo "$as_me:$LINENO: result: $CC" >&5 2417echo "${ECHO_T}$CC" >&6; } 2418else 2419 { echo "$as_me:$LINENO: result: no" >&5 2420echo "${ECHO_T}no" >&6; } 2421fi 2422 2423 2424 fi 2425fi 2426if test -z "$CC"; then 2427 # Extract the first word of "cc", so it can be a program name with args. 2428set dummy cc; ac_word=$2 2429{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2431if test "${ac_cv_prog_CC+set}" = set; then 2432 echo $ECHO_N "(cached) $ECHO_C" >&6 2433else 2434 if test -n "$CC"; then 2435 ac_cv_prog_CC="$CC" # Let the user override the test. 2436else 2437 ac_prog_rejected=no 2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2439for as_dir in $PATH 2440do 2441 IFS=$as_save_IFS 2442 test -z "$as_dir" && as_dir=. 2443 for ac_exec_ext in '' $ac_executable_extensions; do 2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2445 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2446 ac_prog_rejected=yes 2447 continue 2448 fi 2449 ac_cv_prog_CC="cc" 2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2451 break 2 2452 fi 2453done 2454done 2455IFS=$as_save_IFS 2456 2457if test $ac_prog_rejected = yes; then 2458 # We found a bogon in the path, so make sure we never use it. 2459 set dummy $ac_cv_prog_CC 2460 shift 2461 if test $# != 0; then 2462 # We chose a different compiler from the bogus one. 2463 # However, it has the same basename, so the bogon will be chosen 2464 # first if we set CC to just the basename; use the full file name. 2465 shift 2466 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2467 fi 2468fi 2469fi 2470fi 2471CC=$ac_cv_prog_CC 2472if test -n "$CC"; then 2473 { echo "$as_me:$LINENO: result: $CC" >&5 2474echo "${ECHO_T}$CC" >&6; } 2475else 2476 { echo "$as_me:$LINENO: result: no" >&5 2477echo "${ECHO_T}no" >&6; } 2478fi 2479 2480 2481fi 2482if test -z "$CC"; then 2483 if test -n "$ac_tool_prefix"; then 2484 for ac_prog in cl.exe 2485 do 2486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2487set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2488{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2490if test "${ac_cv_prog_CC+set}" = set; then 2491 echo $ECHO_N "(cached) $ECHO_C" >&6 2492else 2493 if test -n "$CC"; then 2494 ac_cv_prog_CC="$CC" # Let the user override the test. 2495else 2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2497for as_dir in $PATH 2498do 2499 IFS=$as_save_IFS 2500 test -z "$as_dir" && as_dir=. 2501 for ac_exec_ext in '' $ac_executable_extensions; do 2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2503 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2505 break 2 2506 fi 2507done 2508done 2509IFS=$as_save_IFS 2510 2511fi 2512fi 2513CC=$ac_cv_prog_CC 2514if test -n "$CC"; then 2515 { echo "$as_me:$LINENO: result: $CC" >&5 2516echo "${ECHO_T}$CC" >&6; } 2517else 2518 { echo "$as_me:$LINENO: result: no" >&5 2519echo "${ECHO_T}no" >&6; } 2520fi 2521 2522 2523 test -n "$CC" && break 2524 done 2525fi 2526if test -z "$CC"; then 2527 ac_ct_CC=$CC 2528 for ac_prog in cl.exe 2529do 2530 # Extract the first word of "$ac_prog", so it can be a program name with args. 2531set dummy $ac_prog; ac_word=$2 2532{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2534if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2535 echo $ECHO_N "(cached) $ECHO_C" >&6 2536else 2537 if test -n "$ac_ct_CC"; then 2538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2539else 2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541for as_dir in $PATH 2542do 2543 IFS=$as_save_IFS 2544 test -z "$as_dir" && as_dir=. 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2547 ac_cv_prog_ac_ct_CC="$ac_prog" 2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2549 break 2 2550 fi 2551done 2552done 2553IFS=$as_save_IFS 2554 2555fi 2556fi 2557ac_ct_CC=$ac_cv_prog_ac_ct_CC 2558if test -n "$ac_ct_CC"; then 2559 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2560echo "${ECHO_T}$ac_ct_CC" >&6; } 2561else 2562 { echo "$as_me:$LINENO: result: no" >&5 2563echo "${ECHO_T}no" >&6; } 2564fi 2565 2566 2567 test -n "$ac_ct_CC" && break 2568done 2569 2570 if test "x$ac_ct_CC" = x; then 2571 CC="" 2572 else 2573 case $cross_compiling:$ac_tool_warned in 2574yes:) 2575{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2576whose name does not start with the host triplet. If you think this 2577configuration is useful to you, please write to autoconf@gnu.org." >&5 2578echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2579whose name does not start with the host triplet. If you think this 2580configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2581ac_tool_warned=yes ;; 2582esac 2583 CC=$ac_ct_CC 2584 fi 2585fi 2586 2587fi 2588 2589 2590test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2591See \`config.log' for more details." >&5 2592echo "$as_me: error: no acceptable C compiler found in \$PATH 2593See \`config.log' for more details." >&2;} 2594 { (exit 1); exit 1; }; } 2595 2596# Provide some information about the compiler. 2597echo "$as_me:$LINENO: checking for C compiler version" >&5 2598ac_compiler=`set X $ac_compile; echo $2` 2599{ (ac_try="$ac_compiler --version >&5" 2600case "(($ac_try" in 2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2602 *) ac_try_echo=$ac_try;; 2603esac 2604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2605 (eval "$ac_compiler --version >&5") 2>&5 2606 ac_status=$? 2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2608 (exit $ac_status); } 2609{ (ac_try="$ac_compiler -v >&5" 2610case "(($ac_try" in 2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2612 *) ac_try_echo=$ac_try;; 2613esac 2614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2615 (eval "$ac_compiler -v >&5") 2>&5 2616 ac_status=$? 2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2618 (exit $ac_status); } 2619{ (ac_try="$ac_compiler -V >&5" 2620case "(($ac_try" in 2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2622 *) ac_try_echo=$ac_try;; 2623esac 2624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2625 (eval "$ac_compiler -V >&5") 2>&5 2626 ac_status=$? 2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2628 (exit $ac_status); } 2629 2630cat >conftest.$ac_ext <<_ACEOF 2631/* confdefs.h. */ 2632_ACEOF 2633cat confdefs.h >>conftest.$ac_ext 2634cat >>conftest.$ac_ext <<_ACEOF 2635/* end confdefs.h. */ 2636 2637int 2638main () 2639{ 2640 2641 ; 2642 return 0; 2643} 2644_ACEOF 2645ac_clean_files_save=$ac_clean_files 2646ac_clean_files="$ac_clean_files a.out a.exe b.out" 2647# Try to create an executable without -o first, disregard a.out. 2648# It will help us diagnose broken compilers, and finding out an intuition 2649# of exeext. 2650{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2651echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2652ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2653# 2654# List of possible output files, starting from the most likely. 2655# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2656# only as a last resort. b.out is created by i960 compilers. 2657ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2658# 2659# The IRIX 6 linker writes into existing files which may not be 2660# executable, retaining their permissions. Remove them first so a 2661# subsequent execution test works. 2662ac_rmfiles= 2663for ac_file in $ac_files 2664do 2665 case $ac_file in 2666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2667 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2668 esac 2669done 2670rm -f $ac_rmfiles 2671 2672if { (ac_try="$ac_link_default" 2673case "(($ac_try" in 2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2675 *) ac_try_echo=$ac_try;; 2676esac 2677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2678 (eval "$ac_link_default") 2>&5 2679 ac_status=$? 2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2681 (exit $ac_status); }; then 2682 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2683# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2684# in a Makefile. We should not override ac_cv_exeext if it was cached, 2685# so that the user can short-circuit this test for compilers unknown to 2686# Autoconf. 2687for ac_file in $ac_files '' 2688do 2689 test -f "$ac_file" || continue 2690 case $ac_file in 2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2692 ;; 2693 [ab].out ) 2694 # We found the default executable, but exeext='' is most 2695 # certainly right. 2696 break;; 2697 *.* ) 2698 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2699 then :; else 2700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2701 fi 2702 # We set ac_cv_exeext here because the later test for it is not 2703 # safe: cross compilers may not add the suffix if given an `-o' 2704 # argument, so we may need to know it at that point already. 2705 # Even if this section looks crufty: it has the advantage of 2706 # actually working. 2707 break;; 2708 * ) 2709 break;; 2710 esac 2711done 2712test "$ac_cv_exeext" = no && ac_cv_exeext= 2713 2714else 2715 ac_file='' 2716fi 2717 2718{ echo "$as_me:$LINENO: result: $ac_file" >&5 2719echo "${ECHO_T}$ac_file" >&6; } 2720if test -z "$ac_file"; then 2721 echo "$as_me: failed program was:" >&5 2722sed 's/^/| /' conftest.$ac_ext >&5 2723 2724{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2725See \`config.log' for more details." >&5 2726echo "$as_me: error: C compiler cannot create executables 2727See \`config.log' for more details." >&2;} 2728 { (exit 77); exit 77; }; } 2729fi 2730 2731ac_exeext=$ac_cv_exeext 2732 2733# Check that the compiler produces executables we can run. If not, either 2734# the compiler is broken, or we cross compile. 2735{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2736echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2737# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2738# If not cross compiling, check that we can run a simple program. 2739if test "$cross_compiling" != yes; then 2740 if { ac_try='./$ac_file' 2741 { (case "(($ac_try" in 2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2743 *) ac_try_echo=$ac_try;; 2744esac 2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2746 (eval "$ac_try") 2>&5 2747 ac_status=$? 2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2749 (exit $ac_status); }; }; then 2750 cross_compiling=no 2751 else 2752 if test "$cross_compiling" = maybe; then 2753 cross_compiling=yes 2754 else 2755 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2756If you meant to cross compile, use \`--host'. 2757See \`config.log' for more details." >&5 2758echo "$as_me: error: cannot run C compiled programs. 2759If you meant to cross compile, use \`--host'. 2760See \`config.log' for more details." >&2;} 2761 { (exit 1); exit 1; }; } 2762 fi 2763 fi 2764fi 2765{ echo "$as_me:$LINENO: result: yes" >&5 2766echo "${ECHO_T}yes" >&6; } 2767 2768rm -f a.out a.exe conftest$ac_cv_exeext b.out 2769ac_clean_files=$ac_clean_files_save 2770# Check that the compiler produces executables we can run. If not, either 2771# the compiler is broken, or we cross compile. 2772{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2773echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2774{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2775echo "${ECHO_T}$cross_compiling" >&6; } 2776 2777{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2778echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2779if { (ac_try="$ac_link" 2780case "(($ac_try" in 2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2782 *) ac_try_echo=$ac_try;; 2783esac 2784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2785 (eval "$ac_link") 2>&5 2786 ac_status=$? 2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2788 (exit $ac_status); }; then 2789 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2790# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2791# work properly (i.e., refer to `conftest.exe'), while it won't with 2792# `rm'. 2793for ac_file in conftest.exe conftest conftest.*; do 2794 test -f "$ac_file" || continue 2795 case $ac_file in 2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2797 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2798 break;; 2799 * ) break;; 2800 esac 2801done 2802else 2803 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2804See \`config.log' for more details." >&5 2805echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2806See \`config.log' for more details." >&2;} 2807 { (exit 1); exit 1; }; } 2808fi 2809 2810rm -f conftest$ac_cv_exeext 2811{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2812echo "${ECHO_T}$ac_cv_exeext" >&6; } 2813 2814rm -f conftest.$ac_ext 2815EXEEXT=$ac_cv_exeext 2816ac_exeext=$EXEEXT 2817{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2818echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2819if test "${ac_cv_objext+set}" = set; then 2820 echo $ECHO_N "(cached) $ECHO_C" >&6 2821else 2822 cat >conftest.$ac_ext <<_ACEOF 2823/* confdefs.h. */ 2824_ACEOF 2825cat confdefs.h >>conftest.$ac_ext 2826cat >>conftest.$ac_ext <<_ACEOF 2827/* end confdefs.h. */ 2828 2829int 2830main () 2831{ 2832 2833 ; 2834 return 0; 2835} 2836_ACEOF 2837rm -f conftest.o conftest.obj 2838if { (ac_try="$ac_compile" 2839case "(($ac_try" in 2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2841 *) ac_try_echo=$ac_try;; 2842esac 2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2844 (eval "$ac_compile") 2>&5 2845 ac_status=$? 2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2847 (exit $ac_status); }; then 2848 for ac_file in conftest.o conftest.obj conftest.*; do 2849 test -f "$ac_file" || continue; 2850 case $ac_file in 2851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2853 break;; 2854 esac 2855done 2856else 2857 echo "$as_me: failed program was:" >&5 2858sed 's/^/| /' conftest.$ac_ext >&5 2859 2860{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2861See \`config.log' for more details." >&5 2862echo "$as_me: error: cannot compute suffix of object files: cannot compile 2863See \`config.log' for more details." >&2;} 2864 { (exit 1); exit 1; }; } 2865fi 2866 2867rm -f conftest.$ac_cv_objext conftest.$ac_ext 2868fi 2869{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2870echo "${ECHO_T}$ac_cv_objext" >&6; } 2871OBJEXT=$ac_cv_objext 2872ac_objext=$OBJEXT 2873{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2874echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2875if test "${ac_cv_c_compiler_gnu+set}" = set; then 2876 echo $ECHO_N "(cached) $ECHO_C" >&6 2877else 2878 cat >conftest.$ac_ext <<_ACEOF 2879/* confdefs.h. */ 2880_ACEOF 2881cat confdefs.h >>conftest.$ac_ext 2882cat >>conftest.$ac_ext <<_ACEOF 2883/* end confdefs.h. */ 2884 2885int 2886main () 2887{ 2888#ifndef __GNUC__ 2889 choke me 2890#endif 2891 2892 ; 2893 return 0; 2894} 2895_ACEOF 2896rm -f conftest.$ac_objext 2897if { (ac_try="$ac_compile" 2898case "(($ac_try" in 2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2900 *) ac_try_echo=$ac_try;; 2901esac 2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2903 (eval "$ac_compile") 2>conftest.er1 2904 ac_status=$? 2905 grep -v '^ *+' conftest.er1 >conftest.err 2906 rm -f conftest.er1 2907 cat conftest.err >&5 2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2909 (exit $ac_status); } && { 2910 test -z "$ac_c_werror_flag" || 2911 test ! -s conftest.err 2912 } && test -s conftest.$ac_objext; then 2913 ac_compiler_gnu=yes 2914else 2915 echo "$as_me: failed program was:" >&5 2916sed 's/^/| /' conftest.$ac_ext >&5 2917 2918 ac_compiler_gnu=no 2919fi 2920 2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2922ac_cv_c_compiler_gnu=$ac_compiler_gnu 2923 2924fi 2925{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2926echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2927GCC=`test $ac_compiler_gnu = yes && echo yes` 2928ac_test_CFLAGS=${CFLAGS+set} 2929ac_save_CFLAGS=$CFLAGS 2930{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2931echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2932if test "${ac_cv_prog_cc_g+set}" = set; then 2933 echo $ECHO_N "(cached) $ECHO_C" >&6 2934else 2935 ac_save_c_werror_flag=$ac_c_werror_flag 2936 ac_c_werror_flag=yes 2937 ac_cv_prog_cc_g=no 2938 CFLAGS="-g" 2939 cat >conftest.$ac_ext <<_ACEOF 2940/* confdefs.h. */ 2941_ACEOF 2942cat confdefs.h >>conftest.$ac_ext 2943cat >>conftest.$ac_ext <<_ACEOF 2944/* end confdefs.h. */ 2945 2946int 2947main () 2948{ 2949 2950 ; 2951 return 0; 2952} 2953_ACEOF 2954rm -f conftest.$ac_objext 2955if { (ac_try="$ac_compile" 2956case "(($ac_try" in 2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2958 *) ac_try_echo=$ac_try;; 2959esac 2960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2961 (eval "$ac_compile") 2>conftest.er1 2962 ac_status=$? 2963 grep -v '^ *+' conftest.er1 >conftest.err 2964 rm -f conftest.er1 2965 cat conftest.err >&5 2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2967 (exit $ac_status); } && { 2968 test -z "$ac_c_werror_flag" || 2969 test ! -s conftest.err 2970 } && test -s conftest.$ac_objext; then 2971 ac_cv_prog_cc_g=yes 2972else 2973 echo "$as_me: failed program was:" >&5 2974sed 's/^/| /' conftest.$ac_ext >&5 2975 2976 CFLAGS="" 2977 cat >conftest.$ac_ext <<_ACEOF 2978/* confdefs.h. */ 2979_ACEOF 2980cat confdefs.h >>conftest.$ac_ext 2981cat >>conftest.$ac_ext <<_ACEOF 2982/* end confdefs.h. */ 2983 2984int 2985main () 2986{ 2987 2988 ; 2989 return 0; 2990} 2991_ACEOF 2992rm -f conftest.$ac_objext 2993if { (ac_try="$ac_compile" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2999 (eval "$ac_compile") 2>conftest.er1 3000 ac_status=$? 3001 grep -v '^ *+' conftest.er1 >conftest.err 3002 rm -f conftest.er1 3003 cat conftest.err >&5 3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3005 (exit $ac_status); } && { 3006 test -z "$ac_c_werror_flag" || 3007 test ! -s conftest.err 3008 } && test -s conftest.$ac_objext; then 3009 : 3010else 3011 echo "$as_me: failed program was:" >&5 3012sed 's/^/| /' conftest.$ac_ext >&5 3013 3014 ac_c_werror_flag=$ac_save_c_werror_flag 3015 CFLAGS="-g" 3016 cat >conftest.$ac_ext <<_ACEOF 3017/* confdefs.h. */ 3018_ACEOF 3019cat confdefs.h >>conftest.$ac_ext 3020cat >>conftest.$ac_ext <<_ACEOF 3021/* end confdefs.h. */ 3022 3023int 3024main () 3025{ 3026 3027 ; 3028 return 0; 3029} 3030_ACEOF 3031rm -f conftest.$ac_objext 3032if { (ac_try="$ac_compile" 3033case "(($ac_try" in 3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3035 *) ac_try_echo=$ac_try;; 3036esac 3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3038 (eval "$ac_compile") 2>conftest.er1 3039 ac_status=$? 3040 grep -v '^ *+' conftest.er1 >conftest.err 3041 rm -f conftest.er1 3042 cat conftest.err >&5 3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3044 (exit $ac_status); } && { 3045 test -z "$ac_c_werror_flag" || 3046 test ! -s conftest.err 3047 } && test -s conftest.$ac_objext; then 3048 ac_cv_prog_cc_g=yes 3049else 3050 echo "$as_me: failed program was:" >&5 3051sed 's/^/| /' conftest.$ac_ext >&5 3052 3053 3054fi 3055 3056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3057fi 3058 3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3060fi 3061 3062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3063 ac_c_werror_flag=$ac_save_c_werror_flag 3064fi 3065{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3066echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3067if test "$ac_test_CFLAGS" = set; then 3068 CFLAGS=$ac_save_CFLAGS 3069elif test $ac_cv_prog_cc_g = yes; then 3070 if test "$GCC" = yes; then 3071 CFLAGS="-g -O2" 3072 else 3073 CFLAGS="-g" 3074 fi 3075else 3076 if test "$GCC" = yes; then 3077 CFLAGS="-O2" 3078 else 3079 CFLAGS= 3080 fi 3081fi 3082{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3083echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3084if test "${ac_cv_prog_cc_c89+set}" = set; then 3085 echo $ECHO_N "(cached) $ECHO_C" >&6 3086else 3087 ac_cv_prog_cc_c89=no 3088ac_save_CC=$CC 3089cat >conftest.$ac_ext <<_ACEOF 3090/* confdefs.h. */ 3091_ACEOF 3092cat confdefs.h >>conftest.$ac_ext 3093cat >>conftest.$ac_ext <<_ACEOF 3094/* end confdefs.h. */ 3095#include <stdarg.h> 3096#include <stdio.h> 3097#include <sys/types.h> 3098#include <sys/stat.h> 3099/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3100struct buf { int x; }; 3101FILE * (*rcsopen) (struct buf *, struct stat *, int); 3102static char *e (p, i) 3103 char **p; 3104 int i; 3105{ 3106 return p[i]; 3107} 3108static char *f (char * (*g) (char **, int), char **p, ...) 3109{ 3110 char *s; 3111 va_list v; 3112 va_start (v,p); 3113 s = g (p, va_arg (v,int)); 3114 va_end (v); 3115 return s; 3116} 3117 3118/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3119 function prototypes and stuff, but not '\xHH' hex character constants. 3120 These don't provoke an error unfortunately, instead are silently treated 3121 as 'x'. The following induces an error, until -std is added to get 3122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3123 array size at least. It's necessary to write '\x00'==0 to get something 3124 that's true only with -std. */ 3125int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3126 3127/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3128 inside strings and character constants. */ 3129#define FOO(x) 'x' 3130int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3131 3132int test (int i, double x); 3133struct s1 {int (*f) (int a);}; 3134struct s2 {int (*f) (double a);}; 3135int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3136int argc; 3137char **argv; 3138int 3139main () 3140{ 3141return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3142 ; 3143 return 0; 3144} 3145_ACEOF 3146for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3148do 3149 CC="$ac_save_CC $ac_arg" 3150 rm -f conftest.$ac_objext 3151if { (ac_try="$ac_compile" 3152case "(($ac_try" in 3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3154 *) ac_try_echo=$ac_try;; 3155esac 3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3157 (eval "$ac_compile") 2>conftest.er1 3158 ac_status=$? 3159 grep -v '^ *+' conftest.er1 >conftest.err 3160 rm -f conftest.er1 3161 cat conftest.err >&5 3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3163 (exit $ac_status); } && { 3164 test -z "$ac_c_werror_flag" || 3165 test ! -s conftest.err 3166 } && test -s conftest.$ac_objext; then 3167 ac_cv_prog_cc_c89=$ac_arg 3168else 3169 echo "$as_me: failed program was:" >&5 3170sed 's/^/| /' conftest.$ac_ext >&5 3171 3172 3173fi 3174 3175rm -f core conftest.err conftest.$ac_objext 3176 test "x$ac_cv_prog_cc_c89" != "xno" && break 3177done 3178rm -f conftest.$ac_ext 3179CC=$ac_save_CC 3180 3181fi 3182# AC_CACHE_VAL 3183case "x$ac_cv_prog_cc_c89" in 3184 x) 3185 { echo "$as_me:$LINENO: result: none needed" >&5 3186echo "${ECHO_T}none needed" >&6; } ;; 3187 xno) 3188 { echo "$as_me:$LINENO: result: unsupported" >&5 3189echo "${ECHO_T}unsupported" >&6; } ;; 3190 *) 3191 CC="$CC $ac_cv_prog_cc_c89" 3192 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3193echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3194esac 3195 3196 3197ac_ext=c 3198ac_cpp='$CPP $CPPFLAGS' 3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3201ac_compiler_gnu=$ac_cv_c_compiler_gnu 3202 3203DESIRED_FLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -Wtruncate" 3204for flag in $DESIRED_FLAGS 3205do 3206 { echo "$as_me:$LINENO: checking whether $CC accepts $flag" >&5 3207echo $ECHO_N "checking whether $CC accepts $flag... $ECHO_C" >&6; } 3208 cat >conftest.$ac_ext <<_ACEOF 3209int main() { return 0; } 3210_ACEOF 3211 $CC $CFLAGS $flag -c conftest.c > /dev/null 2> /dev/null 3212 if test $? = 0 ; then 3213 ADD_CFLAGS="$ADD_CFLAGS $flag" 3214 { echo "$as_me:$LINENO: result: yes" >&5 3215echo "${ECHO_T}yes" >&6; }; 3216 else 3217 { echo "$as_me:$LINENO: result: no" >&5 3218echo "${ECHO_T}no" >&6; }; 3219 fi 3220 rm -f conftest.o 3221done 3222 3223# setup for cross-compiling mkext 3224{ echo "$as_me:$LINENO: checking for a C compiler for mkext" >&5 3225echo $ECHO_N "checking for a C compiler for mkext... $ECHO_C" >&6; } 3226if test $cross_compiling = yes; then 3227 { echo "$as_me:$LINENO: result: cross compiling" >&5 3228echo "${ECHO_T}cross compiling" >&6; } 3229 for ac_prog in pcc gcc cc 3230do 3231 # Extract the first word of "$ac_prog", so it can be a program name with args. 3232set dummy $ac_prog; ac_word=$2 3233{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3235if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then 3236 echo $ECHO_N "(cached) $ECHO_C" >&6 3237else 3238 if test -n "$CC_FOR_BUILD"; then 3239 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 3240else 3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3242for as_dir in $PATH 3243do 3244 IFS=$as_save_IFS 3245 test -z "$as_dir" && as_dir=. 3246 for ac_exec_ext in '' $ac_executable_extensions; do 3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3248 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 3249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3250 break 2 3251 fi 3252done 3253done 3254IFS=$as_save_IFS 3255 3256fi 3257fi 3258CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 3259if test -n "$CC_FOR_BUILD"; then 3260 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5 3261echo "${ECHO_T}$CC_FOR_BUILD" >&6; } 3262else 3263 { echo "$as_me:$LINENO: result: no" >&5 3264echo "${ECHO_T}no" >&6; } 3265fi 3266 3267 3268 test -n "$CC_FOR_BUILD" && break 3269done 3270 3271else 3272 { echo "$as_me:$LINENO: result: not cross compiling" >&5 3273echo "${ECHO_T}not cross compiling" >&6; } 3274 CC_FOR_BUILD=${CC-cc} 3275 3276fi 3277 3278 3279ac_ext=c 3280ac_cpp='$CPP $CPPFLAGS' 3281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3283ac_compiler_gnu=$ac_cv_c_compiler_gnu 3284{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3285echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3286# On Suns, sometimes $CPP names a directory. 3287if test -n "$CPP" && test -d "$CPP"; then 3288 CPP= 3289fi 3290if test -z "$CPP"; then 3291 if test "${ac_cv_prog_CPP+set}" = set; then 3292 echo $ECHO_N "(cached) $ECHO_C" >&6 3293else 3294 # Double quotes because CPP needs to be expanded 3295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3296 do 3297 ac_preproc_ok=false 3298for ac_c_preproc_warn_flag in '' yes 3299do 3300 # Use a header file that comes with gcc, so configuring glibc 3301 # with a fresh cross-compiler works. 3302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3303 # <limits.h> exists even on freestanding compilers. 3304 # On the NeXT, cc -E runs the code through the compiler's parser, 3305 # not just through cpp. "Syntax error" is here to catch this case. 3306 cat >conftest.$ac_ext <<_ACEOF 3307/* confdefs.h. */ 3308_ACEOF 3309cat confdefs.h >>conftest.$ac_ext 3310cat >>conftest.$ac_ext <<_ACEOF 3311/* end confdefs.h. */ 3312#ifdef __STDC__ 3313# include <limits.h> 3314#else 3315# include <assert.h> 3316#endif 3317 Syntax error 3318_ACEOF 3319if { (ac_try="$ac_cpp conftest.$ac_ext" 3320case "(($ac_try" in 3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3322 *) ac_try_echo=$ac_try;; 3323esac 3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3326 ac_status=$? 3327 grep -v '^ *+' conftest.er1 >conftest.err 3328 rm -f conftest.er1 3329 cat conftest.err >&5 3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3331 (exit $ac_status); } >/dev/null && { 3332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3333 test ! -s conftest.err 3334 }; then 3335 : 3336else 3337 echo "$as_me: failed program was:" >&5 3338sed 's/^/| /' conftest.$ac_ext >&5 3339 3340 # Broken: fails on valid input. 3341continue 3342fi 3343 3344rm -f conftest.err conftest.$ac_ext 3345 3346 # OK, works on sane cases. Now check whether nonexistent headers 3347 # can be detected and how. 3348 cat >conftest.$ac_ext <<_ACEOF 3349/* confdefs.h. */ 3350_ACEOF 3351cat confdefs.h >>conftest.$ac_ext 3352cat >>conftest.$ac_ext <<_ACEOF 3353/* end confdefs.h. */ 3354#include <ac_nonexistent.h> 3355_ACEOF 3356if { (ac_try="$ac_cpp conftest.$ac_ext" 3357case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3363 ac_status=$? 3364 grep -v '^ *+' conftest.er1 >conftest.err 3365 rm -f conftest.er1 3366 cat conftest.err >&5 3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3368 (exit $ac_status); } >/dev/null && { 3369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3370 test ! -s conftest.err 3371 }; then 3372 # Broken: success on invalid input. 3373continue 3374else 3375 echo "$as_me: failed program was:" >&5 3376sed 's/^/| /' conftest.$ac_ext >&5 3377 3378 # Passes both tests. 3379ac_preproc_ok=: 3380break 3381fi 3382 3383rm -f conftest.err conftest.$ac_ext 3384 3385done 3386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3387rm -f conftest.err conftest.$ac_ext 3388if $ac_preproc_ok; then 3389 break 3390fi 3391 3392 done 3393 ac_cv_prog_CPP=$CPP 3394 3395fi 3396 CPP=$ac_cv_prog_CPP 3397else 3398 ac_cv_prog_CPP=$CPP 3399fi 3400{ echo "$as_me:$LINENO: result: $CPP" >&5 3401echo "${ECHO_T}$CPP" >&6; } 3402ac_preproc_ok=false 3403for ac_c_preproc_warn_flag in '' yes 3404do 3405 # Use a header file that comes with gcc, so configuring glibc 3406 # with a fresh cross-compiler works. 3407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3408 # <limits.h> exists even on freestanding compilers. 3409 # On the NeXT, cc -E runs the code through the compiler's parser, 3410 # not just through cpp. "Syntax error" is here to catch this case. 3411 cat >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#ifdef __STDC__ 3418# include <limits.h> 3419#else 3420# include <assert.h> 3421#endif 3422 Syntax error 3423_ACEOF 3424if { (ac_try="$ac_cpp conftest.$ac_ext" 3425case "(($ac_try" in 3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3427 *) ac_try_echo=$ac_try;; 3428esac 3429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3431 ac_status=$? 3432 grep -v '^ *+' conftest.er1 >conftest.err 3433 rm -f conftest.er1 3434 cat conftest.err >&5 3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3436 (exit $ac_status); } >/dev/null && { 3437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3438 test ! -s conftest.err 3439 }; then 3440 : 3441else 3442 echo "$as_me: failed program was:" >&5 3443sed 's/^/| /' conftest.$ac_ext >&5 3444 3445 # Broken: fails on valid input. 3446continue 3447fi 3448 3449rm -f conftest.err conftest.$ac_ext 3450 3451 # OK, works on sane cases. Now check whether nonexistent headers 3452 # can be detected and how. 3453 cat >conftest.$ac_ext <<_ACEOF 3454/* confdefs.h. */ 3455_ACEOF 3456cat confdefs.h >>conftest.$ac_ext 3457cat >>conftest.$ac_ext <<_ACEOF 3458/* end confdefs.h. */ 3459#include <ac_nonexistent.h> 3460_ACEOF 3461if { (ac_try="$ac_cpp conftest.$ac_ext" 3462case "(($ac_try" in 3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3464 *) ac_try_echo=$ac_try;; 3465esac 3466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3468 ac_status=$? 3469 grep -v '^ *+' conftest.er1 >conftest.err 3470 rm -f conftest.er1 3471 cat conftest.err >&5 3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3473 (exit $ac_status); } >/dev/null && { 3474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3475 test ! -s conftest.err 3476 }; then 3477 # Broken: success on invalid input. 3478continue 3479else 3480 echo "$as_me: failed program was:" >&5 3481sed 's/^/| /' conftest.$ac_ext >&5 3482 3483 # Passes both tests. 3484ac_preproc_ok=: 3485break 3486fi 3487 3488rm -f conftest.err conftest.$ac_ext 3489 3490done 3491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3492rm -f conftest.err conftest.$ac_ext 3493if $ac_preproc_ok; then 3494 : 3495else 3496 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3497See \`config.log' for more details." >&5 3498echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3499See \`config.log' for more details." >&2;} 3500 { (exit 1); exit 1; }; } 3501fi 3502 3503ac_ext=c 3504ac_cpp='$CPP $CPPFLAGS' 3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3507ac_compiler_gnu=$ac_cv_c_compiler_gnu 3508 3509 3510{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3511echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3512if test "${ac_cv_path_GREP+set}" = set; then 3513 echo $ECHO_N "(cached) $ECHO_C" >&6 3514else 3515 # Extract the first word of "grep ggrep" to use in msg output 3516if test -z "$GREP"; then 3517set dummy grep ggrep; ac_prog_name=$2 3518if test "${ac_cv_path_GREP+set}" = set; then 3519 echo $ECHO_N "(cached) $ECHO_C" >&6 3520else 3521 ac_path_GREP_found=false 3522# Loop through the user's path and test for each of PROGNAME-LIST 3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3525do 3526 IFS=$as_save_IFS 3527 test -z "$as_dir" && as_dir=. 3528 for ac_prog in grep ggrep; do 3529 for ac_exec_ext in '' $ac_executable_extensions; do 3530 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3531 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3532 # Check for GNU ac_path_GREP and select it if it is found. 3533 # Check for GNU $ac_path_GREP 3534case `"$ac_path_GREP" --version 2>&1` in 3535*GNU*) 3536 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3537*) 3538 ac_count=0 3539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3540 while : 3541 do 3542 cat "conftest.in" "conftest.in" >"conftest.tmp" 3543 mv "conftest.tmp" "conftest.in" 3544 cp "conftest.in" "conftest.nl" 3545 echo 'GREP' >> "conftest.nl" 3546 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3548 ac_count=`expr $ac_count + 1` 3549 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3550 # Best one so far, save it but keep looking for a better one 3551 ac_cv_path_GREP="$ac_path_GREP" 3552 ac_path_GREP_max=$ac_count 3553 fi 3554 # 10*(2^10) chars as input seems more than enough 3555 test $ac_count -gt 10 && break 3556 done 3557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3558esac 3559 3560 3561 $ac_path_GREP_found && break 3 3562 done 3563done 3564 3565done 3566IFS=$as_save_IFS 3567 3568 3569fi 3570 3571GREP="$ac_cv_path_GREP" 3572if test -z "$GREP"; then 3573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3574echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3575 { (exit 1); exit 1; }; } 3576fi 3577 3578else 3579 ac_cv_path_GREP=$GREP 3580fi 3581 3582 3583fi 3584{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3585echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3586 GREP="$ac_cv_path_GREP" 3587 3588 3589{ echo "$as_me:$LINENO: checking for egrep" >&5 3590echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3591if test "${ac_cv_path_EGREP+set}" = set; then 3592 echo $ECHO_N "(cached) $ECHO_C" >&6 3593else 3594 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3595 then ac_cv_path_EGREP="$GREP -E" 3596 else 3597 # Extract the first word of "egrep" to use in msg output 3598if test -z "$EGREP"; then 3599set dummy egrep; ac_prog_name=$2 3600if test "${ac_cv_path_EGREP+set}" = set; then 3601 echo $ECHO_N "(cached) $ECHO_C" >&6 3602else 3603 ac_path_EGREP_found=false 3604# Loop through the user's path and test for each of PROGNAME-LIST 3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3606for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3607do 3608 IFS=$as_save_IFS 3609 test -z "$as_dir" && as_dir=. 3610 for ac_prog in egrep; do 3611 for ac_exec_ext in '' $ac_executable_extensions; do 3612 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3613 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3614 # Check for GNU ac_path_EGREP and select it if it is found. 3615 # Check for GNU $ac_path_EGREP 3616case `"$ac_path_EGREP" --version 2>&1` in 3617*GNU*) 3618 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3619*) 3620 ac_count=0 3621 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3622 while : 3623 do 3624 cat "conftest.in" "conftest.in" >"conftest.tmp" 3625 mv "conftest.tmp" "conftest.in" 3626 cp "conftest.in" "conftest.nl" 3627 echo 'EGREP' >> "conftest.nl" 3628 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3630 ac_count=`expr $ac_count + 1` 3631 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3632 # Best one so far, save it but keep looking for a better one 3633 ac_cv_path_EGREP="$ac_path_EGREP" 3634 ac_path_EGREP_max=$ac_count 3635 fi 3636 # 10*(2^10) chars as input seems more than enough 3637 test $ac_count -gt 10 && break 3638 done 3639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3640esac 3641 3642 3643 $ac_path_EGREP_found && break 3 3644 done 3645done 3646 3647done 3648IFS=$as_save_IFS 3649 3650 3651fi 3652 3653EGREP="$ac_cv_path_EGREP" 3654if test -z "$EGREP"; then 3655 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3656echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3657 { (exit 1); exit 1; }; } 3658fi 3659 3660else 3661 ac_cv_path_EGREP=$EGREP 3662fi 3663 3664 3665 fi 3666fi 3667{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3668echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3669 EGREP="$ac_cv_path_EGREP" 3670 3671 3672{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3673echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3674if test "${ac_cv_header_stdc+set}" = set; then 3675 echo $ECHO_N "(cached) $ECHO_C" >&6 3676else 3677 cat >conftest.$ac_ext <<_ACEOF 3678/* confdefs.h. */ 3679_ACEOF 3680cat confdefs.h >>conftest.$ac_ext 3681cat >>conftest.$ac_ext <<_ACEOF 3682/* end confdefs.h. */ 3683#include <stdlib.h> 3684#include <stdarg.h> 3685#include <string.h> 3686#include <float.h> 3687 3688int 3689main () 3690{ 3691 3692 ; 3693 return 0; 3694} 3695_ACEOF 3696rm -f conftest.$ac_objext 3697if { (ac_try="$ac_compile" 3698case "(($ac_try" in 3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3700 *) ac_try_echo=$ac_try;; 3701esac 3702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3703 (eval "$ac_compile") 2>conftest.er1 3704 ac_status=$? 3705 grep -v '^ *+' conftest.er1 >conftest.err 3706 rm -f conftest.er1 3707 cat conftest.err >&5 3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3709 (exit $ac_status); } && { 3710 test -z "$ac_c_werror_flag" || 3711 test ! -s conftest.err 3712 } && test -s conftest.$ac_objext; then 3713 ac_cv_header_stdc=yes 3714else 3715 echo "$as_me: failed program was:" >&5 3716sed 's/^/| /' conftest.$ac_ext >&5 3717 3718 ac_cv_header_stdc=no 3719fi 3720 3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3722 3723if test $ac_cv_header_stdc = yes; then 3724 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3725 cat >conftest.$ac_ext <<_ACEOF 3726/* confdefs.h. */ 3727_ACEOF 3728cat confdefs.h >>conftest.$ac_ext 3729cat >>conftest.$ac_ext <<_ACEOF 3730/* end confdefs.h. */ 3731#include <string.h> 3732 3733_ACEOF 3734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3735 $EGREP "memchr" >/dev/null 2>&1; then 3736 : 3737else 3738 ac_cv_header_stdc=no 3739fi 3740rm -f conftest* 3741 3742fi 3743 3744if test $ac_cv_header_stdc = yes; then 3745 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3746 cat >conftest.$ac_ext <<_ACEOF 3747/* confdefs.h. */ 3748_ACEOF 3749cat confdefs.h >>conftest.$ac_ext 3750cat >>conftest.$ac_ext <<_ACEOF 3751/* end confdefs.h. */ 3752#include <stdlib.h> 3753 3754_ACEOF 3755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3756 $EGREP "free" >/dev/null 2>&1; then 3757 : 3758else 3759 ac_cv_header_stdc=no 3760fi 3761rm -f conftest* 3762 3763fi 3764 3765if test $ac_cv_header_stdc = yes; then 3766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3767 if test "$cross_compiling" = yes; then 3768 : 3769else 3770 cat >conftest.$ac_ext <<_ACEOF 3771/* confdefs.h. */ 3772_ACEOF 3773cat confdefs.h >>conftest.$ac_ext 3774cat >>conftest.$ac_ext <<_ACEOF 3775/* end confdefs.h. */ 3776#include <ctype.h> 3777#include <stdlib.h> 3778#if ((' ' & 0x0FF) == 0x020) 3779# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3780# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3781#else 3782# define ISLOWER(c) \ 3783 (('a' <= (c) && (c) <= 'i') \ 3784 || ('j' <= (c) && (c) <= 'r') \ 3785 || ('s' <= (c) && (c) <= 'z')) 3786# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3787#endif 3788 3789#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3790int 3791main () 3792{ 3793 int i; 3794 for (i = 0; i < 256; i++) 3795 if (XOR (islower (i), ISLOWER (i)) 3796 || toupper (i) != TOUPPER (i)) 3797 return 2; 3798 return 0; 3799} 3800_ACEOF 3801rm -f conftest$ac_exeext 3802if { (ac_try="$ac_link" 3803case "(($ac_try" in 3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3805 *) ac_try_echo=$ac_try;; 3806esac 3807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3808 (eval "$ac_link") 2>&5 3809 ac_status=$? 3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3812 { (case "(($ac_try" in 3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3814 *) ac_try_echo=$ac_try;; 3815esac 3816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3817 (eval "$ac_try") 2>&5 3818 ac_status=$? 3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3820 (exit $ac_status); }; }; then 3821 : 3822else 3823 echo "$as_me: program exited with status $ac_status" >&5 3824echo "$as_me: failed program was:" >&5 3825sed 's/^/| /' conftest.$ac_ext >&5 3826 3827( exit $ac_status ) 3828ac_cv_header_stdc=no 3829fi 3830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3831fi 3832 3833 3834fi 3835fi 3836{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3837echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3838if test $ac_cv_header_stdc = yes; then 3839 3840cat >>confdefs.h <<\_ACEOF 3841#define STDC_HEADERS 1 3842_ACEOF 3843 3844fi 3845 3846# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3857 inttypes.h stdint.h unistd.h 3858do 3859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3860{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3863 echo $ECHO_N "(cached) $ECHO_C" >&6 3864else 3865 cat >conftest.$ac_ext <<_ACEOF 3866/* confdefs.h. */ 3867_ACEOF 3868cat confdefs.h >>conftest.$ac_ext 3869cat >>conftest.$ac_ext <<_ACEOF 3870/* end confdefs.h. */ 3871$ac_includes_default 3872 3873#include <$ac_header> 3874_ACEOF 3875rm -f conftest.$ac_objext 3876if { (ac_try="$ac_compile" 3877case "(($ac_try" in 3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3879 *) ac_try_echo=$ac_try;; 3880esac 3881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3882 (eval "$ac_compile") 2>conftest.er1 3883 ac_status=$? 3884 grep -v '^ *+' conftest.er1 >conftest.err 3885 rm -f conftest.er1 3886 cat conftest.err >&5 3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3888 (exit $ac_status); } && { 3889 test -z "$ac_c_werror_flag" || 3890 test ! -s conftest.err 3891 } && test -s conftest.$ac_objext; then 3892 eval "$as_ac_Header=yes" 3893else 3894 echo "$as_me: failed program was:" >&5 3895sed 's/^/| /' conftest.$ac_ext >&5 3896 3897 eval "$as_ac_Header=no" 3898fi 3899 3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3901fi 3902ac_res=`eval echo '${'$as_ac_Header'}'` 3903 { echo "$as_me:$LINENO: result: $ac_res" >&5 3904echo "${ECHO_T}$ac_res" >&6; } 3905if test `eval echo '${'$as_ac_Header'}'` = yes; then 3906 cat >>confdefs.h <<_ACEOF 3907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3908_ACEOF 3909 3910fi 3911 3912done 3913 3914 3915{ echo "$as_me:$LINENO: checking for C99 printf size specifiers" >&5 3916echo $ECHO_N "checking for C99 printf size specifiers... $ECHO_C" >&6; } 3917if test "${ac_have_c99_format+set}" = set; then 3918 echo $ECHO_N "(cached) $ECHO_C" >&6 3919else 3920 3921 if test "$cross_compiling" = yes; then 3922 ac_have_c99_format=yes 3923else 3924 cat >conftest.$ac_ext <<_ACEOF 3925 3926 /* confdefs.h. */ 3927_ACEOF 3928cat confdefs.h >>conftest.$ac_ext 3929cat >>conftest.$ac_ext <<_ACEOF 3930/* end confdefs.h. */ 3931$ac_includes_default 3932int 3933main () 3934{ 3935 3936 char buf[64]; 3937 if (sprintf(buf, "%lld%hhd%jd%zd%td", (long long int)1, (char)2, (intmax_t)3, (size_t)4, (ptrdiff_t)5) != 5) 3938 exit(1); 3939 else if (strcmp(buf, "12345")) 3940 exit(2); 3941 3942 ; 3943 return 0; 3944} 3945_ACEOF 3946rm -f conftest$ac_exeext 3947if { (ac_try="$ac_link" 3948case "(($ac_try" in 3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3950 *) ac_try_echo=$ac_try;; 3951esac 3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3953 (eval "$ac_link") 2>&5 3954 ac_status=$? 3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3957 { (case "(($ac_try" in 3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3959 *) ac_try_echo=$ac_try;; 3960esac 3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3962 (eval "$ac_try") 2>&5 3963 ac_status=$? 3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3965 (exit $ac_status); }; }; then 3966 ac_have_c99_format=yes 3967else 3968 echo "$as_me: program exited with status $ac_status" >&5 3969echo "$as_me: failed program was:" >&5 3970sed 's/^/| /' conftest.$ac_ext >&5 3971 3972( exit $ac_status ) 3973 ac_have_c99_format=no 3974fi 3975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3976fi 3977 3978 3979 3980fi 3981{ echo "$as_me:$LINENO: result: $ac_have_c99_format" >&5 3982echo "${ECHO_T}$ac_have_c99_format" >&6; } 3983if test $ac_have_c99_format = yes; then 3984 3985cat >>confdefs.h <<\_ACEOF 3986#define HAVE_C99_FORMAT 1 3987_ACEOF 3988 3989fi 3990 3991{ echo "$as_me:$LINENO: checking for C99 variadic macro support" >&5 3992echo $ECHO_N "checking for C99 variadic macro support... $ECHO_C" >&6; } 3993if test "${ac_have_variadic+set}" = set; then 3994 echo $ECHO_N "(cached) $ECHO_C" >&6 3995else 3996 3997 cat >conftest.$ac_ext <<_ACEOF 3998 3999 #define macro(...) func(__VA_ARGS__) 4000 int func(int a, ...); 4001 int test() { return macro(1, 2, 3); } 4002 4003_ACEOF 4004rm -f conftest.$ac_objext 4005if { (ac_try="$ac_compile" 4006case "(($ac_try" in 4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4008 *) ac_try_echo=$ac_try;; 4009esac 4010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4011 (eval "$ac_compile") 2>conftest.er1 4012 ac_status=$? 4013 grep -v '^ *+' conftest.er1 >conftest.err 4014 rm -f conftest.er1 4015 cat conftest.err >&5 4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4017 (exit $ac_status); } && { 4018 test -z "$ac_c_werror_flag" || 4019 test ! -s conftest.err 4020 } && test -s conftest.$ac_objext; then 4021 ac_have_variadic=yes 4022else 4023 echo "$as_me: failed program was:" >&5 4024sed 's/^/| /' conftest.$ac_ext >&5 4025 4026 ac_have_variadic=no 4027fi 4028 4029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4030fi 4031{ echo "$as_me:$LINENO: result: $ac_have_variadic" >&5 4032echo "${ECHO_T}$ac_have_variadic" >&6; } 4033if test $ac_have_variadic = yes ; then 4034 4035cat >>confdefs.h <<\_ACEOF 4036#define HAVE_CPP_VARARG_MACRO_GCC 1 4037_ACEOF 4038 4039fi 4040 4041# Byteorder of host 4042{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4043echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4044if test "${ac_cv_c_bigendian+set}" = set; then 4045 echo $ECHO_N "(cached) $ECHO_C" >&6 4046else 4047 # See if sys/param.h defines the BYTE_ORDER macro. 4048cat >conftest.$ac_ext <<_ACEOF 4049/* confdefs.h. */ 4050_ACEOF 4051cat confdefs.h >>conftest.$ac_ext 4052cat >>conftest.$ac_ext <<_ACEOF 4053/* end confdefs.h. */ 4054#include <sys/types.h> 4055#include <sys/param.h> 4056 4057int 4058main () 4059{ 4060#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4061 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4062 bogus endian macros 4063#endif 4064 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069rm -f conftest.$ac_objext 4070if { (ac_try="$ac_compile" 4071case "(($ac_try" in 4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4073 *) ac_try_echo=$ac_try;; 4074esac 4075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4076 (eval "$ac_compile") 2>conftest.er1 4077 ac_status=$? 4078 grep -v '^ *+' conftest.er1 >conftest.err 4079 rm -f conftest.er1 4080 cat conftest.err >&5 4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4082 (exit $ac_status); } && { 4083 test -z "$ac_c_werror_flag" || 4084 test ! -s conftest.err 4085 } && test -s conftest.$ac_objext; then 4086 # It does; now see whether it defined to BIG_ENDIAN or not. 4087cat >conftest.$ac_ext <<_ACEOF 4088/* confdefs.h. */ 4089_ACEOF 4090cat confdefs.h >>conftest.$ac_ext 4091cat >>conftest.$ac_ext <<_ACEOF 4092/* end confdefs.h. */ 4093#include <sys/types.h> 4094#include <sys/param.h> 4095 4096int 4097main () 4098{ 4099#if BYTE_ORDER != BIG_ENDIAN 4100 not big endian 4101#endif 4102 4103 ; 4104 return 0; 4105} 4106_ACEOF 4107rm -f conftest.$ac_objext 4108if { (ac_try="$ac_compile" 4109case "(($ac_try" in 4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4111 *) ac_try_echo=$ac_try;; 4112esac 4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4114 (eval "$ac_compile") 2>conftest.er1 4115 ac_status=$? 4116 grep -v '^ *+' conftest.er1 >conftest.err 4117 rm -f conftest.er1 4118 cat conftest.err >&5 4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4120 (exit $ac_status); } && { 4121 test -z "$ac_c_werror_flag" || 4122 test ! -s conftest.err 4123 } && test -s conftest.$ac_objext; then 4124 ac_cv_c_bigendian=yes 4125else 4126 echo "$as_me: failed program was:" >&5 4127sed 's/^/| /' conftest.$ac_ext >&5 4128 4129 ac_cv_c_bigendian=no 4130fi 4131 4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4133else 4134 echo "$as_me: failed program was:" >&5 4135sed 's/^/| /' conftest.$ac_ext >&5 4136 4137 # It does not; compile a test program. 4138if test "$cross_compiling" = yes; then 4139 # try to guess the endianness by grepping values into an object file 4140 ac_cv_c_bigendian=unknown 4141 cat >conftest.$ac_ext <<_ACEOF 4142/* confdefs.h. */ 4143_ACEOF 4144cat confdefs.h >>conftest.$ac_ext 4145cat >>conftest.$ac_ext <<_ACEOF 4146/* end confdefs.h. */ 4147short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4148short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4149void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4150short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4151short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4152void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4153int 4154main () 4155{ 4156 _ascii (); _ebcdic (); 4157 ; 4158 return 0; 4159} 4160_ACEOF 4161rm -f conftest.$ac_objext 4162if { (ac_try="$ac_compile" 4163case "(($ac_try" in 4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4165 *) ac_try_echo=$ac_try;; 4166esac 4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4168 (eval "$ac_compile") 2>conftest.er1 4169 ac_status=$? 4170 grep -v '^ *+' conftest.er1 >conftest.err 4171 rm -f conftest.er1 4172 cat conftest.err >&5 4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4174 (exit $ac_status); } && { 4175 test -z "$ac_c_werror_flag" || 4176 test ! -s conftest.err 4177 } && test -s conftest.$ac_objext; then 4178 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4179 ac_cv_c_bigendian=yes 4180fi 4181if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4182 if test "$ac_cv_c_bigendian" = unknown; then 4183 ac_cv_c_bigendian=no 4184 else 4185 # finding both strings is unlikely to happen, but who knows? 4186 ac_cv_c_bigendian=unknown 4187 fi 4188fi 4189else 4190 echo "$as_me: failed program was:" >&5 4191sed 's/^/| /' conftest.$ac_ext >&5 4192 4193 4194fi 4195 4196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4197else 4198 cat >conftest.$ac_ext <<_ACEOF 4199/* confdefs.h. */ 4200_ACEOF 4201cat confdefs.h >>conftest.$ac_ext 4202cat >>conftest.$ac_ext <<_ACEOF 4203/* end confdefs.h. */ 4204$ac_includes_default 4205int 4206main () 4207{ 4208 4209 /* Are we little or big endian? From Harbison&Steele. */ 4210 union 4211 { 4212 long int l; 4213 char c[sizeof (long int)]; 4214 } u; 4215 u.l = 1; 4216 return u.c[sizeof (long int) - 1] == 1; 4217 4218 ; 4219 return 0; 4220} 4221_ACEOF 4222rm -f conftest$ac_exeext 4223if { (ac_try="$ac_link" 4224case "(($ac_try" in 4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4226 *) ac_try_echo=$ac_try;; 4227esac 4228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4229 (eval "$ac_link") 2>&5 4230 ac_status=$? 4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4233 { (case "(($ac_try" in 4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4235 *) ac_try_echo=$ac_try;; 4236esac 4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4238 (eval "$ac_try") 2>&5 4239 ac_status=$? 4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4241 (exit $ac_status); }; }; then 4242 ac_cv_c_bigendian=no 4243else 4244 echo "$as_me: program exited with status $ac_status" >&5 4245echo "$as_me: failed program was:" >&5 4246sed 's/^/| /' conftest.$ac_ext >&5 4247 4248( exit $ac_status ) 4249ac_cv_c_bigendian=yes 4250fi 4251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4252fi 4253 4254 4255fi 4256 4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4258fi 4259{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4260echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4261case $ac_cv_c_bigendian in 4262 yes) 4263 4264cat >>confdefs.h <<\_ACEOF 4265#define HOST_BIG_ENDIAN 4266_ACEOF 4267 ;; 4268 no) 4269 4270cat >>confdefs.h <<\_ACEOF 4271#define HOST_LITTLE_ENDIAN 4272_ACEOF 4273 ;; 4274 *) 4275 { { echo "$as_me:$LINENO: error: unknown endianness 4276presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4277echo "$as_me: error: unknown endianness 4278presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4279 { (exit 1); exit 1; }; } ;; 4280esac 4281 4282 4283 4284# Checks for programs. 4285{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4286echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 4287set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4288if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4289 echo $ECHO_N "(cached) $ECHO_C" >&6 4290else 4291 cat >conftest.make <<\_ACEOF 4292SHELL = /bin/sh 4293all: 4294 @echo '@@@%%%=$(MAKE)=@@@%%%' 4295_ACEOF 4296# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4297case `${MAKE-make} -f conftest.make 2>/dev/null` in 4298 *@@@%%%=?*=@@@%%%*) 4299 eval ac_cv_prog_make_${ac_make}_set=yes;; 4300 *) 4301 eval ac_cv_prog_make_${ac_make}_set=no;; 4302esac 4303rm -f conftest.make 4304fi 4305if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4306 { echo "$as_me:$LINENO: result: yes" >&5 4307echo "${ECHO_T}yes" >&6; } 4308 SET_MAKE= 4309else 4310 { echo "$as_me:$LINENO: result: no" >&5 4311echo "${ECHO_T}no" >&6; } 4312 SET_MAKE="MAKE=${MAKE-make}" 4313fi 4314 4315# Find a good install program. We prefer a C program (faster), 4316# so one script is as good as another. But avoid the broken or 4317# incompatible versions: 4318# SysV /etc/install, /usr/sbin/install 4319# SunOS /usr/etc/install 4320# IRIX /sbin/install 4321# AIX /bin/install 4322# AmigaOS /C/install, which installs bootblocks on floppy discs 4323# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4324# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4325# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4326# OS/2's system install, which has a completely different semantic 4327# ./install, which can be erroneously created by make from ./install.sh. 4328{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4329echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4330if test -z "$INSTALL"; then 4331if test "${ac_cv_path_install+set}" = set; then 4332 echo $ECHO_N "(cached) $ECHO_C" >&6 4333else 4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4335for as_dir in $PATH 4336do 4337 IFS=$as_save_IFS 4338 test -z "$as_dir" && as_dir=. 4339 # Account for people who put trailing slashes in PATH elements. 4340case $as_dir/ in 4341 ./ | .// | /cC/* | \ 4342 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4343 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4344 /usr/ucb/* ) ;; 4345 *) 4346 # OSF1 and SCO ODT 3.0 have their own names for install. 4347 # Don't use installbsd from OSF since it installs stuff as root 4348 # by default. 4349 for ac_prog in ginstall scoinst install; do 4350 for ac_exec_ext in '' $ac_executable_extensions; do 4351 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4352 if test $ac_prog = install && 4353 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4354 # AIX install. It has an incompatible calling convention. 4355 : 4356 elif test $ac_prog = install && 4357 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4358 # program-specific install script used by HP pwplus--don't use. 4359 : 4360 else 4361 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4362 break 3 4363 fi 4364 fi 4365 done 4366 done 4367 ;; 4368esac 4369done 4370IFS=$as_save_IFS 4371 4372 4373fi 4374 if test "${ac_cv_path_install+set}" = set; then 4375 INSTALL=$ac_cv_path_install 4376 else 4377 # As a last resort, use the slow shell script. Don't cache a 4378 # value for INSTALL within a source directory, because that will 4379 # break other packages using the cache if that directory is 4380 # removed, or if the value is a relative name. 4381 INSTALL=$ac_install_sh 4382 fi 4383fi 4384{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4385echo "${ECHO_T}$INSTALL" >&6; } 4386 4387# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4388# It thinks the first close brace ends the variable substitution. 4389test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4390 4391test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4392 4393test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4394 4395for ac_prog in 'bison -y' byacc 4396do 4397 # Extract the first word of "$ac_prog", so it can be a program name with args. 4398set dummy $ac_prog; ac_word=$2 4399{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4401if test "${ac_cv_prog_YACC+set}" = set; then 4402 echo $ECHO_N "(cached) $ECHO_C" >&6 4403else 4404 if test -n "$YACC"; then 4405 ac_cv_prog_YACC="$YACC" # Let the user override the test. 4406else 4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4408for as_dir in $PATH 4409do 4410 IFS=$as_save_IFS 4411 test -z "$as_dir" && as_dir=. 4412 for ac_exec_ext in '' $ac_executable_extensions; do 4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4414 ac_cv_prog_YACC="$ac_prog" 4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4416 break 2 4417 fi 4418done 4419done 4420IFS=$as_save_IFS 4421 4422fi 4423fi 4424YACC=$ac_cv_prog_YACC 4425if test -n "$YACC"; then 4426 { echo "$as_me:$LINENO: result: $YACC" >&5 4427echo "${ECHO_T}$YACC" >&6; } 4428else 4429 { echo "$as_me:$LINENO: result: no" >&5 4430echo "${ECHO_T}no" >&6; } 4431fi 4432 4433 4434 test -n "$YACC" && break 4435done 4436test -n "$YACC" || YACC="yacc" 4437 4438# Extract the first word of "strip", so it can be a program name with args. 4439set dummy strip; ac_word=$2 4440{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4442if test "${ac_cv_prog_strip+set}" = set; then 4443 echo $ECHO_N "(cached) $ECHO_C" >&6 4444else 4445 if test -n "$strip"; then 4446 ac_cv_prog_strip="$strip" # Let the user override the test. 4447else 4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4449for as_dir in $PATH 4450do 4451 IFS=$as_save_IFS 4452 test -z "$as_dir" && as_dir=. 4453 for ac_exec_ext in '' $ac_executable_extensions; do 4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4455 ac_cv_prog_strip="yes" 4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4457 break 2 4458 fi 4459done 4460done 4461IFS=$as_save_IFS 4462 4463 test -z "$ac_cv_prog_strip" && ac_cv_prog_strip="no" 4464fi 4465fi 4466strip=$ac_cv_prog_strip 4467if test -n "$strip"; then 4468 { echo "$as_me:$LINENO: result: $strip" >&5 4469echo "${ECHO_T}$strip" >&6; } 4470else 4471 { echo "$as_me:$LINENO: result: no" >&5 4472echo "${ECHO_T}no" >&6; } 4473fi 4474 4475 4476 4477for ac_prog in flex lex 4478do 4479 # Extract the first word of "$ac_prog", so it can be a program name with args. 4480set dummy $ac_prog; ac_word=$2 4481{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4483if test "${ac_cv_prog_LEX+set}" = set; then 4484 echo $ECHO_N "(cached) $ECHO_C" >&6 4485else 4486 if test -n "$LEX"; then 4487 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4488else 4489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4490for as_dir in $PATH 4491do 4492 IFS=$as_save_IFS 4493 test -z "$as_dir" && as_dir=. 4494 for ac_exec_ext in '' $ac_executable_extensions; do 4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4496 ac_cv_prog_LEX="$ac_prog" 4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4498 break 2 4499 fi 4500done 4501done 4502IFS=$as_save_IFS 4503 4504fi 4505fi 4506LEX=$ac_cv_prog_LEX 4507if test -n "$LEX"; then 4508 { echo "$as_me:$LINENO: result: $LEX" >&5 4509echo "${ECHO_T}$LEX" >&6; } 4510else 4511 { echo "$as_me:$LINENO: result: no" >&5 4512echo "${ECHO_T}no" >&6; } 4513fi 4514 4515 4516 test -n "$LEX" && break 4517done 4518test -n "$LEX" || LEX=":" 4519 4520if test "x$LEX" != "x:"; then 4521 cat >conftest.l <<_ACEOF 4522%% 4523a { ECHO; } 4524b { REJECT; } 4525c { yymore (); } 4526d { yyless (1); } 4527e { yyless (input () != 0); } 4528f { unput (yytext[0]); } 4529. { BEGIN INITIAL; } 4530%% 4531#ifdef YYTEXT_POINTER 4532extern char *yytext; 4533#endif 4534int 4535main (void) 4536{ 4537 return ! yylex () + ! yywrap (); 4538} 4539_ACEOF 4540{ (ac_try="$LEX conftest.l" 4541case "(($ac_try" in 4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4543 *) ac_try_echo=$ac_try;; 4544esac 4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4546 (eval "$LEX conftest.l") 2>&5 4547 ac_status=$? 4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4549 (exit $ac_status); } 4550{ echo "$as_me:$LINENO: checking lex output file root" >&5 4551echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } 4552if test "${ac_cv_prog_lex_root+set}" = set; then 4553 echo $ECHO_N "(cached) $ECHO_C" >&6 4554else 4555 4556if test -f lex.yy.c; then 4557 ac_cv_prog_lex_root=lex.yy 4558elif test -f lexyy.c; then 4559 ac_cv_prog_lex_root=lexyy 4560else 4561 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 4562echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 4563 { (exit 1); exit 1; }; } 4564fi 4565fi 4566{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 4567echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } 4568LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4569 4570if test -z "${LEXLIB+set}"; then 4571 { echo "$as_me:$LINENO: checking lex library" >&5 4572echo $ECHO_N "checking lex library... $ECHO_C" >&6; } 4573if test "${ac_cv_lib_lex+set}" = set; then 4574 echo $ECHO_N "(cached) $ECHO_C" >&6 4575else 4576 4577 ac_save_LIBS=$LIBS 4578 ac_cv_lib_lex='none needed' 4579 for ac_lib in '' -lfl -ll; do 4580 LIBS="$ac_lib $ac_save_LIBS" 4581 cat >conftest.$ac_ext <<_ACEOF 4582`cat $LEX_OUTPUT_ROOT.c` 4583_ACEOF 4584rm -f conftest.$ac_objext conftest$ac_exeext 4585if { (ac_try="$ac_link" 4586case "(($ac_try" in 4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4588 *) ac_try_echo=$ac_try;; 4589esac 4590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4591 (eval "$ac_link") 2>conftest.er1 4592 ac_status=$? 4593 grep -v '^ *+' conftest.er1 >conftest.err 4594 rm -f conftest.er1 4595 cat conftest.err >&5 4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4597 (exit $ac_status); } && { 4598 test -z "$ac_c_werror_flag" || 4599 test ! -s conftest.err 4600 } && test -s conftest$ac_exeext && 4601 $as_test_x conftest$ac_exeext; then 4602 ac_cv_lib_lex=$ac_lib 4603else 4604 echo "$as_me: failed program was:" >&5 4605sed 's/^/| /' conftest.$ac_ext >&5 4606 4607 4608fi 4609 4610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4611 conftest$ac_exeext conftest.$ac_ext 4612 test "$ac_cv_lib_lex" != 'none needed' && break 4613 done 4614 LIBS=$ac_save_LIBS 4615 4616fi 4617{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 4618echo "${ECHO_T}$ac_cv_lib_lex" >&6; } 4619 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4620fi 4621 4622 4623{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 4624echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } 4625if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 4626 echo $ECHO_N "(cached) $ECHO_C" >&6 4627else 4628 # POSIX says lex can declare yytext either as a pointer or an array; the 4629# default is implementation-dependent. Figure out which it is, since 4630# not all implementations provide the %pointer and %array declarations. 4631ac_cv_prog_lex_yytext_pointer=no 4632ac_save_LIBS=$LIBS 4633LIBS="$LEXLIB $ac_save_LIBS" 4634cat >conftest.$ac_ext <<_ACEOF 4635#define YYTEXT_POINTER 1 4636`cat $LEX_OUTPUT_ROOT.c` 4637_ACEOF 4638rm -f conftest.$ac_objext conftest$ac_exeext 4639if { (ac_try="$ac_link" 4640case "(($ac_try" in 4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4642 *) ac_try_echo=$ac_try;; 4643esac 4644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4645 (eval "$ac_link") 2>conftest.er1 4646 ac_status=$? 4647 grep -v '^ *+' conftest.er1 >conftest.err 4648 rm -f conftest.er1 4649 cat conftest.err >&5 4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4651 (exit $ac_status); } && { 4652 test -z "$ac_c_werror_flag" || 4653 test ! -s conftest.err 4654 } && test -s conftest$ac_exeext && 4655 $as_test_x conftest$ac_exeext; then 4656 ac_cv_prog_lex_yytext_pointer=yes 4657else 4658 echo "$as_me: failed program was:" >&5 4659sed 's/^/| /' conftest.$ac_ext >&5 4660 4661 4662fi 4663 4664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4665 conftest$ac_exeext conftest.$ac_ext 4666LIBS=$ac_save_LIBS 4667 4668fi 4669{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 4670echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } 4671if test $ac_cv_prog_lex_yytext_pointer = yes; then 4672 4673cat >>confdefs.h <<\_ACEOF 4674#define YYTEXT_POINTER 1 4675_ACEOF 4676 4677fi 4678rm -f conftest.l $LEX_OUTPUT_ROOT.c 4679 4680fi 4681if test "$LEX" = flex ; then 4682 4683cat >>confdefs.h <<_ACEOF 4684#define ISFLEX 1 4685_ACEOF 4686 4687fi 4688 4689# Checks for libraries. 4690 4691# Checks for header files. 4692# AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h]) 4693 4694 4695 4696for ac_header in string.h malloc.h libgen.h 4697do 4698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4700 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4703 echo $ECHO_N "(cached) $ECHO_C" >&6 4704fi 4705ac_res=`eval echo '${'$as_ac_Header'}'` 4706 { echo "$as_me:$LINENO: result: $ac_res" >&5 4707echo "${ECHO_T}$ac_res" >&6; } 4708else 4709 # Is the header compilable? 4710{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4712cat >conftest.$ac_ext <<_ACEOF 4713/* confdefs.h. */ 4714_ACEOF 4715cat confdefs.h >>conftest.$ac_ext 4716cat >>conftest.$ac_ext <<_ACEOF 4717/* end confdefs.h. */ 4718$ac_includes_default 4719#include <$ac_header> 4720_ACEOF 4721rm -f conftest.$ac_objext 4722if { (ac_try="$ac_compile" 4723case "(($ac_try" in 4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4725 *) ac_try_echo=$ac_try;; 4726esac 4727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4728 (eval "$ac_compile") 2>conftest.er1 4729 ac_status=$? 4730 grep -v '^ *+' conftest.er1 >conftest.err 4731 rm -f conftest.er1 4732 cat conftest.err >&5 4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4734 (exit $ac_status); } && { 4735 test -z "$ac_c_werror_flag" || 4736 test ! -s conftest.err 4737 } && test -s conftest.$ac_objext; then 4738 ac_header_compiler=yes 4739else 4740 echo "$as_me: failed program was:" >&5 4741sed 's/^/| /' conftest.$ac_ext >&5 4742 4743 ac_header_compiler=no 4744fi 4745 4746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4748echo "${ECHO_T}$ac_header_compiler" >&6; } 4749 4750# Is the header present? 4751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4753cat >conftest.$ac_ext <<_ACEOF 4754/* confdefs.h. */ 4755_ACEOF 4756cat confdefs.h >>conftest.$ac_ext 4757cat >>conftest.$ac_ext <<_ACEOF 4758/* end confdefs.h. */ 4759#include <$ac_header> 4760_ACEOF 4761if { (ac_try="$ac_cpp conftest.$ac_ext" 4762case "(($ac_try" in 4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4764 *) ac_try_echo=$ac_try;; 4765esac 4766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4768 ac_status=$? 4769 grep -v '^ *+' conftest.er1 >conftest.err 4770 rm -f conftest.er1 4771 cat conftest.err >&5 4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4773 (exit $ac_status); } >/dev/null && { 4774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4775 test ! -s conftest.err 4776 }; then 4777 ac_header_preproc=yes 4778else 4779 echo "$as_me: failed program was:" >&5 4780sed 's/^/| /' conftest.$ac_ext >&5 4781 4782 ac_header_preproc=no 4783fi 4784 4785rm -f conftest.err conftest.$ac_ext 4786{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4787echo "${ECHO_T}$ac_header_preproc" >&6; } 4788 4789# So? What about this header? 4790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4791 yes:no: ) 4792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4796 ac_header_preproc=yes 4797 ;; 4798 no:yes:* ) 4799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4806echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4811 ( cat <<\_ASBOX 4812## ------------------------------------- ## 4813## Report this to <pcc-list@ludd.ltu.se> ## 4814## ------------------------------------- ## 4815_ASBOX 4816 ) | sed "s/^/$as_me: WARNING: /" >&2 4817 ;; 4818esac 4819{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4822 echo $ECHO_N "(cached) $ECHO_C" >&6 4823else 4824 eval "$as_ac_Header=\$ac_header_preproc" 4825fi 4826ac_res=`eval echo '${'$as_ac_Header'}'` 4827 { echo "$as_me:$LINENO: result: $ac_res" >&5 4828echo "${ECHO_T}$ac_res" >&6; } 4829 4830fi 4831if test `eval echo '${'$as_ac_Header'}'` = yes; then 4832 cat >>confdefs.h <<_ACEOF 4833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4834_ACEOF 4835 4836fi 4837 4838done 4839 4840{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 4841echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 4842if test "${ac_cv_header_sys_wait_h+set}" = set; then 4843 echo $ECHO_N "(cached) $ECHO_C" >&6 4844else 4845 cat >conftest.$ac_ext <<_ACEOF 4846/* confdefs.h. */ 4847_ACEOF 4848cat confdefs.h >>conftest.$ac_ext 4849cat >>conftest.$ac_ext <<_ACEOF 4850/* end confdefs.h. */ 4851#include <sys/types.h> 4852#include <sys/wait.h> 4853#ifndef WEXITSTATUS 4854# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4855#endif 4856#ifndef WIFEXITED 4857# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4858#endif 4859 4860int 4861main () 4862{ 4863 int s; 4864 wait (&s); 4865 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4866 ; 4867 return 0; 4868} 4869_ACEOF 4870rm -f conftest.$ac_objext 4871if { (ac_try="$ac_compile" 4872case "(($ac_try" in 4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4874 *) ac_try_echo=$ac_try;; 4875esac 4876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4877 (eval "$ac_compile") 2>conftest.er1 4878 ac_status=$? 4879 grep -v '^ *+' conftest.er1 >conftest.err 4880 rm -f conftest.er1 4881 cat conftest.err >&5 4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4883 (exit $ac_status); } && { 4884 test -z "$ac_c_werror_flag" || 4885 test ! -s conftest.err 4886 } && test -s conftest.$ac_objext; then 4887 ac_cv_header_sys_wait_h=yes 4888else 4889 echo "$as_me: failed program was:" >&5 4890sed 's/^/| /' conftest.$ac_ext >&5 4891 4892 ac_cv_header_sys_wait_h=no 4893fi 4894 4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4896fi 4897{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 4898echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 4899if test $ac_cv_header_sys_wait_h = yes; then 4900 4901cat >>confdefs.h <<\_ACEOF 4902#define HAVE_SYS_WAIT_H 1 4903_ACEOF 4904 4905fi 4906 4907 4908# Checks for library functions. 4909## AC_FUNC_STRTOD 4910# AC_FUNC_VPRINTF 4911# AC_CHECK_FUNCS([memset strchr strdup strrchr strtol]) 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922for ac_func in strtold vsnprintf snprintf mkstemp strlcat strlcpy basename getopt ffs vfork 4923do 4924as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4925{ echo "$as_me:$LINENO: checking for $ac_func" >&5 4926echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 4927if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 4928 echo $ECHO_N "(cached) $ECHO_C" >&6 4929else 4930 cat >conftest.$ac_ext <<_ACEOF 4931/* confdefs.h. */ 4932_ACEOF 4933cat confdefs.h >>conftest.$ac_ext 4934cat >>conftest.$ac_ext <<_ACEOF 4935/* end confdefs.h. */ 4936/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4937 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4938#define $ac_func innocuous_$ac_func 4939 4940/* System header to define __stub macros and hopefully few prototypes, 4941 which can conflict with char $ac_func (); below. 4942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4943 <limits.h> exists even on freestanding compilers. */ 4944 4945#ifdef __STDC__ 4946# include <limits.h> 4947#else 4948# include <assert.h> 4949#endif 4950 4951#undef $ac_func 4952 4953/* Override any GCC internal prototype to avoid an error. 4954 Use char because int might match the return type of a GCC 4955 builtin and then its argument prototype would still apply. */ 4956#ifdef __cplusplus 4957extern "C" 4958#endif 4959char $ac_func (); 4960/* The GNU C library defines this for functions which it implements 4961 to always fail with ENOSYS. Some functions are actually named 4962 something starting with __ and the normal name is an alias. */ 4963#if defined __stub_$ac_func || defined __stub___$ac_func 4964choke me 4965#endif 4966 4967int 4968main () 4969{ 4970return $ac_func (); 4971 ; 4972 return 0; 4973} 4974_ACEOF 4975rm -f conftest.$ac_objext conftest$ac_exeext 4976if { (ac_try="$ac_link" 4977case "(($ac_try" in 4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4979 *) ac_try_echo=$ac_try;; 4980esac 4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4982 (eval "$ac_link") 2>conftest.er1 4983 ac_status=$? 4984 grep -v '^ *+' conftest.er1 >conftest.err 4985 rm -f conftest.er1 4986 cat conftest.err >&5 4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4988 (exit $ac_status); } && { 4989 test -z "$ac_c_werror_flag" || 4990 test ! -s conftest.err 4991 } && test -s conftest$ac_exeext && 4992 $as_test_x conftest$ac_exeext; then 4993 eval "$as_ac_var=yes" 4994else 4995 echo "$as_me: failed program was:" >&5 4996sed 's/^/| /' conftest.$ac_ext >&5 4997 4998 eval "$as_ac_var=no" 4999fi 5000 5001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5002 conftest$ac_exeext conftest.$ac_ext 5003fi 5004ac_res=`eval echo '${'$as_ac_var'}'` 5005 { echo "$as_me:$LINENO: result: $ac_res" >&5 5006echo "${ECHO_T}$ac_res" >&6; } 5007if test `eval echo '${'$as_ac_var'}'` = yes; then 5008 cat >>confdefs.h <<_ACEOF 5009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5010_ACEOF 5011 5012fi 5013done 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030pcc_major=`echo $PACKAGE_VERSION | awk -F. '{print $1}'` 5031pcc_minor=`echo $PACKAGE_VERSION | awk -F. '{print $2}'` 5032pcc_minorminor=`echo $PACKAGE_VERSION | awk -F. '{print $3}'` 5033versstr="\"$PACKAGE_STRING for $target, $USER@`hostname` `date`\"" 5034 5035 5036cat >>confdefs.h <<_ACEOF 5037#define TARGOS $targos 5038_ACEOF 5039 5040 5041cat >>confdefs.h <<_ACEOF 5042#define TARGOSVER $targosver 5043_ACEOF 5044 5045 5046cat >>confdefs.h <<_ACEOF 5047#define PCC_MAJOR $pcc_major 5048_ACEOF 5049 5050 5051cat >>confdefs.h <<_ACEOF 5052#define PCC_MINOR $pcc_minor 5053_ACEOF 5054 5055 5056cat >>confdefs.h <<_ACEOF 5057#define PCC_MINORMINOR $pcc_minorminor 5058_ACEOF 5059 5060 5061cat >>confdefs.h <<_ACEOF 5062#define VERSSTR $versstr 5063_ACEOF 5064 5065 5066ac_config_files="$ac_config_files Makefile cc/Makefile cc/cc/Makefile cc/cpp/Makefile cc/ccom/Makefile f77/Makefile f77/f77/Makefile f77/fcom/Makefile" 5067 5068cat >confcache <<\_ACEOF 5069# This file is a shell script that caches the results of configure 5070# tests run on this system so they can be shared between configure 5071# scripts and configure runs, see configure's option --config-cache. 5072# It is not useful on other systems. If it contains results you don't 5073# want to keep, you may remove or edit it. 5074# 5075# config.status only pays attention to the cache file if you give it 5076# the --recheck option to rerun configure. 5077# 5078# `ac_cv_env_foo' variables (set or unset) will be overridden when 5079# loading this file, other *unset* `ac_cv_foo' will be assigned the 5080# following values. 5081 5082_ACEOF 5083 5084# The following way of writing the cache mishandles newlines in values, 5085# but we know of no workaround that is simple, portable, and efficient. 5086# So, we kill variables containing newlines. 5087# Ultrix sh set writes to stderr and can't be redirected directly, 5088# and sets the high bit in the cache file unless we assign to the vars. 5089( 5090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5091 eval ac_val=\$$ac_var 5092 case $ac_val in #( 5093 *${as_nl}*) 5094 case $ac_var in #( 5095 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 5096echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 5097 esac 5098 case $ac_var in #( 5099 _ | IFS | as_nl) ;; #( 5100 *) $as_unset $ac_var ;; 5101 esac ;; 5102 esac 5103 done 5104 5105 (set) 2>&1 | 5106 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5107 *${as_nl}ac_space=\ *) 5108 # `set' does not quote correctly, so add quotes (double-quote 5109 # substitution turns \\\\ into \\, and sed turns \\ into \). 5110 sed -n \ 5111 "s/'/'\\\\''/g; 5112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5113 ;; #( 5114 *) 5115 # `set' quotes correctly as required by POSIX, so do not add quotes. 5116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5117 ;; 5118 esac | 5119 sort 5120) | 5121 sed ' 5122 /^ac_cv_env_/b end 5123 t clear 5124 :clear 5125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5126 t end 5127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5128 :end' >>confcache 5129if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5130 if test -w "$cache_file"; then 5131 test "x$cache_file" != "x/dev/null" && 5132 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 5133echo "$as_me: updating cache $cache_file" >&6;} 5134 cat confcache >$cache_file 5135 else 5136 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 5137echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5138 fi 5139fi 5140rm -f confcache 5141 5142test "x$prefix" = xNONE && prefix=$ac_default_prefix 5143# Let make expand exec_prefix. 5144test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5145 5146DEFS=-DHAVE_CONFIG_H 5147 5148ac_libobjs= 5149ac_ltlibobjs= 5150for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5151 # 1. Remove the extension, and $U if already installed. 5152 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5153 ac_i=`echo "$ac_i" | sed "$ac_script"` 5154 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5155 # will be set to the directory where LIBOBJS objects are built. 5156 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5157 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 5158done 5159LIBOBJS=$ac_libobjs 5160 5161LTLIBOBJS=$ac_ltlibobjs 5162 5163 5164 5165: ${CONFIG_STATUS=./config.status} 5166ac_clean_files_save=$ac_clean_files 5167ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5168{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5169echo "$as_me: creating $CONFIG_STATUS" >&6;} 5170cat >$CONFIG_STATUS <<_ACEOF 5171#! $SHELL 5172# Generated by $as_me. 5173# Run this file to recreate the current configuration. 5174# Compiler output produced by configure, useful for debugging 5175# configure, is in config.log if it exists. 5176 5177debug=false 5178ac_cs_recheck=false 5179ac_cs_silent=false 5180SHELL=\${CONFIG_SHELL-$SHELL} 5181_ACEOF 5182 5183cat >>$CONFIG_STATUS <<\_ACEOF 5184## --------------------- ## 5185## M4sh Initialization. ## 5186## --------------------- ## 5187 5188# Be more Bourne compatible 5189DUALCASE=1; export DUALCASE # for MKS sh 5190if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5191 emulate sh 5192 NULLCMD=: 5193 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5194 # is contrary to our usage. Disable this feature. 5195 alias -g '${1+"$@"}'='"$@"' 5196 setopt NO_GLOB_SUBST 5197else 5198 case `(set -o) 2>/dev/null` in 5199 *posix*) set -o posix ;; 5200esac 5201 5202fi 5203 5204 5205 5206 5207# PATH needs CR 5208# Avoid depending upon Character Ranges. 5209as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5210as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5211as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5212as_cr_digits='0123456789' 5213as_cr_alnum=$as_cr_Letters$as_cr_digits 5214 5215# The user is always right. 5216if test "${PATH_SEPARATOR+set}" != set; then 5217 echo "#! /bin/sh" >conf$$.sh 5218 echo "exit 0" >>conf$$.sh 5219 chmod +x conf$$.sh 5220 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5221 PATH_SEPARATOR=';' 5222 else 5223 PATH_SEPARATOR=: 5224 fi 5225 rm -f conf$$.sh 5226fi 5227 5228# Support unset when possible. 5229if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5230 as_unset=unset 5231else 5232 as_unset=false 5233fi 5234 5235 5236# IFS 5237# We need space, tab and new line, in precisely that order. Quoting is 5238# there to prevent editors from complaining about space-tab. 5239# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5240# splitting by setting IFS to empty value.) 5241as_nl=' 5242' 5243IFS=" "" $as_nl" 5244 5245# Find who we are. Look in the path if we contain no directory separator. 5246case $0 in 5247 *[\\/]* ) as_myself=$0 ;; 5248 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5249for as_dir in $PATH 5250do 5251 IFS=$as_save_IFS 5252 test -z "$as_dir" && as_dir=. 5253 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5254done 5255IFS=$as_save_IFS 5256 5257 ;; 5258esac 5259# We did not find ourselves, most probably we were run as `sh COMMAND' 5260# in which case we are not to be found in the path. 5261if test "x$as_myself" = x; then 5262 as_myself=$0 5263fi 5264if test ! -f "$as_myself"; then 5265 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5266 { (exit 1); exit 1; } 5267fi 5268 5269# Work around bugs in pre-3.0 UWIN ksh. 5270for as_var in ENV MAIL MAILPATH 5271do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5272done 5273PS1='$ ' 5274PS2='> ' 5275PS4='+ ' 5276 5277# NLS nuisances. 5278for as_var in \ 5279 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5280 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5281 LC_TELEPHONE LC_TIME 5282do 5283 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 5284 eval $as_var=C; export $as_var 5285 else 5286 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5287 fi 5288done 5289 5290# Required to use basename. 5291if expr a : '\(a\)' >/dev/null 2>&1 && 5292 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5293 as_expr=expr 5294else 5295 as_expr=false 5296fi 5297 5298if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5299 as_basename=basename 5300else 5301 as_basename=false 5302fi 5303 5304 5305# Name of the executable. 5306as_me=`$as_basename -- "$0" || 5307$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5308 X"$0" : 'X\(//\)$' \| \ 5309 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5310echo X/"$0" | 5311 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5312 s//\1/ 5313 q 5314 } 5315 /^X\/\(\/\/\)$/{ 5316 s//\1/ 5317 q 5318 } 5319 /^X\/\(\/\).*/{ 5320 s//\1/ 5321 q 5322 } 5323 s/.*/./; q'` 5324 5325# CDPATH. 5326$as_unset CDPATH 5327 5328 5329 5330 as_lineno_1=$LINENO 5331 as_lineno_2=$LINENO 5332 test "x$as_lineno_1" != "x$as_lineno_2" && 5333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 5334 5335 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5336 # uniformly replaced by the line number. The first 'sed' inserts a 5337 # line-number line after each line using $LINENO; the second 'sed' 5338 # does the real work. The second script uses 'N' to pair each 5339 # line-number line with the line containing $LINENO, and appends 5340 # trailing '-' during substitution so that $LINENO is not a special 5341 # case at line end. 5342 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5343 # scripts with optimization help from Paolo Bonzini. Blame Lee 5344 # E. McMahon (1931-1989) for sed's syntax. :-) 5345 sed -n ' 5346 p 5347 /[$]LINENO/= 5348 ' <$as_myself | 5349 sed ' 5350 s/[$]LINENO.*/&-/ 5351 t lineno 5352 b 5353 :lineno 5354 N 5355 :loop 5356 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 5357 t loop 5358 s/-\n.*// 5359 ' >$as_me.lineno && 5360 chmod +x "$as_me.lineno" || 5361 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 5362 { (exit 1); exit 1; }; } 5363 5364 # Don't try to exec as it changes $[0], causing all sort of problems 5365 # (the dirname of $[0] is not the place where we might find the 5366 # original and so on. Autoconf is especially sensitive to this). 5367 . "./$as_me.lineno" 5368 # Exit status is that of the last command. 5369 exit 5370} 5371 5372 5373if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5374 as_dirname=dirname 5375else 5376 as_dirname=false 5377fi 5378 5379ECHO_C= ECHO_N= ECHO_T= 5380case `echo -n x` in 5381-n*) 5382 case `echo 'x\c'` in 5383 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5384 *) ECHO_C='\c';; 5385 esac;; 5386*) 5387 ECHO_N='-n';; 5388esac 5389 5390if expr a : '\(a\)' >/dev/null 2>&1 && 5391 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5392 as_expr=expr 5393else 5394 as_expr=false 5395fi 5396 5397rm -f conf$$ conf$$.exe conf$$.file 5398if test -d conf$$.dir; then 5399 rm -f conf$$.dir/conf$$.file 5400else 5401 rm -f conf$$.dir 5402 mkdir conf$$.dir 5403fi 5404echo >conf$$.file 5405if ln -s conf$$.file conf$$ 2>/dev/null; then 5406 as_ln_s='ln -s' 5407 # ... but there are two gotchas: 5408 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5409 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5410 # In both cases, we have to default to `cp -p'. 5411 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5412 as_ln_s='cp -p' 5413elif ln conf$$.file conf$$ 2>/dev/null; then 5414 as_ln_s=ln 5415else 5416 as_ln_s='cp -p' 5417fi 5418rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5419rmdir conf$$.dir 2>/dev/null 5420 5421if mkdir -p . 2>/dev/null; then 5422 as_mkdir_p=: 5423else 5424 test -d ./-p && rmdir ./-p 5425 as_mkdir_p=false 5426fi 5427 5428if test -x / >/dev/null 2>&1; then 5429 as_test_x='test -x' 5430else 5431 if ls -dL / >/dev/null 2>&1; then 5432 as_ls_L_option=L 5433 else 5434 as_ls_L_option= 5435 fi 5436 as_test_x=' 5437 eval sh -c '\'' 5438 if test -d "$1"; then 5439 test -d "$1/."; 5440 else 5441 case $1 in 5442 -*)set "./$1";; 5443 esac; 5444 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 5445 ???[sx]*):;;*)false;;esac;fi 5446 '\'' sh 5447 ' 5448fi 5449as_executable_p=$as_test_x 5450 5451# Sed expression to map a string onto a valid CPP name. 5452as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5453 5454# Sed expression to map a string onto a valid variable name. 5455as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5456 5457 5458exec 6>&1 5459 5460# Save the log message, to keep $[0] and so on meaningful, and to 5461# report actual input values of CONFIG_FILES etc. instead of their 5462# values after options handling. 5463ac_log=" 5464This file was extended by pcc $as_me 0.9.9, which was 5465generated by GNU Autoconf 2.61. Invocation command line was 5466 5467 CONFIG_FILES = $CONFIG_FILES 5468 CONFIG_HEADERS = $CONFIG_HEADERS 5469 CONFIG_LINKS = $CONFIG_LINKS 5470 CONFIG_COMMANDS = $CONFIG_COMMANDS 5471 $ $0 $@ 5472 5473on `(hostname || uname -n) 2>/dev/null | sed 1q` 5474" 5475 5476_ACEOF 5477 5478cat >>$CONFIG_STATUS <<_ACEOF 5479# Files that config.status was made for. 5480config_files="$ac_config_files" 5481config_headers="$ac_config_headers" 5482 5483_ACEOF 5484 5485cat >>$CONFIG_STATUS <<\_ACEOF 5486ac_cs_usage="\ 5487\`$as_me' instantiates files from templates according to the 5488current configuration. 5489 5490Usage: $0 [OPTIONS] [FILE]... 5491 5492 -h, --help print this help, then exit 5493 -V, --version print version number and configuration settings, then exit 5494 -q, --quiet do not print progress messages 5495 -d, --debug don't remove temporary files 5496 --recheck update $as_me by reconfiguring in the same conditions 5497 --file=FILE[:TEMPLATE] 5498 instantiate the configuration file FILE 5499 --header=FILE[:TEMPLATE] 5500 instantiate the configuration header FILE 5501 5502Configuration files: 5503$config_files 5504 5505Configuration headers: 5506$config_headers 5507 5508Report bugs to <bug-autoconf@gnu.org>." 5509 5510_ACEOF 5511cat >>$CONFIG_STATUS <<_ACEOF 5512ac_cs_version="\\ 5513pcc config.status 0.9.9 5514configured by $0, generated by GNU Autoconf 2.61, 5515 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 5516 5517Copyright (C) 2006 Free Software Foundation, Inc. 5518This config.status script is free software; the Free Software Foundation 5519gives unlimited permission to copy, distribute and modify it." 5520 5521ac_pwd='$ac_pwd' 5522srcdir='$srcdir' 5523INSTALL='$INSTALL' 5524_ACEOF 5525 5526cat >>$CONFIG_STATUS <<\_ACEOF 5527# If no file are specified by the user, then we need to provide default 5528# value. By we need to know if files were specified by the user. 5529ac_need_defaults=: 5530while test $# != 0 5531do 5532 case $1 in 5533 --*=*) 5534 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5535 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5536 ac_shift=: 5537 ;; 5538 *) 5539 ac_option=$1 5540 ac_optarg=$2 5541 ac_shift=shift 5542 ;; 5543 esac 5544 5545 case $ac_option in 5546 # Handling of the options. 5547 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5548 ac_cs_recheck=: ;; 5549 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5550 echo "$ac_cs_version"; exit ;; 5551 --debug | --debu | --deb | --de | --d | -d ) 5552 debug=: ;; 5553 --file | --fil | --fi | --f ) 5554 $ac_shift 5555 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5556 ac_need_defaults=false;; 5557 --header | --heade | --head | --hea ) 5558 $ac_shift 5559 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5560 ac_need_defaults=false;; 5561 --he | --h) 5562 # Conflict between --help and --header 5563 { echo "$as_me: error: ambiguous option: $1 5564Try \`$0 --help' for more information." >&2 5565 { (exit 1); exit 1; }; };; 5566 --help | --hel | -h ) 5567 echo "$ac_cs_usage"; exit ;; 5568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5569 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5570 ac_cs_silent=: ;; 5571 5572 # This is an error. 5573 -*) { echo "$as_me: error: unrecognized option: $1 5574Try \`$0 --help' for more information." >&2 5575 { (exit 1); exit 1; }; } ;; 5576 5577 *) ac_config_targets="$ac_config_targets $1" 5578 ac_need_defaults=false ;; 5579 5580 esac 5581 shift 5582done 5583 5584ac_configure_extra_args= 5585 5586if $ac_cs_silent; then 5587 exec 6>/dev/null 5588 ac_configure_extra_args="$ac_configure_extra_args --silent" 5589fi 5590 5591_ACEOF 5592cat >>$CONFIG_STATUS <<_ACEOF 5593if \$ac_cs_recheck; then 5594 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5595 CONFIG_SHELL=$SHELL 5596 export CONFIG_SHELL 5597 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5598fi 5599 5600_ACEOF 5601cat >>$CONFIG_STATUS <<\_ACEOF 5602exec 5>>config.log 5603{ 5604 echo 5605 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5606## Running $as_me. ## 5607_ASBOX 5608 echo "$ac_log" 5609} >&5 5610 5611_ACEOF 5612cat >>$CONFIG_STATUS <<_ACEOF 5613_ACEOF 5614 5615cat >>$CONFIG_STATUS <<\_ACEOF 5616 5617# Handling of arguments. 5618for ac_config_target in $ac_config_targets 5619do 5620 case $ac_config_target in 5621 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5622 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5623 "cc/Makefile") CONFIG_FILES="$CONFIG_FILES cc/Makefile" ;; 5624 "cc/cc/Makefile") CONFIG_FILES="$CONFIG_FILES cc/cc/Makefile" ;; 5625 "cc/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES cc/cpp/Makefile" ;; 5626 "cc/ccom/Makefile") CONFIG_FILES="$CONFIG_FILES cc/ccom/Makefile" ;; 5627 "f77/Makefile") CONFIG_FILES="$CONFIG_FILES f77/Makefile" ;; 5628 "f77/f77/Makefile") CONFIG_FILES="$CONFIG_FILES f77/f77/Makefile" ;; 5629 "f77/fcom/Makefile") CONFIG_FILES="$CONFIG_FILES f77/fcom/Makefile" ;; 5630 5631 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5632echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5633 { (exit 1); exit 1; }; };; 5634 esac 5635done 5636 5637 5638# If the user did not use the arguments to specify the items to instantiate, 5639# then the envvar interface is used. Set only those that are not. 5640# We use the long form for the default assignment because of an extremely 5641# bizarre bug on SunOS 4.1.3. 5642if $ac_need_defaults; then 5643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5644 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5645fi 5646 5647# Have a temporary directory for convenience. Make it in the build tree 5648# simply because there is no reason against having it here, and in addition, 5649# creating and moving files from /tmp can sometimes cause problems. 5650# Hook for its removal unless debugging. 5651# Note that there is a small window in which the directory will not be cleaned: 5652# after its creation but before its name has been assigned to `$tmp'. 5653$debug || 5654{ 5655 tmp= 5656 trap 'exit_status=$? 5657 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5658' 0 5659 trap '{ (exit 1); exit 1; }' 1 2 13 15 5660} 5661# Create a (secure) tmp directory for tmp files. 5662 5663{ 5664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5665 test -n "$tmp" && test -d "$tmp" 5666} || 5667{ 5668 tmp=./conf$$-$RANDOM 5669 (umask 077 && mkdir "$tmp") 5670} || 5671{ 5672 echo "$me: cannot create a temporary directory in ." >&2 5673 { (exit 1); exit 1; } 5674} 5675 5676# 5677# Set up the sed scripts for CONFIG_FILES section. 5678# 5679 5680# No need to generate the scripts if there are no CONFIG_FILES. 5681# This happens for instance when ./config.status config.h 5682if test -n "$CONFIG_FILES"; then 5683 5684_ACEOF 5685 5686 5687 5688ac_delim='%!_!# ' 5689for ac_last_try in false false false false false :; do 5690 cat >conf$$subs.sed <<_ACEOF 5691SHELL!$SHELL$ac_delim 5692PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 5693PACKAGE_NAME!$PACKAGE_NAME$ac_delim 5694PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 5695PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 5696PACKAGE_STRING!$PACKAGE_STRING$ac_delim 5697PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 5698exec_prefix!$exec_prefix$ac_delim 5699prefix!$prefix$ac_delim 5700program_transform_name!$program_transform_name$ac_delim 5701bindir!$bindir$ac_delim 5702sbindir!$sbindir$ac_delim 5703libexecdir!$libexecdir$ac_delim 5704datarootdir!$datarootdir$ac_delim 5705datadir!$datadir$ac_delim 5706sysconfdir!$sysconfdir$ac_delim 5707sharedstatedir!$sharedstatedir$ac_delim 5708localstatedir!$localstatedir$ac_delim 5709includedir!$includedir$ac_delim 5710oldincludedir!$oldincludedir$ac_delim 5711docdir!$docdir$ac_delim 5712infodir!$infodir$ac_delim 5713htmldir!$htmldir$ac_delim 5714dvidir!$dvidir$ac_delim 5715pdfdir!$pdfdir$ac_delim 5716psdir!$psdir$ac_delim 5717libdir!$libdir$ac_delim 5718localedir!$localedir$ac_delim 5719mandir!$mandir$ac_delim 5720DEFS!$DEFS$ac_delim 5721ECHO_C!$ECHO_C$ac_delim 5722ECHO_N!$ECHO_N$ac_delim 5723ECHO_T!$ECHO_T$ac_delim 5724LIBS!$LIBS$ac_delim 5725build_alias!$build_alias$ac_delim 5726host_alias!$host_alias$ac_delim 5727target_alias!$target_alias$ac_delim 5728build!$build$ac_delim 5729build_cpu!$build_cpu$ac_delim 5730build_vendor!$build_vendor$ac_delim 5731build_os!$build_os$ac_delim 5732host!$host$ac_delim 5733host_cpu!$host_cpu$ac_delim 5734host_vendor!$host_vendor$ac_delim 5735host_os!$host_os$ac_delim 5736target!$target$ac_delim 5737target_cpu!$target_cpu$ac_delim 5738target_vendor!$target_vendor$ac_delim 5739target_os!$target_os$ac_delim 5740BINPREFIX!$BINPREFIX$ac_delim 5741CC!$CC$ac_delim 5742CFLAGS!$CFLAGS$ac_delim 5743LDFLAGS!$LDFLAGS$ac_delim 5744CPPFLAGS!$CPPFLAGS$ac_delim 5745ac_ct_CC!$ac_ct_CC$ac_delim 5746EXEEXT!$EXEEXT$ac_delim 5747OBJEXT!$OBJEXT$ac_delim 5748CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim 5749CPP!$CPP$ac_delim 5750GREP!$GREP$ac_delim 5751EGREP!$EGREP$ac_delim 5752SET_MAKE!$SET_MAKE$ac_delim 5753INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 5754INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 5755INSTALL_DATA!$INSTALL_DATA$ac_delim 5756YACC!$YACC$ac_delim 5757YFLAGS!$YFLAGS$ac_delim 5758strip!$strip$ac_delim 5759LEX!$LEX$ac_delim 5760LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim 5761LEXLIB!$LEXLIB$ac_delim 5762targos!$targos$ac_delim 5763targosver!$targosver$ac_delim 5764targmach!$targmach$ac_delim 5765ADD_CFLAGS!$ADD_CFLAGS$ac_delim 5766ADD_CPPFLAGS!$ADD_CPPFLAGS$ac_delim 5767LIBOBJS!$LIBOBJS$ac_delim 5768LTLIBOBJS!$LTLIBOBJS$ac_delim 5769_ACEOF 5770 5771 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then 5772 break 5773 elif $ac_last_try; then 5774 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 5775echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5776 { (exit 1); exit 1; }; } 5777 else 5778 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5779 fi 5780done 5781 5782ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 5783if test -n "$ac_eof"; then 5784 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 5785 ac_eof=`expr $ac_eof + 1` 5786fi 5787 5788cat >>$CONFIG_STATUS <<_ACEOF 5789cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 5790/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 5791_ACEOF 5792sed ' 5793s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 5794s/^/s,@/; s/!/@,|#_!!_#|/ 5795:n 5796t n 5797s/'"$ac_delim"'$/,g/; t 5798s/$/\\/; p 5799N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 5800' >>$CONFIG_STATUS <conf$$subs.sed 5801rm -f conf$$subs.sed 5802cat >>$CONFIG_STATUS <<_ACEOF 5803:end 5804s/|#_!!_#|//g 5805CEOF$ac_eof 5806_ACEOF 5807 5808 5809# VPATH may cause trouble with some makes, so we remove $(srcdir), 5810# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5811# trailing colons and then remove the whole line if VPATH becomes empty 5812# (actually we leave an empty line to preserve line numbers). 5813if test "x$srcdir" = x.; then 5814 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5815s/:*\$(srcdir):*/:/ 5816s/:*\${srcdir}:*/:/ 5817s/:*@srcdir@:*/:/ 5818s/^\([^=]*=[ ]*\):*/\1/ 5819s/:*$// 5820s/^[^=]*=[ ]*$// 5821}' 5822fi 5823 5824cat >>$CONFIG_STATUS <<\_ACEOF 5825fi # test -n "$CONFIG_FILES" 5826 5827 5828for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 5829do 5830 case $ac_tag in 5831 :[FHLC]) ac_mode=$ac_tag; continue;; 5832 esac 5833 case $ac_mode$ac_tag in 5834 :[FHL]*:*);; 5835 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 5836echo "$as_me: error: Invalid tag $ac_tag." >&2;} 5837 { (exit 1); exit 1; }; };; 5838 :[FH]-) ac_tag=-:-;; 5839 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5840 esac 5841 ac_save_IFS=$IFS 5842 IFS=: 5843 set x $ac_tag 5844 IFS=$ac_save_IFS 5845 shift 5846 ac_file=$1 5847 shift 5848 5849 case $ac_mode in 5850 :L) ac_source=$1;; 5851 :[FH]) 5852 ac_file_inputs= 5853 for ac_f 5854 do 5855 case $ac_f in 5856 -) ac_f="$tmp/stdin";; 5857 *) # Look for the file first in the build tree, then in the source tree 5858 # (if the path is not absolute). The absolute path cannot be DOS-style, 5859 # because $ac_f cannot contain `:'. 5860 test -f "$ac_f" || 5861 case $ac_f in 5862 [\\/$]*) false;; 5863 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5864 esac || 5865 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 5866echo "$as_me: error: cannot find input file: $ac_f" >&2;} 5867 { (exit 1); exit 1; }; };; 5868 esac 5869 ac_file_inputs="$ac_file_inputs $ac_f" 5870 done 5871 5872 # Let's still pretend it is `configure' which instantiates (i.e., don't 5873 # use $as_me), people would be surprised to read: 5874 # /* config.h. Generated by config.status. */ 5875 configure_input="Generated from "`IFS=: 5876 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 5877 if test x"$ac_file" != x-; then 5878 configure_input="$ac_file. $configure_input" 5879 { echo "$as_me:$LINENO: creating $ac_file" >&5 5880echo "$as_me: creating $ac_file" >&6;} 5881 fi 5882 5883 case $ac_tag in 5884 *:-:* | *:-) cat >"$tmp/stdin";; 5885 esac 5886 ;; 5887 esac 5888 5889 ac_dir=`$as_dirname -- "$ac_file" || 5890$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5891 X"$ac_file" : 'X\(//\)[^/]' \| \ 5892 X"$ac_file" : 'X\(//\)$' \| \ 5893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5894echo X"$ac_file" | 5895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5896 s//\1/ 5897 q 5898 } 5899 /^X\(\/\/\)[^/].*/{ 5900 s//\1/ 5901 q 5902 } 5903 /^X\(\/\/\)$/{ 5904 s//\1/ 5905 q 5906 } 5907 /^X\(\/\).*/{ 5908 s//\1/ 5909 q 5910 } 5911 s/.*/./; q'` 5912 { as_dir="$ac_dir" 5913 case $as_dir in #( 5914 -*) as_dir=./$as_dir;; 5915 esac 5916 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 5917 as_dirs= 5918 while :; do 5919 case $as_dir in #( 5920 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 5921 *) as_qdir=$as_dir;; 5922 esac 5923 as_dirs="'$as_qdir' $as_dirs" 5924 as_dir=`$as_dirname -- "$as_dir" || 5925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5926 X"$as_dir" : 'X\(//\)[^/]' \| \ 5927 X"$as_dir" : 'X\(//\)$' \| \ 5928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5929echo X"$as_dir" | 5930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5931 s//\1/ 5932 q 5933 } 5934 /^X\(\/\/\)[^/].*/{ 5935 s//\1/ 5936 q 5937 } 5938 /^X\(\/\/\)$/{ 5939 s//\1/ 5940 q 5941 } 5942 /^X\(\/\).*/{ 5943 s//\1/ 5944 q 5945 } 5946 s/.*/./; q'` 5947 test -d "$as_dir" && break 5948 done 5949 test -z "$as_dirs" || eval "mkdir $as_dirs" 5950 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 5951echo "$as_me: error: cannot create directory $as_dir" >&2;} 5952 { (exit 1); exit 1; }; }; } 5953 ac_builddir=. 5954 5955case "$ac_dir" in 5956.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5957*) 5958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5959 # A ".." for each directory in $ac_dir_suffix. 5960 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 5961 case $ac_top_builddir_sub in 5962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5964 esac ;; 5965esac 5966ac_abs_top_builddir=$ac_pwd 5967ac_abs_builddir=$ac_pwd$ac_dir_suffix 5968# for backward compatibility: 5969ac_top_builddir=$ac_top_build_prefix 5970 5971case $srcdir in 5972 .) # We are building in place. 5973 ac_srcdir=. 5974 ac_top_srcdir=$ac_top_builddir_sub 5975 ac_abs_top_srcdir=$ac_pwd ;; 5976 [\\/]* | ?:[\\/]* ) # Absolute name. 5977 ac_srcdir=$srcdir$ac_dir_suffix; 5978 ac_top_srcdir=$srcdir 5979 ac_abs_top_srcdir=$srcdir ;; 5980 *) # Relative name. 5981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5982 ac_top_srcdir=$ac_top_build_prefix$srcdir 5983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5984esac 5985ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5986 5987 5988 case $ac_mode in 5989 :F) 5990 # 5991 # CONFIG_FILE 5992 # 5993 5994 case $INSTALL in 5995 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5996 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 5997 esac 5998_ACEOF 5999 6000cat >>$CONFIG_STATUS <<\_ACEOF 6001# If the template does not know about datarootdir, expand it. 6002# FIXME: This hack should be removed a few years after 2.60. 6003ac_datarootdir_hack=; ac_datarootdir_seen= 6004 6005case `sed -n '/datarootdir/ { 6006 p 6007 q 6008} 6009/@datadir@/p 6010/@docdir@/p 6011/@infodir@/p 6012/@localedir@/p 6013/@mandir@/p 6014' $ac_file_inputs` in 6015*datarootdir*) ac_datarootdir_seen=yes;; 6016*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6017 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6018echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6019_ACEOF 6020cat >>$CONFIG_STATUS <<_ACEOF 6021 ac_datarootdir_hack=' 6022 s&@datadir@&$datadir&g 6023 s&@docdir@&$docdir&g 6024 s&@infodir@&$infodir&g 6025 s&@localedir@&$localedir&g 6026 s&@mandir@&$mandir&g 6027 s&\\\${datarootdir}&$datarootdir&g' ;; 6028esac 6029_ACEOF 6030 6031# Neutralize VPATH when `$srcdir' = `.'. 6032# Shell code in configure.ac might set extrasub. 6033# FIXME: do we really want to maintain this feature? 6034cat >>$CONFIG_STATUS <<_ACEOF 6035 sed "$ac_vpsub 6036$extrasub 6037_ACEOF 6038cat >>$CONFIG_STATUS <<\_ACEOF 6039:t 6040/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6041s&@configure_input@&$configure_input&;t t 6042s&@top_builddir@&$ac_top_builddir_sub&;t t 6043s&@srcdir@&$ac_srcdir&;t t 6044s&@abs_srcdir@&$ac_abs_srcdir&;t t 6045s&@top_srcdir@&$ac_top_srcdir&;t t 6046s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6047s&@builddir@&$ac_builddir&;t t 6048s&@abs_builddir@&$ac_abs_builddir&;t t 6049s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6050s&@INSTALL@&$ac_INSTALL&;t t 6051$ac_datarootdir_hack 6052" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 6053 6054test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6055 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6056 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6057 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6058which seems to be undefined. Please make sure it is defined." >&5 6059echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6060which seems to be undefined. Please make sure it is defined." >&2;} 6061 6062 rm -f "$tmp/stdin" 6063 case $ac_file in 6064 -) cat "$tmp/out"; rm -f "$tmp/out";; 6065 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 6066 esac 6067 ;; 6068 :H) 6069 # 6070 # CONFIG_HEADER 6071 # 6072_ACEOF 6073 6074# Transform confdefs.h into a sed script `conftest.defines', that 6075# substitutes the proper values into config.h.in to produce config.h. 6076rm -f conftest.defines conftest.tail 6077# First, append a space to every undef/define line, to ease matching. 6078echo 's/$/ /' >conftest.defines 6079# Then, protect against being on the right side of a sed subst, or in 6080# an unquoted here document, in config.status. If some macros were 6081# called several times there might be several #defines for the same 6082# symbol, which is useless. But do not sort them, since the last 6083# AC_DEFINE must be honored. 6084ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6085# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 6086# NAME is the cpp macro being defined, VALUE is the value it is being given. 6087# PARAMS is the parameter list in the macro definition--in most cases, it's 6088# just an empty string. 6089ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 6090ac_dB='\\)[ (].*,\\1define\\2' 6091ac_dC=' ' 6092ac_dD=' ,' 6093 6094uniq confdefs.h | 6095 sed -n ' 6096 t rset 6097 :rset 6098 s/^[ ]*#[ ]*define[ ][ ]*// 6099 t ok 6100 d 6101 :ok 6102 s/[\\&,]/\\&/g 6103 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 6104 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 6105 ' >>conftest.defines 6106 6107# Remove the space that was appended to ease matching. 6108# Then replace #undef with comments. This is necessary, for 6109# example, in the case of _POSIX_SOURCE, which is predefined and required 6110# on some systems where configure will not decide to define it. 6111# (The regexp can be short, since the line contains either #define or #undef.) 6112echo 's/ $// 6113s,^[ #]*u.*,/* & */,' >>conftest.defines 6114 6115# Break up conftest.defines: 6116ac_max_sed_lines=50 6117 6118# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 6119# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 6120# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 6121# et cetera. 6122ac_in='$ac_file_inputs' 6123ac_out='"$tmp/out1"' 6124ac_nxt='"$tmp/out2"' 6125 6126while : 6127do 6128 # Write a here document: 6129 cat >>$CONFIG_STATUS <<_ACEOF 6130 # First, check the format of the line: 6131 cat >"\$tmp/defines.sed" <<\\CEOF 6132/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 6133/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 6134b 6135:def 6136_ACEOF 6137 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 6138 echo 'CEOF 6139 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 6140 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 6141 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 6142 grep . conftest.tail >/dev/null || break 6143 rm -f conftest.defines 6144 mv conftest.tail conftest.defines 6145done 6146rm -f conftest.defines conftest.tail 6147 6148echo "ac_result=$ac_in" >>$CONFIG_STATUS 6149cat >>$CONFIG_STATUS <<\_ACEOF 6150 if test x"$ac_file" != x-; then 6151 echo "/* $configure_input */" >"$tmp/config.h" 6152 cat "$ac_result" >>"$tmp/config.h" 6153 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 6154 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6155echo "$as_me: $ac_file is unchanged" >&6;} 6156 else 6157 rm -f $ac_file 6158 mv "$tmp/config.h" $ac_file 6159 fi 6160 else 6161 echo "/* $configure_input */" 6162 cat "$ac_result" 6163 fi 6164 rm -f "$tmp/out12" 6165 ;; 6166 6167 6168 esac 6169 6170done # for ac_tag 6171 6172 6173{ (exit 0); exit 0; } 6174_ACEOF 6175chmod +x $CONFIG_STATUS 6176ac_clean_files=$ac_clean_files_save 6177 6178 6179# configure is writing to config.log, and then calls config.status. 6180# config.status does its own redirection, appending to config.log. 6181# Unfortunately, on DOS this fails, as config.log is still kept open 6182# by configure, so config.status won't be able to write to it; its 6183# output is simply discarded. So we exec the FD to /dev/null, 6184# effectively closing config.log, so it can be properly (re)opened and 6185# appended to by config.status. When coming back to configure, we 6186# need to make the FD available again. 6187if test "$no_create" != yes; then 6188 ac_cs_success=: 6189 ac_config_status_args= 6190 test "$silent" = yes && 6191 ac_config_status_args="$ac_config_status_args --quiet" 6192 exec 5>/dev/null 6193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6194 exec 5>>config.log 6195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6196 # would make configure fail if this is the last instruction. 6197 $ac_cs_success || { (exit 1); exit 1; } 6198fi 6199 6200 6201eval "exec_prefix=$exec_prefix" 6202eval "bindir=$bindir" 6203eval "libexecdir=$libexecdir" 6204 6205echo 6206echo "Target CPU is .................... ${targmach}" 6207echo "Target ABI is .................... ${abi}" 6208echo "Target OS is ..................... ${targos}" 6209echo "Compiler is called ............... ${BINPREFIX}pcc${EXEEXT}" 6210echo "Installing compiler into ......... ${bindir}" 6211echo "Installing pre-processor into .... ${libexecdir}" 6212echo "Using assembler .................. ${assembler-<default>}" 6213echo "Using linker ..................... ${linker-<default>}" 6214echo "Using include path ............... ${altincdir-<default>}" 6215echo "Using library path ............... ${altlibdir-<default>}" 6216echo "Has TLS support .................. $tls" 6217echo "Has GCC compatibility ............ $gcccompat" 6218echo "Type of wchar_t is ............... ${wchar_type} (${wchar_size} bytes)" 6219echo 6220echo "Configure finished. Do 'make && make install' to compile and install. 6221" 6222