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