configure revision 1.66
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 nbtool_config.h" 964 965ac_config_files="$ac_config_files defs.mk" 966 967# Autoheader header and footer 968 969# AC_NETBSD 970 971ac_ext=c 972ac_cpp='$CPP $CPPFLAGS' 973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 975ac_compiler_gnu=$ac_cv_c_compiler_gnu 976if test -n "$ac_tool_prefix"; then 977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 978set dummy ${ac_tool_prefix}gcc; ac_word=$2 979echo "$as_me:979: checking for $ac_word" >&5 980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 981if test "${ac_cv_prog_CC+set}" = set; then 982 echo $ECHO_N "(cached) $ECHO_C" >&6 983else 984 if test -n "$CC"; then 985 ac_cv_prog_CC="$CC" # Let the user override the test. 986else 987 ac_save_IFS=$IFS; IFS=$ac_path_separator 988ac_dummy="$PATH" 989for ac_dir in $ac_dummy; do 990 IFS=$ac_save_IFS 991 test -z "$ac_dir" && ac_dir=. 992 $as_executable_p "$ac_dir/$ac_word" || continue 993ac_cv_prog_CC="${ac_tool_prefix}gcc" 994echo "$as_me:994: found $ac_dir/$ac_word" >&5 995break 996done 997 998fi 999fi 1000CC=$ac_cv_prog_CC 1001if test -n "$CC"; then 1002 echo "$as_me:1002: result: $CC" >&5 1003echo "${ECHO_T}$CC" >&6 1004else 1005 echo "$as_me:1005: result: no" >&5 1006echo "${ECHO_T}no" >&6 1007fi 1008 1009fi 1010if test -z "$ac_cv_prog_CC"; then 1011 ac_ct_CC=$CC 1012 # Extract the first word of "gcc", so it can be a program name with args. 1013set dummy gcc; ac_word=$2 1014echo "$as_me:1014: checking for $ac_word" >&5 1015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1017 echo $ECHO_N "(cached) $ECHO_C" >&6 1018else 1019 if test -n "$ac_ct_CC"; then 1020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1021else 1022 ac_save_IFS=$IFS; IFS=$ac_path_separator 1023ac_dummy="$PATH" 1024for ac_dir in $ac_dummy; do 1025 IFS=$ac_save_IFS 1026 test -z "$ac_dir" && ac_dir=. 1027 $as_executable_p "$ac_dir/$ac_word" || continue 1028ac_cv_prog_ac_ct_CC="gcc" 1029echo "$as_me:1029: found $ac_dir/$ac_word" >&5 1030break 1031done 1032 1033fi 1034fi 1035ac_ct_CC=$ac_cv_prog_ac_ct_CC 1036if test -n "$ac_ct_CC"; then 1037 echo "$as_me:1037: result: $ac_ct_CC" >&5 1038echo "${ECHO_T}$ac_ct_CC" >&6 1039else 1040 echo "$as_me:1040: result: no" >&5 1041echo "${ECHO_T}no" >&6 1042fi 1043 1044 CC=$ac_ct_CC 1045else 1046 CC="$ac_cv_prog_CC" 1047fi 1048 1049if test -z "$CC"; then 1050 if test -n "$ac_tool_prefix"; then 1051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1052set dummy ${ac_tool_prefix}cc; ac_word=$2 1053echo "$as_me:1053: checking for $ac_word" >&5 1054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1055if test "${ac_cv_prog_CC+set}" = set; then 1056 echo $ECHO_N "(cached) $ECHO_C" >&6 1057else 1058 if test -n "$CC"; then 1059 ac_cv_prog_CC="$CC" # Let the user override the test. 1060else 1061 ac_save_IFS=$IFS; IFS=$ac_path_separator 1062ac_dummy="$PATH" 1063for ac_dir in $ac_dummy; do 1064 IFS=$ac_save_IFS 1065 test -z "$ac_dir" && ac_dir=. 1066 $as_executable_p "$ac_dir/$ac_word" || continue 1067ac_cv_prog_CC="${ac_tool_prefix}cc" 1068echo "$as_me:1068: found $ac_dir/$ac_word" >&5 1069break 1070done 1071 1072fi 1073fi 1074CC=$ac_cv_prog_CC 1075if test -n "$CC"; then 1076 echo "$as_me:1076: result: $CC" >&5 1077echo "${ECHO_T}$CC" >&6 1078else 1079 echo "$as_me:1079: result: no" >&5 1080echo "${ECHO_T}no" >&6 1081fi 1082 1083fi 1084if test -z "$ac_cv_prog_CC"; then 1085 ac_ct_CC=$CC 1086 # Extract the first word of "cc", so it can be a program name with args. 1087set dummy cc; ac_word=$2 1088echo "$as_me:1088: checking for $ac_word" >&5 1089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1090if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1091 echo $ECHO_N "(cached) $ECHO_C" >&6 1092else 1093 if test -n "$ac_ct_CC"; then 1094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1095else 1096 ac_save_IFS=$IFS; IFS=$ac_path_separator 1097ac_dummy="$PATH" 1098for ac_dir in $ac_dummy; do 1099 IFS=$ac_save_IFS 1100 test -z "$ac_dir" && ac_dir=. 1101 $as_executable_p "$ac_dir/$ac_word" || continue 1102ac_cv_prog_ac_ct_CC="cc" 1103echo "$as_me:1103: found $ac_dir/$ac_word" >&5 1104break 1105done 1106 1107fi 1108fi 1109ac_ct_CC=$ac_cv_prog_ac_ct_CC 1110if test -n "$ac_ct_CC"; then 1111 echo "$as_me:1111: result: $ac_ct_CC" >&5 1112echo "${ECHO_T}$ac_ct_CC" >&6 1113else 1114 echo "$as_me:1114: result: no" >&5 1115echo "${ECHO_T}no" >&6 1116fi 1117 1118 CC=$ac_ct_CC 1119else 1120 CC="$ac_cv_prog_CC" 1121fi 1122 1123fi 1124if test -z "$CC"; then 1125 # Extract the first word of "cc", so it can be a program name with args. 1126set dummy cc; ac_word=$2 1127echo "$as_me:1127: checking for $ac_word" >&5 1128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1129if test "${ac_cv_prog_CC+set}" = set; then 1130 echo $ECHO_N "(cached) $ECHO_C" >&6 1131else 1132 if test -n "$CC"; then 1133 ac_cv_prog_CC="$CC" # Let the user override the test. 1134else 1135 ac_prog_rejected=no 1136 ac_save_IFS=$IFS; IFS=$ac_path_separator 1137ac_dummy="$PATH" 1138for ac_dir in $ac_dummy; do 1139 IFS=$ac_save_IFS 1140 test -z "$ac_dir" && ac_dir=. 1141 $as_executable_p "$ac_dir/$ac_word" || continue 1142if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1143 ac_prog_rejected=yes 1144 continue 1145fi 1146ac_cv_prog_CC="cc" 1147echo "$as_me:1147: found $ac_dir/$ac_word" >&5 1148break 1149done 1150 1151if test $ac_prog_rejected = yes; then 1152 # We found a bogon in the path, so make sure we never use it. 1153 set dummy $ac_cv_prog_CC 1154 shift 1155 if test $# != 0; then 1156 # We chose a different compiler from the bogus one. 1157 # However, it has the same basename, so the bogon will be chosen 1158 # first if we set CC to just the basename; use the full file name. 1159 shift 1160 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1161 shift 1162 ac_cv_prog_CC="$@" 1163 fi 1164fi 1165fi 1166fi 1167CC=$ac_cv_prog_CC 1168if test -n "$CC"; then 1169 echo "$as_me:1169: result: $CC" >&5 1170echo "${ECHO_T}$CC" >&6 1171else 1172 echo "$as_me:1172: result: no" >&5 1173echo "${ECHO_T}no" >&6 1174fi 1175 1176fi 1177if test -z "$CC"; then 1178 if test -n "$ac_tool_prefix"; then 1179 for ac_prog in cl 1180 do 1181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1182set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1183echo "$as_me:1183: checking for $ac_word" >&5 1184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1185if test "${ac_cv_prog_CC+set}" = set; then 1186 echo $ECHO_N "(cached) $ECHO_C" >&6 1187else 1188 if test -n "$CC"; then 1189 ac_cv_prog_CC="$CC" # Let the user override the test. 1190else 1191 ac_save_IFS=$IFS; IFS=$ac_path_separator 1192ac_dummy="$PATH" 1193for ac_dir in $ac_dummy; do 1194 IFS=$ac_save_IFS 1195 test -z "$ac_dir" && ac_dir=. 1196 $as_executable_p "$ac_dir/$ac_word" || continue 1197ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1198echo "$as_me:1198: found $ac_dir/$ac_word" >&5 1199break 1200done 1201 1202fi 1203fi 1204CC=$ac_cv_prog_CC 1205if test -n "$CC"; then 1206 echo "$as_me:1206: result: $CC" >&5 1207echo "${ECHO_T}$CC" >&6 1208else 1209 echo "$as_me:1209: result: no" >&5 1210echo "${ECHO_T}no" >&6 1211fi 1212 1213 test -n "$CC" && break 1214 done 1215fi 1216if test -z "$CC"; then 1217 ac_ct_CC=$CC 1218 for ac_prog in cl 1219do 1220 # Extract the first word of "$ac_prog", so it can be a program name with args. 1221set dummy $ac_prog; ac_word=$2 1222echo "$as_me:1222: checking for $ac_word" >&5 1223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1225 echo $ECHO_N "(cached) $ECHO_C" >&6 1226else 1227 if test -n "$ac_ct_CC"; then 1228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1229else 1230 ac_save_IFS=$IFS; IFS=$ac_path_separator 1231ac_dummy="$PATH" 1232for ac_dir in $ac_dummy; do 1233 IFS=$ac_save_IFS 1234 test -z "$ac_dir" && ac_dir=. 1235 $as_executable_p "$ac_dir/$ac_word" || continue 1236ac_cv_prog_ac_ct_CC="$ac_prog" 1237echo "$as_me:1237: found $ac_dir/$ac_word" >&5 1238break 1239done 1240 1241fi 1242fi 1243ac_ct_CC=$ac_cv_prog_ac_ct_CC 1244if test -n "$ac_ct_CC"; then 1245 echo "$as_me:1245: result: $ac_ct_CC" >&5 1246echo "${ECHO_T}$ac_ct_CC" >&6 1247else 1248 echo "$as_me:1248: result: no" >&5 1249echo "${ECHO_T}no" >&6 1250fi 1251 1252 test -n "$ac_ct_CC" && break 1253done 1254 1255 CC=$ac_ct_CC 1256fi 1257 1258fi 1259 1260test -z "$CC" && { { echo "$as_me:1260: error: no acceptable cc found in \$PATH" >&5 1261echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1262 { (exit 1); exit 1; }; } 1263 1264# Provide some information about the compiler. 1265echo "$as_me:1265:" \ 1266 "checking for C compiler version" >&5 1267ac_compiler=`set X $ac_compile; echo $2` 1268{ (eval echo "$as_me:1268: \"$ac_compiler --version </dev/null >&5\"") >&5 1269 (eval $ac_compiler --version </dev/null >&5) 2>&5 1270 ac_status=$? 1271 echo "$as_me:1271: \$? = $ac_status" >&5 1272 (exit $ac_status); } 1273{ (eval echo "$as_me:1273: \"$ac_compiler -v </dev/null >&5\"") >&5 1274 (eval $ac_compiler -v </dev/null >&5) 2>&5 1275 ac_status=$? 1276 echo "$as_me:1276: \$? = $ac_status" >&5 1277 (exit $ac_status); } 1278{ (eval echo "$as_me:1278: \"$ac_compiler -V </dev/null >&5\"") >&5 1279 (eval $ac_compiler -V </dev/null >&5) 2>&5 1280 ac_status=$? 1281 echo "$as_me:1281: \$? = $ac_status" >&5 1282 (exit $ac_status); } 1283 1284cat >conftest.$ac_ext <<_ACEOF 1285#line 1285 "configure" 1286#include "confdefs.h" 1287 1288int 1289main () 1290{ 1291 1292 ; 1293 return 0; 1294} 1295_ACEOF 1296ac_clean_files_save=$ac_clean_files 1297ac_clean_files="$ac_clean_files a.out a.exe" 1298# Try to create an executable without -o first, disregard a.out. 1299# It will help us diagnose broken compilers, and finding out an intuition 1300# of exeext. 1301echo "$as_me:1301: checking for C compiler default output" >&5 1302echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1303ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1304if { (eval echo "$as_me:1304: \"$ac_link_default\"") >&5 1305 (eval $ac_link_default) 2>&5 1306 ac_status=$? 1307 echo "$as_me:1307: \$? = $ac_status" >&5 1308 (exit $ac_status); }; then 1309 # Find the output, starting from the most likely. This scheme is 1310# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1311# resort. 1312for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1313 ls a.out conftest 2>/dev/null; 1314 ls a.* conftest.* 2>/dev/null`; do 1315 case $ac_file in 1316 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1317 a.out ) # We found the default executable, but exeext='' is most 1318 # certainly right. 1319 break;; 1320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1321 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1322 export ac_cv_exeext 1323 break;; 1324 * ) break;; 1325 esac 1326done 1327else 1328 echo "$as_me: failed program was:" >&5 1329cat conftest.$ac_ext >&5 1330{ { echo "$as_me:1330: error: C compiler cannot create executables" >&5 1331echo "$as_me: error: C compiler cannot create executables" >&2;} 1332 { (exit 77); exit 77; }; } 1333fi 1334 1335ac_exeext=$ac_cv_exeext 1336echo "$as_me:1336: result: $ac_file" >&5 1337echo "${ECHO_T}$ac_file" >&6 1338 1339# Check the compiler produces executables we can run. If not, either 1340# the compiler is broken, or we cross compile. 1341echo "$as_me:1341: checking whether the C compiler works" >&5 1342echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1343# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1344# If not cross compiling, check that we can run a simple program. 1345if test "$cross_compiling" != yes; then 1346 if { ac_try='./$ac_file' 1347 { (eval echo "$as_me:1347: \"$ac_try\"") >&5 1348 (eval $ac_try) 2>&5 1349 ac_status=$? 1350 echo "$as_me:1350: \$? = $ac_status" >&5 1351 (exit $ac_status); }; }; then 1352 cross_compiling=no 1353 else 1354 if test "$cross_compiling" = maybe; then 1355 cross_compiling=yes 1356 else 1357 { { echo "$as_me:1357: error: cannot run C compiled programs. 1358If you meant to cross compile, use \`--host'." >&5 1359echo "$as_me: error: cannot run C compiled programs. 1360If you meant to cross compile, use \`--host'." >&2;} 1361 { (exit 1); exit 1; }; } 1362 fi 1363 fi 1364fi 1365echo "$as_me:1365: result: yes" >&5 1366echo "${ECHO_T}yes" >&6 1367 1368rm -f a.out a.exe conftest$ac_cv_exeext 1369ac_clean_files=$ac_clean_files_save 1370# Check the compiler produces executables we can run. If not, either 1371# the compiler is broken, or we cross compile. 1372echo "$as_me:1372: checking whether we are cross compiling" >&5 1373echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1374echo "$as_me:1374: result: $cross_compiling" >&5 1375echo "${ECHO_T}$cross_compiling" >&6 1376 1377echo "$as_me:1377: checking for executable suffix" >&5 1378echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1379if { (eval echo "$as_me:1379: \"$ac_link\"") >&5 1380 (eval $ac_link) 2>&5 1381 ac_status=$? 1382 echo "$as_me:1382: \$? = $ac_status" >&5 1383 (exit $ac_status); }; then 1384 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1385# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1386# work properly (i.e., refer to `conftest.exe'), while it won't with 1387# `rm'. 1388for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1389 case $ac_file in 1390 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1391 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1392 export ac_cv_exeext 1393 break;; 1394 * ) break;; 1395 esac 1396done 1397else 1398 { { echo "$as_me:1398: error: cannot compute EXEEXT: cannot compile and link" >&5 1399echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1400 { (exit 1); exit 1; }; } 1401fi 1402 1403rm -f conftest$ac_cv_exeext 1404echo "$as_me:1404: result: $ac_cv_exeext" >&5 1405echo "${ECHO_T}$ac_cv_exeext" >&6 1406 1407rm -f conftest.$ac_ext 1408EXEEXT=$ac_cv_exeext 1409ac_exeext=$EXEEXT 1410echo "$as_me:1410: checking for object suffix" >&5 1411echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1412if test "${ac_cv_objext+set}" = set; then 1413 echo $ECHO_N "(cached) $ECHO_C" >&6 1414else 1415 cat >conftest.$ac_ext <<_ACEOF 1416#line 1416 "configure" 1417#include "confdefs.h" 1418 1419int 1420main () 1421{ 1422 1423 ; 1424 return 0; 1425} 1426_ACEOF 1427rm -f conftest.o conftest.obj 1428if { (eval echo "$as_me:1428: \"$ac_compile\"") >&5 1429 (eval $ac_compile) 2>&5 1430 ac_status=$? 1431 echo "$as_me:1431: \$? = $ac_status" >&5 1432 (exit $ac_status); }; then 1433 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1434 case $ac_file in 1435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1436 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1437 break;; 1438 esac 1439done 1440else 1441 echo "$as_me: failed program was:" >&5 1442cat conftest.$ac_ext >&5 1443{ { echo "$as_me:1443: error: cannot compute OBJEXT: cannot compile" >&5 1444echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1445 { (exit 1); exit 1; }; } 1446fi 1447 1448rm -f conftest.$ac_cv_objext conftest.$ac_ext 1449fi 1450echo "$as_me:1450: result: $ac_cv_objext" >&5 1451echo "${ECHO_T}$ac_cv_objext" >&6 1452OBJEXT=$ac_cv_objext 1453ac_objext=$OBJEXT 1454echo "$as_me:1454: checking whether we are using the GNU C compiler" >&5 1455echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1456if test "${ac_cv_c_compiler_gnu+set}" = set; then 1457 echo $ECHO_N "(cached) $ECHO_C" >&6 1458else 1459 cat >conftest.$ac_ext <<_ACEOF 1460#line 1460 "configure" 1461#include "confdefs.h" 1462 1463int 1464main () 1465{ 1466#ifndef __GNUC__ 1467 choke me 1468#endif 1469 1470 ; 1471 return 0; 1472} 1473_ACEOF 1474rm -f conftest.$ac_objext 1475if { (eval echo "$as_me:1475: \"$ac_compile\"") >&5 1476 (eval $ac_compile) 2>&5 1477 ac_status=$? 1478 echo "$as_me:1478: \$? = $ac_status" >&5 1479 (exit $ac_status); } && 1480 { ac_try='test -s conftest.$ac_objext' 1481 { (eval echo "$as_me:1481: \"$ac_try\"") >&5 1482 (eval $ac_try) 2>&5 1483 ac_status=$? 1484 echo "$as_me:1484: \$? = $ac_status" >&5 1485 (exit $ac_status); }; }; then 1486 ac_compiler_gnu=yes 1487else 1488 echo "$as_me: failed program was:" >&5 1489cat conftest.$ac_ext >&5 1490ac_compiler_gnu=no 1491fi 1492rm -f conftest.$ac_objext conftest.$ac_ext 1493ac_cv_c_compiler_gnu=$ac_compiler_gnu 1494 1495fi 1496echo "$as_me:1496: result: $ac_cv_c_compiler_gnu" >&5 1497echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1498GCC=`test $ac_compiler_gnu = yes && echo yes` 1499ac_test_CFLAGS=${CFLAGS+set} 1500ac_save_CFLAGS=$CFLAGS 1501CFLAGS="-g" 1502echo "$as_me:1502: checking whether $CC accepts -g" >&5 1503echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1504if test "${ac_cv_prog_cc_g+set}" = set; then 1505 echo $ECHO_N "(cached) $ECHO_C" >&6 1506else 1507 cat >conftest.$ac_ext <<_ACEOF 1508#line 1508 "configure" 1509#include "confdefs.h" 1510 1511int 1512main () 1513{ 1514 1515 ; 1516 return 0; 1517} 1518_ACEOF 1519rm -f conftest.$ac_objext 1520if { (eval echo "$as_me:1520: \"$ac_compile\"") >&5 1521 (eval $ac_compile) 2>&5 1522 ac_status=$? 1523 echo "$as_me:1523: \$? = $ac_status" >&5 1524 (exit $ac_status); } && 1525 { ac_try='test -s conftest.$ac_objext' 1526 { (eval echo "$as_me:1526: \"$ac_try\"") >&5 1527 (eval $ac_try) 2>&5 1528 ac_status=$? 1529 echo "$as_me:1529: \$? = $ac_status" >&5 1530 (exit $ac_status); }; }; then 1531 ac_cv_prog_cc_g=yes 1532else 1533 echo "$as_me: failed program was:" >&5 1534cat conftest.$ac_ext >&5 1535ac_cv_prog_cc_g=no 1536fi 1537rm -f conftest.$ac_objext conftest.$ac_ext 1538fi 1539echo "$as_me:1539: result: $ac_cv_prog_cc_g" >&5 1540echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1541if test "$ac_test_CFLAGS" = set; then 1542 CFLAGS=$ac_save_CFLAGS 1543elif test $ac_cv_prog_cc_g = yes; then 1544 if test "$GCC" = yes; then 1545 CFLAGS="-g -O2" 1546 else 1547 CFLAGS="-g" 1548 fi 1549else 1550 if test "$GCC" = yes; then 1551 CFLAGS="-O2" 1552 else 1553 CFLAGS= 1554 fi 1555fi 1556# Some people use a C++ compiler to compile C. Since we use `exit', 1557# in C++ we need to declare it. In case someone uses the same compiler 1558# for both compiling C and C++ we need to have the C++ compiler decide 1559# the declaration of exit, since it's the most demanding environment. 1560cat >conftest.$ac_ext <<_ACEOF 1561#ifndef __cplusplus 1562 choke me 1563#endif 1564_ACEOF 1565rm -f conftest.$ac_objext 1566if { (eval echo "$as_me:1566: \"$ac_compile\"") >&5 1567 (eval $ac_compile) 2>&5 1568 ac_status=$? 1569 echo "$as_me:1569: \$? = $ac_status" >&5 1570 (exit $ac_status); } && 1571 { ac_try='test -s conftest.$ac_objext' 1572 { (eval echo "$as_me:1572: \"$ac_try\"") >&5 1573 (eval $ac_try) 2>&5 1574 ac_status=$? 1575 echo "$as_me:1575: \$? = $ac_status" >&5 1576 (exit $ac_status); }; }; then 1577 for ac_declaration in \ 1578 ''\ 1579 '#include <stdlib.h>' \ 1580 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1581 'extern "C" void std::exit (int); using std::exit;' \ 1582 'extern "C" void exit (int) throw ();' \ 1583 'extern "C" void exit (int);' \ 1584 'void exit (int);' 1585do 1586 cat >conftest.$ac_ext <<_ACEOF 1587#line 1587 "configure" 1588#include "confdefs.h" 1589#include <stdlib.h> 1590$ac_declaration 1591int 1592main () 1593{ 1594exit (42); 1595 ; 1596 return 0; 1597} 1598_ACEOF 1599rm -f conftest.$ac_objext 1600if { (eval echo "$as_me:1600: \"$ac_compile\"") >&5 1601 (eval $ac_compile) 2>&5 1602 ac_status=$? 1603 echo "$as_me:1603: \$? = $ac_status" >&5 1604 (exit $ac_status); } && 1605 { ac_try='test -s conftest.$ac_objext' 1606 { (eval echo "$as_me:1606: \"$ac_try\"") >&5 1607 (eval $ac_try) 2>&5 1608 ac_status=$? 1609 echo "$as_me:1609: \$? = $ac_status" >&5 1610 (exit $ac_status); }; }; then 1611 : 1612else 1613 echo "$as_me: failed program was:" >&5 1614cat conftest.$ac_ext >&5 1615continue 1616fi 1617rm -f conftest.$ac_objext conftest.$ac_ext 1618 cat >conftest.$ac_ext <<_ACEOF 1619#line 1619 "configure" 1620#include "confdefs.h" 1621$ac_declaration 1622int 1623main () 1624{ 1625exit (42); 1626 ; 1627 return 0; 1628} 1629_ACEOF 1630rm -f conftest.$ac_objext 1631if { (eval echo "$as_me:1631: \"$ac_compile\"") >&5 1632 (eval $ac_compile) 2>&5 1633 ac_status=$? 1634 echo "$as_me:1634: \$? = $ac_status" >&5 1635 (exit $ac_status); } && 1636 { ac_try='test -s conftest.$ac_objext' 1637 { (eval echo "$as_me:1637: \"$ac_try\"") >&5 1638 (eval $ac_try) 2>&5 1639 ac_status=$? 1640 echo "$as_me:1640: \$? = $ac_status" >&5 1641 (exit $ac_status); }; }; then 1642 break 1643else 1644 echo "$as_me: failed program was:" >&5 1645cat conftest.$ac_ext >&5 1646fi 1647rm -f conftest.$ac_objext conftest.$ac_ext 1648done 1649rm -f conftest* 1650if test -n "$ac_declaration"; then 1651 echo '#ifdef __cplusplus' >>confdefs.h 1652 echo $ac_declaration >>confdefs.h 1653 echo '#endif' >>confdefs.h 1654fi 1655 1656else 1657 echo "$as_me: failed program was:" >&5 1658cat conftest.$ac_ext >&5 1659fi 1660rm -f conftest.$ac_objext conftest.$ac_ext 1661ac_ext=c 1662ac_cpp='$CPP $CPPFLAGS' 1663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1665ac_compiler_gnu=$ac_cv_c_compiler_gnu 1666 1667ac_ext=c 1668ac_cpp='$CPP $CPPFLAGS' 1669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1671ac_compiler_gnu=$ac_cv_c_compiler_gnu 1672echo "$as_me:1672: checking how to run the C preprocessor" >&5 1673echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1674# On Suns, sometimes $CPP names a directory. 1675if test -n "$CPP" && test -d "$CPP"; then 1676 CPP= 1677fi 1678if test -z "$CPP"; then 1679 if test "${ac_cv_prog_CPP+set}" = set; then 1680 echo $ECHO_N "(cached) $ECHO_C" >&6 1681else 1682 # Double quotes because CPP needs to be expanded 1683 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 1684 do 1685 ac_preproc_ok=false 1686for ac_c_preproc_warn_flag in '' yes 1687do 1688 # Use a header file that comes with gcc, so configuring glibc 1689 # with a fresh cross-compiler works. 1690 # On the NeXT, cc -E runs the code through the compiler's parser, 1691 # not just through cpp. "Syntax error" is here to catch this case. 1692 cat >conftest.$ac_ext <<_ACEOF 1693#line 1693 "configure" 1694#include "confdefs.h" 1695#include <assert.h> 1696 Syntax error 1697_ACEOF 1698if { (eval echo "$as_me:1698: \"$ac_cpp conftest.$ac_ext\"") >&5 1699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1700 ac_status=$? 1701 egrep -v '^ *\+' conftest.er1 >conftest.err 1702 rm -f conftest.er1 1703 cat conftest.err >&5 1704 echo "$as_me:1704: \$? = $ac_status" >&5 1705 (exit $ac_status); } >/dev/null; then 1706 if test -s conftest.err; then 1707 ac_cpp_err=$ac_c_preproc_warn_flag 1708 else 1709 ac_cpp_err= 1710 fi 1711else 1712 ac_cpp_err=yes 1713fi 1714if test -z "$ac_cpp_err"; then 1715 : 1716else 1717 echo "$as_me: failed program was:" >&5 1718 cat conftest.$ac_ext >&5 1719 # Broken: fails on valid input. 1720continue 1721fi 1722rm -f conftest.err conftest.$ac_ext 1723 1724 # OK, works on sane cases. Now check whether non-existent headers 1725 # can be detected and how. 1726 cat >conftest.$ac_ext <<_ACEOF 1727#line 1727 "configure" 1728#include "confdefs.h" 1729#include <ac_nonexistent.h> 1730_ACEOF 1731if { (eval echo "$as_me:1731: \"$ac_cpp conftest.$ac_ext\"") >&5 1732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1733 ac_status=$? 1734 egrep -v '^ *\+' conftest.er1 >conftest.err 1735 rm -f conftest.er1 1736 cat conftest.err >&5 1737 echo "$as_me:1737: \$? = $ac_status" >&5 1738 (exit $ac_status); } >/dev/null; then 1739 if test -s conftest.err; then 1740 ac_cpp_err=$ac_c_preproc_warn_flag 1741 else 1742 ac_cpp_err= 1743 fi 1744else 1745 ac_cpp_err=yes 1746fi 1747if test -z "$ac_cpp_err"; then 1748 # Broken: success on invalid input. 1749continue 1750else 1751 echo "$as_me: failed program was:" >&5 1752 cat conftest.$ac_ext >&5 1753 # Passes both tests. 1754ac_preproc_ok=: 1755break 1756fi 1757rm -f conftest.err conftest.$ac_ext 1758 1759done 1760# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1761rm -f conftest.err conftest.$ac_ext 1762if $ac_preproc_ok; then 1763 break 1764fi 1765 1766 done 1767 ac_cv_prog_CPP=$CPP 1768 1769fi 1770 CPP=$ac_cv_prog_CPP 1771else 1772 ac_cv_prog_CPP=$CPP 1773fi 1774echo "$as_me:1774: result: $CPP" >&5 1775echo "${ECHO_T}$CPP" >&6 1776ac_preproc_ok=false 1777for ac_c_preproc_warn_flag in '' yes 1778do 1779 # Use a header file that comes with gcc, so configuring glibc 1780 # with a fresh cross-compiler works. 1781 # On the NeXT, cc -E runs the code through the compiler's parser, 1782 # not just through cpp. "Syntax error" is here to catch this case. 1783 cat >conftest.$ac_ext <<_ACEOF 1784#line 1784 "configure" 1785#include "confdefs.h" 1786#include <assert.h> 1787 Syntax error 1788_ACEOF 1789if { (eval echo "$as_me:1789: \"$ac_cpp conftest.$ac_ext\"") >&5 1790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1791 ac_status=$? 1792 egrep -v '^ *\+' conftest.er1 >conftest.err 1793 rm -f conftest.er1 1794 cat conftest.err >&5 1795 echo "$as_me:1795: \$? = $ac_status" >&5 1796 (exit $ac_status); } >/dev/null; then 1797 if test -s conftest.err; then 1798 ac_cpp_err=$ac_c_preproc_warn_flag 1799 else 1800 ac_cpp_err= 1801 fi 1802else 1803 ac_cpp_err=yes 1804fi 1805if test -z "$ac_cpp_err"; then 1806 : 1807else 1808 echo "$as_me: failed program was:" >&5 1809 cat conftest.$ac_ext >&5 1810 # Broken: fails on valid input. 1811continue 1812fi 1813rm -f conftest.err conftest.$ac_ext 1814 1815 # OK, works on sane cases. Now check whether non-existent headers 1816 # can be detected and how. 1817 cat >conftest.$ac_ext <<_ACEOF 1818#line 1818 "configure" 1819#include "confdefs.h" 1820#include <ac_nonexistent.h> 1821_ACEOF 1822if { (eval echo "$as_me:1822: \"$ac_cpp conftest.$ac_ext\"") >&5 1823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1824 ac_status=$? 1825 egrep -v '^ *\+' conftest.er1 >conftest.err 1826 rm -f conftest.er1 1827 cat conftest.err >&5 1828 echo "$as_me:1828: \$? = $ac_status" >&5 1829 (exit $ac_status); } >/dev/null; then 1830 if test -s conftest.err; then 1831 ac_cpp_err=$ac_c_preproc_warn_flag 1832 else 1833 ac_cpp_err= 1834 fi 1835else 1836 ac_cpp_err=yes 1837fi 1838if test -z "$ac_cpp_err"; then 1839 # Broken: success on invalid input. 1840continue 1841else 1842 echo "$as_me: failed program was:" >&5 1843 cat conftest.$ac_ext >&5 1844 # Passes both tests. 1845ac_preproc_ok=: 1846break 1847fi 1848rm -f conftest.err conftest.$ac_ext 1849 1850done 1851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1852rm -f conftest.err conftest.$ac_ext 1853if $ac_preproc_ok; then 1854 : 1855else 1856 { { echo "$as_me:1856: error: C preprocessor \"$CPP\" fails sanity check" >&5 1857echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 1858 { (exit 1); exit 1; }; } 1859fi 1860 1861ac_ext=c 1862ac_cpp='$CPP $CPPFLAGS' 1863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1865ac_compiler_gnu=$ac_cv_c_compiler_gnu 1866 1867 echo "$as_me:1867: checking for NetBSD" >&5 1868echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6 1869 cat >conftest.$ac_ext <<_ACEOF 1870#line 1870 "configure" 1871#include "confdefs.h" 1872#ifdef __NetBSD__ 1873 yes 1874 #endif 1875 1876_ACEOF 1877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1878 egrep "yes" >/dev/null 2>&1; then 1879 echo "$as_me:1879: result: yes" >&5 1880echo "${ECHO_T}yes" >&6 1881 1882cat >>confdefs.h <<\EOF 1883#define _POSIX_SOURCE 1 1884EOF 1885 1886cat >>confdefs.h <<\EOF 1887#define _POSIX_C_SOURCE 200112L 1888EOF 1889 1890cat >>confdefs.h <<\EOF 1891#define _XOPEN_SOURCE 600 1892EOF 1893 1894else 1895 echo "$as_me:1895: result: no" >&5 1896echo "${ECHO_T}no" >&6 1897fi 1898rm -f conftest* 1899 1900# Extract the first word of "sh", so it can be a program name with args. 1901set dummy sh; ac_word=$2 1902echo "$as_me:1902: checking for $ac_word" >&5 1903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1904if test "${ac_cv_path_BSHELL+set}" = set; then 1905 echo $ECHO_N "(cached) $ECHO_C" >&6 1906else 1907 case $BSHELL in 1908 [\\/]* | ?:[\\/]*) 1909 ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path. 1910 ;; 1911 *) 1912 ac_save_IFS=$IFS; IFS=$ac_path_separator 1913ac_dummy="$PATH" 1914for ac_dir in $ac_dummy; do 1915 IFS=$ac_save_IFS 1916 test -z "$ac_dir" && ac_dir=. 1917 if $as_executable_p "$ac_dir/$ac_word"; then 1918 ac_cv_path_BSHELL="$ac_dir/$ac_word" 1919 echo "$as_me:1919: found $ac_dir/$ac_word" >&5 1920 break 1921fi 1922done 1923 1924 ;; 1925esac 1926fi 1927BSHELL=$ac_cv_path_BSHELL 1928 1929if test -n "$BSHELL"; then 1930 echo "$as_me:1930: result: $BSHELL" >&5 1931echo "${ECHO_T}$BSHELL" >&6 1932else 1933 echo "$as_me:1933: result: no" >&5 1934echo "${ECHO_T}no" >&6 1935fi 1936 1937if test x"$BSHELL" = x; then 1938 { { echo "$as_me:1938: error: sh must be somewhere on \$PATH" >&5 1939echo "$as_me: error: sh must be somewhere on \$PATH" >&2;} 1940 { (exit 1); exit 1; }; } 1941fi 1942 1943cat >>confdefs.h <<EOF 1944#define PATH_BSHELL "$BSHELL" 1945EOF 1946 1947echo "$as_me:1947: checking whether byte ordering is bigendian" >&5 1948echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 1949if test "${ac_cv_c_bigendian+set}" = set; then 1950 echo $ECHO_N "(cached) $ECHO_C" >&6 1951else 1952 ac_cv_c_bigendian=unknown 1953# See if sys/param.h defines the BYTE_ORDER macro. 1954cat >conftest.$ac_ext <<_ACEOF 1955#line 1955 "configure" 1956#include "confdefs.h" 1957#include <sys/types.h> 1958#include <sys/param.h> 1959 1960int 1961main () 1962{ 1963#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 1964 bogus endian macros 1965#endif 1966 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971rm -f conftest.$ac_objext 1972if { (eval echo "$as_me:1972: \"$ac_compile\"") >&5 1973 (eval $ac_compile) 2>&5 1974 ac_status=$? 1975 echo "$as_me:1975: \$? = $ac_status" >&5 1976 (exit $ac_status); } && 1977 { ac_try='test -s conftest.$ac_objext' 1978 { (eval echo "$as_me:1978: \"$ac_try\"") >&5 1979 (eval $ac_try) 2>&5 1980 ac_status=$? 1981 echo "$as_me:1981: \$? = $ac_status" >&5 1982 (exit $ac_status); }; }; then 1983 # It does; now see whether it defined to BIG_ENDIAN or not. 1984cat >conftest.$ac_ext <<_ACEOF 1985#line 1985 "configure" 1986#include "confdefs.h" 1987#include <sys/types.h> 1988#include <sys/param.h> 1989 1990int 1991main () 1992{ 1993#if BYTE_ORDER != BIG_ENDIAN 1994 not big endian 1995#endif 1996 1997 ; 1998 return 0; 1999} 2000_ACEOF 2001rm -f conftest.$ac_objext 2002if { (eval echo "$as_me:2002: \"$ac_compile\"") >&5 2003 (eval $ac_compile) 2>&5 2004 ac_status=$? 2005 echo "$as_me:2005: \$? = $ac_status" >&5 2006 (exit $ac_status); } && 2007 { ac_try='test -s conftest.$ac_objext' 2008 { (eval echo "$as_me:2008: \"$ac_try\"") >&5 2009 (eval $ac_try) 2>&5 2010 ac_status=$? 2011 echo "$as_me:2011: \$? = $ac_status" >&5 2012 (exit $ac_status); }; }; then 2013 ac_cv_c_bigendian=yes 2014else 2015 echo "$as_me: failed program was:" >&5 2016cat conftest.$ac_ext >&5 2017ac_cv_c_bigendian=no 2018fi 2019rm -f conftest.$ac_objext conftest.$ac_ext 2020else 2021 echo "$as_me: failed program was:" >&5 2022cat conftest.$ac_ext >&5 2023fi 2024rm -f conftest.$ac_objext conftest.$ac_ext 2025if test $ac_cv_c_bigendian = unknown; then 2026if test "$cross_compiling" = yes; then 2027 { { echo "$as_me:2027: error: cannot run test program while cross compiling" >&5 2028echo "$as_me: error: cannot run test program while cross compiling" >&2;} 2029 { (exit 1); exit 1; }; } 2030else 2031 cat >conftest.$ac_ext <<_ACEOF 2032#line 2032 "configure" 2033#include "confdefs.h" 2034int 2035main () 2036{ 2037 /* Are we little or big endian? From Harbison&Steele. */ 2038 union 2039 { 2040 long l; 2041 char c[sizeof (long)]; 2042 } u; 2043 u.l = 1; 2044 exit (u.c[sizeof (long) - 1] == 1); 2045} 2046_ACEOF 2047rm -f conftest$ac_exeext 2048if { (eval echo "$as_me:2048: \"$ac_link\"") >&5 2049 (eval $ac_link) 2>&5 2050 ac_status=$? 2051 echo "$as_me:2051: \$? = $ac_status" >&5 2052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2053 { (eval echo "$as_me:2053: \"$ac_try\"") >&5 2054 (eval $ac_try) 2>&5 2055 ac_status=$? 2056 echo "$as_me:2056: \$? = $ac_status" >&5 2057 (exit $ac_status); }; }; then 2058 ac_cv_c_bigendian=no 2059else 2060 echo "$as_me: program exited with status $ac_status" >&5 2061echo "$as_me: failed program was:" >&5 2062cat conftest.$ac_ext >&5 2063ac_cv_c_bigendian=yes 2064fi 2065rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2066fi 2067fi 2068fi 2069echo "$as_me:2069: result: $ac_cv_c_bigendian" >&5 2070echo "${ECHO_T}$ac_cv_c_bigendian" >&6 2071if test $ac_cv_c_bigendian = yes; then 2072 2073cat >>confdefs.h <<\EOF 2074#define WORDS_BIGENDIAN 1 2075EOF 2076 2077fi 2078 2079echo "$as_me:2079: checking for ANSI C header files" >&5 2080echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2081if test "${ac_cv_header_stdc+set}" = set; then 2082 echo $ECHO_N "(cached) $ECHO_C" >&6 2083else 2084 cat >conftest.$ac_ext <<_ACEOF 2085#line 2085 "configure" 2086#include "confdefs.h" 2087#include <stdlib.h> 2088#include <stdarg.h> 2089#include <string.h> 2090#include <float.h> 2091 2092_ACEOF 2093if { (eval echo "$as_me:2093: \"$ac_cpp conftest.$ac_ext\"") >&5 2094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2095 ac_status=$? 2096 egrep -v '^ *\+' conftest.er1 >conftest.err 2097 rm -f conftest.er1 2098 cat conftest.err >&5 2099 echo "$as_me:2099: \$? = $ac_status" >&5 2100 (exit $ac_status); } >/dev/null; then 2101 if test -s conftest.err; then 2102 ac_cpp_err=$ac_c_preproc_warn_flag 2103 else 2104 ac_cpp_err= 2105 fi 2106else 2107 ac_cpp_err=yes 2108fi 2109if test -z "$ac_cpp_err"; then 2110 ac_cv_header_stdc=yes 2111else 2112 echo "$as_me: failed program was:" >&5 2113 cat conftest.$ac_ext >&5 2114 ac_cv_header_stdc=no 2115fi 2116rm -f conftest.err conftest.$ac_ext 2117 2118if test $ac_cv_header_stdc = yes; then 2119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2120 cat >conftest.$ac_ext <<_ACEOF 2121#line 2121 "configure" 2122#include "confdefs.h" 2123#include <string.h> 2124 2125_ACEOF 2126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2127 egrep "memchr" >/dev/null 2>&1; then 2128 : 2129else 2130 ac_cv_header_stdc=no 2131fi 2132rm -f conftest* 2133 2134fi 2135 2136if test $ac_cv_header_stdc = yes; then 2137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2138 cat >conftest.$ac_ext <<_ACEOF 2139#line 2139 "configure" 2140#include "confdefs.h" 2141#include <stdlib.h> 2142 2143_ACEOF 2144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2145 egrep "free" >/dev/null 2>&1; then 2146 : 2147else 2148 ac_cv_header_stdc=no 2149fi 2150rm -f conftest* 2151 2152fi 2153 2154if test $ac_cv_header_stdc = yes; then 2155 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2156 if test "$cross_compiling" = yes; then 2157 : 2158else 2159 cat >conftest.$ac_ext <<_ACEOF 2160#line 2160 "configure" 2161#include "confdefs.h" 2162#include <ctype.h> 2163#if ((' ' & 0x0FF) == 0x020) 2164# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2165# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2166#else 2167# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 2168 || ('j' <= (c) && (c) <= 'r') \ 2169 || ('s' <= (c) && (c) <= 'z')) 2170# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2171#endif 2172 2173#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2174int 2175main () 2176{ 2177 int i; 2178 for (i = 0; i < 256; i++) 2179 if (XOR (islower (i), ISLOWER (i)) 2180 || toupper (i) != TOUPPER (i)) 2181 exit(2); 2182 exit (0); 2183} 2184_ACEOF 2185rm -f conftest$ac_exeext 2186if { (eval echo "$as_me:2186: \"$ac_link\"") >&5 2187 (eval $ac_link) 2>&5 2188 ac_status=$? 2189 echo "$as_me:2189: \$? = $ac_status" >&5 2190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2191 { (eval echo "$as_me:2191: \"$ac_try\"") >&5 2192 (eval $ac_try) 2>&5 2193 ac_status=$? 2194 echo "$as_me:2194: \$? = $ac_status" >&5 2195 (exit $ac_status); }; }; then 2196 : 2197else 2198 echo "$as_me: program exited with status $ac_status" >&5 2199echo "$as_me: failed program was:" >&5 2200cat conftest.$ac_ext >&5 2201ac_cv_header_stdc=no 2202fi 2203rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2204fi 2205fi 2206fi 2207echo "$as_me:2207: result: $ac_cv_header_stdc" >&5 2208echo "${ECHO_T}$ac_cv_header_stdc" >&6 2209if test $ac_cv_header_stdc = yes; then 2210 2211cat >>confdefs.h <<\EOF 2212#define STDC_HEADERS 1 2213EOF 2214 2215fi 2216 2217# Confirm existence of zlib. (This is available as a default install 2218# option on many OS's; this could be added as a reachover build in the 2219# future.) 2220echo "$as_me:2220: checking for zlib.h" >&5 2221echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 2222if test "${ac_cv_header_zlib_h+set}" = set; then 2223 echo $ECHO_N "(cached) $ECHO_C" >&6 2224else 2225 cat >conftest.$ac_ext <<_ACEOF 2226#line 2226 "configure" 2227#include "confdefs.h" 2228#include <zlib.h> 2229_ACEOF 2230if { (eval echo "$as_me:2230: \"$ac_cpp conftest.$ac_ext\"") >&5 2231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2232 ac_status=$? 2233 egrep -v '^ *\+' conftest.er1 >conftest.err 2234 rm -f conftest.er1 2235 cat conftest.err >&5 2236 echo "$as_me:2236: \$? = $ac_status" >&5 2237 (exit $ac_status); } >/dev/null; then 2238 if test -s conftest.err; then 2239 ac_cpp_err=$ac_c_preproc_warn_flag 2240 else 2241 ac_cpp_err= 2242 fi 2243else 2244 ac_cpp_err=yes 2245fi 2246if test -z "$ac_cpp_err"; then 2247 ac_cv_header_zlib_h=yes 2248else 2249 echo "$as_me: failed program was:" >&5 2250 cat conftest.$ac_ext >&5 2251 ac_cv_header_zlib_h=no 2252fi 2253rm -f conftest.err conftest.$ac_ext 2254fi 2255echo "$as_me:2255: result: $ac_cv_header_zlib_h" >&5 2256echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 2257if test $ac_cv_header_zlib_h = yes; then 2258 : 2259else 2260 { { echo "$as_me:2260: error: zlib must be installed in a compiler-visible path" >&5 2261echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;} 2262 { (exit 1); exit 1; }; } 2263fi 2264 2265echo "$as_me:2265: checking for gzdopen in -lz" >&5 2266echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6 2267if test "${ac_cv_lib_z_gzdopen+set}" = set; then 2268 echo $ECHO_N "(cached) $ECHO_C" >&6 2269else 2270 ac_check_lib_save_LIBS=$LIBS 2271LIBS="-lz $LIBS" 2272cat >conftest.$ac_ext <<_ACEOF 2273#line 2273 "configure" 2274#include "confdefs.h" 2275 2276/* Override any gcc2 internal prototype to avoid an error. */ 2277#ifdef __cplusplus 2278extern "C" 2279#endif 2280/* We use char because int might match the return type of a gcc2 2281 builtin and then its argument prototype would still apply. */ 2282char gzdopen (); 2283int 2284main () 2285{ 2286gzdopen (); 2287 ; 2288 return 0; 2289} 2290_ACEOF 2291rm -f conftest.$ac_objext conftest$ac_exeext 2292if { (eval echo "$as_me:2292: \"$ac_link\"") >&5 2293 (eval $ac_link) 2>&5 2294 ac_status=$? 2295 echo "$as_me:2295: \$? = $ac_status" >&5 2296 (exit $ac_status); } && 2297 { ac_try='test -s conftest$ac_exeext' 2298 { (eval echo "$as_me:2298: \"$ac_try\"") >&5 2299 (eval $ac_try) 2>&5 2300 ac_status=$? 2301 echo "$as_me:2301: \$? = $ac_status" >&5 2302 (exit $ac_status); }; }; then 2303 ac_cv_lib_z_gzdopen=yes 2304else 2305 echo "$as_me: failed program was:" >&5 2306cat conftest.$ac_ext >&5 2307ac_cv_lib_z_gzdopen=no 2308fi 2309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2310LIBS=$ac_check_lib_save_LIBS 2311fi 2312echo "$as_me:2312: result: $ac_cv_lib_z_gzdopen" >&5 2313echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6 2314if test $ac_cv_lib_z_gzdopen = yes; then 2315 cat >>confdefs.h <<EOF 2316#define HAVE_LIBZ 1 2317EOF 2318 2319 LIBS="-lz $LIBS" 2320 2321else 2322 { { echo "$as_me:2322: error: zlib must be installed in a compiler-visible path" >&5 2323echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;} 2324 { (exit 1); exit 1; }; } 2325fi 2326 2327# Make sure certain required headers are available. 2328# These are not necessarily required by the code, but they are not 2329# currently conditionalized. 2330 2331for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \ 2332 sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \ 2333 sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \ 2334 netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \ 2335 termios.h unistd.h 2336do 2337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2338echo "$as_me:2338: checking for $ac_header" >&5 2339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2340if eval "test \"\${$as_ac_Header+set}\" = set"; then 2341 echo $ECHO_N "(cached) $ECHO_C" >&6 2342else 2343 cat >conftest.$ac_ext <<_ACEOF 2344#line 2344 "configure" 2345#include "confdefs.h" 2346#include <$ac_header> 2347_ACEOF 2348if { (eval echo "$as_me:2348: \"$ac_cpp conftest.$ac_ext\"") >&5 2349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2350 ac_status=$? 2351 egrep -v '^ *\+' conftest.er1 >conftest.err 2352 rm -f conftest.er1 2353 cat conftest.err >&5 2354 echo "$as_me:2354: \$? = $ac_status" >&5 2355 (exit $ac_status); } >/dev/null; then 2356 if test -s conftest.err; then 2357 ac_cpp_err=$ac_c_preproc_warn_flag 2358 else 2359 ac_cpp_err= 2360 fi 2361else 2362 ac_cpp_err=yes 2363fi 2364if test -z "$ac_cpp_err"; then 2365 eval "$as_ac_Header=yes" 2366else 2367 echo "$as_me: failed program was:" >&5 2368 cat conftest.$ac_ext >&5 2369 eval "$as_ac_Header=no" 2370fi 2371rm -f conftest.err conftest.$ac_ext 2372fi 2373echo "$as_me:2373: result: `eval echo '${'$as_ac_Header'}'`" >&5 2374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2375if test `eval echo '${'$as_ac_Header'}'` = yes; then 2376 cat >>confdefs.h <<EOF 2377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2378EOF 2379 2380else 2381 { { echo "$as_me:2381: error: standard system header file not found" >&5 2382echo "$as_me: error: standard system header file not found" >&2;} 2383 { (exit 1); exit 1; }; } 2384fi 2385done 2386 2387# Find headers that may not be available. 2388 2389ac_header_dirent=no 2390for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 2391 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 2392echo "$as_me:2392: checking for $ac_hdr that defines DIR" >&5 2393echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 2394if eval "test \"\${$as_ac_Header+set}\" = set"; then 2395 echo $ECHO_N "(cached) $ECHO_C" >&6 2396else 2397 cat >conftest.$ac_ext <<_ACEOF 2398#line 2398 "configure" 2399#include "confdefs.h" 2400#include <sys/types.h> 2401#include <$ac_hdr> 2402 2403int 2404main () 2405{ 2406if ((DIR *) 0) 2407return 0; 2408 ; 2409 return 0; 2410} 2411_ACEOF 2412rm -f conftest.$ac_objext 2413if { (eval echo "$as_me:2413: \"$ac_compile\"") >&5 2414 (eval $ac_compile) 2>&5 2415 ac_status=$? 2416 echo "$as_me:2416: \$? = $ac_status" >&5 2417 (exit $ac_status); } && 2418 { ac_try='test -s conftest.$ac_objext' 2419 { (eval echo "$as_me:2419: \"$ac_try\"") >&5 2420 (eval $ac_try) 2>&5 2421 ac_status=$? 2422 echo "$as_me:2422: \$? = $ac_status" >&5 2423 (exit $ac_status); }; }; then 2424 eval "$as_ac_Header=yes" 2425else 2426 echo "$as_me: failed program was:" >&5 2427cat conftest.$ac_ext >&5 2428eval "$as_ac_Header=no" 2429fi 2430rm -f conftest.$ac_objext conftest.$ac_ext 2431fi 2432echo "$as_me:2432: result: `eval echo '${'$as_ac_Header'}'`" >&5 2433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2434if test `eval echo '${'$as_ac_Header'}'` = yes; then 2435 cat >>confdefs.h <<EOF 2436#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 2437EOF 2438 2439ac_header_dirent=$ac_hdr; break 2440fi 2441 2442done 2443# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 2444if test $ac_header_dirent = dirent.h; then 2445 echo "$as_me:2445: checking for opendir in -ldir" >&5 2446echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 2447if test "${ac_cv_lib_dir_opendir+set}" = set; then 2448 echo $ECHO_N "(cached) $ECHO_C" >&6 2449else 2450 ac_check_lib_save_LIBS=$LIBS 2451LIBS="-ldir $LIBS" 2452cat >conftest.$ac_ext <<_ACEOF 2453#line 2453 "configure" 2454#include "confdefs.h" 2455 2456/* Override any gcc2 internal prototype to avoid an error. */ 2457#ifdef __cplusplus 2458extern "C" 2459#endif 2460/* We use char because int might match the return type of a gcc2 2461 builtin and then its argument prototype would still apply. */ 2462char opendir (); 2463int 2464main () 2465{ 2466opendir (); 2467 ; 2468 return 0; 2469} 2470_ACEOF 2471rm -f conftest.$ac_objext conftest$ac_exeext 2472if { (eval echo "$as_me:2472: \"$ac_link\"") >&5 2473 (eval $ac_link) 2>&5 2474 ac_status=$? 2475 echo "$as_me:2475: \$? = $ac_status" >&5 2476 (exit $ac_status); } && 2477 { ac_try='test -s conftest$ac_exeext' 2478 { (eval echo "$as_me:2478: \"$ac_try\"") >&5 2479 (eval $ac_try) 2>&5 2480 ac_status=$? 2481 echo "$as_me:2481: \$? = $ac_status" >&5 2482 (exit $ac_status); }; }; then 2483 ac_cv_lib_dir_opendir=yes 2484else 2485 echo "$as_me: failed program was:" >&5 2486cat conftest.$ac_ext >&5 2487ac_cv_lib_dir_opendir=no 2488fi 2489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2490LIBS=$ac_check_lib_save_LIBS 2491fi 2492echo "$as_me:2492: result: $ac_cv_lib_dir_opendir" >&5 2493echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 2494if test $ac_cv_lib_dir_opendir = yes; then 2495 LIBS="$LIBS -ldir" 2496fi 2497 2498else 2499 echo "$as_me:2499: checking for opendir in -lx" >&5 2500echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 2501if test "${ac_cv_lib_x_opendir+set}" = set; then 2502 echo $ECHO_N "(cached) $ECHO_C" >&6 2503else 2504 ac_check_lib_save_LIBS=$LIBS 2505LIBS="-lx $LIBS" 2506cat >conftest.$ac_ext <<_ACEOF 2507#line 2507 "configure" 2508#include "confdefs.h" 2509 2510/* Override any gcc2 internal prototype to avoid an error. */ 2511#ifdef __cplusplus 2512extern "C" 2513#endif 2514/* We use char because int might match the return type of a gcc2 2515 builtin and then its argument prototype would still apply. */ 2516char opendir (); 2517int 2518main () 2519{ 2520opendir (); 2521 ; 2522 return 0; 2523} 2524_ACEOF 2525rm -f conftest.$ac_objext conftest$ac_exeext 2526if { (eval echo "$as_me:2526: \"$ac_link\"") >&5 2527 (eval $ac_link) 2>&5 2528 ac_status=$? 2529 echo "$as_me:2529: \$? = $ac_status" >&5 2530 (exit $ac_status); } && 2531 { ac_try='test -s conftest$ac_exeext' 2532 { (eval echo "$as_me:2532: \"$ac_try\"") >&5 2533 (eval $ac_try) 2>&5 2534 ac_status=$? 2535 echo "$as_me:2535: \$? = $ac_status" >&5 2536 (exit $ac_status); }; }; then 2537 ac_cv_lib_x_opendir=yes 2538else 2539 echo "$as_me: failed program was:" >&5 2540cat conftest.$ac_ext >&5 2541ac_cv_lib_x_opendir=no 2542fi 2543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2544LIBS=$ac_check_lib_save_LIBS 2545fi 2546echo "$as_me:2546: result: $ac_cv_lib_x_opendir" >&5 2547echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 2548if test $ac_cv_lib_x_opendir = yes; then 2549 LIBS="$LIBS -lx" 2550fi 2551 2552fi 2553 2554for ac_header in sys/sysmacros.h sys/syslimits.h \ 2555 getopt.h features.h malloc.h sys/poll.h stddef.h 2556do 2557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2558echo "$as_me:2558: checking for $ac_header" >&5 2559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2560if eval "test \"\${$as_ac_Header+set}\" = set"; then 2561 echo $ECHO_N "(cached) $ECHO_C" >&6 2562else 2563 cat >conftest.$ac_ext <<_ACEOF 2564#line 2564 "configure" 2565#include "confdefs.h" 2566#include <$ac_header> 2567_ACEOF 2568if { (eval echo "$as_me:2568: \"$ac_cpp conftest.$ac_ext\"") >&5 2569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2570 ac_status=$? 2571 egrep -v '^ *\+' conftest.er1 >conftest.err 2572 rm -f conftest.er1 2573 cat conftest.err >&5 2574 echo "$as_me:2574: \$? = $ac_status" >&5 2575 (exit $ac_status); } >/dev/null; then 2576 if test -s conftest.err; then 2577 ac_cpp_err=$ac_c_preproc_warn_flag 2578 else 2579 ac_cpp_err= 2580 fi 2581else 2582 ac_cpp_err=yes 2583fi 2584if test -z "$ac_cpp_err"; then 2585 eval "$as_ac_Header=yes" 2586else 2587 echo "$as_me: failed program was:" >&5 2588 cat conftest.$ac_ext >&5 2589 eval "$as_ac_Header=no" 2590fi 2591rm -f conftest.err conftest.$ac_ext 2592fi 2593echo "$as_me:2593: result: `eval echo '${'$as_ac_Header'}'`" >&5 2594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2595if test `eval echo '${'$as_ac_Header'}'` = yes; then 2596 cat >>confdefs.h <<EOF 2597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2598EOF 2599 2600fi 2601done 2602 2603for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \ 2604 sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h 2605do 2606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2607echo "$as_me:2607: checking for $ac_header" >&5 2608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2609if eval "test \"\${$as_ac_Header+set}\" = set"; then 2610 echo $ECHO_N "(cached) $ECHO_C" >&6 2611else 2612 cat >conftest.$ac_ext <<_ACEOF 2613#line 2613 "configure" 2614#include "confdefs.h" 2615#include <$ac_header> 2616_ACEOF 2617if { (eval echo "$as_me:2617: \"$ac_cpp conftest.$ac_ext\"") >&5 2618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2619 ac_status=$? 2620 egrep -v '^ *\+' conftest.er1 >conftest.err 2621 rm -f conftest.er1 2622 cat conftest.err >&5 2623 echo "$as_me:2623: \$? = $ac_status" >&5 2624 (exit $ac_status); } >/dev/null; then 2625 if test -s conftest.err; then 2626 ac_cpp_err=$ac_c_preproc_warn_flag 2627 else 2628 ac_cpp_err= 2629 fi 2630else 2631 ac_cpp_err=yes 2632fi 2633if test -z "$ac_cpp_err"; then 2634 eval "$as_ac_Header=yes" 2635else 2636 echo "$as_me: failed program was:" >&5 2637 cat conftest.$ac_ext >&5 2638 eval "$as_ac_Header=no" 2639fi 2640rm -f conftest.err conftest.$ac_ext 2641fi 2642echo "$as_me:2642: result: `eval echo '${'$as_ac_Header'}'`" >&5 2643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2644if test `eval echo '${'$as_ac_Header'}'` = yes; then 2645 cat >>confdefs.h <<EOF 2646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2647EOF 2648 2649else 2650 test -f include/$ac_header || touch include/$ac_header 2651fi 2652done 2653 2654for ac_header in rpc/types.h netconfig.h 2655do 2656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2657echo "$as_me:2657: checking for $ac_header" >&5 2658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2659if eval "test \"\${$as_ac_Header+set}\" = set"; then 2660 echo $ECHO_N "(cached) $ECHO_C" >&6 2661else 2662 cat >conftest.$ac_ext <<_ACEOF 2663#line 2663 "configure" 2664#include "confdefs.h" 2665#include <$ac_header> 2666_ACEOF 2667if { (eval echo "$as_me:2667: \"$ac_cpp conftest.$ac_ext\"") >&5 2668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2669 ac_status=$? 2670 egrep -v '^ *\+' conftest.er1 >conftest.err 2671 rm -f conftest.er1 2672 cat conftest.err >&5 2673 echo "$as_me:2673: \$? = $ac_status" >&5 2674 (exit $ac_status); } >/dev/null; then 2675 if test -s conftest.err; then 2676 ac_cpp_err=$ac_c_preproc_warn_flag 2677 else 2678 ac_cpp_err= 2679 fi 2680else 2681 ac_cpp_err=yes 2682fi 2683if test -z "$ac_cpp_err"; then 2684 eval "$as_ac_Header=yes" 2685else 2686 echo "$as_me: failed program was:" >&5 2687 cat conftest.$ac_ext >&5 2688 eval "$as_ac_Header=no" 2689fi 2690rm -f conftest.err conftest.$ac_ext 2691fi 2692echo "$as_me:2692: result: `eval echo '${'$as_ac_Header'}'`" >&5 2693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2694if test `eval echo '${'$as_ac_Header'}'` = yes; then 2695 cat >>confdefs.h <<EOF 2696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2697EOF 2698 2699else 2700 echo '#include "nbtool_config.h"' >include/$ac_header.new 2701 echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new 2702 if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then 2703 rm -f include/$ac_header.new 2704 else 2705 mv -f include/$ac_header.new include/$ac_header 2706 fi 2707fi 2708done 2709 2710# Typedefs. 2711# On IRIX 5.3, sys/types and inttypes.h are conflicting. 2712 2713for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2714 inttypes.h stdint.h unistd.h 2715do 2716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2717echo "$as_me:2717: checking for $ac_header" >&5 2718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2719if eval "test \"\${$as_ac_Header+set}\" = set"; then 2720 echo $ECHO_N "(cached) $ECHO_C" >&6 2721else 2722 cat >conftest.$ac_ext <<_ACEOF 2723#line 2723 "configure" 2724#include "confdefs.h" 2725$ac_includes_default 2726#include <$ac_header> 2727_ACEOF 2728rm -f conftest.$ac_objext 2729if { (eval echo "$as_me:2729: \"$ac_compile\"") >&5 2730 (eval $ac_compile) 2>&5 2731 ac_status=$? 2732 echo "$as_me:2732: \$? = $ac_status" >&5 2733 (exit $ac_status); } && 2734 { ac_try='test -s conftest.$ac_objext' 2735 { (eval echo "$as_me:2735: \"$ac_try\"") >&5 2736 (eval $ac_try) 2>&5 2737 ac_status=$? 2738 echo "$as_me:2738: \$? = $ac_status" >&5 2739 (exit $ac_status); }; }; then 2740 eval "$as_ac_Header=yes" 2741else 2742 echo "$as_me: failed program was:" >&5 2743cat conftest.$ac_ext >&5 2744eval "$as_ac_Header=no" 2745fi 2746rm -f conftest.$ac_objext conftest.$ac_ext 2747fi 2748echo "$as_me:2748: result: `eval echo '${'$as_ac_Header'}'`" >&5 2749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2750if test `eval echo '${'$as_ac_Header'}'` = yes; then 2751 cat >>confdefs.h <<EOF 2752#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2753EOF 2754 2755fi 2756done 2757 2758echo "$as_me:2758: checking for size_t" >&5 2759echo $ECHO_N "checking for size_t... $ECHO_C" >&6 2760if test "${ac_cv_type_size_t+set}" = set; then 2761 echo $ECHO_N "(cached) $ECHO_C" >&6 2762else 2763 cat >conftest.$ac_ext <<_ACEOF 2764#line 2764 "configure" 2765#include "confdefs.h" 2766$ac_includes_default 2767int 2768main () 2769{ 2770if ((size_t *) 0) 2771 return 0; 2772if (sizeof (size_t)) 2773 return 0; 2774 ; 2775 return 0; 2776} 2777_ACEOF 2778rm -f conftest.$ac_objext 2779if { (eval echo "$as_me:2779: \"$ac_compile\"") >&5 2780 (eval $ac_compile) 2>&5 2781 ac_status=$? 2782 echo "$as_me:2782: \$? = $ac_status" >&5 2783 (exit $ac_status); } && 2784 { ac_try='test -s conftest.$ac_objext' 2785 { (eval echo "$as_me:2785: \"$ac_try\"") >&5 2786 (eval $ac_try) 2>&5 2787 ac_status=$? 2788 echo "$as_me:2788: \$? = $ac_status" >&5 2789 (exit $ac_status); }; }; then 2790 ac_cv_type_size_t=yes 2791else 2792 echo "$as_me: failed program was:" >&5 2793cat conftest.$ac_ext >&5 2794ac_cv_type_size_t=no 2795fi 2796rm -f conftest.$ac_objext conftest.$ac_ext 2797fi 2798echo "$as_me:2798: result: $ac_cv_type_size_t" >&5 2799echo "${ECHO_T}$ac_cv_type_size_t" >&6 2800if test $ac_cv_type_size_t = yes; then 2801 : 2802else 2803 2804cat >>confdefs.h <<EOF 2805#define size_t unsigned 2806EOF 2807 2808fi 2809 2810echo "$as_me:2810: checking for id_t" >&5 2811echo $ECHO_N "checking for id_t... $ECHO_C" >&6 2812if test "${ac_cv_type_id_t+set}" = set; then 2813 echo $ECHO_N "(cached) $ECHO_C" >&6 2814else 2815 cat >conftest.$ac_ext <<_ACEOF 2816#line 2816 "configure" 2817#include "confdefs.h" 2818$ac_includes_default 2819int 2820main () 2821{ 2822if ((id_t *) 0) 2823 return 0; 2824if (sizeof (id_t)) 2825 return 0; 2826 ; 2827 return 0; 2828} 2829_ACEOF 2830rm -f conftest.$ac_objext 2831if { (eval echo "$as_me:2831: \"$ac_compile\"") >&5 2832 (eval $ac_compile) 2>&5 2833 ac_status=$? 2834 echo "$as_me:2834: \$? = $ac_status" >&5 2835 (exit $ac_status); } && 2836 { ac_try='test -s conftest.$ac_objext' 2837 { (eval echo "$as_me:2837: \"$ac_try\"") >&5 2838 (eval $ac_try) 2>&5 2839 ac_status=$? 2840 echo "$as_me:2840: \$? = $ac_status" >&5 2841 (exit $ac_status); }; }; then 2842 ac_cv_type_id_t=yes 2843else 2844 echo "$as_me: failed program was:" >&5 2845cat conftest.$ac_ext >&5 2846ac_cv_type_id_t=no 2847fi 2848rm -f conftest.$ac_objext conftest.$ac_ext 2849fi 2850echo "$as_me:2850: result: $ac_cv_type_id_t" >&5 2851echo "${ECHO_T}$ac_cv_type_id_t" >&6 2852if test $ac_cv_type_id_t = yes; then 2853 2854cat >>confdefs.h <<EOF 2855#define HAVE_ID_T 1 2856EOF 2857 2858fi 2859echo "$as_me:2859: checking for long long" >&5 2860echo $ECHO_N "checking for long long... $ECHO_C" >&6 2861if test "${ac_cv_type_long_long+set}" = set; then 2862 echo $ECHO_N "(cached) $ECHO_C" >&6 2863else 2864 cat >conftest.$ac_ext <<_ACEOF 2865#line 2865 "configure" 2866#include "confdefs.h" 2867$ac_includes_default 2868int 2869main () 2870{ 2871if ((long long *) 0) 2872 return 0; 2873if (sizeof (long long)) 2874 return 0; 2875 ; 2876 return 0; 2877} 2878_ACEOF 2879rm -f conftest.$ac_objext 2880if { (eval echo "$as_me:2880: \"$ac_compile\"") >&5 2881 (eval $ac_compile) 2>&5 2882 ac_status=$? 2883 echo "$as_me:2883: \$? = $ac_status" >&5 2884 (exit $ac_status); } && 2885 { ac_try='test -s conftest.$ac_objext' 2886 { (eval echo "$as_me:2886: \"$ac_try\"") >&5 2887 (eval $ac_try) 2>&5 2888 ac_status=$? 2889 echo "$as_me:2889: \$? = $ac_status" >&5 2890 (exit $ac_status); }; }; then 2891 ac_cv_type_long_long=yes 2892else 2893 echo "$as_me: failed program was:" >&5 2894cat conftest.$ac_ext >&5 2895ac_cv_type_long_long=no 2896fi 2897rm -f conftest.$ac_objext conftest.$ac_ext 2898fi 2899echo "$as_me:2899: result: $ac_cv_type_long_long" >&5 2900echo "${ECHO_T}$ac_cv_type_long_long" >&6 2901if test $ac_cv_type_long_long = yes; then 2902 2903cat >>confdefs.h <<EOF 2904#define HAVE_LONG_LONG 1 2905EOF 2906 2907fi 2908echo "$as_me:2908: checking for u_long" >&5 2909echo $ECHO_N "checking for u_long... $ECHO_C" >&6 2910if test "${ac_cv_type_u_long+set}" = set; then 2911 echo $ECHO_N "(cached) $ECHO_C" >&6 2912else 2913 cat >conftest.$ac_ext <<_ACEOF 2914#line 2914 "configure" 2915#include "confdefs.h" 2916$ac_includes_default 2917int 2918main () 2919{ 2920if ((u_long *) 0) 2921 return 0; 2922if (sizeof (u_long)) 2923 return 0; 2924 ; 2925 return 0; 2926} 2927_ACEOF 2928rm -f conftest.$ac_objext 2929if { (eval echo "$as_me:2929: \"$ac_compile\"") >&5 2930 (eval $ac_compile) 2>&5 2931 ac_status=$? 2932 echo "$as_me:2932: \$? = $ac_status" >&5 2933 (exit $ac_status); } && 2934 { ac_try='test -s conftest.$ac_objext' 2935 { (eval echo "$as_me:2935: \"$ac_try\"") >&5 2936 (eval $ac_try) 2>&5 2937 ac_status=$? 2938 echo "$as_me:2938: \$? = $ac_status" >&5 2939 (exit $ac_status); }; }; then 2940 ac_cv_type_u_long=yes 2941else 2942 echo "$as_me: failed program was:" >&5 2943cat conftest.$ac_ext >&5 2944ac_cv_type_u_long=no 2945fi 2946rm -f conftest.$ac_objext conftest.$ac_ext 2947fi 2948echo "$as_me:2948: result: $ac_cv_type_u_long" >&5 2949echo "${ECHO_T}$ac_cv_type_u_long" >&6 2950if test $ac_cv_type_u_long = yes; then 2951 2952cat >>confdefs.h <<EOF 2953#define HAVE_U_LONG 1 2954EOF 2955 2956fi 2957echo "$as_me:2957: checking for u_char" >&5 2958echo $ECHO_N "checking for u_char... $ECHO_C" >&6 2959if test "${ac_cv_type_u_char+set}" = set; then 2960 echo $ECHO_N "(cached) $ECHO_C" >&6 2961else 2962 cat >conftest.$ac_ext <<_ACEOF 2963#line 2963 "configure" 2964#include "confdefs.h" 2965$ac_includes_default 2966int 2967main () 2968{ 2969if ((u_char *) 0) 2970 return 0; 2971if (sizeof (u_char)) 2972 return 0; 2973 ; 2974 return 0; 2975} 2976_ACEOF 2977rm -f conftest.$ac_objext 2978if { (eval echo "$as_me:2978: \"$ac_compile\"") >&5 2979 (eval $ac_compile) 2>&5 2980 ac_status=$? 2981 echo "$as_me:2981: \$? = $ac_status" >&5 2982 (exit $ac_status); } && 2983 { ac_try='test -s conftest.$ac_objext' 2984 { (eval echo "$as_me:2984: \"$ac_try\"") >&5 2985 (eval $ac_try) 2>&5 2986 ac_status=$? 2987 echo "$as_me:2987: \$? = $ac_status" >&5 2988 (exit $ac_status); }; }; then 2989 ac_cv_type_u_char=yes 2990else 2991 echo "$as_me: failed program was:" >&5 2992cat conftest.$ac_ext >&5 2993ac_cv_type_u_char=no 2994fi 2995rm -f conftest.$ac_objext conftest.$ac_ext 2996fi 2997echo "$as_me:2997: result: $ac_cv_type_u_char" >&5 2998echo "${ECHO_T}$ac_cv_type_u_char" >&6 2999if test $ac_cv_type_u_char = yes; then 3000 3001cat >>confdefs.h <<EOF 3002#define HAVE_U_CHAR 1 3003EOF 3004 3005fi 3006echo "$as_me:3006: checking for u_short" >&5 3007echo $ECHO_N "checking for u_short... $ECHO_C" >&6 3008if test "${ac_cv_type_u_short+set}" = set; then 3009 echo $ECHO_N "(cached) $ECHO_C" >&6 3010else 3011 cat >conftest.$ac_ext <<_ACEOF 3012#line 3012 "configure" 3013#include "confdefs.h" 3014$ac_includes_default 3015int 3016main () 3017{ 3018if ((u_short *) 0) 3019 return 0; 3020if (sizeof (u_short)) 3021 return 0; 3022 ; 3023 return 0; 3024} 3025_ACEOF 3026rm -f conftest.$ac_objext 3027if { (eval echo "$as_me:3027: \"$ac_compile\"") >&5 3028 (eval $ac_compile) 2>&5 3029 ac_status=$? 3030 echo "$as_me:3030: \$? = $ac_status" >&5 3031 (exit $ac_status); } && 3032 { ac_try='test -s conftest.$ac_objext' 3033 { (eval echo "$as_me:3033: \"$ac_try\"") >&5 3034 (eval $ac_try) 2>&5 3035 ac_status=$? 3036 echo "$as_me:3036: \$? = $ac_status" >&5 3037 (exit $ac_status); }; }; then 3038 ac_cv_type_u_short=yes 3039else 3040 echo "$as_me: failed program was:" >&5 3041cat conftest.$ac_ext >&5 3042ac_cv_type_u_short=no 3043fi 3044rm -f conftest.$ac_objext conftest.$ac_ext 3045fi 3046echo "$as_me:3046: result: $ac_cv_type_u_short" >&5 3047echo "${ECHO_T}$ac_cv_type_u_short" >&6 3048if test $ac_cv_type_u_short = yes; then 3049 3050cat >>confdefs.h <<EOF 3051#define HAVE_U_SHORT 1 3052EOF 3053 3054fi 3055echo "$as_me:3055: checking for u_int" >&5 3056echo $ECHO_N "checking for u_int... $ECHO_C" >&6 3057if test "${ac_cv_type_u_int+set}" = set; then 3058 echo $ECHO_N "(cached) $ECHO_C" >&6 3059else 3060 cat >conftest.$ac_ext <<_ACEOF 3061#line 3061 "configure" 3062#include "confdefs.h" 3063$ac_includes_default 3064int 3065main () 3066{ 3067if ((u_int *) 0) 3068 return 0; 3069if (sizeof (u_int)) 3070 return 0; 3071 ; 3072 return 0; 3073} 3074_ACEOF 3075rm -f conftest.$ac_objext 3076if { (eval echo "$as_me:3076: \"$ac_compile\"") >&5 3077 (eval $ac_compile) 2>&5 3078 ac_status=$? 3079 echo "$as_me:3079: \$? = $ac_status" >&5 3080 (exit $ac_status); } && 3081 { ac_try='test -s conftest.$ac_objext' 3082 { (eval echo "$as_me:3082: \"$ac_try\"") >&5 3083 (eval $ac_try) 2>&5 3084 ac_status=$? 3085 echo "$as_me:3085: \$? = $ac_status" >&5 3086 (exit $ac_status); }; }; then 3087 ac_cv_type_u_int=yes 3088else 3089 echo "$as_me: failed program was:" >&5 3090cat conftest.$ac_ext >&5 3091ac_cv_type_u_int=no 3092fi 3093rm -f conftest.$ac_objext conftest.$ac_ext 3094fi 3095echo "$as_me:3095: result: $ac_cv_type_u_int" >&5 3096echo "${ECHO_T}$ac_cv_type_u_int" >&6 3097if test $ac_cv_type_u_int = yes; then 3098 3099cat >>confdefs.h <<EOF 3100#define HAVE_U_INT 1 3101EOF 3102 3103fi 3104echo "$as_me:3104: checking for u_quad_t" >&5 3105echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6 3106if test "${ac_cv_type_u_quad_t+set}" = set; then 3107 echo $ECHO_N "(cached) $ECHO_C" >&6 3108else 3109 cat >conftest.$ac_ext <<_ACEOF 3110#line 3110 "configure" 3111#include "confdefs.h" 3112$ac_includes_default 3113int 3114main () 3115{ 3116if ((u_quad_t *) 0) 3117 return 0; 3118if (sizeof (u_quad_t)) 3119 return 0; 3120 ; 3121 return 0; 3122} 3123_ACEOF 3124rm -f conftest.$ac_objext 3125if { (eval echo "$as_me:3125: \"$ac_compile\"") >&5 3126 (eval $ac_compile) 2>&5 3127 ac_status=$? 3128 echo "$as_me:3128: \$? = $ac_status" >&5 3129 (exit $ac_status); } && 3130 { ac_try='test -s conftest.$ac_objext' 3131 { (eval echo "$as_me:3131: \"$ac_try\"") >&5 3132 (eval $ac_try) 2>&5 3133 ac_status=$? 3134 echo "$as_me:3134: \$? = $ac_status" >&5 3135 (exit $ac_status); }; }; then 3136 ac_cv_type_u_quad_t=yes 3137else 3138 echo "$as_me: failed program was:" >&5 3139cat conftest.$ac_ext >&5 3140ac_cv_type_u_quad_t=no 3141fi 3142rm -f conftest.$ac_objext conftest.$ac_ext 3143fi 3144echo "$as_me:3144: result: $ac_cv_type_u_quad_t" >&5 3145echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6 3146if test $ac_cv_type_u_quad_t = yes; then 3147 3148cat >>confdefs.h <<EOF 3149#define HAVE_U_QUAD_T 1 3150EOF 3151 3152fi 3153 3154echo "$as_me:3154: checking for socklen_t" >&5 3155echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 3156if test "${ac_cv_type_socklen_t+set}" = set; then 3157 echo $ECHO_N "(cached) $ECHO_C" >&6 3158else 3159 cat >conftest.$ac_ext <<_ACEOF 3160#line 3160 "configure" 3161#include "confdefs.h" 3162#include <sys/types.h> 3163#include <sys/socket.h> 3164 3165int 3166main () 3167{ 3168if ((socklen_t *) 0) 3169 return 0; 3170if (sizeof (socklen_t)) 3171 return 0; 3172 ; 3173 return 0; 3174} 3175_ACEOF 3176rm -f conftest.$ac_objext 3177if { (eval echo "$as_me:3177: \"$ac_compile\"") >&5 3178 (eval $ac_compile) 2>&5 3179 ac_status=$? 3180 echo "$as_me:3180: \$? = $ac_status" >&5 3181 (exit $ac_status); } && 3182 { ac_try='test -s conftest.$ac_objext' 3183 { (eval echo "$as_me:3183: \"$ac_try\"") >&5 3184 (eval $ac_try) 2>&5 3185 ac_status=$? 3186 echo "$as_me:3186: \$? = $ac_status" >&5 3187 (exit $ac_status); }; }; then 3188 ac_cv_type_socklen_t=yes 3189else 3190 echo "$as_me: failed program was:" >&5 3191cat conftest.$ac_ext >&5 3192ac_cv_type_socklen_t=no 3193fi 3194rm -f conftest.$ac_objext conftest.$ac_ext 3195fi 3196echo "$as_me:3196: result: $ac_cv_type_socklen_t" >&5 3197echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 3198if test $ac_cv_type_socklen_t = yes; then 3199 3200cat >>confdefs.h <<\EOF 3201#define HAVE_SOCKLEN_T 1 3202EOF 3203 3204fi 3205 3206 echo "$as_me:3206: checking for uint8_t" >&5 3207echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 3208if test "${ac_cv_type_uint8_t+set}" = set; then 3209 echo $ECHO_N "(cached) $ECHO_C" >&6 3210else 3211 cat >conftest.$ac_ext <<_ACEOF 3212#line 3212 "configure" 3213#include "confdefs.h" 3214$ac_includes_default 3215int 3216main () 3217{ 3218if ((uint8_t *) 0) 3219 return 0; 3220if (sizeof (uint8_t)) 3221 return 0; 3222 ; 3223 return 0; 3224} 3225_ACEOF 3226rm -f conftest.$ac_objext 3227if { (eval echo "$as_me:3227: \"$ac_compile\"") >&5 3228 (eval $ac_compile) 2>&5 3229 ac_status=$? 3230 echo "$as_me:3230: \$? = $ac_status" >&5 3231 (exit $ac_status); } && 3232 { ac_try='test -s conftest.$ac_objext' 3233 { (eval echo "$as_me:3233: \"$ac_try\"") >&5 3234 (eval $ac_try) 2>&5 3235 ac_status=$? 3236 echo "$as_me:3236: \$? = $ac_status" >&5 3237 (exit $ac_status); }; }; then 3238 ac_cv_type_uint8_t=yes 3239else 3240 echo "$as_me: failed program was:" >&5 3241cat conftest.$ac_ext >&5 3242ac_cv_type_uint8_t=no 3243fi 3244rm -f conftest.$ac_objext conftest.$ac_ext 3245fi 3246echo "$as_me:3246: result: $ac_cv_type_uint8_t" >&5 3247echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 3248if test $ac_cv_type_uint8_t = yes; then 3249 : 3250else 3251 3252 echo "$as_me:3252: checking for u_int8_t" >&5 3253echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 3254if test "${ac_cv_type_u_int8_t+set}" = set; then 3255 echo $ECHO_N "(cached) $ECHO_C" >&6 3256else 3257 cat >conftest.$ac_ext <<_ACEOF 3258#line 3258 "configure" 3259#include "confdefs.h" 3260$ac_includes_default 3261int 3262main () 3263{ 3264if ((u_int8_t *) 0) 3265 return 0; 3266if (sizeof (u_int8_t)) 3267 return 0; 3268 ; 3269 return 0; 3270} 3271_ACEOF 3272rm -f conftest.$ac_objext 3273if { (eval echo "$as_me:3273: \"$ac_compile\"") >&5 3274 (eval $ac_compile) 2>&5 3275 ac_status=$? 3276 echo "$as_me:3276: \$? = $ac_status" >&5 3277 (exit $ac_status); } && 3278 { ac_try='test -s conftest.$ac_objext' 3279 { (eval echo "$as_me:3279: \"$ac_try\"") >&5 3280 (eval $ac_try) 2>&5 3281 ac_status=$? 3282 echo "$as_me:3282: \$? = $ac_status" >&5 3283 (exit $ac_status); }; }; then 3284 ac_cv_type_u_int8_t=yes 3285else 3286 echo "$as_me: failed program was:" >&5 3287cat conftest.$ac_ext >&5 3288ac_cv_type_u_int8_t=no 3289fi 3290rm -f conftest.$ac_objext conftest.$ac_ext 3291fi 3292echo "$as_me:3292: result: $ac_cv_type_u_int8_t" >&5 3293echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 3294if test $ac_cv_type_u_int8_t = yes; then 3295 3296cat >>confdefs.h <<\EOF 3297#define uint8_t u_int8_t 3298EOF 3299 3300else 3301 { { echo "$as_me:3301: error: cannot find a suitable type for uint8_t" >&5 3302echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;} 3303 { (exit 1); exit 1; }; } 3304fi 3305 3306fi 3307 3308 echo "$as_me:3308: checking for u_int8_t" >&5 3309echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 3310if test "${ac_cv_type_u_int8_t+set}" = set; then 3311 echo $ECHO_N "(cached) $ECHO_C" >&6 3312else 3313 cat >conftest.$ac_ext <<_ACEOF 3314#line 3314 "configure" 3315#include "confdefs.h" 3316$ac_includes_default 3317int 3318main () 3319{ 3320if ((u_int8_t *) 0) 3321 return 0; 3322if (sizeof (u_int8_t)) 3323 return 0; 3324 ; 3325 return 0; 3326} 3327_ACEOF 3328rm -f conftest.$ac_objext 3329if { (eval echo "$as_me:3329: \"$ac_compile\"") >&5 3330 (eval $ac_compile) 2>&5 3331 ac_status=$? 3332 echo "$as_me:3332: \$? = $ac_status" >&5 3333 (exit $ac_status); } && 3334 { ac_try='test -s conftest.$ac_objext' 3335 { (eval echo "$as_me:3335: \"$ac_try\"") >&5 3336 (eval $ac_try) 2>&5 3337 ac_status=$? 3338 echo "$as_me:3338: \$? = $ac_status" >&5 3339 (exit $ac_status); }; }; then 3340 ac_cv_type_u_int8_t=yes 3341else 3342 echo "$as_me: failed program was:" >&5 3343cat conftest.$ac_ext >&5 3344ac_cv_type_u_int8_t=no 3345fi 3346rm -f conftest.$ac_objext conftest.$ac_ext 3347fi 3348echo "$as_me:3348: result: $ac_cv_type_u_int8_t" >&5 3349echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 3350if test $ac_cv_type_u_int8_t = yes; then 3351 : 3352else 3353 3354 echo "$as_me:3354: checking for uint8_t" >&5 3355echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 3356if test "${ac_cv_type_uint8_t+set}" = set; then 3357 echo $ECHO_N "(cached) $ECHO_C" >&6 3358else 3359 cat >conftest.$ac_ext <<_ACEOF 3360#line 3360 "configure" 3361#include "confdefs.h" 3362$ac_includes_default 3363int 3364main () 3365{ 3366if ((uint8_t *) 0) 3367 return 0; 3368if (sizeof (uint8_t)) 3369 return 0; 3370 ; 3371 return 0; 3372} 3373_ACEOF 3374rm -f conftest.$ac_objext 3375if { (eval echo "$as_me:3375: \"$ac_compile\"") >&5 3376 (eval $ac_compile) 2>&5 3377 ac_status=$? 3378 echo "$as_me:3378: \$? = $ac_status" >&5 3379 (exit $ac_status); } && 3380 { ac_try='test -s conftest.$ac_objext' 3381 { (eval echo "$as_me:3381: \"$ac_try\"") >&5 3382 (eval $ac_try) 2>&5 3383 ac_status=$? 3384 echo "$as_me:3384: \$? = $ac_status" >&5 3385 (exit $ac_status); }; }; then 3386 ac_cv_type_uint8_t=yes 3387else 3388 echo "$as_me: failed program was:" >&5 3389cat conftest.$ac_ext >&5 3390ac_cv_type_uint8_t=no 3391fi 3392rm -f conftest.$ac_objext conftest.$ac_ext 3393fi 3394echo "$as_me:3394: result: $ac_cv_type_uint8_t" >&5 3395echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 3396if test $ac_cv_type_uint8_t = yes; then 3397 3398cat >>confdefs.h <<\EOF 3399#define u_int8_t uint8_t 3400EOF 3401 3402else 3403 { { echo "$as_me:3403: error: cannot find a suitable type for u_int8_t" >&5 3404echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;} 3405 { (exit 1); exit 1; }; } 3406fi 3407 3408fi 3409 3410 echo "$as_me:3410: checking for uint16_t" >&5 3411echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 3412if test "${ac_cv_type_uint16_t+set}" = set; then 3413 echo $ECHO_N "(cached) $ECHO_C" >&6 3414else 3415 cat >conftest.$ac_ext <<_ACEOF 3416#line 3416 "configure" 3417#include "confdefs.h" 3418$ac_includes_default 3419int 3420main () 3421{ 3422if ((uint16_t *) 0) 3423 return 0; 3424if (sizeof (uint16_t)) 3425 return 0; 3426 ; 3427 return 0; 3428} 3429_ACEOF 3430rm -f conftest.$ac_objext 3431if { (eval echo "$as_me:3431: \"$ac_compile\"") >&5 3432 (eval $ac_compile) 2>&5 3433 ac_status=$? 3434 echo "$as_me:3434: \$? = $ac_status" >&5 3435 (exit $ac_status); } && 3436 { ac_try='test -s conftest.$ac_objext' 3437 { (eval echo "$as_me:3437: \"$ac_try\"") >&5 3438 (eval $ac_try) 2>&5 3439 ac_status=$? 3440 echo "$as_me:3440: \$? = $ac_status" >&5 3441 (exit $ac_status); }; }; then 3442 ac_cv_type_uint16_t=yes 3443else 3444 echo "$as_me: failed program was:" >&5 3445cat conftest.$ac_ext >&5 3446ac_cv_type_uint16_t=no 3447fi 3448rm -f conftest.$ac_objext conftest.$ac_ext 3449fi 3450echo "$as_me:3450: result: $ac_cv_type_uint16_t" >&5 3451echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 3452if test $ac_cv_type_uint16_t = yes; then 3453 : 3454else 3455 3456 echo "$as_me:3456: checking for u_int16_t" >&5 3457echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 3458if test "${ac_cv_type_u_int16_t+set}" = set; then 3459 echo $ECHO_N "(cached) $ECHO_C" >&6 3460else 3461 cat >conftest.$ac_ext <<_ACEOF 3462#line 3462 "configure" 3463#include "confdefs.h" 3464$ac_includes_default 3465int 3466main () 3467{ 3468if ((u_int16_t *) 0) 3469 return 0; 3470if (sizeof (u_int16_t)) 3471 return 0; 3472 ; 3473 return 0; 3474} 3475_ACEOF 3476rm -f conftest.$ac_objext 3477if { (eval echo "$as_me:3477: \"$ac_compile\"") >&5 3478 (eval $ac_compile) 2>&5 3479 ac_status=$? 3480 echo "$as_me:3480: \$? = $ac_status" >&5 3481 (exit $ac_status); } && 3482 { ac_try='test -s conftest.$ac_objext' 3483 { (eval echo "$as_me:3483: \"$ac_try\"") >&5 3484 (eval $ac_try) 2>&5 3485 ac_status=$? 3486 echo "$as_me:3486: \$? = $ac_status" >&5 3487 (exit $ac_status); }; }; then 3488 ac_cv_type_u_int16_t=yes 3489else 3490 echo "$as_me: failed program was:" >&5 3491cat conftest.$ac_ext >&5 3492ac_cv_type_u_int16_t=no 3493fi 3494rm -f conftest.$ac_objext conftest.$ac_ext 3495fi 3496echo "$as_me:3496: result: $ac_cv_type_u_int16_t" >&5 3497echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 3498if test $ac_cv_type_u_int16_t = yes; then 3499 3500cat >>confdefs.h <<\EOF 3501#define uint16_t u_int16_t 3502EOF 3503 3504else 3505 { { echo "$as_me:3505: error: cannot find a suitable type for uint16_t" >&5 3506echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;} 3507 { (exit 1); exit 1; }; } 3508fi 3509 3510fi 3511 3512 echo "$as_me:3512: checking for u_int16_t" >&5 3513echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 3514if test "${ac_cv_type_u_int16_t+set}" = set; then 3515 echo $ECHO_N "(cached) $ECHO_C" >&6 3516else 3517 cat >conftest.$ac_ext <<_ACEOF 3518#line 3518 "configure" 3519#include "confdefs.h" 3520$ac_includes_default 3521int 3522main () 3523{ 3524if ((u_int16_t *) 0) 3525 return 0; 3526if (sizeof (u_int16_t)) 3527 return 0; 3528 ; 3529 return 0; 3530} 3531_ACEOF 3532rm -f conftest.$ac_objext 3533if { (eval echo "$as_me:3533: \"$ac_compile\"") >&5 3534 (eval $ac_compile) 2>&5 3535 ac_status=$? 3536 echo "$as_me:3536: \$? = $ac_status" >&5 3537 (exit $ac_status); } && 3538 { ac_try='test -s conftest.$ac_objext' 3539 { (eval echo "$as_me:3539: \"$ac_try\"") >&5 3540 (eval $ac_try) 2>&5 3541 ac_status=$? 3542 echo "$as_me:3542: \$? = $ac_status" >&5 3543 (exit $ac_status); }; }; then 3544 ac_cv_type_u_int16_t=yes 3545else 3546 echo "$as_me: failed program was:" >&5 3547cat conftest.$ac_ext >&5 3548ac_cv_type_u_int16_t=no 3549fi 3550rm -f conftest.$ac_objext conftest.$ac_ext 3551fi 3552echo "$as_me:3552: result: $ac_cv_type_u_int16_t" >&5 3553echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 3554if test $ac_cv_type_u_int16_t = yes; then 3555 : 3556else 3557 3558 echo "$as_me:3558: checking for uint16_t" >&5 3559echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 3560if test "${ac_cv_type_uint16_t+set}" = set; then 3561 echo $ECHO_N "(cached) $ECHO_C" >&6 3562else 3563 cat >conftest.$ac_ext <<_ACEOF 3564#line 3564 "configure" 3565#include "confdefs.h" 3566$ac_includes_default 3567int 3568main () 3569{ 3570if ((uint16_t *) 0) 3571 return 0; 3572if (sizeof (uint16_t)) 3573 return 0; 3574 ; 3575 return 0; 3576} 3577_ACEOF 3578rm -f conftest.$ac_objext 3579if { (eval echo "$as_me:3579: \"$ac_compile\"") >&5 3580 (eval $ac_compile) 2>&5 3581 ac_status=$? 3582 echo "$as_me:3582: \$? = $ac_status" >&5 3583 (exit $ac_status); } && 3584 { ac_try='test -s conftest.$ac_objext' 3585 { (eval echo "$as_me:3585: \"$ac_try\"") >&5 3586 (eval $ac_try) 2>&5 3587 ac_status=$? 3588 echo "$as_me:3588: \$? = $ac_status" >&5 3589 (exit $ac_status); }; }; then 3590 ac_cv_type_uint16_t=yes 3591else 3592 echo "$as_me: failed program was:" >&5 3593cat conftest.$ac_ext >&5 3594ac_cv_type_uint16_t=no 3595fi 3596rm -f conftest.$ac_objext conftest.$ac_ext 3597fi 3598echo "$as_me:3598: result: $ac_cv_type_uint16_t" >&5 3599echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 3600if test $ac_cv_type_uint16_t = yes; then 3601 3602cat >>confdefs.h <<\EOF 3603#define u_int16_t uint16_t 3604EOF 3605 3606else 3607 { { echo "$as_me:3607: error: cannot find a suitable type for u_int16_t" >&5 3608echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;} 3609 { (exit 1); exit 1; }; } 3610fi 3611 3612fi 3613 3614 echo "$as_me:3614: checking for uint32_t" >&5 3615echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 3616if test "${ac_cv_type_uint32_t+set}" = set; then 3617 echo $ECHO_N "(cached) $ECHO_C" >&6 3618else 3619 cat >conftest.$ac_ext <<_ACEOF 3620#line 3620 "configure" 3621#include "confdefs.h" 3622$ac_includes_default 3623int 3624main () 3625{ 3626if ((uint32_t *) 0) 3627 return 0; 3628if (sizeof (uint32_t)) 3629 return 0; 3630 ; 3631 return 0; 3632} 3633_ACEOF 3634rm -f conftest.$ac_objext 3635if { (eval echo "$as_me:3635: \"$ac_compile\"") >&5 3636 (eval $ac_compile) 2>&5 3637 ac_status=$? 3638 echo "$as_me:3638: \$? = $ac_status" >&5 3639 (exit $ac_status); } && 3640 { ac_try='test -s conftest.$ac_objext' 3641 { (eval echo "$as_me:3641: \"$ac_try\"") >&5 3642 (eval $ac_try) 2>&5 3643 ac_status=$? 3644 echo "$as_me:3644: \$? = $ac_status" >&5 3645 (exit $ac_status); }; }; then 3646 ac_cv_type_uint32_t=yes 3647else 3648 echo "$as_me: failed program was:" >&5 3649cat conftest.$ac_ext >&5 3650ac_cv_type_uint32_t=no 3651fi 3652rm -f conftest.$ac_objext conftest.$ac_ext 3653fi 3654echo "$as_me:3654: result: $ac_cv_type_uint32_t" >&5 3655echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 3656if test $ac_cv_type_uint32_t = yes; then 3657 : 3658else 3659 3660 echo "$as_me:3660: checking for u_int32_t" >&5 3661echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 3662if test "${ac_cv_type_u_int32_t+set}" = set; then 3663 echo $ECHO_N "(cached) $ECHO_C" >&6 3664else 3665 cat >conftest.$ac_ext <<_ACEOF 3666#line 3666 "configure" 3667#include "confdefs.h" 3668$ac_includes_default 3669int 3670main () 3671{ 3672if ((u_int32_t *) 0) 3673 return 0; 3674if (sizeof (u_int32_t)) 3675 return 0; 3676 ; 3677 return 0; 3678} 3679_ACEOF 3680rm -f conftest.$ac_objext 3681if { (eval echo "$as_me:3681: \"$ac_compile\"") >&5 3682 (eval $ac_compile) 2>&5 3683 ac_status=$? 3684 echo "$as_me:3684: \$? = $ac_status" >&5 3685 (exit $ac_status); } && 3686 { ac_try='test -s conftest.$ac_objext' 3687 { (eval echo "$as_me:3687: \"$ac_try\"") >&5 3688 (eval $ac_try) 2>&5 3689 ac_status=$? 3690 echo "$as_me:3690: \$? = $ac_status" >&5 3691 (exit $ac_status); }; }; then 3692 ac_cv_type_u_int32_t=yes 3693else 3694 echo "$as_me: failed program was:" >&5 3695cat conftest.$ac_ext >&5 3696ac_cv_type_u_int32_t=no 3697fi 3698rm -f conftest.$ac_objext conftest.$ac_ext 3699fi 3700echo "$as_me:3700: result: $ac_cv_type_u_int32_t" >&5 3701echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 3702if test $ac_cv_type_u_int32_t = yes; then 3703 3704cat >>confdefs.h <<\EOF 3705#define uint32_t u_int32_t 3706EOF 3707 3708else 3709 { { echo "$as_me:3709: error: cannot find a suitable type for uint32_t" >&5 3710echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;} 3711 { (exit 1); exit 1; }; } 3712fi 3713 3714fi 3715 3716 echo "$as_me:3716: checking for u_int32_t" >&5 3717echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 3718if test "${ac_cv_type_u_int32_t+set}" = set; then 3719 echo $ECHO_N "(cached) $ECHO_C" >&6 3720else 3721 cat >conftest.$ac_ext <<_ACEOF 3722#line 3722 "configure" 3723#include "confdefs.h" 3724$ac_includes_default 3725int 3726main () 3727{ 3728if ((u_int32_t *) 0) 3729 return 0; 3730if (sizeof (u_int32_t)) 3731 return 0; 3732 ; 3733 return 0; 3734} 3735_ACEOF 3736rm -f conftest.$ac_objext 3737if { (eval echo "$as_me:3737: \"$ac_compile\"") >&5 3738 (eval $ac_compile) 2>&5 3739 ac_status=$? 3740 echo "$as_me:3740: \$? = $ac_status" >&5 3741 (exit $ac_status); } && 3742 { ac_try='test -s conftest.$ac_objext' 3743 { (eval echo "$as_me:3743: \"$ac_try\"") >&5 3744 (eval $ac_try) 2>&5 3745 ac_status=$? 3746 echo "$as_me:3746: \$? = $ac_status" >&5 3747 (exit $ac_status); }; }; then 3748 ac_cv_type_u_int32_t=yes 3749else 3750 echo "$as_me: failed program was:" >&5 3751cat conftest.$ac_ext >&5 3752ac_cv_type_u_int32_t=no 3753fi 3754rm -f conftest.$ac_objext conftest.$ac_ext 3755fi 3756echo "$as_me:3756: result: $ac_cv_type_u_int32_t" >&5 3757echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 3758if test $ac_cv_type_u_int32_t = yes; then 3759 : 3760else 3761 3762 echo "$as_me:3762: checking for uint32_t" >&5 3763echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 3764if test "${ac_cv_type_uint32_t+set}" = set; then 3765 echo $ECHO_N "(cached) $ECHO_C" >&6 3766else 3767 cat >conftest.$ac_ext <<_ACEOF 3768#line 3768 "configure" 3769#include "confdefs.h" 3770$ac_includes_default 3771int 3772main () 3773{ 3774if ((uint32_t *) 0) 3775 return 0; 3776if (sizeof (uint32_t)) 3777 return 0; 3778 ; 3779 return 0; 3780} 3781_ACEOF 3782rm -f conftest.$ac_objext 3783if { (eval echo "$as_me:3783: \"$ac_compile\"") >&5 3784 (eval $ac_compile) 2>&5 3785 ac_status=$? 3786 echo "$as_me:3786: \$? = $ac_status" >&5 3787 (exit $ac_status); } && 3788 { ac_try='test -s conftest.$ac_objext' 3789 { (eval echo "$as_me:3789: \"$ac_try\"") >&5 3790 (eval $ac_try) 2>&5 3791 ac_status=$? 3792 echo "$as_me:3792: \$? = $ac_status" >&5 3793 (exit $ac_status); }; }; then 3794 ac_cv_type_uint32_t=yes 3795else 3796 echo "$as_me: failed program was:" >&5 3797cat conftest.$ac_ext >&5 3798ac_cv_type_uint32_t=no 3799fi 3800rm -f conftest.$ac_objext conftest.$ac_ext 3801fi 3802echo "$as_me:3802: result: $ac_cv_type_uint32_t" >&5 3803echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 3804if test $ac_cv_type_uint32_t = yes; then 3805 3806cat >>confdefs.h <<\EOF 3807#define u_int32_t uint32_t 3808EOF 3809 3810else 3811 { { echo "$as_me:3811: error: cannot find a suitable type for u_int32_t" >&5 3812echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;} 3813 { (exit 1); exit 1; }; } 3814fi 3815 3816fi 3817 3818 echo "$as_me:3818: checking for uint64_t" >&5 3819echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 3820if test "${ac_cv_type_uint64_t+set}" = set; then 3821 echo $ECHO_N "(cached) $ECHO_C" >&6 3822else 3823 cat >conftest.$ac_ext <<_ACEOF 3824#line 3824 "configure" 3825#include "confdefs.h" 3826$ac_includes_default 3827int 3828main () 3829{ 3830if ((uint64_t *) 0) 3831 return 0; 3832if (sizeof (uint64_t)) 3833 return 0; 3834 ; 3835 return 0; 3836} 3837_ACEOF 3838rm -f conftest.$ac_objext 3839if { (eval echo "$as_me:3839: \"$ac_compile\"") >&5 3840 (eval $ac_compile) 2>&5 3841 ac_status=$? 3842 echo "$as_me:3842: \$? = $ac_status" >&5 3843 (exit $ac_status); } && 3844 { ac_try='test -s conftest.$ac_objext' 3845 { (eval echo "$as_me:3845: \"$ac_try\"") >&5 3846 (eval $ac_try) 2>&5 3847 ac_status=$? 3848 echo "$as_me:3848: \$? = $ac_status" >&5 3849 (exit $ac_status); }; }; then 3850 ac_cv_type_uint64_t=yes 3851else 3852 echo "$as_me: failed program was:" >&5 3853cat conftest.$ac_ext >&5 3854ac_cv_type_uint64_t=no 3855fi 3856rm -f conftest.$ac_objext conftest.$ac_ext 3857fi 3858echo "$as_me:3858: result: $ac_cv_type_uint64_t" >&5 3859echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 3860if test $ac_cv_type_uint64_t = yes; then 3861 : 3862else 3863 3864 echo "$as_me:3864: checking for u_int64_t" >&5 3865echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 3866if test "${ac_cv_type_u_int64_t+set}" = set; then 3867 echo $ECHO_N "(cached) $ECHO_C" >&6 3868else 3869 cat >conftest.$ac_ext <<_ACEOF 3870#line 3870 "configure" 3871#include "confdefs.h" 3872$ac_includes_default 3873int 3874main () 3875{ 3876if ((u_int64_t *) 0) 3877 return 0; 3878if (sizeof (u_int64_t)) 3879 return 0; 3880 ; 3881 return 0; 3882} 3883_ACEOF 3884rm -f conftest.$ac_objext 3885if { (eval echo "$as_me:3885: \"$ac_compile\"") >&5 3886 (eval $ac_compile) 2>&5 3887 ac_status=$? 3888 echo "$as_me:3888: \$? = $ac_status" >&5 3889 (exit $ac_status); } && 3890 { ac_try='test -s conftest.$ac_objext' 3891 { (eval echo "$as_me:3891: \"$ac_try\"") >&5 3892 (eval $ac_try) 2>&5 3893 ac_status=$? 3894 echo "$as_me:3894: \$? = $ac_status" >&5 3895 (exit $ac_status); }; }; then 3896 ac_cv_type_u_int64_t=yes 3897else 3898 echo "$as_me: failed program was:" >&5 3899cat conftest.$ac_ext >&5 3900ac_cv_type_u_int64_t=no 3901fi 3902rm -f conftest.$ac_objext conftest.$ac_ext 3903fi 3904echo "$as_me:3904: result: $ac_cv_type_u_int64_t" >&5 3905echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 3906if test $ac_cv_type_u_int64_t = yes; then 3907 3908cat >>confdefs.h <<\EOF 3909#define uint64_t u_int64_t 3910EOF 3911 3912else 3913 { { echo "$as_me:3913: error: cannot find a suitable type for uint64_t" >&5 3914echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;} 3915 { (exit 1); exit 1; }; } 3916fi 3917 3918fi 3919 3920 echo "$as_me:3920: checking for u_int64_t" >&5 3921echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 3922if test "${ac_cv_type_u_int64_t+set}" = set; then 3923 echo $ECHO_N "(cached) $ECHO_C" >&6 3924else 3925 cat >conftest.$ac_ext <<_ACEOF 3926#line 3926 "configure" 3927#include "confdefs.h" 3928$ac_includes_default 3929int 3930main () 3931{ 3932if ((u_int64_t *) 0) 3933 return 0; 3934if (sizeof (u_int64_t)) 3935 return 0; 3936 ; 3937 return 0; 3938} 3939_ACEOF 3940rm -f conftest.$ac_objext 3941if { (eval echo "$as_me:3941: \"$ac_compile\"") >&5 3942 (eval $ac_compile) 2>&5 3943 ac_status=$? 3944 echo "$as_me:3944: \$? = $ac_status" >&5 3945 (exit $ac_status); } && 3946 { ac_try='test -s conftest.$ac_objext' 3947 { (eval echo "$as_me:3947: \"$ac_try\"") >&5 3948 (eval $ac_try) 2>&5 3949 ac_status=$? 3950 echo "$as_me:3950: \$? = $ac_status" >&5 3951 (exit $ac_status); }; }; then 3952 ac_cv_type_u_int64_t=yes 3953else 3954 echo "$as_me: failed program was:" >&5 3955cat conftest.$ac_ext >&5 3956ac_cv_type_u_int64_t=no 3957fi 3958rm -f conftest.$ac_objext conftest.$ac_ext 3959fi 3960echo "$as_me:3960: result: $ac_cv_type_u_int64_t" >&5 3961echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 3962if test $ac_cv_type_u_int64_t = yes; then 3963 : 3964else 3965 3966 echo "$as_me:3966: checking for uint64_t" >&5 3967echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 3968if test "${ac_cv_type_uint64_t+set}" = set; then 3969 echo $ECHO_N "(cached) $ECHO_C" >&6 3970else 3971 cat >conftest.$ac_ext <<_ACEOF 3972#line 3972 "configure" 3973#include "confdefs.h" 3974$ac_includes_default 3975int 3976main () 3977{ 3978if ((uint64_t *) 0) 3979 return 0; 3980if (sizeof (uint64_t)) 3981 return 0; 3982 ; 3983 return 0; 3984} 3985_ACEOF 3986rm -f conftest.$ac_objext 3987if { (eval echo "$as_me:3987: \"$ac_compile\"") >&5 3988 (eval $ac_compile) 2>&5 3989 ac_status=$? 3990 echo "$as_me:3990: \$? = $ac_status" >&5 3991 (exit $ac_status); } && 3992 { ac_try='test -s conftest.$ac_objext' 3993 { (eval echo "$as_me:3993: \"$ac_try\"") >&5 3994 (eval $ac_try) 2>&5 3995 ac_status=$? 3996 echo "$as_me:3996: \$? = $ac_status" >&5 3997 (exit $ac_status); }; }; then 3998 ac_cv_type_uint64_t=yes 3999else 4000 echo "$as_me: failed program was:" >&5 4001cat conftest.$ac_ext >&5 4002ac_cv_type_uint64_t=no 4003fi 4004rm -f conftest.$ac_objext conftest.$ac_ext 4005fi 4006echo "$as_me:4006: result: $ac_cv_type_uint64_t" >&5 4007echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 4008if test $ac_cv_type_uint64_t = yes; then 4009 4010cat >>confdefs.h <<\EOF 4011#define u_int64_t uint64_t 4012EOF 4013 4014else 4015 { { echo "$as_me:4015: error: cannot find a suitable type for u_int64_t" >&5 4016echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;} 4017 { (exit 1); exit 1; }; } 4018fi 4019 4020fi 4021 4022# Struct members. 4023echo "$as_me:4023: checking for DIR.dd_fd" >&5 4024echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6 4025if test "${ac_cv_member_DIR_dd_fd+set}" = set; then 4026 echo $ECHO_N "(cached) $ECHO_C" >&6 4027else 4028 cat >conftest.$ac_ext <<_ACEOF 4029#line 4029 "configure" 4030#include "confdefs.h" 4031#include <sys/types.h> 4032#include <dirent.h> 4033 4034int 4035main () 4036{ 4037static DIR ac_aggr; 4038if (ac_aggr.dd_fd) 4039return 0; 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044rm -f conftest.$ac_objext 4045if { (eval echo "$as_me:4045: \"$ac_compile\"") >&5 4046 (eval $ac_compile) 2>&5 4047 ac_status=$? 4048 echo "$as_me:4048: \$? = $ac_status" >&5 4049 (exit $ac_status); } && 4050 { ac_try='test -s conftest.$ac_objext' 4051 { (eval echo "$as_me:4051: \"$ac_try\"") >&5 4052 (eval $ac_try) 2>&5 4053 ac_status=$? 4054 echo "$as_me:4054: \$? = $ac_status" >&5 4055 (exit $ac_status); }; }; then 4056 ac_cv_member_DIR_dd_fd=yes 4057else 4058 echo "$as_me: failed program was:" >&5 4059cat conftest.$ac_ext >&5 4060ac_cv_member_DIR_dd_fd=no 4061fi 4062rm -f conftest.$ac_objext conftest.$ac_ext 4063fi 4064echo "$as_me:4064: result: $ac_cv_member_DIR_dd_fd" >&5 4065echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6 4066if test $ac_cv_member_DIR_dd_fd = yes; then 4067 4068cat >>confdefs.h <<EOF 4069#define HAVE_DIR_DD_FD 1 4070EOF 4071 4072fi 4073echo "$as_me:4073: checking for DIR.__dd_fd" >&5 4074echo $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6 4075if test "${ac_cv_member_DIR___dd_fd+set}" = set; then 4076 echo $ECHO_N "(cached) $ECHO_C" >&6 4077else 4078 cat >conftest.$ac_ext <<_ACEOF 4079#line 4079 "configure" 4080#include "confdefs.h" 4081#include <sys/types.h> 4082#include <dirent.h> 4083 4084int 4085main () 4086{ 4087static DIR ac_aggr; 4088if (ac_aggr.__dd_fd) 4089return 0; 4090 ; 4091 return 0; 4092} 4093_ACEOF 4094rm -f conftest.$ac_objext 4095if { (eval echo "$as_me:4095: \"$ac_compile\"") >&5 4096 (eval $ac_compile) 2>&5 4097 ac_status=$? 4098 echo "$as_me:4098: \$? = $ac_status" >&5 4099 (exit $ac_status); } && 4100 { ac_try='test -s conftest.$ac_objext' 4101 { (eval echo "$as_me:4101: \"$ac_try\"") >&5 4102 (eval $ac_try) 2>&5 4103 ac_status=$? 4104 echo "$as_me:4104: \$? = $ac_status" >&5 4105 (exit $ac_status); }; }; then 4106 ac_cv_member_DIR___dd_fd=yes 4107else 4108 echo "$as_me: failed program was:" >&5 4109cat conftest.$ac_ext >&5 4110ac_cv_member_DIR___dd_fd=no 4111fi 4112rm -f conftest.$ac_objext conftest.$ac_ext 4113fi 4114echo "$as_me:4114: result: $ac_cv_member_DIR___dd_fd" >&5 4115echo "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6 4116if test $ac_cv_member_DIR___dd_fd = yes; then 4117 4118cat >>confdefs.h <<EOF 4119#define HAVE_DIR___DD_FD 1 4120EOF 4121 4122fi 4123echo "$as_me:4123: checking for struct dirent.d_namlen" >&5 4124echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6 4125if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then 4126 echo $ECHO_N "(cached) $ECHO_C" >&6 4127else 4128 cat >conftest.$ac_ext <<_ACEOF 4129#line 4129 "configure" 4130#include "confdefs.h" 4131#include <sys/types.h> 4132#include <dirent.h> 4133 4134int 4135main () 4136{ 4137static struct dirent ac_aggr; 4138if (ac_aggr.d_namlen) 4139return 0; 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144rm -f conftest.$ac_objext 4145if { (eval echo "$as_me:4145: \"$ac_compile\"") >&5 4146 (eval $ac_compile) 2>&5 4147 ac_status=$? 4148 echo "$as_me:4148: \$? = $ac_status" >&5 4149 (exit $ac_status); } && 4150 { ac_try='test -s conftest.$ac_objext' 4151 { (eval echo "$as_me:4151: \"$ac_try\"") >&5 4152 (eval $ac_try) 2>&5 4153 ac_status=$? 4154 echo "$as_me:4154: \$? = $ac_status" >&5 4155 (exit $ac_status); }; }; then 4156 ac_cv_member_struct_dirent_d_namlen=yes 4157else 4158 echo "$as_me: failed program was:" >&5 4159cat conftest.$ac_ext >&5 4160ac_cv_member_struct_dirent_d_namlen=no 4161fi 4162rm -f conftest.$ac_objext conftest.$ac_ext 4163fi 4164echo "$as_me:4164: result: $ac_cv_member_struct_dirent_d_namlen" >&5 4165echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6 4166if test $ac_cv_member_struct_dirent_d_namlen = yes; then 4167 4168cat >>confdefs.h <<EOF 4169#define HAVE_STRUCT_DIRENT_D_NAMLEN 1 4170EOF 4171 4172fi 4173 4174echo "$as_me:4174: checking for struct stat.st_flags" >&5 4175echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 4176if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then 4177 echo $ECHO_N "(cached) $ECHO_C" >&6 4178else 4179 cat >conftest.$ac_ext <<_ACEOF 4180#line 4180 "configure" 4181#include "confdefs.h" 4182#include <sys/stat.h> 4183 4184int 4185main () 4186{ 4187static struct stat ac_aggr; 4188if (ac_aggr.st_flags) 4189return 0; 4190 ; 4191 return 0; 4192} 4193_ACEOF 4194rm -f conftest.$ac_objext 4195if { (eval echo "$as_me:4195: \"$ac_compile\"") >&5 4196 (eval $ac_compile) 2>&5 4197 ac_status=$? 4198 echo "$as_me:4198: \$? = $ac_status" >&5 4199 (exit $ac_status); } && 4200 { ac_try='test -s conftest.$ac_objext' 4201 { (eval echo "$as_me:4201: \"$ac_try\"") >&5 4202 (eval $ac_try) 2>&5 4203 ac_status=$? 4204 echo "$as_me:4204: \$? = $ac_status" >&5 4205 (exit $ac_status); }; }; then 4206 ac_cv_member_struct_stat_st_flags=yes 4207else 4208 echo "$as_me: failed program was:" >&5 4209cat conftest.$ac_ext >&5 4210ac_cv_member_struct_stat_st_flags=no 4211fi 4212rm -f conftest.$ac_objext conftest.$ac_ext 4213fi 4214echo "$as_me:4214: result: $ac_cv_member_struct_stat_st_flags" >&5 4215echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 4216if test $ac_cv_member_struct_stat_st_flags = yes; then 4217 4218cat >>confdefs.h <<EOF 4219#define HAVE_STRUCT_STAT_ST_FLAGS 1 4220EOF 4221 4222fi 4223echo "$as_me:4223: checking for struct stat.st_gen" >&5 4224echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6 4225if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then 4226 echo $ECHO_N "(cached) $ECHO_C" >&6 4227else 4228 cat >conftest.$ac_ext <<_ACEOF 4229#line 4229 "configure" 4230#include "confdefs.h" 4231#include <sys/stat.h> 4232 4233int 4234main () 4235{ 4236static struct stat ac_aggr; 4237if (ac_aggr.st_gen) 4238return 0; 4239 ; 4240 return 0; 4241} 4242_ACEOF 4243rm -f conftest.$ac_objext 4244if { (eval echo "$as_me:4244: \"$ac_compile\"") >&5 4245 (eval $ac_compile) 2>&5 4246 ac_status=$? 4247 echo "$as_me:4247: \$? = $ac_status" >&5 4248 (exit $ac_status); } && 4249 { ac_try='test -s conftest.$ac_objext' 4250 { (eval echo "$as_me:4250: \"$ac_try\"") >&5 4251 (eval $ac_try) 2>&5 4252 ac_status=$? 4253 echo "$as_me:4253: \$? = $ac_status" >&5 4254 (exit $ac_status); }; }; then 4255 ac_cv_member_struct_stat_st_gen=yes 4256else 4257 echo "$as_me: failed program was:" >&5 4258cat conftest.$ac_ext >&5 4259ac_cv_member_struct_stat_st_gen=no 4260fi 4261rm -f conftest.$ac_objext conftest.$ac_ext 4262fi 4263echo "$as_me:4263: result: $ac_cv_member_struct_stat_st_gen" >&5 4264echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6 4265if test $ac_cv_member_struct_stat_st_gen = yes; then 4266 4267cat >>confdefs.h <<EOF 4268#define HAVE_STRUCT_STAT_ST_GEN 1 4269EOF 4270 4271fi 4272echo "$as_me:4272: checking for struct stat.st_birthtime" >&5 4273echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6 4274if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then 4275 echo $ECHO_N "(cached) $ECHO_C" >&6 4276else 4277 cat >conftest.$ac_ext <<_ACEOF 4278#line 4278 "configure" 4279#include "confdefs.h" 4280#include <sys/stat.h> 4281 4282int 4283main () 4284{ 4285static struct stat ac_aggr; 4286if (ac_aggr.st_birthtime) 4287return 0; 4288 ; 4289 return 0; 4290} 4291_ACEOF 4292rm -f conftest.$ac_objext 4293if { (eval echo "$as_me:4293: \"$ac_compile\"") >&5 4294 (eval $ac_compile) 2>&5 4295 ac_status=$? 4296 echo "$as_me:4296: \$? = $ac_status" >&5 4297 (exit $ac_status); } && 4298 { ac_try='test -s conftest.$ac_objext' 4299 { (eval echo "$as_me:4299: \"$ac_try\"") >&5 4300 (eval $ac_try) 2>&5 4301 ac_status=$? 4302 echo "$as_me:4302: \$? = $ac_status" >&5 4303 (exit $ac_status); }; }; then 4304 ac_cv_member_struct_stat_st_birthtime=yes 4305else 4306 echo "$as_me: failed program was:" >&5 4307cat conftest.$ac_ext >&5 4308ac_cv_member_struct_stat_st_birthtime=no 4309fi 4310rm -f conftest.$ac_objext conftest.$ac_ext 4311fi 4312echo "$as_me:4312: result: $ac_cv_member_struct_stat_st_birthtime" >&5 4313echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6 4314if test $ac_cv_member_struct_stat_st_birthtime = yes; then 4315 4316cat >>confdefs.h <<EOF 4317#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 4318EOF 4319 4320fi 4321echo "$as_me:4321: checking for struct stat.st_birthtimensec" >&5 4322echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6 4323if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then 4324 echo $ECHO_N "(cached) $ECHO_C" >&6 4325else 4326 cat >conftest.$ac_ext <<_ACEOF 4327#line 4327 "configure" 4328#include "confdefs.h" 4329#include <sys/stat.h> 4330 4331int 4332main () 4333{ 4334static struct stat ac_aggr; 4335if (ac_aggr.st_birthtimensec) 4336return 0; 4337 ; 4338 return 0; 4339} 4340_ACEOF 4341rm -f conftest.$ac_objext 4342if { (eval echo "$as_me:4342: \"$ac_compile\"") >&5 4343 (eval $ac_compile) 2>&5 4344 ac_status=$? 4345 echo "$as_me:4345: \$? = $ac_status" >&5 4346 (exit $ac_status); } && 4347 { ac_try='test -s conftest.$ac_objext' 4348 { (eval echo "$as_me:4348: \"$ac_try\"") >&5 4349 (eval $ac_try) 2>&5 4350 ac_status=$? 4351 echo "$as_me:4351: \$? = $ac_status" >&5 4352 (exit $ac_status); }; }; then 4353 ac_cv_member_struct_stat_st_birthtimensec=yes 4354else 4355 echo "$as_me: failed program was:" >&5 4356cat conftest.$ac_ext >&5 4357ac_cv_member_struct_stat_st_birthtimensec=no 4358fi 4359rm -f conftest.$ac_objext conftest.$ac_ext 4360fi 4361echo "$as_me:4361: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5 4362echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6 4363if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then 4364 4365cat >>confdefs.h <<EOF 4366#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 4367EOF 4368 4369fi 4370echo "$as_me:4370: checking for struct stat.st_atim" >&5 4371echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6 4372if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then 4373 echo $ECHO_N "(cached) $ECHO_C" >&6 4374else 4375 cat >conftest.$ac_ext <<_ACEOF 4376#line 4376 "configure" 4377#include "confdefs.h" 4378#include <sys/stat.h> 4379 4380int 4381main () 4382{ 4383static struct stat ac_aggr; 4384if (ac_aggr.st_atim) 4385return 0; 4386 ; 4387 return 0; 4388} 4389_ACEOF 4390rm -f conftest.$ac_objext 4391if { (eval echo "$as_me:4391: \"$ac_compile\"") >&5 4392 (eval $ac_compile) 2>&5 4393 ac_status=$? 4394 echo "$as_me:4394: \$? = $ac_status" >&5 4395 (exit $ac_status); } && 4396 { ac_try='test -s conftest.$ac_objext' 4397 { (eval echo "$as_me:4397: \"$ac_try\"") >&5 4398 (eval $ac_try) 2>&5 4399 ac_status=$? 4400 echo "$as_me:4400: \$? = $ac_status" >&5 4401 (exit $ac_status); }; }; then 4402 ac_cv_member_struct_stat_st_atim=yes 4403else 4404 echo "$as_me: failed program was:" >&5 4405cat conftest.$ac_ext >&5 4406ac_cv_member_struct_stat_st_atim=no 4407fi 4408rm -f conftest.$ac_objext conftest.$ac_ext 4409fi 4410echo "$as_me:4410: result: $ac_cv_member_struct_stat_st_atim" >&5 4411echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6 4412if test $ac_cv_member_struct_stat_st_atim = yes; then 4413 4414cat >>confdefs.h <<EOF 4415#define HAVE_STRUCT_STAT_ST_ATIM 1 4416EOF 4417 4418fi 4419echo "$as_me:4419: checking for struct stat.st_mtimensec" >&5 4420echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6 4421if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then 4422 echo $ECHO_N "(cached) $ECHO_C" >&6 4423else 4424 cat >conftest.$ac_ext <<_ACEOF 4425#line 4425 "configure" 4426#include "confdefs.h" 4427#include <sys/stat.h> 4428 4429int 4430main () 4431{ 4432static struct stat ac_aggr; 4433if (ac_aggr.st_mtimensec) 4434return 0; 4435 ; 4436 return 0; 4437} 4438_ACEOF 4439rm -f conftest.$ac_objext 4440if { (eval echo "$as_me:4440: \"$ac_compile\"") >&5 4441 (eval $ac_compile) 2>&5 4442 ac_status=$? 4443 echo "$as_me:4443: \$? = $ac_status" >&5 4444 (exit $ac_status); } && 4445 { ac_try='test -s conftest.$ac_objext' 4446 { (eval echo "$as_me:4446: \"$ac_try\"") >&5 4447 (eval $ac_try) 2>&5 4448 ac_status=$? 4449 echo "$as_me:4449: \$? = $ac_status" >&5 4450 (exit $ac_status); }; }; then 4451 ac_cv_member_struct_stat_st_mtimensec=yes 4452else 4453 echo "$as_me: failed program was:" >&5 4454cat conftest.$ac_ext >&5 4455ac_cv_member_struct_stat_st_mtimensec=no 4456fi 4457rm -f conftest.$ac_objext conftest.$ac_ext 4458fi 4459echo "$as_me:4459: result: $ac_cv_member_struct_stat_st_mtimensec" >&5 4460echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6 4461if test $ac_cv_member_struct_stat_st_mtimensec = yes; then 4462 4463cat >>confdefs.h <<EOF 4464#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 4465EOF 4466 4467fi 4468 4469echo "$as_me:4469: checking for struct statvfs.f_iosize" >&5 4470echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6 4471if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then 4472 echo $ECHO_N "(cached) $ECHO_C" >&6 4473else 4474 cat >conftest.$ac_ext <<_ACEOF 4475#line 4475 "configure" 4476#include "confdefs.h" 4477#include <sys/statvfs.h> 4478 4479int 4480main () 4481{ 4482static struct statvfs ac_aggr; 4483if (ac_aggr.f_iosize) 4484return 0; 4485 ; 4486 return 0; 4487} 4488_ACEOF 4489rm -f conftest.$ac_objext 4490if { (eval echo "$as_me:4490: \"$ac_compile\"") >&5 4491 (eval $ac_compile) 2>&5 4492 ac_status=$? 4493 echo "$as_me:4493: \$? = $ac_status" >&5 4494 (exit $ac_status); } && 4495 { ac_try='test -s conftest.$ac_objext' 4496 { (eval echo "$as_me:4496: \"$ac_try\"") >&5 4497 (eval $ac_try) 2>&5 4498 ac_status=$? 4499 echo "$as_me:4499: \$? = $ac_status" >&5 4500 (exit $ac_status); }; }; then 4501 ac_cv_member_struct_statvfs_f_iosize=yes 4502else 4503 echo "$as_me: failed program was:" >&5 4504cat conftest.$ac_ext >&5 4505ac_cv_member_struct_statvfs_f_iosize=no 4506fi 4507rm -f conftest.$ac_objext conftest.$ac_ext 4508fi 4509echo "$as_me:4509: result: $ac_cv_member_struct_statvfs_f_iosize" >&5 4510echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6 4511if test $ac_cv_member_struct_statvfs_f_iosize = yes; then 4512 4513cat >>confdefs.h <<EOF 4514#define HAVE_STRUCT_STATVFS_F_IOSIZE 1 4515EOF 4516 4517fi 4518 4519# Global variable decls. 4520echo "$as_me:4520: checking whether optind is declared" >&5 4521echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6 4522if test "${ac_cv_have_decl_optind+set}" = set; then 4523 echo $ECHO_N "(cached) $ECHO_C" >&6 4524else 4525 cat >conftest.$ac_ext <<_ACEOF 4526#line 4526 "configure" 4527#include "confdefs.h" 4528 4529#include <stdio.h> 4530#include <stdlib.h> 4531#include <unistd.h> 4532 4533int 4534main () 4535{ 4536#ifndef optind 4537 char *p = (char *) optind; 4538#endif 4539 4540 ; 4541 return 0; 4542} 4543_ACEOF 4544rm -f conftest.$ac_objext 4545if { (eval echo "$as_me:4545: \"$ac_compile\"") >&5 4546 (eval $ac_compile) 2>&5 4547 ac_status=$? 4548 echo "$as_me:4548: \$? = $ac_status" >&5 4549 (exit $ac_status); } && 4550 { ac_try='test -s conftest.$ac_objext' 4551 { (eval echo "$as_me:4551: \"$ac_try\"") >&5 4552 (eval $ac_try) 2>&5 4553 ac_status=$? 4554 echo "$as_me:4554: \$? = $ac_status" >&5 4555 (exit $ac_status); }; }; then 4556 ac_cv_have_decl_optind=yes 4557else 4558 echo "$as_me: failed program was:" >&5 4559cat conftest.$ac_ext >&5 4560ac_cv_have_decl_optind=no 4561fi 4562rm -f conftest.$ac_objext conftest.$ac_ext 4563fi 4564echo "$as_me:4564: result: $ac_cv_have_decl_optind" >&5 4565echo "${ECHO_T}$ac_cv_have_decl_optind" >&6 4566if test $ac_cv_have_decl_optind = yes; then 4567 4568cat >>confdefs.h <<EOF 4569#define HAVE_DECL_OPTIND 1 4570EOF 4571 4572else 4573 cat >>confdefs.h <<EOF 4574#define HAVE_DECL_OPTIND 0 4575EOF 4576 4577fi 4578echo "$as_me:4578: checking whether optreset is declared" >&5 4579echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6 4580if test "${ac_cv_have_decl_optreset+set}" = set; then 4581 echo $ECHO_N "(cached) $ECHO_C" >&6 4582else 4583 cat >conftest.$ac_ext <<_ACEOF 4584#line 4584 "configure" 4585#include "confdefs.h" 4586 4587#include <stdio.h> 4588#include <stdlib.h> 4589#include <unistd.h> 4590 4591int 4592main () 4593{ 4594#ifndef optreset 4595 char *p = (char *) optreset; 4596#endif 4597 4598 ; 4599 return 0; 4600} 4601_ACEOF 4602rm -f conftest.$ac_objext 4603if { (eval echo "$as_me:4603: \"$ac_compile\"") >&5 4604 (eval $ac_compile) 2>&5 4605 ac_status=$? 4606 echo "$as_me:4606: \$? = $ac_status" >&5 4607 (exit $ac_status); } && 4608 { ac_try='test -s conftest.$ac_objext' 4609 { (eval echo "$as_me:4609: \"$ac_try\"") >&5 4610 (eval $ac_try) 2>&5 4611 ac_status=$? 4612 echo "$as_me:4612: \$? = $ac_status" >&5 4613 (exit $ac_status); }; }; then 4614 ac_cv_have_decl_optreset=yes 4615else 4616 echo "$as_me: failed program was:" >&5 4617cat conftest.$ac_ext >&5 4618ac_cv_have_decl_optreset=no 4619fi 4620rm -f conftest.$ac_objext conftest.$ac_ext 4621fi 4622echo "$as_me:4622: result: $ac_cv_have_decl_optreset" >&5 4623echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6 4624if test $ac_cv_have_decl_optreset = yes; then 4625 4626cat >>confdefs.h <<EOF 4627#define HAVE_DECL_OPTRESET 1 4628EOF 4629 4630else 4631 cat >>confdefs.h <<EOF 4632#define HAVE_DECL_OPTRESET 0 4633EOF 4634 4635fi 4636 4637echo "$as_me:4637: checking whether sys_signame is declared" >&5 4638echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6 4639if test "${ac_cv_have_decl_sys_signame+set}" = set; then 4640 echo $ECHO_N "(cached) $ECHO_C" >&6 4641else 4642 cat >conftest.$ac_ext <<_ACEOF 4643#line 4643 "configure" 4644#include "confdefs.h" 4645#include <signal.h> 4646 4647int 4648main () 4649{ 4650#ifndef sys_signame 4651 char *p = (char *) sys_signame; 4652#endif 4653 4654 ; 4655 return 0; 4656} 4657_ACEOF 4658rm -f conftest.$ac_objext 4659if { (eval echo "$as_me:4659: \"$ac_compile\"") >&5 4660 (eval $ac_compile) 2>&5 4661 ac_status=$? 4662 echo "$as_me:4662: \$? = $ac_status" >&5 4663 (exit $ac_status); } && 4664 { ac_try='test -s conftest.$ac_objext' 4665 { (eval echo "$as_me:4665: \"$ac_try\"") >&5 4666 (eval $ac_try) 2>&5 4667 ac_status=$? 4668 echo "$as_me:4668: \$? = $ac_status" >&5 4669 (exit $ac_status); }; }; then 4670 ac_cv_have_decl_sys_signame=yes 4671else 4672 echo "$as_me: failed program was:" >&5 4673cat conftest.$ac_ext >&5 4674ac_cv_have_decl_sys_signame=no 4675fi 4676rm -f conftest.$ac_objext conftest.$ac_ext 4677fi 4678echo "$as_me:4678: result: $ac_cv_have_decl_sys_signame" >&5 4679echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6 4680if test $ac_cv_have_decl_sys_signame = yes; then 4681 4682cat >>confdefs.h <<EOF 4683#define HAVE_DECL_SYS_SIGNAME 1 4684EOF 4685 4686else 4687 cat >>confdefs.h <<EOF 4688#define HAVE_DECL_SYS_SIGNAME 0 4689EOF 4690 4691fi 4692 4693# Library functions (where a .h check isn't enough). 4694# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4695# for constant arguments. Useless! 4696echo "$as_me:4696: checking for working alloca.h" >&5 4697echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 4698if test "${ac_cv_working_alloca_h+set}" = set; then 4699 echo $ECHO_N "(cached) $ECHO_C" >&6 4700else 4701 cat >conftest.$ac_ext <<_ACEOF 4702#line 4702 "configure" 4703#include "confdefs.h" 4704#include <alloca.h> 4705int 4706main () 4707{ 4708char *p = (char *) alloca (2 * sizeof (int)); 4709 ; 4710 return 0; 4711} 4712_ACEOF 4713rm -f conftest.$ac_objext conftest$ac_exeext 4714if { (eval echo "$as_me:4714: \"$ac_link\"") >&5 4715 (eval $ac_link) 2>&5 4716 ac_status=$? 4717 echo "$as_me:4717: \$? = $ac_status" >&5 4718 (exit $ac_status); } && 4719 { ac_try='test -s conftest$ac_exeext' 4720 { (eval echo "$as_me:4720: \"$ac_try\"") >&5 4721 (eval $ac_try) 2>&5 4722 ac_status=$? 4723 echo "$as_me:4723: \$? = $ac_status" >&5 4724 (exit $ac_status); }; }; then 4725 ac_cv_working_alloca_h=yes 4726else 4727 echo "$as_me: failed program was:" >&5 4728cat conftest.$ac_ext >&5 4729ac_cv_working_alloca_h=no 4730fi 4731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4732fi 4733echo "$as_me:4733: result: $ac_cv_working_alloca_h" >&5 4734echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 4735if test $ac_cv_working_alloca_h = yes; then 4736 4737cat >>confdefs.h <<\EOF 4738#define HAVE_ALLOCA_H 1 4739EOF 4740 4741fi 4742 4743echo "$as_me:4743: checking for alloca" >&5 4744echo $ECHO_N "checking for alloca... $ECHO_C" >&6 4745if test "${ac_cv_func_alloca_works+set}" = set; then 4746 echo $ECHO_N "(cached) $ECHO_C" >&6 4747else 4748 cat >conftest.$ac_ext <<_ACEOF 4749#line 4749 "configure" 4750#include "confdefs.h" 4751#ifdef __GNUC__ 4752# define alloca __builtin_alloca 4753#else 4754# ifdef _MSC_VER 4755# include <malloc.h> 4756# define alloca _alloca 4757# else 4758# if HAVE_ALLOCA_H 4759# include <alloca.h> 4760# else 4761# ifdef _AIX 4762 #pragma alloca 4763# else 4764# ifndef alloca /* predefined by HP cc +Olibcalls */ 4765char *alloca (); 4766# endif 4767# endif 4768# endif 4769# endif 4770#endif 4771 4772int 4773main () 4774{ 4775char *p = (char *) alloca (1); 4776 ; 4777 return 0; 4778} 4779_ACEOF 4780rm -f conftest.$ac_objext conftest$ac_exeext 4781if { (eval echo "$as_me:4781: \"$ac_link\"") >&5 4782 (eval $ac_link) 2>&5 4783 ac_status=$? 4784 echo "$as_me:4784: \$? = $ac_status" >&5 4785 (exit $ac_status); } && 4786 { ac_try='test -s conftest$ac_exeext' 4787 { (eval echo "$as_me:4787: \"$ac_try\"") >&5 4788 (eval $ac_try) 2>&5 4789 ac_status=$? 4790 echo "$as_me:4790: \$? = $ac_status" >&5 4791 (exit $ac_status); }; }; then 4792 ac_cv_func_alloca_works=yes 4793else 4794 echo "$as_me: failed program was:" >&5 4795cat conftest.$ac_ext >&5 4796ac_cv_func_alloca_works=no 4797fi 4798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4799fi 4800echo "$as_me:4800: result: $ac_cv_func_alloca_works" >&5 4801echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 4802 4803if test $ac_cv_func_alloca_works = yes; then 4804 4805cat >>confdefs.h <<\EOF 4806#define HAVE_ALLOCA 1 4807EOF 4808 4809else 4810 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4811# that cause trouble. Some versions do not even contain alloca or 4812# contain a buggy version. If you still want to use their alloca, 4813# use ar to extract alloca.o from them instead of compiling alloca.c. 4814 4815ALLOCA=alloca.$ac_objext 4816 4817cat >>confdefs.h <<\EOF 4818#define C_ALLOCA 1 4819EOF 4820 4821echo "$as_me:4821: checking whether \`alloca.c' needs Cray hooks" >&5 4822echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 4823if test "${ac_cv_os_cray+set}" = set; then 4824 echo $ECHO_N "(cached) $ECHO_C" >&6 4825else 4826 cat >conftest.$ac_ext <<_ACEOF 4827#line 4827 "configure" 4828#include "confdefs.h" 4829#if defined(CRAY) && ! defined(CRAY2) 4830webecray 4831#else 4832wenotbecray 4833#endif 4834 4835_ACEOF 4836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4837 egrep "webecray" >/dev/null 2>&1; then 4838 ac_cv_os_cray=yes 4839else 4840 ac_cv_os_cray=no 4841fi 4842rm -f conftest* 4843 4844fi 4845echo "$as_me:4845: result: $ac_cv_os_cray" >&5 4846echo "${ECHO_T}$ac_cv_os_cray" >&6 4847if test $ac_cv_os_cray = yes; then 4848 for ac_func in _getb67 GETB67 getb67; do 4849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4850echo "$as_me:4850: checking for $ac_func" >&5 4851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4852if eval "test \"\${$as_ac_var+set}\" = set"; then 4853 echo $ECHO_N "(cached) $ECHO_C" >&6 4854else 4855 cat >conftest.$ac_ext <<_ACEOF 4856#line 4856 "configure" 4857#include "confdefs.h" 4858/* System header to define __stub macros and hopefully few prototypes, 4859 which can conflict with char $ac_func (); below. */ 4860#include <assert.h> 4861/* Override any gcc2 internal prototype to avoid an error. */ 4862#ifdef __cplusplus 4863extern "C" 4864#endif 4865/* We use char because int might match the return type of a gcc2 4866 builtin and then its argument prototype would still apply. */ 4867char $ac_func (); 4868char (*f) (); 4869 4870int 4871main () 4872{ 4873/* The GNU C library defines this for functions which it implements 4874 to always fail with ENOSYS. Some functions are actually named 4875 something starting with __ and the normal name is an alias. */ 4876#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4877choke me 4878#else 4879f = $ac_func; 4880#endif 4881 4882 ; 4883 return 0; 4884} 4885_ACEOF 4886rm -f conftest.$ac_objext conftest$ac_exeext 4887if { (eval echo "$as_me:4887: \"$ac_link\"") >&5 4888 (eval $ac_link) 2>&5 4889 ac_status=$? 4890 echo "$as_me:4890: \$? = $ac_status" >&5 4891 (exit $ac_status); } && 4892 { ac_try='test -s conftest$ac_exeext' 4893 { (eval echo "$as_me:4893: \"$ac_try\"") >&5 4894 (eval $ac_try) 2>&5 4895 ac_status=$? 4896 echo "$as_me:4896: \$? = $ac_status" >&5 4897 (exit $ac_status); }; }; then 4898 eval "$as_ac_var=yes" 4899else 4900 echo "$as_me: failed program was:" >&5 4901cat conftest.$ac_ext >&5 4902eval "$as_ac_var=no" 4903fi 4904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4905fi 4906echo "$as_me:4906: result: `eval echo '${'$as_ac_var'}'`" >&5 4907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4908if test `eval echo '${'$as_ac_var'}'` = yes; then 4909 4910cat >>confdefs.h <<EOF 4911#define CRAY_STACKSEG_END $ac_func 4912EOF 4913 4914 break 4915fi 4916 4917 done 4918fi 4919 4920echo "$as_me:4920: checking stack direction for C alloca" >&5 4921echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 4922if test "${ac_cv_c_stack_direction+set}" = set; then 4923 echo $ECHO_N "(cached) $ECHO_C" >&6 4924else 4925 if test "$cross_compiling" = yes; then 4926 ac_cv_c_stack_direction=0 4927else 4928 cat >conftest.$ac_ext <<_ACEOF 4929#line 4929 "configure" 4930#include "confdefs.h" 4931int 4932find_stack_direction () 4933{ 4934 static char *addr = 0; 4935 auto char dummy; 4936 if (addr == 0) 4937 { 4938 addr = &dummy; 4939 return find_stack_direction (); 4940 } 4941 else 4942 return (&dummy > addr) ? 1 : -1; 4943} 4944 4945int 4946main () 4947{ 4948 exit (find_stack_direction () < 0); 4949} 4950_ACEOF 4951rm -f conftest$ac_exeext 4952if { (eval echo "$as_me:4952: \"$ac_link\"") >&5 4953 (eval $ac_link) 2>&5 4954 ac_status=$? 4955 echo "$as_me:4955: \$? = $ac_status" >&5 4956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4957 { (eval echo "$as_me:4957: \"$ac_try\"") >&5 4958 (eval $ac_try) 2>&5 4959 ac_status=$? 4960 echo "$as_me:4960: \$? = $ac_status" >&5 4961 (exit $ac_status); }; }; then 4962 ac_cv_c_stack_direction=1 4963else 4964 echo "$as_me: program exited with status $ac_status" >&5 4965echo "$as_me: failed program was:" >&5 4966cat conftest.$ac_ext >&5 4967ac_cv_c_stack_direction=-1 4968fi 4969rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4970fi 4971fi 4972echo "$as_me:4972: result: $ac_cv_c_stack_direction" >&5 4973echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 4974 4975cat >>confdefs.h <<EOF 4976#define STACK_DIRECTION $ac_cv_c_stack_direction 4977EOF 4978 4979fi 4980 4981for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \ 4982 esetfunc fgetln flock fparseln futimes getopt getopt_long \ 4983 group_from_gid gid_from_group \ 4984 heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \ 4985 mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb pwrite \ 4986 raise_default_signal random setenv \ 4987 setgroupent setprogname setpassent snprintf strlcat strlcpy strmode \ 4988 strndup strsep strsuftoll strtoll \ 4989 user_from_uid uid_from_user vasprintf vasnprintf vsnprintf 4990do 4991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4992echo "$as_me:4992: checking for $ac_func" >&5 4993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4994if eval "test \"\${$as_ac_var+set}\" = set"; then 4995 echo $ECHO_N "(cached) $ECHO_C" >&6 4996else 4997 cat >conftest.$ac_ext <<_ACEOF 4998#line 4998 "configure" 4999#include "confdefs.h" 5000/* System header to define __stub macros and hopefully few prototypes, 5001 which can conflict with char $ac_func (); below. */ 5002#include <assert.h> 5003/* Override any gcc2 internal prototype to avoid an error. */ 5004#ifdef __cplusplus 5005extern "C" 5006#endif 5007/* We use char because int might match the return type of a gcc2 5008 builtin and then its argument prototype would still apply. */ 5009char $ac_func (); 5010char (*f) (); 5011 5012int 5013main () 5014{ 5015/* The GNU C library defines this for functions which it implements 5016 to always fail with ENOSYS. Some functions are actually named 5017 something starting with __ and the normal name is an alias. */ 5018#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5019choke me 5020#else 5021f = $ac_func; 5022#endif 5023 5024 ; 5025 return 0; 5026} 5027_ACEOF 5028rm -f conftest.$ac_objext conftest$ac_exeext 5029if { (eval echo "$as_me:5029: \"$ac_link\"") >&5 5030 (eval $ac_link) 2>&5 5031 ac_status=$? 5032 echo "$as_me:5032: \$? = $ac_status" >&5 5033 (exit $ac_status); } && 5034 { ac_try='test -s conftest$ac_exeext' 5035 { (eval echo "$as_me:5035: \"$ac_try\"") >&5 5036 (eval $ac_try) 2>&5 5037 ac_status=$? 5038 echo "$as_me:5038: \$? = $ac_status" >&5 5039 (exit $ac_status); }; }; then 5040 eval "$as_ac_var=yes" 5041else 5042 echo "$as_me: failed program was:" >&5 5043cat conftest.$ac_ext >&5 5044eval "$as_ac_var=no" 5045fi 5046rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5047fi 5048echo "$as_me:5048: result: `eval echo '${'$as_ac_var'}'`" >&5 5049echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5050if test `eval echo '${'$as_ac_var'}'` = yes; then 5051 cat >>confdefs.h <<EOF 5052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5053EOF 5054 5055fi 5056done 5057 5058echo "$as_me:5058: checking whether user_from_uid is declared" >&5 5059echo $ECHO_N "checking whether user_from_uid is declared... $ECHO_C" >&6 5060if test "${ac_cv_have_decl_user_from_uid+set}" = set; then 5061 echo $ECHO_N "(cached) $ECHO_C" >&6 5062else 5063 cat >conftest.$ac_ext <<_ACEOF 5064#line 5064 "configure" 5065#include "confdefs.h" 5066 5067#include <pwd.h> 5068 5069int 5070main () 5071{ 5072#ifndef user_from_uid 5073 char *p = (char *) user_from_uid; 5074#endif 5075 5076 ; 5077 return 0; 5078} 5079_ACEOF 5080rm -f conftest.$ac_objext 5081if { (eval echo "$as_me:5081: \"$ac_compile\"") >&5 5082 (eval $ac_compile) 2>&5 5083 ac_status=$? 5084 echo "$as_me:5084: \$? = $ac_status" >&5 5085 (exit $ac_status); } && 5086 { ac_try='test -s conftest.$ac_objext' 5087 { (eval echo "$as_me:5087: \"$ac_try\"") >&5 5088 (eval $ac_try) 2>&5 5089 ac_status=$? 5090 echo "$as_me:5090: \$? = $ac_status" >&5 5091 (exit $ac_status); }; }; then 5092 ac_cv_have_decl_user_from_uid=yes 5093else 5094 echo "$as_me: failed program was:" >&5 5095cat conftest.$ac_ext >&5 5096ac_cv_have_decl_user_from_uid=no 5097fi 5098rm -f conftest.$ac_objext conftest.$ac_ext 5099fi 5100echo "$as_me:5100: result: $ac_cv_have_decl_user_from_uid" >&5 5101echo "${ECHO_T}$ac_cv_have_decl_user_from_uid" >&6 5102if test $ac_cv_have_decl_user_from_uid = yes; then 5103 5104cat >>confdefs.h <<EOF 5105#define HAVE_DECL_USER_FROM_UID 1 5106EOF 5107 5108else 5109 cat >>confdefs.h <<EOF 5110#define HAVE_DECL_USER_FROM_UID 0 5111EOF 5112 5113fi 5114echo "$as_me:5114: checking whether uid_from_user is declared" >&5 5115echo $ECHO_N "checking whether uid_from_user is declared... $ECHO_C" >&6 5116if test "${ac_cv_have_decl_uid_from_user+set}" = set; then 5117 echo $ECHO_N "(cached) $ECHO_C" >&6 5118else 5119 cat >conftest.$ac_ext <<_ACEOF 5120#line 5120 "configure" 5121#include "confdefs.h" 5122 5123#include <pwd.h> 5124 5125int 5126main () 5127{ 5128#ifndef uid_from_user 5129 char *p = (char *) uid_from_user; 5130#endif 5131 5132 ; 5133 return 0; 5134} 5135_ACEOF 5136rm -f conftest.$ac_objext 5137if { (eval echo "$as_me:5137: \"$ac_compile\"") >&5 5138 (eval $ac_compile) 2>&5 5139 ac_status=$? 5140 echo "$as_me:5140: \$? = $ac_status" >&5 5141 (exit $ac_status); } && 5142 { ac_try='test -s conftest.$ac_objext' 5143 { (eval echo "$as_me:5143: \"$ac_try\"") >&5 5144 (eval $ac_try) 2>&5 5145 ac_status=$? 5146 echo "$as_me:5146: \$? = $ac_status" >&5 5147 (exit $ac_status); }; }; then 5148 ac_cv_have_decl_uid_from_user=yes 5149else 5150 echo "$as_me: failed program was:" >&5 5151cat conftest.$ac_ext >&5 5152ac_cv_have_decl_uid_from_user=no 5153fi 5154rm -f conftest.$ac_objext conftest.$ac_ext 5155fi 5156echo "$as_me:5156: result: $ac_cv_have_decl_uid_from_user" >&5 5157echo "${ECHO_T}$ac_cv_have_decl_uid_from_user" >&6 5158if test $ac_cv_have_decl_uid_from_user = yes; then 5159 5160cat >>confdefs.h <<EOF 5161#define HAVE_DECL_UID_FROM_USER 1 5162EOF 5163 5164else 5165 cat >>confdefs.h <<EOF 5166#define HAVE_DECL_UID_FROM_USER 0 5167EOF 5168 5169fi 5170echo "$as_me:5170: checking whether pwcache_userdb is declared" >&5 5171echo $ECHO_N "checking whether pwcache_userdb is declared... $ECHO_C" >&6 5172if test "${ac_cv_have_decl_pwcache_userdb+set}" = set; then 5173 echo $ECHO_N "(cached) $ECHO_C" >&6 5174else 5175 cat >conftest.$ac_ext <<_ACEOF 5176#line 5176 "configure" 5177#include "confdefs.h" 5178 5179#include <pwd.h> 5180 5181int 5182main () 5183{ 5184#ifndef pwcache_userdb 5185 char *p = (char *) pwcache_userdb; 5186#endif 5187 5188 ; 5189 return 0; 5190} 5191_ACEOF 5192rm -f conftest.$ac_objext 5193if { (eval echo "$as_me:5193: \"$ac_compile\"") >&5 5194 (eval $ac_compile) 2>&5 5195 ac_status=$? 5196 echo "$as_me:5196: \$? = $ac_status" >&5 5197 (exit $ac_status); } && 5198 { ac_try='test -s conftest.$ac_objext' 5199 { (eval echo "$as_me:5199: \"$ac_try\"") >&5 5200 (eval $ac_try) 2>&5 5201 ac_status=$? 5202 echo "$as_me:5202: \$? = $ac_status" >&5 5203 (exit $ac_status); }; }; then 5204 ac_cv_have_decl_pwcache_userdb=yes 5205else 5206 echo "$as_me: failed program was:" >&5 5207cat conftest.$ac_ext >&5 5208ac_cv_have_decl_pwcache_userdb=no 5209fi 5210rm -f conftest.$ac_objext conftest.$ac_ext 5211fi 5212echo "$as_me:5212: result: $ac_cv_have_decl_pwcache_userdb" >&5 5213echo "${ECHO_T}$ac_cv_have_decl_pwcache_userdb" >&6 5214if test $ac_cv_have_decl_pwcache_userdb = yes; then 5215 5216cat >>confdefs.h <<EOF 5217#define HAVE_DECL_PWCACHE_USERDB 1 5218EOF 5219 5220else 5221 cat >>confdefs.h <<EOF 5222#define HAVE_DECL_PWCACHE_USERDB 0 5223EOF 5224 5225fi 5226 5227echo "$as_me:5227: checking whether group_from_gid is declared" >&5 5228echo $ECHO_N "checking whether group_from_gid is declared... $ECHO_C" >&6 5229if test "${ac_cv_have_decl_group_from_gid+set}" = set; then 5230 echo $ECHO_N "(cached) $ECHO_C" >&6 5231else 5232 cat >conftest.$ac_ext <<_ACEOF 5233#line 5233 "configure" 5234#include "confdefs.h" 5235 5236#include <grp.h> 5237 5238int 5239main () 5240{ 5241#ifndef group_from_gid 5242 char *p = (char *) group_from_gid; 5243#endif 5244 5245 ; 5246 return 0; 5247} 5248_ACEOF 5249rm -f conftest.$ac_objext 5250if { (eval echo "$as_me:5250: \"$ac_compile\"") >&5 5251 (eval $ac_compile) 2>&5 5252 ac_status=$? 5253 echo "$as_me:5253: \$? = $ac_status" >&5 5254 (exit $ac_status); } && 5255 { ac_try='test -s conftest.$ac_objext' 5256 { (eval echo "$as_me:5256: \"$ac_try\"") >&5 5257 (eval $ac_try) 2>&5 5258 ac_status=$? 5259 echo "$as_me:5259: \$? = $ac_status" >&5 5260 (exit $ac_status); }; }; then 5261 ac_cv_have_decl_group_from_gid=yes 5262else 5263 echo "$as_me: failed program was:" >&5 5264cat conftest.$ac_ext >&5 5265ac_cv_have_decl_group_from_gid=no 5266fi 5267rm -f conftest.$ac_objext conftest.$ac_ext 5268fi 5269echo "$as_me:5269: result: $ac_cv_have_decl_group_from_gid" >&5 5270echo "${ECHO_T}$ac_cv_have_decl_group_from_gid" >&6 5271if test $ac_cv_have_decl_group_from_gid = yes; then 5272 5273cat >>confdefs.h <<EOF 5274#define HAVE_DECL_GROUP_FROM_GID 1 5275EOF 5276 5277else 5278 cat >>confdefs.h <<EOF 5279#define HAVE_DECL_GROUP_FROM_GID 0 5280EOF 5281 5282fi 5283echo "$as_me:5283: checking whether gid_from_group is declared" >&5 5284echo $ECHO_N "checking whether gid_from_group is declared... $ECHO_C" >&6 5285if test "${ac_cv_have_decl_gid_from_group+set}" = set; then 5286 echo $ECHO_N "(cached) $ECHO_C" >&6 5287else 5288 cat >conftest.$ac_ext <<_ACEOF 5289#line 5289 "configure" 5290#include "confdefs.h" 5291 5292#include <grp.h> 5293 5294int 5295main () 5296{ 5297#ifndef gid_from_group 5298 char *p = (char *) gid_from_group; 5299#endif 5300 5301 ; 5302 return 0; 5303} 5304_ACEOF 5305rm -f conftest.$ac_objext 5306if { (eval echo "$as_me:5306: \"$ac_compile\"") >&5 5307 (eval $ac_compile) 2>&5 5308 ac_status=$? 5309 echo "$as_me:5309: \$? = $ac_status" >&5 5310 (exit $ac_status); } && 5311 { ac_try='test -s conftest.$ac_objext' 5312 { (eval echo "$as_me:5312: \"$ac_try\"") >&5 5313 (eval $ac_try) 2>&5 5314 ac_status=$? 5315 echo "$as_me:5315: \$? = $ac_status" >&5 5316 (exit $ac_status); }; }; then 5317 ac_cv_have_decl_gid_from_group=yes 5318else 5319 echo "$as_me: failed program was:" >&5 5320cat conftest.$ac_ext >&5 5321ac_cv_have_decl_gid_from_group=no 5322fi 5323rm -f conftest.$ac_objext conftest.$ac_ext 5324fi 5325echo "$as_me:5325: result: $ac_cv_have_decl_gid_from_group" >&5 5326echo "${ECHO_T}$ac_cv_have_decl_gid_from_group" >&6 5327if test $ac_cv_have_decl_gid_from_group = yes; then 5328 5329cat >>confdefs.h <<EOF 5330#define HAVE_DECL_GID_FROM_GROUP 1 5331EOF 5332 5333else 5334 cat >>confdefs.h <<EOF 5335#define HAVE_DECL_GID_FROM_GROUP 0 5336EOF 5337 5338fi 5339echo "$as_me:5339: checking whether pwcache_groupdb is declared" >&5 5340echo $ECHO_N "checking whether pwcache_groupdb is declared... $ECHO_C" >&6 5341if test "${ac_cv_have_decl_pwcache_groupdb+set}" = set; then 5342 echo $ECHO_N "(cached) $ECHO_C" >&6 5343else 5344 cat >conftest.$ac_ext <<_ACEOF 5345#line 5345 "configure" 5346#include "confdefs.h" 5347 5348#include <grp.h> 5349 5350int 5351main () 5352{ 5353#ifndef pwcache_groupdb 5354 char *p = (char *) pwcache_groupdb; 5355#endif 5356 5357 ; 5358 return 0; 5359} 5360_ACEOF 5361rm -f conftest.$ac_objext 5362if { (eval echo "$as_me:5362: \"$ac_compile\"") >&5 5363 (eval $ac_compile) 2>&5 5364 ac_status=$? 5365 echo "$as_me:5365: \$? = $ac_status" >&5 5366 (exit $ac_status); } && 5367 { ac_try='test -s conftest.$ac_objext' 5368 { (eval echo "$as_me:5368: \"$ac_try\"") >&5 5369 (eval $ac_try) 2>&5 5370 ac_status=$? 5371 echo "$as_me:5371: \$? = $ac_status" >&5 5372 (exit $ac_status); }; }; then 5373 ac_cv_have_decl_pwcache_groupdb=yes 5374else 5375 echo "$as_me: failed program was:" >&5 5376cat conftest.$ac_ext >&5 5377ac_cv_have_decl_pwcache_groupdb=no 5378fi 5379rm -f conftest.$ac_objext conftest.$ac_ext 5380fi 5381echo "$as_me:5381: result: $ac_cv_have_decl_pwcache_groupdb" >&5 5382echo "${ECHO_T}$ac_cv_have_decl_pwcache_groupdb" >&6 5383if test $ac_cv_have_decl_pwcache_groupdb = yes; then 5384 5385cat >>confdefs.h <<EOF 5386#define HAVE_DECL_PWCACHE_GROUPDB 1 5387EOF 5388 5389else 5390 cat >>confdefs.h <<EOF 5391#define HAVE_DECL_PWCACHE_GROUPDB 0 5392EOF 5393 5394fi 5395 5396echo "$as_me:5396: checking whether strndup is declared" >&5 5397echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6 5398if test "${ac_cv_have_decl_strndup+set}" = set; then 5399 echo $ECHO_N "(cached) $ECHO_C" >&6 5400else 5401 cat >conftest.$ac_ext <<_ACEOF 5402#line 5402 "configure" 5403#include "confdefs.h" 5404#include <string.h> 5405 5406int 5407main () 5408{ 5409#ifndef strndup 5410 char *p = (char *) strndup; 5411#endif 5412 5413 ; 5414 return 0; 5415} 5416_ACEOF 5417rm -f conftest.$ac_objext 5418if { (eval echo "$as_me:5418: \"$ac_compile\"") >&5 5419 (eval $ac_compile) 2>&5 5420 ac_status=$? 5421 echo "$as_me:5421: \$? = $ac_status" >&5 5422 (exit $ac_status); } && 5423 { ac_try='test -s conftest.$ac_objext' 5424 { (eval echo "$as_me:5424: \"$ac_try\"") >&5 5425 (eval $ac_try) 2>&5 5426 ac_status=$? 5427 echo "$as_me:5427: \$? = $ac_status" >&5 5428 (exit $ac_status); }; }; then 5429 ac_cv_have_decl_strndup=yes 5430else 5431 echo "$as_me: failed program was:" >&5 5432cat conftest.$ac_ext >&5 5433ac_cv_have_decl_strndup=no 5434fi 5435rm -f conftest.$ac_objext conftest.$ac_ext 5436fi 5437echo "$as_me:5437: result: $ac_cv_have_decl_strndup" >&5 5438echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6 5439if test $ac_cv_have_decl_strndup = yes; then 5440 5441cat >>confdefs.h <<EOF 5442#define HAVE_DECL_STRNDUP 1 5443EOF 5444 5445else 5446 cat >>confdefs.h <<EOF 5447#define HAVE_DECL_STRNDUP 0 5448EOF 5449 5450fi 5451 5452echo "$as_me:5452: checking whether strsuftoll is declared" >&5 5453echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6 5454if test "${ac_cv_have_decl_strsuftoll+set}" = set; then 5455 echo $ECHO_N "(cached) $ECHO_C" >&6 5456else 5457 cat >conftest.$ac_ext <<_ACEOF 5458#line 5458 "configure" 5459#include "confdefs.h" 5460#include <stdlib.h> 5461 5462int 5463main () 5464{ 5465#ifndef strsuftoll 5466 char *p = (char *) strsuftoll; 5467#endif 5468 5469 ; 5470 return 0; 5471} 5472_ACEOF 5473rm -f conftest.$ac_objext 5474if { (eval echo "$as_me:5474: \"$ac_compile\"") >&5 5475 (eval $ac_compile) 2>&5 5476 ac_status=$? 5477 echo "$as_me:5477: \$? = $ac_status" >&5 5478 (exit $ac_status); } && 5479 { ac_try='test -s conftest.$ac_objext' 5480 { (eval echo "$as_me:5480: \"$ac_try\"") >&5 5481 (eval $ac_try) 2>&5 5482 ac_status=$? 5483 echo "$as_me:5483: \$? = $ac_status" >&5 5484 (exit $ac_status); }; }; then 5485 ac_cv_have_decl_strsuftoll=yes 5486else 5487 echo "$as_me: failed program was:" >&5 5488cat conftest.$ac_ext >&5 5489ac_cv_have_decl_strsuftoll=no 5490fi 5491rm -f conftest.$ac_objext conftest.$ac_ext 5492fi 5493echo "$as_me:5493: result: $ac_cv_have_decl_strsuftoll" >&5 5494echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6 5495if test $ac_cv_have_decl_strsuftoll = yes; then 5496 5497cat >>confdefs.h <<EOF 5498#define HAVE_DECL_STRSUFTOLL 1 5499EOF 5500 5501else 5502 cat >>confdefs.h <<EOF 5503#define HAVE_DECL_STRSUFTOLL 0 5504EOF 5505 5506fi 5507 5508echo "$as_me:5508: checking whether lchflags is declared" >&5 5509echo $ECHO_N "checking whether lchflags is declared... $ECHO_C" >&6 5510if test "${ac_cv_have_decl_lchflags+set}" = set; then 5511 echo $ECHO_N "(cached) $ECHO_C" >&6 5512else 5513 cat >conftest.$ac_ext <<_ACEOF 5514#line 5514 "configure" 5515#include "confdefs.h" 5516 5517#include <sys/stat.h> 5518#include <unistd.h> 5519 5520int 5521main () 5522{ 5523#ifndef lchflags 5524 char *p = (char *) lchflags; 5525#endif 5526 5527 ; 5528 return 0; 5529} 5530_ACEOF 5531rm -f conftest.$ac_objext 5532if { (eval echo "$as_me:5532: \"$ac_compile\"") >&5 5533 (eval $ac_compile) 2>&5 5534 ac_status=$? 5535 echo "$as_me:5535: \$? = $ac_status" >&5 5536 (exit $ac_status); } && 5537 { ac_try='test -s conftest.$ac_objext' 5538 { (eval echo "$as_me:5538: \"$ac_try\"") >&5 5539 (eval $ac_try) 2>&5 5540 ac_status=$? 5541 echo "$as_me:5541: \$? = $ac_status" >&5 5542 (exit $ac_status); }; }; then 5543 ac_cv_have_decl_lchflags=yes 5544else 5545 echo "$as_me: failed program was:" >&5 5546cat conftest.$ac_ext >&5 5547ac_cv_have_decl_lchflags=no 5548fi 5549rm -f conftest.$ac_objext conftest.$ac_ext 5550fi 5551echo "$as_me:5551: result: $ac_cv_have_decl_lchflags" >&5 5552echo "${ECHO_T}$ac_cv_have_decl_lchflags" >&6 5553if test $ac_cv_have_decl_lchflags = yes; then 5554 5555cat >>confdefs.h <<EOF 5556#define HAVE_DECL_LCHFLAGS 1 5557EOF 5558 5559else 5560 cat >>confdefs.h <<EOF 5561#define HAVE_DECL_LCHFLAGS 0 5562EOF 5563 5564fi 5565echo "$as_me:5565: checking whether lchmod is declared" >&5 5566echo $ECHO_N "checking whether lchmod is declared... $ECHO_C" >&6 5567if test "${ac_cv_have_decl_lchmod+set}" = set; then 5568 echo $ECHO_N "(cached) $ECHO_C" >&6 5569else 5570 cat >conftest.$ac_ext <<_ACEOF 5571#line 5571 "configure" 5572#include "confdefs.h" 5573 5574#include <sys/stat.h> 5575#include <unistd.h> 5576 5577int 5578main () 5579{ 5580#ifndef lchmod 5581 char *p = (char *) lchmod; 5582#endif 5583 5584 ; 5585 return 0; 5586} 5587_ACEOF 5588rm -f conftest.$ac_objext 5589if { (eval echo "$as_me:5589: \"$ac_compile\"") >&5 5590 (eval $ac_compile) 2>&5 5591 ac_status=$? 5592 echo "$as_me:5592: \$? = $ac_status" >&5 5593 (exit $ac_status); } && 5594 { ac_try='test -s conftest.$ac_objext' 5595 { (eval echo "$as_me:5595: \"$ac_try\"") >&5 5596 (eval $ac_try) 2>&5 5597 ac_status=$? 5598 echo "$as_me:5598: \$? = $ac_status" >&5 5599 (exit $ac_status); }; }; then 5600 ac_cv_have_decl_lchmod=yes 5601else 5602 echo "$as_me: failed program was:" >&5 5603cat conftest.$ac_ext >&5 5604ac_cv_have_decl_lchmod=no 5605fi 5606rm -f conftest.$ac_objext conftest.$ac_ext 5607fi 5608echo "$as_me:5608: result: $ac_cv_have_decl_lchmod" >&5 5609echo "${ECHO_T}$ac_cv_have_decl_lchmod" >&6 5610if test $ac_cv_have_decl_lchmod = yes; then 5611 5612cat >>confdefs.h <<EOF 5613#define HAVE_DECL_LCHMOD 1 5614EOF 5615 5616else 5617 cat >>confdefs.h <<EOF 5618#define HAVE_DECL_LCHMOD 0 5619EOF 5620 5621fi 5622echo "$as_me:5622: checking whether lchown is declared" >&5 5623echo $ECHO_N "checking whether lchown is declared... $ECHO_C" >&6 5624if test "${ac_cv_have_decl_lchown+set}" = set; then 5625 echo $ECHO_N "(cached) $ECHO_C" >&6 5626else 5627 cat >conftest.$ac_ext <<_ACEOF 5628#line 5628 "configure" 5629#include "confdefs.h" 5630 5631#include <sys/stat.h> 5632#include <unistd.h> 5633 5634int 5635main () 5636{ 5637#ifndef lchown 5638 char *p = (char *) lchown; 5639#endif 5640 5641 ; 5642 return 0; 5643} 5644_ACEOF 5645rm -f conftest.$ac_objext 5646if { (eval echo "$as_me:5646: \"$ac_compile\"") >&5 5647 (eval $ac_compile) 2>&5 5648 ac_status=$? 5649 echo "$as_me:5649: \$? = $ac_status" >&5 5650 (exit $ac_status); } && 5651 { ac_try='test -s conftest.$ac_objext' 5652 { (eval echo "$as_me:5652: \"$ac_try\"") >&5 5653 (eval $ac_try) 2>&5 5654 ac_status=$? 5655 echo "$as_me:5655: \$? = $ac_status" >&5 5656 (exit $ac_status); }; }; then 5657 ac_cv_have_decl_lchown=yes 5658else 5659 echo "$as_me: failed program was:" >&5 5660cat conftest.$ac_ext >&5 5661ac_cv_have_decl_lchown=no 5662fi 5663rm -f conftest.$ac_objext conftest.$ac_ext 5664fi 5665echo "$as_me:5665: result: $ac_cv_have_decl_lchown" >&5 5666echo "${ECHO_T}$ac_cv_have_decl_lchown" >&6 5667if test $ac_cv_have_decl_lchown = yes; then 5668 5669cat >>confdefs.h <<EOF 5670#define HAVE_DECL_LCHOWN 1 5671EOF 5672 5673else 5674 cat >>confdefs.h <<EOF 5675#define HAVE_DECL_LCHOWN 0 5676EOF 5677 5678fi 5679 5680echo "$as_me:5680: checking whether htobe16 is declared" >&5 5681echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6 5682if test "${ac_cv_have_decl_htobe16+set}" = set; then 5683 echo $ECHO_N "(cached) $ECHO_C" >&6 5684else 5685 cat >conftest.$ac_ext <<_ACEOF 5686#line 5686 "configure" 5687#include "confdefs.h" 5688#include <sys/types.h> 5689 5690int 5691main () 5692{ 5693#ifndef htobe16 5694 char *p = (char *) htobe16; 5695#endif 5696 5697 ; 5698 return 0; 5699} 5700_ACEOF 5701rm -f conftest.$ac_objext 5702if { (eval echo "$as_me:5702: \"$ac_compile\"") >&5 5703 (eval $ac_compile) 2>&5 5704 ac_status=$? 5705 echo "$as_me:5705: \$? = $ac_status" >&5 5706 (exit $ac_status); } && 5707 { ac_try='test -s conftest.$ac_objext' 5708 { (eval echo "$as_me:5708: \"$ac_try\"") >&5 5709 (eval $ac_try) 2>&5 5710 ac_status=$? 5711 echo "$as_me:5711: \$? = $ac_status" >&5 5712 (exit $ac_status); }; }; then 5713 ac_cv_have_decl_htobe16=yes 5714else 5715 echo "$as_me: failed program was:" >&5 5716cat conftest.$ac_ext >&5 5717ac_cv_have_decl_htobe16=no 5718fi 5719rm -f conftest.$ac_objext conftest.$ac_ext 5720fi 5721echo "$as_me:5721: result: $ac_cv_have_decl_htobe16" >&5 5722echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6 5723if test $ac_cv_have_decl_htobe16 = yes; then 5724 5725cat >>confdefs.h <<EOF 5726#define HAVE_DECL_HTOBE16 1 5727EOF 5728 5729else 5730 cat >>confdefs.h <<EOF 5731#define HAVE_DECL_HTOBE16 0 5732EOF 5733 5734fi 5735echo "$as_me:5735: checking whether htobe32 is declared" >&5 5736echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6 5737if test "${ac_cv_have_decl_htobe32+set}" = set; then 5738 echo $ECHO_N "(cached) $ECHO_C" >&6 5739else 5740 cat >conftest.$ac_ext <<_ACEOF 5741#line 5741 "configure" 5742#include "confdefs.h" 5743#include <sys/types.h> 5744 5745int 5746main () 5747{ 5748#ifndef htobe32 5749 char *p = (char *) htobe32; 5750#endif 5751 5752 ; 5753 return 0; 5754} 5755_ACEOF 5756rm -f conftest.$ac_objext 5757if { (eval echo "$as_me:5757: \"$ac_compile\"") >&5 5758 (eval $ac_compile) 2>&5 5759 ac_status=$? 5760 echo "$as_me:5760: \$? = $ac_status" >&5 5761 (exit $ac_status); } && 5762 { ac_try='test -s conftest.$ac_objext' 5763 { (eval echo "$as_me:5763: \"$ac_try\"") >&5 5764 (eval $ac_try) 2>&5 5765 ac_status=$? 5766 echo "$as_me:5766: \$? = $ac_status" >&5 5767 (exit $ac_status); }; }; then 5768 ac_cv_have_decl_htobe32=yes 5769else 5770 echo "$as_me: failed program was:" >&5 5771cat conftest.$ac_ext >&5 5772ac_cv_have_decl_htobe32=no 5773fi 5774rm -f conftest.$ac_objext conftest.$ac_ext 5775fi 5776echo "$as_me:5776: result: $ac_cv_have_decl_htobe32" >&5 5777echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6 5778if test $ac_cv_have_decl_htobe32 = yes; then 5779 5780cat >>confdefs.h <<EOF 5781#define HAVE_DECL_HTOBE32 1 5782EOF 5783 5784else 5785 cat >>confdefs.h <<EOF 5786#define HAVE_DECL_HTOBE32 0 5787EOF 5788 5789fi 5790echo "$as_me:5790: checking whether htobe64 is declared" >&5 5791echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6 5792if test "${ac_cv_have_decl_htobe64+set}" = set; then 5793 echo $ECHO_N "(cached) $ECHO_C" >&6 5794else 5795 cat >conftest.$ac_ext <<_ACEOF 5796#line 5796 "configure" 5797#include "confdefs.h" 5798#include <sys/types.h> 5799 5800int 5801main () 5802{ 5803#ifndef htobe64 5804 char *p = (char *) htobe64; 5805#endif 5806 5807 ; 5808 return 0; 5809} 5810_ACEOF 5811rm -f conftest.$ac_objext 5812if { (eval echo "$as_me:5812: \"$ac_compile\"") >&5 5813 (eval $ac_compile) 2>&5 5814 ac_status=$? 5815 echo "$as_me:5815: \$? = $ac_status" >&5 5816 (exit $ac_status); } && 5817 { ac_try='test -s conftest.$ac_objext' 5818 { (eval echo "$as_me:5818: \"$ac_try\"") >&5 5819 (eval $ac_try) 2>&5 5820 ac_status=$? 5821 echo "$as_me:5821: \$? = $ac_status" >&5 5822 (exit $ac_status); }; }; then 5823 ac_cv_have_decl_htobe64=yes 5824else 5825 echo "$as_me: failed program was:" >&5 5826cat conftest.$ac_ext >&5 5827ac_cv_have_decl_htobe64=no 5828fi 5829rm -f conftest.$ac_objext conftest.$ac_ext 5830fi 5831echo "$as_me:5831: result: $ac_cv_have_decl_htobe64" >&5 5832echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6 5833if test $ac_cv_have_decl_htobe64 = yes; then 5834 5835cat >>confdefs.h <<EOF 5836#define HAVE_DECL_HTOBE64 1 5837EOF 5838 5839else 5840 cat >>confdefs.h <<EOF 5841#define HAVE_DECL_HTOBE64 0 5842EOF 5843 5844fi 5845echo "$as_me:5845: checking whether htole16 is declared" >&5 5846echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6 5847if test "${ac_cv_have_decl_htole16+set}" = set; then 5848 echo $ECHO_N "(cached) $ECHO_C" >&6 5849else 5850 cat >conftest.$ac_ext <<_ACEOF 5851#line 5851 "configure" 5852#include "confdefs.h" 5853#include <sys/types.h> 5854 5855int 5856main () 5857{ 5858#ifndef htole16 5859 char *p = (char *) htole16; 5860#endif 5861 5862 ; 5863 return 0; 5864} 5865_ACEOF 5866rm -f conftest.$ac_objext 5867if { (eval echo "$as_me:5867: \"$ac_compile\"") >&5 5868 (eval $ac_compile) 2>&5 5869 ac_status=$? 5870 echo "$as_me:5870: \$? = $ac_status" >&5 5871 (exit $ac_status); } && 5872 { ac_try='test -s conftest.$ac_objext' 5873 { (eval echo "$as_me:5873: \"$ac_try\"") >&5 5874 (eval $ac_try) 2>&5 5875 ac_status=$? 5876 echo "$as_me:5876: \$? = $ac_status" >&5 5877 (exit $ac_status); }; }; then 5878 ac_cv_have_decl_htole16=yes 5879else 5880 echo "$as_me: failed program was:" >&5 5881cat conftest.$ac_ext >&5 5882ac_cv_have_decl_htole16=no 5883fi 5884rm -f conftest.$ac_objext conftest.$ac_ext 5885fi 5886echo "$as_me:5886: result: $ac_cv_have_decl_htole16" >&5 5887echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6 5888if test $ac_cv_have_decl_htole16 = yes; then 5889 5890cat >>confdefs.h <<EOF 5891#define HAVE_DECL_HTOLE16 1 5892EOF 5893 5894else 5895 cat >>confdefs.h <<EOF 5896#define HAVE_DECL_HTOLE16 0 5897EOF 5898 5899fi 5900echo "$as_me:5900: checking whether htole32 is declared" >&5 5901echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6 5902if test "${ac_cv_have_decl_htole32+set}" = set; then 5903 echo $ECHO_N "(cached) $ECHO_C" >&6 5904else 5905 cat >conftest.$ac_ext <<_ACEOF 5906#line 5906 "configure" 5907#include "confdefs.h" 5908#include <sys/types.h> 5909 5910int 5911main () 5912{ 5913#ifndef htole32 5914 char *p = (char *) htole32; 5915#endif 5916 5917 ; 5918 return 0; 5919} 5920_ACEOF 5921rm -f conftest.$ac_objext 5922if { (eval echo "$as_me:5922: \"$ac_compile\"") >&5 5923 (eval $ac_compile) 2>&5 5924 ac_status=$? 5925 echo "$as_me:5925: \$? = $ac_status" >&5 5926 (exit $ac_status); } && 5927 { ac_try='test -s conftest.$ac_objext' 5928 { (eval echo "$as_me:5928: \"$ac_try\"") >&5 5929 (eval $ac_try) 2>&5 5930 ac_status=$? 5931 echo "$as_me:5931: \$? = $ac_status" >&5 5932 (exit $ac_status); }; }; then 5933 ac_cv_have_decl_htole32=yes 5934else 5935 echo "$as_me: failed program was:" >&5 5936cat conftest.$ac_ext >&5 5937ac_cv_have_decl_htole32=no 5938fi 5939rm -f conftest.$ac_objext conftest.$ac_ext 5940fi 5941echo "$as_me:5941: result: $ac_cv_have_decl_htole32" >&5 5942echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6 5943if test $ac_cv_have_decl_htole32 = yes; then 5944 5945cat >>confdefs.h <<EOF 5946#define HAVE_DECL_HTOLE32 1 5947EOF 5948 5949else 5950 cat >>confdefs.h <<EOF 5951#define HAVE_DECL_HTOLE32 0 5952EOF 5953 5954fi 5955echo "$as_me:5955: checking whether htole64 is declared" >&5 5956echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6 5957if test "${ac_cv_have_decl_htole64+set}" = set; then 5958 echo $ECHO_N "(cached) $ECHO_C" >&6 5959else 5960 cat >conftest.$ac_ext <<_ACEOF 5961#line 5961 "configure" 5962#include "confdefs.h" 5963#include <sys/types.h> 5964 5965int 5966main () 5967{ 5968#ifndef htole64 5969 char *p = (char *) htole64; 5970#endif 5971 5972 ; 5973 return 0; 5974} 5975_ACEOF 5976rm -f conftest.$ac_objext 5977if { (eval echo "$as_me:5977: \"$ac_compile\"") >&5 5978 (eval $ac_compile) 2>&5 5979 ac_status=$? 5980 echo "$as_me:5980: \$? = $ac_status" >&5 5981 (exit $ac_status); } && 5982 { ac_try='test -s conftest.$ac_objext' 5983 { (eval echo "$as_me:5983: \"$ac_try\"") >&5 5984 (eval $ac_try) 2>&5 5985 ac_status=$? 5986 echo "$as_me:5986: \$? = $ac_status" >&5 5987 (exit $ac_status); }; }; then 5988 ac_cv_have_decl_htole64=yes 5989else 5990 echo "$as_me: failed program was:" >&5 5991cat conftest.$ac_ext >&5 5992ac_cv_have_decl_htole64=no 5993fi 5994rm -f conftest.$ac_objext conftest.$ac_ext 5995fi 5996echo "$as_me:5996: result: $ac_cv_have_decl_htole64" >&5 5997echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6 5998if test $ac_cv_have_decl_htole64 = yes; then 5999 6000cat >>confdefs.h <<EOF 6001#define HAVE_DECL_HTOLE64 1 6002EOF 6003 6004else 6005 cat >>confdefs.h <<EOF 6006#define HAVE_DECL_HTOLE64 0 6007EOF 6008 6009fi 6010echo "$as_me:6010: checking whether be16toh is declared" >&5 6011echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6 6012if test "${ac_cv_have_decl_be16toh+set}" = set; then 6013 echo $ECHO_N "(cached) $ECHO_C" >&6 6014else 6015 cat >conftest.$ac_ext <<_ACEOF 6016#line 6016 "configure" 6017#include "confdefs.h" 6018#include <sys/types.h> 6019 6020int 6021main () 6022{ 6023#ifndef be16toh 6024 char *p = (char *) be16toh; 6025#endif 6026 6027 ; 6028 return 0; 6029} 6030_ACEOF 6031rm -f conftest.$ac_objext 6032if { (eval echo "$as_me:6032: \"$ac_compile\"") >&5 6033 (eval $ac_compile) 2>&5 6034 ac_status=$? 6035 echo "$as_me:6035: \$? = $ac_status" >&5 6036 (exit $ac_status); } && 6037 { ac_try='test -s conftest.$ac_objext' 6038 { (eval echo "$as_me:6038: \"$ac_try\"") >&5 6039 (eval $ac_try) 2>&5 6040 ac_status=$? 6041 echo "$as_me:6041: \$? = $ac_status" >&5 6042 (exit $ac_status); }; }; then 6043 ac_cv_have_decl_be16toh=yes 6044else 6045 echo "$as_me: failed program was:" >&5 6046cat conftest.$ac_ext >&5 6047ac_cv_have_decl_be16toh=no 6048fi 6049rm -f conftest.$ac_objext conftest.$ac_ext 6050fi 6051echo "$as_me:6051: result: $ac_cv_have_decl_be16toh" >&5 6052echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6 6053if test $ac_cv_have_decl_be16toh = yes; then 6054 6055cat >>confdefs.h <<EOF 6056#define HAVE_DECL_BE16TOH 1 6057EOF 6058 6059else 6060 cat >>confdefs.h <<EOF 6061#define HAVE_DECL_BE16TOH 0 6062EOF 6063 6064fi 6065echo "$as_me:6065: checking whether be32toh is declared" >&5 6066echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6 6067if test "${ac_cv_have_decl_be32toh+set}" = set; then 6068 echo $ECHO_N "(cached) $ECHO_C" >&6 6069else 6070 cat >conftest.$ac_ext <<_ACEOF 6071#line 6071 "configure" 6072#include "confdefs.h" 6073#include <sys/types.h> 6074 6075int 6076main () 6077{ 6078#ifndef be32toh 6079 char *p = (char *) be32toh; 6080#endif 6081 6082 ; 6083 return 0; 6084} 6085_ACEOF 6086rm -f conftest.$ac_objext 6087if { (eval echo "$as_me:6087: \"$ac_compile\"") >&5 6088 (eval $ac_compile) 2>&5 6089 ac_status=$? 6090 echo "$as_me:6090: \$? = $ac_status" >&5 6091 (exit $ac_status); } && 6092 { ac_try='test -s conftest.$ac_objext' 6093 { (eval echo "$as_me:6093: \"$ac_try\"") >&5 6094 (eval $ac_try) 2>&5 6095 ac_status=$? 6096 echo "$as_me:6096: \$? = $ac_status" >&5 6097 (exit $ac_status); }; }; then 6098 ac_cv_have_decl_be32toh=yes 6099else 6100 echo "$as_me: failed program was:" >&5 6101cat conftest.$ac_ext >&5 6102ac_cv_have_decl_be32toh=no 6103fi 6104rm -f conftest.$ac_objext conftest.$ac_ext 6105fi 6106echo "$as_me:6106: result: $ac_cv_have_decl_be32toh" >&5 6107echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6 6108if test $ac_cv_have_decl_be32toh = yes; then 6109 6110cat >>confdefs.h <<EOF 6111#define HAVE_DECL_BE32TOH 1 6112EOF 6113 6114else 6115 cat >>confdefs.h <<EOF 6116#define HAVE_DECL_BE32TOH 0 6117EOF 6118 6119fi 6120echo "$as_me:6120: checking whether be64toh is declared" >&5 6121echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6 6122if test "${ac_cv_have_decl_be64toh+set}" = set; then 6123 echo $ECHO_N "(cached) $ECHO_C" >&6 6124else 6125 cat >conftest.$ac_ext <<_ACEOF 6126#line 6126 "configure" 6127#include "confdefs.h" 6128#include <sys/types.h> 6129 6130int 6131main () 6132{ 6133#ifndef be64toh 6134 char *p = (char *) be64toh; 6135#endif 6136 6137 ; 6138 return 0; 6139} 6140_ACEOF 6141rm -f conftest.$ac_objext 6142if { (eval echo "$as_me:6142: \"$ac_compile\"") >&5 6143 (eval $ac_compile) 2>&5 6144 ac_status=$? 6145 echo "$as_me:6145: \$? = $ac_status" >&5 6146 (exit $ac_status); } && 6147 { ac_try='test -s conftest.$ac_objext' 6148 { (eval echo "$as_me:6148: \"$ac_try\"") >&5 6149 (eval $ac_try) 2>&5 6150 ac_status=$? 6151 echo "$as_me:6151: \$? = $ac_status" >&5 6152 (exit $ac_status); }; }; then 6153 ac_cv_have_decl_be64toh=yes 6154else 6155 echo "$as_me: failed program was:" >&5 6156cat conftest.$ac_ext >&5 6157ac_cv_have_decl_be64toh=no 6158fi 6159rm -f conftest.$ac_objext conftest.$ac_ext 6160fi 6161echo "$as_me:6161: result: $ac_cv_have_decl_be64toh" >&5 6162echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6 6163if test $ac_cv_have_decl_be64toh = yes; then 6164 6165cat >>confdefs.h <<EOF 6166#define HAVE_DECL_BE64TOH 1 6167EOF 6168 6169else 6170 cat >>confdefs.h <<EOF 6171#define HAVE_DECL_BE64TOH 0 6172EOF 6173 6174fi 6175echo "$as_me:6175: checking whether le16toh is declared" >&5 6176echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6 6177if test "${ac_cv_have_decl_le16toh+set}" = set; then 6178 echo $ECHO_N "(cached) $ECHO_C" >&6 6179else 6180 cat >conftest.$ac_ext <<_ACEOF 6181#line 6181 "configure" 6182#include "confdefs.h" 6183#include <sys/types.h> 6184 6185int 6186main () 6187{ 6188#ifndef le16toh 6189 char *p = (char *) le16toh; 6190#endif 6191 6192 ; 6193 return 0; 6194} 6195_ACEOF 6196rm -f conftest.$ac_objext 6197if { (eval echo "$as_me:6197: \"$ac_compile\"") >&5 6198 (eval $ac_compile) 2>&5 6199 ac_status=$? 6200 echo "$as_me:6200: \$? = $ac_status" >&5 6201 (exit $ac_status); } && 6202 { ac_try='test -s conftest.$ac_objext' 6203 { (eval echo "$as_me:6203: \"$ac_try\"") >&5 6204 (eval $ac_try) 2>&5 6205 ac_status=$? 6206 echo "$as_me:6206: \$? = $ac_status" >&5 6207 (exit $ac_status); }; }; then 6208 ac_cv_have_decl_le16toh=yes 6209else 6210 echo "$as_me: failed program was:" >&5 6211cat conftest.$ac_ext >&5 6212ac_cv_have_decl_le16toh=no 6213fi 6214rm -f conftest.$ac_objext conftest.$ac_ext 6215fi 6216echo "$as_me:6216: result: $ac_cv_have_decl_le16toh" >&5 6217echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6 6218if test $ac_cv_have_decl_le16toh = yes; then 6219 6220cat >>confdefs.h <<EOF 6221#define HAVE_DECL_LE16TOH 1 6222EOF 6223 6224else 6225 cat >>confdefs.h <<EOF 6226#define HAVE_DECL_LE16TOH 0 6227EOF 6228 6229fi 6230echo "$as_me:6230: checking whether le32toh is declared" >&5 6231echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6 6232if test "${ac_cv_have_decl_le32toh+set}" = set; then 6233 echo $ECHO_N "(cached) $ECHO_C" >&6 6234else 6235 cat >conftest.$ac_ext <<_ACEOF 6236#line 6236 "configure" 6237#include "confdefs.h" 6238#include <sys/types.h> 6239 6240int 6241main () 6242{ 6243#ifndef le32toh 6244 char *p = (char *) le32toh; 6245#endif 6246 6247 ; 6248 return 0; 6249} 6250_ACEOF 6251rm -f conftest.$ac_objext 6252if { (eval echo "$as_me:6252: \"$ac_compile\"") >&5 6253 (eval $ac_compile) 2>&5 6254 ac_status=$? 6255 echo "$as_me:6255: \$? = $ac_status" >&5 6256 (exit $ac_status); } && 6257 { ac_try='test -s conftest.$ac_objext' 6258 { (eval echo "$as_me:6258: \"$ac_try\"") >&5 6259 (eval $ac_try) 2>&5 6260 ac_status=$? 6261 echo "$as_me:6261: \$? = $ac_status" >&5 6262 (exit $ac_status); }; }; then 6263 ac_cv_have_decl_le32toh=yes 6264else 6265 echo "$as_me: failed program was:" >&5 6266cat conftest.$ac_ext >&5 6267ac_cv_have_decl_le32toh=no 6268fi 6269rm -f conftest.$ac_objext conftest.$ac_ext 6270fi 6271echo "$as_me:6271: result: $ac_cv_have_decl_le32toh" >&5 6272echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6 6273if test $ac_cv_have_decl_le32toh = yes; then 6274 6275cat >>confdefs.h <<EOF 6276#define HAVE_DECL_LE32TOH 1 6277EOF 6278 6279else 6280 cat >>confdefs.h <<EOF 6281#define HAVE_DECL_LE32TOH 0 6282EOF 6283 6284fi 6285echo "$as_me:6285: checking whether le64toh is declared" >&5 6286echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6 6287if test "${ac_cv_have_decl_le64toh+set}" = set; then 6288 echo $ECHO_N "(cached) $ECHO_C" >&6 6289else 6290 cat >conftest.$ac_ext <<_ACEOF 6291#line 6291 "configure" 6292#include "confdefs.h" 6293#include <sys/types.h> 6294 6295int 6296main () 6297{ 6298#ifndef le64toh 6299 char *p = (char *) le64toh; 6300#endif 6301 6302 ; 6303 return 0; 6304} 6305_ACEOF 6306rm -f conftest.$ac_objext 6307if { (eval echo "$as_me:6307: \"$ac_compile\"") >&5 6308 (eval $ac_compile) 2>&5 6309 ac_status=$? 6310 echo "$as_me:6310: \$? = $ac_status" >&5 6311 (exit $ac_status); } && 6312 { ac_try='test -s conftest.$ac_objext' 6313 { (eval echo "$as_me:6313: \"$ac_try\"") >&5 6314 (eval $ac_try) 2>&5 6315 ac_status=$? 6316 echo "$as_me:6316: \$? = $ac_status" >&5 6317 (exit $ac_status); }; }; then 6318 ac_cv_have_decl_le64toh=yes 6319else 6320 echo "$as_me: failed program was:" >&5 6321cat conftest.$ac_ext >&5 6322ac_cv_have_decl_le64toh=no 6323fi 6324rm -f conftest.$ac_objext conftest.$ac_ext 6325fi 6326echo "$as_me:6326: result: $ac_cv_have_decl_le64toh" >&5 6327echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6 6328if test $ac_cv_have_decl_le64toh = yes; then 6329 6330cat >>confdefs.h <<EOF 6331#define HAVE_DECL_LE64TOH 1 6332EOF 6333 6334else 6335 cat >>confdefs.h <<EOF 6336#define HAVE_DECL_LE64TOH 0 6337EOF 6338 6339fi 6340 6341echo "$as_me:6341: checking whether bswap16 is declared" >&5 6342echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6 6343if test "${ac_cv_have_decl_bswap16+set}" = set; then 6344 echo $ECHO_N "(cached) $ECHO_C" >&6 6345else 6346 cat >conftest.$ac_ext <<_ACEOF 6347#line 6347 "configure" 6348#include "confdefs.h" 6349#include <machine/bswap.h> 6350 6351int 6352main () 6353{ 6354#ifndef bswap16 6355 char *p = (char *) bswap16; 6356#endif 6357 6358 ; 6359 return 0; 6360} 6361_ACEOF 6362rm -f conftest.$ac_objext 6363if { (eval echo "$as_me:6363: \"$ac_compile\"") >&5 6364 (eval $ac_compile) 2>&5 6365 ac_status=$? 6366 echo "$as_me:6366: \$? = $ac_status" >&5 6367 (exit $ac_status); } && 6368 { ac_try='test -s conftest.$ac_objext' 6369 { (eval echo "$as_me:6369: \"$ac_try\"") >&5 6370 (eval $ac_try) 2>&5 6371 ac_status=$? 6372 echo "$as_me:6372: \$? = $ac_status" >&5 6373 (exit $ac_status); }; }; then 6374 ac_cv_have_decl_bswap16=yes 6375else 6376 echo "$as_me: failed program was:" >&5 6377cat conftest.$ac_ext >&5 6378ac_cv_have_decl_bswap16=no 6379fi 6380rm -f conftest.$ac_objext conftest.$ac_ext 6381fi 6382echo "$as_me:6382: result: $ac_cv_have_decl_bswap16" >&5 6383echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6 6384if test $ac_cv_have_decl_bswap16 = yes; then 6385 6386cat >>confdefs.h <<EOF 6387#define HAVE_DECL_BSWAP16 1 6388EOF 6389 6390else 6391 cat >>confdefs.h <<EOF 6392#define HAVE_DECL_BSWAP16 0 6393EOF 6394 6395fi 6396echo "$as_me:6396: checking whether bswap32 is declared" >&5 6397echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6 6398if test "${ac_cv_have_decl_bswap32+set}" = set; then 6399 echo $ECHO_N "(cached) $ECHO_C" >&6 6400else 6401 cat >conftest.$ac_ext <<_ACEOF 6402#line 6402 "configure" 6403#include "confdefs.h" 6404#include <machine/bswap.h> 6405 6406int 6407main () 6408{ 6409#ifndef bswap32 6410 char *p = (char *) bswap32; 6411#endif 6412 6413 ; 6414 return 0; 6415} 6416_ACEOF 6417rm -f conftest.$ac_objext 6418if { (eval echo "$as_me:6418: \"$ac_compile\"") >&5 6419 (eval $ac_compile) 2>&5 6420 ac_status=$? 6421 echo "$as_me:6421: \$? = $ac_status" >&5 6422 (exit $ac_status); } && 6423 { ac_try='test -s conftest.$ac_objext' 6424 { (eval echo "$as_me:6424: \"$ac_try\"") >&5 6425 (eval $ac_try) 2>&5 6426 ac_status=$? 6427 echo "$as_me:6427: \$? = $ac_status" >&5 6428 (exit $ac_status); }; }; then 6429 ac_cv_have_decl_bswap32=yes 6430else 6431 echo "$as_me: failed program was:" >&5 6432cat conftest.$ac_ext >&5 6433ac_cv_have_decl_bswap32=no 6434fi 6435rm -f conftest.$ac_objext conftest.$ac_ext 6436fi 6437echo "$as_me:6437: result: $ac_cv_have_decl_bswap32" >&5 6438echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6 6439if test $ac_cv_have_decl_bswap32 = yes; then 6440 6441cat >>confdefs.h <<EOF 6442#define HAVE_DECL_BSWAP32 1 6443EOF 6444 6445else 6446 cat >>confdefs.h <<EOF 6447#define HAVE_DECL_BSWAP32 0 6448EOF 6449 6450fi 6451echo "$as_me:6451: checking whether bswap64 is declared" >&5 6452echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6 6453if test "${ac_cv_have_decl_bswap64+set}" = set; then 6454 echo $ECHO_N "(cached) $ECHO_C" >&6 6455else 6456 cat >conftest.$ac_ext <<_ACEOF 6457#line 6457 "configure" 6458#include "confdefs.h" 6459#include <machine/bswap.h> 6460 6461int 6462main () 6463{ 6464#ifndef bswap64 6465 char *p = (char *) bswap64; 6466#endif 6467 6468 ; 6469 return 0; 6470} 6471_ACEOF 6472rm -f conftest.$ac_objext 6473if { (eval echo "$as_me:6473: \"$ac_compile\"") >&5 6474 (eval $ac_compile) 2>&5 6475 ac_status=$? 6476 echo "$as_me:6476: \$? = $ac_status" >&5 6477 (exit $ac_status); } && 6478 { ac_try='test -s conftest.$ac_objext' 6479 { (eval echo "$as_me:6479: \"$ac_try\"") >&5 6480 (eval $ac_try) 2>&5 6481 ac_status=$? 6482 echo "$as_me:6482: \$? = $ac_status" >&5 6483 (exit $ac_status); }; }; then 6484 ac_cv_have_decl_bswap64=yes 6485else 6486 echo "$as_me: failed program was:" >&5 6487cat conftest.$ac_ext >&5 6488ac_cv_have_decl_bswap64=no 6489fi 6490rm -f conftest.$ac_objext conftest.$ac_ext 6491fi 6492echo "$as_me:6492: result: $ac_cv_have_decl_bswap64" >&5 6493echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6 6494if test $ac_cv_have_decl_bswap64 = yes; then 6495 6496cat >>confdefs.h <<EOF 6497#define HAVE_DECL_BSWAP64 1 6498EOF 6499 6500else 6501 cat >>confdefs.h <<EOF 6502#define HAVE_DECL_BSWAP64 0 6503EOF 6504 6505fi 6506 6507echo "$as_me:6507: checking whether be16enc is declared" >&5 6508echo $ECHO_N "checking whether be16enc is declared... $ECHO_C" >&6 6509if test "${ac_cv_have_decl_be16enc+set}" = set; then 6510 echo $ECHO_N "(cached) $ECHO_C" >&6 6511else 6512 cat >conftest.$ac_ext <<_ACEOF 6513#line 6513 "configure" 6514#include "confdefs.h" 6515#include <sys/endian.h> 6516 6517int 6518main () 6519{ 6520#ifndef be16enc 6521 char *p = (char *) be16enc; 6522#endif 6523 6524 ; 6525 return 0; 6526} 6527_ACEOF 6528rm -f conftest.$ac_objext 6529if { (eval echo "$as_me:6529: \"$ac_compile\"") >&5 6530 (eval $ac_compile) 2>&5 6531 ac_status=$? 6532 echo "$as_me:6532: \$? = $ac_status" >&5 6533 (exit $ac_status); } && 6534 { ac_try='test -s conftest.$ac_objext' 6535 { (eval echo "$as_me:6535: \"$ac_try\"") >&5 6536 (eval $ac_try) 2>&5 6537 ac_status=$? 6538 echo "$as_me:6538: \$? = $ac_status" >&5 6539 (exit $ac_status); }; }; then 6540 ac_cv_have_decl_be16enc=yes 6541else 6542 echo "$as_me: failed program was:" >&5 6543cat conftest.$ac_ext >&5 6544ac_cv_have_decl_be16enc=no 6545fi 6546rm -f conftest.$ac_objext conftest.$ac_ext 6547fi 6548echo "$as_me:6548: result: $ac_cv_have_decl_be16enc" >&5 6549echo "${ECHO_T}$ac_cv_have_decl_be16enc" >&6 6550if test $ac_cv_have_decl_be16enc = yes; then 6551 6552cat >>confdefs.h <<EOF 6553#define HAVE_DECL_BE16ENC 1 6554EOF 6555 6556else 6557 cat >>confdefs.h <<EOF 6558#define HAVE_DECL_BE16ENC 0 6559EOF 6560 6561fi 6562echo "$as_me:6562: checking whether le16enc is declared" >&5 6563echo $ECHO_N "checking whether le16enc is declared... $ECHO_C" >&6 6564if test "${ac_cv_have_decl_le16enc+set}" = set; then 6565 echo $ECHO_N "(cached) $ECHO_C" >&6 6566else 6567 cat >conftest.$ac_ext <<_ACEOF 6568#line 6568 "configure" 6569#include "confdefs.h" 6570#include <sys/endian.h> 6571 6572int 6573main () 6574{ 6575#ifndef le16enc 6576 char *p = (char *) le16enc; 6577#endif 6578 6579 ; 6580 return 0; 6581} 6582_ACEOF 6583rm -f conftest.$ac_objext 6584if { (eval echo "$as_me:6584: \"$ac_compile\"") >&5 6585 (eval $ac_compile) 2>&5 6586 ac_status=$? 6587 echo "$as_me:6587: \$? = $ac_status" >&5 6588 (exit $ac_status); } && 6589 { ac_try='test -s conftest.$ac_objext' 6590 { (eval echo "$as_me:6590: \"$ac_try\"") >&5 6591 (eval $ac_try) 2>&5 6592 ac_status=$? 6593 echo "$as_me:6593: \$? = $ac_status" >&5 6594 (exit $ac_status); }; }; then 6595 ac_cv_have_decl_le16enc=yes 6596else 6597 echo "$as_me: failed program was:" >&5 6598cat conftest.$ac_ext >&5 6599ac_cv_have_decl_le16enc=no 6600fi 6601rm -f conftest.$ac_objext conftest.$ac_ext 6602fi 6603echo "$as_me:6603: result: $ac_cv_have_decl_le16enc" >&5 6604echo "${ECHO_T}$ac_cv_have_decl_le16enc" >&6 6605if test $ac_cv_have_decl_le16enc = yes; then 6606 6607cat >>confdefs.h <<EOF 6608#define HAVE_DECL_LE16ENC 1 6609EOF 6610 6611else 6612 cat >>confdefs.h <<EOF 6613#define HAVE_DECL_LE16ENC 0 6614EOF 6615 6616fi 6617echo "$as_me:6617: checking whether be16dec is declared" >&5 6618echo $ECHO_N "checking whether be16dec is declared... $ECHO_C" >&6 6619if test "${ac_cv_have_decl_be16dec+set}" = set; then 6620 echo $ECHO_N "(cached) $ECHO_C" >&6 6621else 6622 cat >conftest.$ac_ext <<_ACEOF 6623#line 6623 "configure" 6624#include "confdefs.h" 6625#include <sys/endian.h> 6626 6627int 6628main () 6629{ 6630#ifndef be16dec 6631 char *p = (char *) be16dec; 6632#endif 6633 6634 ; 6635 return 0; 6636} 6637_ACEOF 6638rm -f conftest.$ac_objext 6639if { (eval echo "$as_me:6639: \"$ac_compile\"") >&5 6640 (eval $ac_compile) 2>&5 6641 ac_status=$? 6642 echo "$as_me:6642: \$? = $ac_status" >&5 6643 (exit $ac_status); } && 6644 { ac_try='test -s conftest.$ac_objext' 6645 { (eval echo "$as_me:6645: \"$ac_try\"") >&5 6646 (eval $ac_try) 2>&5 6647 ac_status=$? 6648 echo "$as_me:6648: \$? = $ac_status" >&5 6649 (exit $ac_status); }; }; then 6650 ac_cv_have_decl_be16dec=yes 6651else 6652 echo "$as_me: failed program was:" >&5 6653cat conftest.$ac_ext >&5 6654ac_cv_have_decl_be16dec=no 6655fi 6656rm -f conftest.$ac_objext conftest.$ac_ext 6657fi 6658echo "$as_me:6658: result: $ac_cv_have_decl_be16dec" >&5 6659echo "${ECHO_T}$ac_cv_have_decl_be16dec" >&6 6660if test $ac_cv_have_decl_be16dec = yes; then 6661 6662cat >>confdefs.h <<EOF 6663#define HAVE_DECL_BE16DEC 1 6664EOF 6665 6666else 6667 cat >>confdefs.h <<EOF 6668#define HAVE_DECL_BE16DEC 0 6669EOF 6670 6671fi 6672echo "$as_me:6672: checking whether le16dec is declared" >&5 6673echo $ECHO_N "checking whether le16dec is declared... $ECHO_C" >&6 6674if test "${ac_cv_have_decl_le16dec+set}" = set; then 6675 echo $ECHO_N "(cached) $ECHO_C" >&6 6676else 6677 cat >conftest.$ac_ext <<_ACEOF 6678#line 6678 "configure" 6679#include "confdefs.h" 6680#include <sys/endian.h> 6681 6682int 6683main () 6684{ 6685#ifndef le16dec 6686 char *p = (char *) le16dec; 6687#endif 6688 6689 ; 6690 return 0; 6691} 6692_ACEOF 6693rm -f conftest.$ac_objext 6694if { (eval echo "$as_me:6694: \"$ac_compile\"") >&5 6695 (eval $ac_compile) 2>&5 6696 ac_status=$? 6697 echo "$as_me:6697: \$? = $ac_status" >&5 6698 (exit $ac_status); } && 6699 { ac_try='test -s conftest.$ac_objext' 6700 { (eval echo "$as_me:6700: \"$ac_try\"") >&5 6701 (eval $ac_try) 2>&5 6702 ac_status=$? 6703 echo "$as_me:6703: \$? = $ac_status" >&5 6704 (exit $ac_status); }; }; then 6705 ac_cv_have_decl_le16dec=yes 6706else 6707 echo "$as_me: failed program was:" >&5 6708cat conftest.$ac_ext >&5 6709ac_cv_have_decl_le16dec=no 6710fi 6711rm -f conftest.$ac_objext conftest.$ac_ext 6712fi 6713echo "$as_me:6713: result: $ac_cv_have_decl_le16dec" >&5 6714echo "${ECHO_T}$ac_cv_have_decl_le16dec" >&6 6715if test $ac_cv_have_decl_le16dec = yes; then 6716 6717cat >>confdefs.h <<EOF 6718#define HAVE_DECL_LE16DEC 1 6719EOF 6720 6721else 6722 cat >>confdefs.h <<EOF 6723#define HAVE_DECL_LE16DEC 0 6724EOF 6725 6726fi 6727echo "$as_me:6727: checking whether be32enc is declared" >&5 6728echo $ECHO_N "checking whether be32enc is declared... $ECHO_C" >&6 6729if test "${ac_cv_have_decl_be32enc+set}" = set; then 6730 echo $ECHO_N "(cached) $ECHO_C" >&6 6731else 6732 cat >conftest.$ac_ext <<_ACEOF 6733#line 6733 "configure" 6734#include "confdefs.h" 6735#include <sys/endian.h> 6736 6737int 6738main () 6739{ 6740#ifndef be32enc 6741 char *p = (char *) be32enc; 6742#endif 6743 6744 ; 6745 return 0; 6746} 6747_ACEOF 6748rm -f conftest.$ac_objext 6749if { (eval echo "$as_me:6749: \"$ac_compile\"") >&5 6750 (eval $ac_compile) 2>&5 6751 ac_status=$? 6752 echo "$as_me:6752: \$? = $ac_status" >&5 6753 (exit $ac_status); } && 6754 { ac_try='test -s conftest.$ac_objext' 6755 { (eval echo "$as_me:6755: \"$ac_try\"") >&5 6756 (eval $ac_try) 2>&5 6757 ac_status=$? 6758 echo "$as_me:6758: \$? = $ac_status" >&5 6759 (exit $ac_status); }; }; then 6760 ac_cv_have_decl_be32enc=yes 6761else 6762 echo "$as_me: failed program was:" >&5 6763cat conftest.$ac_ext >&5 6764ac_cv_have_decl_be32enc=no 6765fi 6766rm -f conftest.$ac_objext conftest.$ac_ext 6767fi 6768echo "$as_me:6768: result: $ac_cv_have_decl_be32enc" >&5 6769echo "${ECHO_T}$ac_cv_have_decl_be32enc" >&6 6770if test $ac_cv_have_decl_be32enc = yes; then 6771 6772cat >>confdefs.h <<EOF 6773#define HAVE_DECL_BE32ENC 1 6774EOF 6775 6776else 6777 cat >>confdefs.h <<EOF 6778#define HAVE_DECL_BE32ENC 0 6779EOF 6780 6781fi 6782echo "$as_me:6782: checking whether le32enc is declared" >&5 6783echo $ECHO_N "checking whether le32enc is declared... $ECHO_C" >&6 6784if test "${ac_cv_have_decl_le32enc+set}" = set; then 6785 echo $ECHO_N "(cached) $ECHO_C" >&6 6786else 6787 cat >conftest.$ac_ext <<_ACEOF 6788#line 6788 "configure" 6789#include "confdefs.h" 6790#include <sys/endian.h> 6791 6792int 6793main () 6794{ 6795#ifndef le32enc 6796 char *p = (char *) le32enc; 6797#endif 6798 6799 ; 6800 return 0; 6801} 6802_ACEOF 6803rm -f conftest.$ac_objext 6804if { (eval echo "$as_me:6804: \"$ac_compile\"") >&5 6805 (eval $ac_compile) 2>&5 6806 ac_status=$? 6807 echo "$as_me:6807: \$? = $ac_status" >&5 6808 (exit $ac_status); } && 6809 { ac_try='test -s conftest.$ac_objext' 6810 { (eval echo "$as_me:6810: \"$ac_try\"") >&5 6811 (eval $ac_try) 2>&5 6812 ac_status=$? 6813 echo "$as_me:6813: \$? = $ac_status" >&5 6814 (exit $ac_status); }; }; then 6815 ac_cv_have_decl_le32enc=yes 6816else 6817 echo "$as_me: failed program was:" >&5 6818cat conftest.$ac_ext >&5 6819ac_cv_have_decl_le32enc=no 6820fi 6821rm -f conftest.$ac_objext conftest.$ac_ext 6822fi 6823echo "$as_me:6823: result: $ac_cv_have_decl_le32enc" >&5 6824echo "${ECHO_T}$ac_cv_have_decl_le32enc" >&6 6825if test $ac_cv_have_decl_le32enc = yes; then 6826 6827cat >>confdefs.h <<EOF 6828#define HAVE_DECL_LE32ENC 1 6829EOF 6830 6831else 6832 cat >>confdefs.h <<EOF 6833#define HAVE_DECL_LE32ENC 0 6834EOF 6835 6836fi 6837echo "$as_me:6837: checking whether be32dec is declared" >&5 6838echo $ECHO_N "checking whether be32dec is declared... $ECHO_C" >&6 6839if test "${ac_cv_have_decl_be32dec+set}" = set; then 6840 echo $ECHO_N "(cached) $ECHO_C" >&6 6841else 6842 cat >conftest.$ac_ext <<_ACEOF 6843#line 6843 "configure" 6844#include "confdefs.h" 6845#include <sys/endian.h> 6846 6847int 6848main () 6849{ 6850#ifndef be32dec 6851 char *p = (char *) be32dec; 6852#endif 6853 6854 ; 6855 return 0; 6856} 6857_ACEOF 6858rm -f conftest.$ac_objext 6859if { (eval echo "$as_me:6859: \"$ac_compile\"") >&5 6860 (eval $ac_compile) 2>&5 6861 ac_status=$? 6862 echo "$as_me:6862: \$? = $ac_status" >&5 6863 (exit $ac_status); } && 6864 { ac_try='test -s conftest.$ac_objext' 6865 { (eval echo "$as_me:6865: \"$ac_try\"") >&5 6866 (eval $ac_try) 2>&5 6867 ac_status=$? 6868 echo "$as_me:6868: \$? = $ac_status" >&5 6869 (exit $ac_status); }; }; then 6870 ac_cv_have_decl_be32dec=yes 6871else 6872 echo "$as_me: failed program was:" >&5 6873cat conftest.$ac_ext >&5 6874ac_cv_have_decl_be32dec=no 6875fi 6876rm -f conftest.$ac_objext conftest.$ac_ext 6877fi 6878echo "$as_me:6878: result: $ac_cv_have_decl_be32dec" >&5 6879echo "${ECHO_T}$ac_cv_have_decl_be32dec" >&6 6880if test $ac_cv_have_decl_be32dec = yes; then 6881 6882cat >>confdefs.h <<EOF 6883#define HAVE_DECL_BE32DEC 1 6884EOF 6885 6886else 6887 cat >>confdefs.h <<EOF 6888#define HAVE_DECL_BE32DEC 0 6889EOF 6890 6891fi 6892echo "$as_me:6892: checking whether le32dec is declared" >&5 6893echo $ECHO_N "checking whether le32dec is declared... $ECHO_C" >&6 6894if test "${ac_cv_have_decl_le32dec+set}" = set; then 6895 echo $ECHO_N "(cached) $ECHO_C" >&6 6896else 6897 cat >conftest.$ac_ext <<_ACEOF 6898#line 6898 "configure" 6899#include "confdefs.h" 6900#include <sys/endian.h> 6901 6902int 6903main () 6904{ 6905#ifndef le32dec 6906 char *p = (char *) le32dec; 6907#endif 6908 6909 ; 6910 return 0; 6911} 6912_ACEOF 6913rm -f conftest.$ac_objext 6914if { (eval echo "$as_me:6914: \"$ac_compile\"") >&5 6915 (eval $ac_compile) 2>&5 6916 ac_status=$? 6917 echo "$as_me:6917: \$? = $ac_status" >&5 6918 (exit $ac_status); } && 6919 { ac_try='test -s conftest.$ac_objext' 6920 { (eval echo "$as_me:6920: \"$ac_try\"") >&5 6921 (eval $ac_try) 2>&5 6922 ac_status=$? 6923 echo "$as_me:6923: \$? = $ac_status" >&5 6924 (exit $ac_status); }; }; then 6925 ac_cv_have_decl_le32dec=yes 6926else 6927 echo "$as_me: failed program was:" >&5 6928cat conftest.$ac_ext >&5 6929ac_cv_have_decl_le32dec=no 6930fi 6931rm -f conftest.$ac_objext conftest.$ac_ext 6932fi 6933echo "$as_me:6933: result: $ac_cv_have_decl_le32dec" >&5 6934echo "${ECHO_T}$ac_cv_have_decl_le32dec" >&6 6935if test $ac_cv_have_decl_le32dec = yes; then 6936 6937cat >>confdefs.h <<EOF 6938#define HAVE_DECL_LE32DEC 1 6939EOF 6940 6941else 6942 cat >>confdefs.h <<EOF 6943#define HAVE_DECL_LE32DEC 0 6944EOF 6945 6946fi 6947echo "$as_me:6947: checking whether be64enc is declared" >&5 6948echo $ECHO_N "checking whether be64enc is declared... $ECHO_C" >&6 6949if test "${ac_cv_have_decl_be64enc+set}" = set; then 6950 echo $ECHO_N "(cached) $ECHO_C" >&6 6951else 6952 cat >conftest.$ac_ext <<_ACEOF 6953#line 6953 "configure" 6954#include "confdefs.h" 6955#include <sys/endian.h> 6956 6957int 6958main () 6959{ 6960#ifndef be64enc 6961 char *p = (char *) be64enc; 6962#endif 6963 6964 ; 6965 return 0; 6966} 6967_ACEOF 6968rm -f conftest.$ac_objext 6969if { (eval echo "$as_me:6969: \"$ac_compile\"") >&5 6970 (eval $ac_compile) 2>&5 6971 ac_status=$? 6972 echo "$as_me:6972: \$? = $ac_status" >&5 6973 (exit $ac_status); } && 6974 { ac_try='test -s conftest.$ac_objext' 6975 { (eval echo "$as_me:6975: \"$ac_try\"") >&5 6976 (eval $ac_try) 2>&5 6977 ac_status=$? 6978 echo "$as_me:6978: \$? = $ac_status" >&5 6979 (exit $ac_status); }; }; then 6980 ac_cv_have_decl_be64enc=yes 6981else 6982 echo "$as_me: failed program was:" >&5 6983cat conftest.$ac_ext >&5 6984ac_cv_have_decl_be64enc=no 6985fi 6986rm -f conftest.$ac_objext conftest.$ac_ext 6987fi 6988echo "$as_me:6988: result: $ac_cv_have_decl_be64enc" >&5 6989echo "${ECHO_T}$ac_cv_have_decl_be64enc" >&6 6990if test $ac_cv_have_decl_be64enc = yes; then 6991 6992cat >>confdefs.h <<EOF 6993#define HAVE_DECL_BE64ENC 1 6994EOF 6995 6996else 6997 cat >>confdefs.h <<EOF 6998#define HAVE_DECL_BE64ENC 0 6999EOF 7000 7001fi 7002echo "$as_me:7002: checking whether le64enc is declared" >&5 7003echo $ECHO_N "checking whether le64enc is declared... $ECHO_C" >&6 7004if test "${ac_cv_have_decl_le64enc+set}" = set; then 7005 echo $ECHO_N "(cached) $ECHO_C" >&6 7006else 7007 cat >conftest.$ac_ext <<_ACEOF 7008#line 7008 "configure" 7009#include "confdefs.h" 7010#include <sys/endian.h> 7011 7012int 7013main () 7014{ 7015#ifndef le64enc 7016 char *p = (char *) le64enc; 7017#endif 7018 7019 ; 7020 return 0; 7021} 7022_ACEOF 7023rm -f conftest.$ac_objext 7024if { (eval echo "$as_me:7024: \"$ac_compile\"") >&5 7025 (eval $ac_compile) 2>&5 7026 ac_status=$? 7027 echo "$as_me:7027: \$? = $ac_status" >&5 7028 (exit $ac_status); } && 7029 { ac_try='test -s conftest.$ac_objext' 7030 { (eval echo "$as_me:7030: \"$ac_try\"") >&5 7031 (eval $ac_try) 2>&5 7032 ac_status=$? 7033 echo "$as_me:7033: \$? = $ac_status" >&5 7034 (exit $ac_status); }; }; then 7035 ac_cv_have_decl_le64enc=yes 7036else 7037 echo "$as_me: failed program was:" >&5 7038cat conftest.$ac_ext >&5 7039ac_cv_have_decl_le64enc=no 7040fi 7041rm -f conftest.$ac_objext conftest.$ac_ext 7042fi 7043echo "$as_me:7043: result: $ac_cv_have_decl_le64enc" >&5 7044echo "${ECHO_T}$ac_cv_have_decl_le64enc" >&6 7045if test $ac_cv_have_decl_le64enc = yes; then 7046 7047cat >>confdefs.h <<EOF 7048#define HAVE_DECL_LE64ENC 1 7049EOF 7050 7051else 7052 cat >>confdefs.h <<EOF 7053#define HAVE_DECL_LE64ENC 0 7054EOF 7055 7056fi 7057echo "$as_me:7057: checking whether be64dec is declared" >&5 7058echo $ECHO_N "checking whether be64dec is declared... $ECHO_C" >&6 7059if test "${ac_cv_have_decl_be64dec+set}" = set; then 7060 echo $ECHO_N "(cached) $ECHO_C" >&6 7061else 7062 cat >conftest.$ac_ext <<_ACEOF 7063#line 7063 "configure" 7064#include "confdefs.h" 7065#include <sys/endian.h> 7066 7067int 7068main () 7069{ 7070#ifndef be64dec 7071 char *p = (char *) be64dec; 7072#endif 7073 7074 ; 7075 return 0; 7076} 7077_ACEOF 7078rm -f conftest.$ac_objext 7079if { (eval echo "$as_me:7079: \"$ac_compile\"") >&5 7080 (eval $ac_compile) 2>&5 7081 ac_status=$? 7082 echo "$as_me:7082: \$? = $ac_status" >&5 7083 (exit $ac_status); } && 7084 { ac_try='test -s conftest.$ac_objext' 7085 { (eval echo "$as_me:7085: \"$ac_try\"") >&5 7086 (eval $ac_try) 2>&5 7087 ac_status=$? 7088 echo "$as_me:7088: \$? = $ac_status" >&5 7089 (exit $ac_status); }; }; then 7090 ac_cv_have_decl_be64dec=yes 7091else 7092 echo "$as_me: failed program was:" >&5 7093cat conftest.$ac_ext >&5 7094ac_cv_have_decl_be64dec=no 7095fi 7096rm -f conftest.$ac_objext conftest.$ac_ext 7097fi 7098echo "$as_me:7098: result: $ac_cv_have_decl_be64dec" >&5 7099echo "${ECHO_T}$ac_cv_have_decl_be64dec" >&6 7100if test $ac_cv_have_decl_be64dec = yes; then 7101 7102cat >>confdefs.h <<EOF 7103#define HAVE_DECL_BE64DEC 1 7104EOF 7105 7106else 7107 cat >>confdefs.h <<EOF 7108#define HAVE_DECL_BE64DEC 0 7109EOF 7110 7111fi 7112echo "$as_me:7112: checking whether le64dec is declared" >&5 7113echo $ECHO_N "checking whether le64dec is declared... $ECHO_C" >&6 7114if test "${ac_cv_have_decl_le64dec+set}" = set; then 7115 echo $ECHO_N "(cached) $ECHO_C" >&6 7116else 7117 cat >conftest.$ac_ext <<_ACEOF 7118#line 7118 "configure" 7119#include "confdefs.h" 7120#include <sys/endian.h> 7121 7122int 7123main () 7124{ 7125#ifndef le64dec 7126 char *p = (char *) le64dec; 7127#endif 7128 7129 ; 7130 return 0; 7131} 7132_ACEOF 7133rm -f conftest.$ac_objext 7134if { (eval echo "$as_me:7134: \"$ac_compile\"") >&5 7135 (eval $ac_compile) 2>&5 7136 ac_status=$? 7137 echo "$as_me:7137: \$? = $ac_status" >&5 7138 (exit $ac_status); } && 7139 { ac_try='test -s conftest.$ac_objext' 7140 { (eval echo "$as_me:7140: \"$ac_try\"") >&5 7141 (eval $ac_try) 2>&5 7142 ac_status=$? 7143 echo "$as_me:7143: \$? = $ac_status" >&5 7144 (exit $ac_status); }; }; then 7145 ac_cv_have_decl_le64dec=yes 7146else 7147 echo "$as_me: failed program was:" >&5 7148cat conftest.$ac_ext >&5 7149ac_cv_have_decl_le64dec=no 7150fi 7151rm -f conftest.$ac_objext conftest.$ac_ext 7152fi 7153echo "$as_me:7153: result: $ac_cv_have_decl_le64dec" >&5 7154echo "${ECHO_T}$ac_cv_have_decl_le64dec" >&6 7155if test $ac_cv_have_decl_le64dec = yes; then 7156 7157cat >>confdefs.h <<EOF 7158#define HAVE_DECL_LE64DEC 1 7159EOF 7160 7161else 7162 cat >>confdefs.h <<EOF 7163#define HAVE_DECL_LE64DEC 0 7164EOF 7165 7166fi 7167 7168echo "$as_me:7168: checking whether fstatvfs is declared" >&5 7169echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6 7170if test "${ac_cv_have_decl_fstatvfs+set}" = set; then 7171 echo $ECHO_N "(cached) $ECHO_C" >&6 7172else 7173 cat >conftest.$ac_ext <<_ACEOF 7174#line 7174 "configure" 7175#include "confdefs.h" 7176#include <sys/statvfs.h> 7177 7178int 7179main () 7180{ 7181#ifndef fstatvfs 7182 char *p = (char *) fstatvfs; 7183#endif 7184 7185 ; 7186 return 0; 7187} 7188_ACEOF 7189rm -f conftest.$ac_objext 7190if { (eval echo "$as_me:7190: \"$ac_compile\"") >&5 7191 (eval $ac_compile) 2>&5 7192 ac_status=$? 7193 echo "$as_me:7193: \$? = $ac_status" >&5 7194 (exit $ac_status); } && 7195 { ac_try='test -s conftest.$ac_objext' 7196 { (eval echo "$as_me:7196: \"$ac_try\"") >&5 7197 (eval $ac_try) 2>&5 7198 ac_status=$? 7199 echo "$as_me:7199: \$? = $ac_status" >&5 7200 (exit $ac_status); }; }; then 7201 ac_cv_have_decl_fstatvfs=yes 7202else 7203 echo "$as_me: failed program was:" >&5 7204cat conftest.$ac_ext >&5 7205ac_cv_have_decl_fstatvfs=no 7206fi 7207rm -f conftest.$ac_objext conftest.$ac_ext 7208fi 7209echo "$as_me:7209: result: $ac_cv_have_decl_fstatvfs" >&5 7210echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6 7211if test $ac_cv_have_decl_fstatvfs = yes; then 7212 7213cat >>confdefs.h <<EOF 7214#define HAVE_DECL_FSTATVFS 1 7215EOF 7216 7217else 7218 cat >>confdefs.h <<EOF 7219#define HAVE_DECL_FSTATVFS 0 7220EOF 7221 7222fi 7223 7224echo "$as_me:7224: checking whether setgroupent is declared" >&5 7225echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6 7226if test "${ac_cv_have_decl_setgroupent+set}" = set; then 7227 echo $ECHO_N "(cached) $ECHO_C" >&6 7228else 7229 cat >conftest.$ac_ext <<_ACEOF 7230#line 7230 "configure" 7231#include "confdefs.h" 7232 7233#include <sys/types.h> 7234#include <grp.h> 7235#include <pwd.h> 7236 7237int 7238main () 7239{ 7240#ifndef setgroupent 7241 char *p = (char *) setgroupent; 7242#endif 7243 7244 ; 7245 return 0; 7246} 7247_ACEOF 7248rm -f conftest.$ac_objext 7249if { (eval echo "$as_me:7249: \"$ac_compile\"") >&5 7250 (eval $ac_compile) 2>&5 7251 ac_status=$? 7252 echo "$as_me:7252: \$? = $ac_status" >&5 7253 (exit $ac_status); } && 7254 { ac_try='test -s conftest.$ac_objext' 7255 { (eval echo "$as_me:7255: \"$ac_try\"") >&5 7256 (eval $ac_try) 2>&5 7257 ac_status=$? 7258 echo "$as_me:7258: \$? = $ac_status" >&5 7259 (exit $ac_status); }; }; then 7260 ac_cv_have_decl_setgroupent=yes 7261else 7262 echo "$as_me: failed program was:" >&5 7263cat conftest.$ac_ext >&5 7264ac_cv_have_decl_setgroupent=no 7265fi 7266rm -f conftest.$ac_objext conftest.$ac_ext 7267fi 7268echo "$as_me:7268: result: $ac_cv_have_decl_setgroupent" >&5 7269echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6 7270if test $ac_cv_have_decl_setgroupent = yes; then 7271 7272cat >>confdefs.h <<EOF 7273#define HAVE_DECL_SETGROUPENT 1 7274EOF 7275 7276else 7277 cat >>confdefs.h <<EOF 7278#define HAVE_DECL_SETGROUPENT 0 7279EOF 7280 7281fi 7282echo "$as_me:7282: checking whether setpassent is declared" >&5 7283echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6 7284if test "${ac_cv_have_decl_setpassent+set}" = set; then 7285 echo $ECHO_N "(cached) $ECHO_C" >&6 7286else 7287 cat >conftest.$ac_ext <<_ACEOF 7288#line 7288 "configure" 7289#include "confdefs.h" 7290 7291#include <sys/types.h> 7292#include <grp.h> 7293#include <pwd.h> 7294 7295int 7296main () 7297{ 7298#ifndef setpassent 7299 char *p = (char *) setpassent; 7300#endif 7301 7302 ; 7303 return 0; 7304} 7305_ACEOF 7306rm -f conftest.$ac_objext 7307if { (eval echo "$as_me:7307: \"$ac_compile\"") >&5 7308 (eval $ac_compile) 2>&5 7309 ac_status=$? 7310 echo "$as_me:7310: \$? = $ac_status" >&5 7311 (exit $ac_status); } && 7312 { ac_try='test -s conftest.$ac_objext' 7313 { (eval echo "$as_me:7313: \"$ac_try\"") >&5 7314 (eval $ac_try) 2>&5 7315 ac_status=$? 7316 echo "$as_me:7316: \$? = $ac_status" >&5 7317 (exit $ac_status); }; }; then 7318 ac_cv_have_decl_setpassent=yes 7319else 7320 echo "$as_me: failed program was:" >&5 7321cat conftest.$ac_ext >&5 7322ac_cv_have_decl_setpassent=no 7323fi 7324rm -f conftest.$ac_objext conftest.$ac_ext 7325fi 7326echo "$as_me:7326: result: $ac_cv_have_decl_setpassent" >&5 7327echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6 7328if test $ac_cv_have_decl_setpassent = yes; then 7329 7330cat >>confdefs.h <<EOF 7331#define HAVE_DECL_SETPASSENT 1 7332EOF 7333 7334else 7335 cat >>confdefs.h <<EOF 7336#define HAVE_DECL_SETPASSENT 0 7337EOF 7338 7339fi 7340 7341# regcomp() and regexec() are also names of functions in the old V8 7342# regexp package. To avoid them, we need to find out who has regfree(). 7343 7344echo "$as_me:7344: checking for regfree in -lregex" >&5 7345echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6 7346if test "${ac_cv_lib_regex_regfree+set}" = set; then 7347 echo $ECHO_N "(cached) $ECHO_C" >&6 7348else 7349 ac_check_lib_save_LIBS=$LIBS 7350LIBS="-lregex $LIBS" 7351cat >conftest.$ac_ext <<_ACEOF 7352#line 7352 "configure" 7353#include "confdefs.h" 7354 7355/* Override any gcc2 internal prototype to avoid an error. */ 7356#ifdef __cplusplus 7357extern "C" 7358#endif 7359/* We use char because int might match the return type of a gcc2 7360 builtin and then its argument prototype would still apply. */ 7361char regfree (); 7362int 7363main () 7364{ 7365regfree (); 7366 ; 7367 return 0; 7368} 7369_ACEOF 7370rm -f conftest.$ac_objext conftest$ac_exeext 7371if { (eval echo "$as_me:7371: \"$ac_link\"") >&5 7372 (eval $ac_link) 2>&5 7373 ac_status=$? 7374 echo "$as_me:7374: \$? = $ac_status" >&5 7375 (exit $ac_status); } && 7376 { ac_try='test -s conftest$ac_exeext' 7377 { (eval echo "$as_me:7377: \"$ac_try\"") >&5 7378 (eval $ac_try) 2>&5 7379 ac_status=$? 7380 echo "$as_me:7380: \$? = $ac_status" >&5 7381 (exit $ac_status); }; }; then 7382 ac_cv_lib_regex_regfree=yes 7383else 7384 echo "$as_me: failed program was:" >&5 7385cat conftest.$ac_ext >&5 7386ac_cv_lib_regex_regfree=no 7387fi 7388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7389LIBS=$ac_check_lib_save_LIBS 7390fi 7391echo "$as_me:7391: result: $ac_cv_lib_regex_regfree" >&5 7392echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6 7393if test $ac_cv_lib_regex_regfree = yes; then 7394 cat >>confdefs.h <<EOF 7395#define HAVE_LIBREGEX 1 7396EOF 7397 7398 LIBS="-lregex $LIBS" 7399 7400fi 7401 7402echo "$as_me:7402: checking for library containing regfree" >&5 7403echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6 7404if test "${ac_cv_search_regfree+set}" = set; then 7405 echo $ECHO_N "(cached) $ECHO_C" >&6 7406else 7407 ac_func_search_save_LIBS=$LIBS 7408ac_cv_search_regfree=no 7409cat >conftest.$ac_ext <<_ACEOF 7410#line 7410 "configure" 7411#include "confdefs.h" 7412 7413/* Override any gcc2 internal prototype to avoid an error. */ 7414#ifdef __cplusplus 7415extern "C" 7416#endif 7417/* We use char because int might match the return type of a gcc2 7418 builtin and then its argument prototype would still apply. */ 7419char regfree (); 7420int 7421main () 7422{ 7423regfree (); 7424 ; 7425 return 0; 7426} 7427_ACEOF 7428rm -f conftest.$ac_objext conftest$ac_exeext 7429if { (eval echo "$as_me:7429: \"$ac_link\"") >&5 7430 (eval $ac_link) 2>&5 7431 ac_status=$? 7432 echo "$as_me:7432: \$? = $ac_status" >&5 7433 (exit $ac_status); } && 7434 { ac_try='test -s conftest$ac_exeext' 7435 { (eval echo "$as_me:7435: \"$ac_try\"") >&5 7436 (eval $ac_try) 2>&5 7437 ac_status=$? 7438 echo "$as_me:7438: \$? = $ac_status" >&5 7439 (exit $ac_status); }; }; then 7440 ac_cv_search_regfree="none required" 7441else 7442 echo "$as_me: failed program was:" >&5 7443cat conftest.$ac_ext >&5 7444fi 7445rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7446if test "$ac_cv_search_regfree" = no; then 7447 for ac_lib in rx posix; do 7448 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7449 cat >conftest.$ac_ext <<_ACEOF 7450#line 7450 "configure" 7451#include "confdefs.h" 7452 7453/* Override any gcc2 internal prototype to avoid an error. */ 7454#ifdef __cplusplus 7455extern "C" 7456#endif 7457/* We use char because int might match the return type of a gcc2 7458 builtin and then its argument prototype would still apply. */ 7459char regfree (); 7460int 7461main () 7462{ 7463regfree (); 7464 ; 7465 return 0; 7466} 7467_ACEOF 7468rm -f conftest.$ac_objext conftest$ac_exeext 7469if { (eval echo "$as_me:7469: \"$ac_link\"") >&5 7470 (eval $ac_link) 2>&5 7471 ac_status=$? 7472 echo "$as_me:7472: \$? = $ac_status" >&5 7473 (exit $ac_status); } && 7474 { ac_try='test -s conftest$ac_exeext' 7475 { (eval echo "$as_me:7475: \"$ac_try\"") >&5 7476 (eval $ac_try) 2>&5 7477 ac_status=$? 7478 echo "$as_me:7478: \$? = $ac_status" >&5 7479 (exit $ac_status); }; }; then 7480 ac_cv_search_regfree="-l$ac_lib" 7481break 7482else 7483 echo "$as_me: failed program was:" >&5 7484cat conftest.$ac_ext >&5 7485fi 7486rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7487 done 7488fi 7489LIBS=$ac_func_search_save_LIBS 7490fi 7491echo "$as_me:7491: result: $ac_cv_search_regfree" >&5 7492echo "${ECHO_T}$ac_cv_search_regfree" >&6 7493if test "$ac_cv_search_regfree" != no; then 7494 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS" 7495 7496fi 7497 7498cat >confcache <<\_ACEOF 7499# This file is a shell script that caches the results of configure 7500# tests run on this system so they can be shared between configure 7501# scripts and configure runs, see configure's option --config-cache. 7502# It is not useful on other systems. If it contains results you don't 7503# want to keep, you may remove or edit it. 7504# 7505# config.status only pays attention to the cache file if you give it 7506# the --recheck option to rerun configure. 7507# 7508# `ac_cv_env_foo' variables (set or unset) will be overriden when 7509# loading this file, other *unset* `ac_cv_foo' will be assigned the 7510# following values. 7511 7512_ACEOF 7513 7514# The following way of writing the cache mishandles newlines in values, 7515# but we know of no workaround that is simple, portable, and efficient. 7516# So, don't put newlines in cache variables' values. 7517# Ultrix sh set writes to stderr and can't be redirected directly, 7518# and sets the high bit in the cache file unless we assign to the vars. 7519{ 7520 (set) 2>&1 | 7521 case `(ac_space=' '; set | grep ac_space) 2>&1` in 7522 *ac_space=\ *) 7523 # `set' does not quote correctly, so add quotes (double-quote 7524 # substitution turns \\\\ into \\, and sed turns \\ into \). 7525 sed -n \ 7526 "s/'/'\\\\''/g; 7527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7528 ;; 7529 *) 7530 # `set' quotes correctly as required by POSIX, so do not add quotes. 7531 sed -n \ 7532 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 7533 ;; 7534 esac; 7535} | 7536 sed ' 7537 t clear 7538 : clear 7539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7540 t end 7541 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7542 : end' >>confcache 7543if cmp -s $cache_file confcache; then :; else 7544 if test -w $cache_file; then 7545 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 7546 cat confcache >$cache_file 7547 else 7548 echo "not updating unwritable cache $cache_file" 7549 fi 7550fi 7551rm -f confcache 7552 7553test "x$prefix" = xNONE && prefix=$ac_default_prefix 7554# Let make expand exec_prefix. 7555test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7556 7557# VPATH may cause trouble with some makes, so we remove $(srcdir), 7558# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 7559# trailing colons and then remove the whole line if VPATH becomes empty 7560# (actually we leave an empty line to preserve line numbers). 7561if test "x$srcdir" = x.; then 7562 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7563s/:*\$(srcdir):*/:/; 7564s/:*\${srcdir}:*/:/; 7565s/:*@srcdir@:*/:/; 7566s/^\([^=]*=[ ]*\):*/\1/; 7567s/:*$//; 7568s/^[^=]*=[ ]*$//; 7569}' 7570fi 7571 7572DEFS=-DHAVE_CONFIG_H 7573 7574: ${CONFIG_STATUS=./config.status} 7575ac_clean_files_save=$ac_clean_files 7576ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7577{ echo "$as_me:7577: creating $CONFIG_STATUS" >&5 7578echo "$as_me: creating $CONFIG_STATUS" >&6;} 7579cat >$CONFIG_STATUS <<_ACEOF 7580#! $SHELL 7581# Generated automatically by configure. 7582# Run this file to recreate the current configuration. 7583# Compiler output produced by configure, useful for debugging 7584# configure, is in config.log if it exists. 7585 7586debug=false 7587SHELL=\${CONFIG_SHELL-$SHELL} 7588ac_cs_invocation="\$0 \$@" 7589 7590_ACEOF 7591 7592cat >>$CONFIG_STATUS <<\_ACEOF 7593# Be Bourne compatible 7594if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 7595 emulate sh 7596 NULLCMD=: 7597elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 7598 set -o posix 7599fi 7600 7601# Name of the executable. 7602as_me=`echo "$0" |sed 's,.*[\\/],,'` 7603 7604if expr a : '\(a\)' >/dev/null 2>&1; then 7605 as_expr=expr 7606else 7607 as_expr=false 7608fi 7609 7610rm -f conf$$ conf$$.exe conf$$.file 7611echo >conf$$.file 7612if ln -s conf$$.file conf$$ 2>/dev/null; then 7613 # We could just check for DJGPP; but this test a) works b) is more generic 7614 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 7615 if test -f conf$$.exe; then 7616 # Don't use ln at all; we don't have any links 7617 as_ln_s='cp -p' 7618 else 7619 as_ln_s='ln -s' 7620 fi 7621elif ln conf$$.file conf$$ 2>/dev/null; then 7622 as_ln_s=ln 7623else 7624 as_ln_s='cp -p' 7625fi 7626rm -f conf$$ conf$$.exe conf$$.file 7627 7628as_executable_p="test -f" 7629 7630# Support unset when possible. 7631if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 7632 as_unset=unset 7633else 7634 as_unset=false 7635fi 7636 7637# NLS nuisances. 7638$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 7639$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 7640$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 7641$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 7642$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 7643$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 7644$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 7645$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 7646 7647# IFS 7648# We need space, tab and new line, in precisely that order. 7649as_nl=' 7650' 7651IFS=" $as_nl" 7652 7653# CDPATH. 7654$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 7655 7656exec 6>&1 7657 7658_ACEOF 7659 7660# Files that config.status was made for. 7661if test -n "$ac_config_files"; then 7662 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 7663fi 7664 7665if test -n "$ac_config_headers"; then 7666 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 7667fi 7668 7669if test -n "$ac_config_links"; then 7670 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 7671fi 7672 7673if test -n "$ac_config_commands"; then 7674 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 7675fi 7676 7677cat >>$CONFIG_STATUS <<\EOF 7678 7679ac_cs_usage="\ 7680\`$as_me' instantiates files from templates according to the 7681current configuration. 7682 7683Usage: $0 [OPTIONS] [FILE]... 7684 7685 -h, --help print this help, then exit 7686 -V, --version print version number, then exit 7687 -d, --debug don't remove temporary files 7688 --recheck update $as_me by reconfiguring in the same conditions 7689 --file=FILE[:TEMPLATE] 7690 instantiate the configuration file FILE 7691 --header=FILE[:TEMPLATE] 7692 instantiate the configuration header FILE 7693 7694Configuration files: 7695$config_files 7696 7697Configuration headers: 7698$config_headers 7699 7700Report bugs to <bug-autoconf@gnu.org>." 7701EOF 7702 7703cat >>$CONFIG_STATUS <<EOF 7704ac_cs_version="\\ 7705libnbcompat config.status noversion 7706configured by $0, generated by GNU Autoconf 2.52, 7707 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 7708 7709Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 7710Free Software Foundation, Inc. 7711This config.status script is free software; the Free Software Foundation 7712gives unlimited permission to copy, distribute and modify it." 7713srcdir=$srcdir 7714EOF 7715 7716cat >>$CONFIG_STATUS <<\EOF 7717# If no file are specified by the user, then we need to provide default 7718# value. By we need to know if files were specified by the user. 7719ac_need_defaults=: 7720while test $# != 0 7721do 7722 case $1 in 7723 --*=*) 7724 ac_option=`expr "x$1" : 'x\([^=]*\)='` 7725 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 7726 shift 7727 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 7728 shift 7729 ;; 7730 -*);; 7731 *) # This is not an option, so the user has probably given explicit 7732 # arguments. 7733 ac_need_defaults=false;; 7734 esac 7735 7736 case $1 in 7737 # Handling of the options. 7738EOF 7739cat >>$CONFIG_STATUS <<EOF 7740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7741 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 7742 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 7743EOF 7744cat >>$CONFIG_STATUS <<\EOF 7745 --version | --vers* | -V ) 7746 echo "$ac_cs_version"; exit 0 ;; 7747 --he | --h) 7748 # Conflict between --help and --header 7749 { { echo "$as_me:7749: error: ambiguous option: $1 7750Try \`$0 --help' for more information." >&5 7751echo "$as_me: error: ambiguous option: $1 7752Try \`$0 --help' for more information." >&2;} 7753 { (exit 1); exit 1; }; };; 7754 --help | --hel | -h ) 7755 echo "$ac_cs_usage"; exit 0 ;; 7756 --debug | --d* | -d ) 7757 debug=: ;; 7758 --file | --fil | --fi | --f ) 7759 shift 7760 CONFIG_FILES="$CONFIG_FILES $1" 7761 ac_need_defaults=false;; 7762 --header | --heade | --head | --hea ) 7763 shift 7764 CONFIG_HEADERS="$CONFIG_HEADERS $1" 7765 ac_need_defaults=false;; 7766 7767 # This is an error. 7768 -*) { { echo "$as_me:7768: error: unrecognized option: $1 7769Try \`$0 --help' for more information." >&5 7770echo "$as_me: error: unrecognized option: $1 7771Try \`$0 --help' for more information." >&2;} 7772 { (exit 1); exit 1; }; } ;; 7773 7774 *) ac_config_targets="$ac_config_targets $1" ;; 7775 7776 esac 7777 shift 7778done 7779 7780exec 5>>config.log 7781cat >&5 << _ACEOF 7782 7783## ----------------------- ## 7784## Running config.status. ## 7785## ----------------------- ## 7786 7787This file was extended by $as_me (libnbcompat noversion) 2.52, executed with 7788 CONFIG_FILES = $CONFIG_FILES 7789 CONFIG_HEADERS = $CONFIG_HEADERS 7790 CONFIG_LINKS = $CONFIG_LINKS 7791 CONFIG_COMMANDS = $CONFIG_COMMANDS 7792 > $ac_cs_invocation 7793on `(hostname || uname -n) 2>/dev/null | sed 1q` 7794 7795_ACEOF 7796EOF 7797 7798cat >>$CONFIG_STATUS <<\EOF 7799for ac_config_target in $ac_config_targets 7800do 7801 case "$ac_config_target" in 7802 # Handling of arguments. 7803 "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;; 7804 "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;; 7805 *) { { echo "$as_me:7805: error: invalid argument: $ac_config_target" >&5 7806echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 7807 { (exit 1); exit 1; }; };; 7808 esac 7809done 7810 7811# If the user did not use the arguments to specify the items to instantiate, 7812# then the envvar interface is used. Set only those that are not. 7813# We use the long form for the default assignment because of an extremely 7814# bizarre bug on SunOS 4.1.3. 7815if $ac_need_defaults; then 7816 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7817 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7818fi 7819 7820# Create a temporary directory, and hook for its removal unless debugging. 7821$debug || 7822{ 7823 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 7824 trap '{ (exit 1); exit 1; }' 1 2 13 15 7825} 7826 7827# Create a (secure) tmp directory for tmp files. 7828: ${TMPDIR=/tmp} 7829{ 7830 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 7831 test -n "$tmp" && test -d "$tmp" 7832} || 7833{ 7834 tmp=$TMPDIR/cs$$-$RANDOM 7835 (umask 077 && mkdir $tmp) 7836} || 7837{ 7838 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 7839 { (exit 1); exit 1; } 7840} 7841 7842EOF 7843 7844cat >>$CONFIG_STATUS <<EOF 7845 7846# 7847# CONFIG_FILES section. 7848# 7849 7850# No need to generate the scripts if there are no CONFIG_FILES. 7851# This happens for instance when ./config.status config.h 7852if test -n "\$CONFIG_FILES"; then 7853 # Protect against being on the right side of a sed subst in config.status. 7854 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 7855 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 7856s,@SHELL@,$SHELL,;t t 7857s,@exec_prefix@,$exec_prefix,;t t 7858s,@prefix@,$prefix,;t t 7859s,@program_transform_name@,$program_transform_name,;t t 7860s,@bindir@,$bindir,;t t 7861s,@sbindir@,$sbindir,;t t 7862s,@libexecdir@,$libexecdir,;t t 7863s,@datadir@,$datadir,;t t 7864s,@sysconfdir@,$sysconfdir,;t t 7865s,@sharedstatedir@,$sharedstatedir,;t t 7866s,@localstatedir@,$localstatedir,;t t 7867s,@libdir@,$libdir,;t t 7868s,@includedir@,$includedir,;t t 7869s,@oldincludedir@,$oldincludedir,;t t 7870s,@infodir@,$infodir,;t t 7871s,@mandir@,$mandir,;t t 7872s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 7873s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 7874s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 7875s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 7876s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 7877s,@build_alias@,$build_alias,;t t 7878s,@host_alias@,$host_alias,;t t 7879s,@target_alias@,$target_alias,;t t 7880s,@ECHO_C@,$ECHO_C,;t t 7881s,@ECHO_N@,$ECHO_N,;t t 7882s,@ECHO_T@,$ECHO_T,;t t 7883s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 7884s,@DEFS@,$DEFS,;t t 7885s,@LIBS@,$LIBS,;t t 7886s,@CC@,$CC,;t t 7887s,@CFLAGS@,$CFLAGS,;t t 7888s,@LDFLAGS@,$LDFLAGS,;t t 7889s,@CPPFLAGS@,$CPPFLAGS,;t t 7890s,@ac_ct_CC@,$ac_ct_CC,;t t 7891s,@EXEEXT@,$EXEEXT,;t t 7892s,@OBJEXT@,$OBJEXT,;t t 7893s,@CPP@,$CPP,;t t 7894s,@BSHELL@,$BSHELL,;t t 7895s,@ALLOCA@,$ALLOCA,;t t 7896CEOF 7897 7898EOF 7899 7900 cat >>$CONFIG_STATUS <<\EOF 7901 # Split the substitutions into bite-sized pieces for seds with 7902 # small command number limits, like on Digital OSF/1 and HP-UX. 7903 ac_max_sed_lines=48 7904 ac_sed_frag=1 # Number of current file. 7905 ac_beg=1 # First line for current file. 7906 ac_end=$ac_max_sed_lines # Line after last line for current file. 7907 ac_more_lines=: 7908 ac_sed_cmds= 7909 while $ac_more_lines; do 7910 if test $ac_beg -gt 1; then 7911 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7912 else 7913 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7914 fi 7915 if test ! -s $tmp/subs.frag; then 7916 ac_more_lines=false 7917 else 7918 # The purpose of the label and of the branching condition is to 7919 # speed up the sed processing (if there are no `@' at all, there 7920 # is no need to browse any of the substitutions). 7921 # These are the two extra sed commands mentioned above. 7922 (echo ':t 7923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 7924 if test -z "$ac_sed_cmds"; then 7925 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 7926 else 7927 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 7928 fi 7929 ac_sed_frag=`expr $ac_sed_frag + 1` 7930 ac_beg=$ac_end 7931 ac_end=`expr $ac_end + $ac_max_sed_lines` 7932 fi 7933 done 7934 if test -z "$ac_sed_cmds"; then 7935 ac_sed_cmds=cat 7936 fi 7937fi # test -n "$CONFIG_FILES" 7938 7939EOF 7940cat >>$CONFIG_STATUS <<\EOF 7941for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 7942 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7943 case $ac_file in 7944 - | *:- | *:-:* ) # input from stdin 7945 cat >$tmp/stdin 7946 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7948 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7949 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7950 * ) ac_file_in=$ac_file.in ;; 7951 esac 7952 7953 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 7954 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7955 X"$ac_file" : 'X\(//\)[^/]' \| \ 7956 X"$ac_file" : 'X\(//\)$' \| \ 7957 X"$ac_file" : 'X\(/\)' \| \ 7958 . : '\(.\)' 2>/dev/null || 7959echo X"$ac_file" | 7960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7961 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7962 /^X\(\/\/\)$/{ s//\1/; q; } 7963 /^X\(\/\).*/{ s//\1/; q; } 7964 s/.*/./; q'` 7965 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 7966 { case "$ac_dir" in 7967 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 7968 *) as_incr_dir=.;; 7969esac 7970as_dummy="$ac_dir" 7971for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 7972 case $as_mkdir_dir in 7973 # Skip DOS drivespec 7974 ?:) as_incr_dir=$as_mkdir_dir ;; 7975 *) 7976 as_incr_dir=$as_incr_dir/$as_mkdir_dir 7977 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 7978 ;; 7979 esac 7980done; } 7981 7982 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 7983 # A "../" for each directory in $ac_dir_suffix. 7984 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 7985 else 7986 ac_dir_suffix= ac_dots= 7987 fi 7988 7989 case $srcdir in 7990 .) ac_srcdir=. 7991 if test -z "$ac_dots"; then 7992 ac_top_srcdir=. 7993 else 7994 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 7995 fi ;; 7996 [\\/]* | ?:[\\/]* ) 7997 ac_srcdir=$srcdir$ac_dir_suffix; 7998 ac_top_srcdir=$srcdir ;; 7999 *) # Relative path. 8000 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 8001 ac_top_srcdir=$ac_dots$srcdir ;; 8002 esac 8003 8004 if test x"$ac_file" != x-; then 8005 { echo "$as_me:8005: creating $ac_file" >&5 8006echo "$as_me: creating $ac_file" >&6;} 8007 rm -f "$ac_file" 8008 fi 8009 # Let's still pretend it is `configure' which instantiates (i.e., don't 8010 # use $as_me), people would be surprised to read: 8011 # /* config.h. Generated automatically by config.status. */ 8012 configure_input="Generated automatically from `echo $ac_file_in | 8013 sed 's,.*/,,'` by configure." 8014 8015 # First look for the input files in the build tree, otherwise in the 8016 # src tree. 8017 ac_file_inputs=`IFS=: 8018 for f in $ac_file_in; do 8019 case $f in 8020 -) echo $tmp/stdin ;; 8021 [\\/$]*) 8022 # Absolute (can't be DOS-style, as IFS=:) 8023 test -f "$f" || { { echo "$as_me:8023: error: cannot find input file: $f" >&5 8024echo "$as_me: error: cannot find input file: $f" >&2;} 8025 { (exit 1); exit 1; }; } 8026 echo $f;; 8027 *) # Relative 8028 if test -f "$f"; then 8029 # Build tree 8030 echo $f 8031 elif test -f "$srcdir/$f"; then 8032 # Source tree 8033 echo $srcdir/$f 8034 else 8035 # /dev/null tree 8036 { { echo "$as_me:8036: error: cannot find input file: $f" >&5 8037echo "$as_me: error: cannot find input file: $f" >&2;} 8038 { (exit 1); exit 1; }; } 8039 fi;; 8040 esac 8041 done` || { (exit 1); exit 1; } 8042EOF 8043cat >>$CONFIG_STATUS <<EOF 8044 sed "$ac_vpsub 8045$extrasub 8046EOF 8047cat >>$CONFIG_STATUS <<\EOF 8048:t 8049/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8050s,@configure_input@,$configure_input,;t t 8051s,@srcdir@,$ac_srcdir,;t t 8052s,@top_srcdir@,$ac_top_srcdir,;t t 8053" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 8054 rm -f $tmp/stdin 8055 if test x"$ac_file" != x-; then 8056 mv $tmp/out $ac_file 8057 else 8058 cat $tmp/out 8059 rm -f $tmp/out 8060 fi 8061 8062done 8063EOF 8064cat >>$CONFIG_STATUS <<\EOF 8065 8066# 8067# CONFIG_HEADER section. 8068# 8069 8070# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 8071# NAME is the cpp macro being defined and VALUE is the value it is being given. 8072# 8073# ac_d sets the value in "#define NAME VALUE" lines. 8074ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 8075ac_dB='[ ].*$,\1#\2' 8076ac_dC=' ' 8077ac_dD=',;t' 8078# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 8079ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 8080ac_uB='$,\1#\2define\3' 8081ac_uC=' ' 8082ac_uD=',;t' 8083 8084for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 8085 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8086 case $ac_file in 8087 - | *:- | *:-:* ) # input from stdin 8088 cat >$tmp/stdin 8089 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8091 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8093 * ) ac_file_in=$ac_file.in ;; 8094 esac 8095 8096 test x"$ac_file" != x- && { echo "$as_me:8096: creating $ac_file" >&5 8097echo "$as_me: creating $ac_file" >&6;} 8098 8099 # First look for the input files in the build tree, otherwise in the 8100 # src tree. 8101 ac_file_inputs=`IFS=: 8102 for f in $ac_file_in; do 8103 case $f in 8104 -) echo $tmp/stdin ;; 8105 [\\/$]*) 8106 # Absolute (can't be DOS-style, as IFS=:) 8107 test -f "$f" || { { echo "$as_me:8107: error: cannot find input file: $f" >&5 8108echo "$as_me: error: cannot find input file: $f" >&2;} 8109 { (exit 1); exit 1; }; } 8110 echo $f;; 8111 *) # Relative 8112 if test -f "$f"; then 8113 # Build tree 8114 echo $f 8115 elif test -f "$srcdir/$f"; then 8116 # Source tree 8117 echo $srcdir/$f 8118 else 8119 # /dev/null tree 8120 { { echo "$as_me:8120: error: cannot find input file: $f" >&5 8121echo "$as_me: error: cannot find input file: $f" >&2;} 8122 { (exit 1); exit 1; }; } 8123 fi;; 8124 esac 8125 done` || { (exit 1); exit 1; } 8126 # Remove the trailing spaces. 8127 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 8128 8129EOF 8130 8131# Transform confdefs.h into two sed scripts, `conftest.defines' and 8132# `conftest.undefs', that substitutes the proper values into 8133# config.h.in to produce config.h. The first handles `#define' 8134# templates, and the second `#undef' templates. 8135# And first: Protect against being on the right side of a sed subst in 8136# config.status. Protect against being in an unquoted here document 8137# in config.status. 8138rm -f conftest.defines conftest.undefs 8139# Using a here document instead of a string reduces the quoting nightmare. 8140# Putting comments in sed scripts is not portable. 8141# 8142# `end' is used to avoid that the second main sed command (meant for 8143# 0-ary CPP macros) applies to n-ary macro definitions. 8144# See the Autoconf documentation for `clear'. 8145cat >confdef2sed.sed <<\EOF 8146s/[\\&,]/\\&/g 8147s,[\\$`],\\&,g 8148t clear 8149: clear 8150s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 8151t end 8152s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 8153: end 8154EOF 8155# If some macros were called several times there might be several times 8156# the same #defines, which is useless. Nevertheless, we may not want to 8157# sort them, since we want the *last* AC-DEFINE to be honored. 8158uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 8159sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 8160rm -f confdef2sed.sed 8161 8162# This sed command replaces #undef with comments. This is necessary, for 8163# example, in the case of _POSIX_SOURCE, which is predefined and required 8164# on some systems where configure will not decide to define it. 8165cat >>conftest.undefs <<\EOF 8166s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 8167EOF 8168 8169# Break up conftest.defines because some shells have a limit on the size 8170# of here documents, and old seds have small limits too (100 cmds). 8171echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 8172echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 8173echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 8174echo ' :' >>$CONFIG_STATUS 8175rm -f conftest.tail 8176while grep . conftest.defines >/dev/null 8177do 8178 # Write a limited-size here document to $tmp/defines.sed. 8179 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 8180 # Speed up: don't consider the non `#define' lines. 8181 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 8182 # Work around the forget-to-reset-the-flag bug. 8183 echo 't clr' >>$CONFIG_STATUS 8184 echo ': clr' >>$CONFIG_STATUS 8185 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 8186 echo 'CEOF 8187 sed -f $tmp/defines.sed $tmp/in >$tmp/out 8188 rm -f $tmp/in 8189 mv $tmp/out $tmp/in 8190' >>$CONFIG_STATUS 8191 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 8192 rm -f conftest.defines 8193 mv conftest.tail conftest.defines 8194done 8195rm -f conftest.defines 8196echo ' fi # egrep' >>$CONFIG_STATUS 8197echo >>$CONFIG_STATUS 8198 8199# Break up conftest.undefs because some shells have a limit on the size 8200# of here documents, and old seds have small limits too (100 cmds). 8201echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 8202rm -f conftest.tail 8203while grep . conftest.undefs >/dev/null 8204do 8205 # Write a limited-size here document to $tmp/undefs.sed. 8206 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 8207 # Speed up: don't consider the non `#undef' 8208 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 8209 # Work around the forget-to-reset-the-flag bug. 8210 echo 't clr' >>$CONFIG_STATUS 8211 echo ': clr' >>$CONFIG_STATUS 8212 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 8213 echo 'CEOF 8214 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 8215 rm -f $tmp/in 8216 mv $tmp/out $tmp/in 8217' >>$CONFIG_STATUS 8218 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 8219 rm -f conftest.undefs 8220 mv conftest.tail conftest.undefs 8221done 8222rm -f conftest.undefs 8223 8224cat >>$CONFIG_STATUS <<\EOF 8225 # Let's still pretend it is `configure' which instantiates (i.e., don't 8226 # use $as_me), people would be surprised to read: 8227 # /* config.h. Generated automatically by config.status. */ 8228 if test x"$ac_file" = x-; then 8229 echo "/* Generated automatically by configure. */" >$tmp/config.h 8230 else 8231 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 8232 fi 8233 cat $tmp/in >>$tmp/config.h 8234 rm -f $tmp/in 8235 if test x"$ac_file" != x-; then 8236 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 8237 { echo "$as_me:8237: $ac_file is unchanged" >&5 8238echo "$as_me: $ac_file is unchanged" >&6;} 8239 else 8240 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8241 X"$ac_file" : 'X\(//\)[^/]' \| \ 8242 X"$ac_file" : 'X\(//\)$' \| \ 8243 X"$ac_file" : 'X\(/\)' \| \ 8244 . : '\(.\)' 2>/dev/null || 8245echo X"$ac_file" | 8246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8247 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8248 /^X\(\/\/\)$/{ s//\1/; q; } 8249 /^X\(\/\).*/{ s//\1/; q; } 8250 s/.*/./; q'` 8251 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 8252 { case "$ac_dir" in 8253 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 8254 *) as_incr_dir=.;; 8255esac 8256as_dummy="$ac_dir" 8257for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 8258 case $as_mkdir_dir in 8259 # Skip DOS drivespec 8260 ?:) as_incr_dir=$as_mkdir_dir ;; 8261 *) 8262 as_incr_dir=$as_incr_dir/$as_mkdir_dir 8263 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 8264 ;; 8265 esac 8266done; } 8267 8268 fi 8269 rm -f $ac_file 8270 mv $tmp/config.h $ac_file 8271 fi 8272 else 8273 cat $tmp/config.h 8274 rm -f $tmp/config.h 8275 fi 8276done 8277EOF 8278 8279cat >>$CONFIG_STATUS <<\EOF 8280 8281{ (exit 0); exit 0; } 8282EOF 8283chmod +x $CONFIG_STATUS 8284ac_clean_files=$ac_clean_files_save 8285 8286# configure is writing to config.log, and then calls config.status. 8287# config.status does its own redirection, appending to config.log. 8288# Unfortunately, on DOS this fails, as config.log is still kept open 8289# by configure, so config.status won't be able to write to it; its 8290# output is simply discarded. So we exec the FD to /dev/null, 8291# effectively closing config.log, so it can be properly (re)opened and 8292# appended to by config.status. When coming back to configure, we 8293# need to make the FD available again. 8294if test "$no_create" != yes; then 8295 ac_cs_success=: 8296 exec 5>/dev/null 8297 $SHELL $CONFIG_STATUS || ac_cs_success=false 8298 exec 5>>config.log 8299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8300 # would make configure fail if this is the last instruction. 8301 $ac_cs_success || { (exit 1); exit 1; } 8302fi 8303 8304