1#! /bin/sh 2# From configure.in Id: configure.in,v 1.142 2006/04/01 06:36:40 psmith Exp . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.59 for GNU make 3.81. 5# 6# Report bugs to <bug-make@gnu.org>. 7# 8# Copyright (C) 2003 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 Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 set -o posix 24fi 25DUALCASE=1; export DUALCASE # for MKS sh 26 27# Support unset when possible. 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 29 as_unset=unset 30else 31 as_unset=false 32fi 33 34 35# Work around bugs in pre-3.0 UWIN ksh. 36$as_unset ENV MAIL MAILPATH 37PS1='$ ' 38PS2='> ' 39PS4='+ ' 40 41# NLS nuisances. 42for as_var in \ 43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 45 LC_TELEPHONE LC_TIME 46do 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 48 eval $as_var=C; export $as_var 49 else 50 $as_unset $as_var 51 fi 52done 53 54# Required to use basename. 55if expr a : '\(a\)' >/dev/null 2>&1; then 56 as_expr=expr 57else 58 as_expr=false 59fi 60 61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 62 as_basename=basename 63else 64 as_basename=false 65fi 66 67 68# Name of the executable. 69as_me=`$as_basename "$0" || 70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 71 X"$0" : 'X\(//\)$' \| \ 72 X"$0" : 'X\(/\)$' \| \ 73 . : '\(.\)' 2>/dev/null || 74echo X/"$0" | 75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 76 /^X\/\(\/\/\)$/{ s//\1/; q; } 77 /^X\/\(\/\).*/{ s//\1/; q; } 78 s/.*/./; q'` 79 80 81# PATH needs CR, and LINENO needs CR and PATH. 82# Avoid depending upon Character Ranges. 83as_cr_letters='abcdefghijklmnopqrstuvwxyz' 84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 85as_cr_Letters=$as_cr_letters$as_cr_LETTERS 86as_cr_digits='0123456789' 87as_cr_alnum=$as_cr_Letters$as_cr_digits 88 89# The user is always right. 90if test "${PATH_SEPARATOR+set}" != set; then 91 echo "#! /bin/sh" >conf$$.sh 92 echo "exit 0" >>conf$$.sh 93 chmod +x conf$$.sh 94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 95 PATH_SEPARATOR=';' 96 else 97 PATH_SEPARATOR=: 98 fi 99 rm -f conf$$.sh 100fi 101 102 103 as_lineno_1=$LINENO 104 as_lineno_2=$LINENO 105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 106 test "x$as_lineno_1" != "x$as_lineno_2" && 107 test "x$as_lineno_3" = "x$as_lineno_2" || { 108 # Find who we are. Look in the path if we contain no path at all 109 # relative or not. 110 case $0 in 111 *[\\/]* ) as_myself=$0 ;; 112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 113for as_dir in $PATH 114do 115 IFS=$as_save_IFS 116 test -z "$as_dir" && as_dir=. 117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 118done 119 120 ;; 121 esac 122 # We did not find ourselves, most probably we were run as `sh COMMAND' 123 # in which case we are not to be found in the path. 124 if test "x$as_myself" = x; then 125 as_myself=$0 126 fi 127 if test ! -f "$as_myself"; then 128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 129 { (exit 1); exit 1; }; } 130 fi 131 case $CONFIG_SHELL in 132 '') 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 135do 136 IFS=$as_save_IFS 137 test -z "$as_dir" && as_dir=. 138 for as_base in sh bash ksh sh5; do 139 case $as_dir in 140 /*) 141 if ("$as_dir/$as_base" -c ' 142 as_lineno_1=$LINENO 143 as_lineno_2=$LINENO 144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 145 test "x$as_lineno_1" != "x$as_lineno_2" && 146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 149 CONFIG_SHELL=$as_dir/$as_base 150 export CONFIG_SHELL 151 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 152 fi;; 153 esac 154 done 155done 156;; 157 esac 158 159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 160 # uniformly replaced by the line number. The first 'sed' inserts a 161 # line-number line before each line; the second 'sed' does the real 162 # work. The second script uses 'N' to pair each line-number line 163 # with the numbered line, and appends trailing '-' during 164 # substitution so that $LINENO is not a special case at line end. 165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 167 sed '=' <$as_myself | 168 sed ' 169 N 170 s,$,-, 171 : loop 172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 173 t loop 174 s,-$,, 175 s,^['$as_cr_digits']*\n,, 176 ' >$as_me.lineno && 177 chmod +x $as_me.lineno || 178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 179 { (exit 1); exit 1; }; } 180 181 # Don't try to exec as it changes $[0], causing all sort of problems 182 # (the dirname of $[0] is not the place where we might find the 183 # original and so on. Autoconf is especially sensible to this). 184 . ./$as_me.lineno 185 # Exit status is that of the last command. 186 exit 187} 188 189 190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 191 *c*,-n*) ECHO_N= ECHO_C=' 192' ECHO_T=' ' ;; 193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 195esac 196 197if expr a : '\(a\)' >/dev/null 2>&1; then 198 as_expr=expr 199else 200 as_expr=false 201fi 202 203rm -f conf$$ conf$$.exe conf$$.file 204echo >conf$$.file 205if ln -s conf$$.file conf$$ 2>/dev/null; then 206 # We could just check for DJGPP; but this test a) works b) is more generic 207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 208 if test -f conf$$.exe; then 209 # Don't use ln at all; we don't have any links 210 as_ln_s='cp -p' 211 else 212 as_ln_s='ln -s' 213 fi 214elif ln conf$$.file conf$$ 2>/dev/null; then 215 as_ln_s=ln 216else 217 as_ln_s='cp -p' 218fi 219rm -f conf$$ conf$$.exe conf$$.file 220 221if mkdir -p . 2>/dev/null; then 222 as_mkdir_p=: 223else 224 test -d ./-p && rmdir ./-p 225 as_mkdir_p=false 226fi 227 228as_executable_p="test -f" 229 230# Sed expression to map a string onto a valid CPP name. 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 232 233# Sed expression to map a string onto a valid variable name. 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 235 236 237# IFS 238# We need space, tab and new line, in precisely that order. 239as_nl=' 240' 241IFS=" $as_nl" 242 243# CDPATH. 244$as_unset CDPATH 245 246 247# Name of the host. 248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 249# so uname gets run too. 250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 251 252exec 6>&1 253 254# 255# Initializations. 256# 257ac_default_prefix=/usr/local 258ac_config_libobj_dir=. 259cross_compiling=no 260subdirs= 261MFLAGS= 262MAKEFLAGS= 263SHELL=${CONFIG_SHELL-/bin/sh} 264 265# Maximum number of lines to put in a shell here document. 266# This variable seems obsolete. It should probably be removed, and 267# only ac_max_sed_lines should be used. 268: ${ac_max_here_lines=38} 269 270# Identity of this package. 271PACKAGE_NAME='GNU make' 272PACKAGE_TARNAME='make' 273PACKAGE_VERSION='3.81' 274PACKAGE_STRING='GNU make 3.81' 275PACKAGE_BUGREPORT='bug-make@gnu.org' 276 277ac_unique_file="vpath.c" 278# Factoring default headers for most tests. 279ac_includes_default="\ 280#include <stdio.h> 281#if HAVE_SYS_TYPES_H 282# include <sys/types.h> 283#endif 284#if HAVE_SYS_STAT_H 285# include <sys/stat.h> 286#endif 287#if STDC_HEADERS 288# include <stdlib.h> 289# include <stddef.h> 290#else 291# if HAVE_STDLIB_H 292# include <stdlib.h> 293# endif 294#endif 295#if HAVE_STRING_H 296# if !STDC_HEADERS && HAVE_MEMORY_H 297# include <memory.h> 298# endif 299# include <string.h> 300#endif 301#if HAVE_STRINGS_H 302# include <strings.h> 303#endif 304#if HAVE_INTTYPES_H 305# include <inttypes.h> 306#else 307# if HAVE_STDINT_H 308# include <stdint.h> 309# endif 310#endif 311#if HAVE_UNISTD_H 312# include <unistd.h> 313#endif" 314 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP AR PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP U ANSI2KNR MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS REMOTE USE_CUSTOMS_TRUE USE_CUSTOMS_FALSE GLOBINC GLOBLIB USE_LOCAL_GLOB_TRUE USE_LOCAL_GLOB_FALSE MAKE_HOST WINDOWSENV_TRUE WINDOWSENV_FALSE LTLIBOBJS' 316ac_subst_files='MAINT_MAKEFILE' 317 318# Initialize some variables set by options. 319ac_init_help= 320ac_init_version=false 321# The variables have the same names as the options, with 322# dashes changed to underlines. 323cache_file=/dev/null 324exec_prefix=NONE 325no_create= 326no_recursion= 327prefix=NONE 328program_prefix=NONE 329program_suffix=NONE 330program_transform_name=s,x,x, 331silent= 332site= 333srcdir= 334verbose= 335x_includes=NONE 336x_libraries=NONE 337 338# Installation directory options. 339# These are left unexpanded so users can "make install exec_prefix=/foo" 340# and all the variables that are supposed to be based on exec_prefix 341# by default will actually change. 342# Use braces instead of parens because sh, perl, etc. also accept them. 343bindir='${exec_prefix}/bin' 344sbindir='${exec_prefix}/sbin' 345libexecdir='${exec_prefix}/libexec' 346datadir='${prefix}/share' 347sysconfdir='${prefix}/etc' 348sharedstatedir='${prefix}/com' 349localstatedir='${prefix}/var' 350libdir='${exec_prefix}/lib' 351includedir='${prefix}/include' 352oldincludedir='/usr/include' 353infodir='${prefix}/info' 354mandir='${prefix}/man' 355 356ac_prev= 357for ac_option 358do 359 # If the previous option needs an argument, assign it. 360 if test -n "$ac_prev"; then 361 eval "$ac_prev=\$ac_option" 362 ac_prev= 363 continue 364 fi 365 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 367 368 # Accept the important Cygnus configure options, so we can diagnose typos. 369 370 case $ac_option in 371 372 -bindir | --bindir | --bindi | --bind | --bin | --bi) 373 ac_prev=bindir ;; 374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 375 bindir=$ac_optarg ;; 376 377 -build | --build | --buil | --bui | --bu) 378 ac_prev=build_alias ;; 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 380 build_alias=$ac_optarg ;; 381 382 -cache-file | --cache-file | --cache-fil | --cache-fi \ 383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 384 ac_prev=cache_file ;; 385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 387 cache_file=$ac_optarg ;; 388 389 --config-cache | -C) 390 cache_file=config.cache ;; 391 392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 393 ac_prev=datadir ;; 394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 395 | --da=*) 396 datadir=$ac_optarg ;; 397 398 -disable-* | --disable-*) 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 400 # Reject names that are not valid shell variable names. 401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 403 { (exit 1); exit 1; }; } 404 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 405 eval "enable_$ac_feature=no" ;; 406 407 -enable-* | --enable-*) 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 409 # Reject names that are not valid shell variable names. 410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 412 { (exit 1); exit 1; }; } 413 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 414 case $ac_option in 415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 416 *) ac_optarg=yes ;; 417 esac 418 eval "enable_$ac_feature='$ac_optarg'" ;; 419 420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 422 | --exec | --exe | --ex) 423 ac_prev=exec_prefix ;; 424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 426 | --exec=* | --exe=* | --ex=*) 427 exec_prefix=$ac_optarg ;; 428 429 -gas | --gas | --ga | --g) 430 # Obsolete; use --with-gas. 431 with_gas=yes ;; 432 433 -help | --help | --hel | --he | -h) 434 ac_init_help=long ;; 435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 436 ac_init_help=recursive ;; 437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 438 ac_init_help=short ;; 439 440 -host | --host | --hos | --ho) 441 ac_prev=host_alias ;; 442 -host=* | --host=* | --hos=* | --ho=*) 443 host_alias=$ac_optarg ;; 444 445 -includedir | --includedir | --includedi | --included | --include \ 446 | --includ | --inclu | --incl | --inc) 447 ac_prev=includedir ;; 448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 449 | --includ=* | --inclu=* | --incl=* | --inc=*) 450 includedir=$ac_optarg ;; 451 452 -infodir | --infodir | --infodi | --infod | --info | --inf) 453 ac_prev=infodir ;; 454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 455 infodir=$ac_optarg ;; 456 457 -libdir | --libdir | --libdi | --libd) 458 ac_prev=libdir ;; 459 -libdir=* | --libdir=* | --libdi=* | --libd=*) 460 libdir=$ac_optarg ;; 461 462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 463 | --libexe | --libex | --libe) 464 ac_prev=libexecdir ;; 465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 466 | --libexe=* | --libex=* | --libe=*) 467 libexecdir=$ac_optarg ;; 468 469 -localstatedir | --localstatedir | --localstatedi | --localstated \ 470 | --localstate | --localstat | --localsta | --localst \ 471 | --locals | --local | --loca | --loc | --lo) 472 ac_prev=localstatedir ;; 473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 476 localstatedir=$ac_optarg ;; 477 478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 479 ac_prev=mandir ;; 480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 481 mandir=$ac_optarg ;; 482 483 -nfp | --nfp | --nf) 484 # Obsolete; use --without-fp. 485 with_fp=no ;; 486 487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 488 | --no-cr | --no-c | -n) 489 no_create=yes ;; 490 491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 493 no_recursion=yes ;; 494 495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 497 | --oldin | --oldi | --old | --ol | --o) 498 ac_prev=oldincludedir ;; 499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 502 oldincludedir=$ac_optarg ;; 503 504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 505 ac_prev=prefix ;; 506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 507 prefix=$ac_optarg ;; 508 509 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 510 | --program-pre | --program-pr | --program-p) 511 ac_prev=program_prefix ;; 512 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 514 program_prefix=$ac_optarg ;; 515 516 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 517 | --program-suf | --program-su | --program-s) 518 ac_prev=program_suffix ;; 519 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 521 program_suffix=$ac_optarg ;; 522 523 -program-transform-name | --program-transform-name \ 524 | --program-transform-nam | --program-transform-na \ 525 | --program-transform-n | --program-transform- \ 526 | --program-transform | --program-transfor \ 527 | --program-transfo | --program-transf \ 528 | --program-trans | --program-tran \ 529 | --progr-tra | --program-tr | --program-t) 530 ac_prev=program_transform_name ;; 531 -program-transform-name=* | --program-transform-name=* \ 532 | --program-transform-nam=* | --program-transform-na=* \ 533 | --program-transform-n=* | --program-transform-=* \ 534 | --program-transform=* | --program-transfor=* \ 535 | --program-transfo=* | --program-transf=* \ 536 | --program-trans=* | --program-tran=* \ 537 | --progr-tra=* | --program-tr=* | --program-t=*) 538 program_transform_name=$ac_optarg ;; 539 540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 541 | -silent | --silent | --silen | --sile | --sil) 542 silent=yes ;; 543 544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 545 ac_prev=sbindir ;; 546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 547 | --sbi=* | --sb=*) 548 sbindir=$ac_optarg ;; 549 550 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 552 | --sharedst | --shareds | --shared | --share | --shar \ 553 | --sha | --sh) 554 ac_prev=sharedstatedir ;; 555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 558 | --sha=* | --sh=*) 559 sharedstatedir=$ac_optarg ;; 560 561 -site | --site | --sit) 562 ac_prev=site ;; 563 -site=* | --site=* | --sit=*) 564 site=$ac_optarg ;; 565 566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 567 ac_prev=srcdir ;; 568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 569 srcdir=$ac_optarg ;; 570 571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 572 | --syscon | --sysco | --sysc | --sys | --sy) 573 ac_prev=sysconfdir ;; 574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 576 sysconfdir=$ac_optarg ;; 577 578 -target | --target | --targe | --targ | --tar | --ta | --t) 579 ac_prev=target_alias ;; 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 581 target_alias=$ac_optarg ;; 582 583 -v | -verbose | --verbose | --verbos | --verbo | --verb) 584 verbose=yes ;; 585 586 -version | --version | --versio | --versi | --vers | -V) 587 ac_init_version=: ;; 588 589 -with-* | --with-*) 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 591 # Reject names that are not valid shell variable names. 592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 593 { echo "$as_me: error: invalid package name: $ac_package" >&2 594 { (exit 1); exit 1; }; } 595 ac_package=`echo $ac_package| sed 's/-/_/g'` 596 case $ac_option in 597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 598 *) ac_optarg=yes ;; 599 esac 600 eval "with_$ac_package='$ac_optarg'" ;; 601 602 -without-* | --without-*) 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 604 # Reject names that are not valid shell variable names. 605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 606 { echo "$as_me: error: invalid package name: $ac_package" >&2 607 { (exit 1); exit 1; }; } 608 ac_package=`echo $ac_package | sed 's/-/_/g'` 609 eval "with_$ac_package=no" ;; 610 611 --x) 612 # Obsolete; use --with-x. 613 with_x=yes ;; 614 615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 616 | --x-incl | --x-inc | --x-in | --x-i) 617 ac_prev=x_includes ;; 618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 620 x_includes=$ac_optarg ;; 621 622 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 624 ac_prev=x_libraries ;; 625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 627 x_libraries=$ac_optarg ;; 628 629 -*) { echo "$as_me: error: unrecognized option: $ac_option 630Try \`$0 --help' for more information." >&2 631 { (exit 1); exit 1; }; } 632 ;; 633 634 *=*) 635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 636 # Reject names that are not valid shell variable names. 637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 639 { (exit 1); exit 1; }; } 640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 641 eval "$ac_envvar='$ac_optarg'" 642 export $ac_envvar ;; 643 644 *) 645 # FIXME: should be removed in autoconf 3.0. 646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 650 ;; 651 652 esac 653done 654 655if test -n "$ac_prev"; then 656 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 657 { echo "$as_me: error: missing argument to $ac_option" >&2 658 { (exit 1); exit 1; }; } 659fi 660 661# Be sure to have absolute paths. 662for ac_var in exec_prefix prefix 663do 664 eval ac_val=$`echo $ac_var` 665 case $ac_val in 666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 668 { (exit 1); exit 1; }; };; 669 esac 670done 671 672# Be sure to have absolute paths. 673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 674 localstatedir libdir includedir oldincludedir infodir mandir 675do 676 eval ac_val=$`echo $ac_var` 677 case $ac_val in 678 [\\/$]* | ?:[\\/]* ) ;; 679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 680 { (exit 1); exit 1; }; };; 681 esac 682done 683 684# There might be people who depend on the old broken behavior: `$host' 685# used to hold the argument of --host etc. 686# FIXME: To remove some day. 687build=$build_alias 688host=$host_alias 689target=$target_alias 690 691# FIXME: To remove some day. 692if test "x$host_alias" != x; then 693 if test "x$build_alias" = x; then 694 cross_compiling=maybe 695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 696 If a cross compiler is detected then cross compile mode will be used." >&2 697 elif test "x$build_alias" != "x$host_alias"; then 698 cross_compiling=yes 699 fi 700fi 701 702ac_tool_prefix= 703test -n "$host_alias" && ac_tool_prefix=$host_alias- 704 705test "$silent" = yes && exec 6>/dev/null 706 707 708# Find the source files, if location was not specified. 709if test -z "$srcdir"; then 710 ac_srcdir_defaulted=yes 711 # Try the directory containing this script, then its parent. 712 ac_confdir=`(dirname "$0") 2>/dev/null || 713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 714 X"$0" : 'X\(//\)[^/]' \| \ 715 X"$0" : 'X\(//\)$' \| \ 716 X"$0" : 'X\(/\)' \| \ 717 . : '\(.\)' 2>/dev/null || 718echo X"$0" | 719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 720 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 721 /^X\(\/\/\)$/{ s//\1/; q; } 722 /^X\(\/\).*/{ s//\1/; q; } 723 s/.*/./; q'` 724 srcdir=$ac_confdir 725 if test ! -r $srcdir/$ac_unique_file; then 726 srcdir=.. 727 fi 728else 729 ac_srcdir_defaulted=no 730fi 731if test ! -r $srcdir/$ac_unique_file; then 732 if test "$ac_srcdir_defaulted" = yes; then 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 734 { (exit 1); exit 1; }; } 735 else 736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 737 { (exit 1); exit 1; }; } 738 fi 739fi 740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 742 { (exit 1); exit 1; }; } 743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 744ac_env_build_alias_set=${build_alias+set} 745ac_env_build_alias_value=$build_alias 746ac_cv_env_build_alias_set=${build_alias+set} 747ac_cv_env_build_alias_value=$build_alias 748ac_env_host_alias_set=${host_alias+set} 749ac_env_host_alias_value=$host_alias 750ac_cv_env_host_alias_set=${host_alias+set} 751ac_cv_env_host_alias_value=$host_alias 752ac_env_target_alias_set=${target_alias+set} 753ac_env_target_alias_value=$target_alias 754ac_cv_env_target_alias_set=${target_alias+set} 755ac_cv_env_target_alias_value=$target_alias 756ac_env_CC_set=${CC+set} 757ac_env_CC_value=$CC 758ac_cv_env_CC_set=${CC+set} 759ac_cv_env_CC_value=$CC 760ac_env_CFLAGS_set=${CFLAGS+set} 761ac_env_CFLAGS_value=$CFLAGS 762ac_cv_env_CFLAGS_set=${CFLAGS+set} 763ac_cv_env_CFLAGS_value=$CFLAGS 764ac_env_LDFLAGS_set=${LDFLAGS+set} 765ac_env_LDFLAGS_value=$LDFLAGS 766ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 767ac_cv_env_LDFLAGS_value=$LDFLAGS 768ac_env_CPPFLAGS_set=${CPPFLAGS+set} 769ac_env_CPPFLAGS_value=$CPPFLAGS 770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 771ac_cv_env_CPPFLAGS_value=$CPPFLAGS 772ac_env_CPP_set=${CPP+set} 773ac_env_CPP_value=$CPP 774ac_cv_env_CPP_set=${CPP+set} 775ac_cv_env_CPP_value=$CPP 776 777# 778# Report the --help message. 779# 780if test "$ac_init_help" = "long"; then 781 # Omit some internal or obsolete options to make the list less imposing. 782 # This message is too long to be a string in the A/UX 3.1 sh. 783 cat <<_ACEOF 784\`configure' configures GNU make 3.81 to adapt to many kinds of systems. 785 786Usage: $0 [OPTION]... [VAR=VALUE]... 787 788To assign environment variables (e.g., CC, CFLAGS...), specify them as 789VAR=VALUE. See below for descriptions of some of the useful variables. 790 791Defaults for the options are specified in brackets. 792 793Configuration: 794 -h, --help display this help and exit 795 --help=short display options specific to this package 796 --help=recursive display the short help of all the included packages 797 -V, --version display version information and exit 798 -q, --quiet, --silent do not print \`checking...' messages 799 --cache-file=FILE cache test results in FILE [disabled] 800 -C, --config-cache alias for \`--cache-file=config.cache' 801 -n, --no-create do not create output files 802 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 803 804_ACEOF 805 806 cat <<_ACEOF 807Installation directories: 808 --prefix=PREFIX install architecture-independent files in PREFIX 809 [$ac_default_prefix] 810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 811 [PREFIX] 812 813By default, \`make install' will install all the files in 814\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 815an installation prefix other than \`$ac_default_prefix' using \`--prefix', 816for instance \`--prefix=\$HOME'. 817 818For better control, use the options below. 819 820Fine tuning of the installation directories: 821 --bindir=DIR user executables [EPREFIX/bin] 822 --sbindir=DIR system admin executables [EPREFIX/sbin] 823 --libexecdir=DIR program executables [EPREFIX/libexec] 824 --datadir=DIR read-only architecture-independent data [PREFIX/share] 825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 827 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 828 --libdir=DIR object code libraries [EPREFIX/lib] 829 --includedir=DIR C header files [PREFIX/include] 830 --oldincludedir=DIR C header files for non-gcc [/usr/include] 831 --infodir=DIR info documentation [PREFIX/info] 832 --mandir=DIR man documentation [PREFIX/man] 833_ACEOF 834 835 cat <<\_ACEOF 836 837Program names: 838 --program-prefix=PREFIX prepend PREFIX to installed program names 839 --program-suffix=SUFFIX append SUFFIX to installed program names 840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 841 842System types: 843 --build=BUILD configure for building on BUILD [guessed] 844 --host=HOST cross-compile to build programs to run on HOST [BUILD] 845_ACEOF 846fi 847 848if test -n "$ac_init_help"; then 849 case $ac_init_help in 850 short | recursive ) echo "Configuration of GNU make 3.81:";; 851 esac 852 cat <<\_ACEOF 853 854Optional Features: 855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 857 --disable-dependency-tracking speeds up one-time build 858 --enable-dependency-tracking do not reject slow dependency extractors 859 --disable-nls do not use Native Language Support 860 --disable-rpath do not hardcode runtime library paths 861 --disable-largefile omit support for large files 862 --enable-case-insensitive-file-system 863 enable case insensitive file system support 864 --disable-job-server disallow recursive make communication during -jN 865 866Optional Packages: 867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 869 --with-gnu-ld assume the C compiler uses GNU ld default=no 870 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 871 --without-libiconv-prefix don't search for libiconv in includedir and libdir 872 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 873 --without-libintl-prefix don't search for libintl in includedir and libdir 874 --with-customs=DIR enable remote jobs via Customs--see README.customs 875 --with-dmalloc use dmalloc, as in 876 http://www.dmalloc.com/dmalloc.tar.gz 877 878Some influential environment variables: 879 CC C compiler command 880 CFLAGS C compiler flags 881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 882 nonstandard directory <lib dir> 883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 884 headers in a nonstandard directory <include dir> 885 CPP C preprocessor 886 887Use these variables to override the choices made by `configure' or to help 888it to find libraries and programs with nonstandard names/locations. 889 890Report bugs to <bug-make@gnu.org>. 891_ACEOF 892fi 893 894if test "$ac_init_help" = "recursive"; then 895 # If there are subdirs, report their specific --help. 896 ac_popdir=`pwd` 897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 898 test -d $ac_dir || continue 899 ac_builddir=. 900 901if test "$ac_dir" != .; then 902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 903 # A "../" for each directory in $ac_dir_suffix. 904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 905else 906 ac_dir_suffix= ac_top_builddir= 907fi 908 909case $srcdir in 910 .) # No --srcdir option. We are building in place. 911 ac_srcdir=. 912 if test -z "$ac_top_builddir"; then 913 ac_top_srcdir=. 914 else 915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 916 fi ;; 917 [\\/]* | ?:[\\/]* ) # Absolute path. 918 ac_srcdir=$srcdir$ac_dir_suffix; 919 ac_top_srcdir=$srcdir ;; 920 *) # Relative path. 921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 922 ac_top_srcdir=$ac_top_builddir$srcdir ;; 923esac 924 925# Do not use `cd foo && pwd` to compute absolute paths, because 926# the directories may not exist. 927case `pwd` in 928.) ac_abs_builddir="$ac_dir";; 929*) 930 case "$ac_dir" in 931 .) ac_abs_builddir=`pwd`;; 932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 933 *) ac_abs_builddir=`pwd`/"$ac_dir";; 934 esac;; 935esac 936case $ac_abs_builddir in 937.) ac_abs_top_builddir=${ac_top_builddir}.;; 938*) 939 case ${ac_top_builddir}. in 940 .) ac_abs_top_builddir=$ac_abs_builddir;; 941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 943 esac;; 944esac 945case $ac_abs_builddir in 946.) ac_abs_srcdir=$ac_srcdir;; 947*) 948 case $ac_srcdir in 949 .) ac_abs_srcdir=$ac_abs_builddir;; 950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 952 esac;; 953esac 954case $ac_abs_builddir in 955.) ac_abs_top_srcdir=$ac_top_srcdir;; 956*) 957 case $ac_top_srcdir in 958 .) ac_abs_top_srcdir=$ac_abs_builddir;; 959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 961 esac;; 962esac 963 964 cd $ac_dir 965 # Check for guested configure; otherwise get Cygnus style configure. 966 if test -f $ac_srcdir/configure.gnu; then 967 echo 968 $SHELL $ac_srcdir/configure.gnu --help=recursive 969 elif test -f $ac_srcdir/configure; then 970 echo 971 $SHELL $ac_srcdir/configure --help=recursive 972 elif test -f $ac_srcdir/configure.ac || 973 test -f $ac_srcdir/configure.in; then 974 echo 975 $ac_configure --help 976 else 977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 978 fi 979 cd "$ac_popdir" 980 done 981fi 982 983test -n "$ac_init_help" && exit 0 984if $ac_init_version; then 985 cat <<\_ACEOF 986GNU make configure 3.81 987generated by GNU Autoconf 2.59 988 989Copyright (C) 2003 Free Software Foundation, Inc. 990This configure script is free software; the Free Software Foundation 991gives unlimited permission to copy, distribute and modify it. 992_ACEOF 993 exit 0 994fi 995exec 5>config.log 996cat >&5 <<_ACEOF 997This file contains any messages produced by compilers while 998running configure, to aid debugging if configure makes a mistake. 999 1000It was created by GNU make $as_me 3.81, which was 1001generated by GNU Autoconf 2.59. Invocation command line was 1002 1003 $ $0 $@ 1004 1005_ACEOF 1006{ 1007cat <<_ASUNAME 1008## --------- ## 1009## Platform. ## 1010## --------- ## 1011 1012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1013uname -m = `(uname -m) 2>/dev/null || echo unknown` 1014uname -r = `(uname -r) 2>/dev/null || echo unknown` 1015uname -s = `(uname -s) 2>/dev/null || echo unknown` 1016uname -v = `(uname -v) 2>/dev/null || echo unknown` 1017 1018/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1019/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1020 1021/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1022/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1023/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1024hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1025/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1026/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1027/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1028 1029_ASUNAME 1030 1031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1032for as_dir in $PATH 1033do 1034 IFS=$as_save_IFS 1035 test -z "$as_dir" && as_dir=. 1036 echo "PATH: $as_dir" 1037done 1038 1039} >&5 1040 1041cat >&5 <<_ACEOF 1042 1043 1044## ----------- ## 1045## Core tests. ## 1046## ----------- ## 1047 1048_ACEOF 1049 1050 1051# Keep a trace of the command line. 1052# Strip out --no-create and --no-recursion so they do not pile up. 1053# Strip out --silent because we don't want to record it for future runs. 1054# Also quote any args containing shell meta-characters. 1055# Make two passes to allow for proper duplicate-argument suppression. 1056ac_configure_args= 1057ac_configure_args0= 1058ac_configure_args1= 1059ac_sep= 1060ac_must_keep_next=false 1061for ac_pass in 1 2 1062do 1063 for ac_arg 1064 do 1065 case $ac_arg in 1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1068 | -silent | --silent | --silen | --sile | --sil) 1069 continue ;; 1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1072 esac 1073 case $ac_pass in 1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1075 2) 1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1077 if test $ac_must_keep_next = true; then 1078 ac_must_keep_next=false # Got value, back to normal. 1079 else 1080 case $ac_arg in 1081 *=* | --config-cache | -C | -disable-* | --disable-* \ 1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1084 | -with-* | --with-* | -without-* | --without-* | --x) 1085 case "$ac_configure_args0 " in 1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1087 esac 1088 ;; 1089 -* ) ac_must_keep_next=true ;; 1090 esac 1091 fi 1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1093 # Get rid of the leading space. 1094 ac_sep=" " 1095 ;; 1096 esac 1097 done 1098done 1099$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1100$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1101 1102# When interrupted or exit'd, cleanup temporary files, and complete 1103# config.log. We remove comments because anyway the quotes in there 1104# would cause problems or look ugly. 1105# WARNING: Be sure not to use single quotes in there, as some shells, 1106# such as our DU 5.0 friend, will then `close' the trap. 1107trap 'exit_status=$? 1108 # Save into config.log some information that might help in debugging. 1109 { 1110 echo 1111 1112 cat <<\_ASBOX 1113## ---------------- ## 1114## Cache variables. ## 1115## ---------------- ## 1116_ASBOX 1117 echo 1118 # The following way of writing the cache mishandles newlines in values, 1119{ 1120 (set) 2>&1 | 1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1122 *ac_space=\ *) 1123 sed -n \ 1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1126 ;; 1127 *) 1128 sed -n \ 1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1130 ;; 1131 esac; 1132} 1133 echo 1134 1135 cat <<\_ASBOX 1136## ----------------- ## 1137## Output variables. ## 1138## ----------------- ## 1139_ASBOX 1140 echo 1141 for ac_var in $ac_subst_vars 1142 do 1143 eval ac_val=$`echo $ac_var` 1144 echo "$ac_var='"'"'$ac_val'"'"'" 1145 done | sort 1146 echo 1147 1148 if test -n "$ac_subst_files"; then 1149 cat <<\_ASBOX 1150## ------------- ## 1151## Output files. ## 1152## ------------- ## 1153_ASBOX 1154 echo 1155 for ac_var in $ac_subst_files 1156 do 1157 eval ac_val=$`echo $ac_var` 1158 echo "$ac_var='"'"'$ac_val'"'"'" 1159 done | sort 1160 echo 1161 fi 1162 1163 if test -s confdefs.h; then 1164 cat <<\_ASBOX 1165## ----------- ## 1166## confdefs.h. ## 1167## ----------- ## 1168_ASBOX 1169 echo 1170 sed "/^$/d" confdefs.h | sort 1171 echo 1172 fi 1173 test "$ac_signal" != 0 && 1174 echo "$as_me: caught signal $ac_signal" 1175 echo "$as_me: exit $exit_status" 1176 } >&5 1177 rm -f core *.core && 1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1179 exit $exit_status 1180 ' 0 1181for ac_signal in 1 2 13 15; do 1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1183done 1184ac_signal=0 1185 1186# confdefs.h avoids OS command line length limits that DEFS can exceed. 1187rm -rf conftest* confdefs.h 1188# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1189echo >confdefs.h 1190 1191# Predefined preprocessor variables. 1192 1193cat >>confdefs.h <<_ACEOF 1194#define PACKAGE_NAME "$PACKAGE_NAME" 1195_ACEOF 1196 1197 1198cat >>confdefs.h <<_ACEOF 1199#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1200_ACEOF 1201 1202 1203cat >>confdefs.h <<_ACEOF 1204#define PACKAGE_VERSION "$PACKAGE_VERSION" 1205_ACEOF 1206 1207 1208cat >>confdefs.h <<_ACEOF 1209#define PACKAGE_STRING "$PACKAGE_STRING" 1210_ACEOF 1211 1212 1213cat >>confdefs.h <<_ACEOF 1214#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1215_ACEOF 1216 1217 1218# Let the site file select an alternate cache file if it wants to. 1219# Prefer explicitly selected file to automatically selected ones. 1220if test -z "$CONFIG_SITE"; then 1221 if test "x$prefix" != xNONE; then 1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1223 else 1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1225 fi 1226fi 1227for ac_site_file in $CONFIG_SITE; do 1228 if test -r "$ac_site_file"; then 1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1230echo "$as_me: loading site script $ac_site_file" >&6;} 1231 sed 's/^/| /' "$ac_site_file" >&5 1232 . "$ac_site_file" 1233 fi 1234done 1235 1236if test -r "$cache_file"; then 1237 # Some versions of bash will fail to source /dev/null (special 1238 # files actually), so we avoid doing that. 1239 if test -f "$cache_file"; then 1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1241echo "$as_me: loading cache $cache_file" >&6;} 1242 case $cache_file in 1243 [\\/]* | ?:[\\/]* ) . $cache_file;; 1244 *) . ./$cache_file;; 1245 esac 1246 fi 1247else 1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1249echo "$as_me: creating cache $cache_file" >&6;} 1250 >$cache_file 1251fi 1252 1253# Check that the precious variables saved in the cache have kept the same 1254# value. 1255ac_cache_corrupted=false 1256for ac_var in `(set) 2>&1 | 1257 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1259 eval ac_new_set=\$ac_env_${ac_var}_set 1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1261 eval ac_new_val="\$ac_env_${ac_var}_value" 1262 case $ac_old_set,$ac_new_set in 1263 set,) 1264 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1265echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1266 ac_cache_corrupted=: ;; 1267 ,set) 1268 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1269echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1270 ac_cache_corrupted=: ;; 1271 ,);; 1272 *) 1273 if test "x$ac_old_val" != "x$ac_new_val"; then 1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1275echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1277echo "$as_me: former value: $ac_old_val" >&2;} 1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1279echo "$as_me: current value: $ac_new_val" >&2;} 1280 ac_cache_corrupted=: 1281 fi;; 1282 esac 1283 # Pass precious variables to config.status. 1284 if test "$ac_new_set" = set; then 1285 case $ac_new_val in 1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1288 *) ac_arg=$ac_var=$ac_new_val ;; 1289 esac 1290 case " $ac_configure_args " in 1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1293 esac 1294 fi 1295done 1296if $ac_cache_corrupted; then 1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1298echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1299 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1300echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1301 { (exit 1); exit 1; }; } 1302fi 1303 1304ac_ext=c 1305ac_cpp='$CPP $CPPFLAGS' 1306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1308ac_compiler_gnu=$ac_cv_c_compiler_gnu 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340# Autoconf setup 1341ac_aux_dir= 1342for ac_dir in config $srcdir/config; do 1343 if test -f $ac_dir/install-sh; then 1344 ac_aux_dir=$ac_dir 1345 ac_install_sh="$ac_aux_dir/install-sh -c" 1346 break 1347 elif test -f $ac_dir/install.sh; then 1348 ac_aux_dir=$ac_dir 1349 ac_install_sh="$ac_aux_dir/install.sh -c" 1350 break 1351 elif test -f $ac_dir/shtool; then 1352 ac_aux_dir=$ac_dir 1353 ac_install_sh="$ac_aux_dir/shtool install -c" 1354 break 1355 fi 1356done 1357if test -z "$ac_aux_dir"; then 1358 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 1359echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} 1360 { (exit 1); exit 1; }; } 1361fi 1362ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1363ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1364ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1365 1366 1367 ac_config_headers="$ac_config_headers config.h" 1368 1369 1370# Automake setup 1371am__api_version="1.9" 1372# Find a good install program. We prefer a C program (faster), 1373# so one script is as good as another. But avoid the broken or 1374# incompatible versions: 1375# SysV /etc/install, /usr/sbin/install 1376# SunOS /usr/etc/install 1377# IRIX /sbin/install 1378# AIX /bin/install 1379# AmigaOS /C/install, which installs bootblocks on floppy discs 1380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1381# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1383# OS/2's system install, which has a completely different semantic 1384# ./install, which can be erroneously created by make from ./install.sh. 1385echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1386echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1387if test -z "$INSTALL"; then 1388if test "${ac_cv_path_install+set}" = set; then 1389 echo $ECHO_N "(cached) $ECHO_C" >&6 1390else 1391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1392for as_dir in $PATH 1393do 1394 IFS=$as_save_IFS 1395 test -z "$as_dir" && as_dir=. 1396 # Account for people who put trailing slashes in PATH elements. 1397case $as_dir/ in 1398 ./ | .// | /cC/* | \ 1399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1400 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1401 /usr/ucb/* ) ;; 1402 *) 1403 # OSF1 and SCO ODT 3.0 have their own names for install. 1404 # Don't use installbsd from OSF since it installs stuff as root 1405 # by default. 1406 for ac_prog in ginstall scoinst install; do 1407 for ac_exec_ext in '' $ac_executable_extensions; do 1408 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1409 if test $ac_prog = install && 1410 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1411 # AIX install. It has an incompatible calling convention. 1412 : 1413 elif test $ac_prog = install && 1414 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1415 # program-specific install script used by HP pwplus--don't use. 1416 : 1417 else 1418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1419 break 3 1420 fi 1421 fi 1422 done 1423 done 1424 ;; 1425esac 1426done 1427 1428 1429fi 1430 if test "${ac_cv_path_install+set}" = set; then 1431 INSTALL=$ac_cv_path_install 1432 else 1433 # As a last resort, use the slow shell script. We don't cache a 1434 # path for INSTALL within a source directory, because that will 1435 # break other packages using the cache if that directory is 1436 # removed, or if the path is relative. 1437 INSTALL=$ac_install_sh 1438 fi 1439fi 1440echo "$as_me:$LINENO: result: $INSTALL" >&5 1441echo "${ECHO_T}$INSTALL" >&6 1442 1443# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1444# It thinks the first close brace ends the variable substitution. 1445test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1446 1447test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1448 1449test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1450 1451echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1452echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1453# Just in case 1454sleep 1 1455echo timestamp > conftest.file 1456# Do `set' in a subshell so we don't clobber the current shell's 1457# arguments. Must try -L first in case configure is actually a 1458# symlink; some systems play weird games with the mod time of symlinks 1459# (eg FreeBSD returns the mod time of the symlink's containing 1460# directory). 1461if ( 1462 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1463 if test "$*" = "X"; then 1464 # -L didn't work. 1465 set X `ls -t $srcdir/configure conftest.file` 1466 fi 1467 rm -f conftest.file 1468 if test "$*" != "X $srcdir/configure conftest.file" \ 1469 && test "$*" != "X conftest.file $srcdir/configure"; then 1470 1471 # If neither matched, then we have a broken ls. This can happen 1472 # if, for instance, CONFIG_SHELL is bash and it inherits a 1473 # broken ls alias from the environment. This has actually 1474 # happened. Such a system could not be considered "sane". 1475 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1476alias in your environment" >&5 1477echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1478alias in your environment" >&2;} 1479 { (exit 1); exit 1; }; } 1480 fi 1481 1482 test "$2" = conftest.file 1483 ) 1484then 1485 # Ok. 1486 : 1487else 1488 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1489Check your system clock" >&5 1490echo "$as_me: error: newly created file is older than distributed files! 1491Check your system clock" >&2;} 1492 { (exit 1); exit 1; }; } 1493fi 1494echo "$as_me:$LINENO: result: yes" >&5 1495echo "${ECHO_T}yes" >&6 1496test "$program_prefix" != NONE && 1497 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1498# Use a double $ so make ignores it. 1499test "$program_suffix" != NONE && 1500 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1501# Double any \ or $. echo might interpret backslashes. 1502# By default was `s,x,x', remove it if useless. 1503cat <<\_ACEOF >conftest.sed 1504s/[\\$]/&&/g;s/;s,x,x,$// 1505_ACEOF 1506program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1507rm conftest.sed 1508 1509# expand $ac_aux_dir to an absolute path 1510am_aux_dir=`cd $ac_aux_dir && pwd` 1511 1512test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1513# Use eval to expand $SHELL 1514if eval "$MISSING --run true"; then 1515 am_missing_run="$MISSING --run " 1516else 1517 am_missing_run= 1518 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1519echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1520fi 1521 1522if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1523 # We used to keeping the `.' as first argument, in order to 1524 # allow $(mkdir_p) to be used without argument. As in 1525 # $(mkdir_p) $(somedir) 1526 # where $(somedir) is conditionally defined. However this is wrong 1527 # for two reasons: 1528 # 1. if the package is installed by a user who cannot write `.' 1529 # make install will fail, 1530 # 2. the above comment should most certainly read 1531 # $(mkdir_p) $(DESTDIR)$(somedir) 1532 # so it does not work when $(somedir) is undefined and 1533 # $(DESTDIR) is not. 1534 # To support the latter case, we have to write 1535 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1536 # so the `.' trick is pointless. 1537 mkdir_p='mkdir -p --' 1538else 1539 # On NextStep and OpenStep, the `mkdir' command does not 1540 # recognize any option. It will interpret all options as 1541 # directories to create, and then abort because `.' already 1542 # exists. 1543 for d in ./-p ./--version; 1544 do 1545 test -d $d && rmdir $d 1546 done 1547 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1548 if test -f "$ac_aux_dir/mkinstalldirs"; then 1549 mkdir_p='$(mkinstalldirs)' 1550 else 1551 mkdir_p='$(install_sh) -d' 1552 fi 1553fi 1554 1555for ac_prog in gawk mawk nawk awk 1556do 1557 # Extract the first word of "$ac_prog", so it can be a program name with args. 1558set dummy $ac_prog; ac_word=$2 1559echo "$as_me:$LINENO: checking for $ac_word" >&5 1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1561if test "${ac_cv_prog_AWK+set}" = set; then 1562 echo $ECHO_N "(cached) $ECHO_C" >&6 1563else 1564 if test -n "$AWK"; then 1565 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1566else 1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1568for as_dir in $PATH 1569do 1570 IFS=$as_save_IFS 1571 test -z "$as_dir" && as_dir=. 1572 for ac_exec_ext in '' $ac_executable_extensions; do 1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1574 ac_cv_prog_AWK="$ac_prog" 1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1576 break 2 1577 fi 1578done 1579done 1580 1581fi 1582fi 1583AWK=$ac_cv_prog_AWK 1584if test -n "$AWK"; then 1585 echo "$as_me:$LINENO: result: $AWK" >&5 1586echo "${ECHO_T}$AWK" >&6 1587else 1588 echo "$as_me:$LINENO: result: no" >&5 1589echo "${ECHO_T}no" >&6 1590fi 1591 1592 test -n "$AWK" && break 1593done 1594 1595echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1596echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1597set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1598if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1599 echo $ECHO_N "(cached) $ECHO_C" >&6 1600else 1601 cat >conftest.make <<\_ACEOF 1602all: 1603 @echo 'ac_maketemp="$(MAKE)"' 1604_ACEOF 1605# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1606eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1607if test -n "$ac_maketemp"; then 1608 eval ac_cv_prog_make_${ac_make}_set=yes 1609else 1610 eval ac_cv_prog_make_${ac_make}_set=no 1611fi 1612rm -f conftest.make 1613fi 1614if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1615 echo "$as_me:$LINENO: result: yes" >&5 1616echo "${ECHO_T}yes" >&6 1617 SET_MAKE= 1618else 1619 echo "$as_me:$LINENO: result: no" >&5 1620echo "${ECHO_T}no" >&6 1621 SET_MAKE="MAKE=${MAKE-make}" 1622fi 1623 1624rm -rf .tst 2>/dev/null 1625mkdir .tst 2>/dev/null 1626if test -d .tst; then 1627 am__leading_dot=. 1628else 1629 am__leading_dot=_ 1630fi 1631rmdir .tst 2>/dev/null 1632 1633# test to see if srcdir already configured 1634if test "`cd $srcdir && pwd`" != "`pwd`" && 1635 test -f $srcdir/config.status; then 1636 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1637echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1638 { (exit 1); exit 1; }; } 1639fi 1640 1641# test whether we have cygpath 1642if test -z "$CYGPATH_W"; then 1643 if (cygpath --version) >/dev/null 2>/dev/null; then 1644 CYGPATH_W='cygpath -w' 1645 else 1646 CYGPATH_W=echo 1647 fi 1648fi 1649 1650 1651# Define the identity of the package. 1652 PACKAGE='make' 1653 VERSION='3.81' 1654 1655 1656cat >>confdefs.h <<_ACEOF 1657#define PACKAGE "$PACKAGE" 1658_ACEOF 1659 1660 1661cat >>confdefs.h <<_ACEOF 1662#define VERSION "$VERSION" 1663_ACEOF 1664 1665# Some tools Automake needs. 1666 1667ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1668 1669 1670AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1671 1672 1673AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1674 1675 1676AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1677 1678 1679MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1680 1681install_sh=${install_sh-"$am_aux_dir/install-sh"} 1682 1683# Installed binaries are usually stripped using `strip' when the user 1684# run `make install-strip'. However `strip' might not be the right 1685# tool to use in cross-compilation environments, therefore Automake 1686# will honor the `STRIP' environment variable to overrule this program. 1687if test "$cross_compiling" != no; then 1688 if test -n "$ac_tool_prefix"; then 1689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1690set dummy ${ac_tool_prefix}strip; ac_word=$2 1691echo "$as_me:$LINENO: checking for $ac_word" >&5 1692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1693if test "${ac_cv_prog_STRIP+set}" = set; then 1694 echo $ECHO_N "(cached) $ECHO_C" >&6 1695else 1696 if test -n "$STRIP"; then 1697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1698else 1699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1700for as_dir in $PATH 1701do 1702 IFS=$as_save_IFS 1703 test -z "$as_dir" && as_dir=. 1704 for ac_exec_ext in '' $ac_executable_extensions; do 1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1706 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1708 break 2 1709 fi 1710done 1711done 1712 1713fi 1714fi 1715STRIP=$ac_cv_prog_STRIP 1716if test -n "$STRIP"; then 1717 echo "$as_me:$LINENO: result: $STRIP" >&5 1718echo "${ECHO_T}$STRIP" >&6 1719else 1720 echo "$as_me:$LINENO: result: no" >&5 1721echo "${ECHO_T}no" >&6 1722fi 1723 1724fi 1725if test -z "$ac_cv_prog_STRIP"; then 1726 ac_ct_STRIP=$STRIP 1727 # Extract the first word of "strip", so it can be a program name with args. 1728set dummy strip; ac_word=$2 1729echo "$as_me:$LINENO: checking for $ac_word" >&5 1730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1731if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1732 echo $ECHO_N "(cached) $ECHO_C" >&6 1733else 1734 if test -n "$ac_ct_STRIP"; then 1735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1736else 1737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1738for as_dir in $PATH 1739do 1740 IFS=$as_save_IFS 1741 test -z "$as_dir" && as_dir=. 1742 for ac_exec_ext in '' $ac_executable_extensions; do 1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1744 ac_cv_prog_ac_ct_STRIP="strip" 1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1746 break 2 1747 fi 1748done 1749done 1750 1751 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1752fi 1753fi 1754ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1755if test -n "$ac_ct_STRIP"; then 1756 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1757echo "${ECHO_T}$ac_ct_STRIP" >&6 1758else 1759 echo "$as_me:$LINENO: result: no" >&5 1760echo "${ECHO_T}no" >&6 1761fi 1762 1763 STRIP=$ac_ct_STRIP 1764else 1765 STRIP="$ac_cv_prog_STRIP" 1766fi 1767 1768fi 1769INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1770 1771# We need awk for the "check" target. The system "awk" is bad on 1772# some platforms. 1773# Always define AMTAR for backward compatibility. 1774 1775AMTAR=${AMTAR-"${am_missing_run}tar"} 1776 1777am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1778 1779 1780 1781 1782 1783 1784# Checks for programs. 1785ac_ext=c 1786ac_cpp='$CPP $CPPFLAGS' 1787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1789ac_compiler_gnu=$ac_cv_c_compiler_gnu 1790if test -n "$ac_tool_prefix"; then 1791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1792set dummy ${ac_tool_prefix}gcc; ac_word=$2 1793echo "$as_me:$LINENO: checking for $ac_word" >&5 1794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1795if test "${ac_cv_prog_CC+set}" = set; then 1796 echo $ECHO_N "(cached) $ECHO_C" >&6 1797else 1798 if test -n "$CC"; then 1799 ac_cv_prog_CC="$CC" # Let the user override the test. 1800else 1801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1802for as_dir in $PATH 1803do 1804 IFS=$as_save_IFS 1805 test -z "$as_dir" && as_dir=. 1806 for ac_exec_ext in '' $ac_executable_extensions; do 1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1808 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1810 break 2 1811 fi 1812done 1813done 1814 1815fi 1816fi 1817CC=$ac_cv_prog_CC 1818if test -n "$CC"; then 1819 echo "$as_me:$LINENO: result: $CC" >&5 1820echo "${ECHO_T}$CC" >&6 1821else 1822 echo "$as_me:$LINENO: result: no" >&5 1823echo "${ECHO_T}no" >&6 1824fi 1825 1826fi 1827if test -z "$ac_cv_prog_CC"; then 1828 ac_ct_CC=$CC 1829 # Extract the first word of "gcc", so it can be a program name with args. 1830set dummy gcc; ac_word=$2 1831echo "$as_me:$LINENO: checking for $ac_word" >&5 1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1833if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1834 echo $ECHO_N "(cached) $ECHO_C" >&6 1835else 1836 if test -n "$ac_ct_CC"; then 1837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1838else 1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1840for as_dir in $PATH 1841do 1842 IFS=$as_save_IFS 1843 test -z "$as_dir" && as_dir=. 1844 for ac_exec_ext in '' $ac_executable_extensions; do 1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1846 ac_cv_prog_ac_ct_CC="gcc" 1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1848 break 2 1849 fi 1850done 1851done 1852 1853fi 1854fi 1855ac_ct_CC=$ac_cv_prog_ac_ct_CC 1856if test -n "$ac_ct_CC"; then 1857 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1858echo "${ECHO_T}$ac_ct_CC" >&6 1859else 1860 echo "$as_me:$LINENO: result: no" >&5 1861echo "${ECHO_T}no" >&6 1862fi 1863 1864 CC=$ac_ct_CC 1865else 1866 CC="$ac_cv_prog_CC" 1867fi 1868 1869if test -z "$CC"; then 1870 if test -n "$ac_tool_prefix"; then 1871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1872set dummy ${ac_tool_prefix}cc; ac_word=$2 1873echo "$as_me:$LINENO: checking for $ac_word" >&5 1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1875if test "${ac_cv_prog_CC+set}" = set; then 1876 echo $ECHO_N "(cached) $ECHO_C" >&6 1877else 1878 if test -n "$CC"; then 1879 ac_cv_prog_CC="$CC" # Let the user override the test. 1880else 1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1882for as_dir in $PATH 1883do 1884 IFS=$as_save_IFS 1885 test -z "$as_dir" && as_dir=. 1886 for ac_exec_ext in '' $ac_executable_extensions; do 1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1888 ac_cv_prog_CC="${ac_tool_prefix}cc" 1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1890 break 2 1891 fi 1892done 1893done 1894 1895fi 1896fi 1897CC=$ac_cv_prog_CC 1898if test -n "$CC"; then 1899 echo "$as_me:$LINENO: result: $CC" >&5 1900echo "${ECHO_T}$CC" >&6 1901else 1902 echo "$as_me:$LINENO: result: no" >&5 1903echo "${ECHO_T}no" >&6 1904fi 1905 1906fi 1907if test -z "$ac_cv_prog_CC"; then 1908 ac_ct_CC=$CC 1909 # Extract the first word of "cc", so it can be a program name with args. 1910set dummy cc; ac_word=$2 1911echo "$as_me:$LINENO: checking for $ac_word" >&5 1912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1913if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1914 echo $ECHO_N "(cached) $ECHO_C" >&6 1915else 1916 if test -n "$ac_ct_CC"; then 1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1918else 1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1920for as_dir in $PATH 1921do 1922 IFS=$as_save_IFS 1923 test -z "$as_dir" && as_dir=. 1924 for ac_exec_ext in '' $ac_executable_extensions; do 1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1926 ac_cv_prog_ac_ct_CC="cc" 1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1928 break 2 1929 fi 1930done 1931done 1932 1933fi 1934fi 1935ac_ct_CC=$ac_cv_prog_ac_ct_CC 1936if test -n "$ac_ct_CC"; then 1937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1938echo "${ECHO_T}$ac_ct_CC" >&6 1939else 1940 echo "$as_me:$LINENO: result: no" >&5 1941echo "${ECHO_T}no" >&6 1942fi 1943 1944 CC=$ac_ct_CC 1945else 1946 CC="$ac_cv_prog_CC" 1947fi 1948 1949fi 1950if test -z "$CC"; then 1951 # Extract the first word of "cc", so it can be a program name with args. 1952set dummy cc; ac_word=$2 1953echo "$as_me:$LINENO: checking for $ac_word" >&5 1954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1955if test "${ac_cv_prog_CC+set}" = set; then 1956 echo $ECHO_N "(cached) $ECHO_C" >&6 1957else 1958 if test -n "$CC"; then 1959 ac_cv_prog_CC="$CC" # Let the user override the test. 1960else 1961 ac_prog_rejected=no 1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1963for as_dir in $PATH 1964do 1965 IFS=$as_save_IFS 1966 test -z "$as_dir" && as_dir=. 1967 for ac_exec_ext in '' $ac_executable_extensions; do 1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1969 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1970 ac_prog_rejected=yes 1971 continue 1972 fi 1973 ac_cv_prog_CC="cc" 1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1975 break 2 1976 fi 1977done 1978done 1979 1980if test $ac_prog_rejected = yes; then 1981 # We found a bogon in the path, so make sure we never use it. 1982 set dummy $ac_cv_prog_CC 1983 shift 1984 if test $# != 0; then 1985 # We chose a different compiler from the bogus one. 1986 # However, it has the same basename, so the bogon will be chosen 1987 # first if we set CC to just the basename; use the full file name. 1988 shift 1989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1990 fi 1991fi 1992fi 1993fi 1994CC=$ac_cv_prog_CC 1995if test -n "$CC"; then 1996 echo "$as_me:$LINENO: result: $CC" >&5 1997echo "${ECHO_T}$CC" >&6 1998else 1999 echo "$as_me:$LINENO: result: no" >&5 2000echo "${ECHO_T}no" >&6 2001fi 2002 2003fi 2004if test -z "$CC"; then 2005 if test -n "$ac_tool_prefix"; then 2006 for ac_prog in cl 2007 do 2008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2009set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2010echo "$as_me:$LINENO: checking for $ac_word" >&5 2011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2012if test "${ac_cv_prog_CC+set}" = set; then 2013 echo $ECHO_N "(cached) $ECHO_C" >&6 2014else 2015 if test -n "$CC"; then 2016 ac_cv_prog_CC="$CC" # Let the user override the test. 2017else 2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2019for as_dir in $PATH 2020do 2021 IFS=$as_save_IFS 2022 test -z "$as_dir" && as_dir=. 2023 for ac_exec_ext in '' $ac_executable_extensions; do 2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2027 break 2 2028 fi 2029done 2030done 2031 2032fi 2033fi 2034CC=$ac_cv_prog_CC 2035if test -n "$CC"; then 2036 echo "$as_me:$LINENO: result: $CC" >&5 2037echo "${ECHO_T}$CC" >&6 2038else 2039 echo "$as_me:$LINENO: result: no" >&5 2040echo "${ECHO_T}no" >&6 2041fi 2042 2043 test -n "$CC" && break 2044 done 2045fi 2046if test -z "$CC"; then 2047 ac_ct_CC=$CC 2048 for ac_prog in cl 2049do 2050 # Extract the first word of "$ac_prog", so it can be a program name with args. 2051set dummy $ac_prog; ac_word=$2 2052echo "$as_me:$LINENO: checking for $ac_word" >&5 2053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2054if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2055 echo $ECHO_N "(cached) $ECHO_C" >&6 2056else 2057 if test -n "$ac_ct_CC"; then 2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2059else 2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2061for as_dir in $PATH 2062do 2063 IFS=$as_save_IFS 2064 test -z "$as_dir" && as_dir=. 2065 for ac_exec_ext in '' $ac_executable_extensions; do 2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2067 ac_cv_prog_ac_ct_CC="$ac_prog" 2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2069 break 2 2070 fi 2071done 2072done 2073 2074fi 2075fi 2076ac_ct_CC=$ac_cv_prog_ac_ct_CC 2077if test -n "$ac_ct_CC"; then 2078 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2079echo "${ECHO_T}$ac_ct_CC" >&6 2080else 2081 echo "$as_me:$LINENO: result: no" >&5 2082echo "${ECHO_T}no" >&6 2083fi 2084 2085 test -n "$ac_ct_CC" && break 2086done 2087 2088 CC=$ac_ct_CC 2089fi 2090 2091fi 2092 2093 2094test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2095See \`config.log' for more details." >&5 2096echo "$as_me: error: no acceptable C compiler found in \$PATH 2097See \`config.log' for more details." >&2;} 2098 { (exit 1); exit 1; }; } 2099 2100# Provide some information about the compiler. 2101echo "$as_me:$LINENO:" \ 2102 "checking for C compiler version" >&5 2103ac_compiler=`set X $ac_compile; echo $2` 2104{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2105 (eval $ac_compiler --version </dev/null >&5) 2>&5 2106 ac_status=$? 2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2108 (exit $ac_status); } 2109{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2110 (eval $ac_compiler -v </dev/null >&5) 2>&5 2111 ac_status=$? 2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2113 (exit $ac_status); } 2114{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2115 (eval $ac_compiler -V </dev/null >&5) 2>&5 2116 ac_status=$? 2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2118 (exit $ac_status); } 2119 2120cat >conftest.$ac_ext <<_ACEOF 2121/* confdefs.h. */ 2122_ACEOF 2123cat confdefs.h >>conftest.$ac_ext 2124cat >>conftest.$ac_ext <<_ACEOF 2125/* end confdefs.h. */ 2126 2127int 2128main () 2129{ 2130 2131 ; 2132 return 0; 2133} 2134_ACEOF 2135ac_clean_files_save=$ac_clean_files 2136ac_clean_files="$ac_clean_files a.out a.exe b.out" 2137# Try to create an executable without -o first, disregard a.out. 2138# It will help us diagnose broken compilers, and finding out an intuition 2139# of exeext. 2140echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2141echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2142ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2143if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2144 (eval $ac_link_default) 2>&5 2145 ac_status=$? 2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2147 (exit $ac_status); }; then 2148 # Find the output, starting from the most likely. This scheme is 2149# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2150# resort. 2151 2152# Be careful to initialize this variable, since it used to be cached. 2153# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2154ac_cv_exeext= 2155# b.out is created by i960 compilers. 2156for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2157do 2158 test -f "$ac_file" || continue 2159 case $ac_file in 2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2161 ;; 2162 conftest.$ac_ext ) 2163 # This is the source file. 2164 ;; 2165 [ab].out ) 2166 # We found the default executable, but exeext='' is most 2167 # certainly right. 2168 break;; 2169 *.* ) 2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2171 # FIXME: I believe we export ac_cv_exeext for Libtool, 2172 # but it would be cool to find out if it's true. Does anybody 2173 # maintain Libtool? --akim. 2174 export ac_cv_exeext 2175 break;; 2176 * ) 2177 break;; 2178 esac 2179done 2180else 2181 echo "$as_me: failed program was:" >&5 2182sed 's/^/| /' conftest.$ac_ext >&5 2183 2184{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2185See \`config.log' for more details." >&5 2186echo "$as_me: error: C compiler cannot create executables 2187See \`config.log' for more details." >&2;} 2188 { (exit 77); exit 77; }; } 2189fi 2190 2191ac_exeext=$ac_cv_exeext 2192echo "$as_me:$LINENO: result: $ac_file" >&5 2193echo "${ECHO_T}$ac_file" >&6 2194 2195# Check the compiler produces executables we can run. If not, either 2196# the compiler is broken, or we cross compile. 2197echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2198echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2199# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2200# If not cross compiling, check that we can run a simple program. 2201if test "$cross_compiling" != yes; then 2202 if { ac_try='./$ac_file' 2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2204 (eval $ac_try) 2>&5 2205 ac_status=$? 2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 (exit $ac_status); }; }; then 2208 cross_compiling=no 2209 else 2210 if test "$cross_compiling" = maybe; then 2211 cross_compiling=yes 2212 else 2213 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2214If you meant to cross compile, use \`--host'. 2215See \`config.log' for more details." >&5 2216echo "$as_me: error: cannot run C compiled programs. 2217If you meant to cross compile, use \`--host'. 2218See \`config.log' for more details." >&2;} 2219 { (exit 1); exit 1; }; } 2220 fi 2221 fi 2222fi 2223echo "$as_me:$LINENO: result: yes" >&5 2224echo "${ECHO_T}yes" >&6 2225 2226rm -f a.out a.exe conftest$ac_cv_exeext b.out 2227ac_clean_files=$ac_clean_files_save 2228# Check the compiler produces executables we can run. If not, either 2229# the compiler is broken, or we cross compile. 2230echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2231echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2232echo "$as_me:$LINENO: result: $cross_compiling" >&5 2233echo "${ECHO_T}$cross_compiling" >&6 2234 2235echo "$as_me:$LINENO: checking for suffix of executables" >&5 2236echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2238 (eval $ac_link) 2>&5 2239 ac_status=$? 2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2241 (exit $ac_status); }; then 2242 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2243# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2244# work properly (i.e., refer to `conftest.exe'), while it won't with 2245# `rm'. 2246for ac_file in conftest.exe conftest conftest.*; do 2247 test -f "$ac_file" || continue 2248 case $ac_file in 2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2251 export ac_cv_exeext 2252 break;; 2253 * ) break;; 2254 esac 2255done 2256else 2257 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2258See \`config.log' for more details." >&5 2259echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2260See \`config.log' for more details." >&2;} 2261 { (exit 1); exit 1; }; } 2262fi 2263 2264rm -f conftest$ac_cv_exeext 2265echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2266echo "${ECHO_T}$ac_cv_exeext" >&6 2267 2268rm -f conftest.$ac_ext 2269EXEEXT=$ac_cv_exeext 2270ac_exeext=$EXEEXT 2271echo "$as_me:$LINENO: checking for suffix of object files" >&5 2272echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2273if test "${ac_cv_objext+set}" = set; then 2274 echo $ECHO_N "(cached) $ECHO_C" >&6 2275else 2276 cat >conftest.$ac_ext <<_ACEOF 2277/* confdefs.h. */ 2278_ACEOF 2279cat confdefs.h >>conftest.$ac_ext 2280cat >>conftest.$ac_ext <<_ACEOF 2281/* end confdefs.h. */ 2282 2283int 2284main () 2285{ 2286 2287 ; 2288 return 0; 2289} 2290_ACEOF 2291rm -f conftest.o conftest.obj 2292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2293 (eval $ac_compile) 2>&5 2294 ac_status=$? 2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2296 (exit $ac_status); }; then 2297 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2298 case $ac_file in 2299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2301 break;; 2302 esac 2303done 2304else 2305 echo "$as_me: failed program was:" >&5 2306sed 's/^/| /' conftest.$ac_ext >&5 2307 2308{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2309See \`config.log' for more details." >&5 2310echo "$as_me: error: cannot compute suffix of object files: cannot compile 2311See \`config.log' for more details." >&2;} 2312 { (exit 1); exit 1; }; } 2313fi 2314 2315rm -f conftest.$ac_cv_objext conftest.$ac_ext 2316fi 2317echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2318echo "${ECHO_T}$ac_cv_objext" >&6 2319OBJEXT=$ac_cv_objext 2320ac_objext=$OBJEXT 2321echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2322echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2323if test "${ac_cv_c_compiler_gnu+set}" = set; then 2324 echo $ECHO_N "(cached) $ECHO_C" >&6 2325else 2326 cat >conftest.$ac_ext <<_ACEOF 2327/* confdefs.h. */ 2328_ACEOF 2329cat confdefs.h >>conftest.$ac_ext 2330cat >>conftest.$ac_ext <<_ACEOF 2331/* end confdefs.h. */ 2332 2333int 2334main () 2335{ 2336#ifndef __GNUC__ 2337 choke me 2338#endif 2339 2340 ; 2341 return 0; 2342} 2343_ACEOF 2344rm -f conftest.$ac_objext 2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2346 (eval $ac_compile) 2>conftest.er1 2347 ac_status=$? 2348 grep -v '^ *+' conftest.er1 >conftest.err 2349 rm -f conftest.er1 2350 cat conftest.err >&5 2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2352 (exit $ac_status); } && 2353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2355 (eval $ac_try) 2>&5 2356 ac_status=$? 2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2358 (exit $ac_status); }; } && 2359 { ac_try='test -s conftest.$ac_objext' 2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2361 (eval $ac_try) 2>&5 2362 ac_status=$? 2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2364 (exit $ac_status); }; }; then 2365 ac_compiler_gnu=yes 2366else 2367 echo "$as_me: failed program was:" >&5 2368sed 's/^/| /' conftest.$ac_ext >&5 2369 2370ac_compiler_gnu=no 2371fi 2372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2373ac_cv_c_compiler_gnu=$ac_compiler_gnu 2374 2375fi 2376echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2377echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2378GCC=`test $ac_compiler_gnu = yes && echo yes` 2379ac_test_CFLAGS=${CFLAGS+set} 2380ac_save_CFLAGS=$CFLAGS 2381CFLAGS="-g" 2382echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2383echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2384if test "${ac_cv_prog_cc_g+set}" = set; then 2385 echo $ECHO_N "(cached) $ECHO_C" >&6 2386else 2387 cat >conftest.$ac_ext <<_ACEOF 2388/* confdefs.h. */ 2389_ACEOF 2390cat confdefs.h >>conftest.$ac_ext 2391cat >>conftest.$ac_ext <<_ACEOF 2392/* end confdefs.h. */ 2393 2394int 2395main () 2396{ 2397 2398 ; 2399 return 0; 2400} 2401_ACEOF 2402rm -f conftest.$ac_objext 2403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2404 (eval $ac_compile) 2>conftest.er1 2405 ac_status=$? 2406 grep -v '^ *+' conftest.er1 >conftest.err 2407 rm -f conftest.er1 2408 cat conftest.err >&5 2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2410 (exit $ac_status); } && 2411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2413 (eval $ac_try) 2>&5 2414 ac_status=$? 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2416 (exit $ac_status); }; } && 2417 { ac_try='test -s conftest.$ac_objext' 2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2419 (eval $ac_try) 2>&5 2420 ac_status=$? 2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2422 (exit $ac_status); }; }; then 2423 ac_cv_prog_cc_g=yes 2424else 2425 echo "$as_me: failed program was:" >&5 2426sed 's/^/| /' conftest.$ac_ext >&5 2427 2428ac_cv_prog_cc_g=no 2429fi 2430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2431fi 2432echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2433echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2434if test "$ac_test_CFLAGS" = set; then 2435 CFLAGS=$ac_save_CFLAGS 2436elif test $ac_cv_prog_cc_g = yes; then 2437 if test "$GCC" = yes; then 2438 CFLAGS="-g -O2" 2439 else 2440 CFLAGS="-g" 2441 fi 2442else 2443 if test "$GCC" = yes; then 2444 CFLAGS="-O2" 2445 else 2446 CFLAGS= 2447 fi 2448fi 2449echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2450echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2451if test "${ac_cv_prog_cc_stdc+set}" = set; then 2452 echo $ECHO_N "(cached) $ECHO_C" >&6 2453else 2454 ac_cv_prog_cc_stdc=no 2455ac_save_CC=$CC 2456cat >conftest.$ac_ext <<_ACEOF 2457/* confdefs.h. */ 2458_ACEOF 2459cat confdefs.h >>conftest.$ac_ext 2460cat >>conftest.$ac_ext <<_ACEOF 2461/* end confdefs.h. */ 2462#include <stdarg.h> 2463#include <stdio.h> 2464#include <sys/types.h> 2465#include <sys/stat.h> 2466/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2467struct buf { int x; }; 2468FILE * (*rcsopen) (struct buf *, struct stat *, int); 2469static char *e (p, i) 2470 char **p; 2471 int i; 2472{ 2473 return p[i]; 2474} 2475static char *f (char * (*g) (char **, int), char **p, ...) 2476{ 2477 char *s; 2478 va_list v; 2479 va_start (v,p); 2480 s = g (p, va_arg (v,int)); 2481 va_end (v); 2482 return s; 2483} 2484 2485/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2486 function prototypes and stuff, but not '\xHH' hex character constants. 2487 These don't provoke an error unfortunately, instead are silently treated 2488 as 'x'. The following induces an error, until -std1 is added to get 2489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2490 array size at least. It's necessary to write '\x00'==0 to get something 2491 that's true only with -std1. */ 2492int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2493 2494int test (int i, double x); 2495struct s1 {int (*f) (int a);}; 2496struct s2 {int (*f) (double a);}; 2497int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2498int argc; 2499char **argv; 2500int 2501main () 2502{ 2503return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2504 ; 2505 return 0; 2506} 2507_ACEOF 2508# Don't try gcc -ansi; that turns off useful extensions and 2509# breaks some systems' header files. 2510# AIX -qlanglvl=ansi 2511# Ultrix and OSF/1 -std1 2512# HP-UX 10.20 and later -Ae 2513# HP-UX older versions -Aa -D_HPUX_SOURCE 2514# SVR4 -Xc -D__EXTENSIONS__ 2515for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2516do 2517 CC="$ac_save_CC $ac_arg" 2518 rm -f conftest.$ac_objext 2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2520 (eval $ac_compile) 2>conftest.er1 2521 ac_status=$? 2522 grep -v '^ *+' conftest.er1 >conftest.err 2523 rm -f conftest.er1 2524 cat conftest.err >&5 2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2526 (exit $ac_status); } && 2527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2529 (eval $ac_try) 2>&5 2530 ac_status=$? 2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2532 (exit $ac_status); }; } && 2533 { ac_try='test -s conftest.$ac_objext' 2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2535 (eval $ac_try) 2>&5 2536 ac_status=$? 2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 (exit $ac_status); }; }; then 2539 ac_cv_prog_cc_stdc=$ac_arg 2540break 2541else 2542 echo "$as_me: failed program was:" >&5 2543sed 's/^/| /' conftest.$ac_ext >&5 2544 2545fi 2546rm -f conftest.err conftest.$ac_objext 2547done 2548rm -f conftest.$ac_ext conftest.$ac_objext 2549CC=$ac_save_CC 2550 2551fi 2552 2553case "x$ac_cv_prog_cc_stdc" in 2554 x|xno) 2555 echo "$as_me:$LINENO: result: none needed" >&5 2556echo "${ECHO_T}none needed" >&6 ;; 2557 *) 2558 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2559echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2560 CC="$CC $ac_cv_prog_cc_stdc" ;; 2561esac 2562 2563# Some people use a C++ compiler to compile C. Since we use `exit', 2564# in C++ we need to declare it. In case someone uses the same compiler 2565# for both compiling C and C++ we need to have the C++ compiler decide 2566# the declaration of exit, since it's the most demanding environment. 2567cat >conftest.$ac_ext <<_ACEOF 2568#ifndef __cplusplus 2569 choke me 2570#endif 2571_ACEOF 2572rm -f conftest.$ac_objext 2573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2574 (eval $ac_compile) 2>conftest.er1 2575 ac_status=$? 2576 grep -v '^ *+' conftest.er1 >conftest.err 2577 rm -f conftest.er1 2578 cat conftest.err >&5 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); } && 2581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2583 (eval $ac_try) 2>&5 2584 ac_status=$? 2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2586 (exit $ac_status); }; } && 2587 { ac_try='test -s conftest.$ac_objext' 2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2589 (eval $ac_try) 2>&5 2590 ac_status=$? 2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2592 (exit $ac_status); }; }; then 2593 for ac_declaration in \ 2594 '' \ 2595 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2596 'extern "C" void std::exit (int); using std::exit;' \ 2597 'extern "C" void exit (int) throw ();' \ 2598 'extern "C" void exit (int);' \ 2599 'void exit (int);' 2600do 2601 cat >conftest.$ac_ext <<_ACEOF 2602/* confdefs.h. */ 2603_ACEOF 2604cat confdefs.h >>conftest.$ac_ext 2605cat >>conftest.$ac_ext <<_ACEOF 2606/* end confdefs.h. */ 2607$ac_declaration 2608#include <stdlib.h> 2609int 2610main () 2611{ 2612exit (42); 2613 ; 2614 return 0; 2615} 2616_ACEOF 2617rm -f conftest.$ac_objext 2618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2619 (eval $ac_compile) 2>conftest.er1 2620 ac_status=$? 2621 grep -v '^ *+' conftest.er1 >conftest.err 2622 rm -f conftest.er1 2623 cat conftest.err >&5 2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2625 (exit $ac_status); } && 2626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2628 (eval $ac_try) 2>&5 2629 ac_status=$? 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 (exit $ac_status); }; } && 2632 { ac_try='test -s conftest.$ac_objext' 2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2634 (eval $ac_try) 2>&5 2635 ac_status=$? 2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2637 (exit $ac_status); }; }; then 2638 : 2639else 2640 echo "$as_me: failed program was:" >&5 2641sed 's/^/| /' conftest.$ac_ext >&5 2642 2643continue 2644fi 2645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2646 cat >conftest.$ac_ext <<_ACEOF 2647/* confdefs.h. */ 2648_ACEOF 2649cat confdefs.h >>conftest.$ac_ext 2650cat >>conftest.$ac_ext <<_ACEOF 2651/* end confdefs.h. */ 2652$ac_declaration 2653int 2654main () 2655{ 2656exit (42); 2657 ; 2658 return 0; 2659} 2660_ACEOF 2661rm -f conftest.$ac_objext 2662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2663 (eval $ac_compile) 2>conftest.er1 2664 ac_status=$? 2665 grep -v '^ *+' conftest.er1 >conftest.err 2666 rm -f conftest.er1 2667 cat conftest.err >&5 2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2669 (exit $ac_status); } && 2670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2672 (eval $ac_try) 2>&5 2673 ac_status=$? 2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2675 (exit $ac_status); }; } && 2676 { ac_try='test -s conftest.$ac_objext' 2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2678 (eval $ac_try) 2>&5 2679 ac_status=$? 2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2681 (exit $ac_status); }; }; then 2682 break 2683else 2684 echo "$as_me: failed program was:" >&5 2685sed 's/^/| /' conftest.$ac_ext >&5 2686 2687fi 2688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2689done 2690rm -f conftest* 2691if test -n "$ac_declaration"; then 2692 echo '#ifdef __cplusplus' >>confdefs.h 2693 echo $ac_declaration >>confdefs.h 2694 echo '#endif' >>confdefs.h 2695fi 2696 2697else 2698 echo "$as_me: failed program was:" >&5 2699sed 's/^/| /' conftest.$ac_ext >&5 2700 2701fi 2702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2703ac_ext=c 2704ac_cpp='$CPP $CPPFLAGS' 2705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2707ac_compiler_gnu=$ac_cv_c_compiler_gnu 2708DEPDIR="${am__leading_dot}deps" 2709 2710 ac_config_commands="$ac_config_commands depfiles" 2711 2712 2713am_make=${MAKE-make} 2714cat > confinc << 'END' 2715am__doit: 2716 @echo done 2717.PHONY: am__doit 2718END 2719# If we don't find an include directive, just comment out the code. 2720echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2721echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2722am__include="#" 2723am__quote= 2724_am_result=none 2725# First try GNU make style include. 2726echo "include confinc" > confmf 2727# We grep out `Entering directory' and `Leaving directory' 2728# messages which can occur if `w' ends up in MAKEFLAGS. 2729# In particular we don't look at `^make:' because GNU make might 2730# be invoked under some other name (usually "gmake"), in which 2731# case it prints its new name instead of `make'. 2732if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2733 am__include=include 2734 am__quote= 2735 _am_result=GNU 2736fi 2737# Now try BSD make style include. 2738if test "$am__include" = "#"; then 2739 echo '.include "confinc"' > confmf 2740 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2741 am__include=.include 2742 am__quote="\"" 2743 _am_result=BSD 2744 fi 2745fi 2746 2747 2748echo "$as_me:$LINENO: result: $_am_result" >&5 2749echo "${ECHO_T}$_am_result" >&6 2750rm -f confinc confmf 2751 2752# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2753if test "${enable_dependency_tracking+set}" = set; then 2754 enableval="$enable_dependency_tracking" 2755 2756fi; 2757if test "x$enable_dependency_tracking" != xno; then 2758 am_depcomp="$ac_aux_dir/depcomp" 2759 AMDEPBACKSLASH='\' 2760fi 2761 2762 2763if test "x$enable_dependency_tracking" != xno; then 2764 AMDEP_TRUE= 2765 AMDEP_FALSE='#' 2766else 2767 AMDEP_TRUE='#' 2768 AMDEP_FALSE= 2769fi 2770 2771 2772 2773 2774depcc="$CC" am_compiler_list= 2775 2776echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2777echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2778if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2779 echo $ECHO_N "(cached) $ECHO_C" >&6 2780else 2781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2782 # We make a subdir and do the tests there. Otherwise we can end up 2783 # making bogus files that we don't know about and never remove. For 2784 # instance it was reported that on HP-UX the gcc test will end up 2785 # making a dummy file named `D' -- because `-MD' means `put the output 2786 # in D'. 2787 mkdir conftest.dir 2788 # Copy depcomp to subdir because otherwise we won't find it if we're 2789 # using a relative directory. 2790 cp "$am_depcomp" conftest.dir 2791 cd conftest.dir 2792 # We will build objects and dependencies in a subdirectory because 2793 # it helps to detect inapplicable dependency modes. For instance 2794 # both Tru64's cc and ICC support -MD to output dependencies as a 2795 # side effect of compilation, but ICC will put the dependencies in 2796 # the current directory while Tru64 will put them in the object 2797 # directory. 2798 mkdir sub 2799 2800 am_cv_CC_dependencies_compiler_type=none 2801 if test "$am_compiler_list" = ""; then 2802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2803 fi 2804 for depmode in $am_compiler_list; do 2805 # Setup a source with many dependencies, because some compilers 2806 # like to wrap large dependency lists on column 80 (with \), and 2807 # we should not choose a depcomp mode which is confused by this. 2808 # 2809 # We need to recreate these files for each test, as the compiler may 2810 # overwrite some of them when testing with obscure command lines. 2811 # This happens at least with the AIX C compiler. 2812 : > sub/conftest.c 2813 for i in 1 2 3 4 5 6; do 2814 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2816 # Solaris 8's {/usr,}/bin/sh. 2817 touch sub/conftst$i.h 2818 done 2819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2820 2821 case $depmode in 2822 nosideeffect) 2823 # after this tag, mechanisms are not by side-effect, so they'll 2824 # only be used when explicitly requested 2825 if test "x$enable_dependency_tracking" = xyes; then 2826 continue 2827 else 2828 break 2829 fi 2830 ;; 2831 none) break ;; 2832 esac 2833 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2834 # mode. It turns out that the SunPro C++ compiler does not properly 2835 # handle `-M -o', and we need to detect this. 2836 if depmode=$depmode \ 2837 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2839 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2840 >/dev/null 2>conftest.err && 2841 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2842 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2844 # icc doesn't choke on unknown options, it will just issue warnings 2845 # or remarks (even with -Werror). So we grep stderr for any message 2846 # that says an option was ignored or not supported. 2847 # When given -MP, icc 7.0 and 7.1 complain thusly: 2848 # icc: Command line warning: ignoring option '-M'; no argument required 2849 # The diagnosis changed in icc 8.0: 2850 # icc: Command line remark: option '-MP' not supported 2851 if (grep 'ignoring option' conftest.err || 2852 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2853 am_cv_CC_dependencies_compiler_type=$depmode 2854 break 2855 fi 2856 fi 2857 done 2858 2859 cd .. 2860 rm -rf conftest.dir 2861else 2862 am_cv_CC_dependencies_compiler_type=none 2863fi 2864 2865fi 2866echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2867echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2868CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2869 2870 2871 2872if 2873 test "x$enable_dependency_tracking" != xno \ 2874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 2875 am__fastdepCC_TRUE= 2876 am__fastdepCC_FALSE='#' 2877else 2878 am__fastdepCC_TRUE='#' 2879 am__fastdepCC_FALSE= 2880fi 2881 2882 2883# Find a good install program. We prefer a C program (faster), 2884# so one script is as good as another. But avoid the broken or 2885# incompatible versions: 2886# SysV /etc/install, /usr/sbin/install 2887# SunOS /usr/etc/install 2888# IRIX /sbin/install 2889# AIX /bin/install 2890# AmigaOS /C/install, which installs bootblocks on floppy discs 2891# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2892# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2893# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2894# OS/2's system install, which has a completely different semantic 2895# ./install, which can be erroneously created by make from ./install.sh. 2896echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2897echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2898if test -z "$INSTALL"; then 2899if test "${ac_cv_path_install+set}" = set; then 2900 echo $ECHO_N "(cached) $ECHO_C" >&6 2901else 2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 # Account for people who put trailing slashes in PATH elements. 2908case $as_dir/ in 2909 ./ | .// | /cC/* | \ 2910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2911 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2912 /usr/ucb/* ) ;; 2913 *) 2914 # OSF1 and SCO ODT 3.0 have their own names for install. 2915 # Don't use installbsd from OSF since it installs stuff as root 2916 # by default. 2917 for ac_prog in ginstall scoinst install; do 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2920 if test $ac_prog = install && 2921 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2922 # AIX install. It has an incompatible calling convention. 2923 : 2924 elif test $ac_prog = install && 2925 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2926 # program-specific install script used by HP pwplus--don't use. 2927 : 2928 else 2929 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2930 break 3 2931 fi 2932 fi 2933 done 2934 done 2935 ;; 2936esac 2937done 2938 2939 2940fi 2941 if test "${ac_cv_path_install+set}" = set; then 2942 INSTALL=$ac_cv_path_install 2943 else 2944 # As a last resort, use the slow shell script. We don't cache a 2945 # path for INSTALL within a source directory, because that will 2946 # break other packages using the cache if that directory is 2947 # removed, or if the path is relative. 2948 INSTALL=$ac_install_sh 2949 fi 2950fi 2951echo "$as_me:$LINENO: result: $INSTALL" >&5 2952echo "${ECHO_T}$INSTALL" >&6 2953 2954# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2955# It thinks the first close brace ends the variable substitution. 2956test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2957 2958test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2959 2960test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2961 2962if test -n "$ac_tool_prefix"; then 2963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2964set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2965echo "$as_me:$LINENO: checking for $ac_word" >&5 2966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2967if test "${ac_cv_prog_RANLIB+set}" = set; then 2968 echo $ECHO_N "(cached) $ECHO_C" >&6 2969else 2970 if test -n "$RANLIB"; then 2971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2972else 2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974for as_dir in $PATH 2975do 2976 IFS=$as_save_IFS 2977 test -z "$as_dir" && as_dir=. 2978 for ac_exec_ext in '' $ac_executable_extensions; do 2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2982 break 2 2983 fi 2984done 2985done 2986 2987fi 2988fi 2989RANLIB=$ac_cv_prog_RANLIB 2990if test -n "$RANLIB"; then 2991 echo "$as_me:$LINENO: result: $RANLIB" >&5 2992echo "${ECHO_T}$RANLIB" >&6 2993else 2994 echo "$as_me:$LINENO: result: no" >&5 2995echo "${ECHO_T}no" >&6 2996fi 2997 2998fi 2999if test -z "$ac_cv_prog_RANLIB"; then 3000 ac_ct_RANLIB=$RANLIB 3001 # Extract the first word of "ranlib", so it can be a program name with args. 3002set dummy ranlib; ac_word=$2 3003echo "$as_me:$LINENO: checking for $ac_word" >&5 3004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3005if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3006 echo $ECHO_N "(cached) $ECHO_C" >&6 3007else 3008 if test -n "$ac_ct_RANLIB"; then 3009 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3010else 3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012for as_dir in $PATH 3013do 3014 IFS=$as_save_IFS 3015 test -z "$as_dir" && as_dir=. 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3018 ac_cv_prog_ac_ct_RANLIB="ranlib" 3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 break 2 3021 fi 3022done 3023done 3024 3025 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3026fi 3027fi 3028ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3029if test -n "$ac_ct_RANLIB"; then 3030 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3031echo "${ECHO_T}$ac_ct_RANLIB" >&6 3032else 3033 echo "$as_me:$LINENO: result: no" >&5 3034echo "${ECHO_T}no" >&6 3035fi 3036 3037 RANLIB=$ac_ct_RANLIB 3038else 3039 RANLIB="$ac_cv_prog_RANLIB" 3040fi 3041 3042ac_ext=c 3043ac_cpp='$CPP $CPPFLAGS' 3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3046ac_compiler_gnu=$ac_cv_c_compiler_gnu 3047echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3048echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3049# On Suns, sometimes $CPP names a directory. 3050if test -n "$CPP" && test -d "$CPP"; then 3051 CPP= 3052fi 3053if test -z "$CPP"; then 3054 if test "${ac_cv_prog_CPP+set}" = set; then 3055 echo $ECHO_N "(cached) $ECHO_C" >&6 3056else 3057 # Double quotes because CPP needs to be expanded 3058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3059 do 3060 ac_preproc_ok=false 3061for ac_c_preproc_warn_flag in '' yes 3062do 3063 # Use a header file that comes with gcc, so configuring glibc 3064 # with a fresh cross-compiler works. 3065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3066 # <limits.h> exists even on freestanding compilers. 3067 # On the NeXT, cc -E runs the code through the compiler's parser, 3068 # not just through cpp. "Syntax error" is here to catch this case. 3069 cat >conftest.$ac_ext <<_ACEOF 3070/* confdefs.h. */ 3071_ACEOF 3072cat confdefs.h >>conftest.$ac_ext 3073cat >>conftest.$ac_ext <<_ACEOF 3074/* end confdefs.h. */ 3075#ifdef __STDC__ 3076# include <limits.h> 3077#else 3078# include <assert.h> 3079#endif 3080 Syntax error 3081_ACEOF 3082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3084 ac_status=$? 3085 grep -v '^ *+' conftest.er1 >conftest.err 3086 rm -f conftest.er1 3087 cat conftest.err >&5 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); } >/dev/null; then 3090 if test -s conftest.err; then 3091 ac_cpp_err=$ac_c_preproc_warn_flag 3092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3093 else 3094 ac_cpp_err= 3095 fi 3096else 3097 ac_cpp_err=yes 3098fi 3099if test -z "$ac_cpp_err"; then 3100 : 3101else 3102 echo "$as_me: failed program was:" >&5 3103sed 's/^/| /' conftest.$ac_ext >&5 3104 3105 # Broken: fails on valid input. 3106continue 3107fi 3108rm -f conftest.err conftest.$ac_ext 3109 3110 # OK, works on sane cases. Now check whether non-existent headers 3111 # can be detected and how. 3112 cat >conftest.$ac_ext <<_ACEOF 3113/* confdefs.h. */ 3114_ACEOF 3115cat confdefs.h >>conftest.$ac_ext 3116cat >>conftest.$ac_ext <<_ACEOF 3117/* end confdefs.h. */ 3118#include <ac_nonexistent.h> 3119_ACEOF 3120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3122 ac_status=$? 3123 grep -v '^ *+' conftest.er1 >conftest.err 3124 rm -f conftest.er1 3125 cat conftest.err >&5 3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); } >/dev/null; then 3128 if test -s conftest.err; then 3129 ac_cpp_err=$ac_c_preproc_warn_flag 3130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3131 else 3132 ac_cpp_err= 3133 fi 3134else 3135 ac_cpp_err=yes 3136fi 3137if test -z "$ac_cpp_err"; then 3138 # Broken: success on invalid input. 3139continue 3140else 3141 echo "$as_me: failed program was:" >&5 3142sed 's/^/| /' conftest.$ac_ext >&5 3143 3144 # Passes both tests. 3145ac_preproc_ok=: 3146break 3147fi 3148rm -f conftest.err conftest.$ac_ext 3149 3150done 3151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3152rm -f conftest.err conftest.$ac_ext 3153if $ac_preproc_ok; then 3154 break 3155fi 3156 3157 done 3158 ac_cv_prog_CPP=$CPP 3159 3160fi 3161 CPP=$ac_cv_prog_CPP 3162else 3163 ac_cv_prog_CPP=$CPP 3164fi 3165echo "$as_me:$LINENO: result: $CPP" >&5 3166echo "${ECHO_T}$CPP" >&6 3167ac_preproc_ok=false 3168for ac_c_preproc_warn_flag in '' yes 3169do 3170 # Use a header file that comes with gcc, so configuring glibc 3171 # with a fresh cross-compiler works. 3172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3173 # <limits.h> exists even on freestanding compilers. 3174 # On the NeXT, cc -E runs the code through the compiler's parser, 3175 # not just through cpp. "Syntax error" is here to catch this case. 3176 cat >conftest.$ac_ext <<_ACEOF 3177/* confdefs.h. */ 3178_ACEOF 3179cat confdefs.h >>conftest.$ac_ext 3180cat >>conftest.$ac_ext <<_ACEOF 3181/* end confdefs.h. */ 3182#ifdef __STDC__ 3183# include <limits.h> 3184#else 3185# include <assert.h> 3186#endif 3187 Syntax error 3188_ACEOF 3189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3191 ac_status=$? 3192 grep -v '^ *+' conftest.er1 >conftest.err 3193 rm -f conftest.er1 3194 cat conftest.err >&5 3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); } >/dev/null; then 3197 if test -s conftest.err; then 3198 ac_cpp_err=$ac_c_preproc_warn_flag 3199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3200 else 3201 ac_cpp_err= 3202 fi 3203else 3204 ac_cpp_err=yes 3205fi 3206if test -z "$ac_cpp_err"; then 3207 : 3208else 3209 echo "$as_me: failed program was:" >&5 3210sed 's/^/| /' conftest.$ac_ext >&5 3211 3212 # Broken: fails on valid input. 3213continue 3214fi 3215rm -f conftest.err conftest.$ac_ext 3216 3217 # OK, works on sane cases. Now check whether non-existent headers 3218 # can be detected and how. 3219 cat >conftest.$ac_ext <<_ACEOF 3220/* confdefs.h. */ 3221_ACEOF 3222cat confdefs.h >>conftest.$ac_ext 3223cat >>conftest.$ac_ext <<_ACEOF 3224/* end confdefs.h. */ 3225#include <ac_nonexistent.h> 3226_ACEOF 3227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3229 ac_status=$? 3230 grep -v '^ *+' conftest.er1 >conftest.err 3231 rm -f conftest.er1 3232 cat conftest.err >&5 3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234 (exit $ac_status); } >/dev/null; then 3235 if test -s conftest.err; then 3236 ac_cpp_err=$ac_c_preproc_warn_flag 3237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3238 else 3239 ac_cpp_err= 3240 fi 3241else 3242 ac_cpp_err=yes 3243fi 3244if test -z "$ac_cpp_err"; then 3245 # Broken: success on invalid input. 3246continue 3247else 3248 echo "$as_me: failed program was:" >&5 3249sed 's/^/| /' conftest.$ac_ext >&5 3250 3251 # Passes both tests. 3252ac_preproc_ok=: 3253break 3254fi 3255rm -f conftest.err conftest.$ac_ext 3256 3257done 3258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3259rm -f conftest.err conftest.$ac_ext 3260if $ac_preproc_ok; then 3261 : 3262else 3263 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3264See \`config.log' for more details." >&5 3265echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3266See \`config.log' for more details." >&2;} 3267 { (exit 1); exit 1; }; } 3268fi 3269 3270ac_ext=c 3271ac_cpp='$CPP $CPPFLAGS' 3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3274ac_compiler_gnu=$ac_cv_c_compiler_gnu 3275 3276# Extract the first word of "ar", so it can be a program name with args. 3277set dummy ar; ac_word=$2 3278echo "$as_me:$LINENO: checking for $ac_word" >&5 3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3280if test "${ac_cv_prog_AR+set}" = set; then 3281 echo $ECHO_N "(cached) $ECHO_C" >&6 3282else 3283 if test -n "$AR"; then 3284 ac_cv_prog_AR="$AR" # Let the user override the test. 3285else 3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3287for as_dir in $PATH 3288do 3289 IFS=$as_save_IFS 3290 test -z "$as_dir" && as_dir=. 3291 for ac_exec_ext in '' $ac_executable_extensions; do 3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3293 ac_cv_prog_AR="ar" 3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3295 break 2 3296 fi 3297done 3298done 3299 3300 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 3301fi 3302fi 3303AR=$ac_cv_prog_AR 3304if test -n "$AR"; then 3305 echo "$as_me:$LINENO: result: $AR" >&5 3306echo "${ECHO_T}$AR" >&6 3307else 3308 echo "$as_me:$LINENO: result: no" >&5 3309echo "${ECHO_T}no" >&6 3310fi 3311 3312# Perl is needed for the test suite (only) 3313# Extract the first word of "perl", so it can be a program name with args. 3314set dummy perl; ac_word=$2 3315echo "$as_me:$LINENO: checking for $ac_word" >&5 3316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3317if test "${ac_cv_prog_PERL+set}" = set; then 3318 echo $ECHO_N "(cached) $ECHO_C" >&6 3319else 3320 if test -n "$PERL"; then 3321 ac_cv_prog_PERL="$PERL" # Let the user override the test. 3322else 3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3324for as_dir in $PATH 3325do 3326 IFS=$as_save_IFS 3327 test -z "$as_dir" && as_dir=. 3328 for ac_exec_ext in '' $ac_executable_extensions; do 3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3330 ac_cv_prog_PERL="perl" 3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3332 break 2 3333 fi 3334done 3335done 3336 3337 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl" 3338fi 3339fi 3340PERL=$ac_cv_prog_PERL 3341if test -n "$PERL"; then 3342 echo "$as_me:$LINENO: result: $PERL" >&5 3343echo "${ECHO_T}$PERL" >&6 3344else 3345 echo "$as_me:$LINENO: result: no" >&5 3346echo "${ECHO_T}no" >&6 3347fi 3348 3349 3350# Specialized system macros 3351# Make sure we can run config.sub. 3352$ac_config_sub sun4 >/dev/null 2>&1 || 3353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3354echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3355 { (exit 1); exit 1; }; } 3356 3357echo "$as_me:$LINENO: checking build system type" >&5 3358echo $ECHO_N "checking build system type... $ECHO_C" >&6 3359if test "${ac_cv_build+set}" = set; then 3360 echo $ECHO_N "(cached) $ECHO_C" >&6 3361else 3362 ac_cv_build_alias=$build_alias 3363test -z "$ac_cv_build_alias" && 3364 ac_cv_build_alias=`$ac_config_guess` 3365test -z "$ac_cv_build_alias" && 3366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3367echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3368 { (exit 1); exit 1; }; } 3369ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3371echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3372 { (exit 1); exit 1; }; } 3373 3374fi 3375echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3376echo "${ECHO_T}$ac_cv_build" >&6 3377build=$ac_cv_build 3378build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3379build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3380build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3381 3382 3383echo "$as_me:$LINENO: checking host system type" >&5 3384echo $ECHO_N "checking host system type... $ECHO_C" >&6 3385if test "${ac_cv_host+set}" = set; then 3386 echo $ECHO_N "(cached) $ECHO_C" >&6 3387else 3388 ac_cv_host_alias=$host_alias 3389test -z "$ac_cv_host_alias" && 3390 ac_cv_host_alias=$ac_cv_build_alias 3391ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3393echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3394 { (exit 1); exit 1; }; } 3395 3396fi 3397echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3398echo "${ECHO_T}$ac_cv_host" >&6 3399host=$ac_cv_host 3400host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3401host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3402host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3403 3404 3405 3406 3407echo "$as_me:$LINENO: checking for egrep" >&5 3408echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3409if test "${ac_cv_prog_egrep+set}" = set; then 3410 echo $ECHO_N "(cached) $ECHO_C" >&6 3411else 3412 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3413 then ac_cv_prog_egrep='grep -E' 3414 else ac_cv_prog_egrep='egrep' 3415 fi 3416fi 3417echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3418echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3419 EGREP=$ac_cv_prog_egrep 3420 3421 3422 3423echo "$as_me:$LINENO: checking for AIX" >&5 3424echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3425cat >conftest.$ac_ext <<_ACEOF 3426/* confdefs.h. */ 3427_ACEOF 3428cat confdefs.h >>conftest.$ac_ext 3429cat >>conftest.$ac_ext <<_ACEOF 3430/* end confdefs.h. */ 3431#ifdef _AIX 3432 yes 3433#endif 3434 3435_ACEOF 3436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3437 $EGREP "yes" >/dev/null 2>&1; then 3438 echo "$as_me:$LINENO: result: yes" >&5 3439echo "${ECHO_T}yes" >&6 3440cat >>confdefs.h <<\_ACEOF 3441#define _ALL_SOURCE 1 3442_ACEOF 3443 3444else 3445 echo "$as_me:$LINENO: result: no" >&5 3446echo "${ECHO_T}no" >&6 3447fi 3448rm -f conftest* 3449 3450 3451echo "$as_me:$LINENO: checking for library containing strerror" >&5 3452echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3453if test "${ac_cv_search_strerror+set}" = set; then 3454 echo $ECHO_N "(cached) $ECHO_C" >&6 3455else 3456 ac_func_search_save_LIBS=$LIBS 3457ac_cv_search_strerror=no 3458cat >conftest.$ac_ext <<_ACEOF 3459/* confdefs.h. */ 3460_ACEOF 3461cat confdefs.h >>conftest.$ac_ext 3462cat >>conftest.$ac_ext <<_ACEOF 3463/* end confdefs.h. */ 3464 3465/* Override any gcc2 internal prototype to avoid an error. */ 3466#ifdef __cplusplus 3467extern "C" 3468#endif 3469/* We use char because int might match the return type of a gcc2 3470 builtin and then its argument prototype would still apply. */ 3471char strerror (); 3472int 3473main () 3474{ 3475strerror (); 3476 ; 3477 return 0; 3478} 3479_ACEOF 3480rm -f conftest.$ac_objext conftest$ac_exeext 3481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3482 (eval $ac_link) 2>conftest.er1 3483 ac_status=$? 3484 grep -v '^ *+' conftest.er1 >conftest.err 3485 rm -f conftest.er1 3486 cat conftest.err >&5 3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3488 (exit $ac_status); } && 3489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3491 (eval $ac_try) 2>&5 3492 ac_status=$? 3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3494 (exit $ac_status); }; } && 3495 { ac_try='test -s conftest$ac_exeext' 3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3497 (eval $ac_try) 2>&5 3498 ac_status=$? 3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3500 (exit $ac_status); }; }; then 3501 ac_cv_search_strerror="none required" 3502else 3503 echo "$as_me: failed program was:" >&5 3504sed 's/^/| /' conftest.$ac_ext >&5 3505 3506fi 3507rm -f conftest.err conftest.$ac_objext \ 3508 conftest$ac_exeext conftest.$ac_ext 3509if test "$ac_cv_search_strerror" = no; then 3510 for ac_lib in cposix; do 3511 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3512 cat >conftest.$ac_ext <<_ACEOF 3513/* confdefs.h. */ 3514_ACEOF 3515cat confdefs.h >>conftest.$ac_ext 3516cat >>conftest.$ac_ext <<_ACEOF 3517/* end confdefs.h. */ 3518 3519/* Override any gcc2 internal prototype to avoid an error. */ 3520#ifdef __cplusplus 3521extern "C" 3522#endif 3523/* We use char because int might match the return type of a gcc2 3524 builtin and then its argument prototype would still apply. */ 3525char strerror (); 3526int 3527main () 3528{ 3529strerror (); 3530 ; 3531 return 0; 3532} 3533_ACEOF 3534rm -f conftest.$ac_objext conftest$ac_exeext 3535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3536 (eval $ac_link) 2>conftest.er1 3537 ac_status=$? 3538 grep -v '^ *+' conftest.er1 >conftest.err 3539 rm -f conftest.er1 3540 cat conftest.err >&5 3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3542 (exit $ac_status); } && 3543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3545 (eval $ac_try) 2>&5 3546 ac_status=$? 3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 (exit $ac_status); }; } && 3549 { ac_try='test -s conftest$ac_exeext' 3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3551 (eval $ac_try) 2>&5 3552 ac_status=$? 3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3554 (exit $ac_status); }; }; then 3555 ac_cv_search_strerror="-l$ac_lib" 3556break 3557else 3558 echo "$as_me: failed program was:" >&5 3559sed 's/^/| /' conftest.$ac_ext >&5 3560 3561fi 3562rm -f conftest.err conftest.$ac_objext \ 3563 conftest$ac_exeext conftest.$ac_ext 3564 done 3565fi 3566LIBS=$ac_func_search_save_LIBS 3567fi 3568echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3569echo "${ECHO_T}$ac_cv_search_strerror" >&6 3570if test "$ac_cv_search_strerror" != no; then 3571 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3572 3573fi 3574 3575echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3576echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3577if test "${ac_cv_header_stdc+set}" = set; then 3578 echo $ECHO_N "(cached) $ECHO_C" >&6 3579else 3580 cat >conftest.$ac_ext <<_ACEOF 3581/* confdefs.h. */ 3582_ACEOF 3583cat confdefs.h >>conftest.$ac_ext 3584cat >>conftest.$ac_ext <<_ACEOF 3585/* end confdefs.h. */ 3586#include <stdlib.h> 3587#include <stdarg.h> 3588#include <string.h> 3589#include <float.h> 3590 3591int 3592main () 3593{ 3594 3595 ; 3596 return 0; 3597} 3598_ACEOF 3599rm -f conftest.$ac_objext 3600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3601 (eval $ac_compile) 2>conftest.er1 3602 ac_status=$? 3603 grep -v '^ *+' conftest.er1 >conftest.err 3604 rm -f conftest.er1 3605 cat conftest.err >&5 3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3607 (exit $ac_status); } && 3608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3610 (eval $ac_try) 2>&5 3611 ac_status=$? 3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3613 (exit $ac_status); }; } && 3614 { ac_try='test -s conftest.$ac_objext' 3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3616 (eval $ac_try) 2>&5 3617 ac_status=$? 3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3619 (exit $ac_status); }; }; then 3620 ac_cv_header_stdc=yes 3621else 3622 echo "$as_me: failed program was:" >&5 3623sed 's/^/| /' conftest.$ac_ext >&5 3624 3625ac_cv_header_stdc=no 3626fi 3627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3628 3629if test $ac_cv_header_stdc = yes; then 3630 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3631 cat >conftest.$ac_ext <<_ACEOF 3632/* confdefs.h. */ 3633_ACEOF 3634cat confdefs.h >>conftest.$ac_ext 3635cat >>conftest.$ac_ext <<_ACEOF 3636/* end confdefs.h. */ 3637#include <string.h> 3638 3639_ACEOF 3640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3641 $EGREP "memchr" >/dev/null 2>&1; then 3642 : 3643else 3644 ac_cv_header_stdc=no 3645fi 3646rm -f conftest* 3647 3648fi 3649 3650if test $ac_cv_header_stdc = yes; then 3651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3652 cat >conftest.$ac_ext <<_ACEOF 3653/* confdefs.h. */ 3654_ACEOF 3655cat confdefs.h >>conftest.$ac_ext 3656cat >>conftest.$ac_ext <<_ACEOF 3657/* end confdefs.h. */ 3658#include <stdlib.h> 3659 3660_ACEOF 3661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3662 $EGREP "free" >/dev/null 2>&1; then 3663 : 3664else 3665 ac_cv_header_stdc=no 3666fi 3667rm -f conftest* 3668 3669fi 3670 3671if test $ac_cv_header_stdc = yes; then 3672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3673 if test "$cross_compiling" = yes; then 3674 : 3675else 3676 cat >conftest.$ac_ext <<_ACEOF 3677/* confdefs.h. */ 3678_ACEOF 3679cat confdefs.h >>conftest.$ac_ext 3680cat >>conftest.$ac_ext <<_ACEOF 3681/* end confdefs.h. */ 3682#include <ctype.h> 3683#if ((' ' & 0x0FF) == 0x020) 3684# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3685# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3686#else 3687# define ISLOWER(c) \ 3688 (('a' <= (c) && (c) <= 'i') \ 3689 || ('j' <= (c) && (c) <= 'r') \ 3690 || ('s' <= (c) && (c) <= 'z')) 3691# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3692#endif 3693 3694#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3695int 3696main () 3697{ 3698 int i; 3699 for (i = 0; i < 256; i++) 3700 if (XOR (islower (i), ISLOWER (i)) 3701 || toupper (i) != TOUPPER (i)) 3702 exit(2); 3703 exit (0); 3704} 3705_ACEOF 3706rm -f conftest$ac_exeext 3707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3708 (eval $ac_link) 2>&5 3709 ac_status=$? 3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3713 (eval $ac_try) 2>&5 3714 ac_status=$? 3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3716 (exit $ac_status); }; }; then 3717 : 3718else 3719 echo "$as_me: program exited with status $ac_status" >&5 3720echo "$as_me: failed program was:" >&5 3721sed 's/^/| /' conftest.$ac_ext >&5 3722 3723( exit $ac_status ) 3724ac_cv_header_stdc=no 3725fi 3726rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3727fi 3728fi 3729fi 3730echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3731echo "${ECHO_T}$ac_cv_header_stdc" >&6 3732if test $ac_cv_header_stdc = yes; then 3733 3734cat >>confdefs.h <<\_ACEOF 3735#define STDC_HEADERS 1 3736_ACEOF 3737 3738fi 3739 3740# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3751 inttypes.h stdint.h unistd.h 3752do 3753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3754echo "$as_me:$LINENO: checking for $ac_header" >&5 3755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3756if eval "test \"\${$as_ac_Header+set}\" = set"; then 3757 echo $ECHO_N "(cached) $ECHO_C" >&6 3758else 3759 cat >conftest.$ac_ext <<_ACEOF 3760/* confdefs.h. */ 3761_ACEOF 3762cat confdefs.h >>conftest.$ac_ext 3763cat >>conftest.$ac_ext <<_ACEOF 3764/* end confdefs.h. */ 3765$ac_includes_default 3766 3767#include <$ac_header> 3768_ACEOF 3769rm -f conftest.$ac_objext 3770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3771 (eval $ac_compile) 2>conftest.er1 3772 ac_status=$? 3773 grep -v '^ *+' conftest.er1 >conftest.err 3774 rm -f conftest.er1 3775 cat conftest.err >&5 3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3777 (exit $ac_status); } && 3778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3780 (eval $ac_try) 2>&5 3781 ac_status=$? 3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783 (exit $ac_status); }; } && 3784 { ac_try='test -s conftest.$ac_objext' 3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3786 (eval $ac_try) 2>&5 3787 ac_status=$? 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3789 (exit $ac_status); }; }; then 3790 eval "$as_ac_Header=yes" 3791else 3792 echo "$as_me: failed program was:" >&5 3793sed 's/^/| /' conftest.$ac_ext >&5 3794 3795eval "$as_ac_Header=no" 3796fi 3797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3798fi 3799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3801if test `eval echo '${'$as_ac_Header'}'` = yes; then 3802 cat >>confdefs.h <<_ACEOF 3803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3804_ACEOF 3805 3806fi 3807 3808done 3809 3810 3811if test "${ac_cv_header_minix_config_h+set}" = set; then 3812 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3813echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3814if test "${ac_cv_header_minix_config_h+set}" = set; then 3815 echo $ECHO_N "(cached) $ECHO_C" >&6 3816fi 3817echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3818echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3819else 3820 # Is the header compilable? 3821echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3822echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3823cat >conftest.$ac_ext <<_ACEOF 3824/* confdefs.h. */ 3825_ACEOF 3826cat confdefs.h >>conftest.$ac_ext 3827cat >>conftest.$ac_ext <<_ACEOF 3828/* end confdefs.h. */ 3829$ac_includes_default 3830#include <minix/config.h> 3831_ACEOF 3832rm -f conftest.$ac_objext 3833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3834 (eval $ac_compile) 2>conftest.er1 3835 ac_status=$? 3836 grep -v '^ *+' conftest.er1 >conftest.err 3837 rm -f conftest.er1 3838 cat conftest.err >&5 3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 (exit $ac_status); } && 3841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3843 (eval $ac_try) 2>&5 3844 ac_status=$? 3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 (exit $ac_status); }; } && 3847 { ac_try='test -s conftest.$ac_objext' 3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3849 (eval $ac_try) 2>&5 3850 ac_status=$? 3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3852 (exit $ac_status); }; }; then 3853 ac_header_compiler=yes 3854else 3855 echo "$as_me: failed program was:" >&5 3856sed 's/^/| /' conftest.$ac_ext >&5 3857 3858ac_header_compiler=no 3859fi 3860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3862echo "${ECHO_T}$ac_header_compiler" >&6 3863 3864# Is the header present? 3865echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3866echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3867cat >conftest.$ac_ext <<_ACEOF 3868/* confdefs.h. */ 3869_ACEOF 3870cat confdefs.h >>conftest.$ac_ext 3871cat >>conftest.$ac_ext <<_ACEOF 3872/* end confdefs.h. */ 3873#include <minix/config.h> 3874_ACEOF 3875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3877 ac_status=$? 3878 grep -v '^ *+' conftest.er1 >conftest.err 3879 rm -f conftest.er1 3880 cat conftest.err >&5 3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3882 (exit $ac_status); } >/dev/null; then 3883 if test -s conftest.err; then 3884 ac_cpp_err=$ac_c_preproc_warn_flag 3885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3886 else 3887 ac_cpp_err= 3888 fi 3889else 3890 ac_cpp_err=yes 3891fi 3892if test -z "$ac_cpp_err"; then 3893 ac_header_preproc=yes 3894else 3895 echo "$as_me: failed program was:" >&5 3896sed 's/^/| /' conftest.$ac_ext >&5 3897 3898 ac_header_preproc=no 3899fi 3900rm -f conftest.err conftest.$ac_ext 3901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3902echo "${ECHO_T}$ac_header_preproc" >&6 3903 3904# So? What about this header? 3905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3906 yes:no: ) 3907 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3908echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3910echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3911 ac_header_preproc=yes 3912 ;; 3913 no:yes:* ) 3914 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3915echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3916 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3917echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3918 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3919echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3920 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3921echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3922 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3923echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3924 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3925echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3926 ( 3927 cat <<\_ASBOX 3928## ------------------------------- ## 3929## Report this to bug-make@gnu.org ## 3930## ------------------------------- ## 3931_ASBOX 3932 ) | 3933 sed "s/^/$as_me: WARNING: /" >&2 3934 ;; 3935esac 3936echo "$as_me:$LINENO: checking for minix/config.h" >&5 3937echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3938if test "${ac_cv_header_minix_config_h+set}" = set; then 3939 echo $ECHO_N "(cached) $ECHO_C" >&6 3940else 3941 ac_cv_header_minix_config_h=$ac_header_preproc 3942fi 3943echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3944echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3945 3946fi 3947if test $ac_cv_header_minix_config_h = yes; then 3948 MINIX=yes 3949else 3950 MINIX= 3951fi 3952 3953 3954if test "$MINIX" = yes; then 3955 3956cat >>confdefs.h <<\_ACEOF 3957#define _POSIX_SOURCE 1 3958_ACEOF 3959 3960 3961cat >>confdefs.h <<\_ACEOF 3962#define _POSIX_1_SOURCE 2 3963_ACEOF 3964 3965 3966cat >>confdefs.h <<\_ACEOF 3967#define _MINIX 1 3968_ACEOF 3969 3970fi 3971 3972 3973# Needed for ansi2knr 3974echo "$as_me:$LINENO: checking for function prototypes" >&5 3975echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 3976if test "$ac_cv_prog_cc_stdc" != no; then 3977 echo "$as_me:$LINENO: result: yes" >&5 3978echo "${ECHO_T}yes" >&6 3979 3980cat >>confdefs.h <<\_ACEOF 3981#define PROTOTYPES 1 3982_ACEOF 3983 3984 3985cat >>confdefs.h <<\_ACEOF 3986#define __PROTOTYPES 1 3987_ACEOF 3988 3989else 3990 echo "$as_me:$LINENO: result: no" >&5 3991echo "${ECHO_T}no" >&6 3992fi 3993 3994 3995if test "$ac_cv_prog_cc_stdc" != no; then 3996 U= ANSI2KNR= 3997else 3998 U=_ ANSI2KNR=./ansi2knr 3999fi 4000# Ensure some checks needed by ansi2knr itself. 4001 4002 4003for ac_header in string.h 4004do 4005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4006if eval "test \"\${$as_ac_Header+set}\" = set"; then 4007 echo "$as_me:$LINENO: checking for $ac_header" >&5 4008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4009if eval "test \"\${$as_ac_Header+set}\" = set"; then 4010 echo $ECHO_N "(cached) $ECHO_C" >&6 4011fi 4012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4013echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4014else 4015 # Is the header compilable? 4016echo "$as_me:$LINENO: checking $ac_header usability" >&5 4017echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4018cat >conftest.$ac_ext <<_ACEOF 4019/* confdefs.h. */ 4020_ACEOF 4021cat confdefs.h >>conftest.$ac_ext 4022cat >>conftest.$ac_ext <<_ACEOF 4023/* end confdefs.h. */ 4024$ac_includes_default 4025#include <$ac_header> 4026_ACEOF 4027rm -f conftest.$ac_objext 4028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4029 (eval $ac_compile) 2>conftest.er1 4030 ac_status=$? 4031 grep -v '^ *+' conftest.er1 >conftest.err 4032 rm -f conftest.er1 4033 cat conftest.err >&5 4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4035 (exit $ac_status); } && 4036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4038 (eval $ac_try) 2>&5 4039 ac_status=$? 4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4041 (exit $ac_status); }; } && 4042 { ac_try='test -s conftest.$ac_objext' 4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4044 (eval $ac_try) 2>&5 4045 ac_status=$? 4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4047 (exit $ac_status); }; }; then 4048 ac_header_compiler=yes 4049else 4050 echo "$as_me: failed program was:" >&5 4051sed 's/^/| /' conftest.$ac_ext >&5 4052 4053ac_header_compiler=no 4054fi 4055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4056echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4057echo "${ECHO_T}$ac_header_compiler" >&6 4058 4059# Is the header present? 4060echo "$as_me:$LINENO: checking $ac_header presence" >&5 4061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4062cat >conftest.$ac_ext <<_ACEOF 4063/* confdefs.h. */ 4064_ACEOF 4065cat confdefs.h >>conftest.$ac_ext 4066cat >>conftest.$ac_ext <<_ACEOF 4067/* end confdefs.h. */ 4068#include <$ac_header> 4069_ACEOF 4070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4072 ac_status=$? 4073 grep -v '^ *+' conftest.er1 >conftest.err 4074 rm -f conftest.er1 4075 cat conftest.err >&5 4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 (exit $ac_status); } >/dev/null; then 4078 if test -s conftest.err; then 4079 ac_cpp_err=$ac_c_preproc_warn_flag 4080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4081 else 4082 ac_cpp_err= 4083 fi 4084else 4085 ac_cpp_err=yes 4086fi 4087if test -z "$ac_cpp_err"; then 4088 ac_header_preproc=yes 4089else 4090 echo "$as_me: failed program was:" >&5 4091sed 's/^/| /' conftest.$ac_ext >&5 4092 4093 ac_header_preproc=no 4094fi 4095rm -f conftest.err conftest.$ac_ext 4096echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4097echo "${ECHO_T}$ac_header_preproc" >&6 4098 4099# So? What about this header? 4100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4101 yes:no: ) 4102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4103echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4105echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4106 ac_header_preproc=yes 4107 ;; 4108 no:yes:* ) 4109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4110echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4112echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4114echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4116echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4118echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4120echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4121 ( 4122 cat <<\_ASBOX 4123## ------------------------------- ## 4124## Report this to bug-make@gnu.org ## 4125## ------------------------------- ## 4126_ASBOX 4127 ) | 4128 sed "s/^/$as_me: WARNING: /" >&2 4129 ;; 4130esac 4131echo "$as_me:$LINENO: checking for $ac_header" >&5 4132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4133if eval "test \"\${$as_ac_Header+set}\" = set"; then 4134 echo $ECHO_N "(cached) $ECHO_C" >&6 4135else 4136 eval "$as_ac_Header=\$ac_header_preproc" 4137fi 4138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4140 4141fi 4142if test `eval echo '${'$as_ac_Header'}'` = yes; then 4143 cat >>confdefs.h <<_ACEOF 4144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4145_ACEOF 4146 4147fi 4148 4149done 4150 4151 4152 4153# Enable gettext, in "external" mode. 4154 4155 4156 4157 MKINSTALLDIRS= 4158 if test -n "$ac_aux_dir"; then 4159 case "$ac_aux_dir" in 4160 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 4161 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 4162 esac 4163 fi 4164 if test -z "$MKINSTALLDIRS"; then 4165 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 4166 fi 4167 4168 4169 4170 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 4171echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 4172 # Check whether --enable-nls or --disable-nls was given. 4173if test "${enable_nls+set}" = set; then 4174 enableval="$enable_nls" 4175 USE_NLS=$enableval 4176else 4177 USE_NLS=yes 4178fi; 4179 echo "$as_me:$LINENO: result: $USE_NLS" >&5 4180echo "${ECHO_T}$USE_NLS" >&6 4181 4182 4183 4184 4185 4186 4187# Prepare PATH_SEPARATOR. 4188# The user is always right. 4189if test "${PATH_SEPARATOR+set}" != set; then 4190 echo "#! /bin/sh" >conf$$.sh 4191 echo "exit 0" >>conf$$.sh 4192 chmod +x conf$$.sh 4193 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4194 PATH_SEPARATOR=';' 4195 else 4196 PATH_SEPARATOR=: 4197 fi 4198 rm -f conf$$.sh 4199fi 4200 4201# Find out how to test for executable files. Don't use a zero-byte file, 4202# as systems may use methods other than mode bits to determine executability. 4203cat >conf$$.file <<_ASEOF 4204#! /bin/sh 4205exit 0 4206_ASEOF 4207chmod +x conf$$.file 4208if test -x conf$$.file >/dev/null 2>&1; then 4209 ac_executable_p="test -x" 4210else 4211 ac_executable_p="test -f" 4212fi 4213rm -f conf$$.file 4214 4215# Extract the first word of "msgfmt", so it can be a program name with args. 4216set dummy msgfmt; ac_word=$2 4217echo "$as_me:$LINENO: checking for $ac_word" >&5 4218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4219if test "${ac_cv_path_MSGFMT+set}" = set; then 4220 echo $ECHO_N "(cached) $ECHO_C" >&6 4221else 4222 case "$MSGFMT" in 4223 [\\/]* | ?:[\\/]*) 4224 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4225 ;; 4226 *) 4227 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4228 for ac_dir in $PATH; do 4229 IFS="$ac_save_IFS" 4230 test -z "$ac_dir" && ac_dir=. 4231 for ac_exec_ext in '' $ac_executable_extensions; do 4232 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4233 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 4234 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4235 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 4236 break 2 4237 fi 4238 fi 4239 done 4240 done 4241 IFS="$ac_save_IFS" 4242 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 4243 ;; 4244esac 4245fi 4246MSGFMT="$ac_cv_path_MSGFMT" 4247if test "$MSGFMT" != ":"; then 4248 echo "$as_me:$LINENO: result: $MSGFMT" >&5 4249echo "${ECHO_T}$MSGFMT" >&6 4250else 4251 echo "$as_me:$LINENO: result: no" >&5 4252echo "${ECHO_T}no" >&6 4253fi 4254 4255 # Extract the first word of "gmsgfmt", so it can be a program name with args. 4256set dummy gmsgfmt; ac_word=$2 4257echo "$as_me:$LINENO: checking for $ac_word" >&5 4258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4259if test "${ac_cv_path_GMSGFMT+set}" = set; then 4260 echo $ECHO_N "(cached) $ECHO_C" >&6 4261else 4262 case $GMSGFMT in 4263 [\\/]* | ?:[\\/]*) 4264 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4265 ;; 4266 *) 4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4268for as_dir in $PATH 4269do 4270 IFS=$as_save_IFS 4271 test -z "$as_dir" && as_dir=. 4272 for ac_exec_ext in '' $ac_executable_extensions; do 4273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4274 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4276 break 2 4277 fi 4278done 4279done 4280 4281 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4282 ;; 4283esac 4284fi 4285GMSGFMT=$ac_cv_path_GMSGFMT 4286 4287if test -n "$GMSGFMT"; then 4288 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 4289echo "${ECHO_T}$GMSGFMT" >&6 4290else 4291 echo "$as_me:$LINENO: result: no" >&5 4292echo "${ECHO_T}no" >&6 4293fi 4294 4295 4296 4297# Prepare PATH_SEPARATOR. 4298# The user is always right. 4299if test "${PATH_SEPARATOR+set}" != set; then 4300 echo "#! /bin/sh" >conf$$.sh 4301 echo "exit 0" >>conf$$.sh 4302 chmod +x conf$$.sh 4303 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4304 PATH_SEPARATOR=';' 4305 else 4306 PATH_SEPARATOR=: 4307 fi 4308 rm -f conf$$.sh 4309fi 4310 4311# Find out how to test for executable files. Don't use a zero-byte file, 4312# as systems may use methods other than mode bits to determine executability. 4313cat >conf$$.file <<_ASEOF 4314#! /bin/sh 4315exit 0 4316_ASEOF 4317chmod +x conf$$.file 4318if test -x conf$$.file >/dev/null 2>&1; then 4319 ac_executable_p="test -x" 4320else 4321 ac_executable_p="test -f" 4322fi 4323rm -f conf$$.file 4324 4325# Extract the first word of "xgettext", so it can be a program name with args. 4326set dummy xgettext; ac_word=$2 4327echo "$as_me:$LINENO: checking for $ac_word" >&5 4328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4329if test "${ac_cv_path_XGETTEXT+set}" = set; then 4330 echo $ECHO_N "(cached) $ECHO_C" >&6 4331else 4332 case "$XGETTEXT" in 4333 [\\/]* | ?:[\\/]*) 4334 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4335 ;; 4336 *) 4337 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4338 for ac_dir in $PATH; do 4339 IFS="$ac_save_IFS" 4340 test -z "$ac_dir" && ac_dir=. 4341 for ac_exec_ext in '' $ac_executable_extensions; do 4342 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4343 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4344 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4345 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 4346 break 2 4347 fi 4348 fi 4349 done 4350 done 4351 IFS="$ac_save_IFS" 4352 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4353 ;; 4354esac 4355fi 4356XGETTEXT="$ac_cv_path_XGETTEXT" 4357if test "$XGETTEXT" != ":"; then 4358 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 4359echo "${ECHO_T}$XGETTEXT" >&6 4360else 4361 echo "$as_me:$LINENO: result: no" >&5 4362echo "${ECHO_T}no" >&6 4363fi 4364 4365 rm -f messages.po 4366 4367 4368# Prepare PATH_SEPARATOR. 4369# The user is always right. 4370if test "${PATH_SEPARATOR+set}" != set; then 4371 echo "#! /bin/sh" >conf$$.sh 4372 echo "exit 0" >>conf$$.sh 4373 chmod +x conf$$.sh 4374 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4375 PATH_SEPARATOR=';' 4376 else 4377 PATH_SEPARATOR=: 4378 fi 4379 rm -f conf$$.sh 4380fi 4381 4382# Find out how to test for executable files. Don't use a zero-byte file, 4383# as systems may use methods other than mode bits to determine executability. 4384cat >conf$$.file <<_ASEOF 4385#! /bin/sh 4386exit 0 4387_ASEOF 4388chmod +x conf$$.file 4389if test -x conf$$.file >/dev/null 2>&1; then 4390 ac_executable_p="test -x" 4391else 4392 ac_executable_p="test -f" 4393fi 4394rm -f conf$$.file 4395 4396# Extract the first word of "msgmerge", so it can be a program name with args. 4397set dummy msgmerge; ac_word=$2 4398echo "$as_me:$LINENO: checking for $ac_word" >&5 4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4400if test "${ac_cv_path_MSGMERGE+set}" = set; then 4401 echo $ECHO_N "(cached) $ECHO_C" >&6 4402else 4403 case "$MSGMERGE" in 4404 [\\/]* | ?:[\\/]*) 4405 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4406 ;; 4407 *) 4408 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4409 for ac_dir in $PATH; do 4410 IFS="$ac_save_IFS" 4411 test -z "$ac_dir" && ac_dir=. 4412 for ac_exec_ext in '' $ac_executable_extensions; do 4413 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4414 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 4415 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 4416 break 2 4417 fi 4418 fi 4419 done 4420 done 4421 IFS="$ac_save_IFS" 4422 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 4423 ;; 4424esac 4425fi 4426MSGMERGE="$ac_cv_path_MSGMERGE" 4427if test "$MSGMERGE" != ":"; then 4428 echo "$as_me:$LINENO: result: $MSGMERGE" >&5 4429echo "${ECHO_T}$MSGMERGE" >&6 4430else 4431 echo "$as_me:$LINENO: result: no" >&5 4432echo "${ECHO_T}no" >&6 4433fi 4434 4435 4436 if test "$GMSGFMT" != ":"; then 4437 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 4438 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4439 : ; 4440 else 4441 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 4442 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 4443echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 4444 GMSGFMT=":" 4445 fi 4446 fi 4447 4448 if test "$XGETTEXT" != ":"; then 4449 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4450 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4451 : ; 4452 else 4453 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 4454echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 4455 XGETTEXT=":" 4456 fi 4457 rm -f messages.po 4458 fi 4459 4460 ac_config_commands="$ac_config_commands default-1" 4461 4462 4463 4464 if test "X$prefix" = "XNONE"; then 4465 acl_final_prefix="$ac_default_prefix" 4466 else 4467 acl_final_prefix="$prefix" 4468 fi 4469 if test "X$exec_prefix" = "XNONE"; then 4470 acl_final_exec_prefix='${prefix}' 4471 else 4472 acl_final_exec_prefix="$exec_prefix" 4473 fi 4474 acl_save_prefix="$prefix" 4475 prefix="$acl_final_prefix" 4476 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 4477 prefix="$acl_save_prefix" 4478 4479 4480# Check whether --with-gnu-ld or --without-gnu-ld was given. 4481if test "${with_gnu_ld+set}" = set; then 4482 withval="$with_gnu_ld" 4483 test "$withval" = no || with_gnu_ld=yes 4484else 4485 with_gnu_ld=no 4486fi; 4487# Prepare PATH_SEPARATOR. 4488# The user is always right. 4489if test "${PATH_SEPARATOR+set}" != set; then 4490 echo "#! /bin/sh" >conf$$.sh 4491 echo "exit 0" >>conf$$.sh 4492 chmod +x conf$$.sh 4493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4494 PATH_SEPARATOR=';' 4495 else 4496 PATH_SEPARATOR=: 4497 fi 4498 rm -f conf$$.sh 4499fi 4500ac_prog=ld 4501if test "$GCC" = yes; then 4502 # Check if gcc -print-prog-name=ld gives a path. 4503 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 4504echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 4505 case $host in 4506 *-*-mingw*) 4507 # gcc leaves a trailing carriage return which upsets mingw 4508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4509 *) 4510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4511 esac 4512 case $ac_prog in 4513 # Accept absolute paths. 4514 [\\/]* | [A-Za-z]:[\\/]*) 4515 re_direlt='/[^/][^/]*/\.\./' 4516 # Canonicalize the path of ld 4517 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 4518 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4519 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4520 done 4521 test -z "$LD" && LD="$ac_prog" 4522 ;; 4523 "") 4524 # If it fails, then pretend we aren't using GCC. 4525 ac_prog=ld 4526 ;; 4527 *) 4528 # If it is relative, then search for the first ld in PATH. 4529 with_gnu_ld=unknown 4530 ;; 4531 esac 4532elif test "$with_gnu_ld" = yes; then 4533 echo "$as_me:$LINENO: checking for GNU ld" >&5 4534echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4535else 4536 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4537echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4538fi 4539if test "${acl_cv_path_LD+set}" = set; then 4540 echo $ECHO_N "(cached) $ECHO_C" >&6 4541else 4542 if test -z "$LD"; then 4543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 4544 for ac_dir in $PATH; do 4545 test -z "$ac_dir" && ac_dir=. 4546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4547 acl_cv_path_LD="$ac_dir/$ac_prog" 4548 # Check to see if the program is GNU ld. I'd rather use --version, 4549 # but apparently some GNU ld's only accept -v. 4550 # Break only if it was the GNU/non-GNU ld that we prefer. 4551 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 4552 *GNU* | *'with BFD'*) 4553 test "$with_gnu_ld" != no && break ;; 4554 *) 4555 test "$with_gnu_ld" != yes && break ;; 4556 esac 4557 fi 4558 done 4559 IFS="$ac_save_ifs" 4560else 4561 acl_cv_path_LD="$LD" # Let the user override the test with a path. 4562fi 4563fi 4564 4565LD="$acl_cv_path_LD" 4566if test -n "$LD"; then 4567 echo "$as_me:$LINENO: result: $LD" >&5 4568echo "${ECHO_T}$LD" >&6 4569else 4570 echo "$as_me:$LINENO: result: no" >&5 4571echo "${ECHO_T}no" >&6 4572fi 4573test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4574echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4575 { (exit 1); exit 1; }; } 4576echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4577echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4578if test "${acl_cv_prog_gnu_ld+set}" = set; then 4579 echo $ECHO_N "(cached) $ECHO_C" >&6 4580else 4581 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4582case `$LD -v 2>&1 </dev/null` in 4583*GNU* | *'with BFD'*) 4584 acl_cv_prog_gnu_ld=yes ;; 4585*) 4586 acl_cv_prog_gnu_ld=no ;; 4587esac 4588fi 4589echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 4590echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 4591with_gnu_ld=$acl_cv_prog_gnu_ld 4592 4593 4594 4595 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 4596echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 4597if test "${acl_cv_rpath+set}" = set; then 4598 echo $ECHO_N "(cached) $ECHO_C" >&6 4599else 4600 4601 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 4602 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 4603 . ./conftest.sh 4604 rm -f ./conftest.sh 4605 acl_cv_rpath=done 4606 4607fi 4608echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 4609echo "${ECHO_T}$acl_cv_rpath" >&6 4610 wl="$acl_cv_wl" 4611 libext="$acl_cv_libext" 4612 shlibext="$acl_cv_shlibext" 4613 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 4614 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 4615 hardcode_direct="$acl_cv_hardcode_direct" 4616 hardcode_minus_L="$acl_cv_hardcode_minus_L" 4617 # Check whether --enable-rpath or --disable-rpath was given. 4618if test "${enable_rpath+set}" = set; then 4619 enableval="$enable_rpath" 4620 : 4621else 4622 enable_rpath=yes 4623fi; 4624 4625 4626 4627 4628 4629 4630 4631 use_additional=yes 4632 4633 acl_save_prefix="$prefix" 4634 prefix="$acl_final_prefix" 4635 acl_save_exec_prefix="$exec_prefix" 4636 exec_prefix="$acl_final_exec_prefix" 4637 4638 eval additional_includedir=\"$includedir\" 4639 eval additional_libdir=\"$libdir\" 4640 4641 exec_prefix="$acl_save_exec_prefix" 4642 prefix="$acl_save_prefix" 4643 4644 4645# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 4646if test "${with_libiconv_prefix+set}" = set; then 4647 withval="$with_libiconv_prefix" 4648 4649 if test "X$withval" = "Xno"; then 4650 use_additional=no 4651 else 4652 if test "X$withval" = "X"; then 4653 4654 acl_save_prefix="$prefix" 4655 prefix="$acl_final_prefix" 4656 acl_save_exec_prefix="$exec_prefix" 4657 exec_prefix="$acl_final_exec_prefix" 4658 4659 eval additional_includedir=\"$includedir\" 4660 eval additional_libdir=\"$libdir\" 4661 4662 exec_prefix="$acl_save_exec_prefix" 4663 prefix="$acl_save_prefix" 4664 4665 else 4666 additional_includedir="$withval/include" 4667 additional_libdir="$withval/lib" 4668 fi 4669 fi 4670 4671fi; 4672 LIBICONV= 4673 LTLIBICONV= 4674 INCICONV= 4675 rpathdirs= 4676 ltrpathdirs= 4677 names_already_handled= 4678 names_next_round='iconv ' 4679 while test -n "$names_next_round"; do 4680 names_this_round="$names_next_round" 4681 names_next_round= 4682 for name in $names_this_round; do 4683 already_handled= 4684 for n in $names_already_handled; do 4685 if test "$n" = "$name"; then 4686 already_handled=yes 4687 break 4688 fi 4689 done 4690 if test -z "$already_handled"; then 4691 names_already_handled="$names_already_handled $name" 4692 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 4693 eval value=\"\$HAVE_LIB$uppername\" 4694 if test -n "$value"; then 4695 if test "$value" = yes; then 4696 eval value=\"\$LIB$uppername\" 4697 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 4698 eval value=\"\$LTLIB$uppername\" 4699 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 4700 else 4701 : 4702 fi 4703 else 4704 found_dir= 4705 found_la= 4706 found_so= 4707 found_a= 4708 if test $use_additional = yes; then 4709 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 4710 found_dir="$additional_libdir" 4711 found_so="$additional_libdir/lib$name.$shlibext" 4712 if test -f "$additional_libdir/lib$name.la"; then 4713 found_la="$additional_libdir/lib$name.la" 4714 fi 4715 else 4716 if test -f "$additional_libdir/lib$name.$libext"; then 4717 found_dir="$additional_libdir" 4718 found_a="$additional_libdir/lib$name.$libext" 4719 if test -f "$additional_libdir/lib$name.la"; then 4720 found_la="$additional_libdir/lib$name.la" 4721 fi 4722 fi 4723 fi 4724 fi 4725 if test "X$found_dir" = "X"; then 4726 for x in $LDFLAGS $LTLIBICONV; do 4727 4728 acl_save_prefix="$prefix" 4729 prefix="$acl_final_prefix" 4730 acl_save_exec_prefix="$exec_prefix" 4731 exec_prefix="$acl_final_exec_prefix" 4732 eval x=\"$x\" 4733 exec_prefix="$acl_save_exec_prefix" 4734 prefix="$acl_save_prefix" 4735 4736 case "$x" in 4737 -L*) 4738 dir=`echo "X$x" | sed -e 's/^X-L//'` 4739 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 4740 found_dir="$dir" 4741 found_so="$dir/lib$name.$shlibext" 4742 if test -f "$dir/lib$name.la"; then 4743 found_la="$dir/lib$name.la" 4744 fi 4745 else 4746 if test -f "$dir/lib$name.$libext"; then 4747 found_dir="$dir" 4748 found_a="$dir/lib$name.$libext" 4749 if test -f "$dir/lib$name.la"; then 4750 found_la="$dir/lib$name.la" 4751 fi 4752 fi 4753 fi 4754 ;; 4755 esac 4756 if test "X$found_dir" != "X"; then 4757 break 4758 fi 4759 done 4760 fi 4761 if test "X$found_dir" != "X"; then 4762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 4763 if test "X$found_so" != "X"; then 4764 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 4765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4766 else 4767 haveit= 4768 for x in $ltrpathdirs; do 4769 if test "X$x" = "X$found_dir"; then 4770 haveit=yes 4771 break 4772 fi 4773 done 4774 if test -z "$haveit"; then 4775 ltrpathdirs="$ltrpathdirs $found_dir" 4776 fi 4777 if test "$hardcode_direct" = yes; then 4778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4779 else 4780 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 4781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4782 haveit= 4783 for x in $rpathdirs; do 4784 if test "X$x" = "X$found_dir"; then 4785 haveit=yes 4786 break 4787 fi 4788 done 4789 if test -z "$haveit"; then 4790 rpathdirs="$rpathdirs $found_dir" 4791 fi 4792 else 4793 haveit= 4794 for x in $LDFLAGS $LIBICONV; do 4795 4796 acl_save_prefix="$prefix" 4797 prefix="$acl_final_prefix" 4798 acl_save_exec_prefix="$exec_prefix" 4799 exec_prefix="$acl_final_exec_prefix" 4800 eval x=\"$x\" 4801 exec_prefix="$acl_save_exec_prefix" 4802 prefix="$acl_save_prefix" 4803 4804 if test "X$x" = "X-L$found_dir"; then 4805 haveit=yes 4806 break 4807 fi 4808 done 4809 if test -z "$haveit"; then 4810 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 4811 fi 4812 if test "$hardcode_minus_L" != no; then 4813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4814 else 4815 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 4816 fi 4817 fi 4818 fi 4819 fi 4820 else 4821 if test "X$found_a" != "X"; then 4822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 4823 else 4824 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 4825 fi 4826 fi 4827 additional_includedir= 4828 case "$found_dir" in 4829 */lib | */lib/) 4830 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 4831 additional_includedir="$basedir/include" 4832 ;; 4833 esac 4834 if test "X$additional_includedir" != "X"; then 4835 if test "X$additional_includedir" != "X/usr/include"; then 4836 haveit= 4837 if test "X$additional_includedir" = "X/usr/local/include"; then 4838 if test -n "$GCC"; then 4839 case $host_os in 4840 linux*) haveit=yes;; 4841 esac 4842 fi 4843 fi 4844 if test -z "$haveit"; then 4845 for x in $CPPFLAGS $INCICONV; do 4846 4847 acl_save_prefix="$prefix" 4848 prefix="$acl_final_prefix" 4849 acl_save_exec_prefix="$exec_prefix" 4850 exec_prefix="$acl_final_exec_prefix" 4851 eval x=\"$x\" 4852 exec_prefix="$acl_save_exec_prefix" 4853 prefix="$acl_save_prefix" 4854 4855 if test "X$x" = "X-I$additional_includedir"; then 4856 haveit=yes 4857 break 4858 fi 4859 done 4860 if test -z "$haveit"; then 4861 if test -d "$additional_includedir"; then 4862 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 4863 fi 4864 fi 4865 fi 4866 fi 4867 fi 4868 if test -n "$found_la"; then 4869 save_libdir="$libdir" 4870 case "$found_la" in 4871 */* | *\\*) . "$found_la" ;; 4872 *) . "./$found_la" ;; 4873 esac 4874 libdir="$save_libdir" 4875 for dep in $dependency_libs; do 4876 case "$dep" in 4877 -L*) 4878 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 4879 if test "X$additional_libdir" != "X/usr/lib"; then 4880 haveit= 4881 if test "X$additional_libdir" = "X/usr/local/lib"; then 4882 if test -n "$GCC"; then 4883 case $host_os in 4884 linux*) haveit=yes;; 4885 esac 4886 fi 4887 fi 4888 if test -z "$haveit"; then 4889 haveit= 4890 for x in $LDFLAGS $LIBICONV; do 4891 4892 acl_save_prefix="$prefix" 4893 prefix="$acl_final_prefix" 4894 acl_save_exec_prefix="$exec_prefix" 4895 exec_prefix="$acl_final_exec_prefix" 4896 eval x=\"$x\" 4897 exec_prefix="$acl_save_exec_prefix" 4898 prefix="$acl_save_prefix" 4899 4900 if test "X$x" = "X-L$additional_libdir"; then 4901 haveit=yes 4902 break 4903 fi 4904 done 4905 if test -z "$haveit"; then 4906 if test -d "$additional_libdir"; then 4907 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 4908 fi 4909 fi 4910 haveit= 4911 for x in $LDFLAGS $LTLIBICONV; do 4912 4913 acl_save_prefix="$prefix" 4914 prefix="$acl_final_prefix" 4915 acl_save_exec_prefix="$exec_prefix" 4916 exec_prefix="$acl_final_exec_prefix" 4917 eval x=\"$x\" 4918 exec_prefix="$acl_save_exec_prefix" 4919 prefix="$acl_save_prefix" 4920 4921 if test "X$x" = "X-L$additional_libdir"; then 4922 haveit=yes 4923 break 4924 fi 4925 done 4926 if test -z "$haveit"; then 4927 if test -d "$additional_libdir"; then 4928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 4929 fi 4930 fi 4931 fi 4932 fi 4933 ;; 4934 -R*) 4935 dir=`echo "X$dep" | sed -e 's/^X-R//'` 4936 if test "$enable_rpath" != no; then 4937 haveit= 4938 for x in $rpathdirs; do 4939 if test "X$x" = "X$dir"; then 4940 haveit=yes 4941 break 4942 fi 4943 done 4944 if test -z "$haveit"; then 4945 rpathdirs="$rpathdirs $dir" 4946 fi 4947 haveit= 4948 for x in $ltrpathdirs; do 4949 if test "X$x" = "X$dir"; then 4950 haveit=yes 4951 break 4952 fi 4953 done 4954 if test -z "$haveit"; then 4955 ltrpathdirs="$ltrpathdirs $dir" 4956 fi 4957 fi 4958 ;; 4959 -l*) 4960 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 4961 ;; 4962 *.la) 4963 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 4964 ;; 4965 *) 4966 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 4967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 4968 ;; 4969 esac 4970 done 4971 fi 4972 else 4973 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 4974 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 4975 fi 4976 fi 4977 fi 4978 done 4979 done 4980 if test "X$rpathdirs" != "X"; then 4981 if test -n "$hardcode_libdir_separator"; then 4982 alldirs= 4983 for found_dir in $rpathdirs; do 4984 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 4985 done 4986 acl_save_libdir="$libdir" 4987 libdir="$alldirs" 4988 eval flag=\"$hardcode_libdir_flag_spec\" 4989 libdir="$acl_save_libdir" 4990 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 4991 else 4992 for found_dir in $rpathdirs; do 4993 acl_save_libdir="$libdir" 4994 libdir="$found_dir" 4995 eval flag=\"$hardcode_libdir_flag_spec\" 4996 libdir="$acl_save_libdir" 4997 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 4998 done 4999 fi 5000 fi 5001 if test "X$ltrpathdirs" != "X"; then 5002 for found_dir in $ltrpathdirs; do 5003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 5004 done 5005 fi 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 5025echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 5026 # Check whether --enable-nls or --disable-nls was given. 5027if test "${enable_nls+set}" = set; then 5028 enableval="$enable_nls" 5029 USE_NLS=$enableval 5030else 5031 USE_NLS=yes 5032fi; 5033 echo "$as_me:$LINENO: result: $USE_NLS" >&5 5034echo "${ECHO_T}$USE_NLS" >&6 5035 5036 5037 5038 5039 LIBINTL= 5040 LTLIBINTL= 5041 POSUB= 5042 5043 if test "$USE_NLS" = "yes"; then 5044 gt_use_preinstalled_gnugettext=no 5045 5046 5047 5048 5049 5050 5051 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 5052echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 5053if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 5054 echo $ECHO_N "(cached) $ECHO_C" >&6 5055else 5056 cat >conftest.$ac_ext <<_ACEOF 5057/* confdefs.h. */ 5058_ACEOF 5059cat confdefs.h >>conftest.$ac_ext 5060cat >>conftest.$ac_ext <<_ACEOF 5061/* end confdefs.h. */ 5062#include <libintl.h> 5063extern int _nl_msg_cat_cntr; 5064extern int *_nl_domain_bindings; 5065int 5066main () 5067{ 5068bindtextdomain ("", ""); 5069return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074rm -f conftest.$ac_objext conftest$ac_exeext 5075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5076 (eval $ac_link) 2>conftest.er1 5077 ac_status=$? 5078 grep -v '^ *+' conftest.er1 >conftest.err 5079 rm -f conftest.er1 5080 cat conftest.err >&5 5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5082 (exit $ac_status); } && 5083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5085 (eval $ac_try) 2>&5 5086 ac_status=$? 5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5088 (exit $ac_status); }; } && 5089 { ac_try='test -s conftest$ac_exeext' 5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5091 (eval $ac_try) 2>&5 5092 ac_status=$? 5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5094 (exit $ac_status); }; }; then 5095 gt_cv_func_gnugettext1_libc=yes 5096else 5097 echo "$as_me: failed program was:" >&5 5098sed 's/^/| /' conftest.$ac_ext >&5 5099 5100gt_cv_func_gnugettext1_libc=no 5101fi 5102rm -f conftest.err conftest.$ac_objext \ 5103 conftest$ac_exeext conftest.$ac_ext 5104fi 5105echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 5106echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 5107 5108 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 5109 5110 5111 5112 5113 5114 am_save_CPPFLAGS="$CPPFLAGS" 5115 5116 for element in $INCICONV; do 5117 haveit= 5118 for x in $CPPFLAGS; do 5119 5120 acl_save_prefix="$prefix" 5121 prefix="$acl_final_prefix" 5122 acl_save_exec_prefix="$exec_prefix" 5123 exec_prefix="$acl_final_exec_prefix" 5124 eval x=\"$x\" 5125 exec_prefix="$acl_save_exec_prefix" 5126 prefix="$acl_save_prefix" 5127 5128 if test "X$x" = "X$element"; then 5129 haveit=yes 5130 break 5131 fi 5132 done 5133 if test -z "$haveit"; then 5134 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5135 fi 5136 done 5137 5138 5139 echo "$as_me:$LINENO: checking for iconv" >&5 5140echo $ECHO_N "checking for iconv... $ECHO_C" >&6 5141if test "${am_cv_func_iconv+set}" = set; then 5142 echo $ECHO_N "(cached) $ECHO_C" >&6 5143else 5144 5145 am_cv_func_iconv="no, consider installing GNU libiconv" 5146 am_cv_lib_iconv=no 5147 cat >conftest.$ac_ext <<_ACEOF 5148/* confdefs.h. */ 5149_ACEOF 5150cat confdefs.h >>conftest.$ac_ext 5151cat >>conftest.$ac_ext <<_ACEOF 5152/* end confdefs.h. */ 5153#include <stdlib.h> 5154#include <iconv.h> 5155int 5156main () 5157{ 5158iconv_t cd = iconv_open("",""); 5159 iconv(cd,NULL,NULL,NULL,NULL); 5160 iconv_close(cd); 5161 ; 5162 return 0; 5163} 5164_ACEOF 5165rm -f conftest.$ac_objext conftest$ac_exeext 5166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5167 (eval $ac_link) 2>conftest.er1 5168 ac_status=$? 5169 grep -v '^ *+' conftest.er1 >conftest.err 5170 rm -f conftest.er1 5171 cat conftest.err >&5 5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5173 (exit $ac_status); } && 5174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5176 (eval $ac_try) 2>&5 5177 ac_status=$? 5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5179 (exit $ac_status); }; } && 5180 { ac_try='test -s conftest$ac_exeext' 5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5182 (eval $ac_try) 2>&5 5183 ac_status=$? 5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5185 (exit $ac_status); }; }; then 5186 am_cv_func_iconv=yes 5187else 5188 echo "$as_me: failed program was:" >&5 5189sed 's/^/| /' conftest.$ac_ext >&5 5190 5191fi 5192rm -f conftest.err conftest.$ac_objext \ 5193 conftest$ac_exeext conftest.$ac_ext 5194 if test "$am_cv_func_iconv" != yes; then 5195 am_save_LIBS="$LIBS" 5196 LIBS="$LIBS $LIBICONV" 5197 cat >conftest.$ac_ext <<_ACEOF 5198/* confdefs.h. */ 5199_ACEOF 5200cat confdefs.h >>conftest.$ac_ext 5201cat >>conftest.$ac_ext <<_ACEOF 5202/* end confdefs.h. */ 5203#include <stdlib.h> 5204#include <iconv.h> 5205int 5206main () 5207{ 5208iconv_t cd = iconv_open("",""); 5209 iconv(cd,NULL,NULL,NULL,NULL); 5210 iconv_close(cd); 5211 ; 5212 return 0; 5213} 5214_ACEOF 5215rm -f conftest.$ac_objext conftest$ac_exeext 5216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5217 (eval $ac_link) 2>conftest.er1 5218 ac_status=$? 5219 grep -v '^ *+' conftest.er1 >conftest.err 5220 rm -f conftest.er1 5221 cat conftest.err >&5 5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5223 (exit $ac_status); } && 5224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5226 (eval $ac_try) 2>&5 5227 ac_status=$? 5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5229 (exit $ac_status); }; } && 5230 { ac_try='test -s conftest$ac_exeext' 5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5232 (eval $ac_try) 2>&5 5233 ac_status=$? 5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5235 (exit $ac_status); }; }; then 5236 am_cv_lib_iconv=yes 5237 am_cv_func_iconv=yes 5238else 5239 echo "$as_me: failed program was:" >&5 5240sed 's/^/| /' conftest.$ac_ext >&5 5241 5242fi 5243rm -f conftest.err conftest.$ac_objext \ 5244 conftest$ac_exeext conftest.$ac_ext 5245 LIBS="$am_save_LIBS" 5246 fi 5247 5248fi 5249echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 5250echo "${ECHO_T}$am_cv_func_iconv" >&6 5251 if test "$am_cv_func_iconv" = yes; then 5252 5253cat >>confdefs.h <<\_ACEOF 5254#define HAVE_ICONV 1 5255_ACEOF 5256 5257 fi 5258 if test "$am_cv_lib_iconv" = yes; then 5259 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 5260echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 5261 echo "$as_me:$LINENO: result: $LIBICONV" >&5 5262echo "${ECHO_T}$LIBICONV" >&6 5263 else 5264 CPPFLAGS="$am_save_CPPFLAGS" 5265 LIBICONV= 5266 LTLIBICONV= 5267 fi 5268 5269 5270 5271 5272 5273 5274 use_additional=yes 5275 5276 acl_save_prefix="$prefix" 5277 prefix="$acl_final_prefix" 5278 acl_save_exec_prefix="$exec_prefix" 5279 exec_prefix="$acl_final_exec_prefix" 5280 5281 eval additional_includedir=\"$includedir\" 5282 eval additional_libdir=\"$libdir\" 5283 5284 exec_prefix="$acl_save_exec_prefix" 5285 prefix="$acl_save_prefix" 5286 5287 5288# Check whether --with-libintl-prefix or --without-libintl-prefix was given. 5289if test "${with_libintl_prefix+set}" = set; then 5290 withval="$with_libintl_prefix" 5291 5292 if test "X$withval" = "Xno"; then 5293 use_additional=no 5294 else 5295 if test "X$withval" = "X"; then 5296 5297 acl_save_prefix="$prefix" 5298 prefix="$acl_final_prefix" 5299 acl_save_exec_prefix="$exec_prefix" 5300 exec_prefix="$acl_final_exec_prefix" 5301 5302 eval additional_includedir=\"$includedir\" 5303 eval additional_libdir=\"$libdir\" 5304 5305 exec_prefix="$acl_save_exec_prefix" 5306 prefix="$acl_save_prefix" 5307 5308 else 5309 additional_includedir="$withval/include" 5310 additional_libdir="$withval/lib" 5311 fi 5312 fi 5313 5314fi; 5315 LIBINTL= 5316 LTLIBINTL= 5317 INCINTL= 5318 rpathdirs= 5319 ltrpathdirs= 5320 names_already_handled= 5321 names_next_round='intl ' 5322 while test -n "$names_next_round"; do 5323 names_this_round="$names_next_round" 5324 names_next_round= 5325 for name in $names_this_round; do 5326 already_handled= 5327 for n in $names_already_handled; do 5328 if test "$n" = "$name"; then 5329 already_handled=yes 5330 break 5331 fi 5332 done 5333 if test -z "$already_handled"; then 5334 names_already_handled="$names_already_handled $name" 5335 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 5336 eval value=\"\$HAVE_LIB$uppername\" 5337 if test -n "$value"; then 5338 if test "$value" = yes; then 5339 eval value=\"\$LIB$uppername\" 5340 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 5341 eval value=\"\$LTLIB$uppername\" 5342 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 5343 else 5344 : 5345 fi 5346 else 5347 found_dir= 5348 found_la= 5349 found_so= 5350 found_a= 5351 if test $use_additional = yes; then 5352 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 5353 found_dir="$additional_libdir" 5354 found_so="$additional_libdir/lib$name.$shlibext" 5355 if test -f "$additional_libdir/lib$name.la"; then 5356 found_la="$additional_libdir/lib$name.la" 5357 fi 5358 else 5359 if test -f "$additional_libdir/lib$name.$libext"; then 5360 found_dir="$additional_libdir" 5361 found_a="$additional_libdir/lib$name.$libext" 5362 if test -f "$additional_libdir/lib$name.la"; then 5363 found_la="$additional_libdir/lib$name.la" 5364 fi 5365 fi 5366 fi 5367 fi 5368 if test "X$found_dir" = "X"; then 5369 for x in $LDFLAGS $LTLIBINTL; do 5370 5371 acl_save_prefix="$prefix" 5372 prefix="$acl_final_prefix" 5373 acl_save_exec_prefix="$exec_prefix" 5374 exec_prefix="$acl_final_exec_prefix" 5375 eval x=\"$x\" 5376 exec_prefix="$acl_save_exec_prefix" 5377 prefix="$acl_save_prefix" 5378 5379 case "$x" in 5380 -L*) 5381 dir=`echo "X$x" | sed -e 's/^X-L//'` 5382 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 5383 found_dir="$dir" 5384 found_so="$dir/lib$name.$shlibext" 5385 if test -f "$dir/lib$name.la"; then 5386 found_la="$dir/lib$name.la" 5387 fi 5388 else 5389 if test -f "$dir/lib$name.$libext"; then 5390 found_dir="$dir" 5391 found_a="$dir/lib$name.$libext" 5392 if test -f "$dir/lib$name.la"; then 5393 found_la="$dir/lib$name.la" 5394 fi 5395 fi 5396 fi 5397 ;; 5398 esac 5399 if test "X$found_dir" != "X"; then 5400 break 5401 fi 5402 done 5403 fi 5404 if test "X$found_dir" != "X"; then 5405 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 5406 if test "X$found_so" != "X"; then 5407 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 5408 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5409 else 5410 haveit= 5411 for x in $ltrpathdirs; do 5412 if test "X$x" = "X$found_dir"; then 5413 haveit=yes 5414 break 5415 fi 5416 done 5417 if test -z "$haveit"; then 5418 ltrpathdirs="$ltrpathdirs $found_dir" 5419 fi 5420 if test "$hardcode_direct" = yes; then 5421 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5422 else 5423 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 5424 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5425 haveit= 5426 for x in $rpathdirs; do 5427 if test "X$x" = "X$found_dir"; then 5428 haveit=yes 5429 break 5430 fi 5431 done 5432 if test -z "$haveit"; then 5433 rpathdirs="$rpathdirs $found_dir" 5434 fi 5435 else 5436 haveit= 5437 for x in $LDFLAGS $LIBINTL; do 5438 5439 acl_save_prefix="$prefix" 5440 prefix="$acl_final_prefix" 5441 acl_save_exec_prefix="$exec_prefix" 5442 exec_prefix="$acl_final_exec_prefix" 5443 eval x=\"$x\" 5444 exec_prefix="$acl_save_exec_prefix" 5445 prefix="$acl_save_prefix" 5446 5447 if test "X$x" = "X-L$found_dir"; then 5448 haveit=yes 5449 break 5450 fi 5451 done 5452 if test -z "$haveit"; then 5453 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 5454 fi 5455 if test "$hardcode_minus_L" != no; then 5456 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5457 else 5458 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 5459 fi 5460 fi 5461 fi 5462 fi 5463 else 5464 if test "X$found_a" != "X"; then 5465 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 5466 else 5467 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 5468 fi 5469 fi 5470 additional_includedir= 5471 case "$found_dir" in 5472 */lib | */lib/) 5473 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 5474 additional_includedir="$basedir/include" 5475 ;; 5476 esac 5477 if test "X$additional_includedir" != "X"; then 5478 if test "X$additional_includedir" != "X/usr/include"; then 5479 haveit= 5480 if test "X$additional_includedir" = "X/usr/local/include"; then 5481 if test -n "$GCC"; then 5482 case $host_os in 5483 linux*) haveit=yes;; 5484 esac 5485 fi 5486 fi 5487 if test -z "$haveit"; then 5488 for x in $CPPFLAGS $INCINTL; do 5489 5490 acl_save_prefix="$prefix" 5491 prefix="$acl_final_prefix" 5492 acl_save_exec_prefix="$exec_prefix" 5493 exec_prefix="$acl_final_exec_prefix" 5494 eval x=\"$x\" 5495 exec_prefix="$acl_save_exec_prefix" 5496 prefix="$acl_save_prefix" 5497 5498 if test "X$x" = "X-I$additional_includedir"; then 5499 haveit=yes 5500 break 5501 fi 5502 done 5503 if test -z "$haveit"; then 5504 if test -d "$additional_includedir"; then 5505 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 5506 fi 5507 fi 5508 fi 5509 fi 5510 fi 5511 if test -n "$found_la"; then 5512 save_libdir="$libdir" 5513 case "$found_la" in 5514 */* | *\\*) . "$found_la" ;; 5515 *) . "./$found_la" ;; 5516 esac 5517 libdir="$save_libdir" 5518 for dep in $dependency_libs; do 5519 case "$dep" in 5520 -L*) 5521 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 5522 if test "X$additional_libdir" != "X/usr/lib"; then 5523 haveit= 5524 if test "X$additional_libdir" = "X/usr/local/lib"; then 5525 if test -n "$GCC"; then 5526 case $host_os in 5527 linux*) haveit=yes;; 5528 esac 5529 fi 5530 fi 5531 if test -z "$haveit"; then 5532 haveit= 5533 for x in $LDFLAGS $LIBINTL; do 5534 5535 acl_save_prefix="$prefix" 5536 prefix="$acl_final_prefix" 5537 acl_save_exec_prefix="$exec_prefix" 5538 exec_prefix="$acl_final_exec_prefix" 5539 eval x=\"$x\" 5540 exec_prefix="$acl_save_exec_prefix" 5541 prefix="$acl_save_prefix" 5542 5543 if test "X$x" = "X-L$additional_libdir"; then 5544 haveit=yes 5545 break 5546 fi 5547 done 5548 if test -z "$haveit"; then 5549 if test -d "$additional_libdir"; then 5550 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 5551 fi 5552 fi 5553 haveit= 5554 for x in $LDFLAGS $LTLIBINTL; do 5555 5556 acl_save_prefix="$prefix" 5557 prefix="$acl_final_prefix" 5558 acl_save_exec_prefix="$exec_prefix" 5559 exec_prefix="$acl_final_exec_prefix" 5560 eval x=\"$x\" 5561 exec_prefix="$acl_save_exec_prefix" 5562 prefix="$acl_save_prefix" 5563 5564 if test "X$x" = "X-L$additional_libdir"; then 5565 haveit=yes 5566 break 5567 fi 5568 done 5569 if test -z "$haveit"; then 5570 if test -d "$additional_libdir"; then 5571 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 5572 fi 5573 fi 5574 fi 5575 fi 5576 ;; 5577 -R*) 5578 dir=`echo "X$dep" | sed -e 's/^X-R//'` 5579 if test "$enable_rpath" != no; then 5580 haveit= 5581 for x in $rpathdirs; do 5582 if test "X$x" = "X$dir"; then 5583 haveit=yes 5584 break 5585 fi 5586 done 5587 if test -z "$haveit"; then 5588 rpathdirs="$rpathdirs $dir" 5589 fi 5590 haveit= 5591 for x in $ltrpathdirs; do 5592 if test "X$x" = "X$dir"; then 5593 haveit=yes 5594 break 5595 fi 5596 done 5597 if test -z "$haveit"; then 5598 ltrpathdirs="$ltrpathdirs $dir" 5599 fi 5600 fi 5601 ;; 5602 -l*) 5603 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 5604 ;; 5605 *.la) 5606 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 5607 ;; 5608 *) 5609 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 5610 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 5611 ;; 5612 esac 5613 done 5614 fi 5615 else 5616 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 5617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 5618 fi 5619 fi 5620 fi 5621 done 5622 done 5623 if test "X$rpathdirs" != "X"; then 5624 if test -n "$hardcode_libdir_separator"; then 5625 alldirs= 5626 for found_dir in $rpathdirs; do 5627 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 5628 done 5629 acl_save_libdir="$libdir" 5630 libdir="$alldirs" 5631 eval flag=\"$hardcode_libdir_flag_spec\" 5632 libdir="$acl_save_libdir" 5633 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 5634 else 5635 for found_dir in $rpathdirs; do 5636 acl_save_libdir="$libdir" 5637 libdir="$found_dir" 5638 eval flag=\"$hardcode_libdir_flag_spec\" 5639 libdir="$acl_save_libdir" 5640 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 5641 done 5642 fi 5643 fi 5644 if test "X$ltrpathdirs" != "X"; then 5645 for found_dir in $ltrpathdirs; do 5646 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 5647 done 5648 fi 5649 5650 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 5651echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 5652if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 5653 echo $ECHO_N "(cached) $ECHO_C" >&6 5654else 5655 gt_save_CPPFLAGS="$CPPFLAGS" 5656 CPPFLAGS="$CPPFLAGS $INCINTL" 5657 gt_save_LIBS="$LIBS" 5658 LIBS="$LIBS $LIBINTL" 5659 cat >conftest.$ac_ext <<_ACEOF 5660/* confdefs.h. */ 5661_ACEOF 5662cat confdefs.h >>conftest.$ac_ext 5663cat >>conftest.$ac_ext <<_ACEOF 5664/* end confdefs.h. */ 5665#include <libintl.h> 5666extern int _nl_msg_cat_cntr; 5667extern 5668#ifdef __cplusplus 5669"C" 5670#endif 5671const char *_nl_expand_alias (); 5672int 5673main () 5674{ 5675bindtextdomain ("", ""); 5676return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 5677 ; 5678 return 0; 5679} 5680_ACEOF 5681rm -f conftest.$ac_objext conftest$ac_exeext 5682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5683 (eval $ac_link) 2>conftest.er1 5684 ac_status=$? 5685 grep -v '^ *+' conftest.er1 >conftest.err 5686 rm -f conftest.er1 5687 cat conftest.err >&5 5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5689 (exit $ac_status); } && 5690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5692 (eval $ac_try) 2>&5 5693 ac_status=$? 5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5695 (exit $ac_status); }; } && 5696 { ac_try='test -s conftest$ac_exeext' 5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5698 (eval $ac_try) 2>&5 5699 ac_status=$? 5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5701 (exit $ac_status); }; }; then 5702 gt_cv_func_gnugettext1_libintl=yes 5703else 5704 echo "$as_me: failed program was:" >&5 5705sed 's/^/| /' conftest.$ac_ext >&5 5706 5707gt_cv_func_gnugettext1_libintl=no 5708fi 5709rm -f conftest.err conftest.$ac_objext \ 5710 conftest$ac_exeext conftest.$ac_ext 5711 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 5712 LIBS="$LIBS $LIBICONV" 5713 cat >conftest.$ac_ext <<_ACEOF 5714/* confdefs.h. */ 5715_ACEOF 5716cat confdefs.h >>conftest.$ac_ext 5717cat >>conftest.$ac_ext <<_ACEOF 5718/* end confdefs.h. */ 5719#include <libintl.h> 5720extern int _nl_msg_cat_cntr; 5721extern 5722#ifdef __cplusplus 5723"C" 5724#endif 5725const char *_nl_expand_alias (); 5726int 5727main () 5728{ 5729bindtextdomain ("", ""); 5730return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 5731 ; 5732 return 0; 5733} 5734_ACEOF 5735rm -f conftest.$ac_objext conftest$ac_exeext 5736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5737 (eval $ac_link) 2>conftest.er1 5738 ac_status=$? 5739 grep -v '^ *+' conftest.er1 >conftest.err 5740 rm -f conftest.er1 5741 cat conftest.err >&5 5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5743 (exit $ac_status); } && 5744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5746 (eval $ac_try) 2>&5 5747 ac_status=$? 5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5749 (exit $ac_status); }; } && 5750 { ac_try='test -s conftest$ac_exeext' 5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5752 (eval $ac_try) 2>&5 5753 ac_status=$? 5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5755 (exit $ac_status); }; }; then 5756 LIBINTL="$LIBINTL $LIBICONV" 5757 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 5758 gt_cv_func_gnugettext1_libintl=yes 5759 5760else 5761 echo "$as_me: failed program was:" >&5 5762sed 's/^/| /' conftest.$ac_ext >&5 5763 5764fi 5765rm -f conftest.err conftest.$ac_objext \ 5766 conftest$ac_exeext conftest.$ac_ext 5767 fi 5768 CPPFLAGS="$gt_save_CPPFLAGS" 5769 LIBS="$gt_save_LIBS" 5770fi 5771echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 5772echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 5773 fi 5774 5775 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 5776 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 5777 && test "$PACKAGE" != gettext-runtime \ 5778 && test "$PACKAGE" != gettext-tools; }; then 5779 gt_use_preinstalled_gnugettext=yes 5780 else 5781 LIBINTL= 5782 LTLIBINTL= 5783 INCINTL= 5784 fi 5785 5786 5787 5788 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 5789 || test "$nls_cv_use_gnu_gettext" = "yes"; then 5790 5791cat >>confdefs.h <<\_ACEOF 5792#define ENABLE_NLS 1 5793_ACEOF 5794 5795 else 5796 USE_NLS=no 5797 fi 5798 fi 5799 5800 echo "$as_me:$LINENO: checking whether to use NLS" >&5 5801echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 5802 echo "$as_me:$LINENO: result: $USE_NLS" >&5 5803echo "${ECHO_T}$USE_NLS" >&6 5804 if test "$USE_NLS" = "yes"; then 5805 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 5806echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 5807 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 5808 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 5809 gt_source="external libintl" 5810 else 5811 gt_source="libc" 5812 fi 5813 else 5814 gt_source="included intl directory" 5815 fi 5816 echo "$as_me:$LINENO: result: $gt_source" >&5 5817echo "${ECHO_T}$gt_source" >&6 5818 fi 5819 5820 if test "$USE_NLS" = "yes"; then 5821 5822 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 5823 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 5824 echo "$as_me:$LINENO: checking how to link with libintl" >&5 5825echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 5826 echo "$as_me:$LINENO: result: $LIBINTL" >&5 5827echo "${ECHO_T}$LIBINTL" >&6 5828 5829 for element in $INCINTL; do 5830 haveit= 5831 for x in $CPPFLAGS; do 5832 5833 acl_save_prefix="$prefix" 5834 prefix="$acl_final_prefix" 5835 acl_save_exec_prefix="$exec_prefix" 5836 exec_prefix="$acl_final_exec_prefix" 5837 eval x=\"$x\" 5838 exec_prefix="$acl_save_exec_prefix" 5839 prefix="$acl_save_prefix" 5840 5841 if test "X$x" = "X$element"; then 5842 haveit=yes 5843 break 5844 fi 5845 done 5846 if test -z "$haveit"; then 5847 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5848 fi 5849 done 5850 5851 fi 5852 5853 5854cat >>confdefs.h <<\_ACEOF 5855#define HAVE_GETTEXT 1 5856_ACEOF 5857 5858 5859cat >>confdefs.h <<\_ACEOF 5860#define HAVE_DCGETTEXT 1 5861_ACEOF 5862 5863 fi 5864 5865 POSUB=po 5866 fi 5867 5868 5869 5870 INTLLIBS="$LIBINTL" 5871 5872 5873 5874 5875 5876 5877 5878# This test must come as early as possible after the compiler configuration 5879# tests, because the choice of the file model can (in principle) affect 5880# whether functions and headers are available, whether they work, etc. 5881# Check whether --enable-largefile or --disable-largefile was given. 5882if test "${enable_largefile+set}" = set; then 5883 enableval="$enable_largefile" 5884 5885fi; 5886if test "$enable_largefile" != no; then 5887 5888 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 5889echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 5890if test "${ac_cv_sys_largefile_CC+set}" = set; then 5891 echo $ECHO_N "(cached) $ECHO_C" >&6 5892else 5893 ac_cv_sys_largefile_CC=no 5894 if test "$GCC" != yes; then 5895 ac_save_CC=$CC 5896 while :; do 5897 # IRIX 6.2 and later do not support large files by default, 5898 # so use the C compiler's -n32 option if that helps. 5899 cat >conftest.$ac_ext <<_ACEOF 5900/* confdefs.h. */ 5901_ACEOF 5902cat confdefs.h >>conftest.$ac_ext 5903cat >>conftest.$ac_ext <<_ACEOF 5904/* end confdefs.h. */ 5905#include <sys/types.h> 5906 /* Check that off_t can represent 2**63 - 1 correctly. 5907 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5908 since some C++ compilers masquerading as C compilers 5909 incorrectly reject 9223372036854775807. */ 5910#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5912 && LARGE_OFF_T % 2147483647 == 1) 5913 ? 1 : -1]; 5914int 5915main () 5916{ 5917 5918 ; 5919 return 0; 5920} 5921_ACEOF 5922 rm -f conftest.$ac_objext 5923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5924 (eval $ac_compile) 2>conftest.er1 5925 ac_status=$? 5926 grep -v '^ *+' conftest.er1 >conftest.err 5927 rm -f conftest.er1 5928 cat conftest.err >&5 5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5930 (exit $ac_status); } && 5931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5933 (eval $ac_try) 2>&5 5934 ac_status=$? 5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5936 (exit $ac_status); }; } && 5937 { ac_try='test -s conftest.$ac_objext' 5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5939 (eval $ac_try) 2>&5 5940 ac_status=$? 5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5942 (exit $ac_status); }; }; then 5943 break 5944else 5945 echo "$as_me: failed program was:" >&5 5946sed 's/^/| /' conftest.$ac_ext >&5 5947 5948fi 5949rm -f conftest.err conftest.$ac_objext 5950 CC="$CC -n32" 5951 rm -f conftest.$ac_objext 5952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5953 (eval $ac_compile) 2>conftest.er1 5954 ac_status=$? 5955 grep -v '^ *+' conftest.er1 >conftest.err 5956 rm -f conftest.er1 5957 cat conftest.err >&5 5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5959 (exit $ac_status); } && 5960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5962 (eval $ac_try) 2>&5 5963 ac_status=$? 5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5965 (exit $ac_status); }; } && 5966 { ac_try='test -s conftest.$ac_objext' 5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5968 (eval $ac_try) 2>&5 5969 ac_status=$? 5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5971 (exit $ac_status); }; }; then 5972 ac_cv_sys_largefile_CC=' -n32'; break 5973else 5974 echo "$as_me: failed program was:" >&5 5975sed 's/^/| /' conftest.$ac_ext >&5 5976 5977fi 5978rm -f conftest.err conftest.$ac_objext 5979 break 5980 done 5981 CC=$ac_save_CC 5982 rm -f conftest.$ac_ext 5983 fi 5984fi 5985echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 5986echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 5987 if test "$ac_cv_sys_largefile_CC" != no; then 5988 CC=$CC$ac_cv_sys_largefile_CC 5989 fi 5990 5991 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5992echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 5993if test "${ac_cv_sys_file_offset_bits+set}" = set; then 5994 echo $ECHO_N "(cached) $ECHO_C" >&6 5995else 5996 while :; do 5997 ac_cv_sys_file_offset_bits=no 5998 cat >conftest.$ac_ext <<_ACEOF 5999/* confdefs.h. */ 6000_ACEOF 6001cat confdefs.h >>conftest.$ac_ext 6002cat >>conftest.$ac_ext <<_ACEOF 6003/* end confdefs.h. */ 6004#include <sys/types.h> 6005 /* Check that off_t can represent 2**63 - 1 correctly. 6006 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6007 since some C++ compilers masquerading as C compilers 6008 incorrectly reject 9223372036854775807. */ 6009#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6011 && LARGE_OFF_T % 2147483647 == 1) 6012 ? 1 : -1]; 6013int 6014main () 6015{ 6016 6017 ; 6018 return 0; 6019} 6020_ACEOF 6021rm -f conftest.$ac_objext 6022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6023 (eval $ac_compile) 2>conftest.er1 6024 ac_status=$? 6025 grep -v '^ *+' conftest.er1 >conftest.err 6026 rm -f conftest.er1 6027 cat conftest.err >&5 6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6029 (exit $ac_status); } && 6030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6032 (eval $ac_try) 2>&5 6033 ac_status=$? 6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6035 (exit $ac_status); }; } && 6036 { ac_try='test -s conftest.$ac_objext' 6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6038 (eval $ac_try) 2>&5 6039 ac_status=$? 6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6041 (exit $ac_status); }; }; then 6042 break 6043else 6044 echo "$as_me: failed program was:" >&5 6045sed 's/^/| /' conftest.$ac_ext >&5 6046 6047fi 6048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6049 cat >conftest.$ac_ext <<_ACEOF 6050/* confdefs.h. */ 6051_ACEOF 6052cat confdefs.h >>conftest.$ac_ext 6053cat >>conftest.$ac_ext <<_ACEOF 6054/* end confdefs.h. */ 6055#define _FILE_OFFSET_BITS 64 6056#include <sys/types.h> 6057 /* Check that off_t can represent 2**63 - 1 correctly. 6058 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6059 since some C++ compilers masquerading as C compilers 6060 incorrectly reject 9223372036854775807. */ 6061#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6063 && LARGE_OFF_T % 2147483647 == 1) 6064 ? 1 : -1]; 6065int 6066main () 6067{ 6068 6069 ; 6070 return 0; 6071} 6072_ACEOF 6073rm -f conftest.$ac_objext 6074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6075 (eval $ac_compile) 2>conftest.er1 6076 ac_status=$? 6077 grep -v '^ *+' conftest.er1 >conftest.err 6078 rm -f conftest.er1 6079 cat conftest.err >&5 6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6081 (exit $ac_status); } && 6082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6084 (eval $ac_try) 2>&5 6085 ac_status=$? 6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6087 (exit $ac_status); }; } && 6088 { ac_try='test -s conftest.$ac_objext' 6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6090 (eval $ac_try) 2>&5 6091 ac_status=$? 6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6093 (exit $ac_status); }; }; then 6094 ac_cv_sys_file_offset_bits=64; break 6095else 6096 echo "$as_me: failed program was:" >&5 6097sed 's/^/| /' conftest.$ac_ext >&5 6098 6099fi 6100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6101 break 6102done 6103fi 6104echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 6105echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 6106if test "$ac_cv_sys_file_offset_bits" != no; then 6107 6108cat >>confdefs.h <<_ACEOF 6109#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6110_ACEOF 6111 6112fi 6113rm -f conftest* 6114 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 6115echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 6116if test "${ac_cv_sys_large_files+set}" = set; then 6117 echo $ECHO_N "(cached) $ECHO_C" >&6 6118else 6119 while :; do 6120 ac_cv_sys_large_files=no 6121 cat >conftest.$ac_ext <<_ACEOF 6122/* confdefs.h. */ 6123_ACEOF 6124cat confdefs.h >>conftest.$ac_ext 6125cat >>conftest.$ac_ext <<_ACEOF 6126/* end confdefs.h. */ 6127#include <sys/types.h> 6128 /* Check that off_t can represent 2**63 - 1 correctly. 6129 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6130 since some C++ compilers masquerading as C compilers 6131 incorrectly reject 9223372036854775807. */ 6132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6134 && LARGE_OFF_T % 2147483647 == 1) 6135 ? 1 : -1]; 6136int 6137main () 6138{ 6139 6140 ; 6141 return 0; 6142} 6143_ACEOF 6144rm -f conftest.$ac_objext 6145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6146 (eval $ac_compile) 2>conftest.er1 6147 ac_status=$? 6148 grep -v '^ *+' conftest.er1 >conftest.err 6149 rm -f conftest.er1 6150 cat conftest.err >&5 6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6152 (exit $ac_status); } && 6153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6155 (eval $ac_try) 2>&5 6156 ac_status=$? 6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6158 (exit $ac_status); }; } && 6159 { ac_try='test -s conftest.$ac_objext' 6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6161 (eval $ac_try) 2>&5 6162 ac_status=$? 6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6164 (exit $ac_status); }; }; then 6165 break 6166else 6167 echo "$as_me: failed program was:" >&5 6168sed 's/^/| /' conftest.$ac_ext >&5 6169 6170fi 6171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6172 cat >conftest.$ac_ext <<_ACEOF 6173/* confdefs.h. */ 6174_ACEOF 6175cat confdefs.h >>conftest.$ac_ext 6176cat >>conftest.$ac_ext <<_ACEOF 6177/* end confdefs.h. */ 6178#define _LARGE_FILES 1 6179#include <sys/types.h> 6180 /* Check that off_t can represent 2**63 - 1 correctly. 6181 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6182 since some C++ compilers masquerading as C compilers 6183 incorrectly reject 9223372036854775807. */ 6184#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6186 && LARGE_OFF_T % 2147483647 == 1) 6187 ? 1 : -1]; 6188int 6189main () 6190{ 6191 6192 ; 6193 return 0; 6194} 6195_ACEOF 6196rm -f conftest.$ac_objext 6197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6198 (eval $ac_compile) 2>conftest.er1 6199 ac_status=$? 6200 grep -v '^ *+' conftest.er1 >conftest.err 6201 rm -f conftest.er1 6202 cat conftest.err >&5 6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6204 (exit $ac_status); } && 6205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6207 (eval $ac_try) 2>&5 6208 ac_status=$? 6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6210 (exit $ac_status); }; } && 6211 { ac_try='test -s conftest.$ac_objext' 6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6213 (eval $ac_try) 2>&5 6214 ac_status=$? 6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6216 (exit $ac_status); }; }; then 6217 ac_cv_sys_large_files=1; break 6218else 6219 echo "$as_me: failed program was:" >&5 6220sed 's/^/| /' conftest.$ac_ext >&5 6221 6222fi 6223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6224 break 6225done 6226fi 6227echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 6228echo "${ECHO_T}$ac_cv_sys_large_files" >&6 6229if test "$ac_cv_sys_large_files" != no; then 6230 6231cat >>confdefs.h <<_ACEOF 6232#define _LARGE_FILES $ac_cv_sys_large_files 6233_ACEOF 6234 6235fi 6236rm -f conftest* 6237fi 6238 6239 6240# Checks for libraries. 6241echo "$as_me:$LINENO: checking for library containing getpwnam" >&5 6242echo $ECHO_N "checking for library containing getpwnam... $ECHO_C" >&6 6243if test "${ac_cv_search_getpwnam+set}" = set; then 6244 echo $ECHO_N "(cached) $ECHO_C" >&6 6245else 6246 ac_func_search_save_LIBS=$LIBS 6247ac_cv_search_getpwnam=no 6248cat >conftest.$ac_ext <<_ACEOF 6249/* confdefs.h. */ 6250_ACEOF 6251cat confdefs.h >>conftest.$ac_ext 6252cat >>conftest.$ac_ext <<_ACEOF 6253/* end confdefs.h. */ 6254 6255/* Override any gcc2 internal prototype to avoid an error. */ 6256#ifdef __cplusplus 6257extern "C" 6258#endif 6259/* We use char because int might match the return type of a gcc2 6260 builtin and then its argument prototype would still apply. */ 6261char getpwnam (); 6262int 6263main () 6264{ 6265getpwnam (); 6266 ; 6267 return 0; 6268} 6269_ACEOF 6270rm -f conftest.$ac_objext conftest$ac_exeext 6271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6272 (eval $ac_link) 2>conftest.er1 6273 ac_status=$? 6274 grep -v '^ *+' conftest.er1 >conftest.err 6275 rm -f conftest.er1 6276 cat conftest.err >&5 6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6278 (exit $ac_status); } && 6279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6281 (eval $ac_try) 2>&5 6282 ac_status=$? 6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6284 (exit $ac_status); }; } && 6285 { ac_try='test -s conftest$ac_exeext' 6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6287 (eval $ac_try) 2>&5 6288 ac_status=$? 6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6290 (exit $ac_status); }; }; then 6291 ac_cv_search_getpwnam="none required" 6292else 6293 echo "$as_me: failed program was:" >&5 6294sed 's/^/| /' conftest.$ac_ext >&5 6295 6296fi 6297rm -f conftest.err conftest.$ac_objext \ 6298 conftest$ac_exeext conftest.$ac_ext 6299if test "$ac_cv_search_getpwnam" = no; then 6300 for ac_lib in sun; do 6301 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6302 cat >conftest.$ac_ext <<_ACEOF 6303/* confdefs.h. */ 6304_ACEOF 6305cat confdefs.h >>conftest.$ac_ext 6306cat >>conftest.$ac_ext <<_ACEOF 6307/* end confdefs.h. */ 6308 6309/* Override any gcc2 internal prototype to avoid an error. */ 6310#ifdef __cplusplus 6311extern "C" 6312#endif 6313/* We use char because int might match the return type of a gcc2 6314 builtin and then its argument prototype would still apply. */ 6315char getpwnam (); 6316int 6317main () 6318{ 6319getpwnam (); 6320 ; 6321 return 0; 6322} 6323_ACEOF 6324rm -f conftest.$ac_objext conftest$ac_exeext 6325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6326 (eval $ac_link) 2>conftest.er1 6327 ac_status=$? 6328 grep -v '^ *+' conftest.er1 >conftest.err 6329 rm -f conftest.er1 6330 cat conftest.err >&5 6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6332 (exit $ac_status); } && 6333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6335 (eval $ac_try) 2>&5 6336 ac_status=$? 6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6338 (exit $ac_status); }; } && 6339 { ac_try='test -s conftest$ac_exeext' 6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6341 (eval $ac_try) 2>&5 6342 ac_status=$? 6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6344 (exit $ac_status); }; }; then 6345 ac_cv_search_getpwnam="-l$ac_lib" 6346break 6347else 6348 echo "$as_me: failed program was:" >&5 6349sed 's/^/| /' conftest.$ac_ext >&5 6350 6351fi 6352rm -f conftest.err conftest.$ac_objext \ 6353 conftest$ac_exeext conftest.$ac_ext 6354 done 6355fi 6356LIBS=$ac_func_search_save_LIBS 6357fi 6358echo "$as_me:$LINENO: result: $ac_cv_search_getpwnam" >&5 6359echo "${ECHO_T}$ac_cv_search_getpwnam" >&6 6360if test "$ac_cv_search_getpwnam" != no; then 6361 test "$ac_cv_search_getpwnam" = "none required" || LIBS="$ac_cv_search_getpwnam $LIBS" 6362 6363fi 6364 6365 6366# Checks for header files. 6367echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6368echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6369if test "${ac_cv_header_stdc+set}" = set; then 6370 echo $ECHO_N "(cached) $ECHO_C" >&6 6371else 6372 cat >conftest.$ac_ext <<_ACEOF 6373/* confdefs.h. */ 6374_ACEOF 6375cat confdefs.h >>conftest.$ac_ext 6376cat >>conftest.$ac_ext <<_ACEOF 6377/* end confdefs.h. */ 6378#include <stdlib.h> 6379#include <stdarg.h> 6380#include <string.h> 6381#include <float.h> 6382 6383int 6384main () 6385{ 6386 6387 ; 6388 return 0; 6389} 6390_ACEOF 6391rm -f conftest.$ac_objext 6392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6393 (eval $ac_compile) 2>conftest.er1 6394 ac_status=$? 6395 grep -v '^ *+' conftest.er1 >conftest.err 6396 rm -f conftest.er1 6397 cat conftest.err >&5 6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6399 (exit $ac_status); } && 6400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6402 (eval $ac_try) 2>&5 6403 ac_status=$? 6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6405 (exit $ac_status); }; } && 6406 { ac_try='test -s conftest.$ac_objext' 6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6408 (eval $ac_try) 2>&5 6409 ac_status=$? 6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6411 (exit $ac_status); }; }; then 6412 ac_cv_header_stdc=yes 6413else 6414 echo "$as_me: failed program was:" >&5 6415sed 's/^/| /' conftest.$ac_ext >&5 6416 6417ac_cv_header_stdc=no 6418fi 6419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6420 6421if test $ac_cv_header_stdc = yes; then 6422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6423 cat >conftest.$ac_ext <<_ACEOF 6424/* confdefs.h. */ 6425_ACEOF 6426cat confdefs.h >>conftest.$ac_ext 6427cat >>conftest.$ac_ext <<_ACEOF 6428/* end confdefs.h. */ 6429#include <string.h> 6430 6431_ACEOF 6432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6433 $EGREP "memchr" >/dev/null 2>&1; then 6434 : 6435else 6436 ac_cv_header_stdc=no 6437fi 6438rm -f conftest* 6439 6440fi 6441 6442if test $ac_cv_header_stdc = yes; then 6443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6444 cat >conftest.$ac_ext <<_ACEOF 6445/* confdefs.h. */ 6446_ACEOF 6447cat confdefs.h >>conftest.$ac_ext 6448cat >>conftest.$ac_ext <<_ACEOF 6449/* end confdefs.h. */ 6450#include <stdlib.h> 6451 6452_ACEOF 6453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6454 $EGREP "free" >/dev/null 2>&1; then 6455 : 6456else 6457 ac_cv_header_stdc=no 6458fi 6459rm -f conftest* 6460 6461fi 6462 6463if test $ac_cv_header_stdc = yes; then 6464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6465 if test "$cross_compiling" = yes; then 6466 : 6467else 6468 cat >conftest.$ac_ext <<_ACEOF 6469/* confdefs.h. */ 6470_ACEOF 6471cat confdefs.h >>conftest.$ac_ext 6472cat >>conftest.$ac_ext <<_ACEOF 6473/* end confdefs.h. */ 6474#include <ctype.h> 6475#if ((' ' & 0x0FF) == 0x020) 6476# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6477# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6478#else 6479# define ISLOWER(c) \ 6480 (('a' <= (c) && (c) <= 'i') \ 6481 || ('j' <= (c) && (c) <= 'r') \ 6482 || ('s' <= (c) && (c) <= 'z')) 6483# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6484#endif 6485 6486#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6487int 6488main () 6489{ 6490 int i; 6491 for (i = 0; i < 256; i++) 6492 if (XOR (islower (i), ISLOWER (i)) 6493 || toupper (i) != TOUPPER (i)) 6494 exit(2); 6495 exit (0); 6496} 6497_ACEOF 6498rm -f conftest$ac_exeext 6499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6500 (eval $ac_link) 2>&5 6501 ac_status=$? 6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6505 (eval $ac_try) 2>&5 6506 ac_status=$? 6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6508 (exit $ac_status); }; }; then 6509 : 6510else 6511 echo "$as_me: program exited with status $ac_status" >&5 6512echo "$as_me: failed program was:" >&5 6513sed 's/^/| /' conftest.$ac_ext >&5 6514 6515( exit $ac_status ) 6516ac_cv_header_stdc=no 6517fi 6518rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6519fi 6520fi 6521fi 6522echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6523echo "${ECHO_T}$ac_cv_header_stdc" >&6 6524if test $ac_cv_header_stdc = yes; then 6525 6526cat >>confdefs.h <<\_ACEOF 6527#define STDC_HEADERS 1 6528_ACEOF 6529 6530fi 6531 6532 6533 6534 6535 6536 6537ac_header_dirent=no 6538for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 6539 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 6540echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 6541echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 6542if eval "test \"\${$as_ac_Header+set}\" = set"; then 6543 echo $ECHO_N "(cached) $ECHO_C" >&6 6544else 6545 cat >conftest.$ac_ext <<_ACEOF 6546/* confdefs.h. */ 6547_ACEOF 6548cat confdefs.h >>conftest.$ac_ext 6549cat >>conftest.$ac_ext <<_ACEOF 6550/* end confdefs.h. */ 6551#include <sys/types.h> 6552#include <$ac_hdr> 6553 6554int 6555main () 6556{ 6557if ((DIR *) 0) 6558return 0; 6559 ; 6560 return 0; 6561} 6562_ACEOF 6563rm -f conftest.$ac_objext 6564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6565 (eval $ac_compile) 2>conftest.er1 6566 ac_status=$? 6567 grep -v '^ *+' conftest.er1 >conftest.err 6568 rm -f conftest.er1 6569 cat conftest.err >&5 6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6571 (exit $ac_status); } && 6572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6574 (eval $ac_try) 2>&5 6575 ac_status=$? 6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6577 (exit $ac_status); }; } && 6578 { ac_try='test -s conftest.$ac_objext' 6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6580 (eval $ac_try) 2>&5 6581 ac_status=$? 6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6583 (exit $ac_status); }; }; then 6584 eval "$as_ac_Header=yes" 6585else 6586 echo "$as_me: failed program was:" >&5 6587sed 's/^/| /' conftest.$ac_ext >&5 6588 6589eval "$as_ac_Header=no" 6590fi 6591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6592fi 6593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6595if test `eval echo '${'$as_ac_Header'}'` = yes; then 6596 cat >>confdefs.h <<_ACEOF 6597#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 6598_ACEOF 6599 6600ac_header_dirent=$ac_hdr; break 6601fi 6602 6603done 6604# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 6605if test $ac_header_dirent = dirent.h; then 6606 echo "$as_me:$LINENO: checking for library containing opendir" >&5 6607echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 6608if test "${ac_cv_search_opendir+set}" = set; then 6609 echo $ECHO_N "(cached) $ECHO_C" >&6 6610else 6611 ac_func_search_save_LIBS=$LIBS 6612ac_cv_search_opendir=no 6613cat >conftest.$ac_ext <<_ACEOF 6614/* confdefs.h. */ 6615_ACEOF 6616cat confdefs.h >>conftest.$ac_ext 6617cat >>conftest.$ac_ext <<_ACEOF 6618/* end confdefs.h. */ 6619 6620/* Override any gcc2 internal prototype to avoid an error. */ 6621#ifdef __cplusplus 6622extern "C" 6623#endif 6624/* We use char because int might match the return type of a gcc2 6625 builtin and then its argument prototype would still apply. */ 6626char opendir (); 6627int 6628main () 6629{ 6630opendir (); 6631 ; 6632 return 0; 6633} 6634_ACEOF 6635rm -f conftest.$ac_objext conftest$ac_exeext 6636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6637 (eval $ac_link) 2>conftest.er1 6638 ac_status=$? 6639 grep -v '^ *+' conftest.er1 >conftest.err 6640 rm -f conftest.er1 6641 cat conftest.err >&5 6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6643 (exit $ac_status); } && 6644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6646 (eval $ac_try) 2>&5 6647 ac_status=$? 6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6649 (exit $ac_status); }; } && 6650 { ac_try='test -s conftest$ac_exeext' 6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6652 (eval $ac_try) 2>&5 6653 ac_status=$? 6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6655 (exit $ac_status); }; }; then 6656 ac_cv_search_opendir="none required" 6657else 6658 echo "$as_me: failed program was:" >&5 6659sed 's/^/| /' conftest.$ac_ext >&5 6660 6661fi 6662rm -f conftest.err conftest.$ac_objext \ 6663 conftest$ac_exeext conftest.$ac_ext 6664if test "$ac_cv_search_opendir" = no; then 6665 for ac_lib in dir; do 6666 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6667 cat >conftest.$ac_ext <<_ACEOF 6668/* confdefs.h. */ 6669_ACEOF 6670cat confdefs.h >>conftest.$ac_ext 6671cat >>conftest.$ac_ext <<_ACEOF 6672/* end confdefs.h. */ 6673 6674/* Override any gcc2 internal prototype to avoid an error. */ 6675#ifdef __cplusplus 6676extern "C" 6677#endif 6678/* We use char because int might match the return type of a gcc2 6679 builtin and then its argument prototype would still apply. */ 6680char opendir (); 6681int 6682main () 6683{ 6684opendir (); 6685 ; 6686 return 0; 6687} 6688_ACEOF 6689rm -f conftest.$ac_objext conftest$ac_exeext 6690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6691 (eval $ac_link) 2>conftest.er1 6692 ac_status=$? 6693 grep -v '^ *+' conftest.er1 >conftest.err 6694 rm -f conftest.er1 6695 cat conftest.err >&5 6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6697 (exit $ac_status); } && 6698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6700 (eval $ac_try) 2>&5 6701 ac_status=$? 6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6703 (exit $ac_status); }; } && 6704 { ac_try='test -s conftest$ac_exeext' 6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6706 (eval $ac_try) 2>&5 6707 ac_status=$? 6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6709 (exit $ac_status); }; }; then 6710 ac_cv_search_opendir="-l$ac_lib" 6711break 6712else 6713 echo "$as_me: failed program was:" >&5 6714sed 's/^/| /' conftest.$ac_ext >&5 6715 6716fi 6717rm -f conftest.err conftest.$ac_objext \ 6718 conftest$ac_exeext conftest.$ac_ext 6719 done 6720fi 6721LIBS=$ac_func_search_save_LIBS 6722fi 6723echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 6724echo "${ECHO_T}$ac_cv_search_opendir" >&6 6725if test "$ac_cv_search_opendir" != no; then 6726 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 6727 6728fi 6729 6730else 6731 echo "$as_me:$LINENO: checking for library containing opendir" >&5 6732echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 6733if test "${ac_cv_search_opendir+set}" = set; then 6734 echo $ECHO_N "(cached) $ECHO_C" >&6 6735else 6736 ac_func_search_save_LIBS=$LIBS 6737ac_cv_search_opendir=no 6738cat >conftest.$ac_ext <<_ACEOF 6739/* confdefs.h. */ 6740_ACEOF 6741cat confdefs.h >>conftest.$ac_ext 6742cat >>conftest.$ac_ext <<_ACEOF 6743/* end confdefs.h. */ 6744 6745/* Override any gcc2 internal prototype to avoid an error. */ 6746#ifdef __cplusplus 6747extern "C" 6748#endif 6749/* We use char because int might match the return type of a gcc2 6750 builtin and then its argument prototype would still apply. */ 6751char opendir (); 6752int 6753main () 6754{ 6755opendir (); 6756 ; 6757 return 0; 6758} 6759_ACEOF 6760rm -f conftest.$ac_objext conftest$ac_exeext 6761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6762 (eval $ac_link) 2>conftest.er1 6763 ac_status=$? 6764 grep -v '^ *+' conftest.er1 >conftest.err 6765 rm -f conftest.er1 6766 cat conftest.err >&5 6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6768 (exit $ac_status); } && 6769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6771 (eval $ac_try) 2>&5 6772 ac_status=$? 6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6774 (exit $ac_status); }; } && 6775 { ac_try='test -s conftest$ac_exeext' 6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6777 (eval $ac_try) 2>&5 6778 ac_status=$? 6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6780 (exit $ac_status); }; }; then 6781 ac_cv_search_opendir="none required" 6782else 6783 echo "$as_me: failed program was:" >&5 6784sed 's/^/| /' conftest.$ac_ext >&5 6785 6786fi 6787rm -f conftest.err conftest.$ac_objext \ 6788 conftest$ac_exeext conftest.$ac_ext 6789if test "$ac_cv_search_opendir" = no; then 6790 for ac_lib in x; do 6791 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6792 cat >conftest.$ac_ext <<_ACEOF 6793/* confdefs.h. */ 6794_ACEOF 6795cat confdefs.h >>conftest.$ac_ext 6796cat >>conftest.$ac_ext <<_ACEOF 6797/* end confdefs.h. */ 6798 6799/* Override any gcc2 internal prototype to avoid an error. */ 6800#ifdef __cplusplus 6801extern "C" 6802#endif 6803/* We use char because int might match the return type of a gcc2 6804 builtin and then its argument prototype would still apply. */ 6805char opendir (); 6806int 6807main () 6808{ 6809opendir (); 6810 ; 6811 return 0; 6812} 6813_ACEOF 6814rm -f conftest.$ac_objext conftest$ac_exeext 6815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6816 (eval $ac_link) 2>conftest.er1 6817 ac_status=$? 6818 grep -v '^ *+' conftest.er1 >conftest.err 6819 rm -f conftest.er1 6820 cat conftest.err >&5 6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6822 (exit $ac_status); } && 6823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6825 (eval $ac_try) 2>&5 6826 ac_status=$? 6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6828 (exit $ac_status); }; } && 6829 { ac_try='test -s conftest$ac_exeext' 6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6831 (eval $ac_try) 2>&5 6832 ac_status=$? 6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6834 (exit $ac_status); }; }; then 6835 ac_cv_search_opendir="-l$ac_lib" 6836break 6837else 6838 echo "$as_me: failed program was:" >&5 6839sed 's/^/| /' conftest.$ac_ext >&5 6840 6841fi 6842rm -f conftest.err conftest.$ac_objext \ 6843 conftest$ac_exeext conftest.$ac_ext 6844 done 6845fi 6846LIBS=$ac_func_search_save_LIBS 6847fi 6848echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 6849echo "${ECHO_T}$ac_cv_search_opendir" >&6 6850if test "$ac_cv_search_opendir" != no; then 6851 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 6852 6853fi 6854 6855fi 6856 6857echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 6858echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 6859if test "${ac_cv_header_stat_broken+set}" = set; then 6860 echo $ECHO_N "(cached) $ECHO_C" >&6 6861else 6862 cat >conftest.$ac_ext <<_ACEOF 6863/* confdefs.h. */ 6864_ACEOF 6865cat confdefs.h >>conftest.$ac_ext 6866cat >>conftest.$ac_ext <<_ACEOF 6867/* end confdefs.h. */ 6868#include <sys/types.h> 6869#include <sys/stat.h> 6870 6871#if defined(S_ISBLK) && defined(S_IFDIR) 6872# if S_ISBLK (S_IFDIR) 6873You lose. 6874# endif 6875#endif 6876 6877#if defined(S_ISBLK) && defined(S_IFCHR) 6878# if S_ISBLK (S_IFCHR) 6879You lose. 6880# endif 6881#endif 6882 6883#if defined(S_ISLNK) && defined(S_IFREG) 6884# if S_ISLNK (S_IFREG) 6885You lose. 6886# endif 6887#endif 6888 6889#if defined(S_ISSOCK) && defined(S_IFREG) 6890# if S_ISSOCK (S_IFREG) 6891You lose. 6892# endif 6893#endif 6894 6895_ACEOF 6896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6897 $EGREP "You lose" >/dev/null 2>&1; then 6898 ac_cv_header_stat_broken=yes 6899else 6900 ac_cv_header_stat_broken=no 6901fi 6902rm -f conftest* 6903 6904fi 6905echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 6906echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 6907if test $ac_cv_header_stat_broken = yes; then 6908 6909cat >>confdefs.h <<\_ACEOF 6910#define STAT_MACROS_BROKEN 1 6911_ACEOF 6912 6913fi 6914 6915echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 6916echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 6917if test "${ac_cv_header_time+set}" = set; then 6918 echo $ECHO_N "(cached) $ECHO_C" >&6 6919else 6920 cat >conftest.$ac_ext <<_ACEOF 6921/* confdefs.h. */ 6922_ACEOF 6923cat confdefs.h >>conftest.$ac_ext 6924cat >>conftest.$ac_ext <<_ACEOF 6925/* end confdefs.h. */ 6926#include <sys/types.h> 6927#include <sys/time.h> 6928#include <time.h> 6929 6930int 6931main () 6932{ 6933if ((struct tm *) 0) 6934return 0; 6935 ; 6936 return 0; 6937} 6938_ACEOF 6939rm -f conftest.$ac_objext 6940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6941 (eval $ac_compile) 2>conftest.er1 6942 ac_status=$? 6943 grep -v '^ *+' conftest.er1 >conftest.err 6944 rm -f conftest.er1 6945 cat conftest.err >&5 6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6947 (exit $ac_status); } && 6948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6950 (eval $ac_try) 2>&5 6951 ac_status=$? 6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6953 (exit $ac_status); }; } && 6954 { ac_try='test -s conftest.$ac_objext' 6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6956 (eval $ac_try) 2>&5 6957 ac_status=$? 6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6959 (exit $ac_status); }; }; then 6960 ac_cv_header_time=yes 6961else 6962 echo "$as_me: failed program was:" >&5 6963sed 's/^/| /' conftest.$ac_ext >&5 6964 6965ac_cv_header_time=no 6966fi 6967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6968fi 6969echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 6970echo "${ECHO_T}$ac_cv_header_time" >&6 6971if test $ac_cv_header_time = yes; then 6972 6973cat >>confdefs.h <<\_ACEOF 6974#define TIME_WITH_SYS_TIME 1 6975_ACEOF 6976 6977fi 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \ 6991 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h 6992do 6993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6994if eval "test \"\${$as_ac_Header+set}\" = set"; then 6995 echo "$as_me:$LINENO: checking for $ac_header" >&5 6996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6997if eval "test \"\${$as_ac_Header+set}\" = set"; then 6998 echo $ECHO_N "(cached) $ECHO_C" >&6 6999fi 7000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7002else 7003 # Is the header compilable? 7004echo "$as_me:$LINENO: checking $ac_header usability" >&5 7005echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7006cat >conftest.$ac_ext <<_ACEOF 7007/* confdefs.h. */ 7008_ACEOF 7009cat confdefs.h >>conftest.$ac_ext 7010cat >>conftest.$ac_ext <<_ACEOF 7011/* end confdefs.h. */ 7012$ac_includes_default 7013#include <$ac_header> 7014_ACEOF 7015rm -f conftest.$ac_objext 7016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7017 (eval $ac_compile) 2>conftest.er1 7018 ac_status=$? 7019 grep -v '^ *+' conftest.er1 >conftest.err 7020 rm -f conftest.er1 7021 cat conftest.err >&5 7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7023 (exit $ac_status); } && 7024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7026 (eval $ac_try) 2>&5 7027 ac_status=$? 7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7029 (exit $ac_status); }; } && 7030 { ac_try='test -s conftest.$ac_objext' 7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7032 (eval $ac_try) 2>&5 7033 ac_status=$? 7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7035 (exit $ac_status); }; }; then 7036 ac_header_compiler=yes 7037else 7038 echo "$as_me: failed program was:" >&5 7039sed 's/^/| /' conftest.$ac_ext >&5 7040 7041ac_header_compiler=no 7042fi 7043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7045echo "${ECHO_T}$ac_header_compiler" >&6 7046 7047# Is the header present? 7048echo "$as_me:$LINENO: checking $ac_header presence" >&5 7049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7050cat >conftest.$ac_ext <<_ACEOF 7051/* confdefs.h. */ 7052_ACEOF 7053cat confdefs.h >>conftest.$ac_ext 7054cat >>conftest.$ac_ext <<_ACEOF 7055/* end confdefs.h. */ 7056#include <$ac_header> 7057_ACEOF 7058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7060 ac_status=$? 7061 grep -v '^ *+' conftest.er1 >conftest.err 7062 rm -f conftest.er1 7063 cat conftest.err >&5 7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7065 (exit $ac_status); } >/dev/null; then 7066 if test -s conftest.err; then 7067 ac_cpp_err=$ac_c_preproc_warn_flag 7068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7069 else 7070 ac_cpp_err= 7071 fi 7072else 7073 ac_cpp_err=yes 7074fi 7075if test -z "$ac_cpp_err"; then 7076 ac_header_preproc=yes 7077else 7078 echo "$as_me: failed program was:" >&5 7079sed 's/^/| /' conftest.$ac_ext >&5 7080 7081 ac_header_preproc=no 7082fi 7083rm -f conftest.err conftest.$ac_ext 7084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7085echo "${ECHO_T}$ac_header_preproc" >&6 7086 7087# So? What about this header? 7088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7089 yes:no: ) 7090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7094 ac_header_preproc=yes 7095 ;; 7096 no:yes:* ) 7097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7100echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7104echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7109 ( 7110 cat <<\_ASBOX 7111## ------------------------------- ## 7112## Report this to bug-make@gnu.org ## 7113## ------------------------------- ## 7114_ASBOX 7115 ) | 7116 sed "s/^/$as_me: WARNING: /" >&2 7117 ;; 7118esac 7119echo "$as_me:$LINENO: checking for $ac_header" >&5 7120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7121if eval "test \"\${$as_ac_Header+set}\" = set"; then 7122 echo $ECHO_N "(cached) $ECHO_C" >&6 7123else 7124 eval "$as_ac_Header=\$ac_header_preproc" 7125fi 7126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7128 7129fi 7130if test `eval echo '${'$as_ac_Header'}'` = yes; then 7131 cat >>confdefs.h <<_ACEOF 7132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7133_ACEOF 7134 7135fi 7136 7137done 7138 7139 7140# Set a flag if we have an ANSI C compiler 7141if test "$ac_cv_prog_cc_stdc" != no; then 7142 7143cat >>confdefs.h <<\_ACEOF 7144#define HAVE_ANSI_COMPILER 1 7145_ACEOF 7146 7147fi 7148 7149 7150# Determine what kind of variadic function calls we support 7151 7152 7153for ac_header in stdarg.h varargs.h 7154do 7155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7156if eval "test \"\${$as_ac_Header+set}\" = set"; then 7157 echo "$as_me:$LINENO: checking for $ac_header" >&5 7158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7159if eval "test \"\${$as_ac_Header+set}\" = set"; then 7160 echo $ECHO_N "(cached) $ECHO_C" >&6 7161fi 7162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7164else 7165 # Is the header compilable? 7166echo "$as_me:$LINENO: checking $ac_header usability" >&5 7167echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7168cat >conftest.$ac_ext <<_ACEOF 7169/* confdefs.h. */ 7170_ACEOF 7171cat confdefs.h >>conftest.$ac_ext 7172cat >>conftest.$ac_ext <<_ACEOF 7173/* end confdefs.h. */ 7174$ac_includes_default 7175#include <$ac_header> 7176_ACEOF 7177rm -f conftest.$ac_objext 7178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7179 (eval $ac_compile) 2>conftest.er1 7180 ac_status=$? 7181 grep -v '^ *+' conftest.er1 >conftest.err 7182 rm -f conftest.er1 7183 cat conftest.err >&5 7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7185 (exit $ac_status); } && 7186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7188 (eval $ac_try) 2>&5 7189 ac_status=$? 7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7191 (exit $ac_status); }; } && 7192 { ac_try='test -s conftest.$ac_objext' 7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7194 (eval $ac_try) 2>&5 7195 ac_status=$? 7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7197 (exit $ac_status); }; }; then 7198 ac_header_compiler=yes 7199else 7200 echo "$as_me: failed program was:" >&5 7201sed 's/^/| /' conftest.$ac_ext >&5 7202 7203ac_header_compiler=no 7204fi 7205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7207echo "${ECHO_T}$ac_header_compiler" >&6 7208 7209# Is the header present? 7210echo "$as_me:$LINENO: checking $ac_header presence" >&5 7211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7212cat >conftest.$ac_ext <<_ACEOF 7213/* confdefs.h. */ 7214_ACEOF 7215cat confdefs.h >>conftest.$ac_ext 7216cat >>conftest.$ac_ext <<_ACEOF 7217/* end confdefs.h. */ 7218#include <$ac_header> 7219_ACEOF 7220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7222 ac_status=$? 7223 grep -v '^ *+' conftest.er1 >conftest.err 7224 rm -f conftest.er1 7225 cat conftest.err >&5 7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7227 (exit $ac_status); } >/dev/null; then 7228 if test -s conftest.err; then 7229 ac_cpp_err=$ac_c_preproc_warn_flag 7230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7231 else 7232 ac_cpp_err= 7233 fi 7234else 7235 ac_cpp_err=yes 7236fi 7237if test -z "$ac_cpp_err"; then 7238 ac_header_preproc=yes 7239else 7240 echo "$as_me: failed program was:" >&5 7241sed 's/^/| /' conftest.$ac_ext >&5 7242 7243 ac_header_preproc=no 7244fi 7245rm -f conftest.err conftest.$ac_ext 7246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7247echo "${ECHO_T}$ac_header_preproc" >&6 7248 7249# So? What about this header? 7250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7251 yes:no: ) 7252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7256 ac_header_preproc=yes 7257 ;; 7258 no:yes:* ) 7259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7271 ( 7272 cat <<\_ASBOX 7273## ------------------------------- ## 7274## Report this to bug-make@gnu.org ## 7275## ------------------------------- ## 7276_ASBOX 7277 ) | 7278 sed "s/^/$as_me: WARNING: /" >&2 7279 ;; 7280esac 7281echo "$as_me:$LINENO: checking for $ac_header" >&5 7282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7283if eval "test \"\${$as_ac_Header+set}\" = set"; then 7284 echo $ECHO_N "(cached) $ECHO_C" >&6 7285else 7286 eval "$as_ac_Header=\$ac_header_preproc" 7287fi 7288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7290 7291fi 7292if test `eval echo '${'$as_ac_Header'}'` = yes; then 7293 cat >>confdefs.h <<_ACEOF 7294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7295_ACEOF 7296 break 7297fi 7298 7299done 7300 7301 7302if test "x$CC" != xcc; then 7303 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 7304echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 7305else 7306 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 7307echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 7308fi 7309set dummy $CC; ac_cc=`echo $2 | 7310 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7311if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then 7312 echo $ECHO_N "(cached) $ECHO_C" >&6 7313else 7314 cat >conftest.$ac_ext <<_ACEOF 7315/* confdefs.h. */ 7316_ACEOF 7317cat confdefs.h >>conftest.$ac_ext 7318cat >>conftest.$ac_ext <<_ACEOF 7319/* end confdefs.h. */ 7320 7321int 7322main () 7323{ 7324 7325 ; 7326 return 0; 7327} 7328_ACEOF 7329# Make sure it works both with $CC and with simple cc. 7330# We do the test twice because some compilers refuse to overwrite an 7331# existing .o file with -o, though they will create one. 7332ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' 7333if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7334 (eval $ac_try) 2>&5 7335 ac_status=$? 7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7337 (exit $ac_status); } && 7338 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7339 (eval $ac_try) 2>&5 7340 ac_status=$? 7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7342 (exit $ac_status); }; 7343then 7344 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 7345 if test "x$CC" != xcc; then 7346 # Test first that cc exists at all. 7347 if { ac_try='cc -c conftest.$ac_ext >&5' 7348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7349 (eval $ac_try) 2>&5 7350 ac_status=$? 7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7352 (exit $ac_status); }; }; then 7353 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' 7354 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7355 (eval $ac_try) 2>&5 7356 ac_status=$? 7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7358 (exit $ac_status); } && 7359 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7360 (eval $ac_try) 2>&5 7361 ac_status=$? 7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7363 (exit $ac_status); }; 7364 then 7365 # cc works too. 7366 : 7367 else 7368 # cc exists but doesn't like -o. 7369 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7370 fi 7371 fi 7372 fi 7373else 7374 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7375fi 7376rm -f conftest* 7377 7378fi 7379if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 7380 echo "$as_me:$LINENO: result: yes" >&5 7381echo "${ECHO_T}yes" >&6 7382else 7383 echo "$as_me:$LINENO: result: no" >&5 7384echo "${ECHO_T}no" >&6 7385 7386cat >>confdefs.h <<\_ACEOF 7387#define NO_MINUS_C_MINUS_O 1 7388_ACEOF 7389 7390fi 7391 7392# FIXME: we rely on the cache variable name because 7393# there is no other way. 7394set dummy $CC 7395ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7396if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 7397 # Losing compiler, so override with the script. 7398 # FIXME: It is wrong to rewrite CC. 7399 # But if we don't then we get into trouble of one sort or another. 7400 # A longer-term fix would be to have automake use am__CC in this case, 7401 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7402 CC="$am_aux_dir/compile $CC" 7403fi 7404 7405echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7406echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7407if test "${ac_cv_c_const+set}" = set; then 7408 echo $ECHO_N "(cached) $ECHO_C" >&6 7409else 7410 cat >conftest.$ac_ext <<_ACEOF 7411/* confdefs.h. */ 7412_ACEOF 7413cat confdefs.h >>conftest.$ac_ext 7414cat >>conftest.$ac_ext <<_ACEOF 7415/* end confdefs.h. */ 7416 7417int 7418main () 7419{ 7420/* FIXME: Include the comments suggested by Paul. */ 7421#ifndef __cplusplus 7422 /* Ultrix mips cc rejects this. */ 7423 typedef int charset[2]; 7424 const charset x; 7425 /* SunOS 4.1.1 cc rejects this. */ 7426 char const *const *ccp; 7427 char **p; 7428 /* NEC SVR4.0.2 mips cc rejects this. */ 7429 struct point {int x, y;}; 7430 static struct point const zero = {0,0}; 7431 /* AIX XL C 1.02.0.0 rejects this. 7432 It does not let you subtract one const X* pointer from another in 7433 an arm of an if-expression whose if-part is not a constant 7434 expression */ 7435 const char *g = "string"; 7436 ccp = &g + (g ? g-g : 0); 7437 /* HPUX 7.0 cc rejects these. */ 7438 ++ccp; 7439 p = (char**) ccp; 7440 ccp = (char const *const *) p; 7441 { /* SCO 3.2v4 cc rejects this. */ 7442 char *t; 7443 char const *s = 0 ? (char *) 0 : (char const *) 0; 7444 7445 *t++ = 0; 7446 } 7447 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7448 int x[] = {25, 17}; 7449 const int *foo = &x[0]; 7450 ++foo; 7451 } 7452 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7453 typedef const int *iptr; 7454 iptr p = 0; 7455 ++p; 7456 } 7457 { /* AIX XL C 1.02.0.0 rejects this saying 7458 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7459 struct s { int j; const int *ap[3]; }; 7460 struct s *b; b->j = 5; 7461 } 7462 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7463 const int foo = 10; 7464 } 7465#endif 7466 7467 ; 7468 return 0; 7469} 7470_ACEOF 7471rm -f conftest.$ac_objext 7472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7473 (eval $ac_compile) 2>conftest.er1 7474 ac_status=$? 7475 grep -v '^ *+' conftest.er1 >conftest.err 7476 rm -f conftest.er1 7477 cat conftest.err >&5 7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7479 (exit $ac_status); } && 7480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7482 (eval $ac_try) 2>&5 7483 ac_status=$? 7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7485 (exit $ac_status); }; } && 7486 { ac_try='test -s conftest.$ac_objext' 7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7488 (eval $ac_try) 2>&5 7489 ac_status=$? 7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7491 (exit $ac_status); }; }; then 7492 ac_cv_c_const=yes 7493else 7494 echo "$as_me: failed program was:" >&5 7495sed 's/^/| /' conftest.$ac_ext >&5 7496 7497ac_cv_c_const=no 7498fi 7499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7500fi 7501echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 7502echo "${ECHO_T}$ac_cv_c_const" >&6 7503if test $ac_cv_c_const = no; then 7504 7505cat >>confdefs.h <<\_ACEOF 7506#define const 7507_ACEOF 7508 7509fi 7510 7511echo "$as_me:$LINENO: checking return type of signal handlers" >&5 7512echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 7513if test "${ac_cv_type_signal+set}" = set; then 7514 echo $ECHO_N "(cached) $ECHO_C" >&6 7515else 7516 cat >conftest.$ac_ext <<_ACEOF 7517/* confdefs.h. */ 7518_ACEOF 7519cat confdefs.h >>conftest.$ac_ext 7520cat >>conftest.$ac_ext <<_ACEOF 7521/* end confdefs.h. */ 7522#include <sys/types.h> 7523#include <signal.h> 7524#ifdef signal 7525# undef signal 7526#endif 7527#ifdef __cplusplus 7528extern "C" void (*signal (int, void (*)(int)))(int); 7529#else 7530void (*signal ()) (); 7531#endif 7532 7533int 7534main () 7535{ 7536int i; 7537 ; 7538 return 0; 7539} 7540_ACEOF 7541rm -f conftest.$ac_objext 7542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7543 (eval $ac_compile) 2>conftest.er1 7544 ac_status=$? 7545 grep -v '^ *+' conftest.er1 >conftest.err 7546 rm -f conftest.er1 7547 cat conftest.err >&5 7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7549 (exit $ac_status); } && 7550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7552 (eval $ac_try) 2>&5 7553 ac_status=$? 7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7555 (exit $ac_status); }; } && 7556 { ac_try='test -s conftest.$ac_objext' 7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7558 (eval $ac_try) 2>&5 7559 ac_status=$? 7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7561 (exit $ac_status); }; }; then 7562 ac_cv_type_signal=void 7563else 7564 echo "$as_me: failed program was:" >&5 7565sed 's/^/| /' conftest.$ac_ext >&5 7566 7567ac_cv_type_signal=int 7568fi 7569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7570fi 7571echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 7572echo "${ECHO_T}$ac_cv_type_signal" >&6 7573 7574cat >>confdefs.h <<_ACEOF 7575#define RETSIGTYPE $ac_cv_type_signal 7576_ACEOF 7577 7578 7579echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 7580echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 7581if test "${ac_cv_type_uid_t+set}" = set; then 7582 echo $ECHO_N "(cached) $ECHO_C" >&6 7583else 7584 cat >conftest.$ac_ext <<_ACEOF 7585/* confdefs.h. */ 7586_ACEOF 7587cat confdefs.h >>conftest.$ac_ext 7588cat >>conftest.$ac_ext <<_ACEOF 7589/* end confdefs.h. */ 7590#include <sys/types.h> 7591 7592_ACEOF 7593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7594 $EGREP "uid_t" >/dev/null 2>&1; then 7595 ac_cv_type_uid_t=yes 7596else 7597 ac_cv_type_uid_t=no 7598fi 7599rm -f conftest* 7600 7601fi 7602echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 7603echo "${ECHO_T}$ac_cv_type_uid_t" >&6 7604if test $ac_cv_type_uid_t = no; then 7605 7606cat >>confdefs.h <<\_ACEOF 7607#define uid_t int 7608_ACEOF 7609 7610 7611cat >>confdefs.h <<\_ACEOF 7612#define gid_t int 7613_ACEOF 7614 7615fi 7616 7617echo "$as_me:$LINENO: checking for pid_t" >&5 7618echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 7619if test "${ac_cv_type_pid_t+set}" = set; then 7620 echo $ECHO_N "(cached) $ECHO_C" >&6 7621else 7622 cat >conftest.$ac_ext <<_ACEOF 7623/* confdefs.h. */ 7624_ACEOF 7625cat confdefs.h >>conftest.$ac_ext 7626cat >>conftest.$ac_ext <<_ACEOF 7627/* end confdefs.h. */ 7628$ac_includes_default 7629int 7630main () 7631{ 7632if ((pid_t *) 0) 7633 return 0; 7634if (sizeof (pid_t)) 7635 return 0; 7636 ; 7637 return 0; 7638} 7639_ACEOF 7640rm -f conftest.$ac_objext 7641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7642 (eval $ac_compile) 2>conftest.er1 7643 ac_status=$? 7644 grep -v '^ *+' conftest.er1 >conftest.err 7645 rm -f conftest.er1 7646 cat conftest.err >&5 7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7648 (exit $ac_status); } && 7649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7651 (eval $ac_try) 2>&5 7652 ac_status=$? 7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7654 (exit $ac_status); }; } && 7655 { ac_try='test -s conftest.$ac_objext' 7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7657 (eval $ac_try) 2>&5 7658 ac_status=$? 7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7660 (exit $ac_status); }; }; then 7661 ac_cv_type_pid_t=yes 7662else 7663 echo "$as_me: failed program was:" >&5 7664sed 's/^/| /' conftest.$ac_ext >&5 7665 7666ac_cv_type_pid_t=no 7667fi 7668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7669fi 7670echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 7671echo "${ECHO_T}$ac_cv_type_pid_t" >&6 7672if test $ac_cv_type_pid_t = yes; then 7673 : 7674else 7675 7676cat >>confdefs.h <<_ACEOF 7677#define pid_t int 7678_ACEOF 7679 7680fi 7681 7682 7683# Find some definition for uintmax_t 7684 7685echo "$as_me:$LINENO: checking for uintmax_t" >&5 7686echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 7687if test "${ac_cv_type_uintmax_t+set}" = set; then 7688 echo $ECHO_N "(cached) $ECHO_C" >&6 7689else 7690 cat >conftest.$ac_ext <<_ACEOF 7691/* confdefs.h. */ 7692_ACEOF 7693cat confdefs.h >>conftest.$ac_ext 7694cat >>conftest.$ac_ext <<_ACEOF 7695/* end confdefs.h. */ 7696$ac_includes_default 7697int 7698main () 7699{ 7700if ((uintmax_t *) 0) 7701 return 0; 7702if (sizeof (uintmax_t)) 7703 return 0; 7704 ; 7705 return 0; 7706} 7707_ACEOF 7708rm -f conftest.$ac_objext 7709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7710 (eval $ac_compile) 2>conftest.er1 7711 ac_status=$? 7712 grep -v '^ *+' conftest.er1 >conftest.err 7713 rm -f conftest.er1 7714 cat conftest.err >&5 7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7716 (exit $ac_status); } && 7717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7719 (eval $ac_try) 2>&5 7720 ac_status=$? 7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7722 (exit $ac_status); }; } && 7723 { ac_try='test -s conftest.$ac_objext' 7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7725 (eval $ac_try) 2>&5 7726 ac_status=$? 7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7728 (exit $ac_status); }; }; then 7729 ac_cv_type_uintmax_t=yes 7730else 7731 echo "$as_me: failed program was:" >&5 7732sed 's/^/| /' conftest.$ac_ext >&5 7733 7734ac_cv_type_uintmax_t=no 7735fi 7736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7737fi 7738echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 7739echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 7740if test $ac_cv_type_uintmax_t = yes; then 7741 : 7742else 7743 7744 uintmax_t="unsigned long" 7745 echo "$as_me:$LINENO: checking for unsigned long long" >&5 7746echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 7747if test "${ac_cv_type_unsigned_long_long+set}" = set; then 7748 echo $ECHO_N "(cached) $ECHO_C" >&6 7749else 7750 cat >conftest.$ac_ext <<_ACEOF 7751/* confdefs.h. */ 7752_ACEOF 7753cat confdefs.h >>conftest.$ac_ext 7754cat >>conftest.$ac_ext <<_ACEOF 7755/* end confdefs.h. */ 7756$ac_includes_default 7757int 7758main () 7759{ 7760if ((unsigned long long *) 0) 7761 return 0; 7762if (sizeof (unsigned long long)) 7763 return 0; 7764 ; 7765 return 0; 7766} 7767_ACEOF 7768rm -f conftest.$ac_objext 7769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7770 (eval $ac_compile) 2>conftest.er1 7771 ac_status=$? 7772 grep -v '^ *+' conftest.er1 >conftest.err 7773 rm -f conftest.er1 7774 cat conftest.err >&5 7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7776 (exit $ac_status); } && 7777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7779 (eval $ac_try) 2>&5 7780 ac_status=$? 7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782 (exit $ac_status); }; } && 7783 { ac_try='test -s conftest.$ac_objext' 7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7785 (eval $ac_try) 2>&5 7786 ac_status=$? 7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7788 (exit $ac_status); }; }; then 7789 ac_cv_type_unsigned_long_long=yes 7790else 7791 echo "$as_me: failed program was:" >&5 7792sed 's/^/| /' conftest.$ac_ext >&5 7793 7794ac_cv_type_unsigned_long_long=no 7795fi 7796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7797fi 7798echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 7799echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 7800if test $ac_cv_type_unsigned_long_long = yes; then 7801 uintmax_t="unsigned long long" 7802fi 7803 7804 7805cat >>confdefs.h <<_ACEOF 7806#define uintmax_t $uintmax_t 7807_ACEOF 7808 7809fi 7810 7811 7812# Find out whether our struct stat returns nanosecond resolution timestamps. 7813 7814echo "$as_me:$LINENO: checking for nanoseconds field of struct stat.st_mtim" >&5 7815echo $ECHO_N "checking for nanoseconds field of struct stat.st_mtim... $ECHO_C" >&6 7816if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then 7817 echo $ECHO_N "(cached) $ECHO_C" >&6 7818else 7819 ac_save_CPPFLAGS="$CPPFLAGS" 7820 ac_cv_struct_st_mtim_nsec=no 7821 # tv_nsec -- the usual case 7822 # _tv_nsec -- Solaris 2.6, if 7823 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1 7824 # && !defined __EXTENSIONS__) 7825 # st__tim.tv_nsec -- UnixWare 2.1.2 7826 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do 7827 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val" 7828 cat >conftest.$ac_ext <<_ACEOF 7829/* confdefs.h. */ 7830_ACEOF 7831cat confdefs.h >>conftest.$ac_ext 7832cat >>conftest.$ac_ext <<_ACEOF 7833/* end confdefs.h. */ 7834#include <sys/types.h> 7835#include <sys/stat.h> 7836 7837int 7838main () 7839{ 7840struct stat s; s.st_mtim.ST_MTIM_NSEC; 7841 ; 7842 return 0; 7843} 7844_ACEOF 7845rm -f conftest.$ac_objext 7846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7847 (eval $ac_compile) 2>conftest.er1 7848 ac_status=$? 7849 grep -v '^ *+' conftest.er1 >conftest.err 7850 rm -f conftest.er1 7851 cat conftest.err >&5 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7853 (exit $ac_status); } && 7854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7856 (eval $ac_try) 2>&5 7857 ac_status=$? 7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7859 (exit $ac_status); }; } && 7860 { ac_try='test -s conftest.$ac_objext' 7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7862 (eval $ac_try) 2>&5 7863 ac_status=$? 7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7865 (exit $ac_status); }; }; then 7866 ac_cv_struct_st_mtim_nsec=$ac_val; break 7867else 7868 echo "$as_me: failed program was:" >&5 7869sed 's/^/| /' conftest.$ac_ext >&5 7870 7871fi 7872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7873 done 7874 CPPFLAGS="$ac_save_CPPFLAGS" 7875 7876fi 7877echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5 7878echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6 7879 7880 if test $ac_cv_struct_st_mtim_nsec != no; then 7881 7882cat >>confdefs.h <<_ACEOF 7883#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec 7884_ACEOF 7885 7886 fi 7887 7888 7889echo "$as_me:$LINENO: checking whether to use high resolution file timestamps" >&5 7890echo $ECHO_N "checking whether to use high resolution file timestamps... $ECHO_C" >&6 7891if test "${make_cv_file_timestamp_hi_res+set}" = set; then 7892 echo $ECHO_N "(cached) $ECHO_C" >&6 7893else 7894 7895 make_cv_file_timestamp_hi_res=no 7896 if test "$ac_cv_struct_st_mtim_nsec" != no; then 7897 cat >conftest.$ac_ext <<_ACEOF 7898/* confdefs.h. */ 7899_ACEOF 7900cat confdefs.h >>conftest.$ac_ext 7901cat >>conftest.$ac_ext <<_ACEOF 7902/* end confdefs.h. */ 7903 7904# if HAVE_INTTYPES_H 7905# include <inttypes.h> 7906# endif 7907int 7908main () 7909{ 7910char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1]; 7911 ; 7912 return 0; 7913} 7914_ACEOF 7915rm -f conftest.$ac_objext 7916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7917 (eval $ac_compile) 2>conftest.er1 7918 ac_status=$? 7919 grep -v '^ *+' conftest.er1 >conftest.err 7920 rm -f conftest.er1 7921 cat conftest.err >&5 7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7923 (exit $ac_status); } && 7924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7926 (eval $ac_try) 2>&5 7927 ac_status=$? 7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7929 (exit $ac_status); }; } && 7930 { ac_try='test -s conftest.$ac_objext' 7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7932 (eval $ac_try) 2>&5 7933 ac_status=$? 7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7935 (exit $ac_status); }; }; then 7936 make_cv_file_timestamp_hi_res=yes 7937else 7938 echo "$as_me: failed program was:" >&5 7939sed 's/^/| /' conftest.$ac_ext >&5 7940 7941fi 7942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7943 fi 7944fi 7945 7946echo "$as_me:$LINENO: result: $make_cv_file_timestamp_hi_res" >&5 7947echo "${ECHO_T}$make_cv_file_timestamp_hi_res" >&6 7948if test "$make_cv_file_timestamp_hi_res" = yes; then 7949 val=1 7950else 7951 val=0 7952fi 7953 7954cat >>confdefs.h <<_ACEOF 7955#define FILE_TIMESTAMP_HI_RES $val 7956_ACEOF 7957 7958 7959if test "$make_cv_file_timestamp_hi_res" = yes; then 7960 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. 7961 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. 7962 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 7963echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6 7964if test "${ac_cv_search_clock_gettime+set}" = set; then 7965 echo $ECHO_N "(cached) $ECHO_C" >&6 7966else 7967 ac_func_search_save_LIBS=$LIBS 7968ac_cv_search_clock_gettime=no 7969cat >conftest.$ac_ext <<_ACEOF 7970/* confdefs.h. */ 7971_ACEOF 7972cat confdefs.h >>conftest.$ac_ext 7973cat >>conftest.$ac_ext <<_ACEOF 7974/* end confdefs.h. */ 7975 7976/* Override any gcc2 internal prototype to avoid an error. */ 7977#ifdef __cplusplus 7978extern "C" 7979#endif 7980/* We use char because int might match the return type of a gcc2 7981 builtin and then its argument prototype would still apply. */ 7982char clock_gettime (); 7983int 7984main () 7985{ 7986clock_gettime (); 7987 ; 7988 return 0; 7989} 7990_ACEOF 7991rm -f conftest.$ac_objext conftest$ac_exeext 7992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7993 (eval $ac_link) 2>conftest.er1 7994 ac_status=$? 7995 grep -v '^ *+' conftest.er1 >conftest.err 7996 rm -f conftest.er1 7997 cat conftest.err >&5 7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7999 (exit $ac_status); } && 8000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8002 (eval $ac_try) 2>&5 8003 ac_status=$? 8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8005 (exit $ac_status); }; } && 8006 { ac_try='test -s conftest$ac_exeext' 8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8008 (eval $ac_try) 2>&5 8009 ac_status=$? 8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8011 (exit $ac_status); }; }; then 8012 ac_cv_search_clock_gettime="none required" 8013else 8014 echo "$as_me: failed program was:" >&5 8015sed 's/^/| /' conftest.$ac_ext >&5 8016 8017fi 8018rm -f conftest.err conftest.$ac_objext \ 8019 conftest$ac_exeext conftest.$ac_ext 8020if test "$ac_cv_search_clock_gettime" = no; then 8021 for ac_lib in rt posix4; do 8022 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8023 cat >conftest.$ac_ext <<_ACEOF 8024/* confdefs.h. */ 8025_ACEOF 8026cat confdefs.h >>conftest.$ac_ext 8027cat >>conftest.$ac_ext <<_ACEOF 8028/* end confdefs.h. */ 8029 8030/* Override any gcc2 internal prototype to avoid an error. */ 8031#ifdef __cplusplus 8032extern "C" 8033#endif 8034/* We use char because int might match the return type of a gcc2 8035 builtin and then its argument prototype would still apply. */ 8036char clock_gettime (); 8037int 8038main () 8039{ 8040clock_gettime (); 8041 ; 8042 return 0; 8043} 8044_ACEOF 8045rm -f conftest.$ac_objext conftest$ac_exeext 8046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8047 (eval $ac_link) 2>conftest.er1 8048 ac_status=$? 8049 grep -v '^ *+' conftest.er1 >conftest.err 8050 rm -f conftest.er1 8051 cat conftest.err >&5 8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8053 (exit $ac_status); } && 8054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8056 (eval $ac_try) 2>&5 8057 ac_status=$? 8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 (exit $ac_status); }; } && 8060 { ac_try='test -s conftest$ac_exeext' 8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8062 (eval $ac_try) 2>&5 8063 ac_status=$? 8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8065 (exit $ac_status); }; }; then 8066 ac_cv_search_clock_gettime="-l$ac_lib" 8067break 8068else 8069 echo "$as_me: failed program was:" >&5 8070sed 's/^/| /' conftest.$ac_ext >&5 8071 8072fi 8073rm -f conftest.err conftest.$ac_objext \ 8074 conftest$ac_exeext conftest.$ac_ext 8075 done 8076fi 8077LIBS=$ac_func_search_save_LIBS 8078fi 8079echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 8080echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6 8081if test "$ac_cv_search_clock_gettime" != no; then 8082 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS" 8083 8084fi 8085 8086 if test "$ac_cv_search_clock_gettime" != no; then 8087 8088cat >>confdefs.h <<\_ACEOF 8089#define HAVE_CLOCK_GETTIME 1 8090_ACEOF 8091 8092 fi 8093fi 8094 8095# Check for DOS-style pathnames. 8096 8097 echo "$as_me:$LINENO: checking whether system uses MSDOS-style paths" >&5 8098echo $ECHO_N "checking whether system uses MSDOS-style paths... $ECHO_C" >&6 8099if test "${ac_cv_dos_paths+set}" = set; then 8100 echo $ECHO_N "(cached) $ECHO_C" >&6 8101else 8102 8103 cat >conftest.$ac_ext <<_ACEOF 8104 8105#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ 8106neither MSDOS nor Windows nor OS2 8107#endif 8108 8109_ACEOF 8110rm -f conftest.$ac_objext 8111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8112 (eval $ac_compile) 2>conftest.er1 8113 ac_status=$? 8114 grep -v '^ *+' conftest.er1 >conftest.err 8115 rm -f conftest.er1 8116 cat conftest.err >&5 8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8118 (exit $ac_status); } && 8119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8121 (eval $ac_try) 2>&5 8122 ac_status=$? 8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8124 (exit $ac_status); }; } && 8125 { ac_try='test -s conftest.$ac_objext' 8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8127 (eval $ac_try) 2>&5 8128 ac_status=$? 8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8130 (exit $ac_status); }; }; then 8131 ac_cv_dos_paths=yes 8132else 8133 echo "$as_me: failed program was:" >&5 8134sed 's/^/| /' conftest.$ac_ext >&5 8135 8136ac_cv_dos_paths=no 8137fi 8138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8139 8140fi 8141echo "$as_me:$LINENO: result: $ac_cv_dos_paths" >&5 8142echo "${ECHO_T}$ac_cv_dos_paths" >&6 8143 8144 if test x"$ac_cv_dos_paths" = xyes; then 8145 8146cat >>confdefs.h <<_ACEOF 8147#define HAVE_DOS_PATHS 1 8148_ACEOF 8149 8150 fi 8151 8152 8153# See if we have a standard version of gettimeofday(). Since actual 8154# implementations can differ, just make sure we have the most common 8155# one. 8156echo "$as_me:$LINENO: checking for standard gettimeofday" >&5 8157echo $ECHO_N "checking for standard gettimeofday... $ECHO_C" >&6 8158if test "${ac_cv_func_gettimeofday+set}" = set; then 8159 echo $ECHO_N "(cached) $ECHO_C" >&6 8160else 8161 ac_cv_func_gettimeofday=no 8162 if test "$cross_compiling" = yes; then 8163 ac_cv_func_gettimeofday="no (cross-compiling)" 8164else 8165 cat >conftest.$ac_ext <<_ACEOF 8166/* confdefs.h. */ 8167_ACEOF 8168cat confdefs.h >>conftest.$ac_ext 8169cat >>conftest.$ac_ext <<_ACEOF 8170/* end confdefs.h. */ 8171#include <sys/time.h> 8172 int main () 8173 { 8174 struct timeval t; t.tv_sec = -1; t.tv_usec = -1; 8175 exit (gettimeofday (&t, 0) != 0 8176 || t.tv_sec < 0 || t.tv_usec < 0); 8177 } 8178_ACEOF 8179rm -f conftest$ac_exeext 8180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8181 (eval $ac_link) 2>&5 8182 ac_status=$? 8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8186 (eval $ac_try) 2>&5 8187 ac_status=$? 8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8189 (exit $ac_status); }; }; then 8190 ac_cv_func_gettimeofday=yes 8191else 8192 echo "$as_me: program exited with status $ac_status" >&5 8193echo "$as_me: failed program was:" >&5 8194sed 's/^/| /' conftest.$ac_ext >&5 8195 8196( exit $ac_status ) 8197ac_cv_func_gettimeofday=no 8198fi 8199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8200fi 8201fi 8202echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 8203echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 8204if test "$ac_cv_func_gettimeofday" = yes; then 8205 8206cat >>confdefs.h <<\_ACEOF 8207#define HAVE_GETTIMEOFDAY 1 8208_ACEOF 8209 8210fi 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240for ac_func in memcpy memmove strchr strdup mkstemp mktemp fdopen \ 8241 bsd_signal dup2 getcwd realpath sigsetmask sigaction \ 8242 getgroups seteuid setegid setlinebuf setreuid setregid \ 8243 getrlimit setrlimit setvbuf pipe strerror strsignal \ 8244 lstat readlink atexit 8245do 8246as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8247echo "$as_me:$LINENO: checking for $ac_func" >&5 8248echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8249if eval "test \"\${$as_ac_var+set}\" = set"; then 8250 echo $ECHO_N "(cached) $ECHO_C" >&6 8251else 8252 cat >conftest.$ac_ext <<_ACEOF 8253/* confdefs.h. */ 8254_ACEOF 8255cat confdefs.h >>conftest.$ac_ext 8256cat >>conftest.$ac_ext <<_ACEOF 8257/* end confdefs.h. */ 8258/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8259 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8260#define $ac_func innocuous_$ac_func 8261 8262/* System header to define __stub macros and hopefully few prototypes, 8263 which can conflict with char $ac_func (); below. 8264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8265 <limits.h> exists even on freestanding compilers. */ 8266 8267#ifdef __STDC__ 8268# include <limits.h> 8269#else 8270# include <assert.h> 8271#endif 8272 8273#undef $ac_func 8274 8275/* Override any gcc2 internal prototype to avoid an error. */ 8276#ifdef __cplusplus 8277extern "C" 8278{ 8279#endif 8280/* We use char because int might match the return type of a gcc2 8281 builtin and then its argument prototype would still apply. */ 8282char $ac_func (); 8283/* The GNU C library defines this for functions which it implements 8284 to always fail with ENOSYS. Some functions are actually named 8285 something starting with __ and the normal name is an alias. */ 8286#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8287choke me 8288#else 8289char (*f) () = $ac_func; 8290#endif 8291#ifdef __cplusplus 8292} 8293#endif 8294 8295int 8296main () 8297{ 8298return f != $ac_func; 8299 ; 8300 return 0; 8301} 8302_ACEOF 8303rm -f conftest.$ac_objext conftest$ac_exeext 8304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8305 (eval $ac_link) 2>conftest.er1 8306 ac_status=$? 8307 grep -v '^ *+' conftest.er1 >conftest.err 8308 rm -f conftest.er1 8309 cat conftest.err >&5 8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8311 (exit $ac_status); } && 8312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8314 (eval $ac_try) 2>&5 8315 ac_status=$? 8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8317 (exit $ac_status); }; } && 8318 { ac_try='test -s conftest$ac_exeext' 8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8320 (eval $ac_try) 2>&5 8321 ac_status=$? 8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8323 (exit $ac_status); }; }; then 8324 eval "$as_ac_var=yes" 8325else 8326 echo "$as_me: failed program was:" >&5 8327sed 's/^/| /' conftest.$ac_ext >&5 8328 8329eval "$as_ac_var=no" 8330fi 8331rm -f conftest.err conftest.$ac_objext \ 8332 conftest$ac_exeext conftest.$ac_ext 8333fi 8334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8336if test `eval echo '${'$as_ac_var'}'` = yes; then 8337 cat >>confdefs.h <<_ACEOF 8338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8339_ACEOF 8340 8341fi 8342done 8343 8344 8345echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5 8346echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6 8347if test "${ac_cv_func_setvbuf_reversed+set}" = set; then 8348 echo $ECHO_N "(cached) $ECHO_C" >&6 8349else 8350 ac_cv_func_setvbuf_reversed=no 8351 cat >conftest.$ac_ext <<_ACEOF 8352/* confdefs.h. */ 8353_ACEOF 8354cat confdefs.h >>conftest.$ac_ext 8355cat >>conftest.$ac_ext <<_ACEOF 8356/* end confdefs.h. */ 8357#include <stdio.h> 8358# if PROTOTYPES 8359 int (setvbuf) (FILE *, int, char *, size_t); 8360# endif 8361int 8362main () 8363{ 8364char buf; return setvbuf (stdout, _IOLBF, &buf, 1); 8365 ; 8366 return 0; 8367} 8368_ACEOF 8369rm -f conftest.$ac_objext conftest$ac_exeext 8370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8371 (eval $ac_link) 2>conftest.er1 8372 ac_status=$? 8373 grep -v '^ *+' conftest.er1 >conftest.err 8374 rm -f conftest.er1 8375 cat conftest.err >&5 8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8377 (exit $ac_status); } && 8378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8380 (eval $ac_try) 2>&5 8381 ac_status=$? 8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8383 (exit $ac_status); }; } && 8384 { ac_try='test -s conftest$ac_exeext' 8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8386 (eval $ac_try) 2>&5 8387 ac_status=$? 8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8389 (exit $ac_status); }; }; then 8390 cat >conftest.$ac_ext <<_ACEOF 8391/* confdefs.h. */ 8392_ACEOF 8393cat confdefs.h >>conftest.$ac_ext 8394cat >>conftest.$ac_ext <<_ACEOF 8395/* end confdefs.h. */ 8396#include <stdio.h> 8397# if PROTOTYPES 8398 int (setvbuf) (FILE *, int, char *, size_t); 8399# endif 8400int 8401main () 8402{ 8403char buf; return setvbuf (stdout, &buf, _IOLBF, 1); 8404 ; 8405 return 0; 8406} 8407_ACEOF 8408rm -f conftest.$ac_objext conftest$ac_exeext 8409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8410 (eval $ac_link) 2>conftest.er1 8411 ac_status=$? 8412 grep -v '^ *+' conftest.er1 >conftest.err 8413 rm -f conftest.er1 8414 cat conftest.err >&5 8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8416 (exit $ac_status); } && 8417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8419 (eval $ac_try) 2>&5 8420 ac_status=$? 8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8422 (exit $ac_status); }; } && 8423 { ac_try='test -s conftest$ac_exeext' 8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8425 (eval $ac_try) 2>&5 8426 ac_status=$? 8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8428 (exit $ac_status); }; }; then 8429 # It compiles and links either way, so it must not be declared 8430 # with a prototype and most likely this is a K&R C compiler. 8431 # Try running it. 8432 if test "$cross_compiling" = yes; then 8433 : # Assume setvbuf is not reversed when cross-compiling. 8434else 8435 cat >conftest.$ac_ext <<_ACEOF 8436/* confdefs.h. */ 8437_ACEOF 8438cat confdefs.h >>conftest.$ac_ext 8439cat >>conftest.$ac_ext <<_ACEOF 8440/* end confdefs.h. */ 8441#include <stdio.h> 8442int 8443main () 8444{ 8445/* This call has the arguments reversed. 8446 A reversed system may check and see that the address of buf 8447 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 8448 char buf; 8449 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0) 8450 exit (1); 8451 putchar ('\r'); 8452 exit (0); /* Non-reversed systems SEGV here. */ 8453 ; 8454 return 0; 8455} 8456_ACEOF 8457rm -f conftest$ac_exeext 8458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8459 (eval $ac_link) 2>&5 8460 ac_status=$? 8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8464 (eval $ac_try) 2>&5 8465 ac_status=$? 8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8467 (exit $ac_status); }; }; then 8468 ac_cv_func_setvbuf_reversed=yes 8469else 8470 echo "$as_me: program exited with status $ac_status" >&5 8471echo "$as_me: failed program was:" >&5 8472sed 's/^/| /' conftest.$ac_ext >&5 8473 8474( exit $ac_status ) 8475rm -f core *.core 8476fi 8477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8478fi 8479 ac_cv_func_setvbuf_reversed=yes 8480else 8481 echo "$as_me: failed program was:" >&5 8482sed 's/^/| /' conftest.$ac_ext >&5 8483 8484fi 8485rm -f conftest.err conftest.$ac_objext \ 8486 conftest$ac_exeext conftest.$ac_ext 8487else 8488 echo "$as_me: failed program was:" >&5 8489sed 's/^/| /' conftest.$ac_ext >&5 8490 8491fi 8492rm -f conftest.err conftest.$ac_objext \ 8493 conftest$ac_exeext conftest.$ac_ext 8494fi 8495echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5 8496echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6 8497if test $ac_cv_func_setvbuf_reversed = yes; then 8498 8499cat >>confdefs.h <<\_ACEOF 8500#define SETVBUF_REVERSED 1 8501_ACEOF 8502 8503fi 8504 8505 8506# strcoll() is used by the GNU glob library 8507echo "$as_me:$LINENO: checking for working strcoll" >&5 8508echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 8509if test "${ac_cv_func_strcoll_works+set}" = set; then 8510 echo $ECHO_N "(cached) $ECHO_C" >&6 8511else 8512 if test "$cross_compiling" = yes; then 8513 ac_cv_func_strcoll_works=no 8514else 8515 cat >conftest.$ac_ext <<_ACEOF 8516/* confdefs.h. */ 8517_ACEOF 8518cat confdefs.h >>conftest.$ac_ext 8519cat >>conftest.$ac_ext <<_ACEOF 8520/* end confdefs.h. */ 8521$ac_includes_default 8522int 8523main () 8524{ 8525exit (strcoll ("abc", "def") >= 0 || 8526 strcoll ("ABC", "DEF") >= 0 || 8527 strcoll ("123", "456") >= 0) 8528 ; 8529 return 0; 8530} 8531_ACEOF 8532rm -f conftest$ac_exeext 8533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8534 (eval $ac_link) 2>&5 8535 ac_status=$? 8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8539 (eval $ac_try) 2>&5 8540 ac_status=$? 8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8542 (exit $ac_status); }; }; then 8543 ac_cv_func_strcoll_works=yes 8544else 8545 echo "$as_me: program exited with status $ac_status" >&5 8546echo "$as_me: failed program was:" >&5 8547sed 's/^/| /' conftest.$ac_ext >&5 8548 8549( exit $ac_status ) 8550ac_cv_func_strcoll_works=no 8551fi 8552rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8553fi 8554fi 8555echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 8556echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 8557if test $ac_cv_func_strcoll_works = yes; then 8558 8559cat >>confdefs.h <<\_ACEOF 8560#define HAVE_STRCOLL 1 8561_ACEOF 8562 8563fi 8564 8565 8566# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8567# for constant arguments. Useless! 8568echo "$as_me:$LINENO: checking for working alloca.h" >&5 8569echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 8570if test "${ac_cv_working_alloca_h+set}" = set; then 8571 echo $ECHO_N "(cached) $ECHO_C" >&6 8572else 8573 cat >conftest.$ac_ext <<_ACEOF 8574/* confdefs.h. */ 8575_ACEOF 8576cat confdefs.h >>conftest.$ac_ext 8577cat >>conftest.$ac_ext <<_ACEOF 8578/* end confdefs.h. */ 8579#include <alloca.h> 8580int 8581main () 8582{ 8583char *p = (char *) alloca (2 * sizeof (int)); 8584 ; 8585 return 0; 8586} 8587_ACEOF 8588rm -f conftest.$ac_objext conftest$ac_exeext 8589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8590 (eval $ac_link) 2>conftest.er1 8591 ac_status=$? 8592 grep -v '^ *+' conftest.er1 >conftest.err 8593 rm -f conftest.er1 8594 cat conftest.err >&5 8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8596 (exit $ac_status); } && 8597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8599 (eval $ac_try) 2>&5 8600 ac_status=$? 8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8602 (exit $ac_status); }; } && 8603 { ac_try='test -s conftest$ac_exeext' 8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8605 (eval $ac_try) 2>&5 8606 ac_status=$? 8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8608 (exit $ac_status); }; }; then 8609 ac_cv_working_alloca_h=yes 8610else 8611 echo "$as_me: failed program was:" >&5 8612sed 's/^/| /' conftest.$ac_ext >&5 8613 8614ac_cv_working_alloca_h=no 8615fi 8616rm -f conftest.err conftest.$ac_objext \ 8617 conftest$ac_exeext conftest.$ac_ext 8618fi 8619echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 8620echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 8621if test $ac_cv_working_alloca_h = yes; then 8622 8623cat >>confdefs.h <<\_ACEOF 8624#define HAVE_ALLOCA_H 1 8625_ACEOF 8626 8627fi 8628 8629echo "$as_me:$LINENO: checking for alloca" >&5 8630echo $ECHO_N "checking for alloca... $ECHO_C" >&6 8631if test "${ac_cv_func_alloca_works+set}" = set; then 8632 echo $ECHO_N "(cached) $ECHO_C" >&6 8633else 8634 cat >conftest.$ac_ext <<_ACEOF 8635/* confdefs.h. */ 8636_ACEOF 8637cat confdefs.h >>conftest.$ac_ext 8638cat >>conftest.$ac_ext <<_ACEOF 8639/* end confdefs.h. */ 8640#ifdef __GNUC__ 8641# define alloca __builtin_alloca 8642#else 8643# ifdef _MSC_VER 8644# include <malloc.h> 8645# define alloca _alloca 8646# else 8647# if HAVE_ALLOCA_H 8648# include <alloca.h> 8649# else 8650# ifdef _AIX 8651 #pragma alloca 8652# else 8653# ifndef alloca /* predefined by HP cc +Olibcalls */ 8654char *alloca (); 8655# endif 8656# endif 8657# endif 8658# endif 8659#endif 8660 8661int 8662main () 8663{ 8664char *p = (char *) alloca (1); 8665 ; 8666 return 0; 8667} 8668_ACEOF 8669rm -f conftest.$ac_objext conftest$ac_exeext 8670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8671 (eval $ac_link) 2>conftest.er1 8672 ac_status=$? 8673 grep -v '^ *+' conftest.er1 >conftest.err 8674 rm -f conftest.er1 8675 cat conftest.err >&5 8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8677 (exit $ac_status); } && 8678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8680 (eval $ac_try) 2>&5 8681 ac_status=$? 8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8683 (exit $ac_status); }; } && 8684 { ac_try='test -s conftest$ac_exeext' 8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8686 (eval $ac_try) 2>&5 8687 ac_status=$? 8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8689 (exit $ac_status); }; }; then 8690 ac_cv_func_alloca_works=yes 8691else 8692 echo "$as_me: failed program was:" >&5 8693sed 's/^/| /' conftest.$ac_ext >&5 8694 8695ac_cv_func_alloca_works=no 8696fi 8697rm -f conftest.err conftest.$ac_objext \ 8698 conftest$ac_exeext conftest.$ac_ext 8699fi 8700echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 8701echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 8702 8703if test $ac_cv_func_alloca_works = yes; then 8704 8705cat >>confdefs.h <<\_ACEOF 8706#define HAVE_ALLOCA 1 8707_ACEOF 8708 8709else 8710 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8711# that cause trouble. Some versions do not even contain alloca or 8712# contain a buggy version. If you still want to use their alloca, 8713# use ar to extract alloca.o from them instead of compiling alloca.c. 8714 8715ALLOCA=alloca.$ac_objext 8716 8717cat >>confdefs.h <<\_ACEOF 8718#define C_ALLOCA 1 8719_ACEOF 8720 8721 8722echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 8723echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 8724if test "${ac_cv_os_cray+set}" = set; then 8725 echo $ECHO_N "(cached) $ECHO_C" >&6 8726else 8727 cat >conftest.$ac_ext <<_ACEOF 8728/* confdefs.h. */ 8729_ACEOF 8730cat confdefs.h >>conftest.$ac_ext 8731cat >>conftest.$ac_ext <<_ACEOF 8732/* end confdefs.h. */ 8733#if defined(CRAY) && ! defined(CRAY2) 8734webecray 8735#else 8736wenotbecray 8737#endif 8738 8739_ACEOF 8740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8741 $EGREP "webecray" >/dev/null 2>&1; then 8742 ac_cv_os_cray=yes 8743else 8744 ac_cv_os_cray=no 8745fi 8746rm -f conftest* 8747 8748fi 8749echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 8750echo "${ECHO_T}$ac_cv_os_cray" >&6 8751if test $ac_cv_os_cray = yes; then 8752 for ac_func in _getb67 GETB67 getb67; do 8753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8754echo "$as_me:$LINENO: checking for $ac_func" >&5 8755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8756if eval "test \"\${$as_ac_var+set}\" = set"; then 8757 echo $ECHO_N "(cached) $ECHO_C" >&6 8758else 8759 cat >conftest.$ac_ext <<_ACEOF 8760/* confdefs.h. */ 8761_ACEOF 8762cat confdefs.h >>conftest.$ac_ext 8763cat >>conftest.$ac_ext <<_ACEOF 8764/* end confdefs.h. */ 8765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8766 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8767#define $ac_func innocuous_$ac_func 8768 8769/* System header to define __stub macros and hopefully few prototypes, 8770 which can conflict with char $ac_func (); below. 8771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8772 <limits.h> exists even on freestanding compilers. */ 8773 8774#ifdef __STDC__ 8775# include <limits.h> 8776#else 8777# include <assert.h> 8778#endif 8779 8780#undef $ac_func 8781 8782/* Override any gcc2 internal prototype to avoid an error. */ 8783#ifdef __cplusplus 8784extern "C" 8785{ 8786#endif 8787/* We use char because int might match the return type of a gcc2 8788 builtin and then its argument prototype would still apply. */ 8789char $ac_func (); 8790/* The GNU C library defines this for functions which it implements 8791 to always fail with ENOSYS. Some functions are actually named 8792 something starting with __ and the normal name is an alias. */ 8793#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8794choke me 8795#else 8796char (*f) () = $ac_func; 8797#endif 8798#ifdef __cplusplus 8799} 8800#endif 8801 8802int 8803main () 8804{ 8805return f != $ac_func; 8806 ; 8807 return 0; 8808} 8809_ACEOF 8810rm -f conftest.$ac_objext conftest$ac_exeext 8811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8812 (eval $ac_link) 2>conftest.er1 8813 ac_status=$? 8814 grep -v '^ *+' conftest.er1 >conftest.err 8815 rm -f conftest.er1 8816 cat conftest.err >&5 8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8818 (exit $ac_status); } && 8819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8821 (eval $ac_try) 2>&5 8822 ac_status=$? 8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8824 (exit $ac_status); }; } && 8825 { ac_try='test -s conftest$ac_exeext' 8826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8827 (eval $ac_try) 2>&5 8828 ac_status=$? 8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8830 (exit $ac_status); }; }; then 8831 eval "$as_ac_var=yes" 8832else 8833 echo "$as_me: failed program was:" >&5 8834sed 's/^/| /' conftest.$ac_ext >&5 8835 8836eval "$as_ac_var=no" 8837fi 8838rm -f conftest.err conftest.$ac_objext \ 8839 conftest$ac_exeext conftest.$ac_ext 8840fi 8841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8843if test `eval echo '${'$as_ac_var'}'` = yes; then 8844 8845cat >>confdefs.h <<_ACEOF 8846#define CRAY_STACKSEG_END $ac_func 8847_ACEOF 8848 8849 break 8850fi 8851 8852 done 8853fi 8854 8855echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 8856echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 8857if test "${ac_cv_c_stack_direction+set}" = set; then 8858 echo $ECHO_N "(cached) $ECHO_C" >&6 8859else 8860 if test "$cross_compiling" = yes; then 8861 ac_cv_c_stack_direction=0 8862else 8863 cat >conftest.$ac_ext <<_ACEOF 8864/* confdefs.h. */ 8865_ACEOF 8866cat confdefs.h >>conftest.$ac_ext 8867cat >>conftest.$ac_ext <<_ACEOF 8868/* end confdefs.h. */ 8869int 8870find_stack_direction () 8871{ 8872 static char *addr = 0; 8873 auto char dummy; 8874 if (addr == 0) 8875 { 8876 addr = &dummy; 8877 return find_stack_direction (); 8878 } 8879 else 8880 return (&dummy > addr) ? 1 : -1; 8881} 8882 8883int 8884main () 8885{ 8886 exit (find_stack_direction () < 0); 8887} 8888_ACEOF 8889rm -f conftest$ac_exeext 8890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8891 (eval $ac_link) 2>&5 8892 ac_status=$? 8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8896 (eval $ac_try) 2>&5 8897 ac_status=$? 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 (exit $ac_status); }; }; then 8900 ac_cv_c_stack_direction=1 8901else 8902 echo "$as_me: program exited with status $ac_status" >&5 8903echo "$as_me: failed program was:" >&5 8904sed 's/^/| /' conftest.$ac_ext >&5 8905 8906( exit $ac_status ) 8907ac_cv_c_stack_direction=-1 8908fi 8909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8910fi 8911fi 8912echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 8913echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 8914 8915cat >>confdefs.h <<_ACEOF 8916#define STACK_DIRECTION $ac_cv_c_stack_direction 8917_ACEOF 8918 8919 8920fi 8921 8922 8923 8924for ac_header in unistd.h vfork.h 8925do 8926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8927if eval "test \"\${$as_ac_Header+set}\" = set"; then 8928 echo "$as_me:$LINENO: checking for $ac_header" >&5 8929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8930if eval "test \"\${$as_ac_Header+set}\" = set"; then 8931 echo $ECHO_N "(cached) $ECHO_C" >&6 8932fi 8933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8935else 8936 # Is the header compilable? 8937echo "$as_me:$LINENO: checking $ac_header usability" >&5 8938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8939cat >conftest.$ac_ext <<_ACEOF 8940/* confdefs.h. */ 8941_ACEOF 8942cat confdefs.h >>conftest.$ac_ext 8943cat >>conftest.$ac_ext <<_ACEOF 8944/* end confdefs.h. */ 8945$ac_includes_default 8946#include <$ac_header> 8947_ACEOF 8948rm -f conftest.$ac_objext 8949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8950 (eval $ac_compile) 2>conftest.er1 8951 ac_status=$? 8952 grep -v '^ *+' conftest.er1 >conftest.err 8953 rm -f conftest.er1 8954 cat conftest.err >&5 8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8956 (exit $ac_status); } && 8957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8959 (eval $ac_try) 2>&5 8960 ac_status=$? 8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8962 (exit $ac_status); }; } && 8963 { ac_try='test -s conftest.$ac_objext' 8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8965 (eval $ac_try) 2>&5 8966 ac_status=$? 8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8968 (exit $ac_status); }; }; then 8969 ac_header_compiler=yes 8970else 8971 echo "$as_me: failed program was:" >&5 8972sed 's/^/| /' conftest.$ac_ext >&5 8973 8974ac_header_compiler=no 8975fi 8976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8977echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8978echo "${ECHO_T}$ac_header_compiler" >&6 8979 8980# Is the header present? 8981echo "$as_me:$LINENO: checking $ac_header presence" >&5 8982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8983cat >conftest.$ac_ext <<_ACEOF 8984/* confdefs.h. */ 8985_ACEOF 8986cat confdefs.h >>conftest.$ac_ext 8987cat >>conftest.$ac_ext <<_ACEOF 8988/* end confdefs.h. */ 8989#include <$ac_header> 8990_ACEOF 8991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8993 ac_status=$? 8994 grep -v '^ *+' conftest.er1 >conftest.err 8995 rm -f conftest.er1 8996 cat conftest.err >&5 8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8998 (exit $ac_status); } >/dev/null; then 8999 if test -s conftest.err; then 9000 ac_cpp_err=$ac_c_preproc_warn_flag 9001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9002 else 9003 ac_cpp_err= 9004 fi 9005else 9006 ac_cpp_err=yes 9007fi 9008if test -z "$ac_cpp_err"; then 9009 ac_header_preproc=yes 9010else 9011 echo "$as_me: failed program was:" >&5 9012sed 's/^/| /' conftest.$ac_ext >&5 9013 9014 ac_header_preproc=no 9015fi 9016rm -f conftest.err conftest.$ac_ext 9017echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9018echo "${ECHO_T}$ac_header_preproc" >&6 9019 9020# So? What about this header? 9021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9022 yes:no: ) 9023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9027 ac_header_preproc=yes 9028 ;; 9029 no:yes:* ) 9030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9042 ( 9043 cat <<\_ASBOX 9044## ------------------------------- ## 9045## Report this to bug-make@gnu.org ## 9046## ------------------------------- ## 9047_ASBOX 9048 ) | 9049 sed "s/^/$as_me: WARNING: /" >&2 9050 ;; 9051esac 9052echo "$as_me:$LINENO: checking for $ac_header" >&5 9053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9054if eval "test \"\${$as_ac_Header+set}\" = set"; then 9055 echo $ECHO_N "(cached) $ECHO_C" >&6 9056else 9057 eval "$as_ac_Header=\$ac_header_preproc" 9058fi 9059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9061 9062fi 9063if test `eval echo '${'$as_ac_Header'}'` = yes; then 9064 cat >>confdefs.h <<_ACEOF 9065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9066_ACEOF 9067 9068fi 9069 9070done 9071 9072 9073 9074for ac_func in fork vfork 9075do 9076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9077echo "$as_me:$LINENO: checking for $ac_func" >&5 9078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9079if eval "test \"\${$as_ac_var+set}\" = set"; then 9080 echo $ECHO_N "(cached) $ECHO_C" >&6 9081else 9082 cat >conftest.$ac_ext <<_ACEOF 9083/* confdefs.h. */ 9084_ACEOF 9085cat confdefs.h >>conftest.$ac_ext 9086cat >>conftest.$ac_ext <<_ACEOF 9087/* end confdefs.h. */ 9088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9089 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9090#define $ac_func innocuous_$ac_func 9091 9092/* System header to define __stub macros and hopefully few prototypes, 9093 which can conflict with char $ac_func (); below. 9094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9095 <limits.h> exists even on freestanding compilers. */ 9096 9097#ifdef __STDC__ 9098# include <limits.h> 9099#else 9100# include <assert.h> 9101#endif 9102 9103#undef $ac_func 9104 9105/* Override any gcc2 internal prototype to avoid an error. */ 9106#ifdef __cplusplus 9107extern "C" 9108{ 9109#endif 9110/* We use char because int might match the return type of a gcc2 9111 builtin and then its argument prototype would still apply. */ 9112char $ac_func (); 9113/* The GNU C library defines this for functions which it implements 9114 to always fail with ENOSYS. Some functions are actually named 9115 something starting with __ and the normal name is an alias. */ 9116#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9117choke me 9118#else 9119char (*f) () = $ac_func; 9120#endif 9121#ifdef __cplusplus 9122} 9123#endif 9124 9125int 9126main () 9127{ 9128return f != $ac_func; 9129 ; 9130 return 0; 9131} 9132_ACEOF 9133rm -f conftest.$ac_objext conftest$ac_exeext 9134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9135 (eval $ac_link) 2>conftest.er1 9136 ac_status=$? 9137 grep -v '^ *+' conftest.er1 >conftest.err 9138 rm -f conftest.er1 9139 cat conftest.err >&5 9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9141 (exit $ac_status); } && 9142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9144 (eval $ac_try) 2>&5 9145 ac_status=$? 9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9147 (exit $ac_status); }; } && 9148 { ac_try='test -s conftest$ac_exeext' 9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9150 (eval $ac_try) 2>&5 9151 ac_status=$? 9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9153 (exit $ac_status); }; }; then 9154 eval "$as_ac_var=yes" 9155else 9156 echo "$as_me: failed program was:" >&5 9157sed 's/^/| /' conftest.$ac_ext >&5 9158 9159eval "$as_ac_var=no" 9160fi 9161rm -f conftest.err conftest.$ac_objext \ 9162 conftest$ac_exeext conftest.$ac_ext 9163fi 9164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9165echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9166if test `eval echo '${'$as_ac_var'}'` = yes; then 9167 cat >>confdefs.h <<_ACEOF 9168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9169_ACEOF 9170 9171fi 9172done 9173 9174if test "x$ac_cv_func_fork" = xyes; then 9175 echo "$as_me:$LINENO: checking for working fork" >&5 9176echo $ECHO_N "checking for working fork... $ECHO_C" >&6 9177if test "${ac_cv_func_fork_works+set}" = set; then 9178 echo $ECHO_N "(cached) $ECHO_C" >&6 9179else 9180 if test "$cross_compiling" = yes; then 9181 ac_cv_func_fork_works=cross 9182else 9183 cat >conftest.$ac_ext <<_ACEOF 9184/* confdefs.h. */ 9185_ACEOF 9186cat confdefs.h >>conftest.$ac_ext 9187cat >>conftest.$ac_ext <<_ACEOF 9188/* end confdefs.h. */ 9189$ac_includes_default 9190int 9191main () 9192{ 9193 9194 /* By Ruediger Kuhlmann. */ 9195 if (fork() < 0) 9196 exit (1); 9197 exit (0); 9198 9199 ; 9200 return 0; 9201} 9202_ACEOF 9203rm -f conftest$ac_exeext 9204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9205 (eval $ac_link) 2>&5 9206 ac_status=$? 9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9210 (eval $ac_try) 2>&5 9211 ac_status=$? 9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9213 (exit $ac_status); }; }; then 9214 ac_cv_func_fork_works=yes 9215else 9216 echo "$as_me: program exited with status $ac_status" >&5 9217echo "$as_me: failed program was:" >&5 9218sed 's/^/| /' conftest.$ac_ext >&5 9219 9220( exit $ac_status ) 9221ac_cv_func_fork_works=no 9222fi 9223rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9224fi 9225fi 9226echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 9227echo "${ECHO_T}$ac_cv_func_fork_works" >&6 9228 9229else 9230 ac_cv_func_fork_works=$ac_cv_func_fork 9231fi 9232if test "x$ac_cv_func_fork_works" = xcross; then 9233 case $host in 9234 *-*-amigaos* | *-*-msdosdjgpp*) 9235 # Override, as these systems have only a dummy fork() stub 9236 ac_cv_func_fork_works=no 9237 ;; 9238 *) 9239 ac_cv_func_fork_works=yes 9240 ;; 9241 esac 9242 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 9243echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 9244fi 9245ac_cv_func_vfork_works=$ac_cv_func_vfork 9246if test "x$ac_cv_func_vfork" = xyes; then 9247 echo "$as_me:$LINENO: checking for working vfork" >&5 9248echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 9249if test "${ac_cv_func_vfork_works+set}" = set; then 9250 echo $ECHO_N "(cached) $ECHO_C" >&6 9251else 9252 if test "$cross_compiling" = yes; then 9253 ac_cv_func_vfork_works=cross 9254else 9255 cat >conftest.$ac_ext <<_ACEOF 9256/* confdefs.h. */ 9257_ACEOF 9258cat confdefs.h >>conftest.$ac_ext 9259cat >>conftest.$ac_ext <<_ACEOF 9260/* end confdefs.h. */ 9261/* Thanks to Paul Eggert for this test. */ 9262#include <stdio.h> 9263#include <stdlib.h> 9264#include <sys/types.h> 9265#include <sys/stat.h> 9266#include <sys/wait.h> 9267#if HAVE_UNISTD_H 9268# include <unistd.h> 9269#endif 9270#if HAVE_VFORK_H 9271# include <vfork.h> 9272#endif 9273/* On some sparc systems, changes by the child to local and incoming 9274 argument registers are propagated back to the parent. The compiler 9275 is told about this with #include <vfork.h>, but some compilers 9276 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 9277 static variable whose address is put into a register that is 9278 clobbered by the vfork. */ 9279static void 9280#ifdef __cplusplus 9281sparc_address_test (int arg) 9282# else 9283sparc_address_test (arg) int arg; 9284#endif 9285{ 9286 static pid_t child; 9287 if (!child) { 9288 child = vfork (); 9289 if (child < 0) { 9290 perror ("vfork"); 9291 _exit(2); 9292 } 9293 if (!child) { 9294 arg = getpid(); 9295 write(-1, "", 0); 9296 _exit (arg); 9297 } 9298 } 9299} 9300 9301int 9302main () 9303{ 9304 pid_t parent = getpid (); 9305 pid_t child; 9306 9307 sparc_address_test (0); 9308 9309 child = vfork (); 9310 9311 if (child == 0) { 9312 /* Here is another test for sparc vfork register problems. This 9313 test uses lots of local variables, at least as many local 9314 variables as main has allocated so far including compiler 9315 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 9316 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 9317 reuse the register of parent for one of the local variables, 9318 since it will think that parent can't possibly be used any more 9319 in this routine. Assigning to the local variable will thus 9320 munge parent in the parent process. */ 9321 pid_t 9322 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 9323 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 9324 /* Convince the compiler that p..p7 are live; otherwise, it might 9325 use the same hardware register for all 8 local variables. */ 9326 if (p != p1 || p != p2 || p != p3 || p != p4 9327 || p != p5 || p != p6 || p != p7) 9328 _exit(1); 9329 9330 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 9331 from child file descriptors. If the child closes a descriptor 9332 before it execs or exits, this munges the parent's descriptor 9333 as well. Test for this by closing stdout in the child. */ 9334 _exit(close(fileno(stdout)) != 0); 9335 } else { 9336 int status; 9337 struct stat st; 9338 9339 while (wait(&status) != child) 9340 ; 9341 exit( 9342 /* Was there some problem with vforking? */ 9343 child < 0 9344 9345 /* Did the child fail? (This shouldn't happen.) */ 9346 || status 9347 9348 /* Did the vfork/compiler bug occur? */ 9349 || parent != getpid() 9350 9351 /* Did the file descriptor bug occur? */ 9352 || fstat(fileno(stdout), &st) != 0 9353 ); 9354 } 9355} 9356_ACEOF 9357rm -f conftest$ac_exeext 9358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9359 (eval $ac_link) 2>&5 9360 ac_status=$? 9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9364 (eval $ac_try) 2>&5 9365 ac_status=$? 9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9367 (exit $ac_status); }; }; then 9368 ac_cv_func_vfork_works=yes 9369else 9370 echo "$as_me: program exited with status $ac_status" >&5 9371echo "$as_me: failed program was:" >&5 9372sed 's/^/| /' conftest.$ac_ext >&5 9373 9374( exit $ac_status ) 9375ac_cv_func_vfork_works=no 9376fi 9377rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9378fi 9379fi 9380echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 9381echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 9382 9383fi; 9384if test "x$ac_cv_func_fork_works" = xcross; then 9385 ac_cv_func_vfork_works=$ac_cv_func_vfork 9386 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 9387echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 9388fi 9389 9390if test "x$ac_cv_func_vfork_works" = xyes; then 9391 9392cat >>confdefs.h <<\_ACEOF 9393#define HAVE_WORKING_VFORK 1 9394_ACEOF 9395 9396else 9397 9398cat >>confdefs.h <<\_ACEOF 9399#define vfork fork 9400_ACEOF 9401 9402fi 9403if test "x$ac_cv_func_fork_works" = xyes; then 9404 9405cat >>confdefs.h <<\_ACEOF 9406#define HAVE_WORKING_FORK 1 9407_ACEOF 9408 9409fi 9410 9411 9412for ac_func in vprintf 9413do 9414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9415echo "$as_me:$LINENO: checking for $ac_func" >&5 9416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9417if eval "test \"\${$as_ac_var+set}\" = set"; then 9418 echo $ECHO_N "(cached) $ECHO_C" >&6 9419else 9420 cat >conftest.$ac_ext <<_ACEOF 9421/* confdefs.h. */ 9422_ACEOF 9423cat confdefs.h >>conftest.$ac_ext 9424cat >>conftest.$ac_ext <<_ACEOF 9425/* end confdefs.h. */ 9426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9427 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9428#define $ac_func innocuous_$ac_func 9429 9430/* System header to define __stub macros and hopefully few prototypes, 9431 which can conflict with char $ac_func (); below. 9432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9433 <limits.h> exists even on freestanding compilers. */ 9434 9435#ifdef __STDC__ 9436# include <limits.h> 9437#else 9438# include <assert.h> 9439#endif 9440 9441#undef $ac_func 9442 9443/* Override any gcc2 internal prototype to avoid an error. */ 9444#ifdef __cplusplus 9445extern "C" 9446{ 9447#endif 9448/* We use char because int might match the return type of a gcc2 9449 builtin and then its argument prototype would still apply. */ 9450char $ac_func (); 9451/* The GNU C library defines this for functions which it implements 9452 to always fail with ENOSYS. Some functions are actually named 9453 something starting with __ and the normal name is an alias. */ 9454#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9455choke me 9456#else 9457char (*f) () = $ac_func; 9458#endif 9459#ifdef __cplusplus 9460} 9461#endif 9462 9463int 9464main () 9465{ 9466return f != $ac_func; 9467 ; 9468 return 0; 9469} 9470_ACEOF 9471rm -f conftest.$ac_objext conftest$ac_exeext 9472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9473 (eval $ac_link) 2>conftest.er1 9474 ac_status=$? 9475 grep -v '^ *+' conftest.er1 >conftest.err 9476 rm -f conftest.er1 9477 cat conftest.err >&5 9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9479 (exit $ac_status); } && 9480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9482 (eval $ac_try) 2>&5 9483 ac_status=$? 9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9485 (exit $ac_status); }; } && 9486 { ac_try='test -s conftest$ac_exeext' 9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9488 (eval $ac_try) 2>&5 9489 ac_status=$? 9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9491 (exit $ac_status); }; }; then 9492 eval "$as_ac_var=yes" 9493else 9494 echo "$as_me: failed program was:" >&5 9495sed 's/^/| /' conftest.$ac_ext >&5 9496 9497eval "$as_ac_var=no" 9498fi 9499rm -f conftest.err conftest.$ac_objext \ 9500 conftest$ac_exeext conftest.$ac_ext 9501fi 9502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9504if test `eval echo '${'$as_ac_var'}'` = yes; then 9505 cat >>confdefs.h <<_ACEOF 9506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9507_ACEOF 9508 9509echo "$as_me:$LINENO: checking for _doprnt" >&5 9510echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 9511if test "${ac_cv_func__doprnt+set}" = set; then 9512 echo $ECHO_N "(cached) $ECHO_C" >&6 9513else 9514 cat >conftest.$ac_ext <<_ACEOF 9515/* confdefs.h. */ 9516_ACEOF 9517cat confdefs.h >>conftest.$ac_ext 9518cat >>conftest.$ac_ext <<_ACEOF 9519/* end confdefs.h. */ 9520/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 9521 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9522#define _doprnt innocuous__doprnt 9523 9524/* System header to define __stub macros and hopefully few prototypes, 9525 which can conflict with char _doprnt (); below. 9526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9527 <limits.h> exists even on freestanding compilers. */ 9528 9529#ifdef __STDC__ 9530# include <limits.h> 9531#else 9532# include <assert.h> 9533#endif 9534 9535#undef _doprnt 9536 9537/* Override any gcc2 internal prototype to avoid an error. */ 9538#ifdef __cplusplus 9539extern "C" 9540{ 9541#endif 9542/* We use char because int might match the return type of a gcc2 9543 builtin and then its argument prototype would still apply. */ 9544char _doprnt (); 9545/* The GNU C library defines this for functions which it implements 9546 to always fail with ENOSYS. Some functions are actually named 9547 something starting with __ and the normal name is an alias. */ 9548#if defined (__stub__doprnt) || defined (__stub____doprnt) 9549choke me 9550#else 9551char (*f) () = _doprnt; 9552#endif 9553#ifdef __cplusplus 9554} 9555#endif 9556 9557int 9558main () 9559{ 9560return f != _doprnt; 9561 ; 9562 return 0; 9563} 9564_ACEOF 9565rm -f conftest.$ac_objext conftest$ac_exeext 9566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9567 (eval $ac_link) 2>conftest.er1 9568 ac_status=$? 9569 grep -v '^ *+' conftest.er1 >conftest.err 9570 rm -f conftest.er1 9571 cat conftest.err >&5 9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9573 (exit $ac_status); } && 9574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9576 (eval $ac_try) 2>&5 9577 ac_status=$? 9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9579 (exit $ac_status); }; } && 9580 { ac_try='test -s conftest$ac_exeext' 9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9582 (eval $ac_try) 2>&5 9583 ac_status=$? 9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9585 (exit $ac_status); }; }; then 9586 ac_cv_func__doprnt=yes 9587else 9588 echo "$as_me: failed program was:" >&5 9589sed 's/^/| /' conftest.$ac_ext >&5 9590 9591ac_cv_func__doprnt=no 9592fi 9593rm -f conftest.err conftest.$ac_objext \ 9594 conftest$ac_exeext conftest.$ac_ext 9595fi 9596echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 9597echo "${ECHO_T}$ac_cv_func__doprnt" >&6 9598if test $ac_cv_func__doprnt = yes; then 9599 9600cat >>confdefs.h <<\_ACEOF 9601#define HAVE_DOPRNT 1 9602_ACEOF 9603 9604fi 9605 9606fi 9607done 9608 9609 9610echo "$as_me:$LINENO: checking whether closedir returns void" >&5 9611echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 9612if test "${ac_cv_func_closedir_void+set}" = set; then 9613 echo $ECHO_N "(cached) $ECHO_C" >&6 9614else 9615 if test "$cross_compiling" = yes; then 9616 ac_cv_func_closedir_void=yes 9617else 9618 cat >conftest.$ac_ext <<_ACEOF 9619/* confdefs.h. */ 9620_ACEOF 9621cat confdefs.h >>conftest.$ac_ext 9622cat >>conftest.$ac_ext <<_ACEOF 9623/* end confdefs.h. */ 9624$ac_includes_default 9625#include <$ac_header_dirent> 9626#ifndef __cplusplus 9627int closedir (); 9628#endif 9629 9630int 9631main () 9632{ 9633exit (closedir (opendir (".")) != 0); 9634 ; 9635 return 0; 9636} 9637_ACEOF 9638rm -f conftest$ac_exeext 9639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9640 (eval $ac_link) 2>&5 9641 ac_status=$? 9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9645 (eval $ac_try) 2>&5 9646 ac_status=$? 9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9648 (exit $ac_status); }; }; then 9649 ac_cv_func_closedir_void=no 9650else 9651 echo "$as_me: program exited with status $ac_status" >&5 9652echo "$as_me: failed program was:" >&5 9653sed 's/^/| /' conftest.$ac_ext >&5 9654 9655( exit $ac_status ) 9656ac_cv_func_closedir_void=yes 9657fi 9658rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9659fi 9660fi 9661echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 9662echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 9663if test $ac_cv_func_closedir_void = yes; then 9664 9665cat >>confdefs.h <<\_ACEOF 9666#define CLOSEDIR_VOID 1 9667_ACEOF 9668 9669fi 9670 9671 9672ac_have_func=no # yes means we've found a way to get the load average. 9673 9674# Make sure getloadavg.c is where it belongs, at configure-time. 9675test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 9676 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 9677echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} 9678 { (exit 1); exit 1; }; } 9679 9680ac_save_LIBS=$LIBS 9681 9682# Check for getloadavg, but be sure not to touch the cache variable. 9683(echo "$as_me:$LINENO: checking for getloadavg" >&5 9684echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 9685if test "${ac_cv_func_getloadavg+set}" = set; then 9686 echo $ECHO_N "(cached) $ECHO_C" >&6 9687else 9688 cat >conftest.$ac_ext <<_ACEOF 9689/* confdefs.h. */ 9690_ACEOF 9691cat confdefs.h >>conftest.$ac_ext 9692cat >>conftest.$ac_ext <<_ACEOF 9693/* end confdefs.h. */ 9694/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. 9695 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9696#define getloadavg innocuous_getloadavg 9697 9698/* System header to define __stub macros and hopefully few prototypes, 9699 which can conflict with char getloadavg (); below. 9700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9701 <limits.h> exists even on freestanding compilers. */ 9702 9703#ifdef __STDC__ 9704# include <limits.h> 9705#else 9706# include <assert.h> 9707#endif 9708 9709#undef getloadavg 9710 9711/* Override any gcc2 internal prototype to avoid an error. */ 9712#ifdef __cplusplus 9713extern "C" 9714{ 9715#endif 9716/* We use char because int might match the return type of a gcc2 9717 builtin and then its argument prototype would still apply. */ 9718char getloadavg (); 9719/* The GNU C library defines this for functions which it implements 9720 to always fail with ENOSYS. Some functions are actually named 9721 something starting with __ and the normal name is an alias. */ 9722#if defined (__stub_getloadavg) || defined (__stub___getloadavg) 9723choke me 9724#else 9725char (*f) () = getloadavg; 9726#endif 9727#ifdef __cplusplus 9728} 9729#endif 9730 9731int 9732main () 9733{ 9734return f != getloadavg; 9735 ; 9736 return 0; 9737} 9738_ACEOF 9739rm -f conftest.$ac_objext conftest$ac_exeext 9740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9741 (eval $ac_link) 2>conftest.er1 9742 ac_status=$? 9743 grep -v '^ *+' conftest.er1 >conftest.err 9744 rm -f conftest.er1 9745 cat conftest.err >&5 9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9747 (exit $ac_status); } && 9748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9750 (eval $ac_try) 2>&5 9751 ac_status=$? 9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9753 (exit $ac_status); }; } && 9754 { ac_try='test -s conftest$ac_exeext' 9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9756 (eval $ac_try) 2>&5 9757 ac_status=$? 9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9759 (exit $ac_status); }; }; then 9760 ac_cv_func_getloadavg=yes 9761else 9762 echo "$as_me: failed program was:" >&5 9763sed 's/^/| /' conftest.$ac_ext >&5 9764 9765ac_cv_func_getloadavg=no 9766fi 9767rm -f conftest.err conftest.$ac_objext \ 9768 conftest$ac_exeext conftest.$ac_ext 9769fi 9770echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 9771echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 9772if test $ac_cv_func_getloadavg = yes; then 9773 exit 0 9774else 9775 exit 1 9776fi 9777) && ac_have_func=yes 9778 9779# On HPUX9, an unprivileged user can get load averages through this function. 9780 9781for ac_func in pstat_getdynamic 9782do 9783as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9784echo "$as_me:$LINENO: checking for $ac_func" >&5 9785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9786if eval "test \"\${$as_ac_var+set}\" = set"; then 9787 echo $ECHO_N "(cached) $ECHO_C" >&6 9788else 9789 cat >conftest.$ac_ext <<_ACEOF 9790/* confdefs.h. */ 9791_ACEOF 9792cat confdefs.h >>conftest.$ac_ext 9793cat >>conftest.$ac_ext <<_ACEOF 9794/* end confdefs.h. */ 9795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9796 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9797#define $ac_func innocuous_$ac_func 9798 9799/* System header to define __stub macros and hopefully few prototypes, 9800 which can conflict with char $ac_func (); below. 9801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9802 <limits.h> exists even on freestanding compilers. */ 9803 9804#ifdef __STDC__ 9805# include <limits.h> 9806#else 9807# include <assert.h> 9808#endif 9809 9810#undef $ac_func 9811 9812/* Override any gcc2 internal prototype to avoid an error. */ 9813#ifdef __cplusplus 9814extern "C" 9815{ 9816#endif 9817/* We use char because int might match the return type of a gcc2 9818 builtin and then its argument prototype would still apply. */ 9819char $ac_func (); 9820/* The GNU C library defines this for functions which it implements 9821 to always fail with ENOSYS. Some functions are actually named 9822 something starting with __ and the normal name is an alias. */ 9823#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9824choke me 9825#else 9826char (*f) () = $ac_func; 9827#endif 9828#ifdef __cplusplus 9829} 9830#endif 9831 9832int 9833main () 9834{ 9835return f != $ac_func; 9836 ; 9837 return 0; 9838} 9839_ACEOF 9840rm -f conftest.$ac_objext conftest$ac_exeext 9841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9842 (eval $ac_link) 2>conftest.er1 9843 ac_status=$? 9844 grep -v '^ *+' conftest.er1 >conftest.err 9845 rm -f conftest.er1 9846 cat conftest.err >&5 9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9848 (exit $ac_status); } && 9849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9851 (eval $ac_try) 2>&5 9852 ac_status=$? 9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9854 (exit $ac_status); }; } && 9855 { ac_try='test -s conftest$ac_exeext' 9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9857 (eval $ac_try) 2>&5 9858 ac_status=$? 9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9860 (exit $ac_status); }; }; then 9861 eval "$as_ac_var=yes" 9862else 9863 echo "$as_me: failed program was:" >&5 9864sed 's/^/| /' conftest.$ac_ext >&5 9865 9866eval "$as_ac_var=no" 9867fi 9868rm -f conftest.err conftest.$ac_objext \ 9869 conftest$ac_exeext conftest.$ac_ext 9870fi 9871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9872echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9873if test `eval echo '${'$as_ac_var'}'` = yes; then 9874 cat >>confdefs.h <<_ACEOF 9875#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9876_ACEOF 9877 9878fi 9879done 9880 9881 9882# Solaris has libkstat which does not require root. 9883 9884echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 9885echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 9886if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then 9887 echo $ECHO_N "(cached) $ECHO_C" >&6 9888else 9889 ac_check_lib_save_LIBS=$LIBS 9890LIBS="-lkstat $LIBS" 9891cat >conftest.$ac_ext <<_ACEOF 9892/* confdefs.h. */ 9893_ACEOF 9894cat confdefs.h >>conftest.$ac_ext 9895cat >>conftest.$ac_ext <<_ACEOF 9896/* end confdefs.h. */ 9897 9898/* Override any gcc2 internal prototype to avoid an error. */ 9899#ifdef __cplusplus 9900extern "C" 9901#endif 9902/* We use char because int might match the return type of a gcc2 9903 builtin and then its argument prototype would still apply. */ 9904char kstat_open (); 9905int 9906main () 9907{ 9908kstat_open (); 9909 ; 9910 return 0; 9911} 9912_ACEOF 9913rm -f conftest.$ac_objext conftest$ac_exeext 9914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9915 (eval $ac_link) 2>conftest.er1 9916 ac_status=$? 9917 grep -v '^ *+' conftest.er1 >conftest.err 9918 rm -f conftest.er1 9919 cat conftest.err >&5 9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9921 (exit $ac_status); } && 9922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9924 (eval $ac_try) 2>&5 9925 ac_status=$? 9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9927 (exit $ac_status); }; } && 9928 { ac_try='test -s conftest$ac_exeext' 9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9930 (eval $ac_try) 2>&5 9931 ac_status=$? 9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9933 (exit $ac_status); }; }; then 9934 ac_cv_lib_kstat_kstat_open=yes 9935else 9936 echo "$as_me: failed program was:" >&5 9937sed 's/^/| /' conftest.$ac_ext >&5 9938 9939ac_cv_lib_kstat_kstat_open=no 9940fi 9941rm -f conftest.err conftest.$ac_objext \ 9942 conftest$ac_exeext conftest.$ac_ext 9943LIBS=$ac_check_lib_save_LIBS 9944fi 9945echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 9946echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 9947if test $ac_cv_lib_kstat_kstat_open = yes; then 9948 cat >>confdefs.h <<_ACEOF 9949#define HAVE_LIBKSTAT 1 9950_ACEOF 9951 9952 LIBS="-lkstat $LIBS" 9953 9954fi 9955 9956test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes 9957 9958# Some systems with -lutil have (and need) -lkvm as well, some do not. 9959# On Solaris, -lkvm requires nlist from -lelf, so check that first 9960# to get the right answer into the cache. 9961# For kstat on solaris, we need libelf to force the definition of SVR4 below. 9962if test $ac_have_func = no; then 9963 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 9964echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 9965if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 9966 echo $ECHO_N "(cached) $ECHO_C" >&6 9967else 9968 ac_check_lib_save_LIBS=$LIBS 9969LIBS="-lelf $LIBS" 9970cat >conftest.$ac_ext <<_ACEOF 9971/* confdefs.h. */ 9972_ACEOF 9973cat confdefs.h >>conftest.$ac_ext 9974cat >>conftest.$ac_ext <<_ACEOF 9975/* end confdefs.h. */ 9976 9977/* Override any gcc2 internal prototype to avoid an error. */ 9978#ifdef __cplusplus 9979extern "C" 9980#endif 9981/* We use char because int might match the return type of a gcc2 9982 builtin and then its argument prototype would still apply. */ 9983char elf_begin (); 9984int 9985main () 9986{ 9987elf_begin (); 9988 ; 9989 return 0; 9990} 9991_ACEOF 9992rm -f conftest.$ac_objext conftest$ac_exeext 9993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9994 (eval $ac_link) 2>conftest.er1 9995 ac_status=$? 9996 grep -v '^ *+' conftest.er1 >conftest.err 9997 rm -f conftest.er1 9998 cat conftest.err >&5 9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10000 (exit $ac_status); } && 10001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10003 (eval $ac_try) 2>&5 10004 ac_status=$? 10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10006 (exit $ac_status); }; } && 10007 { ac_try='test -s conftest$ac_exeext' 10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10009 (eval $ac_try) 2>&5 10010 ac_status=$? 10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10012 (exit $ac_status); }; }; then 10013 ac_cv_lib_elf_elf_begin=yes 10014else 10015 echo "$as_me: failed program was:" >&5 10016sed 's/^/| /' conftest.$ac_ext >&5 10017 10018ac_cv_lib_elf_elf_begin=no 10019fi 10020rm -f conftest.err conftest.$ac_objext \ 10021 conftest$ac_exeext conftest.$ac_ext 10022LIBS=$ac_check_lib_save_LIBS 10023fi 10024echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 10025echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 10026if test $ac_cv_lib_elf_elf_begin = yes; then 10027 LIBS="-lelf $LIBS" 10028fi 10029 10030fi 10031if test $ac_have_func = no; then 10032 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 10033echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 10034if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then 10035 echo $ECHO_N "(cached) $ECHO_C" >&6 10036else 10037 ac_check_lib_save_LIBS=$LIBS 10038LIBS="-lkvm $LIBS" 10039cat >conftest.$ac_ext <<_ACEOF 10040/* confdefs.h. */ 10041_ACEOF 10042cat confdefs.h >>conftest.$ac_ext 10043cat >>conftest.$ac_ext <<_ACEOF 10044/* end confdefs.h. */ 10045 10046/* Override any gcc2 internal prototype to avoid an error. */ 10047#ifdef __cplusplus 10048extern "C" 10049#endif 10050/* We use char because int might match the return type of a gcc2 10051 builtin and then its argument prototype would still apply. */ 10052char kvm_open (); 10053int 10054main () 10055{ 10056kvm_open (); 10057 ; 10058 return 0; 10059} 10060_ACEOF 10061rm -f conftest.$ac_objext conftest$ac_exeext 10062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10063 (eval $ac_link) 2>conftest.er1 10064 ac_status=$? 10065 grep -v '^ *+' conftest.er1 >conftest.err 10066 rm -f conftest.er1 10067 cat conftest.err >&5 10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10069 (exit $ac_status); } && 10070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10072 (eval $ac_try) 2>&5 10073 ac_status=$? 10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10075 (exit $ac_status); }; } && 10076 { ac_try='test -s conftest$ac_exeext' 10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10078 (eval $ac_try) 2>&5 10079 ac_status=$? 10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10081 (exit $ac_status); }; }; then 10082 ac_cv_lib_kvm_kvm_open=yes 10083else 10084 echo "$as_me: failed program was:" >&5 10085sed 's/^/| /' conftest.$ac_ext >&5 10086 10087ac_cv_lib_kvm_kvm_open=no 10088fi 10089rm -f conftest.err conftest.$ac_objext \ 10090 conftest$ac_exeext conftest.$ac_ext 10091LIBS=$ac_check_lib_save_LIBS 10092fi 10093echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 10094echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 10095if test $ac_cv_lib_kvm_kvm_open = yes; then 10096 LIBS="-lkvm $LIBS" 10097fi 10098 10099 # Check for the 4.4BSD definition of getloadavg. 10100 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 10101echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 10102if test "${ac_cv_lib_util_getloadavg+set}" = set; then 10103 echo $ECHO_N "(cached) $ECHO_C" >&6 10104else 10105 ac_check_lib_save_LIBS=$LIBS 10106LIBS="-lutil $LIBS" 10107cat >conftest.$ac_ext <<_ACEOF 10108/* confdefs.h. */ 10109_ACEOF 10110cat confdefs.h >>conftest.$ac_ext 10111cat >>conftest.$ac_ext <<_ACEOF 10112/* end confdefs.h. */ 10113 10114/* Override any gcc2 internal prototype to avoid an error. */ 10115#ifdef __cplusplus 10116extern "C" 10117#endif 10118/* We use char because int might match the return type of a gcc2 10119 builtin and then its argument prototype would still apply. */ 10120char getloadavg (); 10121int 10122main () 10123{ 10124getloadavg (); 10125 ; 10126 return 0; 10127} 10128_ACEOF 10129rm -f conftest.$ac_objext conftest$ac_exeext 10130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10131 (eval $ac_link) 2>conftest.er1 10132 ac_status=$? 10133 grep -v '^ *+' conftest.er1 >conftest.err 10134 rm -f conftest.er1 10135 cat conftest.err >&5 10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10137 (exit $ac_status); } && 10138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10140 (eval $ac_try) 2>&5 10141 ac_status=$? 10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10143 (exit $ac_status); }; } && 10144 { ac_try='test -s conftest$ac_exeext' 10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10146 (eval $ac_try) 2>&5 10147 ac_status=$? 10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10149 (exit $ac_status); }; }; then 10150 ac_cv_lib_util_getloadavg=yes 10151else 10152 echo "$as_me: failed program was:" >&5 10153sed 's/^/| /' conftest.$ac_ext >&5 10154 10155ac_cv_lib_util_getloadavg=no 10156fi 10157rm -f conftest.err conftest.$ac_objext \ 10158 conftest$ac_exeext conftest.$ac_ext 10159LIBS=$ac_check_lib_save_LIBS 10160fi 10161echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 10162echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 10163if test $ac_cv_lib_util_getloadavg = yes; then 10164 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 10165fi 10166 10167fi 10168 10169if test $ac_have_func = no; then 10170 # There is a commonly available library for RS/6000 AIX. 10171 # Since it is not a standard part of AIX, it might be installed locally. 10172 ac_getloadavg_LIBS=$LIBS 10173 LIBS="-L/usr/local/lib $LIBS" 10174 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 10175echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 10176if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then 10177 echo $ECHO_N "(cached) $ECHO_C" >&6 10178else 10179 ac_check_lib_save_LIBS=$LIBS 10180LIBS="-lgetloadavg $LIBS" 10181cat >conftest.$ac_ext <<_ACEOF 10182/* confdefs.h. */ 10183_ACEOF 10184cat confdefs.h >>conftest.$ac_ext 10185cat >>conftest.$ac_ext <<_ACEOF 10186/* end confdefs.h. */ 10187 10188/* Override any gcc2 internal prototype to avoid an error. */ 10189#ifdef __cplusplus 10190extern "C" 10191#endif 10192/* We use char because int might match the return type of a gcc2 10193 builtin and then its argument prototype would still apply. */ 10194char getloadavg (); 10195int 10196main () 10197{ 10198getloadavg (); 10199 ; 10200 return 0; 10201} 10202_ACEOF 10203rm -f conftest.$ac_objext conftest$ac_exeext 10204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10205 (eval $ac_link) 2>conftest.er1 10206 ac_status=$? 10207 grep -v '^ *+' conftest.er1 >conftest.err 10208 rm -f conftest.er1 10209 cat conftest.err >&5 10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10211 (exit $ac_status); } && 10212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10214 (eval $ac_try) 2>&5 10215 ac_status=$? 10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10217 (exit $ac_status); }; } && 10218 { ac_try='test -s conftest$ac_exeext' 10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10220 (eval $ac_try) 2>&5 10221 ac_status=$? 10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10223 (exit $ac_status); }; }; then 10224 ac_cv_lib_getloadavg_getloadavg=yes 10225else 10226 echo "$as_me: failed program was:" >&5 10227sed 's/^/| /' conftest.$ac_ext >&5 10228 10229ac_cv_lib_getloadavg_getloadavg=no 10230fi 10231rm -f conftest.err conftest.$ac_objext \ 10232 conftest$ac_exeext conftest.$ac_ext 10233LIBS=$ac_check_lib_save_LIBS 10234fi 10235echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 10236echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 10237if test $ac_cv_lib_getloadavg_getloadavg = yes; then 10238 LIBS="-lgetloadavg $LIBS" 10239else 10240 LIBS=$ac_getloadavg_LIBS 10241fi 10242 10243fi 10244 10245# Make sure it is really in the library, if we think we found it, 10246# otherwise set up the replacement function. 10247 10248for ac_func in getloadavg 10249do 10250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10251echo "$as_me:$LINENO: checking for $ac_func" >&5 10252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10253if eval "test \"\${$as_ac_var+set}\" = set"; then 10254 echo $ECHO_N "(cached) $ECHO_C" >&6 10255else 10256 cat >conftest.$ac_ext <<_ACEOF 10257/* confdefs.h. */ 10258_ACEOF 10259cat confdefs.h >>conftest.$ac_ext 10260cat >>conftest.$ac_ext <<_ACEOF 10261/* end confdefs.h. */ 10262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10263 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10264#define $ac_func innocuous_$ac_func 10265 10266/* System header to define __stub macros and hopefully few prototypes, 10267 which can conflict with char $ac_func (); below. 10268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10269 <limits.h> exists even on freestanding compilers. */ 10270 10271#ifdef __STDC__ 10272# include <limits.h> 10273#else 10274# include <assert.h> 10275#endif 10276 10277#undef $ac_func 10278 10279/* Override any gcc2 internal prototype to avoid an error. */ 10280#ifdef __cplusplus 10281extern "C" 10282{ 10283#endif 10284/* We use char because int might match the return type of a gcc2 10285 builtin and then its argument prototype would still apply. */ 10286char $ac_func (); 10287/* The GNU C library defines this for functions which it implements 10288 to always fail with ENOSYS. Some functions are actually named 10289 something starting with __ and the normal name is an alias. */ 10290#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10291choke me 10292#else 10293char (*f) () = $ac_func; 10294#endif 10295#ifdef __cplusplus 10296} 10297#endif 10298 10299int 10300main () 10301{ 10302return f != $ac_func; 10303 ; 10304 return 0; 10305} 10306_ACEOF 10307rm -f conftest.$ac_objext conftest$ac_exeext 10308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10309 (eval $ac_link) 2>conftest.er1 10310 ac_status=$? 10311 grep -v '^ *+' conftest.er1 >conftest.err 10312 rm -f conftest.er1 10313 cat conftest.err >&5 10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10315 (exit $ac_status); } && 10316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10318 (eval $ac_try) 2>&5 10319 ac_status=$? 10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10321 (exit $ac_status); }; } && 10322 { ac_try='test -s conftest$ac_exeext' 10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10324 (eval $ac_try) 2>&5 10325 ac_status=$? 10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10327 (exit $ac_status); }; }; then 10328 eval "$as_ac_var=yes" 10329else 10330 echo "$as_me: failed program was:" >&5 10331sed 's/^/| /' conftest.$ac_ext >&5 10332 10333eval "$as_ac_var=no" 10334fi 10335rm -f conftest.err conftest.$ac_objext \ 10336 conftest$ac_exeext conftest.$ac_ext 10337fi 10338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10339echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10340if test `eval echo '${'$as_ac_var'}'` = yes; then 10341 cat >>confdefs.h <<_ACEOF 10342#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10343_ACEOF 10344 10345else 10346 case $LIBOBJS in 10347 "getloadavg.$ac_objext" | \ 10348 *" getloadavg.$ac_objext" | \ 10349 "getloadavg.$ac_objext "* | \ 10350 *" getloadavg.$ac_objext "* ) ;; 10351 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;; 10352esac 10353 10354 10355cat >>confdefs.h <<\_ACEOF 10356#define C_GETLOADAVG 1 10357_ACEOF 10358 10359# Figure out what our getloadavg.c needs. 10360ac_have_func=no 10361if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then 10362 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 10363echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 10364if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then 10365 echo $ECHO_N "(cached) $ECHO_C" >&6 10366fi 10367echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 10368echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 10369else 10370 # Is the header compilable? 10371echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 10372echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 10373cat >conftest.$ac_ext <<_ACEOF 10374/* confdefs.h. */ 10375_ACEOF 10376cat confdefs.h >>conftest.$ac_ext 10377cat >>conftest.$ac_ext <<_ACEOF 10378/* end confdefs.h. */ 10379$ac_includes_default 10380#include <sys/dg_sys_info.h> 10381_ACEOF 10382rm -f conftest.$ac_objext 10383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10384 (eval $ac_compile) 2>conftest.er1 10385 ac_status=$? 10386 grep -v '^ *+' conftest.er1 >conftest.err 10387 rm -f conftest.er1 10388 cat conftest.err >&5 10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10390 (exit $ac_status); } && 10391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10393 (eval $ac_try) 2>&5 10394 ac_status=$? 10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10396 (exit $ac_status); }; } && 10397 { ac_try='test -s conftest.$ac_objext' 10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10399 (eval $ac_try) 2>&5 10400 ac_status=$? 10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10402 (exit $ac_status); }; }; then 10403 ac_header_compiler=yes 10404else 10405 echo "$as_me: failed program was:" >&5 10406sed 's/^/| /' conftest.$ac_ext >&5 10407 10408ac_header_compiler=no 10409fi 10410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10412echo "${ECHO_T}$ac_header_compiler" >&6 10413 10414# Is the header present? 10415echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 10416echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 10417cat >conftest.$ac_ext <<_ACEOF 10418/* confdefs.h. */ 10419_ACEOF 10420cat confdefs.h >>conftest.$ac_ext 10421cat >>conftest.$ac_ext <<_ACEOF 10422/* end confdefs.h. */ 10423#include <sys/dg_sys_info.h> 10424_ACEOF 10425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10427 ac_status=$? 10428 grep -v '^ *+' conftest.er1 >conftest.err 10429 rm -f conftest.er1 10430 cat conftest.err >&5 10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10432 (exit $ac_status); } >/dev/null; then 10433 if test -s conftest.err; then 10434 ac_cpp_err=$ac_c_preproc_warn_flag 10435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10436 else 10437 ac_cpp_err= 10438 fi 10439else 10440 ac_cpp_err=yes 10441fi 10442if test -z "$ac_cpp_err"; then 10443 ac_header_preproc=yes 10444else 10445 echo "$as_me: failed program was:" >&5 10446sed 's/^/| /' conftest.$ac_ext >&5 10447 10448 ac_header_preproc=no 10449fi 10450rm -f conftest.err conftest.$ac_ext 10451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10452echo "${ECHO_T}$ac_header_preproc" >&6 10453 10454# So? What about this header? 10455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10456 yes:no: ) 10457 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 10458echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10459 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 10460echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} 10461 ac_header_preproc=yes 10462 ;; 10463 no:yes:* ) 10464 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 10465echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} 10466 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 10467echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} 10468 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 10469echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} 10470 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 10471echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} 10472 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 10473echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} 10474 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 10475echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} 10476 ( 10477 cat <<\_ASBOX 10478## ------------------------------- ## 10479## Report this to bug-make@gnu.org ## 10480## ------------------------------- ## 10481_ASBOX 10482 ) | 10483 sed "s/^/$as_me: WARNING: /" >&2 10484 ;; 10485esac 10486echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 10487echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 10488if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then 10489 echo $ECHO_N "(cached) $ECHO_C" >&6 10490else 10491 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc 10492fi 10493echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 10494echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 10495 10496fi 10497if test $ac_cv_header_sys_dg_sys_info_h = yes; then 10498 ac_have_func=yes 10499 10500cat >>confdefs.h <<\_ACEOF 10501#define DGUX 1 10502_ACEOF 10503 10504 10505echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 10506echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 10507if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then 10508 echo $ECHO_N "(cached) $ECHO_C" >&6 10509else 10510 ac_check_lib_save_LIBS=$LIBS 10511LIBS="-ldgc $LIBS" 10512cat >conftest.$ac_ext <<_ACEOF 10513/* confdefs.h. */ 10514_ACEOF 10515cat confdefs.h >>conftest.$ac_ext 10516cat >>conftest.$ac_ext <<_ACEOF 10517/* end confdefs.h. */ 10518 10519/* Override any gcc2 internal prototype to avoid an error. */ 10520#ifdef __cplusplus 10521extern "C" 10522#endif 10523/* We use char because int might match the return type of a gcc2 10524 builtin and then its argument prototype would still apply. */ 10525char dg_sys_info (); 10526int 10527main () 10528{ 10529dg_sys_info (); 10530 ; 10531 return 0; 10532} 10533_ACEOF 10534rm -f conftest.$ac_objext conftest$ac_exeext 10535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10536 (eval $ac_link) 2>conftest.er1 10537 ac_status=$? 10538 grep -v '^ *+' conftest.er1 >conftest.err 10539 rm -f conftest.er1 10540 cat conftest.err >&5 10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10542 (exit $ac_status); } && 10543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10545 (eval $ac_try) 2>&5 10546 ac_status=$? 10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10548 (exit $ac_status); }; } && 10549 { ac_try='test -s conftest$ac_exeext' 10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10551 (eval $ac_try) 2>&5 10552 ac_status=$? 10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10554 (exit $ac_status); }; }; then 10555 ac_cv_lib_dgc_dg_sys_info=yes 10556else 10557 echo "$as_me: failed program was:" >&5 10558sed 's/^/| /' conftest.$ac_ext >&5 10559 10560ac_cv_lib_dgc_dg_sys_info=no 10561fi 10562rm -f conftest.err conftest.$ac_objext \ 10563 conftest$ac_exeext conftest.$ac_ext 10564LIBS=$ac_check_lib_save_LIBS 10565fi 10566echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 10567echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 10568if test $ac_cv_lib_dgc_dg_sys_info = yes; then 10569 cat >>confdefs.h <<_ACEOF 10570#define HAVE_LIBDGC 1 10571_ACEOF 10572 10573 LIBS="-ldgc $LIBS" 10574 10575fi 10576 10577fi 10578 10579 10580 10581if test "${ac_cv_header_locale_h+set}" = set; then 10582 echo "$as_me:$LINENO: checking for locale.h" >&5 10583echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 10584if test "${ac_cv_header_locale_h+set}" = set; then 10585 echo $ECHO_N "(cached) $ECHO_C" >&6 10586fi 10587echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 10588echo "${ECHO_T}$ac_cv_header_locale_h" >&6 10589else 10590 # Is the header compilable? 10591echo "$as_me:$LINENO: checking locale.h usability" >&5 10592echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 10593cat >conftest.$ac_ext <<_ACEOF 10594/* confdefs.h. */ 10595_ACEOF 10596cat confdefs.h >>conftest.$ac_ext 10597cat >>conftest.$ac_ext <<_ACEOF 10598/* end confdefs.h. */ 10599$ac_includes_default 10600#include <locale.h> 10601_ACEOF 10602rm -f conftest.$ac_objext 10603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10604 (eval $ac_compile) 2>conftest.er1 10605 ac_status=$? 10606 grep -v '^ *+' conftest.er1 >conftest.err 10607 rm -f conftest.er1 10608 cat conftest.err >&5 10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10610 (exit $ac_status); } && 10611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10613 (eval $ac_try) 2>&5 10614 ac_status=$? 10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10616 (exit $ac_status); }; } && 10617 { ac_try='test -s conftest.$ac_objext' 10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10619 (eval $ac_try) 2>&5 10620 ac_status=$? 10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10622 (exit $ac_status); }; }; then 10623 ac_header_compiler=yes 10624else 10625 echo "$as_me: failed program was:" >&5 10626sed 's/^/| /' conftest.$ac_ext >&5 10627 10628ac_header_compiler=no 10629fi 10630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10631echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10632echo "${ECHO_T}$ac_header_compiler" >&6 10633 10634# Is the header present? 10635echo "$as_me:$LINENO: checking locale.h presence" >&5 10636echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 10637cat >conftest.$ac_ext <<_ACEOF 10638/* confdefs.h. */ 10639_ACEOF 10640cat confdefs.h >>conftest.$ac_ext 10641cat >>conftest.$ac_ext <<_ACEOF 10642/* end confdefs.h. */ 10643#include <locale.h> 10644_ACEOF 10645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10647 ac_status=$? 10648 grep -v '^ *+' conftest.er1 >conftest.err 10649 rm -f conftest.er1 10650 cat conftest.err >&5 10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10652 (exit $ac_status); } >/dev/null; then 10653 if test -s conftest.err; then 10654 ac_cpp_err=$ac_c_preproc_warn_flag 10655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10656 else 10657 ac_cpp_err= 10658 fi 10659else 10660 ac_cpp_err=yes 10661fi 10662if test -z "$ac_cpp_err"; then 10663 ac_header_preproc=yes 10664else 10665 echo "$as_me: failed program was:" >&5 10666sed 's/^/| /' conftest.$ac_ext >&5 10667 10668 ac_header_preproc=no 10669fi 10670rm -f conftest.err conftest.$ac_ext 10671echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10672echo "${ECHO_T}$ac_header_preproc" >&6 10673 10674# So? What about this header? 10675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10676 yes:no: ) 10677 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 10678echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10679 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 10680echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} 10681 ac_header_preproc=yes 10682 ;; 10683 no:yes:* ) 10684 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 10685echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} 10686 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 10687echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} 10688 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 10689echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} 10690 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 10691echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} 10692 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 10693echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} 10694 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 10695echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} 10696 ( 10697 cat <<\_ASBOX 10698## ------------------------------- ## 10699## Report this to bug-make@gnu.org ## 10700## ------------------------------- ## 10701_ASBOX 10702 ) | 10703 sed "s/^/$as_me: WARNING: /" >&2 10704 ;; 10705esac 10706echo "$as_me:$LINENO: checking for locale.h" >&5 10707echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 10708if test "${ac_cv_header_locale_h+set}" = set; then 10709 echo $ECHO_N "(cached) $ECHO_C" >&6 10710else 10711 ac_cv_header_locale_h=$ac_header_preproc 10712fi 10713echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 10714echo "${ECHO_T}$ac_cv_header_locale_h" >&6 10715 10716fi 10717 10718 10719 10720for ac_func in setlocale 10721do 10722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10723echo "$as_me:$LINENO: checking for $ac_func" >&5 10724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10725if eval "test \"\${$as_ac_var+set}\" = set"; then 10726 echo $ECHO_N "(cached) $ECHO_C" >&6 10727else 10728 cat >conftest.$ac_ext <<_ACEOF 10729/* confdefs.h. */ 10730_ACEOF 10731cat confdefs.h >>conftest.$ac_ext 10732cat >>conftest.$ac_ext <<_ACEOF 10733/* end confdefs.h. */ 10734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10735 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10736#define $ac_func innocuous_$ac_func 10737 10738/* System header to define __stub macros and hopefully few prototypes, 10739 which can conflict with char $ac_func (); below. 10740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10741 <limits.h> exists even on freestanding compilers. */ 10742 10743#ifdef __STDC__ 10744# include <limits.h> 10745#else 10746# include <assert.h> 10747#endif 10748 10749#undef $ac_func 10750 10751/* Override any gcc2 internal prototype to avoid an error. */ 10752#ifdef __cplusplus 10753extern "C" 10754{ 10755#endif 10756/* We use char because int might match the return type of a gcc2 10757 builtin and then its argument prototype would still apply. */ 10758char $ac_func (); 10759/* The GNU C library defines this for functions which it implements 10760 to always fail with ENOSYS. Some functions are actually named 10761 something starting with __ and the normal name is an alias. */ 10762#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10763choke me 10764#else 10765char (*f) () = $ac_func; 10766#endif 10767#ifdef __cplusplus 10768} 10769#endif 10770 10771int 10772main () 10773{ 10774return f != $ac_func; 10775 ; 10776 return 0; 10777} 10778_ACEOF 10779rm -f conftest.$ac_objext conftest$ac_exeext 10780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10781 (eval $ac_link) 2>conftest.er1 10782 ac_status=$? 10783 grep -v '^ *+' conftest.er1 >conftest.err 10784 rm -f conftest.er1 10785 cat conftest.err >&5 10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10787 (exit $ac_status); } && 10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10790 (eval $ac_try) 2>&5 10791 ac_status=$? 10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10793 (exit $ac_status); }; } && 10794 { ac_try='test -s conftest$ac_exeext' 10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10796 (eval $ac_try) 2>&5 10797 ac_status=$? 10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10799 (exit $ac_status); }; }; then 10800 eval "$as_ac_var=yes" 10801else 10802 echo "$as_me: failed program was:" >&5 10803sed 's/^/| /' conftest.$ac_ext >&5 10804 10805eval "$as_ac_var=no" 10806fi 10807rm -f conftest.err conftest.$ac_objext \ 10808 conftest$ac_exeext conftest.$ac_ext 10809fi 10810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10811echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10812if test `eval echo '${'$as_ac_var'}'` = yes; then 10813 cat >>confdefs.h <<_ACEOF 10814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10815_ACEOF 10816 10817fi 10818done 10819 10820 10821# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it 10822# uses stabs), but it is still SVR4. We cannot check for <elf.h> because 10823# Irix 4.0.5F has the header but not the library. 10824if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 10825 ac_have_func=yes 10826 10827cat >>confdefs.h <<\_ACEOF 10828#define SVR4 1 10829_ACEOF 10830 10831fi 10832 10833if test $ac_have_func = no; then 10834 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then 10835 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 10836echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 10837if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then 10838 echo $ECHO_N "(cached) $ECHO_C" >&6 10839fi 10840echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 10841echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 10842else 10843 # Is the header compilable? 10844echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 10845echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 10846cat >conftest.$ac_ext <<_ACEOF 10847/* confdefs.h. */ 10848_ACEOF 10849cat confdefs.h >>conftest.$ac_ext 10850cat >>conftest.$ac_ext <<_ACEOF 10851/* end confdefs.h. */ 10852$ac_includes_default 10853#include <inq_stats/cpustats.h> 10854_ACEOF 10855rm -f conftest.$ac_objext 10856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10857 (eval $ac_compile) 2>conftest.er1 10858 ac_status=$? 10859 grep -v '^ *+' conftest.er1 >conftest.err 10860 rm -f conftest.er1 10861 cat conftest.err >&5 10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10863 (exit $ac_status); } && 10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10866 (eval $ac_try) 2>&5 10867 ac_status=$? 10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10869 (exit $ac_status); }; } && 10870 { ac_try='test -s conftest.$ac_objext' 10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10872 (eval $ac_try) 2>&5 10873 ac_status=$? 10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10875 (exit $ac_status); }; }; then 10876 ac_header_compiler=yes 10877else 10878 echo "$as_me: failed program was:" >&5 10879sed 's/^/| /' conftest.$ac_ext >&5 10880 10881ac_header_compiler=no 10882fi 10883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10885echo "${ECHO_T}$ac_header_compiler" >&6 10886 10887# Is the header present? 10888echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 10889echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 10890cat >conftest.$ac_ext <<_ACEOF 10891/* confdefs.h. */ 10892_ACEOF 10893cat confdefs.h >>conftest.$ac_ext 10894cat >>conftest.$ac_ext <<_ACEOF 10895/* end confdefs.h. */ 10896#include <inq_stats/cpustats.h> 10897_ACEOF 10898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10900 ac_status=$? 10901 grep -v '^ *+' conftest.er1 >conftest.err 10902 rm -f conftest.er1 10903 cat conftest.err >&5 10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10905 (exit $ac_status); } >/dev/null; then 10906 if test -s conftest.err; then 10907 ac_cpp_err=$ac_c_preproc_warn_flag 10908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10909 else 10910 ac_cpp_err= 10911 fi 10912else 10913 ac_cpp_err=yes 10914fi 10915if test -z "$ac_cpp_err"; then 10916 ac_header_preproc=yes 10917else 10918 echo "$as_me: failed program was:" >&5 10919sed 's/^/| /' conftest.$ac_ext >&5 10920 10921 ac_header_preproc=no 10922fi 10923rm -f conftest.err conftest.$ac_ext 10924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10925echo "${ECHO_T}$ac_header_preproc" >&6 10926 10927# So? What about this header? 10928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10929 yes:no: ) 10930 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 10931echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10932 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 10933echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} 10934 ac_header_preproc=yes 10935 ;; 10936 no:yes:* ) 10937 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 10938echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} 10939 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 10940echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} 10941 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 10942echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} 10943 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 10944echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} 10945 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 10946echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} 10947 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 10948echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} 10949 ( 10950 cat <<\_ASBOX 10951## ------------------------------- ## 10952## Report this to bug-make@gnu.org ## 10953## ------------------------------- ## 10954_ASBOX 10955 ) | 10956 sed "s/^/$as_me: WARNING: /" >&2 10957 ;; 10958esac 10959echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 10960echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 10961if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then 10962 echo $ECHO_N "(cached) $ECHO_C" >&6 10963else 10964 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc 10965fi 10966echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 10967echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 10968 10969fi 10970if test $ac_cv_header_inq_stats_cpustats_h = yes; then 10971 ac_have_func=yes 10972 10973cat >>confdefs.h <<\_ACEOF 10974#define UMAX 1 10975_ACEOF 10976 10977 10978cat >>confdefs.h <<\_ACEOF 10979#define UMAX4_3 1 10980_ACEOF 10981 10982fi 10983 10984 10985fi 10986 10987if test $ac_have_func = no; then 10988 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then 10989 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 10990echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 10991if test "${ac_cv_header_sys_cpustats_h+set}" = set; then 10992 echo $ECHO_N "(cached) $ECHO_C" >&6 10993fi 10994echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 10995echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 10996else 10997 # Is the header compilable? 10998echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 10999echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 11000cat >conftest.$ac_ext <<_ACEOF 11001/* confdefs.h. */ 11002_ACEOF 11003cat confdefs.h >>conftest.$ac_ext 11004cat >>conftest.$ac_ext <<_ACEOF 11005/* end confdefs.h. */ 11006$ac_includes_default 11007#include <sys/cpustats.h> 11008_ACEOF 11009rm -f conftest.$ac_objext 11010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11011 (eval $ac_compile) 2>conftest.er1 11012 ac_status=$? 11013 grep -v '^ *+' conftest.er1 >conftest.err 11014 rm -f conftest.er1 11015 cat conftest.err >&5 11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11017 (exit $ac_status); } && 11018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11020 (eval $ac_try) 2>&5 11021 ac_status=$? 11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11023 (exit $ac_status); }; } && 11024 { ac_try='test -s conftest.$ac_objext' 11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11026 (eval $ac_try) 2>&5 11027 ac_status=$? 11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11029 (exit $ac_status); }; }; then 11030 ac_header_compiler=yes 11031else 11032 echo "$as_me: failed program was:" >&5 11033sed 's/^/| /' conftest.$ac_ext >&5 11034 11035ac_header_compiler=no 11036fi 11037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11038echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11039echo "${ECHO_T}$ac_header_compiler" >&6 11040 11041# Is the header present? 11042echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 11043echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 11044cat >conftest.$ac_ext <<_ACEOF 11045/* confdefs.h. */ 11046_ACEOF 11047cat confdefs.h >>conftest.$ac_ext 11048cat >>conftest.$ac_ext <<_ACEOF 11049/* end confdefs.h. */ 11050#include <sys/cpustats.h> 11051_ACEOF 11052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11054 ac_status=$? 11055 grep -v '^ *+' conftest.er1 >conftest.err 11056 rm -f conftest.er1 11057 cat conftest.err >&5 11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11059 (exit $ac_status); } >/dev/null; then 11060 if test -s conftest.err; then 11061 ac_cpp_err=$ac_c_preproc_warn_flag 11062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11063 else 11064 ac_cpp_err= 11065 fi 11066else 11067 ac_cpp_err=yes 11068fi 11069if test -z "$ac_cpp_err"; then 11070 ac_header_preproc=yes 11071else 11072 echo "$as_me: failed program was:" >&5 11073sed 's/^/| /' conftest.$ac_ext >&5 11074 11075 ac_header_preproc=no 11076fi 11077rm -f conftest.err conftest.$ac_ext 11078echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11079echo "${ECHO_T}$ac_header_preproc" >&6 11080 11081# So? What about this header? 11082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11083 yes:no: ) 11084 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 11085echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11086 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 11087echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} 11088 ac_header_preproc=yes 11089 ;; 11090 no:yes:* ) 11091 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 11092echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} 11093 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 11094echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} 11095 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 11096echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} 11097 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 11098echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} 11099 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 11100echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} 11101 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 11102echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} 11103 ( 11104 cat <<\_ASBOX 11105## ------------------------------- ## 11106## Report this to bug-make@gnu.org ## 11107## ------------------------------- ## 11108_ASBOX 11109 ) | 11110 sed "s/^/$as_me: WARNING: /" >&2 11111 ;; 11112esac 11113echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 11114echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 11115if test "${ac_cv_header_sys_cpustats_h+set}" = set; then 11116 echo $ECHO_N "(cached) $ECHO_C" >&6 11117else 11118 ac_cv_header_sys_cpustats_h=$ac_header_preproc 11119fi 11120echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 11121echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 11122 11123fi 11124if test $ac_cv_header_sys_cpustats_h = yes; then 11125 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF 11126#define UMAX 1 11127_ACEOF 11128 11129fi 11130 11131 11132fi 11133 11134if test $ac_have_func = no; then 11135 11136for ac_header in mach/mach.h 11137do 11138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11139if eval "test \"\${$as_ac_Header+set}\" = set"; then 11140 echo "$as_me:$LINENO: checking for $ac_header" >&5 11141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11142if eval "test \"\${$as_ac_Header+set}\" = set"; then 11143 echo $ECHO_N "(cached) $ECHO_C" >&6 11144fi 11145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11147else 11148 # Is the header compilable? 11149echo "$as_me:$LINENO: checking $ac_header usability" >&5 11150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11151cat >conftest.$ac_ext <<_ACEOF 11152/* confdefs.h. */ 11153_ACEOF 11154cat confdefs.h >>conftest.$ac_ext 11155cat >>conftest.$ac_ext <<_ACEOF 11156/* end confdefs.h. */ 11157$ac_includes_default 11158#include <$ac_header> 11159_ACEOF 11160rm -f conftest.$ac_objext 11161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11162 (eval $ac_compile) 2>conftest.er1 11163 ac_status=$? 11164 grep -v '^ *+' conftest.er1 >conftest.err 11165 rm -f conftest.er1 11166 cat conftest.err >&5 11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11168 (exit $ac_status); } && 11169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11171 (eval $ac_try) 2>&5 11172 ac_status=$? 11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11174 (exit $ac_status); }; } && 11175 { ac_try='test -s conftest.$ac_objext' 11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11177 (eval $ac_try) 2>&5 11178 ac_status=$? 11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11180 (exit $ac_status); }; }; then 11181 ac_header_compiler=yes 11182else 11183 echo "$as_me: failed program was:" >&5 11184sed 's/^/| /' conftest.$ac_ext >&5 11185 11186ac_header_compiler=no 11187fi 11188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11189echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11190echo "${ECHO_T}$ac_header_compiler" >&6 11191 11192# Is the header present? 11193echo "$as_me:$LINENO: checking $ac_header presence" >&5 11194echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11195cat >conftest.$ac_ext <<_ACEOF 11196/* confdefs.h. */ 11197_ACEOF 11198cat confdefs.h >>conftest.$ac_ext 11199cat >>conftest.$ac_ext <<_ACEOF 11200/* end confdefs.h. */ 11201#include <$ac_header> 11202_ACEOF 11203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11205 ac_status=$? 11206 grep -v '^ *+' conftest.er1 >conftest.err 11207 rm -f conftest.er1 11208 cat conftest.err >&5 11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11210 (exit $ac_status); } >/dev/null; then 11211 if test -s conftest.err; then 11212 ac_cpp_err=$ac_c_preproc_warn_flag 11213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11214 else 11215 ac_cpp_err= 11216 fi 11217else 11218 ac_cpp_err=yes 11219fi 11220if test -z "$ac_cpp_err"; then 11221 ac_header_preproc=yes 11222else 11223 echo "$as_me: failed program was:" >&5 11224sed 's/^/| /' conftest.$ac_ext >&5 11225 11226 ac_header_preproc=no 11227fi 11228rm -f conftest.err conftest.$ac_ext 11229echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11230echo "${ECHO_T}$ac_header_preproc" >&6 11231 11232# So? What about this header? 11233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11234 yes:no: ) 11235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11236echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11238echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11239 ac_header_preproc=yes 11240 ;; 11241 no:yes:* ) 11242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11243echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11245echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11247echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11249echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11253echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11254 ( 11255 cat <<\_ASBOX 11256## ------------------------------- ## 11257## Report this to bug-make@gnu.org ## 11258## ------------------------------- ## 11259_ASBOX 11260 ) | 11261 sed "s/^/$as_me: WARNING: /" >&2 11262 ;; 11263esac 11264echo "$as_me:$LINENO: checking for $ac_header" >&5 11265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11266if eval "test \"\${$as_ac_Header+set}\" = set"; then 11267 echo $ECHO_N "(cached) $ECHO_C" >&6 11268else 11269 eval "$as_ac_Header=\$ac_header_preproc" 11270fi 11271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11273 11274fi 11275if test `eval echo '${'$as_ac_Header'}'` = yes; then 11276 cat >>confdefs.h <<_ACEOF 11277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11278_ACEOF 11279 11280fi 11281 11282done 11283 11284fi 11285 11286 11287for ac_header in nlist.h 11288do 11289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11290if eval "test \"\${$as_ac_Header+set}\" = set"; then 11291 echo "$as_me:$LINENO: checking for $ac_header" >&5 11292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11293if eval "test \"\${$as_ac_Header+set}\" = set"; then 11294 echo $ECHO_N "(cached) $ECHO_C" >&6 11295fi 11296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11298else 11299 # Is the header compilable? 11300echo "$as_me:$LINENO: checking $ac_header usability" >&5 11301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11302cat >conftest.$ac_ext <<_ACEOF 11303/* confdefs.h. */ 11304_ACEOF 11305cat confdefs.h >>conftest.$ac_ext 11306cat >>conftest.$ac_ext <<_ACEOF 11307/* end confdefs.h. */ 11308$ac_includes_default 11309#include <$ac_header> 11310_ACEOF 11311rm -f conftest.$ac_objext 11312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11313 (eval $ac_compile) 2>conftest.er1 11314 ac_status=$? 11315 grep -v '^ *+' conftest.er1 >conftest.err 11316 rm -f conftest.er1 11317 cat conftest.err >&5 11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11319 (exit $ac_status); } && 11320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11322 (eval $ac_try) 2>&5 11323 ac_status=$? 11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11325 (exit $ac_status); }; } && 11326 { ac_try='test -s conftest.$ac_objext' 11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11328 (eval $ac_try) 2>&5 11329 ac_status=$? 11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11331 (exit $ac_status); }; }; then 11332 ac_header_compiler=yes 11333else 11334 echo "$as_me: failed program was:" >&5 11335sed 's/^/| /' conftest.$ac_ext >&5 11336 11337ac_header_compiler=no 11338fi 11339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11341echo "${ECHO_T}$ac_header_compiler" >&6 11342 11343# Is the header present? 11344echo "$as_me:$LINENO: checking $ac_header presence" >&5 11345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11346cat >conftest.$ac_ext <<_ACEOF 11347/* confdefs.h. */ 11348_ACEOF 11349cat confdefs.h >>conftest.$ac_ext 11350cat >>conftest.$ac_ext <<_ACEOF 11351/* end confdefs.h. */ 11352#include <$ac_header> 11353_ACEOF 11354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11356 ac_status=$? 11357 grep -v '^ *+' conftest.er1 >conftest.err 11358 rm -f conftest.er1 11359 cat conftest.err >&5 11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11361 (exit $ac_status); } >/dev/null; then 11362 if test -s conftest.err; then 11363 ac_cpp_err=$ac_c_preproc_warn_flag 11364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11365 else 11366 ac_cpp_err= 11367 fi 11368else 11369 ac_cpp_err=yes 11370fi 11371if test -z "$ac_cpp_err"; then 11372 ac_header_preproc=yes 11373else 11374 echo "$as_me: failed program was:" >&5 11375sed 's/^/| /' conftest.$ac_ext >&5 11376 11377 ac_header_preproc=no 11378fi 11379rm -f conftest.err conftest.$ac_ext 11380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11381echo "${ECHO_T}$ac_header_preproc" >&6 11382 11383# So? What about this header? 11384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11385 yes:no: ) 11386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11390 ac_header_preproc=yes 11391 ;; 11392 no:yes:* ) 11393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11405 ( 11406 cat <<\_ASBOX 11407## ------------------------------- ## 11408## Report this to bug-make@gnu.org ## 11409## ------------------------------- ## 11410_ASBOX 11411 ) | 11412 sed "s/^/$as_me: WARNING: /" >&2 11413 ;; 11414esac 11415echo "$as_me:$LINENO: checking for $ac_header" >&5 11416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11417if eval "test \"\${$as_ac_Header+set}\" = set"; then 11418 echo $ECHO_N "(cached) $ECHO_C" >&6 11419else 11420 eval "$as_ac_Header=\$ac_header_preproc" 11421fi 11422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11424 11425fi 11426if test `eval echo '${'$as_ac_Header'}'` = yes; then 11427 cat >>confdefs.h <<_ACEOF 11428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11429_ACEOF 11430 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 11431echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 11432if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then 11433 echo $ECHO_N "(cached) $ECHO_C" >&6 11434else 11435 cat >conftest.$ac_ext <<_ACEOF 11436/* confdefs.h. */ 11437_ACEOF 11438cat confdefs.h >>conftest.$ac_ext 11439cat >>conftest.$ac_ext <<_ACEOF 11440/* end confdefs.h. */ 11441#include <nlist.h> 11442 11443int 11444main () 11445{ 11446static struct nlist ac_aggr; 11447if (ac_aggr.n_un.n_name) 11448return 0; 11449 ; 11450 return 0; 11451} 11452_ACEOF 11453rm -f conftest.$ac_objext 11454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11455 (eval $ac_compile) 2>conftest.er1 11456 ac_status=$? 11457 grep -v '^ *+' conftest.er1 >conftest.err 11458 rm -f conftest.er1 11459 cat conftest.err >&5 11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11461 (exit $ac_status); } && 11462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11464 (eval $ac_try) 2>&5 11465 ac_status=$? 11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11467 (exit $ac_status); }; } && 11468 { ac_try='test -s conftest.$ac_objext' 11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11470 (eval $ac_try) 2>&5 11471 ac_status=$? 11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11473 (exit $ac_status); }; }; then 11474 ac_cv_member_struct_nlist_n_un_n_name=yes 11475else 11476 echo "$as_me: failed program was:" >&5 11477sed 's/^/| /' conftest.$ac_ext >&5 11478 11479cat >conftest.$ac_ext <<_ACEOF 11480/* confdefs.h. */ 11481_ACEOF 11482cat confdefs.h >>conftest.$ac_ext 11483cat >>conftest.$ac_ext <<_ACEOF 11484/* end confdefs.h. */ 11485#include <nlist.h> 11486 11487int 11488main () 11489{ 11490static struct nlist ac_aggr; 11491if (sizeof ac_aggr.n_un.n_name) 11492return 0; 11493 ; 11494 return 0; 11495} 11496_ACEOF 11497rm -f conftest.$ac_objext 11498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11499 (eval $ac_compile) 2>conftest.er1 11500 ac_status=$? 11501 grep -v '^ *+' conftest.er1 >conftest.err 11502 rm -f conftest.er1 11503 cat conftest.err >&5 11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11505 (exit $ac_status); } && 11506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11508 (eval $ac_try) 2>&5 11509 ac_status=$? 11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11511 (exit $ac_status); }; } && 11512 { ac_try='test -s conftest.$ac_objext' 11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11514 (eval $ac_try) 2>&5 11515 ac_status=$? 11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11517 (exit $ac_status); }; }; then 11518 ac_cv_member_struct_nlist_n_un_n_name=yes 11519else 11520 echo "$as_me: failed program was:" >&5 11521sed 's/^/| /' conftest.$ac_ext >&5 11522 11523ac_cv_member_struct_nlist_n_un_n_name=no 11524fi 11525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11526fi 11527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11528fi 11529echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 11530echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 11531if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then 11532 11533cat >>confdefs.h <<_ACEOF 11534#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 11535_ACEOF 11536 11537 11538cat >>confdefs.h <<\_ACEOF 11539#define NLIST_NAME_UNION 1 11540_ACEOF 11541 11542fi 11543 11544 11545fi 11546 11547done 11548 11549fi 11550done 11551 11552 11553# Some definitions of getloadavg require that the program be installed setgid. 11554echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 11555echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 11556if test "${ac_cv_func_getloadavg_setgid+set}" = set; then 11557 echo $ECHO_N "(cached) $ECHO_C" >&6 11558else 11559 cat >conftest.$ac_ext <<_ACEOF 11560/* confdefs.h. */ 11561_ACEOF 11562cat confdefs.h >>conftest.$ac_ext 11563cat >>conftest.$ac_ext <<_ACEOF 11564/* end confdefs.h. */ 11565#include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 11566#ifdef LDAV_PRIVILEGED 11567Yowza Am I SETGID yet 11568#endif 11569_ACEOF 11570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11571 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then 11572 ac_cv_func_getloadavg_setgid=yes 11573else 11574 ac_cv_func_getloadavg_setgid=no 11575fi 11576rm -f conftest* 11577 11578fi 11579echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 11580echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 11581if test $ac_cv_func_getloadavg_setgid = yes; then 11582 NEED_SETGID=true 11583 11584cat >>confdefs.h <<\_ACEOF 11585#define GETLOADAVG_PRIVILEGED 1 11586_ACEOF 11587 11588else 11589 NEED_SETGID=false 11590fi 11591 11592if test $ac_cv_func_getloadavg_setgid = yes; then 11593 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 11594echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 11595if test "${ac_cv_group_kmem+set}" = set; then 11596 echo $ECHO_N "(cached) $ECHO_C" >&6 11597else 11598 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 11599 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 11600 # If we got an error (system does not support symlinks), try without -L. 11601 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` 11602 ac_cv_group_kmem=`echo $ac_ls_output \ 11603 | sed -ne 's/[ ][ ]*/ /g; 11604 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; 11605 / /s/.* //;p;'` 11606 11607fi 11608echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 11609echo "${ECHO_T}$ac_cv_group_kmem" >&6 11610 KMEM_GROUP=$ac_cv_group_kmem 11611fi 11612if test "x$ac_save_LIBS" = x; then 11613 GETLOADAVG_LIBS=$LIBS 11614else 11615 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` 11616fi 11617LIBS=$ac_save_LIBS 11618 11619 11620 11621# AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it 11622# doesn't. So, we will. 11623 11624if test "$ac_cv_header_nlist_h" = yes; then 11625 cat >conftest.$ac_ext <<_ACEOF 11626/* confdefs.h. */ 11627_ACEOF 11628cat confdefs.h >>conftest.$ac_ext 11629cat >>conftest.$ac_ext <<_ACEOF 11630/* end confdefs.h. */ 11631#include <nlist.h> 11632int 11633main () 11634{ 11635struct nlist nl; 11636 nl.n_name = "string"; 11637 return 0; 11638 ; 11639 return 0; 11640} 11641_ACEOF 11642rm -f conftest.$ac_objext 11643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11644 (eval $ac_compile) 2>conftest.er1 11645 ac_status=$? 11646 grep -v '^ *+' conftest.er1 >conftest.err 11647 rm -f conftest.er1 11648 cat conftest.err >&5 11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11650 (exit $ac_status); } && 11651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11653 (eval $ac_try) 2>&5 11654 ac_status=$? 11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11656 (exit $ac_status); }; } && 11657 { ac_try='test -s conftest.$ac_objext' 11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11659 (eval $ac_try) 2>&5 11660 ac_status=$? 11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11662 (exit $ac_status); }; }; then 11663 make_cv_nlist_struct=yes 11664else 11665 echo "$as_me: failed program was:" >&5 11666sed 's/^/| /' conftest.$ac_ext >&5 11667 11668make_cv_nlist_struct=no 11669fi 11670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11671 if test "$make_cv_nlist_struct" = yes; then 11672 11673cat >>confdefs.h <<\_ACEOF 11674#define NLIST_STRUCT 1 11675_ACEOF 11676 11677 fi 11678fi 11679 11680echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 11681echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 11682if test "${ac_cv_have_decl_sys_siglist+set}" = set; then 11683 echo $ECHO_N "(cached) $ECHO_C" >&6 11684else 11685 cat >conftest.$ac_ext <<_ACEOF 11686/* confdefs.h. */ 11687_ACEOF 11688cat confdefs.h >>conftest.$ac_ext 11689cat >>conftest.$ac_ext <<_ACEOF 11690/* end confdefs.h. */ 11691$ac_includes_default 11692#include <signal.h> 11693/* NetBSD declares sys_siglist in unistd.h. */ 11694#if HAVE_UNISTD_H 11695# include <unistd.h> 11696#endif 11697 11698 11699int 11700main () 11701{ 11702#ifndef sys_siglist 11703 char *p = (char *) sys_siglist; 11704#endif 11705 11706 ; 11707 return 0; 11708} 11709_ACEOF 11710rm -f conftest.$ac_objext 11711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11712 (eval $ac_compile) 2>conftest.er1 11713 ac_status=$? 11714 grep -v '^ *+' conftest.er1 >conftest.err 11715 rm -f conftest.er1 11716 cat conftest.err >&5 11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11718 (exit $ac_status); } && 11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11721 (eval $ac_try) 2>&5 11722 ac_status=$? 11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11724 (exit $ac_status); }; } && 11725 { ac_try='test -s conftest.$ac_objext' 11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11727 (eval $ac_try) 2>&5 11728 ac_status=$? 11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11730 (exit $ac_status); }; }; then 11731 ac_cv_have_decl_sys_siglist=yes 11732else 11733 echo "$as_me: failed program was:" >&5 11734sed 's/^/| /' conftest.$ac_ext >&5 11735 11736ac_cv_have_decl_sys_siglist=no 11737fi 11738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11739fi 11740echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 11741echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 11742if test $ac_cv_have_decl_sys_siglist = yes; then 11743 11744cat >>confdefs.h <<_ACEOF 11745#define HAVE_DECL_SYS_SIGLIST 1 11746_ACEOF 11747 11748 11749else 11750 cat >>confdefs.h <<_ACEOF 11751#define HAVE_DECL_SYS_SIGLIST 0 11752_ACEOF 11753 11754 11755fi 11756echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5 11757echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6 11758if test "${ac_cv_have_decl__sys_siglist+set}" = set; then 11759 echo $ECHO_N "(cached) $ECHO_C" >&6 11760else 11761 cat >conftest.$ac_ext <<_ACEOF 11762/* confdefs.h. */ 11763_ACEOF 11764cat confdefs.h >>conftest.$ac_ext 11765cat >>conftest.$ac_ext <<_ACEOF 11766/* end confdefs.h. */ 11767$ac_includes_default 11768#include <signal.h> 11769/* NetBSD declares sys_siglist in unistd.h. */ 11770#if HAVE_UNISTD_H 11771# include <unistd.h> 11772#endif 11773 11774 11775int 11776main () 11777{ 11778#ifndef _sys_siglist 11779 char *p = (char *) _sys_siglist; 11780#endif 11781 11782 ; 11783 return 0; 11784} 11785_ACEOF 11786rm -f conftest.$ac_objext 11787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11788 (eval $ac_compile) 2>conftest.er1 11789 ac_status=$? 11790 grep -v '^ *+' conftest.er1 >conftest.err 11791 rm -f conftest.er1 11792 cat conftest.err >&5 11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11794 (exit $ac_status); } && 11795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11797 (eval $ac_try) 2>&5 11798 ac_status=$? 11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11800 (exit $ac_status); }; } && 11801 { ac_try='test -s conftest.$ac_objext' 11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11803 (eval $ac_try) 2>&5 11804 ac_status=$? 11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11806 (exit $ac_status); }; }; then 11807 ac_cv_have_decl__sys_siglist=yes 11808else 11809 echo "$as_me: failed program was:" >&5 11810sed 's/^/| /' conftest.$ac_ext >&5 11811 11812ac_cv_have_decl__sys_siglist=no 11813fi 11814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11815fi 11816echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5 11817echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6 11818if test $ac_cv_have_decl__sys_siglist = yes; then 11819 11820cat >>confdefs.h <<_ACEOF 11821#define HAVE_DECL__SYS_SIGLIST 1 11822_ACEOF 11823 11824 11825else 11826 cat >>confdefs.h <<_ACEOF 11827#define HAVE_DECL__SYS_SIGLIST 0 11828_ACEOF 11829 11830 11831fi 11832echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 11833echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6 11834if test "${ac_cv_have_decl___sys_siglist+set}" = set; then 11835 echo $ECHO_N "(cached) $ECHO_C" >&6 11836else 11837 cat >conftest.$ac_ext <<_ACEOF 11838/* confdefs.h. */ 11839_ACEOF 11840cat confdefs.h >>conftest.$ac_ext 11841cat >>conftest.$ac_ext <<_ACEOF 11842/* end confdefs.h. */ 11843$ac_includes_default 11844#include <signal.h> 11845/* NetBSD declares sys_siglist in unistd.h. */ 11846#if HAVE_UNISTD_H 11847# include <unistd.h> 11848#endif 11849 11850 11851int 11852main () 11853{ 11854#ifndef __sys_siglist 11855 char *p = (char *) __sys_siglist; 11856#endif 11857 11858 ; 11859 return 0; 11860} 11861_ACEOF 11862rm -f conftest.$ac_objext 11863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11864 (eval $ac_compile) 2>conftest.er1 11865 ac_status=$? 11866 grep -v '^ *+' conftest.er1 >conftest.err 11867 rm -f conftest.er1 11868 cat conftest.err >&5 11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11870 (exit $ac_status); } && 11871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11873 (eval $ac_try) 2>&5 11874 ac_status=$? 11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11876 (exit $ac_status); }; } && 11877 { ac_try='test -s conftest.$ac_objext' 11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11879 (eval $ac_try) 2>&5 11880 ac_status=$? 11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11882 (exit $ac_status); }; }; then 11883 ac_cv_have_decl___sys_siglist=yes 11884else 11885 echo "$as_me: failed program was:" >&5 11886sed 's/^/| /' conftest.$ac_ext >&5 11887 11888ac_cv_have_decl___sys_siglist=no 11889fi 11890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11891fi 11892echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 11893echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6 11894if test $ac_cv_have_decl___sys_siglist = yes; then 11895 11896cat >>confdefs.h <<_ACEOF 11897#define HAVE_DECL___SYS_SIGLIST 1 11898_ACEOF 11899 11900 11901else 11902 cat >>confdefs.h <<_ACEOF 11903#define HAVE_DECL___SYS_SIGLIST 0 11904_ACEOF 11905 11906 11907fi 11908 11909 11910 11911 11912# Check out the wait reality. 11913 11914for ac_header in sys/wait.h 11915do 11916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11917if eval "test \"\${$as_ac_Header+set}\" = set"; then 11918 echo "$as_me:$LINENO: checking for $ac_header" >&5 11919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11920if eval "test \"\${$as_ac_Header+set}\" = set"; then 11921 echo $ECHO_N "(cached) $ECHO_C" >&6 11922fi 11923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11925else 11926 # Is the header compilable? 11927echo "$as_me:$LINENO: checking $ac_header usability" >&5 11928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11929cat >conftest.$ac_ext <<_ACEOF 11930/* confdefs.h. */ 11931_ACEOF 11932cat confdefs.h >>conftest.$ac_ext 11933cat >>conftest.$ac_ext <<_ACEOF 11934/* end confdefs.h. */ 11935$ac_includes_default 11936#include <$ac_header> 11937_ACEOF 11938rm -f conftest.$ac_objext 11939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11940 (eval $ac_compile) 2>conftest.er1 11941 ac_status=$? 11942 grep -v '^ *+' conftest.er1 >conftest.err 11943 rm -f conftest.er1 11944 cat conftest.err >&5 11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11946 (exit $ac_status); } && 11947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11949 (eval $ac_try) 2>&5 11950 ac_status=$? 11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11952 (exit $ac_status); }; } && 11953 { ac_try='test -s conftest.$ac_objext' 11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11955 (eval $ac_try) 2>&5 11956 ac_status=$? 11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11958 (exit $ac_status); }; }; then 11959 ac_header_compiler=yes 11960else 11961 echo "$as_me: failed program was:" >&5 11962sed 's/^/| /' conftest.$ac_ext >&5 11963 11964ac_header_compiler=no 11965fi 11966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11967echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11968echo "${ECHO_T}$ac_header_compiler" >&6 11969 11970# Is the header present? 11971echo "$as_me:$LINENO: checking $ac_header presence" >&5 11972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11973cat >conftest.$ac_ext <<_ACEOF 11974/* confdefs.h. */ 11975_ACEOF 11976cat confdefs.h >>conftest.$ac_ext 11977cat >>conftest.$ac_ext <<_ACEOF 11978/* end confdefs.h. */ 11979#include <$ac_header> 11980_ACEOF 11981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11983 ac_status=$? 11984 grep -v '^ *+' conftest.er1 >conftest.err 11985 rm -f conftest.er1 11986 cat conftest.err >&5 11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11988 (exit $ac_status); } >/dev/null; then 11989 if test -s conftest.err; then 11990 ac_cpp_err=$ac_c_preproc_warn_flag 11991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11992 else 11993 ac_cpp_err= 11994 fi 11995else 11996 ac_cpp_err=yes 11997fi 11998if test -z "$ac_cpp_err"; then 11999 ac_header_preproc=yes 12000else 12001 echo "$as_me: failed program was:" >&5 12002sed 's/^/| /' conftest.$ac_ext >&5 12003 12004 ac_header_preproc=no 12005fi 12006rm -f conftest.err conftest.$ac_ext 12007echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12008echo "${ECHO_T}$ac_header_preproc" >&6 12009 12010# So? What about this header? 12011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12012 yes:no: ) 12013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12014echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12016echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12017 ac_header_preproc=yes 12018 ;; 12019 no:yes:* ) 12020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12023echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12025echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12027echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12031echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12032 ( 12033 cat <<\_ASBOX 12034## ------------------------------- ## 12035## Report this to bug-make@gnu.org ## 12036## ------------------------------- ## 12037_ASBOX 12038 ) | 12039 sed "s/^/$as_me: WARNING: /" >&2 12040 ;; 12041esac 12042echo "$as_me:$LINENO: checking for $ac_header" >&5 12043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12044if eval "test \"\${$as_ac_Header+set}\" = set"; then 12045 echo $ECHO_N "(cached) $ECHO_C" >&6 12046else 12047 eval "$as_ac_Header=\$ac_header_preproc" 12048fi 12049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12051 12052fi 12053if test `eval echo '${'$as_ac_Header'}'` = yes; then 12054 cat >>confdefs.h <<_ACEOF 12055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12056_ACEOF 12057 12058fi 12059 12060done 12061 12062 12063 12064for ac_func in waitpid wait3 12065do 12066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12067echo "$as_me:$LINENO: checking for $ac_func" >&5 12068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12069if eval "test \"\${$as_ac_var+set}\" = set"; then 12070 echo $ECHO_N "(cached) $ECHO_C" >&6 12071else 12072 cat >conftest.$ac_ext <<_ACEOF 12073/* confdefs.h. */ 12074_ACEOF 12075cat confdefs.h >>conftest.$ac_ext 12076cat >>conftest.$ac_ext <<_ACEOF 12077/* end confdefs.h. */ 12078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12079 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12080#define $ac_func innocuous_$ac_func 12081 12082/* System header to define __stub macros and hopefully few prototypes, 12083 which can conflict with char $ac_func (); below. 12084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12085 <limits.h> exists even on freestanding compilers. */ 12086 12087#ifdef __STDC__ 12088# include <limits.h> 12089#else 12090# include <assert.h> 12091#endif 12092 12093#undef $ac_func 12094 12095/* Override any gcc2 internal prototype to avoid an error. */ 12096#ifdef __cplusplus 12097extern "C" 12098{ 12099#endif 12100/* We use char because int might match the return type of a gcc2 12101 builtin and then its argument prototype would still apply. */ 12102char $ac_func (); 12103/* The GNU C library defines this for functions which it implements 12104 to always fail with ENOSYS. Some functions are actually named 12105 something starting with __ and the normal name is an alias. */ 12106#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12107choke me 12108#else 12109char (*f) () = $ac_func; 12110#endif 12111#ifdef __cplusplus 12112} 12113#endif 12114 12115int 12116main () 12117{ 12118return f != $ac_func; 12119 ; 12120 return 0; 12121} 12122_ACEOF 12123rm -f conftest.$ac_objext conftest$ac_exeext 12124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12125 (eval $ac_link) 2>conftest.er1 12126 ac_status=$? 12127 grep -v '^ *+' conftest.er1 >conftest.err 12128 rm -f conftest.er1 12129 cat conftest.err >&5 12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12131 (exit $ac_status); } && 12132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12134 (eval $ac_try) 2>&5 12135 ac_status=$? 12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12137 (exit $ac_status); }; } && 12138 { ac_try='test -s conftest$ac_exeext' 12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12140 (eval $ac_try) 2>&5 12141 ac_status=$? 12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12143 (exit $ac_status); }; }; then 12144 eval "$as_ac_var=yes" 12145else 12146 echo "$as_me: failed program was:" >&5 12147sed 's/^/| /' conftest.$ac_ext >&5 12148 12149eval "$as_ac_var=no" 12150fi 12151rm -f conftest.err conftest.$ac_objext \ 12152 conftest$ac_exeext conftest.$ac_ext 12153fi 12154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12155echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12156if test `eval echo '${'$as_ac_var'}'` = yes; then 12157 cat >>confdefs.h <<_ACEOF 12158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12159_ACEOF 12160 12161fi 12162done 12163 12164echo "$as_me:$LINENO: checking for union wait" >&5 12165echo $ECHO_N "checking for union wait... $ECHO_C" >&6 12166if test "${make_cv_union_wait+set}" = set; then 12167 echo $ECHO_N "(cached) $ECHO_C" >&6 12168else 12169 cat >conftest.$ac_ext <<_ACEOF 12170/* confdefs.h. */ 12171_ACEOF 12172cat confdefs.h >>conftest.$ac_ext 12173cat >>conftest.$ac_ext <<_ACEOF 12174/* end confdefs.h. */ 12175#include <sys/types.h> 12176#include <sys/wait.h> 12177int 12178main () 12179{ 12180union wait status; int pid; pid = wait (&status); 12181#ifdef WEXITSTATUS 12182/* Some POSIXoid systems have both the new-style macros and the old 12183 union wait type, and they do not work together. If union wait 12184 conflicts with WEXITSTATUS et al, we don't want to use it at all. */ 12185 if (WEXITSTATUS (status) != 0) pid = -1; 12186#ifdef WTERMSIG 12187 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */ 12188 -- blow chunks here -- 12189#endif 12190#endif 12191#ifdef HAVE_WAITPID 12192 /* Make sure union wait works with waitpid. */ 12193 pid = waitpid (-1, &status, 0); 12194#endif 12195 12196 ; 12197 return 0; 12198} 12199_ACEOF 12200rm -f conftest.$ac_objext conftest$ac_exeext 12201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12202 (eval $ac_link) 2>conftest.er1 12203 ac_status=$? 12204 grep -v '^ *+' conftest.er1 >conftest.err 12205 rm -f conftest.er1 12206 cat conftest.err >&5 12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12208 (exit $ac_status); } && 12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12211 (eval $ac_try) 2>&5 12212 ac_status=$? 12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12214 (exit $ac_status); }; } && 12215 { ac_try='test -s conftest$ac_exeext' 12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12217 (eval $ac_try) 2>&5 12218 ac_status=$? 12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12220 (exit $ac_status); }; }; then 12221 make_cv_union_wait=yes 12222else 12223 echo "$as_me: failed program was:" >&5 12224sed 's/^/| /' conftest.$ac_ext >&5 12225 12226make_cv_union_wait=no 12227fi 12228rm -f conftest.err conftest.$ac_objext \ 12229 conftest$ac_exeext conftest.$ac_ext 12230fi 12231 12232if test "$make_cv_union_wait" = yes; then 12233 12234cat >>confdefs.h <<\_ACEOF 12235#define HAVE_UNION_WAIT 1 12236_ACEOF 12237 12238fi 12239echo "$as_me:$LINENO: result: $make_cv_union_wait" >&5 12240echo "${ECHO_T}$make_cv_union_wait" >&6 12241 12242 12243# If we're building on Windows/DOS/OS/2, add some support for DOS drive specs. 12244if test "$PATH_SEPARATOR" = ';'; then 12245 12246cat >>confdefs.h <<\_ACEOF 12247#define HAVE_DOS_PATHS 1 12248_ACEOF 12249 12250fi 12251 12252 12253# See if the user wants to use pmake's "customs" distributed build capability 12254 12255 REMOTE=stub 12256use_customs=false 12257 12258# Check whether --with-customs or --without-customs was given. 12259if test "${with_customs+set}" = set; then 12260 withval="$with_customs" 12261 case $withval in 12262 n|no) : ;; 12263 *) make_cppflags="$CPPFLAGS" 12264 case $withval in 12265 y|ye|yes) : ;; 12266 *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs" 12267 make_ldflags="$LDFLAGS -L$with_customs/lib" ;; 12268 esac 12269 12270cf_test_netlibs=no 12271echo "$as_me:$LINENO: checking for network libraries" >&5 12272echo $ECHO_N "checking for network libraries... $ECHO_C" >&6 12273if test "${cf_cv_netlibs+set}" = set; then 12274 echo $ECHO_N "(cached) $ECHO_C" >&6 12275else 12276 12277echo "$as_me:$LINENO: result: working..." >&5 12278echo "${ECHO_T}working..." >&6 12279cf_cv_netlibs="" 12280cf_test_netlibs=yes 12281 12282for ac_func in gethostname 12283do 12284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12285echo "$as_me:$LINENO: checking for $ac_func" >&5 12286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12287if eval "test \"\${$as_ac_var+set}\" = set"; then 12288 echo $ECHO_N "(cached) $ECHO_C" >&6 12289else 12290 cat >conftest.$ac_ext <<_ACEOF 12291/* confdefs.h. */ 12292_ACEOF 12293cat confdefs.h >>conftest.$ac_ext 12294cat >>conftest.$ac_ext <<_ACEOF 12295/* end confdefs.h. */ 12296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12297 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12298#define $ac_func innocuous_$ac_func 12299 12300/* System header to define __stub macros and hopefully few prototypes, 12301 which can conflict with char $ac_func (); below. 12302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12303 <limits.h> exists even on freestanding compilers. */ 12304 12305#ifdef __STDC__ 12306# include <limits.h> 12307#else 12308# include <assert.h> 12309#endif 12310 12311#undef $ac_func 12312 12313/* Override any gcc2 internal prototype to avoid an error. */ 12314#ifdef __cplusplus 12315extern "C" 12316{ 12317#endif 12318/* We use char because int might match the return type of a gcc2 12319 builtin and then its argument prototype would still apply. */ 12320char $ac_func (); 12321/* The GNU C library defines this for functions which it implements 12322 to always fail with ENOSYS. Some functions are actually named 12323 something starting with __ and the normal name is an alias. */ 12324#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12325choke me 12326#else 12327char (*f) () = $ac_func; 12328#endif 12329#ifdef __cplusplus 12330} 12331#endif 12332 12333int 12334main () 12335{ 12336return f != $ac_func; 12337 ; 12338 return 0; 12339} 12340_ACEOF 12341rm -f conftest.$ac_objext conftest$ac_exeext 12342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12343 (eval $ac_link) 2>conftest.er1 12344 ac_status=$? 12345 grep -v '^ *+' conftest.er1 >conftest.err 12346 rm -f conftest.er1 12347 cat conftest.err >&5 12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12349 (exit $ac_status); } && 12350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12352 (eval $ac_try) 2>&5 12353 ac_status=$? 12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12355 (exit $ac_status); }; } && 12356 { ac_try='test -s conftest$ac_exeext' 12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12358 (eval $ac_try) 2>&5 12359 ac_status=$? 12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12361 (exit $ac_status); }; }; then 12362 eval "$as_ac_var=yes" 12363else 12364 echo "$as_me: failed program was:" >&5 12365sed 's/^/| /' conftest.$ac_ext >&5 12366 12367eval "$as_ac_var=no" 12368fi 12369rm -f conftest.err conftest.$ac_objext \ 12370 conftest$ac_exeext conftest.$ac_ext 12371fi 12372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12374if test `eval echo '${'$as_ac_var'}'` = yes; then 12375 cat >>confdefs.h <<_ACEOF 12376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12377_ACEOF 12378 12379else 12380 12381 12382echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5 12383echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6 12384if test "${ac_cv_lib_nsl_gethostname+set}" = set; then 12385 echo $ECHO_N "(cached) $ECHO_C" >&6 12386else 12387 ac_check_lib_save_LIBS=$LIBS 12388LIBS="-lnsl $cf_cv_netlibs $LIBS" 12389cat >conftest.$ac_ext <<_ACEOF 12390/* confdefs.h. */ 12391_ACEOF 12392cat confdefs.h >>conftest.$ac_ext 12393cat >>conftest.$ac_ext <<_ACEOF 12394/* end confdefs.h. */ 12395 12396/* Override any gcc2 internal prototype to avoid an error. */ 12397#ifdef __cplusplus 12398extern "C" 12399#endif 12400/* We use char because int might match the return type of a gcc2 12401 builtin and then its argument prototype would still apply. */ 12402char gethostname (); 12403int 12404main () 12405{ 12406gethostname (); 12407 ; 12408 return 0; 12409} 12410_ACEOF 12411rm -f conftest.$ac_objext conftest$ac_exeext 12412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12413 (eval $ac_link) 2>conftest.er1 12414 ac_status=$? 12415 grep -v '^ *+' conftest.er1 >conftest.err 12416 rm -f conftest.er1 12417 cat conftest.err >&5 12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12419 (exit $ac_status); } && 12420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12422 (eval $ac_try) 2>&5 12423 ac_status=$? 12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12425 (exit $ac_status); }; } && 12426 { ac_try='test -s conftest$ac_exeext' 12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12428 (eval $ac_try) 2>&5 12429 ac_status=$? 12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12431 (exit $ac_status); }; }; then 12432 ac_cv_lib_nsl_gethostname=yes 12433else 12434 echo "$as_me: failed program was:" >&5 12435sed 's/^/| /' conftest.$ac_ext >&5 12436 12437ac_cv_lib_nsl_gethostname=no 12438fi 12439rm -f conftest.err conftest.$ac_objext \ 12440 conftest$ac_exeext conftest.$ac_ext 12441LIBS=$ac_check_lib_save_LIBS 12442fi 12443echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5 12444echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6 12445if test $ac_cv_lib_nsl_gethostname = yes; then 12446 12447 12448cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'` 12449 12450 12451cat >>confdefs.h <<_ACEOF 12452#define HAVE_$cf_tr_func 1 12453_ACEOF 12454 12455 ac_cv_func_gethostname=yes 12456 cf_cv_netlibs="-lnsl $cf_cv_netlibs" 12457else 12458 12459 ac_cv_func_gethostname=unknown 12460 unset ac_cv_func_gethostname 2>/dev/null 12461 12462 12463echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5 12464echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6 12465if test "${ac_cv_lib_socket_gethostname+set}" = set; then 12466 echo $ECHO_N "(cached) $ECHO_C" >&6 12467else 12468 ac_check_lib_save_LIBS=$LIBS 12469LIBS="-lsocket $cf_cv_netlibs $LIBS" 12470cat >conftest.$ac_ext <<_ACEOF 12471/* confdefs.h. */ 12472_ACEOF 12473cat confdefs.h >>conftest.$ac_ext 12474cat >>conftest.$ac_ext <<_ACEOF 12475/* end confdefs.h. */ 12476 12477/* Override any gcc2 internal prototype to avoid an error. */ 12478#ifdef __cplusplus 12479extern "C" 12480#endif 12481/* We use char because int might match the return type of a gcc2 12482 builtin and then its argument prototype would still apply. */ 12483char gethostname (); 12484int 12485main () 12486{ 12487gethostname (); 12488 ; 12489 return 0; 12490} 12491_ACEOF 12492rm -f conftest.$ac_objext conftest$ac_exeext 12493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12494 (eval $ac_link) 2>conftest.er1 12495 ac_status=$? 12496 grep -v '^ *+' conftest.er1 >conftest.err 12497 rm -f conftest.er1 12498 cat conftest.err >&5 12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12500 (exit $ac_status); } && 12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12503 (eval $ac_try) 2>&5 12504 ac_status=$? 12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12506 (exit $ac_status); }; } && 12507 { ac_try='test -s conftest$ac_exeext' 12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12509 (eval $ac_try) 2>&5 12510 ac_status=$? 12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12512 (exit $ac_status); }; }; then 12513 ac_cv_lib_socket_gethostname=yes 12514else 12515 echo "$as_me: failed program was:" >&5 12516sed 's/^/| /' conftest.$ac_ext >&5 12517 12518ac_cv_lib_socket_gethostname=no 12519fi 12520rm -f conftest.err conftest.$ac_objext \ 12521 conftest$ac_exeext conftest.$ac_ext 12522LIBS=$ac_check_lib_save_LIBS 12523fi 12524echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5 12525echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6 12526if test $ac_cv_lib_socket_gethostname = yes; then 12527 12528 12529cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'` 12530 12531 12532cat >>confdefs.h <<_ACEOF 12533#define HAVE_$cf_tr_func 1 12534_ACEOF 12535 12536 ac_cv_func_gethostname=yes 12537 cf_cv_netlibs="-lsocket $cf_cv_netlibs" 12538else 12539 12540 ac_cv_func_gethostname=unknown 12541 unset ac_cv_func_gethostname 2>/dev/null 12542 12543fi 12544 12545 12546fi 12547 12548 12549fi 12550done 12551 12552# 12553# FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but 12554# I don't know the entrypoints - 97/7/22 TD 12555echo "$as_me:$LINENO: checking for main in -linet" >&5 12556echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6 12557if test "${ac_cv_lib_inet_main+set}" = set; then 12558 echo $ECHO_N "(cached) $ECHO_C" >&6 12559else 12560 ac_check_lib_save_LIBS=$LIBS 12561LIBS="-linet $LIBS" 12562cat >conftest.$ac_ext <<_ACEOF 12563/* confdefs.h. */ 12564_ACEOF 12565cat confdefs.h >>conftest.$ac_ext 12566cat >>conftest.$ac_ext <<_ACEOF 12567/* end confdefs.h. */ 12568 12569 12570int 12571main () 12572{ 12573main (); 12574 ; 12575 return 0; 12576} 12577_ACEOF 12578rm -f conftest.$ac_objext conftest$ac_exeext 12579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12580 (eval $ac_link) 2>conftest.er1 12581 ac_status=$? 12582 grep -v '^ *+' conftest.er1 >conftest.err 12583 rm -f conftest.er1 12584 cat conftest.err >&5 12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12586 (exit $ac_status); } && 12587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12589 (eval $ac_try) 2>&5 12590 ac_status=$? 12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12592 (exit $ac_status); }; } && 12593 { ac_try='test -s conftest$ac_exeext' 12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12595 (eval $ac_try) 2>&5 12596 ac_status=$? 12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12598 (exit $ac_status); }; }; then 12599 ac_cv_lib_inet_main=yes 12600else 12601 echo "$as_me: failed program was:" >&5 12602sed 's/^/| /' conftest.$ac_ext >&5 12603 12604ac_cv_lib_inet_main=no 12605fi 12606rm -f conftest.err conftest.$ac_objext \ 12607 conftest$ac_exeext conftest.$ac_ext 12608LIBS=$ac_check_lib_save_LIBS 12609fi 12610echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 12611echo "${ECHO_T}$ac_cv_lib_inet_main" >&6 12612if test $ac_cv_lib_inet_main = yes; then 12613 cf_cv_netlibs="-linet $cf_cv_netlibs" 12614fi 12615 12616# 12617if test "$ac_cv_func_lsocket" != no ; then 12618 12619for ac_func in socket 12620do 12621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12622echo "$as_me:$LINENO: checking for $ac_func" >&5 12623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12624if eval "test \"\${$as_ac_var+set}\" = set"; then 12625 echo $ECHO_N "(cached) $ECHO_C" >&6 12626else 12627 cat >conftest.$ac_ext <<_ACEOF 12628/* confdefs.h. */ 12629_ACEOF 12630cat confdefs.h >>conftest.$ac_ext 12631cat >>conftest.$ac_ext <<_ACEOF 12632/* end confdefs.h. */ 12633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12634 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12635#define $ac_func innocuous_$ac_func 12636 12637/* System header to define __stub macros and hopefully few prototypes, 12638 which can conflict with char $ac_func (); below. 12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12640 <limits.h> exists even on freestanding compilers. */ 12641 12642#ifdef __STDC__ 12643# include <limits.h> 12644#else 12645# include <assert.h> 12646#endif 12647 12648#undef $ac_func 12649 12650/* Override any gcc2 internal prototype to avoid an error. */ 12651#ifdef __cplusplus 12652extern "C" 12653{ 12654#endif 12655/* We use char because int might match the return type of a gcc2 12656 builtin and then its argument prototype would still apply. */ 12657char $ac_func (); 12658/* The GNU C library defines this for functions which it implements 12659 to always fail with ENOSYS. Some functions are actually named 12660 something starting with __ and the normal name is an alias. */ 12661#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12662choke me 12663#else 12664char (*f) () = $ac_func; 12665#endif 12666#ifdef __cplusplus 12667} 12668#endif 12669 12670int 12671main () 12672{ 12673return f != $ac_func; 12674 ; 12675 return 0; 12676} 12677_ACEOF 12678rm -f conftest.$ac_objext conftest$ac_exeext 12679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12680 (eval $ac_link) 2>conftest.er1 12681 ac_status=$? 12682 grep -v '^ *+' conftest.er1 >conftest.err 12683 rm -f conftest.er1 12684 cat conftest.err >&5 12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12686 (exit $ac_status); } && 12687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12689 (eval $ac_try) 2>&5 12690 ac_status=$? 12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12692 (exit $ac_status); }; } && 12693 { ac_try='test -s conftest$ac_exeext' 12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12695 (eval $ac_try) 2>&5 12696 ac_status=$? 12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12698 (exit $ac_status); }; }; then 12699 eval "$as_ac_var=yes" 12700else 12701 echo "$as_me: failed program was:" >&5 12702sed 's/^/| /' conftest.$ac_ext >&5 12703 12704eval "$as_ac_var=no" 12705fi 12706rm -f conftest.err conftest.$ac_objext \ 12707 conftest$ac_exeext conftest.$ac_ext 12708fi 12709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12710echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12711if test `eval echo '${'$as_ac_var'}'` = yes; then 12712 cat >>confdefs.h <<_ACEOF 12713#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12714_ACEOF 12715 12716else 12717 12718 12719echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 12720echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 12721if test "${ac_cv_lib_socket_socket+set}" = set; then 12722 echo $ECHO_N "(cached) $ECHO_C" >&6 12723else 12724 ac_check_lib_save_LIBS=$LIBS 12725LIBS="-lsocket $cf_cv_netlibs $LIBS" 12726cat >conftest.$ac_ext <<_ACEOF 12727/* confdefs.h. */ 12728_ACEOF 12729cat confdefs.h >>conftest.$ac_ext 12730cat >>conftest.$ac_ext <<_ACEOF 12731/* end confdefs.h. */ 12732 12733/* Override any gcc2 internal prototype to avoid an error. */ 12734#ifdef __cplusplus 12735extern "C" 12736#endif 12737/* We use char because int might match the return type of a gcc2 12738 builtin and then its argument prototype would still apply. */ 12739char socket (); 12740int 12741main () 12742{ 12743socket (); 12744 ; 12745 return 0; 12746} 12747_ACEOF 12748rm -f conftest.$ac_objext conftest$ac_exeext 12749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12750 (eval $ac_link) 2>conftest.er1 12751 ac_status=$? 12752 grep -v '^ *+' conftest.er1 >conftest.err 12753 rm -f conftest.er1 12754 cat conftest.err >&5 12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12756 (exit $ac_status); } && 12757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12759 (eval $ac_try) 2>&5 12760 ac_status=$? 12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12762 (exit $ac_status); }; } && 12763 { ac_try='test -s conftest$ac_exeext' 12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12765 (eval $ac_try) 2>&5 12766 ac_status=$? 12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12768 (exit $ac_status); }; }; then 12769 ac_cv_lib_socket_socket=yes 12770else 12771 echo "$as_me: failed program was:" >&5 12772sed 's/^/| /' conftest.$ac_ext >&5 12773 12774ac_cv_lib_socket_socket=no 12775fi 12776rm -f conftest.err conftest.$ac_objext \ 12777 conftest$ac_exeext conftest.$ac_ext 12778LIBS=$ac_check_lib_save_LIBS 12779fi 12780echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 12781echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 12782if test $ac_cv_lib_socket_socket = yes; then 12783 12784 12785cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'` 12786 12787 12788cat >>confdefs.h <<_ACEOF 12789#define HAVE_$cf_tr_func 1 12790_ACEOF 12791 12792 ac_cv_func_socket=yes 12793 cf_cv_netlibs="-lsocket $cf_cv_netlibs" 12794else 12795 12796 ac_cv_func_socket=unknown 12797 unset ac_cv_func_socket 2>/dev/null 12798 12799 12800echo "$as_me:$LINENO: checking for socket in -lbsd" >&5 12801echo $ECHO_N "checking for socket in -lbsd... $ECHO_C" >&6 12802if test "${ac_cv_lib_bsd_socket+set}" = set; then 12803 echo $ECHO_N "(cached) $ECHO_C" >&6 12804else 12805 ac_check_lib_save_LIBS=$LIBS 12806LIBS="-lbsd $cf_cv_netlibs $LIBS" 12807cat >conftest.$ac_ext <<_ACEOF 12808/* confdefs.h. */ 12809_ACEOF 12810cat confdefs.h >>conftest.$ac_ext 12811cat >>conftest.$ac_ext <<_ACEOF 12812/* end confdefs.h. */ 12813 12814/* Override any gcc2 internal prototype to avoid an error. */ 12815#ifdef __cplusplus 12816extern "C" 12817#endif 12818/* We use char because int might match the return type of a gcc2 12819 builtin and then its argument prototype would still apply. */ 12820char socket (); 12821int 12822main () 12823{ 12824socket (); 12825 ; 12826 return 0; 12827} 12828_ACEOF 12829rm -f conftest.$ac_objext conftest$ac_exeext 12830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12831 (eval $ac_link) 2>conftest.er1 12832 ac_status=$? 12833 grep -v '^ *+' conftest.er1 >conftest.err 12834 rm -f conftest.er1 12835 cat conftest.err >&5 12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12837 (exit $ac_status); } && 12838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12840 (eval $ac_try) 2>&5 12841 ac_status=$? 12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12843 (exit $ac_status); }; } && 12844 { ac_try='test -s conftest$ac_exeext' 12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12846 (eval $ac_try) 2>&5 12847 ac_status=$? 12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12849 (exit $ac_status); }; }; then 12850 ac_cv_lib_bsd_socket=yes 12851else 12852 echo "$as_me: failed program was:" >&5 12853sed 's/^/| /' conftest.$ac_ext >&5 12854 12855ac_cv_lib_bsd_socket=no 12856fi 12857rm -f conftest.err conftest.$ac_objext \ 12858 conftest$ac_exeext conftest.$ac_ext 12859LIBS=$ac_check_lib_save_LIBS 12860fi 12861echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_socket" >&5 12862echo "${ECHO_T}$ac_cv_lib_bsd_socket" >&6 12863if test $ac_cv_lib_bsd_socket = yes; then 12864 12865 12866cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'` 12867 12868 12869cat >>confdefs.h <<_ACEOF 12870#define HAVE_$cf_tr_func 1 12871_ACEOF 12872 12873 ac_cv_func_socket=yes 12874 cf_cv_netlibs="-lbsd $cf_cv_netlibs" 12875else 12876 12877 ac_cv_func_socket=unknown 12878 unset ac_cv_func_socket 2>/dev/null 12879 12880fi 12881 12882 12883fi 12884 12885 12886fi 12887done 12888 12889fi 12890# 12891 12892for ac_func in gethostbyname 12893do 12894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12895echo "$as_me:$LINENO: checking for $ac_func" >&5 12896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12897if eval "test \"\${$as_ac_var+set}\" = set"; then 12898 echo $ECHO_N "(cached) $ECHO_C" >&6 12899else 12900 cat >conftest.$ac_ext <<_ACEOF 12901/* confdefs.h. */ 12902_ACEOF 12903cat confdefs.h >>conftest.$ac_ext 12904cat >>conftest.$ac_ext <<_ACEOF 12905/* end confdefs.h. */ 12906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12907 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12908#define $ac_func innocuous_$ac_func 12909 12910/* System header to define __stub macros and hopefully few prototypes, 12911 which can conflict with char $ac_func (); below. 12912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12913 <limits.h> exists even on freestanding compilers. */ 12914 12915#ifdef __STDC__ 12916# include <limits.h> 12917#else 12918# include <assert.h> 12919#endif 12920 12921#undef $ac_func 12922 12923/* Override any gcc2 internal prototype to avoid an error. */ 12924#ifdef __cplusplus 12925extern "C" 12926{ 12927#endif 12928/* We use char because int might match the return type of a gcc2 12929 builtin and then its argument prototype would still apply. */ 12930char $ac_func (); 12931/* The GNU C library defines this for functions which it implements 12932 to always fail with ENOSYS. Some functions are actually named 12933 something starting with __ and the normal name is an alias. */ 12934#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12935choke me 12936#else 12937char (*f) () = $ac_func; 12938#endif 12939#ifdef __cplusplus 12940} 12941#endif 12942 12943int 12944main () 12945{ 12946return f != $ac_func; 12947 ; 12948 return 0; 12949} 12950_ACEOF 12951rm -f conftest.$ac_objext conftest$ac_exeext 12952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12953 (eval $ac_link) 2>conftest.er1 12954 ac_status=$? 12955 grep -v '^ *+' conftest.er1 >conftest.err 12956 rm -f conftest.er1 12957 cat conftest.err >&5 12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12959 (exit $ac_status); } && 12960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12962 (eval $ac_try) 2>&5 12963 ac_status=$? 12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12965 (exit $ac_status); }; } && 12966 { ac_try='test -s conftest$ac_exeext' 12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12968 (eval $ac_try) 2>&5 12969 ac_status=$? 12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12971 (exit $ac_status); }; }; then 12972 eval "$as_ac_var=yes" 12973else 12974 echo "$as_me: failed program was:" >&5 12975sed 's/^/| /' conftest.$ac_ext >&5 12976 12977eval "$as_ac_var=no" 12978fi 12979rm -f conftest.err conftest.$ac_objext \ 12980 conftest$ac_exeext conftest.$ac_ext 12981fi 12982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12984if test `eval echo '${'$as_ac_var'}'` = yes; then 12985 cat >>confdefs.h <<_ACEOF 12986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12987_ACEOF 12988 12989else 12990 12991 12992echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 12993echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 12994if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 12995 echo $ECHO_N "(cached) $ECHO_C" >&6 12996else 12997 ac_check_lib_save_LIBS=$LIBS 12998LIBS="-lnsl $cf_cv_netlibs $LIBS" 12999cat >conftest.$ac_ext <<_ACEOF 13000/* confdefs.h. */ 13001_ACEOF 13002cat confdefs.h >>conftest.$ac_ext 13003cat >>conftest.$ac_ext <<_ACEOF 13004/* end confdefs.h. */ 13005 13006/* Override any gcc2 internal prototype to avoid an error. */ 13007#ifdef __cplusplus 13008extern "C" 13009#endif 13010/* We use char because int might match the return type of a gcc2 13011 builtin and then its argument prototype would still apply. */ 13012char gethostbyname (); 13013int 13014main () 13015{ 13016gethostbyname (); 13017 ; 13018 return 0; 13019} 13020_ACEOF 13021rm -f conftest.$ac_objext conftest$ac_exeext 13022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13023 (eval $ac_link) 2>conftest.er1 13024 ac_status=$? 13025 grep -v '^ *+' conftest.er1 >conftest.err 13026 rm -f conftest.er1 13027 cat conftest.err >&5 13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13029 (exit $ac_status); } && 13030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13032 (eval $ac_try) 2>&5 13033 ac_status=$? 13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13035 (exit $ac_status); }; } && 13036 { ac_try='test -s conftest$ac_exeext' 13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13038 (eval $ac_try) 2>&5 13039 ac_status=$? 13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13041 (exit $ac_status); }; }; then 13042 ac_cv_lib_nsl_gethostbyname=yes 13043else 13044 echo "$as_me: failed program was:" >&5 13045sed 's/^/| /' conftest.$ac_ext >&5 13046 13047ac_cv_lib_nsl_gethostbyname=no 13048fi 13049rm -f conftest.err conftest.$ac_objext \ 13050 conftest$ac_exeext conftest.$ac_ext 13051LIBS=$ac_check_lib_save_LIBS 13052fi 13053echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 13054echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 13055if test $ac_cv_lib_nsl_gethostbyname = yes; then 13056 13057 13058cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'` 13059 13060 13061cat >>confdefs.h <<_ACEOF 13062#define HAVE_$cf_tr_func 1 13063_ACEOF 13064 13065 ac_cv_func_gethostbyname=yes 13066 cf_cv_netlibs="-lnsl $cf_cv_netlibs" 13067else 13068 13069 ac_cv_func_gethostbyname=unknown 13070 unset ac_cv_func_gethostbyname 2>/dev/null 13071 13072fi 13073 13074 13075fi 13076done 13077 13078# 13079 13080for ac_func in strcasecmp 13081do 13082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13083echo "$as_me:$LINENO: checking for $ac_func" >&5 13084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13085if eval "test \"\${$as_ac_var+set}\" = set"; then 13086 echo $ECHO_N "(cached) $ECHO_C" >&6 13087else 13088 cat >conftest.$ac_ext <<_ACEOF 13089/* confdefs.h. */ 13090_ACEOF 13091cat confdefs.h >>conftest.$ac_ext 13092cat >>conftest.$ac_ext <<_ACEOF 13093/* end confdefs.h. */ 13094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13095 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13096#define $ac_func innocuous_$ac_func 13097 13098/* System header to define __stub macros and hopefully few prototypes, 13099 which can conflict with char $ac_func (); below. 13100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13101 <limits.h> exists even on freestanding compilers. */ 13102 13103#ifdef __STDC__ 13104# include <limits.h> 13105#else 13106# include <assert.h> 13107#endif 13108 13109#undef $ac_func 13110 13111/* Override any gcc2 internal prototype to avoid an error. */ 13112#ifdef __cplusplus 13113extern "C" 13114{ 13115#endif 13116/* We use char because int might match the return type of a gcc2 13117 builtin and then its argument prototype would still apply. */ 13118char $ac_func (); 13119/* The GNU C library defines this for functions which it implements 13120 to always fail with ENOSYS. Some functions are actually named 13121 something starting with __ and the normal name is an alias. */ 13122#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13123choke me 13124#else 13125char (*f) () = $ac_func; 13126#endif 13127#ifdef __cplusplus 13128} 13129#endif 13130 13131int 13132main () 13133{ 13134return f != $ac_func; 13135 ; 13136 return 0; 13137} 13138_ACEOF 13139rm -f conftest.$ac_objext conftest$ac_exeext 13140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13141 (eval $ac_link) 2>conftest.er1 13142 ac_status=$? 13143 grep -v '^ *+' conftest.er1 >conftest.err 13144 rm -f conftest.er1 13145 cat conftest.err >&5 13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13147 (exit $ac_status); } && 13148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13150 (eval $ac_try) 2>&5 13151 ac_status=$? 13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13153 (exit $ac_status); }; } && 13154 { ac_try='test -s conftest$ac_exeext' 13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13156 (eval $ac_try) 2>&5 13157 ac_status=$? 13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13159 (exit $ac_status); }; }; then 13160 eval "$as_ac_var=yes" 13161else 13162 echo "$as_me: failed program was:" >&5 13163sed 's/^/| /' conftest.$ac_ext >&5 13164 13165eval "$as_ac_var=no" 13166fi 13167rm -f conftest.err conftest.$ac_objext \ 13168 conftest$ac_exeext conftest.$ac_ext 13169fi 13170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13172if test `eval echo '${'$as_ac_var'}'` = yes; then 13173 cat >>confdefs.h <<_ACEOF 13174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13175_ACEOF 13176 13177else 13178 13179 13180echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 13181echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 13182if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then 13183 echo $ECHO_N "(cached) $ECHO_C" >&6 13184else 13185 ac_check_lib_save_LIBS=$LIBS 13186LIBS="-lresolv $cf_cv_netlibs $LIBS" 13187cat >conftest.$ac_ext <<_ACEOF 13188/* confdefs.h. */ 13189_ACEOF 13190cat confdefs.h >>conftest.$ac_ext 13191cat >>conftest.$ac_ext <<_ACEOF 13192/* end confdefs.h. */ 13193 13194/* Override any gcc2 internal prototype to avoid an error. */ 13195#ifdef __cplusplus 13196extern "C" 13197#endif 13198/* We use char because int might match the return type of a gcc2 13199 builtin and then its argument prototype would still apply. */ 13200char strcasecmp (); 13201int 13202main () 13203{ 13204strcasecmp (); 13205 ; 13206 return 0; 13207} 13208_ACEOF 13209rm -f conftest.$ac_objext conftest$ac_exeext 13210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13211 (eval $ac_link) 2>conftest.er1 13212 ac_status=$? 13213 grep -v '^ *+' conftest.er1 >conftest.err 13214 rm -f conftest.er1 13215 cat conftest.err >&5 13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13217 (exit $ac_status); } && 13218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13220 (eval $ac_try) 2>&5 13221 ac_status=$? 13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13223 (exit $ac_status); }; } && 13224 { ac_try='test -s conftest$ac_exeext' 13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13226 (eval $ac_try) 2>&5 13227 ac_status=$? 13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13229 (exit $ac_status); }; }; then 13230 ac_cv_lib_resolv_strcasecmp=yes 13231else 13232 echo "$as_me: failed program was:" >&5 13233sed 's/^/| /' conftest.$ac_ext >&5 13234 13235ac_cv_lib_resolv_strcasecmp=no 13236fi 13237rm -f conftest.err conftest.$ac_objext \ 13238 conftest$ac_exeext conftest.$ac_ext 13239LIBS=$ac_check_lib_save_LIBS 13240fi 13241echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 13242echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 13243if test $ac_cv_lib_resolv_strcasecmp = yes; then 13244 13245 13246cf_tr_func=`echo strcasecmp | tr '[a-z]' '[A-Z]'` 13247 13248 13249cat >>confdefs.h <<_ACEOF 13250#define HAVE_$cf_tr_func 1 13251_ACEOF 13252 13253 ac_cv_func_strcasecmp=yes 13254 cf_cv_netlibs="-lresolv $cf_cv_netlibs" 13255else 13256 13257 ac_cv_func_strcasecmp=unknown 13258 unset ac_cv_func_strcasecmp 2>/dev/null 13259 13260fi 13261 13262 13263fi 13264done 13265 13266 13267fi 13268 13269LIBS="$LIBS $cf_cv_netlibs" 13270test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6 13271 13272 if test "${ac_cv_header_customs_h+set}" = set; then 13273 echo "$as_me:$LINENO: checking for customs.h" >&5 13274echo $ECHO_N "checking for customs.h... $ECHO_C" >&6 13275if test "${ac_cv_header_customs_h+set}" = set; then 13276 echo $ECHO_N "(cached) $ECHO_C" >&6 13277fi 13278echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5 13279echo "${ECHO_T}$ac_cv_header_customs_h" >&6 13280else 13281 # Is the header compilable? 13282echo "$as_me:$LINENO: checking customs.h usability" >&5 13283echo $ECHO_N "checking customs.h usability... $ECHO_C" >&6 13284cat >conftest.$ac_ext <<_ACEOF 13285/* confdefs.h. */ 13286_ACEOF 13287cat confdefs.h >>conftest.$ac_ext 13288cat >>conftest.$ac_ext <<_ACEOF 13289/* end confdefs.h. */ 13290$ac_includes_default 13291#include <customs.h> 13292_ACEOF 13293rm -f conftest.$ac_objext 13294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13295 (eval $ac_compile) 2>conftest.er1 13296 ac_status=$? 13297 grep -v '^ *+' conftest.er1 >conftest.err 13298 rm -f conftest.er1 13299 cat conftest.err >&5 13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13301 (exit $ac_status); } && 13302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13304 (eval $ac_try) 2>&5 13305 ac_status=$? 13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13307 (exit $ac_status); }; } && 13308 { ac_try='test -s conftest.$ac_objext' 13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13310 (eval $ac_try) 2>&5 13311 ac_status=$? 13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13313 (exit $ac_status); }; }; then 13314 ac_header_compiler=yes 13315else 13316 echo "$as_me: failed program was:" >&5 13317sed 's/^/| /' conftest.$ac_ext >&5 13318 13319ac_header_compiler=no 13320fi 13321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13322echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13323echo "${ECHO_T}$ac_header_compiler" >&6 13324 13325# Is the header present? 13326echo "$as_me:$LINENO: checking customs.h presence" >&5 13327echo $ECHO_N "checking customs.h presence... $ECHO_C" >&6 13328cat >conftest.$ac_ext <<_ACEOF 13329/* confdefs.h. */ 13330_ACEOF 13331cat confdefs.h >>conftest.$ac_ext 13332cat >>conftest.$ac_ext <<_ACEOF 13333/* end confdefs.h. */ 13334#include <customs.h> 13335_ACEOF 13336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13338 ac_status=$? 13339 grep -v '^ *+' conftest.er1 >conftest.err 13340 rm -f conftest.er1 13341 cat conftest.err >&5 13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13343 (exit $ac_status); } >/dev/null; then 13344 if test -s conftest.err; then 13345 ac_cpp_err=$ac_c_preproc_warn_flag 13346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13347 else 13348 ac_cpp_err= 13349 fi 13350else 13351 ac_cpp_err=yes 13352fi 13353if test -z "$ac_cpp_err"; then 13354 ac_header_preproc=yes 13355else 13356 echo "$as_me: failed program was:" >&5 13357sed 's/^/| /' conftest.$ac_ext >&5 13358 13359 ac_header_preproc=no 13360fi 13361rm -f conftest.err conftest.$ac_ext 13362echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13363echo "${ECHO_T}$ac_header_preproc" >&6 13364 13365# So? What about this header? 13366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13367 yes:no: ) 13368 { echo "$as_me:$LINENO: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&5 13369echo "$as_me: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13370 { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the compiler's result" >&5 13371echo "$as_me: WARNING: customs.h: proceeding with the compiler's result" >&2;} 13372 ac_header_preproc=yes 13373 ;; 13374 no:yes:* ) 13375 { echo "$as_me:$LINENO: WARNING: customs.h: present but cannot be compiled" >&5 13376echo "$as_me: WARNING: customs.h: present but cannot be compiled" >&2;} 13377 { echo "$as_me:$LINENO: WARNING: customs.h: check for missing prerequisite headers?" >&5 13378echo "$as_me: WARNING: customs.h: check for missing prerequisite headers?" >&2;} 13379 { echo "$as_me:$LINENO: WARNING: customs.h: see the Autoconf documentation" >&5 13380echo "$as_me: WARNING: customs.h: see the Autoconf documentation" >&2;} 13381 { echo "$as_me:$LINENO: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&5 13382echo "$as_me: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&2;} 13383 { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the preprocessor's result" >&5 13384echo "$as_me: WARNING: customs.h: proceeding with the preprocessor's result" >&2;} 13385 { echo "$as_me:$LINENO: WARNING: customs.h: in the future, the compiler will take precedence" >&5 13386echo "$as_me: WARNING: customs.h: in the future, the compiler will take precedence" >&2;} 13387 ( 13388 cat <<\_ASBOX 13389## ------------------------------- ## 13390## Report this to bug-make@gnu.org ## 13391## ------------------------------- ## 13392_ASBOX 13393 ) | 13394 sed "s/^/$as_me: WARNING: /" >&2 13395 ;; 13396esac 13397echo "$as_me:$LINENO: checking for customs.h" >&5 13398echo $ECHO_N "checking for customs.h... $ECHO_C" >&6 13399if test "${ac_cv_header_customs_h+set}" = set; then 13400 echo $ECHO_N "(cached) $ECHO_C" >&6 13401else 13402 ac_cv_header_customs_h=$ac_header_preproc 13403fi 13404echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5 13405echo "${ECHO_T}$ac_cv_header_customs_h" >&6 13406 13407fi 13408if test $ac_cv_header_customs_h = yes; then 13409 use_customs=true 13410 REMOTE=cstms 13411 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags" 13412else 13413 with_customs=no 13414 CPPFLAGS="$make_cppflags" make_badcust=yes 13415fi 13416 13417 13418 ;; 13419 esac 13420fi; 13421# Tell automake about this, so it can include the right .c files. 13422 13423 13424if test "$use_customs" = true; then 13425 USE_CUSTOMS_TRUE= 13426 USE_CUSTOMS_FALSE='#' 13427else 13428 USE_CUSTOMS_TRUE='#' 13429 USE_CUSTOMS_FALSE= 13430fi 13431 13432 13433# See if the user asked to handle case insensitive file systems. 13434 13435 13436 13437# Check whether --enable-case-insensitive-file-system or --disable-case-insensitive-file-system was given. 13438if test "${enable_case_insensitive_file_system+set}" = set; then 13439 enableval="$enable_case_insensitive_file_system" 13440 case_insensitive_fs="yes" cat >>confdefs.h <<\_ACEOF 13441#define HAVE_CASE_INSENSITIVE_FS 1 13442_ACEOF 13443 13444else 13445 case_insensitive_fs="no" 13446fi; 13447 13448# See if we can handle the job server feature, and if the user wants it. 13449 13450# Check whether --enable-job-server or --disable-job-server was given. 13451if test "${enable_job_server+set}" = set; then 13452 enableval="$enable_job_server" 13453 make_cv_job_server="$enableval" user_job_server="$enableval" 13454else 13455 make_cv_job_server="yes" 13456fi; 13457 13458has_wait_nohang=yes 13459case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in 13460 no/no) has_wait_nohang=no ;; 13461esac 13462 13463echo "$as_me:$LINENO: checking for SA_RESTART" >&5 13464echo $ECHO_N "checking for SA_RESTART... $ECHO_C" >&6 13465if test "${make_cv_sa_restart+set}" = set; then 13466 echo $ECHO_N "(cached) $ECHO_C" >&6 13467else 13468 13469 cat >conftest.$ac_ext <<_ACEOF 13470/* confdefs.h. */ 13471_ACEOF 13472cat confdefs.h >>conftest.$ac_ext 13473cat >>conftest.$ac_ext <<_ACEOF 13474/* end confdefs.h. */ 13475#include <signal.h> 13476int 13477main () 13478{ 13479return SA_RESTART; 13480 ; 13481 return 0; 13482} 13483_ACEOF 13484rm -f conftest.$ac_objext 13485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13486 (eval $ac_compile) 2>conftest.er1 13487 ac_status=$? 13488 grep -v '^ *+' conftest.er1 >conftest.err 13489 rm -f conftest.er1 13490 cat conftest.err >&5 13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13492 (exit $ac_status); } && 13493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13495 (eval $ac_try) 2>&5 13496 ac_status=$? 13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13498 (exit $ac_status); }; } && 13499 { ac_try='test -s conftest.$ac_objext' 13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13501 (eval $ac_try) 2>&5 13502 ac_status=$? 13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13504 (exit $ac_status); }; }; then 13505 make_cv_sa_restart=yes 13506else 13507 echo "$as_me: failed program was:" >&5 13508sed 's/^/| /' conftest.$ac_ext >&5 13509 13510make_cv_sa_restart=no 13511fi 13512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13513fi 13514echo "$as_me:$LINENO: result: $make_cv_sa_restart" >&5 13515echo "${ECHO_T}$make_cv_sa_restart" >&6 13516 13517if test "$make_cv_sa_restart" != no; then 13518 13519cat >>confdefs.h <<\_ACEOF 13520#define HAVE_SA_RESTART 1 13521_ACEOF 13522 13523fi 13524 13525# enable make_cv_sa_restart for OS/2 so that the jobserver will be enabled, 13526# but do it after HAVE_SA_RESTART has been defined. 13527case "$host_os" in 13528 os2*) make_cv_sa_restart=yes ;; 13529esac 13530 13531case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in 13532 yes/yes/yes/yes/yes) 13533 13534cat >>confdefs.h <<\_ACEOF 13535#define MAKE_JOBSERVER 1 13536_ACEOF 13537;; 13538esac 13539 13540# if we have both lstat() and readlink() then we can support symlink 13541# timechecks. 13542case "$ac_cv_func_lstat/$ac_cv_func_readlink" in 13543 yes/yes) 13544 13545cat >>confdefs.h <<\_ACEOF 13546#define MAKE_SYMLINKS 1 13547_ACEOF 13548;; 13549esac 13550 13551# Find the SCCS commands, so we can include them in our default rules. 13552 13553echo "$as_me:$LINENO: checking for location of SCCS get command" >&5 13554echo $ECHO_N "checking for location of SCCS get command... $ECHO_C" >&6 13555if test "${make_cv_path_sccs_get+set}" = set; then 13556 echo $ECHO_N "(cached) $ECHO_C" >&6 13557else 13558 13559if test -f /usr/sccs/get; then 13560 make_cv_path_sccs_get=/usr/sccs/get 13561else 13562 make_cv_path_sccs_get=get 13563fi 13564fi 13565echo "$as_me:$LINENO: result: $make_cv_path_sccs_get" >&5 13566echo "${ECHO_T}$make_cv_path_sccs_get" >&6 13567 13568cat >>confdefs.h <<_ACEOF 13569#define SCCS_GET "$make_cv_path_sccs_get" 13570_ACEOF 13571 13572 13573ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later. 13574if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 && 13575 test -f s.conftest; then 13576 # We successfully created an SCCS file. 13577 echo "$as_me:$LINENO: checking if SCCS get command understands -G" >&5 13578echo $ECHO_N "checking if SCCS get command understands -G... $ECHO_C" >&6 13579if test "${make_cv_sys_get_minus_G+set}" = set; then 13580 echo $ECHO_N "(cached) $ECHO_C" >&6 13581else 13582 13583 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 && 13584 test -f conftoast; then 13585 make_cv_sys_get_minus_G=yes 13586 else 13587 make_cv_sys_get_minus_G=no 13588 fi 13589fi 13590echo "$as_me:$LINENO: result: $make_cv_sys_get_minus_G" >&5 13591echo "${ECHO_T}$make_cv_sys_get_minus_G" >&6 13592 case "$make_cv_sys_get_minus_G" in 13593 yes) 13594cat >>confdefs.h <<\_ACEOF 13595#define SCCS_GET_MINUS_G 1 13596_ACEOF 13597;; 13598 esac 13599fi 13600rm -f s.conftest conftoast 13601 13602# Check the system to see if it provides GNU glob. If not, use our 13603# local version. 13604 13605echo "$as_me:$LINENO: checking if system libc has GNU glob" >&5 13606echo $ECHO_N "checking if system libc has GNU glob... $ECHO_C" >&6 13607if test "${make_cv_sys_gnu_glob+set}" = set; then 13608 echo $ECHO_N "(cached) $ECHO_C" >&6 13609else 13610 13611 cat >conftest.$ac_ext <<_ACEOF 13612/* confdefs.h. */ 13613_ACEOF 13614cat confdefs.h >>conftest.$ac_ext 13615cat >>conftest.$ac_ext <<_ACEOF 13616/* end confdefs.h. */ 13617 13618#include <features.h> 13619#include <glob.h> 13620#include <fnmatch.h> 13621 13622#define GLOB_INTERFACE_VERSION 1 13623#if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1 13624# include <gnu-versions.h> 13625# if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION 13626 gnu glob 13627# endif 13628#endif 13629 13630_ACEOF 13631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13632 $EGREP "gnu glob" >/dev/null 2>&1; then 13633 echo "$as_me:$LINENO: result: yes" >&5 13634echo "${ECHO_T}yes" >&6 13635make_cv_sys_gnu_glob=yes 13636else 13637 echo "$as_me:$LINENO: result: no; using local copy" >&5 13638echo "${ECHO_T}no; using local copy" >&6 13639 GLOBINC='-I$(srcdir)/glob' 13640 GLOBLIB=glob/libglob.a 13641make_cv_sys_gnu_glob=no 13642fi 13643rm -f conftest* 13644 13645fi 13646 13647# Tell automake about this, so it can build the right .c files. 13648 13649 13650if test "$make_cv_sys_gnu_glob" = no; then 13651 USE_LOCAL_GLOB_TRUE= 13652 USE_LOCAL_GLOB_FALSE='#' 13653else 13654 USE_LOCAL_GLOB_TRUE='#' 13655 USE_LOCAL_GLOB_FALSE= 13656fi 13657 13658 13659# Let the makefile know what our build host is 13660 13661 13662cat >>confdefs.h <<_ACEOF 13663#define MAKE_HOST "$host" 13664_ACEOF 13665 13666MAKE_HOST="$host" 13667 13668 13669w32_target_env=no 13670 13671 13672if false; then 13673 WINDOWSENV_TRUE= 13674 WINDOWSENV_FALSE='#' 13675else 13676 WINDOWSENV_TRUE='#' 13677 WINDOWSENV_FALSE= 13678fi 13679 13680 13681case "$host" in 13682 *-*-mingw32) 13683 13684 13685if true; then 13686 WINDOWSENV_TRUE= 13687 WINDOWSENV_FALSE='#' 13688else 13689 WINDOWSENV_TRUE='#' 13690 WINDOWSENV_FALSE= 13691fi 13692 13693 w32_target_env=yes 13694 13695cat >>confdefs.h <<\_ACEOF 13696#define WINDOWS32 1 13697_ACEOF 13698 13699 13700cat >>confdefs.h <<\_ACEOF 13701#define HAVE_DOS_PATHS 1 13702_ACEOF 13703 13704 ;; 13705esac 13706 13707# Include the Maintainer's Makefile section, if it's here. 13708 13709MAINT_MAKEFILE=/dev/null 13710if test -r "$srcdir/maintMakefile"; then 13711 MAINT_MAKEFILE="$srcdir/maintMakefile" 13712fi 13713 13714 13715# Allow building with dmalloc 13716echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5 13717echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6 13718 13719# Check whether --with-dmalloc or --without-dmalloc was given. 13720if test "${with_dmalloc+set}" = set; then 13721 withval="$with_dmalloc" 13722 if test "$withval" = yes; then 13723 echo "$as_me:$LINENO: result: yes" >&5 13724echo "${ECHO_T}yes" >&6 13725 13726cat >>confdefs.h <<\_ACEOF 13727#define WITH_DMALLOC 1 13728_ACEOF 13729 13730 LIBS="$LIBS -ldmalloc" 13731 LDFLAGS="$LDFLAGS -g" 13732else 13733 echo "$as_me:$LINENO: result: no" >&5 13734echo "${ECHO_T}no" >&6 13735fi 13736else 13737 echo "$as_me:$LINENO: result: no" >&5 13738echo "${ECHO_T}no" >&6 13739fi; 13740 13741 13742# Forcibly disable SET_MAKE. If it's set it breaks things like the test 13743# scripts, etc. 13744SET_MAKE= 13745 13746# Sanity check and inform the user of what we found 13747 13748case "$make_badcust" in 13749 yes) echo 13750 echo "WARNING: --with-customs specified but no customs.h could be found;" 13751 echo " disabling Customs support." 13752 echo ;; 13753esac 13754 13755case "$with_customs" in 13756 ""|n|no|y|ye|yes) ;; 13757 *) if test -f "$with_customs/lib/libcustoms.a"; then 13758 : 13759 else 13760 echo 13761 echo "WARNING: '$with_customs/lib' does not appear to contain the" 13762 echo " Customs library. You must build and install Customs" 13763 echo " before compiling GNU make." 13764 echo 13765 fi ;; 13766esac 13767 13768case "$has_wait_nohang" in 13769 no) echo 13770 echo "WARNING: Your system has neither waitpid() nor wait3()." 13771 echo " Without one of these, signal handling is unreliable." 13772 echo " You should be aware that running GNU make with -j" 13773 echo " could result in erratic behavior." 13774 echo ;; 13775esac 13776 13777case "$make_cv_job_server/$user_job_server" in 13778 no/yes) echo 13779 echo "WARNING: Make job server requires a POSIX-ish system that" 13780 echo " supports the pipe(), sigaction(), and either" 13781 echo " waitpid() or wait3() functions. Your system doesn't" 13782 echo " appear to provide one or more of those." 13783 echo " Disabling job server support." 13784 echo ;; 13785esac 13786 13787 13788# Specify what files are to be created. 13789 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile" 13790 13791 13792# OK, do it! 13793 13794cat >confcache <<\_ACEOF 13795# This file is a shell script that caches the results of configure 13796# tests run on this system so they can be shared between configure 13797# scripts and configure runs, see configure's option --config-cache. 13798# It is not useful on other systems. If it contains results you don't 13799# want to keep, you may remove or edit it. 13800# 13801# config.status only pays attention to the cache file if you give it 13802# the --recheck option to rerun configure. 13803# 13804# `ac_cv_env_foo' variables (set or unset) will be overridden when 13805# loading this file, other *unset* `ac_cv_foo' will be assigned the 13806# following values. 13807 13808_ACEOF 13809 13810# The following way of writing the cache mishandles newlines in values, 13811# but we know of no workaround that is simple, portable, and efficient. 13812# So, don't put newlines in cache variables' values. 13813# Ultrix sh set writes to stderr and can't be redirected directly, 13814# and sets the high bit in the cache file unless we assign to the vars. 13815{ 13816 (set) 2>&1 | 13817 case `(ac_space=' '; set | grep ac_space) 2>&1` in 13818 *ac_space=\ *) 13819 # `set' does not quote correctly, so add quotes (double-quote 13820 # substitution turns \\\\ into \\, and sed turns \\ into \). 13821 sed -n \ 13822 "s/'/'\\\\''/g; 13823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13824 ;; 13825 *) 13826 # `set' quotes correctly as required by POSIX, so do not add quotes. 13827 sed -n \ 13828 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 13829 ;; 13830 esac; 13831} | 13832 sed ' 13833 t clear 13834 : clear 13835 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13836 t end 13837 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13838 : end' >>confcache 13839if diff $cache_file confcache >/dev/null 2>&1; then :; else 13840 if test -w $cache_file; then 13841 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 13842 cat confcache >$cache_file 13843 else 13844 echo "not updating unwritable cache $cache_file" 13845 fi 13846fi 13847rm -f confcache 13848 13849test "x$prefix" = xNONE && prefix=$ac_default_prefix 13850# Let make expand exec_prefix. 13851test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13852 13853# VPATH may cause trouble with some makes, so we remove $(srcdir), 13854# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13855# trailing colons and then remove the whole line if VPATH becomes empty 13856# (actually we leave an empty line to preserve line numbers). 13857if test "x$srcdir" = x.; then 13858 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13859s/:*\$(srcdir):*/:/; 13860s/:*\${srcdir}:*/:/; 13861s/:*@srcdir@:*/:/; 13862s/^\([^=]*=[ ]*\):*/\1/; 13863s/:*$//; 13864s/^[^=]*=[ ]*$//; 13865}' 13866fi 13867 13868DEFS=-DHAVE_CONFIG_H 13869 13870ac_libobjs= 13871ac_ltlibobjs= 13872for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13873 # 1. Remove the extension, and $U if already installed. 13874 ac_i=`echo "$ac_i" | 13875 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 13876 # 2. Add them. 13877 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 13878 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 13879done 13880LIBOBJS=$ac_libobjs 13881 13882LTLIBOBJS=$ac_ltlibobjs 13883 13884 13885if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13886 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13887Usually this means the macro was only invoked conditionally." >&5 13888echo "$as_me: error: conditional \"AMDEP\" was never defined. 13889Usually this means the macro was only invoked conditionally." >&2;} 13890 { (exit 1); exit 1; }; } 13891fi 13892if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13893 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13894Usually this means the macro was only invoked conditionally." >&5 13895echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13896Usually this means the macro was only invoked conditionally." >&2;} 13897 { (exit 1); exit 1; }; } 13898fi 13899if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then 13900 { { echo "$as_me:$LINENO: error: conditional \"USE_CUSTOMS\" was never defined. 13901Usually this means the macro was only invoked conditionally." >&5 13902echo "$as_me: error: conditional \"USE_CUSTOMS\" was never defined. 13903Usually this means the macro was only invoked conditionally." >&2;} 13904 { (exit 1); exit 1; }; } 13905fi 13906if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then 13907 { { echo "$as_me:$LINENO: error: conditional \"USE_LOCAL_GLOB\" was never defined. 13908Usually this means the macro was only invoked conditionally." >&5 13909echo "$as_me: error: conditional \"USE_LOCAL_GLOB\" was never defined. 13910Usually this means the macro was only invoked conditionally." >&2;} 13911 { (exit 1); exit 1; }; } 13912fi 13913if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then 13914 { { echo "$as_me:$LINENO: error: conditional \"WINDOWSENV\" was never defined. 13915Usually this means the macro was only invoked conditionally." >&5 13916echo "$as_me: error: conditional \"WINDOWSENV\" was never defined. 13917Usually this means the macro was only invoked conditionally." >&2;} 13918 { (exit 1); exit 1; }; } 13919fi 13920if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then 13921 { { echo "$as_me:$LINENO: error: conditional \"WINDOWSENV\" was never defined. 13922Usually this means the macro was only invoked conditionally." >&5 13923echo "$as_me: error: conditional \"WINDOWSENV\" was never defined. 13924Usually this means the macro was only invoked conditionally." >&2;} 13925 { (exit 1); exit 1; }; } 13926fi 13927 13928: ${CONFIG_STATUS=./config.status} 13929ac_clean_files_save=$ac_clean_files 13930ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13931{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13932echo "$as_me: creating $CONFIG_STATUS" >&6;} 13933cat >$CONFIG_STATUS <<_ACEOF 13934#! $SHELL 13935# Generated by $as_me. 13936# Run this file to recreate the current configuration. 13937# Compiler output produced by configure, useful for debugging 13938# configure, is in config.log if it exists. 13939 13940debug=false 13941ac_cs_recheck=false 13942ac_cs_silent=false 13943SHELL=\${CONFIG_SHELL-$SHELL} 13944_ACEOF 13945 13946cat >>$CONFIG_STATUS <<\_ACEOF 13947## --------------------- ## 13948## M4sh Initialization. ## 13949## --------------------- ## 13950 13951# Be Bourne compatible 13952if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13953 emulate sh 13954 NULLCMD=: 13955 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13956 # is contrary to our usage. Disable this feature. 13957 alias -g '${1+"$@"}'='"$@"' 13958elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 13959 set -o posix 13960fi 13961DUALCASE=1; export DUALCASE # for MKS sh 13962 13963# Support unset when possible. 13964if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13965 as_unset=unset 13966else 13967 as_unset=false 13968fi 13969 13970 13971# Work around bugs in pre-3.0 UWIN ksh. 13972$as_unset ENV MAIL MAILPATH 13973PS1='$ ' 13974PS2='> ' 13975PS4='+ ' 13976 13977# NLS nuisances. 13978for as_var in \ 13979 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13980 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13981 LC_TELEPHONE LC_TIME 13982do 13983 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13984 eval $as_var=C; export $as_var 13985 else 13986 $as_unset $as_var 13987 fi 13988done 13989 13990# Required to use basename. 13991if expr a : '\(a\)' >/dev/null 2>&1; then 13992 as_expr=expr 13993else 13994 as_expr=false 13995fi 13996 13997if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 13998 as_basename=basename 13999else 14000 as_basename=false 14001fi 14002 14003 14004# Name of the executable. 14005as_me=`$as_basename "$0" || 14006$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14007 X"$0" : 'X\(//\)$' \| \ 14008 X"$0" : 'X\(/\)$' \| \ 14009 . : '\(.\)' 2>/dev/null || 14010echo X/"$0" | 14011 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 14012 /^X\/\(\/\/\)$/{ s//\1/; q; } 14013 /^X\/\(\/\).*/{ s//\1/; q; } 14014 s/.*/./; q'` 14015 14016 14017# PATH needs CR, and LINENO needs CR and PATH. 14018# Avoid depending upon Character Ranges. 14019as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14020as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14021as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14022as_cr_digits='0123456789' 14023as_cr_alnum=$as_cr_Letters$as_cr_digits 14024 14025# The user is always right. 14026if test "${PATH_SEPARATOR+set}" != set; then 14027 echo "#! /bin/sh" >conf$$.sh 14028 echo "exit 0" >>conf$$.sh 14029 chmod +x conf$$.sh 14030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 14031 PATH_SEPARATOR=';' 14032 else 14033 PATH_SEPARATOR=: 14034 fi 14035 rm -f conf$$.sh 14036fi 14037 14038 14039 as_lineno_1=$LINENO 14040 as_lineno_2=$LINENO 14041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14042 test "x$as_lineno_1" != "x$as_lineno_2" && 14043 test "x$as_lineno_3" = "x$as_lineno_2" || { 14044 # Find who we are. Look in the path if we contain no path at all 14045 # relative or not. 14046 case $0 in 14047 *[\\/]* ) as_myself=$0 ;; 14048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14049for as_dir in $PATH 14050do 14051 IFS=$as_save_IFS 14052 test -z "$as_dir" && as_dir=. 14053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14054done 14055 14056 ;; 14057 esac 14058 # We did not find ourselves, most probably we were run as `sh COMMAND' 14059 # in which case we are not to be found in the path. 14060 if test "x$as_myself" = x; then 14061 as_myself=$0 14062 fi 14063 if test ! -f "$as_myself"; then 14064 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 14065echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 14066 { (exit 1); exit 1; }; } 14067 fi 14068 case $CONFIG_SHELL in 14069 '') 14070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14071for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 14072do 14073 IFS=$as_save_IFS 14074 test -z "$as_dir" && as_dir=. 14075 for as_base in sh bash ksh sh5; do 14076 case $as_dir in 14077 /*) 14078 if ("$as_dir/$as_base" -c ' 14079 as_lineno_1=$LINENO 14080 as_lineno_2=$LINENO 14081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14082 test "x$as_lineno_1" != "x$as_lineno_2" && 14083 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 14084 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 14085 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 14086 CONFIG_SHELL=$as_dir/$as_base 14087 export CONFIG_SHELL 14088 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 14089 fi;; 14090 esac 14091 done 14092done 14093;; 14094 esac 14095 14096 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14097 # uniformly replaced by the line number. The first 'sed' inserts a 14098 # line-number line before each line; the second 'sed' does the real 14099 # work. The second script uses 'N' to pair each line-number line 14100 # with the numbered line, and appends trailing '-' during 14101 # substitution so that $LINENO is not a special case at line end. 14102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14103 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 14104 sed '=' <$as_myself | 14105 sed ' 14106 N 14107 s,$,-, 14108 : loop 14109 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 14110 t loop 14111 s,-$,, 14112 s,^['$as_cr_digits']*\n,, 14113 ' >$as_me.lineno && 14114 chmod +x $as_me.lineno || 14115 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 14116echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 14117 { (exit 1); exit 1; }; } 14118 14119 # Don't try to exec as it changes $[0], causing all sort of problems 14120 # (the dirname of $[0] is not the place where we might find the 14121 # original and so on. Autoconf is especially sensible to this). 14122 . ./$as_me.lineno 14123 # Exit status is that of the last command. 14124 exit 14125} 14126 14127 14128case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 14129 *c*,-n*) ECHO_N= ECHO_C=' 14130' ECHO_T=' ' ;; 14131 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 14132 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 14133esac 14134 14135if expr a : '\(a\)' >/dev/null 2>&1; then 14136 as_expr=expr 14137else 14138 as_expr=false 14139fi 14140 14141rm -f conf$$ conf$$.exe conf$$.file 14142echo >conf$$.file 14143if ln -s conf$$.file conf$$ 2>/dev/null; then 14144 # We could just check for DJGPP; but this test a) works b) is more generic 14145 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 14146 if test -f conf$$.exe; then 14147 # Don't use ln at all; we don't have any links 14148 as_ln_s='cp -p' 14149 else 14150 as_ln_s='ln -s' 14151 fi 14152elif ln conf$$.file conf$$ 2>/dev/null; then 14153 as_ln_s=ln 14154else 14155 as_ln_s='cp -p' 14156fi 14157rm -f conf$$ conf$$.exe conf$$.file 14158 14159if mkdir -p . 2>/dev/null; then 14160 as_mkdir_p=: 14161else 14162 test -d ./-p && rmdir ./-p 14163 as_mkdir_p=false 14164fi 14165 14166as_executable_p="test -f" 14167 14168# Sed expression to map a string onto a valid CPP name. 14169as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14170 14171# Sed expression to map a string onto a valid variable name. 14172as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14173 14174 14175# IFS 14176# We need space, tab and new line, in precisely that order. 14177as_nl=' 14178' 14179IFS=" $as_nl" 14180 14181# CDPATH. 14182$as_unset CDPATH 14183 14184exec 6>&1 14185 14186# Open the log real soon, to keep \$[0] and so on meaningful, and to 14187# report actual input values of CONFIG_FILES etc. instead of their 14188# values after options handling. Logging --version etc. is OK. 14189exec 5>>config.log 14190{ 14191 echo 14192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14193## Running $as_me. ## 14194_ASBOX 14195} >&5 14196cat >&5 <<_CSEOF 14197 14198This file was extended by GNU make $as_me 3.81, which was 14199generated by GNU Autoconf 2.59. Invocation command line was 14200 14201 CONFIG_FILES = $CONFIG_FILES 14202 CONFIG_HEADERS = $CONFIG_HEADERS 14203 CONFIG_LINKS = $CONFIG_LINKS 14204 CONFIG_COMMANDS = $CONFIG_COMMANDS 14205 $ $0 $@ 14206 14207_CSEOF 14208echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 14209echo >&5 14210_ACEOF 14211 14212# Files that config.status was made for. 14213if test -n "$ac_config_files"; then 14214 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 14215fi 14216 14217if test -n "$ac_config_headers"; then 14218 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 14219fi 14220 14221if test -n "$ac_config_links"; then 14222 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 14223fi 14224 14225if test -n "$ac_config_commands"; then 14226 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 14227fi 14228 14229cat >>$CONFIG_STATUS <<\_ACEOF 14230 14231ac_cs_usage="\ 14232\`$as_me' instantiates files from templates according to the 14233current configuration. 14234 14235Usage: $0 [OPTIONS] [FILE]... 14236 14237 -h, --help print this help, then exit 14238 -V, --version print version number, then exit 14239 -q, --quiet do not print progress messages 14240 -d, --debug don't remove temporary files 14241 --recheck update $as_me by reconfiguring in the same conditions 14242 --file=FILE[:TEMPLATE] 14243 instantiate the configuration file FILE 14244 --header=FILE[:TEMPLATE] 14245 instantiate the configuration header FILE 14246 14247Configuration files: 14248$config_files 14249 14250Configuration headers: 14251$config_headers 14252 14253Configuration commands: 14254$config_commands 14255 14256Report bugs to <bug-autoconf@gnu.org>." 14257_ACEOF 14258 14259cat >>$CONFIG_STATUS <<_ACEOF 14260ac_cs_version="\\ 14261GNU make config.status 3.81 14262configured by $0, generated by GNU Autoconf 2.59, 14263 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 14264 14265Copyright (C) 2003 Free Software Foundation, Inc. 14266This config.status script is free software; the Free Software Foundation 14267gives unlimited permission to copy, distribute and modify it." 14268srcdir=$srcdir 14269INSTALL="$INSTALL" 14270_ACEOF 14271 14272cat >>$CONFIG_STATUS <<\_ACEOF 14273# If no file are specified by the user, then we need to provide default 14274# value. By we need to know if files were specified by the user. 14275ac_need_defaults=: 14276while test $# != 0 14277do 14278 case $1 in 14279 --*=*) 14280 ac_option=`expr "x$1" : 'x\([^=]*\)='` 14281 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 14282 ac_shift=: 14283 ;; 14284 -*) 14285 ac_option=$1 14286 ac_optarg=$2 14287 ac_shift=shift 14288 ;; 14289 *) # This is not an option, so the user has probably given explicit 14290 # arguments. 14291 ac_option=$1 14292 ac_need_defaults=false;; 14293 esac 14294 14295 case $ac_option in 14296 # Handling of the options. 14297_ACEOF 14298cat >>$CONFIG_STATUS <<\_ACEOF 14299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14300 ac_cs_recheck=: ;; 14301 --version | --vers* | -V ) 14302 echo "$ac_cs_version"; exit 0 ;; 14303 --he | --h) 14304 # Conflict between --help and --header 14305 { { echo "$as_me:$LINENO: error: ambiguous option: $1 14306Try \`$0 --help' for more information." >&5 14307echo "$as_me: error: ambiguous option: $1 14308Try \`$0 --help' for more information." >&2;} 14309 { (exit 1); exit 1; }; };; 14310 --help | --hel | -h ) 14311 echo "$ac_cs_usage"; exit 0 ;; 14312 --debug | --d* | -d ) 14313 debug=: ;; 14314 --file | --fil | --fi | --f ) 14315 $ac_shift 14316 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14317 ac_need_defaults=false;; 14318 --header | --heade | --head | --hea ) 14319 $ac_shift 14320 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 14321 ac_need_defaults=false;; 14322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14323 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14324 ac_cs_silent=: ;; 14325 14326 # This is an error. 14327 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 14328Try \`$0 --help' for more information." >&5 14329echo "$as_me: error: unrecognized option: $1 14330Try \`$0 --help' for more information." >&2;} 14331 { (exit 1); exit 1; }; } ;; 14332 14333 *) ac_config_targets="$ac_config_targets $1" ;; 14334 14335 esac 14336 shift 14337done 14338 14339ac_configure_extra_args= 14340 14341if $ac_cs_silent; then 14342 exec 6>/dev/null 14343 ac_configure_extra_args="$ac_configure_extra_args --silent" 14344fi 14345 14346_ACEOF 14347cat >>$CONFIG_STATUS <<_ACEOF 14348if \$ac_cs_recheck; then 14349 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14350 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14351fi 14352 14353_ACEOF 14354 14355cat >>$CONFIG_STATUS <<_ACEOF 14356# 14357# INIT-COMMANDS section. 14358# 14359 14360AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14361# Capture the value of obsolete ALL_LINGUAS because we need it to compute 14362 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 14363 # from automake. 14364 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 14365 # Capture the value of LINGUAS because we need it to compute CATALOGS. 14366 LINGUAS="${LINGUAS-%UNSET%}" 14367 14368 14369_ACEOF 14370 14371 14372 14373cat >>$CONFIG_STATUS <<\_ACEOF 14374for ac_config_target in $ac_config_targets 14375do 14376 case "$ac_config_target" in 14377 # Handling of arguments. 14378 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14379 "glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;; 14380 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 14381 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 14382 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14383 "w32/Makefile" ) CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;; 14384 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14385 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14386 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14387 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14388echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14389 { (exit 1); exit 1; }; };; 14390 esac 14391done 14392 14393# If the user did not use the arguments to specify the items to instantiate, 14394# then the envvar interface is used. Set only those that are not. 14395# We use the long form for the default assignment because of an extremely 14396# bizarre bug on SunOS 4.1.3. 14397if $ac_need_defaults; then 14398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14399 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14400 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14401fi 14402 14403# Have a temporary directory for convenience. Make it in the build tree 14404# simply because there is no reason to put it here, and in addition, 14405# creating and moving files from /tmp can sometimes cause problems. 14406# Create a temporary directory, and hook for its removal unless debugging. 14407$debug || 14408{ 14409 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 14410 trap '{ (exit 1); exit 1; }' 1 2 13 15 14411} 14412 14413# Create a (secure) tmp directory for tmp files. 14414 14415{ 14416 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 14417 test -n "$tmp" && test -d "$tmp" 14418} || 14419{ 14420 tmp=./confstat$$-$RANDOM 14421 (umask 077 && mkdir $tmp) 14422} || 14423{ 14424 echo "$me: cannot create a temporary directory in ." >&2 14425 { (exit 1); exit 1; } 14426} 14427 14428_ACEOF 14429 14430cat >>$CONFIG_STATUS <<_ACEOF 14431 14432# 14433# CONFIG_FILES section. 14434# 14435 14436# No need to generate the scripts if there are no CONFIG_FILES. 14437# This happens for instance when ./config.status config.h 14438if test -n "\$CONFIG_FILES"; then 14439 # Protect against being on the right side of a sed subst in config.status. 14440 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 14441 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 14442s,@SHELL@,$SHELL,;t t 14443s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 14444s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 14445s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 14446s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 14447s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 14448s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 14449s,@exec_prefix@,$exec_prefix,;t t 14450s,@prefix@,$prefix,;t t 14451s,@program_transform_name@,$program_transform_name,;t t 14452s,@bindir@,$bindir,;t t 14453s,@sbindir@,$sbindir,;t t 14454s,@libexecdir@,$libexecdir,;t t 14455s,@datadir@,$datadir,;t t 14456s,@sysconfdir@,$sysconfdir,;t t 14457s,@sharedstatedir@,$sharedstatedir,;t t 14458s,@localstatedir@,$localstatedir,;t t 14459s,@libdir@,$libdir,;t t 14460s,@includedir@,$includedir,;t t 14461s,@oldincludedir@,$oldincludedir,;t t 14462s,@infodir@,$infodir,;t t 14463s,@mandir@,$mandir,;t t 14464s,@build_alias@,$build_alias,;t t 14465s,@host_alias@,$host_alias,;t t 14466s,@target_alias@,$target_alias,;t t 14467s,@DEFS@,$DEFS,;t t 14468s,@ECHO_C@,$ECHO_C,;t t 14469s,@ECHO_N@,$ECHO_N,;t t 14470s,@ECHO_T@,$ECHO_T,;t t 14471s,@LIBS@,$LIBS,;t t 14472s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14473s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14474s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14475s,@CYGPATH_W@,$CYGPATH_W,;t t 14476s,@PACKAGE@,$PACKAGE,;t t 14477s,@VERSION@,$VERSION,;t t 14478s,@ACLOCAL@,$ACLOCAL,;t t 14479s,@AUTOCONF@,$AUTOCONF,;t t 14480s,@AUTOMAKE@,$AUTOMAKE,;t t 14481s,@AUTOHEADER@,$AUTOHEADER,;t t 14482s,@MAKEINFO@,$MAKEINFO,;t t 14483s,@install_sh@,$install_sh,;t t 14484s,@STRIP@,$STRIP,;t t 14485s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 14486s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 14487s,@mkdir_p@,$mkdir_p,;t t 14488s,@AWK@,$AWK,;t t 14489s,@SET_MAKE@,$SET_MAKE,;t t 14490s,@am__leading_dot@,$am__leading_dot,;t t 14491s,@AMTAR@,$AMTAR,;t t 14492s,@am__tar@,$am__tar,;t t 14493s,@am__untar@,$am__untar,;t t 14494s,@CC@,$CC,;t t 14495s,@CFLAGS@,$CFLAGS,;t t 14496s,@LDFLAGS@,$LDFLAGS,;t t 14497s,@CPPFLAGS@,$CPPFLAGS,;t t 14498s,@ac_ct_CC@,$ac_ct_CC,;t t 14499s,@EXEEXT@,$EXEEXT,;t t 14500s,@OBJEXT@,$OBJEXT,;t t 14501s,@DEPDIR@,$DEPDIR,;t t 14502s,@am__include@,$am__include,;t t 14503s,@am__quote@,$am__quote,;t t 14504s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 14505s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 14506s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 14507s,@CCDEPMODE@,$CCDEPMODE,;t t 14508s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 14509s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 14510s,@RANLIB@,$RANLIB,;t t 14511s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 14512s,@CPP@,$CPP,;t t 14513s,@AR@,$AR,;t t 14514s,@PERL@,$PERL,;t t 14515s,@build@,$build,;t t 14516s,@build_cpu@,$build_cpu,;t t 14517s,@build_vendor@,$build_vendor,;t t 14518s,@build_os@,$build_os,;t t 14519s,@host@,$host,;t t 14520s,@host_cpu@,$host_cpu,;t t 14521s,@host_vendor@,$host_vendor,;t t 14522s,@host_os@,$host_os,;t t 14523s,@EGREP@,$EGREP,;t t 14524s,@U@,$U,;t t 14525s,@ANSI2KNR@,$ANSI2KNR,;t t 14526s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 14527s,@USE_NLS@,$USE_NLS,;t t 14528s,@MSGFMT@,$MSGFMT,;t t 14529s,@GMSGFMT@,$GMSGFMT,;t t 14530s,@XGETTEXT@,$XGETTEXT,;t t 14531s,@MSGMERGE@,$MSGMERGE,;t t 14532s,@LIBICONV@,$LIBICONV,;t t 14533s,@LTLIBICONV@,$LTLIBICONV,;t t 14534s,@INTLLIBS@,$INTLLIBS,;t t 14535s,@LIBINTL@,$LIBINTL,;t t 14536s,@LTLIBINTL@,$LTLIBINTL,;t t 14537s,@POSUB@,$POSUB,;t t 14538s,@ALLOCA@,$ALLOCA,;t t 14539s,@LIBOBJS@,$LIBOBJS,;t t 14540s,@NEED_SETGID@,$NEED_SETGID,;t t 14541s,@KMEM_GROUP@,$KMEM_GROUP,;t t 14542s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t 14543s,@REMOTE@,$REMOTE,;t t 14544s,@USE_CUSTOMS_TRUE@,$USE_CUSTOMS_TRUE,;t t 14545s,@USE_CUSTOMS_FALSE@,$USE_CUSTOMS_FALSE,;t t 14546s,@GLOBINC@,$GLOBINC,;t t 14547s,@GLOBLIB@,$GLOBLIB,;t t 14548s,@USE_LOCAL_GLOB_TRUE@,$USE_LOCAL_GLOB_TRUE,;t t 14549s,@USE_LOCAL_GLOB_FALSE@,$USE_LOCAL_GLOB_FALSE,;t t 14550s,@MAKE_HOST@,$MAKE_HOST,;t t 14551s,@WINDOWSENV_TRUE@,$WINDOWSENV_TRUE,;t t 14552s,@WINDOWSENV_FALSE@,$WINDOWSENV_FALSE,;t t 14553s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14554/@MAINT_MAKEFILE@/r $MAINT_MAKEFILE 14555s,@MAINT_MAKEFILE@,,;t t 14556CEOF 14557 14558_ACEOF 14559 14560 cat >>$CONFIG_STATUS <<\_ACEOF 14561 # Split the substitutions into bite-sized pieces for seds with 14562 # small command number limits, like on Digital OSF/1 and HP-UX. 14563 ac_max_sed_lines=48 14564 ac_sed_frag=1 # Number of current file. 14565 ac_beg=1 # First line for current file. 14566 ac_end=$ac_max_sed_lines # Line after last line for current file. 14567 ac_more_lines=: 14568 ac_sed_cmds= 14569 while $ac_more_lines; do 14570 if test $ac_beg -gt 1; then 14571 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14572 else 14573 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14574 fi 14575 if test ! -s $tmp/subs.frag; then 14576 ac_more_lines=false 14577 else 14578 # The purpose of the label and of the branching condition is to 14579 # speed up the sed processing (if there are no `@' at all, there 14580 # is no need to browse any of the substitutions). 14581 # These are the two extra sed commands mentioned above. 14582 (echo ':t 14583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 14584 if test -z "$ac_sed_cmds"; then 14585 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 14586 else 14587 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 14588 fi 14589 ac_sed_frag=`expr $ac_sed_frag + 1` 14590 ac_beg=$ac_end 14591 ac_end=`expr $ac_end + $ac_max_sed_lines` 14592 fi 14593 done 14594 if test -z "$ac_sed_cmds"; then 14595 ac_sed_cmds=cat 14596 fi 14597fi # test -n "$CONFIG_FILES" 14598 14599_ACEOF 14600cat >>$CONFIG_STATUS <<\_ACEOF 14601for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 14602 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14603 case $ac_file in 14604 - | *:- | *:-:* ) # input from stdin 14605 cat >$tmp/stdin 14606 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14607 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14608 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14610 * ) ac_file_in=$ac_file.in ;; 14611 esac 14612 14613 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 14614 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14615$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14616 X"$ac_file" : 'X\(//\)[^/]' \| \ 14617 X"$ac_file" : 'X\(//\)$' \| \ 14618 X"$ac_file" : 'X\(/\)' \| \ 14619 . : '\(.\)' 2>/dev/null || 14620echo X"$ac_file" | 14621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14622 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14623 /^X\(\/\/\)$/{ s//\1/; q; } 14624 /^X\(\/\).*/{ s//\1/; q; } 14625 s/.*/./; q'` 14626 { if $as_mkdir_p; then 14627 mkdir -p "$ac_dir" 14628 else 14629 as_dir="$ac_dir" 14630 as_dirs= 14631 while test ! -d "$as_dir"; do 14632 as_dirs="$as_dir $as_dirs" 14633 as_dir=`(dirname "$as_dir") 2>/dev/null || 14634$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14635 X"$as_dir" : 'X\(//\)[^/]' \| \ 14636 X"$as_dir" : 'X\(//\)$' \| \ 14637 X"$as_dir" : 'X\(/\)' \| \ 14638 . : '\(.\)' 2>/dev/null || 14639echo X"$as_dir" | 14640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14641 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14642 /^X\(\/\/\)$/{ s//\1/; q; } 14643 /^X\(\/\).*/{ s//\1/; q; } 14644 s/.*/./; q'` 14645 done 14646 test ! -n "$as_dirs" || mkdir $as_dirs 14647 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14648echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14649 { (exit 1); exit 1; }; }; } 14650 14651 ac_builddir=. 14652 14653if test "$ac_dir" != .; then 14654 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14655 # A "../" for each directory in $ac_dir_suffix. 14656 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14657else 14658 ac_dir_suffix= ac_top_builddir= 14659fi 14660 14661case $srcdir in 14662 .) # No --srcdir option. We are building in place. 14663 ac_srcdir=. 14664 if test -z "$ac_top_builddir"; then 14665 ac_top_srcdir=. 14666 else 14667 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14668 fi ;; 14669 [\\/]* | ?:[\\/]* ) # Absolute path. 14670 ac_srcdir=$srcdir$ac_dir_suffix; 14671 ac_top_srcdir=$srcdir ;; 14672 *) # Relative path. 14673 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14674 ac_top_srcdir=$ac_top_builddir$srcdir ;; 14675esac 14676 14677# Do not use `cd foo && pwd` to compute absolute paths, because 14678# the directories may not exist. 14679case `pwd` in 14680.) ac_abs_builddir="$ac_dir";; 14681*) 14682 case "$ac_dir" in 14683 .) ac_abs_builddir=`pwd`;; 14684 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14685 *) ac_abs_builddir=`pwd`/"$ac_dir";; 14686 esac;; 14687esac 14688case $ac_abs_builddir in 14689.) ac_abs_top_builddir=${ac_top_builddir}.;; 14690*) 14691 case ${ac_top_builddir}. in 14692 .) ac_abs_top_builddir=$ac_abs_builddir;; 14693 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14694 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14695 esac;; 14696esac 14697case $ac_abs_builddir in 14698.) ac_abs_srcdir=$ac_srcdir;; 14699*) 14700 case $ac_srcdir in 14701 .) ac_abs_srcdir=$ac_abs_builddir;; 14702 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14703 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14704 esac;; 14705esac 14706case $ac_abs_builddir in 14707.) ac_abs_top_srcdir=$ac_top_srcdir;; 14708*) 14709 case $ac_top_srcdir in 14710 .) ac_abs_top_srcdir=$ac_abs_builddir;; 14711 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14712 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14713 esac;; 14714esac 14715 14716 14717 case $INSTALL in 14718 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14719 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14720 esac 14721 14722 # Let's still pretend it is `configure' which instantiates (i.e., don't 14723 # use $as_me), people would be surprised to read: 14724 # /* config.h. Generated by config.status. */ 14725 if test x"$ac_file" = x-; then 14726 configure_input= 14727 else 14728 configure_input="$ac_file. " 14729 fi 14730 configure_input=$configure_input"Generated from `echo $ac_file_in | 14731 sed 's,.*/,,'` by configure." 14732 14733 # First look for the input files in the build tree, otherwise in the 14734 # src tree. 14735 ac_file_inputs=`IFS=: 14736 for f in $ac_file_in; do 14737 case $f in 14738 -) echo $tmp/stdin ;; 14739 [\\/$]*) 14740 # Absolute (can't be DOS-style, as IFS=:) 14741 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14742echo "$as_me: error: cannot find input file: $f" >&2;} 14743 { (exit 1); exit 1; }; } 14744 echo "$f";; 14745 *) # Relative 14746 if test -f "$f"; then 14747 # Build tree 14748 echo "$f" 14749 elif test -f "$srcdir/$f"; then 14750 # Source tree 14751 echo "$srcdir/$f" 14752 else 14753 # /dev/null tree 14754 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14755echo "$as_me: error: cannot find input file: $f" >&2;} 14756 { (exit 1); exit 1; }; } 14757 fi;; 14758 esac 14759 done` || { (exit 1); exit 1; } 14760 14761 if test x"$ac_file" != x-; then 14762 { echo "$as_me:$LINENO: creating $ac_file" >&5 14763echo "$as_me: creating $ac_file" >&6;} 14764 rm -f "$ac_file" 14765 fi 14766_ACEOF 14767cat >>$CONFIG_STATUS <<_ACEOF 14768 sed "$ac_vpsub 14769$extrasub 14770_ACEOF 14771cat >>$CONFIG_STATUS <<\_ACEOF 14772:t 14773/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14774s,@configure_input@,$configure_input,;t t 14775s,@srcdir@,$ac_srcdir,;t t 14776s,@abs_srcdir@,$ac_abs_srcdir,;t t 14777s,@top_srcdir@,$ac_top_srcdir,;t t 14778s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 14779s,@builddir@,$ac_builddir,;t t 14780s,@abs_builddir@,$ac_abs_builddir,;t t 14781s,@top_builddir@,$ac_top_builddir,;t t 14782s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 14783s,@INSTALL@,$ac_INSTALL,;t t 14784" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 14785 rm -f $tmp/stdin 14786 if test x"$ac_file" != x-; then 14787 mv $tmp/out $ac_file 14788 else 14789 cat $tmp/out 14790 rm -f $tmp/out 14791 fi 14792 14793done 14794_ACEOF 14795cat >>$CONFIG_STATUS <<\_ACEOF 14796 14797# 14798# CONFIG_HEADER section. 14799# 14800 14801# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 14802# NAME is the cpp macro being defined and VALUE is the value it is being given. 14803# 14804# ac_d sets the value in "#define NAME VALUE" lines. 14805ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 14806ac_dB='[ ].*$,\1#\2' 14807ac_dC=' ' 14808ac_dD=',;t' 14809# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 14810ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14811ac_uB='$,\1#\2define\3' 14812ac_uC=' ' 14813ac_uD=',;t' 14814 14815for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 14816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14817 case $ac_file in 14818 - | *:- | *:-:* ) # input from stdin 14819 cat >$tmp/stdin 14820 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14822 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14824 * ) ac_file_in=$ac_file.in ;; 14825 esac 14826 14827 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 14828echo "$as_me: creating $ac_file" >&6;} 14829 14830 # First look for the input files in the build tree, otherwise in the 14831 # src tree. 14832 ac_file_inputs=`IFS=: 14833 for f in $ac_file_in; do 14834 case $f in 14835 -) echo $tmp/stdin ;; 14836 [\\/$]*) 14837 # Absolute (can't be DOS-style, as IFS=:) 14838 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14839echo "$as_me: error: cannot find input file: $f" >&2;} 14840 { (exit 1); exit 1; }; } 14841 # Do quote $f, to prevent DOS paths from being IFS'd. 14842 echo "$f";; 14843 *) # Relative 14844 if test -f "$f"; then 14845 # Build tree 14846 echo "$f" 14847 elif test -f "$srcdir/$f"; then 14848 # Source tree 14849 echo "$srcdir/$f" 14850 else 14851 # /dev/null tree 14852 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14853echo "$as_me: error: cannot find input file: $f" >&2;} 14854 { (exit 1); exit 1; }; } 14855 fi;; 14856 esac 14857 done` || { (exit 1); exit 1; } 14858 # Remove the trailing spaces. 14859 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 14860 14861_ACEOF 14862 14863# Transform confdefs.h into two sed scripts, `conftest.defines' and 14864# `conftest.undefs', that substitutes the proper values into 14865# config.h.in to produce config.h. The first handles `#define' 14866# templates, and the second `#undef' templates. 14867# And first: Protect against being on the right side of a sed subst in 14868# config.status. Protect against being in an unquoted here document 14869# in config.status. 14870rm -f conftest.defines conftest.undefs 14871# Using a here document instead of a string reduces the quoting nightmare. 14872# Putting comments in sed scripts is not portable. 14873# 14874# `end' is used to avoid that the second main sed command (meant for 14875# 0-ary CPP macros) applies to n-ary macro definitions. 14876# See the Autoconf documentation for `clear'. 14877cat >confdef2sed.sed <<\_ACEOF 14878s/[\\&,]/\\&/g 14879s,[\\$`],\\&,g 14880t clear 14881: clear 14882s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 14883t end 14884s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 14885: end 14886_ACEOF 14887# If some macros were called several times there might be several times 14888# the same #defines, which is useless. Nevertheless, we may not want to 14889# sort them, since we want the *last* AC-DEFINE to be honored. 14890uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 14891sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 14892rm -f confdef2sed.sed 14893 14894# This sed command replaces #undef with comments. This is necessary, for 14895# example, in the case of _POSIX_SOURCE, which is predefined and required 14896# on some systems where configure will not decide to define it. 14897cat >>conftest.undefs <<\_ACEOF 14898s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 14899_ACEOF 14900 14901# Break up conftest.defines because some shells have a limit on the size 14902# of here documents, and old seds have small limits too (100 cmds). 14903echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 14904echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 14905echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 14906echo ' :' >>$CONFIG_STATUS 14907rm -f conftest.tail 14908while grep . conftest.defines >/dev/null 14909do 14910 # Write a limited-size here document to $tmp/defines.sed. 14911 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 14912 # Speed up: don't consider the non `#define' lines. 14913 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 14914 # Work around the forget-to-reset-the-flag bug. 14915 echo 't clr' >>$CONFIG_STATUS 14916 echo ': clr' >>$CONFIG_STATUS 14917 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 14918 echo 'CEOF 14919 sed -f $tmp/defines.sed $tmp/in >$tmp/out 14920 rm -f $tmp/in 14921 mv $tmp/out $tmp/in 14922' >>$CONFIG_STATUS 14923 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 14924 rm -f conftest.defines 14925 mv conftest.tail conftest.defines 14926done 14927rm -f conftest.defines 14928echo ' fi # grep' >>$CONFIG_STATUS 14929echo >>$CONFIG_STATUS 14930 14931# Break up conftest.undefs because some shells have a limit on the size 14932# of here documents, and old seds have small limits too (100 cmds). 14933echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 14934rm -f conftest.tail 14935while grep . conftest.undefs >/dev/null 14936do 14937 # Write a limited-size here document to $tmp/undefs.sed. 14938 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 14939 # Speed up: don't consider the non `#undef' 14940 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 14941 # Work around the forget-to-reset-the-flag bug. 14942 echo 't clr' >>$CONFIG_STATUS 14943 echo ': clr' >>$CONFIG_STATUS 14944 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 14945 echo 'CEOF 14946 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 14947 rm -f $tmp/in 14948 mv $tmp/out $tmp/in 14949' >>$CONFIG_STATUS 14950 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 14951 rm -f conftest.undefs 14952 mv conftest.tail conftest.undefs 14953done 14954rm -f conftest.undefs 14955 14956cat >>$CONFIG_STATUS <<\_ACEOF 14957 # Let's still pretend it is `configure' which instantiates (i.e., don't 14958 # use $as_me), people would be surprised to read: 14959 # /* config.h. Generated by config.status. */ 14960 if test x"$ac_file" = x-; then 14961 echo "/* Generated by configure. */" >$tmp/config.h 14962 else 14963 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 14964 fi 14965 cat $tmp/in >>$tmp/config.h 14966 rm -f $tmp/in 14967 if test x"$ac_file" != x-; then 14968 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 14969 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14970echo "$as_me: $ac_file is unchanged" >&6;} 14971 else 14972 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14973$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14974 X"$ac_file" : 'X\(//\)[^/]' \| \ 14975 X"$ac_file" : 'X\(//\)$' \| \ 14976 X"$ac_file" : 'X\(/\)' \| \ 14977 . : '\(.\)' 2>/dev/null || 14978echo X"$ac_file" | 14979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14980 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14981 /^X\(\/\/\)$/{ s//\1/; q; } 14982 /^X\(\/\).*/{ s//\1/; q; } 14983 s/.*/./; q'` 14984 { if $as_mkdir_p; then 14985 mkdir -p "$ac_dir" 14986 else 14987 as_dir="$ac_dir" 14988 as_dirs= 14989 while test ! -d "$as_dir"; do 14990 as_dirs="$as_dir $as_dirs" 14991 as_dir=`(dirname "$as_dir") 2>/dev/null || 14992$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14993 X"$as_dir" : 'X\(//\)[^/]' \| \ 14994 X"$as_dir" : 'X\(//\)$' \| \ 14995 X"$as_dir" : 'X\(/\)' \| \ 14996 . : '\(.\)' 2>/dev/null || 14997echo X"$as_dir" | 14998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14999 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15000 /^X\(\/\/\)$/{ s//\1/; q; } 15001 /^X\(\/\).*/{ s//\1/; q; } 15002 s/.*/./; q'` 15003 done 15004 test ! -n "$as_dirs" || mkdir $as_dirs 15005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15006echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15007 { (exit 1); exit 1; }; }; } 15008 15009 rm -f $ac_file 15010 mv $tmp/config.h $ac_file 15011 fi 15012 else 15013 cat $tmp/config.h 15014 rm -f $tmp/config.h 15015 fi 15016# Compute $ac_file's index in $config_headers. 15017_am_stamp_count=1 15018for _am_header in $config_headers :; do 15019 case $_am_header in 15020 $ac_file | $ac_file:* ) 15021 break ;; 15022 * ) 15023 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15024 esac 15025done 15026echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 15027$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15028 X$ac_file : 'X\(//\)[^/]' \| \ 15029 X$ac_file : 'X\(//\)$' \| \ 15030 X$ac_file : 'X\(/\)' \| \ 15031 . : '\(.\)' 2>/dev/null || 15032echo X$ac_file | 15033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15034 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15035 /^X\(\/\/\)$/{ s//\1/; q; } 15036 /^X\(\/\).*/{ s//\1/; q; } 15037 s/.*/./; q'`/stamp-h$_am_stamp_count 15038done 15039_ACEOF 15040cat >>$CONFIG_STATUS <<\_ACEOF 15041 15042# 15043# CONFIG_COMMANDS section. 15044# 15045for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 15046 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 15047 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 15048 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 15049$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15050 X"$ac_dest" : 'X\(//\)[^/]' \| \ 15051 X"$ac_dest" : 'X\(//\)$' \| \ 15052 X"$ac_dest" : 'X\(/\)' \| \ 15053 . : '\(.\)' 2>/dev/null || 15054echo X"$ac_dest" | 15055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15056 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15057 /^X\(\/\/\)$/{ s//\1/; q; } 15058 /^X\(\/\).*/{ s//\1/; q; } 15059 s/.*/./; q'` 15060 { if $as_mkdir_p; then 15061 mkdir -p "$ac_dir" 15062 else 15063 as_dir="$ac_dir" 15064 as_dirs= 15065 while test ! -d "$as_dir"; do 15066 as_dirs="$as_dir $as_dirs" 15067 as_dir=`(dirname "$as_dir") 2>/dev/null || 15068$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15069 X"$as_dir" : 'X\(//\)[^/]' \| \ 15070 X"$as_dir" : 'X\(//\)$' \| \ 15071 X"$as_dir" : 'X\(/\)' \| \ 15072 . : '\(.\)' 2>/dev/null || 15073echo X"$as_dir" | 15074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15075 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15076 /^X\(\/\/\)$/{ s//\1/; q; } 15077 /^X\(\/\).*/{ s//\1/; q; } 15078 s/.*/./; q'` 15079 done 15080 test ! -n "$as_dirs" || mkdir $as_dirs 15081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15082echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15083 { (exit 1); exit 1; }; }; } 15084 15085 ac_builddir=. 15086 15087if test "$ac_dir" != .; then 15088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 15089 # A "../" for each directory in $ac_dir_suffix. 15090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 15091else 15092 ac_dir_suffix= ac_top_builddir= 15093fi 15094 15095case $srcdir in 15096 .) # No --srcdir option. We are building in place. 15097 ac_srcdir=. 15098 if test -z "$ac_top_builddir"; then 15099 ac_top_srcdir=. 15100 else 15101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 15102 fi ;; 15103 [\\/]* | ?:[\\/]* ) # Absolute path. 15104 ac_srcdir=$srcdir$ac_dir_suffix; 15105 ac_top_srcdir=$srcdir ;; 15106 *) # Relative path. 15107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 15108 ac_top_srcdir=$ac_top_builddir$srcdir ;; 15109esac 15110 15111# Do not use `cd foo && pwd` to compute absolute paths, because 15112# the directories may not exist. 15113case `pwd` in 15114.) ac_abs_builddir="$ac_dir";; 15115*) 15116 case "$ac_dir" in 15117 .) ac_abs_builddir=`pwd`;; 15118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 15119 *) ac_abs_builddir=`pwd`/"$ac_dir";; 15120 esac;; 15121esac 15122case $ac_abs_builddir in 15123.) ac_abs_top_builddir=${ac_top_builddir}.;; 15124*) 15125 case ${ac_top_builddir}. in 15126 .) ac_abs_top_builddir=$ac_abs_builddir;; 15127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 15128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 15129 esac;; 15130esac 15131case $ac_abs_builddir in 15132.) ac_abs_srcdir=$ac_srcdir;; 15133*) 15134 case $ac_srcdir in 15135 .) ac_abs_srcdir=$ac_abs_builddir;; 15136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 15137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 15138 esac;; 15139esac 15140case $ac_abs_builddir in 15141.) ac_abs_top_srcdir=$ac_top_srcdir;; 15142*) 15143 case $ac_top_srcdir in 15144 .) ac_abs_top_srcdir=$ac_abs_builddir;; 15145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 15146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 15147 esac;; 15148esac 15149 15150 15151 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 15152echo "$as_me: executing $ac_dest commands" >&6;} 15153 case $ac_dest in 15154 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 15155 # Strip MF so we end up with the name of the file. 15156 mf=`echo "$mf" | sed -e 's/:.*$//'` 15157 # Check whether this is an Automake generated Makefile or not. 15158 # We used to match only the files named `Makefile.in', but 15159 # some people rename them; so instead we look at the file content. 15160 # Grep'ing the first line is not enough: some people post-process 15161 # each Makefile.in and add a new line on top of each file to say so. 15162 # So let's grep whole file. 15163 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 15164 dirpart=`(dirname "$mf") 2>/dev/null || 15165$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15166 X"$mf" : 'X\(//\)[^/]' \| \ 15167 X"$mf" : 'X\(//\)$' \| \ 15168 X"$mf" : 'X\(/\)' \| \ 15169 . : '\(.\)' 2>/dev/null || 15170echo X"$mf" | 15171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15172 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15173 /^X\(\/\/\)$/{ s//\1/; q; } 15174 /^X\(\/\).*/{ s//\1/; q; } 15175 s/.*/./; q'` 15176 else 15177 continue 15178 fi 15179 # Extract the definition of DEPDIR, am__include, and am__quote 15180 # from the Makefile without running `make'. 15181 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15182 test -z "$DEPDIR" && continue 15183 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15184 test -z "am__include" && continue 15185 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15186 # When using ansi2knr, U may be empty or an underscore; expand it 15187 U=`sed -n 's/^U = //p' < "$mf"` 15188 # Find all dependency output files, they are included files with 15189 # $(DEPDIR) in their names. We invoke sed twice because it is the 15190 # simplest approach to changing $(DEPDIR) to its actual value in the 15191 # expansion. 15192 for file in `sed -n " 15193 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15194 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15195 # Make sure the directory exists. 15196 test -f "$dirpart/$file" && continue 15197 fdir=`(dirname "$file") 2>/dev/null || 15198$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15199 X"$file" : 'X\(//\)[^/]' \| \ 15200 X"$file" : 'X\(//\)$' \| \ 15201 X"$file" : 'X\(/\)' \| \ 15202 . : '\(.\)' 2>/dev/null || 15203echo X"$file" | 15204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15205 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15206 /^X\(\/\/\)$/{ s//\1/; q; } 15207 /^X\(\/\).*/{ s//\1/; q; } 15208 s/.*/./; q'` 15209 { if $as_mkdir_p; then 15210 mkdir -p $dirpart/$fdir 15211 else 15212 as_dir=$dirpart/$fdir 15213 as_dirs= 15214 while test ! -d "$as_dir"; do 15215 as_dirs="$as_dir $as_dirs" 15216 as_dir=`(dirname "$as_dir") 2>/dev/null || 15217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15218 X"$as_dir" : 'X\(//\)[^/]' \| \ 15219 X"$as_dir" : 'X\(//\)$' \| \ 15220 X"$as_dir" : 'X\(/\)' \| \ 15221 . : '\(.\)' 2>/dev/null || 15222echo X"$as_dir" | 15223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15224 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15225 /^X\(\/\/\)$/{ s//\1/; q; } 15226 /^X\(\/\).*/{ s//\1/; q; } 15227 s/.*/./; q'` 15228 done 15229 test ! -n "$as_dirs" || mkdir $as_dirs 15230 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 15231echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 15232 { (exit 1); exit 1; }; }; } 15233 15234 # echo "creating $dirpart/$file" 15235 echo '# dummy' > "$dirpart/$file" 15236 done 15237done 15238 ;; 15239 default-1 ) 15240 for ac_file in $CONFIG_FILES; do 15241 # Support "outfile[:infile[:infile...]]" 15242 case "$ac_file" in 15243 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 15244 esac 15245 # PO directories have a Makefile.in generated from Makefile.in.in. 15246 case "$ac_file" in */Makefile.in) 15247 # Adjust a relative srcdir. 15248 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 15249 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 15250 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 15251 # In autoconf-2.13 it is called $ac_given_srcdir. 15252 # In autoconf-2.50 it is called $srcdir. 15253 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 15254 case "$ac_given_srcdir" in 15255 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 15256 /*) top_srcdir="$ac_given_srcdir" ;; 15257 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 15258 esac 15259 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 15260 rm -f "$ac_dir/POTFILES" 15261 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 15262 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 15263 POMAKEFILEDEPS="POTFILES.in" 15264 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 15265 # on $ac_dir but don't depend on user-specified configuration 15266 # parameters. 15267 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 15268 # The LINGUAS file contains the set of available languages. 15269 if test -n "$OBSOLETE_ALL_LINGUAS"; then 15270 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 15271 fi 15272 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 15273 # Hide the ALL_LINGUAS assigment from automake. 15274 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 15275 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 15276 else 15277 # The set of available languages was given in configure.in. 15278 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 15279 fi 15280 # Compute POFILES 15281 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 15282 # Compute UPDATEPOFILES 15283 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 15284 # Compute DUMMYPOFILES 15285 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 15286 # Compute GMOFILES 15287 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 15288 case "$ac_given_srcdir" in 15289 .) srcdirpre= ;; 15290 *) srcdirpre='$(srcdir)/' ;; 15291 esac 15292 POFILES= 15293 UPDATEPOFILES= 15294 DUMMYPOFILES= 15295 GMOFILES= 15296 for lang in $ALL_LINGUAS; do 15297 POFILES="$POFILES $srcdirpre$lang.po" 15298 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 15299 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 15300 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 15301 done 15302 # CATALOGS depends on both $ac_dir and the user's LINGUAS 15303 # environment variable. 15304 INST_LINGUAS= 15305 if test -n "$ALL_LINGUAS"; then 15306 for presentlang in $ALL_LINGUAS; do 15307 useit=no 15308 if test "%UNSET%" != "$LINGUAS"; then 15309 desiredlanguages="$LINGUAS" 15310 else 15311 desiredlanguages="$ALL_LINGUAS" 15312 fi 15313 for desiredlang in $desiredlanguages; do 15314 # Use the presentlang catalog if desiredlang is 15315 # a. equal to presentlang, or 15316 # b. a variant of presentlang (because in this case, 15317 # presentlang can be used as a fallback for messages 15318 # which are not translated in the desiredlang catalog). 15319 case "$desiredlang" in 15320 "$presentlang"*) useit=yes;; 15321 esac 15322 done 15323 if test $useit = yes; then 15324 INST_LINGUAS="$INST_LINGUAS $presentlang" 15325 fi 15326 done 15327 fi 15328 CATALOGS= 15329 if test -n "$INST_LINGUAS"; then 15330 for lang in $INST_LINGUAS; do 15331 CATALOGS="$CATALOGS $lang.gmo" 15332 done 15333 fi 15334 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 15335 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 15336 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 15337 if test -f "$f"; then 15338 case "$f" in 15339 *.orig | *.bak | *~) ;; 15340 *) cat "$f" >> "$ac_dir/Makefile" ;; 15341 esac 15342 fi 15343 done 15344 fi 15345 ;; 15346 esac 15347 done ;; 15348 esac 15349done 15350_ACEOF 15351 15352cat >>$CONFIG_STATUS <<\_ACEOF 15353 15354{ (exit 0); exit 0; } 15355_ACEOF 15356chmod +x $CONFIG_STATUS 15357ac_clean_files=$ac_clean_files_save 15358 15359 15360# configure is writing to config.log, and then calls config.status. 15361# config.status does its own redirection, appending to config.log. 15362# Unfortunately, on DOS this fails, as config.log is still kept open 15363# by configure, so config.status won't be able to write to it; its 15364# output is simply discarded. So we exec the FD to /dev/null, 15365# effectively closing config.log, so it can be properly (re)opened and 15366# appended to by config.status. When coming back to configure, we 15367# need to make the FD available again. 15368if test "$no_create" != yes; then 15369 ac_cs_success=: 15370 ac_config_status_args= 15371 test "$silent" = yes && 15372 ac_config_status_args="$ac_config_status_args --quiet" 15373 exec 5>/dev/null 15374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15375 exec 5>>config.log 15376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15377 # would make configure fail if this is the last instruction. 15378 $ac_cs_success || { (exit 1); exit 1; } 15379fi 15380 15381 15382# We only generate the build.sh if we have a build.sh.in; we won't have 15383# one before we've created a distribution. 15384if test -f "$srcdir/build.sh.in"; then 15385 ./config.status --file build.sh 15386 chmod +x build.sh 15387fi 15388 15389