1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --with-ssl(=directory) enable SSL support" 16 17# Initialize some variables set by options. 18# The variables have the same names as the options, with 19# dashes changed to underlines. 20build=NONE 21cache_file=./config.cache 22exec_prefix=NONE 23host=NONE 24no_create= 25nonopt=NONE 26no_recursion= 27prefix=NONE 28program_prefix=NONE 29program_suffix=NONE 30program_transform_name=s,x,x, 31silent= 32site= 33srcdir= 34target=NONE 35verbose= 36x_includes=NONE 37x_libraries=NONE 38bindir='${exec_prefix}/bin' 39sbindir='${exec_prefix}/sbin' 40libexecdir='${exec_prefix}/libexec' 41datadir='${prefix}/share' 42sysconfdir='${prefix}/etc' 43sharedstatedir='${prefix}/com' 44localstatedir='${prefix}/var' 45libdir='${exec_prefix}/lib' 46includedir='${prefix}/include' 47oldincludedir='/usr/include' 48infodir='${prefix}/info' 49mandir='${prefix}/man' 50 51# Initialize some other variables. 52subdirs= 53MFLAGS= MAKEFLAGS= 54SHELL=${CONFIG_SHELL-/bin/sh} 55# Maximum number of lines to put in a shell here document. 56ac_max_here_lines=12 57 58ac_prev= 59for ac_option 60do 61 62 # If the previous option needs an argument, assign it. 63 if test -n "$ac_prev"; then 64 eval "$ac_prev=\$ac_option" 65 ac_prev= 66 continue 67 fi 68 69 case "$ac_option" in 70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 71 *) ac_optarg= ;; 72 esac 73 74 # Accept the important Cygnus configure options, so we can diagnose typos. 75 76 case "$ac_option" in 77 78 -bindir | --bindir | --bindi | --bind | --bin | --bi) 79 ac_prev=bindir ;; 80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 81 bindir="$ac_optarg" ;; 82 83 -build | --build | --buil | --bui | --bu) 84 ac_prev=build ;; 85 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 86 build="$ac_optarg" ;; 87 88 -cache-file | --cache-file | --cache-fil | --cache-fi \ 89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 90 ac_prev=cache_file ;; 91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 93 cache_file="$ac_optarg" ;; 94 95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 96 ac_prev=datadir ;; 97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 98 | --da=*) 99 datadir="$ac_optarg" ;; 100 101 -disable-* | --disable-*) 102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 103 # Reject names that are not valid shell variable names. 104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 106 fi 107 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 108 eval "enable_${ac_feature}=no" ;; 109 110 -enable-* | --enable-*) 111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 112 # Reject names that are not valid shell variable names. 113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 115 fi 116 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 117 case "$ac_option" in 118 *=*) ;; 119 *) ac_optarg=yes ;; 120 esac 121 eval "enable_${ac_feature}='$ac_optarg'" ;; 122 123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 125 | --exec | --exe | --ex) 126 ac_prev=exec_prefix ;; 127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 129 | --exec=* | --exe=* | --ex=*) 130 exec_prefix="$ac_optarg" ;; 131 132 -gas | --gas | --ga | --g) 133 # Obsolete; use --with-gas. 134 with_gas=yes ;; 135 136 -help | --help | --hel | --he) 137 # Omit some internal or obsolete options to make the list less imposing. 138 # This message is too long to be a string in the A/UX 3.1 sh. 139 cat << EOF 140Usage: configure [options] [host] 141Options: [defaults in brackets after descriptions] 142Configuration: 143 --cache-file=FILE cache test results in FILE 144 --help print this message 145 --no-create do not create output files 146 --quiet, --silent do not print \`checking...' messages 147 --version print the version of autoconf that created configure 148Directory and file names: 149 --prefix=PREFIX install architecture-independent files in PREFIX 150 [$ac_default_prefix] 151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 152 [same as prefix] 153 --bindir=DIR user executables in DIR [EPREFIX/bin] 154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 156 --datadir=DIR read-only architecture-independent data in DIR 157 [PREFIX/share] 158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 159 --sharedstatedir=DIR modifiable architecture-independent data in DIR 160 [PREFIX/com] 161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 162 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 163 --includedir=DIR C header files in DIR [PREFIX/include] 164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 165 --infodir=DIR info documentation in DIR [PREFIX/info] 166 --mandir=DIR man documentation in DIR [PREFIX/man] 167 --srcdir=DIR find the sources in DIR [configure dir or ..] 168 --program-prefix=PREFIX prepend PREFIX to installed program names 169 --program-suffix=SUFFIX append SUFFIX to installed program names 170 --program-transform-name=PROGRAM 171 run sed PROGRAM on installed program names 172EOF 173 cat << EOF 174Host type: 175 --build=BUILD configure for building on BUILD [BUILD=HOST] 176 --host=HOST configure for HOST [guessed] 177 --target=TARGET configure for TARGET [TARGET=HOST] 178Features and packages: 179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 183 --x-includes=DIR X include files are in DIR 184 --x-libraries=DIR X library files are in DIR 185EOF 186 if test -n "$ac_help"; then 187 echo "--enable and --with options recognized:$ac_help" 188 fi 189 exit 0 ;; 190 191 -host | --host | --hos | --ho) 192 ac_prev=host ;; 193 -host=* | --host=* | --hos=* | --ho=*) 194 host="$ac_optarg" ;; 195 196 -includedir | --includedir | --includedi | --included | --include \ 197 | --includ | --inclu | --incl | --inc) 198 ac_prev=includedir ;; 199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 200 | --includ=* | --inclu=* | --incl=* | --inc=*) 201 includedir="$ac_optarg" ;; 202 203 -infodir | --infodir | --infodi | --infod | --info | --inf) 204 ac_prev=infodir ;; 205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 206 infodir="$ac_optarg" ;; 207 208 -libdir | --libdir | --libdi | --libd) 209 ac_prev=libdir ;; 210 -libdir=* | --libdir=* | --libdi=* | --libd=*) 211 libdir="$ac_optarg" ;; 212 213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 214 | --libexe | --libex | --libe) 215 ac_prev=libexecdir ;; 216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 217 | --libexe=* | --libex=* | --libe=*) 218 libexecdir="$ac_optarg" ;; 219 220 -localstatedir | --localstatedir | --localstatedi | --localstated \ 221 | --localstate | --localstat | --localsta | --localst \ 222 | --locals | --local | --loca | --loc | --lo) 223 ac_prev=localstatedir ;; 224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 227 localstatedir="$ac_optarg" ;; 228 229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 230 ac_prev=mandir ;; 231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 232 mandir="$ac_optarg" ;; 233 234 -nfp | --nfp | --nf) 235 # Obsolete; use --without-fp. 236 with_fp=no ;; 237 238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 239 | --no-cr | --no-c) 240 no_create=yes ;; 241 242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 244 no_recursion=yes ;; 245 246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 248 | --oldin | --oldi | --old | --ol | --o) 249 ac_prev=oldincludedir ;; 250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 253 oldincludedir="$ac_optarg" ;; 254 255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 256 ac_prev=prefix ;; 257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 258 prefix="$ac_optarg" ;; 259 260 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 261 | --program-pre | --program-pr | --program-p) 262 ac_prev=program_prefix ;; 263 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 265 program_prefix="$ac_optarg" ;; 266 267 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 268 | --program-suf | --program-su | --program-s) 269 ac_prev=program_suffix ;; 270 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 272 program_suffix="$ac_optarg" ;; 273 274 -program-transform-name | --program-transform-name \ 275 | --program-transform-nam | --program-transform-na \ 276 | --program-transform-n | --program-transform- \ 277 | --program-transform | --program-transfor \ 278 | --program-transfo | --program-transf \ 279 | --program-trans | --program-tran \ 280 | --progr-tra | --program-tr | --program-t) 281 ac_prev=program_transform_name ;; 282 -program-transform-name=* | --program-transform-name=* \ 283 | --program-transform-nam=* | --program-transform-na=* \ 284 | --program-transform-n=* | --program-transform-=* \ 285 | --program-transform=* | --program-transfor=* \ 286 | --program-transfo=* | --program-transf=* \ 287 | --program-trans=* | --program-tran=* \ 288 | --progr-tra=* | --program-tr=* | --program-t=*) 289 program_transform_name="$ac_optarg" ;; 290 291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 292 | -silent | --silent | --silen | --sile | --sil) 293 silent=yes ;; 294 295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 296 ac_prev=sbindir ;; 297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 298 | --sbi=* | --sb=*) 299 sbindir="$ac_optarg" ;; 300 301 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 303 | --sharedst | --shareds | --shared | --share | --shar \ 304 | --sha | --sh) 305 ac_prev=sharedstatedir ;; 306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 309 | --sha=* | --sh=*) 310 sharedstatedir="$ac_optarg" ;; 311 312 -site | --site | --sit) 313 ac_prev=site ;; 314 -site=* | --site=* | --sit=*) 315 site="$ac_optarg" ;; 316 317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 318 ac_prev=srcdir ;; 319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 320 srcdir="$ac_optarg" ;; 321 322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 323 | --syscon | --sysco | --sysc | --sys | --sy) 324 ac_prev=sysconfdir ;; 325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 327 sysconfdir="$ac_optarg" ;; 328 329 -target | --target | --targe | --targ | --tar | --ta | --t) 330 ac_prev=target ;; 331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 332 target="$ac_optarg" ;; 333 334 -v | -verbose | --verbose | --verbos | --verbo | --verb) 335 verbose=yes ;; 336 337 -version | --version | --versio | --versi | --vers) 338 echo "configure generated by autoconf version 2.13" 339 exit 0 ;; 340 341 -with-* | --with-*) 342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 343 # Reject names that are not valid shell variable names. 344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 346 fi 347 ac_package=`echo $ac_package| sed 's/-/_/g'` 348 case "$ac_option" in 349 *=*) ;; 350 *) ac_optarg=yes ;; 351 esac 352 eval "with_${ac_package}='$ac_optarg'" ;; 353 354 -without-* | --without-*) 355 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 356 # Reject names that are not valid shell variable names. 357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 359 fi 360 ac_package=`echo $ac_package| sed 's/-/_/g'` 361 eval "with_${ac_package}=no" ;; 362 363 --x) 364 # Obsolete; use --with-x. 365 with_x=yes ;; 366 367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 368 | --x-incl | --x-inc | --x-in | --x-i) 369 ac_prev=x_includes ;; 370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 372 x_includes="$ac_optarg" ;; 373 374 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 376 ac_prev=x_libraries ;; 377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 379 x_libraries="$ac_optarg" ;; 380 381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 382 ;; 383 384 *) 385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 386 echo "configure: warning: $ac_option: invalid host type" 1>&2 387 fi 388 if test "x$nonopt" != xNONE; then 389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 390 fi 391 nonopt="$ac_option" 392 ;; 393 394 esac 395done 396 397if test -n "$ac_prev"; then 398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 399fi 400 401trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 402 403# File descriptor usage: 404# 0 standard input 405# 1 file creation 406# 2 errors and warnings 407# 3 some systems may open it to /dev/tty 408# 4 used on the Kubota Titan 409# 6 checking for... messages and results 410# 5 compiler messages saved in config.log 411if test "$silent" = yes; then 412 exec 6>/dev/null 413else 414 exec 6>&1 415fi 416exec 5>./config.log 417 418echo "\ 419This file contains any messages produced by compilers while 420running configure, to aid debugging if configure makes a mistake. 421" 1>&5 422 423# Strip out --no-create and --no-recursion so they do not pile up. 424# Also quote any args containing shell metacharacters. 425ac_configure_args= 426for ac_arg 427do 428 case "$ac_arg" in 429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 430 | --no-cr | --no-c) ;; 431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 434 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 435 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 436 esac 437done 438 439# NLS nuisances. 440# Only set these to C if already set. These must not be set unconditionally 441# because not all systems understand e.g. LANG=C (notably SCO). 442# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 443# Non-C LC_CTYPE values break the ctype check. 444if test "${LANG+set}" = set; then LANG=C; export LANG; fi 445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 447if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 448 449# confdefs.h avoids OS command line length limits that DEFS can exceed. 450rm -rf conftest* confdefs.h 451# AIX cpp loses on an empty file, so make sure it contains at least a newline. 452echo > confdefs.h 453 454# A filename unique to this package, relative to the directory that 455# configure is in, which we can look for to find out if srcdir is correct. 456ac_unique_file=main.c 457 458# Find the source files, if location was not specified. 459if test -z "$srcdir"; then 460 ac_srcdir_defaulted=yes 461 # Try the directory containing this script, then its parent. 462 ac_prog=$0 463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 465 srcdir=$ac_confdir 466 if test ! -r $srcdir/$ac_unique_file; then 467 srcdir=.. 468 fi 469else 470 ac_srcdir_defaulted=no 471fi 472if test ! -r $srcdir/$ac_unique_file; then 473 if test "$ac_srcdir_defaulted" = yes; then 474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 475 else 476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 477 fi 478fi 479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 480 481# Prefer explicitly selected file to automatically selected ones. 482if test -z "$CONFIG_SITE"; then 483 if test "x$prefix" != xNONE; then 484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 485 else 486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 487 fi 488fi 489for ac_site_file in $CONFIG_SITE; do 490 if test -r "$ac_site_file"; then 491 echo "loading site script $ac_site_file" 492 . "$ac_site_file" 493 fi 494done 495 496if test -r "$cache_file"; then 497 echo "loading cache $cache_file" 498 . $cache_file 499else 500 echo "creating cache $cache_file" 501 > $cache_file 502fi 503 504ac_ext=c 505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 506ac_cpp='$CPP $CPPFLAGS' 507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 509cross_compiling=$ac_cv_prog_cc_cross 510 511ac_exeext= 512ac_objext=o 513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 516 ac_n= ac_c=' 517' ac_t=' ' 518 else 519 ac_n=-n ac_c= ac_t= 520 fi 521else 522 ac_n= ac_c='\c' ac_t= 523fi 524 525 526 527ac_aux_dir= 528for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 529 if test -f $ac_dir/install-sh; then 530 ac_aux_dir=$ac_dir 531 ac_install_sh="$ac_aux_dir/install-sh -c" 532 break 533 elif test -f $ac_dir/install.sh; then 534 ac_aux_dir=$ac_dir 535 ac_install_sh="$ac_aux_dir/install.sh -c" 536 break 537 fi 538done 539if test -z "$ac_aux_dir"; then 540 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 541fi 542ac_config_guess=$ac_aux_dir/config.guess 543ac_config_sub=$ac_aux_dir/config.sub 544ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 545 546am__api_version="1.4" 547# Find a good install program. We prefer a C program (faster), 548# so one script is as good as another. But avoid the broken or 549# incompatible versions: 550# SysV /etc/install, /usr/sbin/install 551# SunOS /usr/etc/install 552# IRIX /sbin/install 553# AIX /bin/install 554# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 555# AFS /usr/afsws/bin/install, which mishandles nonexistent args 556# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 557# ./install, which can be erroneously created by make from ./install.sh. 558echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 559echo "configure:560: checking for a BSD compatible install" >&5 560if test -z "$INSTALL"; then 561if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 562 echo $ac_n "(cached) $ac_c" 1>&6 563else 564 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 565 for ac_dir in $PATH; do 566 # Account for people who put trailing slashes in PATH elements. 567 case "$ac_dir/" in 568 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 569 *) 570 # OSF1 and SCO ODT 3.0 have their own names for install. 571 # Don't use installbsd from OSF since it installs stuff as root 572 # by default. 573 for ac_prog in ginstall scoinst install; do 574 if test -f $ac_dir/$ac_prog; then 575 if test $ac_prog = install && 576 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 577 # AIX install. It has an incompatible calling convention. 578 : 579 else 580 ac_cv_path_install="$ac_dir/$ac_prog -c" 581 break 2 582 fi 583 fi 584 done 585 ;; 586 esac 587 done 588 IFS="$ac_save_IFS" 589 590fi 591 if test "${ac_cv_path_install+set}" = set; then 592 INSTALL="$ac_cv_path_install" 593 else 594 # As a last resort, use the slow shell script. We don't cache a 595 # path for INSTALL within a source directory, because that will 596 # break other packages using the cache if that directory is 597 # removed, or if the path is relative. 598 INSTALL="$ac_install_sh" 599 fi 600fi 601echo "$ac_t""$INSTALL" 1>&6 602 603# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 604# It thinks the first close brace ends the variable substitution. 605test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 606 607test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 608 609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 610 611echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 612echo "configure:613: checking whether build environment is sane" >&5 613# Just in case 614sleep 1 615echo timestamp > conftestfile 616# Do `set' in a subshell so we don't clobber the current shell's 617# arguments. Must try -L first in case configure is actually a 618# symlink; some systems play weird games with the mod time of symlinks 619# (eg FreeBSD returns the mod time of the symlink's containing 620# directory). 621if ( 622 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 623 if test "$*" = "X"; then 624 # -L didn't work. 625 set X `ls -t $srcdir/configure conftestfile` 626 fi 627 if test "$*" != "X $srcdir/configure conftestfile" \ 628 && test "$*" != "X conftestfile $srcdir/configure"; then 629 630 # If neither matched, then we have a broken ls. This can happen 631 # if, for instance, CONFIG_SHELL is bash and it inherits a 632 # broken ls alias from the environment. This has actually 633 # happened. Such a system could not be considered "sane". 634 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 635alias in your environment" 1>&2; exit 1; } 636 fi 637 638 test "$2" = conftestfile 639 ) 640then 641 # Ok. 642 : 643else 644 { echo "configure: error: newly created file is older than distributed files! 645Check your system clock" 1>&2; exit 1; } 646fi 647rm -f conftest* 648echo "$ac_t""yes" 1>&6 649if test "$program_transform_name" = s,x,x,; then 650 program_transform_name= 651else 652 # Double any \ or $. echo might interpret backslashes. 653 cat <<\EOF_SED > conftestsed 654s,\\,\\\\,g; s,\$,$$,g 655EOF_SED 656 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 657 rm -f conftestsed 658fi 659test "$program_prefix" != NONE && 660 program_transform_name="s,^,${program_prefix},; $program_transform_name" 661# Use a double $ so make ignores it. 662test "$program_suffix" != NONE && 663 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 664 665# sed with no file args requires a program. 666test "$program_transform_name" = "" && program_transform_name="s,x,x," 667 668echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 669echo "configure:670: checking whether ${MAKE-make} sets \${MAKE}" >&5 670set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 671if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 672 echo $ac_n "(cached) $ac_c" 1>&6 673else 674 cat > conftestmake <<\EOF 675all: 676 @echo 'ac_maketemp="${MAKE}"' 677EOF 678# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 679eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 680if test -n "$ac_maketemp"; then 681 eval ac_cv_prog_make_${ac_make}_set=yes 682else 683 eval ac_cv_prog_make_${ac_make}_set=no 684fi 685rm -f conftestmake 686fi 687if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 688 echo "$ac_t""yes" 1>&6 689 SET_MAKE= 690else 691 echo "$ac_t""no" 1>&6 692 SET_MAKE="MAKE=${MAKE-make}" 693fi 694 695 696PACKAGE=links 697 698VERSION=1.04 699 700if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 701 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 702fi 703cat >> confdefs.h <<EOF 704#define PACKAGE "$PACKAGE" 705EOF 706 707cat >> confdefs.h <<EOF 708#define VERSION "$VERSION" 709EOF 710 711 712 713missing_dir=`cd $ac_aux_dir && pwd` 714echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6 715echo "configure:716: checking for working aclocal-${am__api_version}" >&5 716# Run test in a subshell; some versions of sh will print an error if 717# an executable is not found, even if stderr is redirected. 718# Redirect stdin to placate older versions of autoconf. Sigh. 719if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 720 ACLOCAL=aclocal-${am__api_version} 721 echo "$ac_t""found" 1>&6 722else 723 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" 724 echo "$ac_t""missing" 1>&6 725fi 726 727echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 728echo "configure:729: checking for working autoconf" >&5 729# Run test in a subshell; some versions of sh will print an error if 730# an executable is not found, even if stderr is redirected. 731# Redirect stdin to placate older versions of autoconf. Sigh. 732if (autoconf --version) < /dev/null > /dev/null 2>&1; then 733 AUTOCONF=autoconf 734 echo "$ac_t""found" 1>&6 735else 736 AUTOCONF="$missing_dir/missing autoconf" 737 echo "$ac_t""missing" 1>&6 738fi 739 740echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 741echo "configure:742: checking for working automake-${am__api_version}" >&5 742# Run test in a subshell; some versions of sh will print an error if 743# an executable is not found, even if stderr is redirected. 744# Redirect stdin to placate older versions of autoconf. Sigh. 745if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 746 AUTOMAKE=automake-${am__api_version} 747 echo "$ac_t""found" 1>&6 748else 749 AUTOMAKE="$missing_dir/missing automake-${am__api_version}" 750 echo "$ac_t""missing" 1>&6 751fi 752 753echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 754echo "configure:755: checking for working autoheader" >&5 755# Run test in a subshell; some versions of sh will print an error if 756# an executable is not found, even if stderr is redirected. 757# Redirect stdin to placate older versions of autoconf. Sigh. 758if (autoheader --version) < /dev/null > /dev/null 2>&1; then 759 AUTOHEADER=autoheader 760 echo "$ac_t""found" 1>&6 761else 762 AUTOHEADER="$missing_dir/missing autoheader" 763 echo "$ac_t""missing" 1>&6 764fi 765 766echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 767echo "configure:768: checking for working makeinfo" >&5 768# Run test in a subshell; some versions of sh will print an error if 769# an executable is not found, even if stderr is redirected. 770# Redirect stdin to placate older versions of autoconf. Sigh. 771if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 772 MAKEINFO=makeinfo 773 echo "$ac_t""found" 1>&6 774else 775 MAKEINFO="$missing_dir/missing makeinfo" 776 echo "$ac_t""missing" 1>&6 777fi 778 779 780 781ACLOCAL="./missing aclocal" 782AUTOCONF="./missing autoconf" 783AUTOMAKE="./missing automake" 784AUTOHEADER="./missing autoheader" 785 786 787 788 789 790# Extract the first word of "gcc", so it can be a program name with args. 791set dummy gcc; ac_word=$2 792echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 793echo "configure:794: checking for $ac_word" >&5 794if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 795 echo $ac_n "(cached) $ac_c" 1>&6 796else 797 if test -n "$CC"; then 798 ac_cv_prog_CC="$CC" # Let the user override the test. 799else 800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 801 ac_dummy="$PATH" 802 for ac_dir in $ac_dummy; do 803 test -z "$ac_dir" && ac_dir=. 804 if test -f $ac_dir/$ac_word; then 805 ac_cv_prog_CC="gcc" 806 break 807 fi 808 done 809 IFS="$ac_save_ifs" 810fi 811fi 812CC="$ac_cv_prog_CC" 813if test -n "$CC"; then 814 echo "$ac_t""$CC" 1>&6 815else 816 echo "$ac_t""no" 1>&6 817fi 818 819if test -z "$CC"; then 820 # Extract the first word of "cc", so it can be a program name with args. 821set dummy cc; ac_word=$2 822echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 823echo "configure:824: checking for $ac_word" >&5 824if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 825 echo $ac_n "(cached) $ac_c" 1>&6 826else 827 if test -n "$CC"; then 828 ac_cv_prog_CC="$CC" # Let the user override the test. 829else 830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 831 ac_prog_rejected=no 832 ac_dummy="$PATH" 833 for ac_dir in $ac_dummy; do 834 test -z "$ac_dir" && ac_dir=. 835 if test -f $ac_dir/$ac_word; then 836 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 837 ac_prog_rejected=yes 838 continue 839 fi 840 ac_cv_prog_CC="cc" 841 break 842 fi 843 done 844 IFS="$ac_save_ifs" 845if test $ac_prog_rejected = yes; then 846 # We found a bogon in the path, so make sure we never use it. 847 set dummy $ac_cv_prog_CC 848 shift 849 if test $# -gt 0; then 850 # We chose a different compiler from the bogus one. 851 # However, it has the same basename, so the bogon will be chosen 852 # first if we set CC to just the basename; use the full file name. 853 shift 854 set dummy "$ac_dir/$ac_word" "$@" 855 shift 856 ac_cv_prog_CC="$@" 857 fi 858fi 859fi 860fi 861CC="$ac_cv_prog_CC" 862if test -n "$CC"; then 863 echo "$ac_t""$CC" 1>&6 864else 865 echo "$ac_t""no" 1>&6 866fi 867 868 if test -z "$CC"; then 869 case "`uname -s`" in 870 *win32* | *WIN32*) 871 # Extract the first word of "cl", so it can be a program name with args. 872set dummy cl; ac_word=$2 873echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 874echo "configure:875: checking for $ac_word" >&5 875if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 876 echo $ac_n "(cached) $ac_c" 1>&6 877else 878 if test -n "$CC"; then 879 ac_cv_prog_CC="$CC" # Let the user override the test. 880else 881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 882 ac_dummy="$PATH" 883 for ac_dir in $ac_dummy; do 884 test -z "$ac_dir" && ac_dir=. 885 if test -f $ac_dir/$ac_word; then 886 ac_cv_prog_CC="cl" 887 break 888 fi 889 done 890 IFS="$ac_save_ifs" 891fi 892fi 893CC="$ac_cv_prog_CC" 894if test -n "$CC"; then 895 echo "$ac_t""$CC" 1>&6 896else 897 echo "$ac_t""no" 1>&6 898fi 899 ;; 900 esac 901 fi 902 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 903fi 904 905echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 906echo "configure:907: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 907 908ac_ext=c 909# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 910ac_cpp='$CPP $CPPFLAGS' 911ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 912ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 913cross_compiling=$ac_cv_prog_cc_cross 914 915cat > conftest.$ac_ext << EOF 916 917#line 918 "configure" 918#include "confdefs.h" 919 920main(){return(0);} 921EOF 922if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 923 ac_cv_prog_cc_works=yes 924 # If we can't run a trivial program, we are probably using a cross compiler. 925 if (./conftest; exit) 2>/dev/null; then 926 ac_cv_prog_cc_cross=no 927 else 928 ac_cv_prog_cc_cross=yes 929 fi 930else 931 echo "configure: failed program was:" >&5 932 cat conftest.$ac_ext >&5 933 ac_cv_prog_cc_works=no 934fi 935rm -fr conftest* 936ac_ext=c 937# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 938ac_cpp='$CPP $CPPFLAGS' 939ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 940ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 941cross_compiling=$ac_cv_prog_cc_cross 942 943echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 944if test $ac_cv_prog_cc_works = no; then 945 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 946fi 947echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 948echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 949echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 950cross_compiling=$ac_cv_prog_cc_cross 951 952echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 953echo "configure:954: checking whether we are using GNU C" >&5 954if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 955 echo $ac_n "(cached) $ac_c" 1>&6 956else 957 cat > conftest.c <<EOF 958#ifdef __GNUC__ 959 yes; 960#endif 961EOF 962if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 963 ac_cv_prog_gcc=yes 964else 965 ac_cv_prog_gcc=no 966fi 967fi 968 969echo "$ac_t""$ac_cv_prog_gcc" 1>&6 970 971if test $ac_cv_prog_gcc = yes; then 972 GCC=yes 973else 974 GCC= 975fi 976 977ac_test_CFLAGS="${CFLAGS+set}" 978ac_save_CFLAGS="$CFLAGS" 979CFLAGS= 980echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 981echo "configure:982: checking whether ${CC-cc} accepts -g" >&5 982if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 983 echo $ac_n "(cached) $ac_c" 1>&6 984else 985 echo 'void f(){}' > conftest.c 986if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 987 ac_cv_prog_cc_g=yes 988else 989 ac_cv_prog_cc_g=no 990fi 991rm -f conftest* 992 993fi 994 995echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 996if test "$ac_test_CFLAGS" = set; then 997 CFLAGS="$ac_save_CFLAGS" 998elif test $ac_cv_prog_cc_g = yes; then 999 if test "$GCC" = yes; then 1000 CFLAGS="-g -O2" 1001 else 1002 CFLAGS="-g" 1003 fi 1004else 1005 if test "$GCC" = yes; then 1006 CFLAGS="-O2" 1007 else 1008 CFLAGS= 1009 fi 1010fi 1011 1012 1013static_link=0 1014if test -n "`echo "$CC" "$LDFLAGS" "$CFLAGS" "$LIBS" | grep 'static\>'`"; then 1015 static_link=1 1016fi 1017 1018echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1019echo "configure:1020: checking how to run the C preprocessor" >&5 1020# On Suns, sometimes $CPP names a directory. 1021if test -n "$CPP" && test -d "$CPP"; then 1022 CPP= 1023fi 1024if test -z "$CPP"; then 1025if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1026 echo $ac_n "(cached) $ac_c" 1>&6 1027else 1028 # This must be in double quotes, not single quotes, because CPP may get 1029 # substituted into the Makefile and "${CC-cc}" will confuse make. 1030 CPP="${CC-cc} -E" 1031 # On the NeXT, cc -E runs the code through the compiler's parser, 1032 # not just through cpp. 1033 cat > conftest.$ac_ext <<EOF 1034#line 1035 "configure" 1035#include "confdefs.h" 1036#include <assert.h> 1037Syntax Error 1038EOF 1039ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1040{ (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1041ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1042if test -z "$ac_err"; then 1043 : 1044else 1045 echo "$ac_err" >&5 1046 echo "configure: failed program was:" >&5 1047 cat conftest.$ac_ext >&5 1048 rm -rf conftest* 1049 CPP="${CC-cc} -E -traditional-cpp" 1050 cat > conftest.$ac_ext <<EOF 1051#line 1052 "configure" 1052#include "confdefs.h" 1053#include <assert.h> 1054Syntax Error 1055EOF 1056ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1057{ (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1058ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1059if test -z "$ac_err"; then 1060 : 1061else 1062 echo "$ac_err" >&5 1063 echo "configure: failed program was:" >&5 1064 cat conftest.$ac_ext >&5 1065 rm -rf conftest* 1066 CPP="${CC-cc} -nologo -E" 1067 cat > conftest.$ac_ext <<EOF 1068#line 1069 "configure" 1069#include "confdefs.h" 1070#include <assert.h> 1071Syntax Error 1072EOF 1073ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1074{ (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1075ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1076if test -z "$ac_err"; then 1077 : 1078else 1079 echo "$ac_err" >&5 1080 echo "configure: failed program was:" >&5 1081 cat conftest.$ac_ext >&5 1082 rm -rf conftest* 1083 CPP=/lib/cpp 1084fi 1085rm -f conftest* 1086fi 1087rm -f conftest* 1088fi 1089rm -f conftest* 1090 ac_cv_prog_CPP="$CPP" 1091fi 1092 CPP="$ac_cv_prog_CPP" 1093else 1094 ac_cv_prog_CPP="$CPP" 1095fi 1096echo "$ac_t""$CPP" 1>&6 1097 1098echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1099echo "configure:1100: checking for ANSI C header files" >&5 1100if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1101 echo $ac_n "(cached) $ac_c" 1>&6 1102else 1103 cat > conftest.$ac_ext <<EOF 1104#line 1105 "configure" 1105#include "confdefs.h" 1106#include <stdlib.h> 1107#include <stdarg.h> 1108#include <string.h> 1109#include <float.h> 1110EOF 1111ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1112{ (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1113ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1114if test -z "$ac_err"; then 1115 rm -rf conftest* 1116 ac_cv_header_stdc=yes 1117else 1118 echo "$ac_err" >&5 1119 echo "configure: failed program was:" >&5 1120 cat conftest.$ac_ext >&5 1121 rm -rf conftest* 1122 ac_cv_header_stdc=no 1123fi 1124rm -f conftest* 1125 1126if test $ac_cv_header_stdc = yes; then 1127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1128cat > conftest.$ac_ext <<EOF 1129#line 1130 "configure" 1130#include "confdefs.h" 1131#include <string.h> 1132EOF 1133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1134 egrep "memchr" >/dev/null 2>&1; then 1135 : 1136else 1137 rm -rf conftest* 1138 ac_cv_header_stdc=no 1139fi 1140rm -f conftest* 1141 1142fi 1143 1144if test $ac_cv_header_stdc = yes; then 1145 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1146cat > conftest.$ac_ext <<EOF 1147#line 1148 "configure" 1148#include "confdefs.h" 1149#include <stdlib.h> 1150EOF 1151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1152 egrep "free" >/dev/null 2>&1; then 1153 : 1154else 1155 rm -rf conftest* 1156 ac_cv_header_stdc=no 1157fi 1158rm -f conftest* 1159 1160fi 1161 1162if test $ac_cv_header_stdc = yes; then 1163 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1164if test "$cross_compiling" = yes; then 1165 : 1166else 1167 cat > conftest.$ac_ext <<EOF 1168#line 1169 "configure" 1169#include "confdefs.h" 1170#include <ctype.h> 1171#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1172#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1173#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1174int main () { int i; for (i = 0; i < 256; i++) 1175if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1176exit (0); } 1177 1178EOF 1179if { (eval echo configure:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1180then 1181 : 1182else 1183 echo "configure: failed program was:" >&5 1184 cat conftest.$ac_ext >&5 1185 rm -fr conftest* 1186 ac_cv_header_stdc=no 1187fi 1188rm -fr conftest* 1189fi 1190 1191fi 1192fi 1193 1194echo "$ac_t""$ac_cv_header_stdc" 1>&6 1195if test $ac_cv_header_stdc = yes; then 1196 cat >> confdefs.h <<\EOF 1197#define STDC_HEADERS 1 1198EOF 1199 1200fi 1201 1202if test $ac_cv_prog_gcc = yes; then 1203 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 1204echo "configure:1205: checking whether ${CC-cc} needs -traditional" >&5 1205if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 1206 echo $ac_n "(cached) $ac_c" 1>&6 1207else 1208 ac_pattern="Autoconf.*'x'" 1209 cat > conftest.$ac_ext <<EOF 1210#line 1211 "configure" 1211#include "confdefs.h" 1212#include <sgtty.h> 1213Autoconf TIOCGETP 1214EOF 1215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1216 egrep "$ac_pattern" >/dev/null 2>&1; then 1217 rm -rf conftest* 1218 ac_cv_prog_gcc_traditional=yes 1219else 1220 rm -rf conftest* 1221 ac_cv_prog_gcc_traditional=no 1222fi 1223rm -f conftest* 1224 1225 1226 if test $ac_cv_prog_gcc_traditional = no; then 1227 cat > conftest.$ac_ext <<EOF 1228#line 1229 "configure" 1229#include "confdefs.h" 1230#include <termio.h> 1231Autoconf TCGETA 1232EOF 1233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1234 egrep "$ac_pattern" >/dev/null 2>&1; then 1235 rm -rf conftest* 1236 ac_cv_prog_gcc_traditional=yes 1237fi 1238rm -f conftest* 1239 1240 fi 1241fi 1242 1243echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 1244 if test $ac_cv_prog_gcc_traditional = yes; then 1245 CC="$CC -traditional" 1246 fi 1247fi 1248 1249 1250echo $ac_n "checking for EMX""... $ac_c" 1>&6 1251echo "configure:1252: checking for EMX" >&5 1252cat > conftest.$ac_ext <<EOF 1253#line 1254 "configure" 1254#include "confdefs.h" 1255 1256int main() { 1257#ifndef __EMX__ 1258kill me! 1259#endif 1260; return 0; } 1261EOF 1262if { (eval echo configure:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1263 rm -rf conftest* 1264 have_emx=yes 1265else 1266 echo "configure: failed program was:" >&5 1267 cat conftest.$ac_ext >&5 1268 rm -rf conftest* 1269 have_emx=no 1270fi 1271rm -f conftest* 1272echo "$ac_t""$have_emx" 1>&6 1273test "$ac_cv_have_emx" = yes && LDFLAGS="`echo "$LDFLAGS" | sed "s/-Zexe//g" | sed "s/-Zbin-files//g"`" 1274test "$ac_cv_have_emx" = yes && test "$static_link" = 0 && LDFLAGS="$LDFLAGS -Zcrtdll" 1275 1276echo $ac_n "checking for OpenWatcom""... $ac_c" 1>&6 1277echo "configure:1278: checking for OpenWatcom" >&5 1278if eval "test \"`echo '$''{'ac_cv_have_watcom'+set}'`\" = set"; then 1279 echo $ac_n "(cached) $ac_c" 1>&6 1280else 1281 cat > conftest.$ac_ext <<EOF 1282#line 1283 "configure" 1283#include "confdefs.h" 1284 1285int main() { 1286#ifndef __WATCOMC__ 1287 kill me! 1288 #endif 1289; return 0; } 1290EOF 1291if { (eval echo configure:1292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1292 rm -rf conftest* 1293 ac_cv_have_watcom=yes 1294else 1295 echo "configure: failed program was:" >&5 1296 cat conftest.$ac_ext >&5 1297 rm -rf conftest* 1298 ac_cv_have_watcom=no 1299fi 1300rm -f conftest* 1301 1302fi 1303 1304echo "$ac_t""$ac_cv_have_watcom" 1>&6 1305test "$ac_cv_have_watcom" = yes && ac_cv_lib_dir_opendir=no 1306 1307echo $ac_n "checking for typeof""... $ac_c" 1>&6 1308echo "configure:1309: checking for typeof" >&5 1309cat > conftest.$ac_ext <<EOF 1310#line 1311 "configure" 1311#include "confdefs.h" 1312 1313int main() { 1314int a; 1315typeof(a) b; 1316; return 0; } 1317EOF 1318if { (eval echo configure:1319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1319 rm -rf conftest* 1320 have_typeof=yes 1321else 1322 echo "configure: failed program was:" >&5 1323 cat conftest.$ac_ext >&5 1324 rm -rf conftest* 1325 have_typeof=no 1326fi 1327rm -f conftest* 1328echo "$ac_t""$have_typeof" 1>&6 1329test "$have_typeof" = yes && cat >> confdefs.h <<\EOF 1330#define HAVE_TYPEOF 1 1331EOF 1332 1333 1334echo $ac_n "checking for volatile""... $ac_c" 1>&6 1335echo "configure:1336: checking for volatile" >&5 1336if eval "test \"`echo '$''{'ac_cv_have_volatile'+set}'`\" = set"; then 1337 echo $ac_n "(cached) $ac_c" 1>&6 1338else 1339 cat > conftest.$ac_ext <<EOF 1340#line 1341 "configure" 1341#include "confdefs.h" 1342 1343int main() { 1344 1345 volatile int a = 0; 1346 return a; 1347 1348; return 0; } 1349EOF 1350if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1351 rm -rf conftest* 1352 ac_cv_have_volatile=yes 1353else 1354 echo "configure: failed program was:" >&5 1355 cat conftest.$ac_ext >&5 1356 rm -rf conftest* 1357 ac_cv_have_volatile=no 1358fi 1359rm -f conftest* 1360 1361fi 1362 1363echo "$ac_t""$ac_cv_have_volatile" 1>&6 1364if test "$ac_cv_have_volatile" = yes; then 1365 cat >> confdefs.h <<\EOF 1366#define HAVE_VOLATILE 1 1367EOF 1368 1369fi 1370 1371 1372echo $ac_n "checking for long long""... $ac_c" 1>&6 1373echo "configure:1374: checking for long long" >&5 1374cat > conftest.$ac_ext <<EOF 1375#line 1376 "configure" 1376#include "confdefs.h" 1377 1378int main() { 1379unsigned long long a; 1380; return 0; } 1381EOF 1382if { (eval echo configure:1383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1383 rm -rf conftest* 1384 ac_cv_have_long_long=yes 1385else 1386 echo "configure: failed program was:" >&5 1387 cat conftest.$ac_ext >&5 1388 rm -rf conftest* 1389 ac_cv_have_long_long=no 1390fi 1391rm -f conftest* 1392echo "$ac_t""$ac_cv_have_long_long" 1>&6 1393test "$ac_cv_have_long_long" = yes && cat >> confdefs.h <<\EOF 1394#define HAVE_LONG_LONG 1 1395EOF 1396 1397 1398echo $ac_n "checking for pointer comparison bug""... $ac_c" 1>&6 1399echo "configure:1400: checking for pointer comparison bug" >&5 1400if eval "test \"`echo '$''{'ac_cv_pointer_comparison_bug'+set}'`\" = set"; then 1401 echo $ac_n "(cached) $ac_c" 1>&6 1402else 1403 if test "$cross_compiling" = yes; then 1404 if test -n "`echo "$CC"|grep ^tcc`"; then 1405 ac_cv_pointer_comparison_bug=yes 1406 else 1407 ac_cv_pointer_comparison_bug=no 1408 fi 1409 1410else 1411 cat > conftest.$ac_ext <<EOF 1412#line 1413 "configure" 1413#include "confdefs.h" 1414 1415 int main() 1416 { 1417 void *p = (void *)-1L; 1418 return p != (void *)-1L; 1419 } 1420 1421EOF 1422if { (eval echo configure:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1423then 1424 ac_cv_pointer_comparison_bug=no 1425else 1426 echo "configure: failed program was:" >&5 1427 cat conftest.$ac_ext >&5 1428 rm -fr conftest* 1429 ac_cv_pointer_comparison_bug=yes 1430fi 1431rm -fr conftest* 1432fi 1433 1434 1435fi 1436 1437echo "$ac_t""$ac_cv_pointer_comparison_bug" 1>&6 1438test "$ac_cv_pointer_comparison_bug" = yes && cat >> confdefs.h <<\EOF 1439#define HAVE_POINTER_COMPARISON_BUG 1 1440EOF 1441 1442 1443if test "$ac_cv_have_long_long" = yes -a "$ac_cv_have_volatile" = yes; then 1444 echo $ac_n "checking for maxint conversion bug""... $ac_c" 1>&6 1445echo "configure:1446: checking for maxint conversion bug" >&5 1446if eval "test \"`echo '$''{'ac_cv_maxint_conversion_bug'+set}'`\" = set"; then 1447 echo $ac_n "(cached) $ac_c" 1>&6 1448else 1449 if test "$cross_compiling" = yes; then 1450 if test -n "`echo "$CC"|grep ^cc`" -a "`uname -s`" = HP-UX; then 1451 ac_cv_maxint_conversion_bug=yes 1452 else 1453 ac_cv_maxint_conversion_bug=no 1454 fi 1455 1456else 1457 cat > conftest.$ac_ext <<EOF 1458#line 1459 "configure" 1459#include "confdefs.h" 1460 1461 int main() 1462 { 1463 volatile long long q = 0x7FFFFFEF; 1464 return q < 0; 1465 } 1466 1467EOF 1468if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1469then 1470 ac_cv_maxint_conversion_bug=no 1471else 1472 echo "configure: failed program was:" >&5 1473 cat conftest.$ac_ext >&5 1474 rm -fr conftest* 1475 ac_cv_maxint_conversion_bug=yes 1476fi 1477rm -fr conftest* 1478fi 1479 1480 1481fi 1482 1483echo "$ac_t""$ac_cv_maxint_conversion_bug" 1>&6 1484 test "$ac_cv_maxint_conversion_bug" = yes && cat >> confdefs.h <<\EOF 1485#define HAVE_MAXINT_CONVERSION_BUG 1 1486EOF 1487 1488fi 1489 1490 1491ac_header_dirent=no 1492for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1493do 1494ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1495echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1496echo "configure:1497: checking for $ac_hdr that defines DIR" >&5 1497if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1498 echo $ac_n "(cached) $ac_c" 1>&6 1499else 1500 cat > conftest.$ac_ext <<EOF 1501#line 1502 "configure" 1502#include "confdefs.h" 1503#include <sys/types.h> 1504#include <$ac_hdr> 1505int main() { 1506DIR *dirp = 0; 1507; return 0; } 1508EOF 1509if { (eval echo configure:1510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1510 rm -rf conftest* 1511 eval "ac_cv_header_dirent_$ac_safe=yes" 1512else 1513 echo "configure: failed program was:" >&5 1514 cat conftest.$ac_ext >&5 1515 rm -rf conftest* 1516 eval "ac_cv_header_dirent_$ac_safe=no" 1517fi 1518rm -f conftest* 1519fi 1520if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1521 echo "$ac_t""yes" 1>&6 1522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1523 cat >> confdefs.h <<EOF 1524#define $ac_tr_hdr 1 1525EOF 1526 ac_header_dirent=$ac_hdr; break 1527else 1528 echo "$ac_t""no" 1>&6 1529fi 1530done 1531# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1532if test $ac_header_dirent = dirent.h; then 1533echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1534echo "configure:1535: checking for opendir in -ldir" >&5 1535ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1536if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1537 echo $ac_n "(cached) $ac_c" 1>&6 1538else 1539 ac_save_LIBS="$LIBS" 1540LIBS="-ldir $LIBS" 1541cat > conftest.$ac_ext <<EOF 1542#line 1543 "configure" 1543#include "confdefs.h" 1544/* Override any gcc2 internal prototype to avoid an error. */ 1545/* We use char because int might match the return type of a gcc2 1546 builtin and then its argument prototype would still apply. */ 1547char opendir(); 1548 1549int main() { 1550opendir() 1551; return 0; } 1552EOF 1553if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1554 rm -rf conftest* 1555 eval "ac_cv_lib_$ac_lib_var=yes" 1556else 1557 echo "configure: failed program was:" >&5 1558 cat conftest.$ac_ext >&5 1559 rm -rf conftest* 1560 eval "ac_cv_lib_$ac_lib_var=no" 1561fi 1562rm -f conftest* 1563LIBS="$ac_save_LIBS" 1564 1565fi 1566if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1567 echo "$ac_t""yes" 1>&6 1568 LIBS="$LIBS -ldir" 1569else 1570 echo "$ac_t""no" 1>&6 1571fi 1572 1573else 1574echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1575echo "configure:1576: checking for opendir in -lx" >&5 1576ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1577if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1578 echo $ac_n "(cached) $ac_c" 1>&6 1579else 1580 ac_save_LIBS="$LIBS" 1581LIBS="-lx $LIBS" 1582cat > conftest.$ac_ext <<EOF 1583#line 1584 "configure" 1584#include "confdefs.h" 1585/* Override any gcc2 internal prototype to avoid an error. */ 1586/* We use char because int might match the return type of a gcc2 1587 builtin and then its argument prototype would still apply. */ 1588char opendir(); 1589 1590int main() { 1591opendir() 1592; return 0; } 1593EOF 1594if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1595 rm -rf conftest* 1596 eval "ac_cv_lib_$ac_lib_var=yes" 1597else 1598 echo "configure: failed program was:" >&5 1599 cat conftest.$ac_ext >&5 1600 rm -rf conftest* 1601 eval "ac_cv_lib_$ac_lib_var=no" 1602fi 1603rm -f conftest* 1604LIBS="$ac_save_LIBS" 1605 1606fi 1607if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1608 echo "$ac_t""yes" 1>&6 1609 LIBS="$LIBS -lx" 1610else 1611 echo "$ac_t""no" 1>&6 1612fi 1613 1614fi 1615 1616echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1617echo "configure:1618: checking for sys/wait.h that is POSIX.1 compatible" >&5 1618if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1619 echo $ac_n "(cached) $ac_c" 1>&6 1620else 1621 cat > conftest.$ac_ext <<EOF 1622#line 1623 "configure" 1623#include "confdefs.h" 1624#include <sys/types.h> 1625#include <sys/wait.h> 1626#ifndef WEXITSTATUS 1627#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 1628#endif 1629#ifndef WIFEXITED 1630#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 1631#endif 1632int main() { 1633int s; 1634wait (&s); 1635s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 1636; return 0; } 1637EOF 1638if { (eval echo configure:1639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1639 rm -rf conftest* 1640 ac_cv_header_sys_wait_h=yes 1641else 1642 echo "configure: failed program was:" >&5 1643 cat conftest.$ac_ext >&5 1644 rm -rf conftest* 1645 ac_cv_header_sys_wait_h=no 1646fi 1647rm -f conftest* 1648fi 1649 1650echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 1651if test $ac_cv_header_sys_wait_h = yes; then 1652 cat >> confdefs.h <<\EOF 1653#define HAVE_SYS_WAIT_H 1 1654EOF 1655 1656fi 1657 1658for ac_hdr in alloca.h 1659do 1660ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1661echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1662echo "configure:1663: checking for $ac_hdr" >&5 1663if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1664 echo $ac_n "(cached) $ac_c" 1>&6 1665else 1666 cat > conftest.$ac_ext <<EOF 1667#line 1668 "configure" 1668#include "confdefs.h" 1669#include <$ac_hdr> 1670EOF 1671ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1672{ (eval echo configure:1673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1673ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1674if test -z "$ac_err"; then 1675 rm -rf conftest* 1676 eval "ac_cv_header_$ac_safe=yes" 1677else 1678 echo "$ac_err" >&5 1679 echo "configure: failed program was:" >&5 1680 cat conftest.$ac_ext >&5 1681 rm -rf conftest* 1682 eval "ac_cv_header_$ac_safe=no" 1683fi 1684rm -f conftest* 1685fi 1686if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1687 echo "$ac_t""yes" 1>&6 1688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1689 cat >> confdefs.h <<EOF 1690#define $ac_tr_hdr 1 1691EOF 1692 1693else 1694 echo "$ac_t""no" 1>&6 1695fi 1696done 1697 1698for ac_hdr in arpa/inet.h 1699do 1700ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1701echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1702echo "configure:1703: checking for $ac_hdr" >&5 1703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1704 echo $ac_n "(cached) $ac_c" 1>&6 1705else 1706 cat > conftest.$ac_ext <<EOF 1707#line 1708 "configure" 1708#include "confdefs.h" 1709#include <$ac_hdr> 1710EOF 1711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1712{ (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1713ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1714if test -z "$ac_err"; then 1715 rm -rf conftest* 1716 eval "ac_cv_header_$ac_safe=yes" 1717else 1718 echo "$ac_err" >&5 1719 echo "configure: failed program was:" >&5 1720 cat conftest.$ac_ext >&5 1721 rm -rf conftest* 1722 eval "ac_cv_header_$ac_safe=no" 1723fi 1724rm -f conftest* 1725fi 1726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1727 echo "$ac_t""yes" 1>&6 1728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1729 cat >> confdefs.h <<EOF 1730#define $ac_tr_hdr 1 1731EOF 1732 1733else 1734 echo "$ac_t""no" 1>&6 1735fi 1736done 1737 1738for ac_hdr in cygwin/process.h 1739do 1740ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1741echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1742echo "configure:1743: checking for $ac_hdr" >&5 1743if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1744 echo $ac_n "(cached) $ac_c" 1>&6 1745else 1746 cat > conftest.$ac_ext <<EOF 1747#line 1748 "configure" 1748#include "confdefs.h" 1749#include <$ac_hdr> 1750EOF 1751ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1752{ (eval echo configure:1753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1753ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1754if test -z "$ac_err"; then 1755 rm -rf conftest* 1756 eval "ac_cv_header_$ac_safe=yes" 1757else 1758 echo "$ac_err" >&5 1759 echo "configure: failed program was:" >&5 1760 cat conftest.$ac_ext >&5 1761 rm -rf conftest* 1762 eval "ac_cv_header_$ac_safe=no" 1763fi 1764rm -f conftest* 1765fi 1766if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1767 echo "$ac_t""yes" 1>&6 1768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1769 cat >> confdefs.h <<EOF 1770#define $ac_tr_hdr 1 1771EOF 1772 1773else 1774 echo "$ac_t""no" 1>&6 1775fi 1776done 1777 1778for ac_hdr in fcntl.h 1779do 1780ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1781echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1782echo "configure:1783: checking for $ac_hdr" >&5 1783if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1784 echo $ac_n "(cached) $ac_c" 1>&6 1785else 1786 cat > conftest.$ac_ext <<EOF 1787#line 1788 "configure" 1788#include "confdefs.h" 1789#include <$ac_hdr> 1790EOF 1791ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1792{ (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1793ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1794if test -z "$ac_err"; then 1795 rm -rf conftest* 1796 eval "ac_cv_header_$ac_safe=yes" 1797else 1798 echo "$ac_err" >&5 1799 echo "configure: failed program was:" >&5 1800 cat conftest.$ac_ext >&5 1801 rm -rf conftest* 1802 eval "ac_cv_header_$ac_safe=no" 1803fi 1804rm -f conftest* 1805fi 1806if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1807 echo "$ac_t""yes" 1>&6 1808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1809 cat >> confdefs.h <<EOF 1810#define $ac_tr_hdr 1 1811EOF 1812 1813else 1814 echo "$ac_t""no" 1>&6 1815fi 1816done 1817 1818for ac_hdr in grp.h 1819do 1820ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1821echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1822echo "configure:1823: checking for $ac_hdr" >&5 1823if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1824 echo $ac_n "(cached) $ac_c" 1>&6 1825else 1826 cat > conftest.$ac_ext <<EOF 1827#line 1828 "configure" 1828#include "confdefs.h" 1829#include <$ac_hdr> 1830EOF 1831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1832{ (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1833ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1834if test -z "$ac_err"; then 1835 rm -rf conftest* 1836 eval "ac_cv_header_$ac_safe=yes" 1837else 1838 echo "$ac_err" >&5 1839 echo "configure: failed program was:" >&5 1840 cat conftest.$ac_ext >&5 1841 rm -rf conftest* 1842 eval "ac_cv_header_$ac_safe=no" 1843fi 1844rm -f conftest* 1845fi 1846if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1847 echo "$ac_t""yes" 1>&6 1848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1849 cat >> confdefs.h <<EOF 1850#define $ac_tr_hdr 1 1851EOF 1852 1853else 1854 echo "$ac_t""no" 1>&6 1855fi 1856done 1857 1858for ac_hdr in interix/interix.h 1859do 1860ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1861echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1862echo "configure:1863: checking for $ac_hdr" >&5 1863if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1864 echo $ac_n "(cached) $ac_c" 1>&6 1865else 1866 cat > conftest.$ac_ext <<EOF 1867#line 1868 "configure" 1868#include "confdefs.h" 1869#include <$ac_hdr> 1870EOF 1871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1872{ (eval echo configure:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1873ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1874if test -z "$ac_err"; then 1875 rm -rf conftest* 1876 eval "ac_cv_header_$ac_safe=yes" 1877else 1878 echo "$ac_err" >&5 1879 echo "configure: failed program was:" >&5 1880 cat conftest.$ac_ext >&5 1881 rm -rf conftest* 1882 eval "ac_cv_header_$ac_safe=no" 1883fi 1884rm -f conftest* 1885fi 1886if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1887 echo "$ac_t""yes" 1>&6 1888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1889 cat >> confdefs.h <<EOF 1890#define $ac_tr_hdr 1 1891EOF 1892 1893else 1894 echo "$ac_t""no" 1>&6 1895fi 1896done 1897 1898for ac_hdr in inttypes.h 1899do 1900ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1901echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1902echo "configure:1903: checking for $ac_hdr" >&5 1903if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1904 echo $ac_n "(cached) $ac_c" 1>&6 1905else 1906 cat > conftest.$ac_ext <<EOF 1907#line 1908 "configure" 1908#include "confdefs.h" 1909#include <$ac_hdr> 1910EOF 1911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1912{ (eval echo configure:1913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1913ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1914if test -z "$ac_err"; then 1915 rm -rf conftest* 1916 eval "ac_cv_header_$ac_safe=yes" 1917else 1918 echo "$ac_err" >&5 1919 echo "configure: failed program was:" >&5 1920 cat conftest.$ac_ext >&5 1921 rm -rf conftest* 1922 eval "ac_cv_header_$ac_safe=no" 1923fi 1924rm -f conftest* 1925fi 1926if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1927 echo "$ac_t""yes" 1>&6 1928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1929 cat >> confdefs.h <<EOF 1930#define $ac_tr_hdr 1 1931EOF 1932 1933else 1934 echo "$ac_t""no" 1>&6 1935fi 1936done 1937 1938for ac_hdr in io.h 1939do 1940ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1941echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1942echo "configure:1943: checking for $ac_hdr" >&5 1943if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1944 echo $ac_n "(cached) $ac_c" 1>&6 1945else 1946 cat > conftest.$ac_ext <<EOF 1947#line 1948 "configure" 1948#include "confdefs.h" 1949#include <$ac_hdr> 1950EOF 1951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1952{ (eval echo configure:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1954if test -z "$ac_err"; then 1955 rm -rf conftest* 1956 eval "ac_cv_header_$ac_safe=yes" 1957else 1958 echo "$ac_err" >&5 1959 echo "configure: failed program was:" >&5 1960 cat conftest.$ac_ext >&5 1961 rm -rf conftest* 1962 eval "ac_cv_header_$ac_safe=no" 1963fi 1964rm -f conftest* 1965fi 1966if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1967 echo "$ac_t""yes" 1>&6 1968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1969 cat >> confdefs.h <<EOF 1970#define $ac_tr_hdr 1 1971EOF 1972 1973else 1974 echo "$ac_t""no" 1>&6 1975fi 1976done 1977 1978for ac_hdr in limits.h 1979do 1980ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1981echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1982echo "configure:1983: checking for $ac_hdr" >&5 1983if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1984 echo $ac_n "(cached) $ac_c" 1>&6 1985else 1986 cat > conftest.$ac_ext <<EOF 1987#line 1988 "configure" 1988#include "confdefs.h" 1989#include <$ac_hdr> 1990EOF 1991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1992{ (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1994if test -z "$ac_err"; then 1995 rm -rf conftest* 1996 eval "ac_cv_header_$ac_safe=yes" 1997else 1998 echo "$ac_err" >&5 1999 echo "configure: failed program was:" >&5 2000 cat conftest.$ac_ext >&5 2001 rm -rf conftest* 2002 eval "ac_cv_header_$ac_safe=no" 2003fi 2004rm -f conftest* 2005fi 2006if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2007 echo "$ac_t""yes" 1>&6 2008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2009 cat >> confdefs.h <<EOF 2010#define $ac_tr_hdr 1 2011EOF 2012 2013else 2014 echo "$ac_t""no" 1>&6 2015fi 2016done 2017 2018for ac_hdr in malloc.h 2019do 2020ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2021echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2022echo "configure:2023: checking for $ac_hdr" >&5 2023if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2024 echo $ac_n "(cached) $ac_c" 1>&6 2025else 2026 cat > conftest.$ac_ext <<EOF 2027#line 2028 "configure" 2028#include "confdefs.h" 2029#include <$ac_hdr> 2030EOF 2031ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2032{ (eval echo configure:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2033ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2034if test -z "$ac_err"; then 2035 rm -rf conftest* 2036 eval "ac_cv_header_$ac_safe=yes" 2037else 2038 echo "$ac_err" >&5 2039 echo "configure: failed program was:" >&5 2040 cat conftest.$ac_ext >&5 2041 rm -rf conftest* 2042 eval "ac_cv_header_$ac_safe=no" 2043fi 2044rm -f conftest* 2045fi 2046if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2047 echo "$ac_t""yes" 1>&6 2048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2049 cat >> confdefs.h <<EOF 2050#define $ac_tr_hdr 1 2051EOF 2052 2053else 2054 echo "$ac_t""no" 1>&6 2055fi 2056done 2057 2058for ac_hdr in net/socket.h 2059do 2060ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2061echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2062echo "configure:2063: checking for $ac_hdr" >&5 2063if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2064 echo $ac_n "(cached) $ac_c" 1>&6 2065else 2066 cat > conftest.$ac_ext <<EOF 2067#line 2068 "configure" 2068#include "confdefs.h" 2069#include <$ac_hdr> 2070EOF 2071ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2072{ (eval echo configure:2073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2073ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2074if test -z "$ac_err"; then 2075 rm -rf conftest* 2076 eval "ac_cv_header_$ac_safe=yes" 2077else 2078 echo "$ac_err" >&5 2079 echo "configure: failed program was:" >&5 2080 cat conftest.$ac_ext >&5 2081 rm -rf conftest* 2082 eval "ac_cv_header_$ac_safe=no" 2083fi 2084rm -f conftest* 2085fi 2086if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2087 echo "$ac_t""yes" 1>&6 2088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2089 cat >> confdefs.h <<EOF 2090#define $ac_tr_hdr 1 2091EOF 2092 2093else 2094 echo "$ac_t""no" 1>&6 2095fi 2096done 2097 2098for ac_hdr in netinet/in_system.h 2099do 2100ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2101echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2102echo "configure:2103: checking for $ac_hdr" >&5 2103if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2104 echo $ac_n "(cached) $ac_c" 1>&6 2105else 2106 cat > conftest.$ac_ext <<EOF 2107#line 2108 "configure" 2108#include "confdefs.h" 2109#include <$ac_hdr> 2110EOF 2111ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2112{ (eval echo configure:2113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2113ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2114if test -z "$ac_err"; then 2115 rm -rf conftest* 2116 eval "ac_cv_header_$ac_safe=yes" 2117else 2118 echo "$ac_err" >&5 2119 echo "configure: failed program was:" >&5 2120 cat conftest.$ac_ext >&5 2121 rm -rf conftest* 2122 eval "ac_cv_header_$ac_safe=no" 2123fi 2124rm -f conftest* 2125fi 2126if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2127 echo "$ac_t""yes" 1>&6 2128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2129 cat >> confdefs.h <<EOF 2130#define $ac_tr_hdr 1 2131EOF 2132 2133else 2134 echo "$ac_t""no" 1>&6 2135fi 2136done 2137 2138for ac_hdr in netinet/in_systm.h 2139do 2140ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2141echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2142echo "configure:2143: checking for $ac_hdr" >&5 2143if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2144 echo $ac_n "(cached) $ac_c" 1>&6 2145else 2146 cat > conftest.$ac_ext <<EOF 2147#line 2148 "configure" 2148#include "confdefs.h" 2149#include <$ac_hdr> 2150EOF 2151ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2152{ (eval echo configure:2153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2153ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2154if test -z "$ac_err"; then 2155 rm -rf conftest* 2156 eval "ac_cv_header_$ac_safe=yes" 2157else 2158 echo "$ac_err" >&5 2159 echo "configure: failed program was:" >&5 2160 cat conftest.$ac_ext >&5 2161 rm -rf conftest* 2162 eval "ac_cv_header_$ac_safe=no" 2163fi 2164rm -f conftest* 2165fi 2166if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2167 echo "$ac_t""yes" 1>&6 2168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2169 cat >> confdefs.h <<EOF 2170#define $ac_tr_hdr 1 2171EOF 2172 2173else 2174 echo "$ac_t""no" 1>&6 2175fi 2176done 2177 2178for ac_hdr in netinet/ip.h 2179do 2180ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2181echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2182echo "configure:2183: checking for $ac_hdr" >&5 2183if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2184 echo $ac_n "(cached) $ac_c" 1>&6 2185else 2186 cat > conftest.$ac_ext <<EOF 2187#line 2188 "configure" 2188#include "confdefs.h" 2189#include <$ac_hdr> 2190EOF 2191ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2192{ (eval echo configure:2193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2193ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2194if test -z "$ac_err"; then 2195 rm -rf conftest* 2196 eval "ac_cv_header_$ac_safe=yes" 2197else 2198 echo "$ac_err" >&5 2199 echo "configure: failed program was:" >&5 2200 cat conftest.$ac_ext >&5 2201 rm -rf conftest* 2202 eval "ac_cv_header_$ac_safe=no" 2203fi 2204rm -f conftest* 2205fi 2206if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2207 echo "$ac_t""yes" 1>&6 2208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2209 cat >> confdefs.h <<EOF 2210#define $ac_tr_hdr 1 2211EOF 2212 2213else 2214 echo "$ac_t""no" 1>&6 2215fi 2216done 2217 2218for ac_hdr in process.h 2219do 2220ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2221echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2222echo "configure:2223: checking for $ac_hdr" >&5 2223if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2224 echo $ac_n "(cached) $ac_c" 1>&6 2225else 2226 cat > conftest.$ac_ext <<EOF 2227#line 2228 "configure" 2228#include "confdefs.h" 2229#include <$ac_hdr> 2230EOF 2231ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2232{ (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2233ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2234if test -z "$ac_err"; then 2235 rm -rf conftest* 2236 eval "ac_cv_header_$ac_safe=yes" 2237else 2238 echo "$ac_err" >&5 2239 echo "configure: failed program was:" >&5 2240 cat conftest.$ac_ext >&5 2241 rm -rf conftest* 2242 eval "ac_cv_header_$ac_safe=no" 2243fi 2244rm -f conftest* 2245fi 2246if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2247 echo "$ac_t""yes" 1>&6 2248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2249 cat >> confdefs.h <<EOF 2250#define $ac_tr_hdr 1 2251EOF 2252 2253else 2254 echo "$ac_t""no" 1>&6 2255fi 2256done 2257 2258for ac_hdr in pwd.h 2259do 2260ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2261echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2262echo "configure:2263: checking for $ac_hdr" >&5 2263if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2264 echo $ac_n "(cached) $ac_c" 1>&6 2265else 2266 cat > conftest.$ac_ext <<EOF 2267#line 2268 "configure" 2268#include "confdefs.h" 2269#include <$ac_hdr> 2270EOF 2271ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2272{ (eval echo configure:2273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2273ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2274if test -z "$ac_err"; then 2275 rm -rf conftest* 2276 eval "ac_cv_header_$ac_safe=yes" 2277else 2278 echo "$ac_err" >&5 2279 echo "configure: failed program was:" >&5 2280 cat conftest.$ac_ext >&5 2281 rm -rf conftest* 2282 eval "ac_cv_header_$ac_safe=no" 2283fi 2284rm -f conftest* 2285fi 2286if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2287 echo "$ac_t""yes" 1>&6 2288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2289 cat >> confdefs.h <<EOF 2290#define $ac_tr_hdr 1 2291EOF 2292 2293else 2294 echo "$ac_t""no" 1>&6 2295fi 2296done 2297 2298for ac_hdr in sgtty.h 2299do 2300ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2301echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2302echo "configure:2303: checking for $ac_hdr" >&5 2303if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2304 echo $ac_n "(cached) $ac_c" 1>&6 2305else 2306 cat > conftest.$ac_ext <<EOF 2307#line 2308 "configure" 2308#include "confdefs.h" 2309#include <$ac_hdr> 2310EOF 2311ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2312{ (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2313ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2314if test -z "$ac_err"; then 2315 rm -rf conftest* 2316 eval "ac_cv_header_$ac_safe=yes" 2317else 2318 echo "$ac_err" >&5 2319 echo "configure: failed program was:" >&5 2320 cat conftest.$ac_ext >&5 2321 rm -rf conftest* 2322 eval "ac_cv_header_$ac_safe=no" 2323fi 2324rm -f conftest* 2325fi 2326if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2327 echo "$ac_t""yes" 1>&6 2328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2329 cat >> confdefs.h <<EOF 2330#define $ac_tr_hdr 1 2331EOF 2332 2333else 2334 echo "$ac_t""no" 1>&6 2335fi 2336done 2337 2338for ac_hdr in stdarg.h 2339do 2340ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2341echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2342echo "configure:2343: checking for $ac_hdr" >&5 2343if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2344 echo $ac_n "(cached) $ac_c" 1>&6 2345else 2346 cat > conftest.$ac_ext <<EOF 2347#line 2348 "configure" 2348#include "confdefs.h" 2349#include <$ac_hdr> 2350EOF 2351ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2352{ (eval echo configure:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2353ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2354if test -z "$ac_err"; then 2355 rm -rf conftest* 2356 eval "ac_cv_header_$ac_safe=yes" 2357else 2358 echo "$ac_err" >&5 2359 echo "configure: failed program was:" >&5 2360 cat conftest.$ac_ext >&5 2361 rm -rf conftest* 2362 eval "ac_cv_header_$ac_safe=no" 2363fi 2364rm -f conftest* 2365fi 2366if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2367 echo "$ac_t""yes" 1>&6 2368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2369 cat >> confdefs.h <<EOF 2370#define $ac_tr_hdr 1 2371EOF 2372 2373else 2374 echo "$ac_t""no" 1>&6 2375fi 2376done 2377 2378for ac_hdr in stdlib.h 2379do 2380ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2381echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2382echo "configure:2383: checking for $ac_hdr" >&5 2383if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2384 echo $ac_n "(cached) $ac_c" 1>&6 2385else 2386 cat > conftest.$ac_ext <<EOF 2387#line 2388 "configure" 2388#include "confdefs.h" 2389#include <$ac_hdr> 2390EOF 2391ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2392{ (eval echo configure:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2393ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2394if test -z "$ac_err"; then 2395 rm -rf conftest* 2396 eval "ac_cv_header_$ac_safe=yes" 2397else 2398 echo "$ac_err" >&5 2399 echo "configure: failed program was:" >&5 2400 cat conftest.$ac_ext >&5 2401 rm -rf conftest* 2402 eval "ac_cv_header_$ac_safe=no" 2403fi 2404rm -f conftest* 2405fi 2406if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2407 echo "$ac_t""yes" 1>&6 2408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2409 cat >> confdefs.h <<EOF 2410#define $ac_tr_hdr 1 2411EOF 2412 2413else 2414 echo "$ac_t""no" 1>&6 2415fi 2416done 2417 2418for ac_hdr in string.h 2419do 2420ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2421echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2422echo "configure:2423: checking for $ac_hdr" >&5 2423if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2424 echo $ac_n "(cached) $ac_c" 1>&6 2425else 2426 cat > conftest.$ac_ext <<EOF 2427#line 2428 "configure" 2428#include "confdefs.h" 2429#include <$ac_hdr> 2430EOF 2431ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2432{ (eval echo configure:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2433ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2434if test -z "$ac_err"; then 2435 rm -rf conftest* 2436 eval "ac_cv_header_$ac_safe=yes" 2437else 2438 echo "$ac_err" >&5 2439 echo "configure: failed program was:" >&5 2440 cat conftest.$ac_ext >&5 2441 rm -rf conftest* 2442 eval "ac_cv_header_$ac_safe=no" 2443fi 2444rm -f conftest* 2445fi 2446if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2447 echo "$ac_t""yes" 1>&6 2448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2449 cat >> confdefs.h <<EOF 2450#define $ac_tr_hdr 1 2451EOF 2452 2453else 2454 echo "$ac_t""no" 1>&6 2455fi 2456done 2457 2458for ac_hdr in strings.h 2459do 2460ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2461echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2462echo "configure:2463: checking for $ac_hdr" >&5 2463if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2464 echo $ac_n "(cached) $ac_c" 1>&6 2465else 2466 cat > conftest.$ac_ext <<EOF 2467#line 2468 "configure" 2468#include "confdefs.h" 2469#include <$ac_hdr> 2470EOF 2471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2472{ (eval echo configure:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2473ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2474if test -z "$ac_err"; then 2475 rm -rf conftest* 2476 eval "ac_cv_header_$ac_safe=yes" 2477else 2478 echo "$ac_err" >&5 2479 echo "configure: failed program was:" >&5 2480 cat conftest.$ac_ext >&5 2481 rm -rf conftest* 2482 eval "ac_cv_header_$ac_safe=no" 2483fi 2484rm -f conftest* 2485fi 2486if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2487 echo "$ac_t""yes" 1>&6 2488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2489 cat >> confdefs.h <<EOF 2490#define $ac_tr_hdr 1 2491EOF 2492 2493else 2494 echo "$ac_t""no" 1>&6 2495fi 2496done 2497 2498for ac_hdr in sys/cygwin.h 2499do 2500ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2501echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2502echo "configure:2503: checking for $ac_hdr" >&5 2503if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2504 echo $ac_n "(cached) $ac_c" 1>&6 2505else 2506 cat > conftest.$ac_ext <<EOF 2507#line 2508 "configure" 2508#include "confdefs.h" 2509#include <$ac_hdr> 2510EOF 2511ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2512{ (eval echo configure:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2513ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2514if test -z "$ac_err"; then 2515 rm -rf conftest* 2516 eval "ac_cv_header_$ac_safe=yes" 2517else 2518 echo "$ac_err" >&5 2519 echo "configure: failed program was:" >&5 2520 cat conftest.$ac_ext >&5 2521 rm -rf conftest* 2522 eval "ac_cv_header_$ac_safe=no" 2523fi 2524rm -f conftest* 2525fi 2526if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2527 echo "$ac_t""yes" 1>&6 2528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2529 cat >> confdefs.h <<EOF 2530#define $ac_tr_hdr 1 2531EOF 2532 2533else 2534 echo "$ac_t""no" 1>&6 2535fi 2536done 2537 2538for ac_hdr in sys/file.h 2539do 2540ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2541echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2542echo "configure:2543: checking for $ac_hdr" >&5 2543if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2544 echo $ac_n "(cached) $ac_c" 1>&6 2545else 2546 cat > conftest.$ac_ext <<EOF 2547#line 2548 "configure" 2548#include "confdefs.h" 2549#include <$ac_hdr> 2550EOF 2551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2552{ (eval echo configure:2553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2553ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2554if test -z "$ac_err"; then 2555 rm -rf conftest* 2556 eval "ac_cv_header_$ac_safe=yes" 2557else 2558 echo "$ac_err" >&5 2559 echo "configure: failed program was:" >&5 2560 cat conftest.$ac_ext >&5 2561 rm -rf conftest* 2562 eval "ac_cv_header_$ac_safe=no" 2563fi 2564rm -f conftest* 2565fi 2566if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2567 echo "$ac_t""yes" 1>&6 2568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2569 cat >> confdefs.h <<EOF 2570#define $ac_tr_hdr 1 2571EOF 2572 2573else 2574 echo "$ac_t""no" 1>&6 2575fi 2576done 2577 2578for ac_hdr in sys/fmutex.h 2579do 2580ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2581echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2582echo "configure:2583: checking for $ac_hdr" >&5 2583if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2584 echo $ac_n "(cached) $ac_c" 1>&6 2585else 2586 cat > conftest.$ac_ext <<EOF 2587#line 2588 "configure" 2588#include "confdefs.h" 2589#include <$ac_hdr> 2590EOF 2591ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2592{ (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2593ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2594if test -z "$ac_err"; then 2595 rm -rf conftest* 2596 eval "ac_cv_header_$ac_safe=yes" 2597else 2598 echo "$ac_err" >&5 2599 echo "configure: failed program was:" >&5 2600 cat conftest.$ac_ext >&5 2601 rm -rf conftest* 2602 eval "ac_cv_header_$ac_safe=no" 2603fi 2604rm -f conftest* 2605fi 2606if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2607 echo "$ac_t""yes" 1>&6 2608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2609 cat >> confdefs.h <<EOF 2610#define $ac_tr_hdr 1 2611EOF 2612 2613else 2614 echo "$ac_t""no" 1>&6 2615fi 2616done 2617 2618for ac_hdr in sys/ioctl.h 2619do 2620ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2621echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2622echo "configure:2623: checking for $ac_hdr" >&5 2623if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2624 echo $ac_n "(cached) $ac_c" 1>&6 2625else 2626 cat > conftest.$ac_ext <<EOF 2627#line 2628 "configure" 2628#include "confdefs.h" 2629#include <$ac_hdr> 2630EOF 2631ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2632{ (eval echo configure:2633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2633ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2634if test -z "$ac_err"; then 2635 rm -rf conftest* 2636 eval "ac_cv_header_$ac_safe=yes" 2637else 2638 echo "$ac_err" >&5 2639 echo "configure: failed program was:" >&5 2640 cat conftest.$ac_ext >&5 2641 rm -rf conftest* 2642 eval "ac_cv_header_$ac_safe=no" 2643fi 2644rm -f conftest* 2645fi 2646if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2647 echo "$ac_t""yes" 1>&6 2648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2649 cat >> confdefs.h <<EOF 2650#define $ac_tr_hdr 1 2651EOF 2652 2653else 2654 echo "$ac_t""no" 1>&6 2655fi 2656done 2657 2658for ac_hdr in sys/resource.h 2659do 2660ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2661echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2662echo "configure:2663: checking for $ac_hdr" >&5 2663if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2664 echo $ac_n "(cached) $ac_c" 1>&6 2665else 2666 cat > conftest.$ac_ext <<EOF 2667#line 2668 "configure" 2668#include "confdefs.h" 2669#include <$ac_hdr> 2670EOF 2671ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2672{ (eval echo configure:2673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2673ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2674if test -z "$ac_err"; then 2675 rm -rf conftest* 2676 eval "ac_cv_header_$ac_safe=yes" 2677else 2678 echo "$ac_err" >&5 2679 echo "configure: failed program was:" >&5 2680 cat conftest.$ac_ext >&5 2681 rm -rf conftest* 2682 eval "ac_cv_header_$ac_safe=no" 2683fi 2684rm -f conftest* 2685fi 2686if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2687 echo "$ac_t""yes" 1>&6 2688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2689 cat >> confdefs.h <<EOF 2690#define $ac_tr_hdr 1 2691EOF 2692 2693else 2694 echo "$ac_t""no" 1>&6 2695fi 2696done 2697 2698for ac_hdr in sys/select.h 2699do 2700ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2701echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2702echo "configure:2703: checking for $ac_hdr" >&5 2703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2704 echo $ac_n "(cached) $ac_c" 1>&6 2705else 2706 cat > conftest.$ac_ext <<EOF 2707#line 2708 "configure" 2708#include "confdefs.h" 2709#include <$ac_hdr> 2710EOF 2711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2712{ (eval echo configure:2713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2713ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2714if test -z "$ac_err"; then 2715 rm -rf conftest* 2716 eval "ac_cv_header_$ac_safe=yes" 2717else 2718 echo "$ac_err" >&5 2719 echo "configure: failed program was:" >&5 2720 cat conftest.$ac_ext >&5 2721 rm -rf conftest* 2722 eval "ac_cv_header_$ac_safe=no" 2723fi 2724rm -f conftest* 2725fi 2726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2727 echo "$ac_t""yes" 1>&6 2728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2729 cat >> confdefs.h <<EOF 2730#define $ac_tr_hdr 1 2731EOF 2732 2733else 2734 echo "$ac_t""no" 1>&6 2735fi 2736done 2737 2738for ac_hdr in sys/time.h 2739do 2740ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2741echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2742echo "configure:2743: checking for $ac_hdr" >&5 2743if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2744 echo $ac_n "(cached) $ac_c" 1>&6 2745else 2746 cat > conftest.$ac_ext <<EOF 2747#line 2748 "configure" 2748#include "confdefs.h" 2749#include <$ac_hdr> 2750EOF 2751ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2752{ (eval echo configure:2753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2753ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2754if test -z "$ac_err"; then 2755 rm -rf conftest* 2756 eval "ac_cv_header_$ac_safe=yes" 2757else 2758 echo "$ac_err" >&5 2759 echo "configure: failed program was:" >&5 2760 cat conftest.$ac_ext >&5 2761 rm -rf conftest* 2762 eval "ac_cv_header_$ac_safe=no" 2763fi 2764rm -f conftest* 2765fi 2766if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2767 echo "$ac_t""yes" 1>&6 2768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2769 cat >> confdefs.h <<EOF 2770#define $ac_tr_hdr 1 2771EOF 2772 2773else 2774 echo "$ac_t""no" 1>&6 2775fi 2776done 2777 2778for ac_hdr in sys/un.h 2779do 2780ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2781echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2782echo "configure:2783: checking for $ac_hdr" >&5 2783if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2784 echo $ac_n "(cached) $ac_c" 1>&6 2785else 2786 cat > conftest.$ac_ext <<EOF 2787#line 2788 "configure" 2788#include "confdefs.h" 2789#include <$ac_hdr> 2790EOF 2791ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2792{ (eval echo configure:2793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2793ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2794if test -z "$ac_err"; then 2795 rm -rf conftest* 2796 eval "ac_cv_header_$ac_safe=yes" 2797else 2798 echo "$ac_err" >&5 2799 echo "configure: failed program was:" >&5 2800 cat conftest.$ac_ext >&5 2801 rm -rf conftest* 2802 eval "ac_cv_header_$ac_safe=no" 2803fi 2804rm -f conftest* 2805fi 2806if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2807 echo "$ac_t""yes" 1>&6 2808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2809 cat >> confdefs.h <<EOF 2810#define $ac_tr_hdr 1 2811EOF 2812 2813else 2814 echo "$ac_t""no" 1>&6 2815fi 2816done 2817 2818for ac_hdr in sys/utsname.h 2819do 2820ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2821echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2822echo "configure:2823: checking for $ac_hdr" >&5 2823if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2824 echo $ac_n "(cached) $ac_c" 1>&6 2825else 2826 cat > conftest.$ac_ext <<EOF 2827#line 2828 "configure" 2828#include "confdefs.h" 2829#include <$ac_hdr> 2830EOF 2831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2832{ (eval echo configure:2833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2833ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2834if test -z "$ac_err"; then 2835 rm -rf conftest* 2836 eval "ac_cv_header_$ac_safe=yes" 2837else 2838 echo "$ac_err" >&5 2839 echo "configure: failed program was:" >&5 2840 cat conftest.$ac_ext >&5 2841 rm -rf conftest* 2842 eval "ac_cv_header_$ac_safe=no" 2843fi 2844rm -f conftest* 2845fi 2846if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2847 echo "$ac_t""yes" 1>&6 2848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2849 cat >> confdefs.h <<EOF 2850#define $ac_tr_hdr 1 2851EOF 2852 2853else 2854 echo "$ac_t""no" 1>&6 2855fi 2856done 2857 2858for ac_hdr in termios.h 2859do 2860ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2861echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2862echo "configure:2863: checking for $ac_hdr" >&5 2863if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2864 echo $ac_n "(cached) $ac_c" 1>&6 2865else 2866 cat > conftest.$ac_ext <<EOF 2867#line 2868 "configure" 2868#include "confdefs.h" 2869#include <$ac_hdr> 2870EOF 2871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2872{ (eval echo configure:2873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2873ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2874if test -z "$ac_err"; then 2875 rm -rf conftest* 2876 eval "ac_cv_header_$ac_safe=yes" 2877else 2878 echo "$ac_err" >&5 2879 echo "configure: failed program was:" >&5 2880 cat conftest.$ac_ext >&5 2881 rm -rf conftest* 2882 eval "ac_cv_header_$ac_safe=no" 2883fi 2884rm -f conftest* 2885fi 2886if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2887 echo "$ac_t""yes" 1>&6 2888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2889 cat >> confdefs.h <<EOF 2890#define $ac_tr_hdr 1 2891EOF 2892 2893else 2894 echo "$ac_t""no" 1>&6 2895fi 2896done 2897 2898for ac_hdr in time.h 2899do 2900ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2901echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2902echo "configure:2903: checking for $ac_hdr" >&5 2903if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2904 echo $ac_n "(cached) $ac_c" 1>&6 2905else 2906 cat > conftest.$ac_ext <<EOF 2907#line 2908 "configure" 2908#include "confdefs.h" 2909#include <$ac_hdr> 2910EOF 2911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2912{ (eval echo configure:2913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2913ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2914if test -z "$ac_err"; then 2915 rm -rf conftest* 2916 eval "ac_cv_header_$ac_safe=yes" 2917else 2918 echo "$ac_err" >&5 2919 echo "configure: failed program was:" >&5 2920 cat conftest.$ac_ext >&5 2921 rm -rf conftest* 2922 eval "ac_cv_header_$ac_safe=no" 2923fi 2924rm -f conftest* 2925fi 2926if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2927 echo "$ac_t""yes" 1>&6 2928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2929 cat >> confdefs.h <<EOF 2930#define $ac_tr_hdr 1 2931EOF 2932 2933else 2934 echo "$ac_t""no" 1>&6 2935fi 2936done 2937 2938for ac_hdr in unistd.h 2939do 2940ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2941echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2942echo "configure:2943: checking for $ac_hdr" >&5 2943if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2944 echo $ac_n "(cached) $ac_c" 1>&6 2945else 2946 cat > conftest.$ac_ext <<EOF 2947#line 2948 "configure" 2948#include "confdefs.h" 2949#include <$ac_hdr> 2950EOF 2951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2952{ (eval echo configure:2953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2954if test -z "$ac_err"; then 2955 rm -rf conftest* 2956 eval "ac_cv_header_$ac_safe=yes" 2957else 2958 echo "$ac_err" >&5 2959 echo "configure: failed program was:" >&5 2960 cat conftest.$ac_ext >&5 2961 rm -rf conftest* 2962 eval "ac_cv_header_$ac_safe=no" 2963fi 2964rm -f conftest* 2965fi 2966if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2967 echo "$ac_t""yes" 1>&6 2968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2969 cat >> confdefs.h <<EOF 2970#define $ac_tr_hdr 1 2971EOF 2972 2973else 2974 echo "$ac_t""no" 1>&6 2975fi 2976done 2977 2978for ac_hdr in unixlib.h 2979do 2980ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2981echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2982echo "configure:2983: checking for $ac_hdr" >&5 2983if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2984 echo $ac_n "(cached) $ac_c" 1>&6 2985else 2986 cat > conftest.$ac_ext <<EOF 2987#line 2988 "configure" 2988#include "confdefs.h" 2989#include <$ac_hdr> 2990EOF 2991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2992{ (eval echo configure:2993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2994if test -z "$ac_err"; then 2995 rm -rf conftest* 2996 eval "ac_cv_header_$ac_safe=yes" 2997else 2998 echo "$ac_err" >&5 2999 echo "configure: failed program was:" >&5 3000 cat conftest.$ac_ext >&5 3001 rm -rf conftest* 3002 eval "ac_cv_header_$ac_safe=no" 3003fi 3004rm -f conftest* 3005fi 3006if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3007 echo "$ac_t""yes" 1>&6 3008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3009 cat >> confdefs.h <<EOF 3010#define $ac_tr_hdr 1 3011EOF 3012 3013else 3014 echo "$ac_t""no" 1>&6 3015fi 3016done 3017 3018for ac_hdr in utime.h 3019do 3020ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3021echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3022echo "configure:3023: checking for $ac_hdr" >&5 3023if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3024 echo $ac_n "(cached) $ac_c" 1>&6 3025else 3026 cat > conftest.$ac_ext <<EOF 3027#line 3028 "configure" 3028#include "confdefs.h" 3029#include <$ac_hdr> 3030EOF 3031ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3032{ (eval echo configure:3033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3033ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3034if test -z "$ac_err"; then 3035 rm -rf conftest* 3036 eval "ac_cv_header_$ac_safe=yes" 3037else 3038 echo "$ac_err" >&5 3039 echo "configure: failed program was:" >&5 3040 cat conftest.$ac_ext >&5 3041 rm -rf conftest* 3042 eval "ac_cv_header_$ac_safe=no" 3043fi 3044rm -f conftest* 3045fi 3046if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3047 echo "$ac_t""yes" 1>&6 3048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3049 cat >> confdefs.h <<EOF 3050#define $ac_tr_hdr 1 3051EOF 3052 3053else 3054 echo "$ac_t""no" 1>&6 3055fi 3056done 3057 3058for ac_hdr in uwin.h 3059do 3060ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3061echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3062echo "configure:3063: checking for $ac_hdr" >&5 3063if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3064 echo $ac_n "(cached) $ac_c" 1>&6 3065else 3066 cat > conftest.$ac_ext <<EOF 3067#line 3068 "configure" 3068#include "confdefs.h" 3069#include <$ac_hdr> 3070EOF 3071ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3072{ (eval echo configure:3073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3073ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3074if test -z "$ac_err"; then 3075 rm -rf conftest* 3076 eval "ac_cv_header_$ac_safe=yes" 3077else 3078 echo "$ac_err" >&5 3079 echo "configure: failed program was:" >&5 3080 cat conftest.$ac_ext >&5 3081 rm -rf conftest* 3082 eval "ac_cv_header_$ac_safe=no" 3083fi 3084rm -f conftest* 3085fi 3086if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3087 echo "$ac_t""yes" 1>&6 3088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3089 cat >> confdefs.h <<EOF 3090#define $ac_tr_hdr 1 3091EOF 3092 3093else 3094 echo "$ac_t""no" 1>&6 3095fi 3096done 3097 3098for ac_hdr in wait.h 3099do 3100ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3101echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3102echo "configure:3103: checking for $ac_hdr" >&5 3103if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3104 echo $ac_n "(cached) $ac_c" 1>&6 3105else 3106 cat > conftest.$ac_ext <<EOF 3107#line 3108 "configure" 3108#include "confdefs.h" 3109#include <$ac_hdr> 3110EOF 3111ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3112{ (eval echo configure:3113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3113ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3114if test -z "$ac_err"; then 3115 rm -rf conftest* 3116 eval "ac_cv_header_$ac_safe=yes" 3117else 3118 echo "$ac_err" >&5 3119 echo "configure: failed program was:" >&5 3120 cat conftest.$ac_ext >&5 3121 rm -rf conftest* 3122 eval "ac_cv_header_$ac_safe=no" 3123fi 3124rm -f conftest* 3125fi 3126if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3127 echo "$ac_t""yes" 1>&6 3128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3129 cat >> confdefs.h <<EOF 3130#define $ac_tr_hdr 1 3131EOF 3132 3133else 3134 echo "$ac_t""no" 1>&6 3135fi 3136done 3137 3138 3139if test "$ac_cv_header_stdarg_h" != yes; then 3140 { echo "configure: error: stdarg.h not present" 1>&2; exit 1; } 3141fi 3142 3143echo $ac_n "checking for working const""... $ac_c" 1>&6 3144echo "configure:3145: checking for working const" >&5 3145if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 3146 echo $ac_n "(cached) $ac_c" 1>&6 3147else 3148 cat > conftest.$ac_ext <<EOF 3149#line 3150 "configure" 3150#include "confdefs.h" 3151 3152int main() { 3153 3154/* Ultrix mips cc rejects this. */ 3155typedef int charset[2]; const charset x; 3156/* SunOS 4.1.1 cc rejects this. */ 3157char const *const *ccp; 3158char **p; 3159/* NEC SVR4.0.2 mips cc rejects this. */ 3160struct point {int x, y;}; 3161static struct point const zero = {0,0}; 3162/* AIX XL C 1.02.0.0 rejects this. 3163 It does not let you subtract one const X* pointer from another in an arm 3164 of an if-expression whose if-part is not a constant expression */ 3165const char *g = "string"; 3166ccp = &g + (g ? g-g : 0); 3167/* HPUX 7.0 cc rejects these. */ 3168++ccp; 3169p = (char**) ccp; 3170ccp = (char const *const *) p; 3171{ /* SCO 3.2v4 cc rejects this. */ 3172 char *t; 3173 char const *s = 0 ? (char *) 0 : (char const *) 0; 3174 3175 *t++ = 0; 3176} 3177{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3178 int x[] = {25, 17}; 3179 const int *foo = &x[0]; 3180 ++foo; 3181} 3182{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3183 typedef const int *iptr; 3184 iptr p = 0; 3185 ++p; 3186} 3187{ /* AIX XL C 1.02.0.0 rejects this saying 3188 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3189 struct s { int j; const int *ap[3]; }; 3190 struct s *b; b->j = 5; 3191} 3192{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3193 const int foo = 10; 3194} 3195 3196; return 0; } 3197EOF 3198if { (eval echo configure:3199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3199 rm -rf conftest* 3200 ac_cv_c_const=yes 3201else 3202 echo "configure: failed program was:" >&5 3203 cat conftest.$ac_ext >&5 3204 rm -rf conftest* 3205 ac_cv_c_const=no 3206fi 3207rm -f conftest* 3208fi 3209 3210echo "$ac_t""$ac_cv_c_const" 1>&6 3211if test $ac_cv_c_const = no; then 3212 cat >> confdefs.h <<\EOF 3213#define const 3214EOF 3215 3216fi 3217 3218echo $ac_n "checking for inline""... $ac_c" 1>&6 3219echo "configure:3220: checking for inline" >&5 3220if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 3221 echo $ac_n "(cached) $ac_c" 1>&6 3222else 3223 ac_cv_c_inline=no 3224for ac_kw in inline __inline__ __inline; do 3225 cat > conftest.$ac_ext <<EOF 3226#line 3227 "configure" 3227#include "confdefs.h" 3228 3229int main() { 3230} $ac_kw foo() { 3231; return 0; } 3232EOF 3233if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3234 rm -rf conftest* 3235 ac_cv_c_inline=$ac_kw; break 3236else 3237 echo "configure: failed program was:" >&5 3238 cat conftest.$ac_ext >&5 3239fi 3240rm -f conftest* 3241done 3242 3243fi 3244 3245echo "$ac_t""$ac_cv_c_inline" 1>&6 3246case "$ac_cv_c_inline" in 3247 inline | yes) ;; 3248 no) cat >> confdefs.h <<\EOF 3249#define inline 3250EOF 3251 ;; 3252 *) cat >> confdefs.h <<EOF 3253#define inline $ac_cv_c_inline 3254EOF 3255 ;; 3256esac 3257 3258echo $ac_n "checking for size_t""... $ac_c" 1>&6 3259echo "configure:3260: checking for size_t" >&5 3260if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 3261 echo $ac_n "(cached) $ac_c" 1>&6 3262else 3263 cat > conftest.$ac_ext <<EOF 3264#line 3265 "configure" 3265#include "confdefs.h" 3266#include <sys/types.h> 3267#if STDC_HEADERS 3268#include <stdlib.h> 3269#include <stddef.h> 3270#endif 3271EOF 3272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3273 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3274 rm -rf conftest* 3275 ac_cv_type_size_t=yes 3276else 3277 rm -rf conftest* 3278 ac_cv_type_size_t=no 3279fi 3280rm -f conftest* 3281 3282fi 3283echo "$ac_t""$ac_cv_type_size_t" 1>&6 3284if test $ac_cv_type_size_t = no; then 3285 cat >> confdefs.h <<\EOF 3286#define size_t unsigned 3287EOF 3288 3289fi 3290 3291echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3292echo "configure:3293: checking for pid_t" >&5 3293if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 3294 echo $ac_n "(cached) $ac_c" 1>&6 3295else 3296 cat > conftest.$ac_ext <<EOF 3297#line 3298 "configure" 3298#include "confdefs.h" 3299#include <sys/types.h> 3300#if STDC_HEADERS 3301#include <stdlib.h> 3302#include <stddef.h> 3303#endif 3304EOF 3305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3306 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3307 rm -rf conftest* 3308 ac_cv_type_pid_t=yes 3309else 3310 rm -rf conftest* 3311 ac_cv_type_pid_t=no 3312fi 3313rm -f conftest* 3314 3315fi 3316echo "$ac_t""$ac_cv_type_pid_t" 1>&6 3317if test $ac_cv_type_pid_t = no; then 3318 cat >> confdefs.h <<\EOF 3319#define pid_t int 3320EOF 3321 3322fi 3323 3324echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 3325echo "configure:3326: checking for socklen_t" >&5 3326if eval "test \"`echo '$''{'ac_cv_have_socklen_t'+set}'`\" = set"; then 3327 echo $ac_n "(cached) $ac_c" 1>&6 3328else 3329 cat > conftest.$ac_ext <<EOF 3330#line 3331 "configure" 3331#include "confdefs.h" 3332 3333 #include <sys/types.h> 3334 #include <sys/socket.h> 3335 3336int main() { 3337 3338 socklen_t a = 0; 3339 return a; 3340 3341; return 0; } 3342EOF 3343if { (eval echo configure:3344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3344 rm -rf conftest* 3345 ac_cv_have_socklen_t=yes 3346else 3347 echo "configure: failed program was:" >&5 3348 cat conftest.$ac_ext >&5 3349 rm -rf conftest* 3350 ac_cv_have_socklen_t=no 3351fi 3352rm -f conftest* 3353 3354fi 3355 3356echo "$ac_t""$ac_cv_have_socklen_t" 1>&6 3357if test "$ac_cv_have_socklen_t" = yes; then 3358 cat >> confdefs.h <<\EOF 3359#define HAVE_SOCKLEN_T 1 3360EOF 3361 3362fi 3363echo $ac_n "checking for errno""... $ac_c" 1>&6 3364echo "configure:3365: checking for errno" >&5 3365if eval "test \"`echo '$''{'ac_cv_have_errno'+set}'`\" = set"; then 3366 echo $ac_n "(cached) $ac_c" 1>&6 3367else 3368 cat > conftest.$ac_ext <<EOF 3369#line 3370 "configure" 3370#include "confdefs.h" 3371 3372 #include <errno.h> 3373 3374int main() { 3375 3376 errno = 0; 3377 return errno; 3378 3379; return 0; } 3380EOF 3381if { (eval echo configure:3382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3382 rm -rf conftest* 3383 ac_cv_have_errno=yes 3384else 3385 echo "configure: failed program was:" >&5 3386 cat conftest.$ac_ext >&5 3387 rm -rf conftest* 3388 ac_cv_have_errno=no 3389fi 3390rm -f conftest* 3391 3392fi 3393 3394echo "$ac_t""$ac_cv_have_errno" 1>&6 3395if test "$ac_cv_have_errno" = yes; then 3396 cat >> confdefs.h <<\EOF 3397#define HAVE_ERRNO 1 3398EOF 3399 3400fi 3401 3402echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3403echo "configure:3404: checking whether time.h and sys/time.h may both be included" >&5 3404if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 3405 echo $ac_n "(cached) $ac_c" 1>&6 3406else 3407 cat > conftest.$ac_ext <<EOF 3408#line 3409 "configure" 3409#include "confdefs.h" 3410#include <sys/types.h> 3411#include <sys/time.h> 3412#include <time.h> 3413int main() { 3414struct tm *tp; 3415; return 0; } 3416EOF 3417if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3418 rm -rf conftest* 3419 ac_cv_header_time=yes 3420else 3421 echo "configure: failed program was:" >&5 3422 cat conftest.$ac_ext >&5 3423 rm -rf conftest* 3424 ac_cv_header_time=no 3425fi 3426rm -f conftest* 3427fi 3428 3429echo "$ac_t""$ac_cv_header_time" 1>&6 3430if test $ac_cv_header_time = yes; then 3431 cat >> confdefs.h <<\EOF 3432#define TIME_WITH_SYS_TIME 1 3433EOF 3434 3435fi 3436 3437echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3438echo "configure:3439: checking whether struct tm is in sys/time.h or time.h" >&5 3439if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 3440 echo $ac_n "(cached) $ac_c" 1>&6 3441else 3442 cat > conftest.$ac_ext <<EOF 3443#line 3444 "configure" 3444#include "confdefs.h" 3445#include <sys/types.h> 3446#include <time.h> 3447int main() { 3448struct tm *tp; tp->tm_sec; 3449; return 0; } 3450EOF 3451if { (eval echo configure:3452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3452 rm -rf conftest* 3453 ac_cv_struct_tm=time.h 3454else 3455 echo "configure: failed program was:" >&5 3456 cat conftest.$ac_ext >&5 3457 rm -rf conftest* 3458 ac_cv_struct_tm=sys/time.h 3459fi 3460rm -f conftest* 3461fi 3462 3463echo "$ac_t""$ac_cv_struct_tm" 1>&6 3464if test $ac_cv_struct_tm = sys/time.h; then 3465 cat >> confdefs.h <<\EOF 3466#define TM_IN_SYS_TIME 1 3467EOF 3468 3469fi 3470 3471 3472echo $ac_n "checking if rename can replace existing files""... $ac_c" 1>&6 3473echo "configure:3474: checking if rename can replace existing files" >&5 3474if eval "test \"`echo '$''{'ac_cv_rename_over_existing_files'+set}'`\" = set"; then 3475 echo $ac_n "(cached) $ac_c" 1>&6 3476else 3477 if test "$cross_compiling" = yes; then 3478 ac_cv_rename_over_existing_files=no 3479else 3480 cat > conftest.$ac_ext <<EOF 3481#line 3482 "configure" 3482#include "confdefs.h" 3483 3484 #include <fcntl.h> 3485 #include <stdio.h> 3486 #include <unistd.h> 3487 3488 int main() 3489 { 3490 int ret; 3491 close(creat("conftest.rename1", 0600)); 3492 close(creat("conftest.rename2", 0600)); 3493 ret = rename("conftest.rename1", "conftest.rename2"); 3494 unlink("conftest.rename1"); 3495 unlink("conftest.rename2"); 3496 return !!ret; 3497 } 3498 3499EOF 3500if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3501then 3502 ac_cv_rename_over_existing_files=yes 3503else 3504 echo "configure: failed program was:" >&5 3505 cat conftest.$ac_ext >&5 3506 rm -fr conftest* 3507 ac_cv_rename_over_existing_files=no 3508fi 3509rm -fr conftest* 3510fi 3511 3512 3513fi 3514 3515echo "$ac_t""$ac_cv_rename_over_existing_files" 1>&6 3516 3517if test "$ac_cv_rename_over_existing_files" = yes; then 3518 cat >> confdefs.h <<\EOF 3519#define RENAME_OVER_EXISTING_FILES 1 3520EOF 3521 3522fi 3523 3524echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3525echo "configure:3526: checking return type of signal handlers" >&5 3526if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 3527 echo $ac_n "(cached) $ac_c" 1>&6 3528else 3529 cat > conftest.$ac_ext <<EOF 3530#line 3531 "configure" 3531#include "confdefs.h" 3532#include <sys/types.h> 3533#include <signal.h> 3534#ifdef signal 3535#undef signal 3536#endif 3537#ifdef __cplusplus 3538extern "C" void (*signal (int, void (*)(int)))(int); 3539#else 3540void (*signal ()) (); 3541#endif 3542 3543int main() { 3544int i; 3545; return 0; } 3546EOF 3547if { (eval echo configure:3548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3548 rm -rf conftest* 3549 ac_cv_type_signal=void 3550else 3551 echo "configure: failed program was:" >&5 3552 cat conftest.$ac_ext >&5 3553 rm -rf conftest* 3554 ac_cv_type_signal=int 3555fi 3556rm -f conftest* 3557fi 3558 3559echo "$ac_t""$ac_cv_type_signal" 1>&6 3560cat >> confdefs.h <<EOF 3561#define RETSIGTYPE $ac_cv_type_signal 3562EOF 3563 3564 3565echo $ac_n "checking for strftime""... $ac_c" 1>&6 3566echo "configure:3567: checking for strftime" >&5 3567if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then 3568 echo $ac_n "(cached) $ac_c" 1>&6 3569else 3570 cat > conftest.$ac_ext <<EOF 3571#line 3572 "configure" 3572#include "confdefs.h" 3573/* System header to define __stub macros and hopefully few prototypes, 3574 which can conflict with char strftime(); below. */ 3575#include <assert.h> 3576/* Override any gcc2 internal prototype to avoid an error. */ 3577/* We use char because int might match the return type of a gcc2 3578 builtin and then its argument prototype would still apply. */ 3579char strftime(); 3580 3581int main() { 3582 3583/* The GNU C library defines this for functions which it implements 3584 to always fail with ENOSYS. Some functions are actually named 3585 something starting with __ and the normal name is an alias. */ 3586#if defined (__stub_strftime) || defined (__stub___strftime) 3587choke me 3588#else 3589strftime(); 3590#endif 3591 3592; return 0; } 3593EOF 3594if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3595 rm -rf conftest* 3596 eval "ac_cv_func_strftime=yes" 3597else 3598 echo "configure: failed program was:" >&5 3599 cat conftest.$ac_ext >&5 3600 rm -rf conftest* 3601 eval "ac_cv_func_strftime=no" 3602fi 3603rm -f conftest* 3604fi 3605 3606if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then 3607 echo "$ac_t""yes" 1>&6 3608 cat >> confdefs.h <<\EOF 3609#define HAVE_STRFTIME 1 3610EOF 3611 3612else 3613 echo "$ac_t""no" 1>&6 3614# strftime is in -lintl on SCO UNIX. 3615echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 3616echo "configure:3617: checking for strftime in -lintl" >&5 3617ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` 3618if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3619 echo $ac_n "(cached) $ac_c" 1>&6 3620else 3621 ac_save_LIBS="$LIBS" 3622LIBS="-lintl $LIBS" 3623cat > conftest.$ac_ext <<EOF 3624#line 3625 "configure" 3625#include "confdefs.h" 3626/* Override any gcc2 internal prototype to avoid an error. */ 3627/* We use char because int might match the return type of a gcc2 3628 builtin and then its argument prototype would still apply. */ 3629char strftime(); 3630 3631int main() { 3632strftime() 3633; return 0; } 3634EOF 3635if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3636 rm -rf conftest* 3637 eval "ac_cv_lib_$ac_lib_var=yes" 3638else 3639 echo "configure: failed program was:" >&5 3640 cat conftest.$ac_ext >&5 3641 rm -rf conftest* 3642 eval "ac_cv_lib_$ac_lib_var=no" 3643fi 3644rm -f conftest* 3645LIBS="$ac_save_LIBS" 3646 3647fi 3648if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3649 echo "$ac_t""yes" 1>&6 3650 cat >> confdefs.h <<\EOF 3651#define HAVE_STRFTIME 1 3652EOF 3653 3654LIBS="-lintl $LIBS" 3655else 3656 echo "$ac_t""no" 1>&6 3657fi 3658 3659fi 3660 3661echo $ac_n "checking for vprintf""... $ac_c" 1>&6 3662echo "configure:3663: checking for vprintf" >&5 3663if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 3664 echo $ac_n "(cached) $ac_c" 1>&6 3665else 3666 cat > conftest.$ac_ext <<EOF 3667#line 3668 "configure" 3668#include "confdefs.h" 3669/* System header to define __stub macros and hopefully few prototypes, 3670 which can conflict with char vprintf(); below. */ 3671#include <assert.h> 3672/* Override any gcc2 internal prototype to avoid an error. */ 3673/* We use char because int might match the return type of a gcc2 3674 builtin and then its argument prototype would still apply. */ 3675char vprintf(); 3676 3677int main() { 3678 3679/* The GNU C library defines this for functions which it implements 3680 to always fail with ENOSYS. Some functions are actually named 3681 something starting with __ and the normal name is an alias. */ 3682#if defined (__stub_vprintf) || defined (__stub___vprintf) 3683choke me 3684#else 3685vprintf(); 3686#endif 3687 3688; return 0; } 3689EOF 3690if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3691 rm -rf conftest* 3692 eval "ac_cv_func_vprintf=yes" 3693else 3694 echo "configure: failed program was:" >&5 3695 cat conftest.$ac_ext >&5 3696 rm -rf conftest* 3697 eval "ac_cv_func_vprintf=no" 3698fi 3699rm -f conftest* 3700fi 3701 3702if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 3703 echo "$ac_t""yes" 1>&6 3704 cat >> confdefs.h <<\EOF 3705#define HAVE_VPRINTF 1 3706EOF 3707 3708else 3709 echo "$ac_t""no" 1>&6 3710fi 3711 3712if test "$ac_cv_func_vprintf" != yes; then 3713echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 3714echo "configure:3715: checking for _doprnt" >&5 3715if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 3716 echo $ac_n "(cached) $ac_c" 1>&6 3717else 3718 cat > conftest.$ac_ext <<EOF 3719#line 3720 "configure" 3720#include "confdefs.h" 3721/* System header to define __stub macros and hopefully few prototypes, 3722 which can conflict with char _doprnt(); below. */ 3723#include <assert.h> 3724/* Override any gcc2 internal prototype to avoid an error. */ 3725/* We use char because int might match the return type of a gcc2 3726 builtin and then its argument prototype would still apply. */ 3727char _doprnt(); 3728 3729int main() { 3730 3731/* The GNU C library defines this for functions which it implements 3732 to always fail with ENOSYS. Some functions are actually named 3733 something starting with __ and the normal name is an alias. */ 3734#if defined (__stub__doprnt) || defined (__stub____doprnt) 3735choke me 3736#else 3737_doprnt(); 3738#endif 3739 3740; return 0; } 3741EOF 3742if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3743 rm -rf conftest* 3744 eval "ac_cv_func__doprnt=yes" 3745else 3746 echo "configure: failed program was:" >&5 3747 cat conftest.$ac_ext >&5 3748 rm -rf conftest* 3749 eval "ac_cv_func__doprnt=no" 3750fi 3751rm -f conftest* 3752fi 3753 3754if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 3755 echo "$ac_t""yes" 1>&6 3756 cat >> confdefs.h <<\EOF 3757#define HAVE_DOPRNT 1 3758EOF 3759 3760else 3761 echo "$ac_t""no" 1>&6 3762fi 3763 3764fi 3765 3766for ac_func in bcmp 3767do 3768echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3769echo "configure:3770: checking for $ac_func" >&5 3770if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3771 echo $ac_n "(cached) $ac_c" 1>&6 3772else 3773 cat > conftest.$ac_ext <<EOF 3774#line 3775 "configure" 3775#include "confdefs.h" 3776/* System header to define __stub macros and hopefully few prototypes, 3777 which can conflict with char $ac_func(); below. */ 3778#include <assert.h> 3779/* Override any gcc2 internal prototype to avoid an error. */ 3780/* We use char because int might match the return type of a gcc2 3781 builtin and then its argument prototype would still apply. */ 3782char $ac_func(); 3783 3784int main() { 3785 3786/* The GNU C library defines this for functions which it implements 3787 to always fail with ENOSYS. Some functions are actually named 3788 something starting with __ and the normal name is an alias. */ 3789#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3790choke me 3791#else 3792$ac_func(); 3793#endif 3794 3795; return 0; } 3796EOF 3797if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3798 rm -rf conftest* 3799 eval "ac_cv_func_$ac_func=yes" 3800else 3801 echo "configure: failed program was:" >&5 3802 cat conftest.$ac_ext >&5 3803 rm -rf conftest* 3804 eval "ac_cv_func_$ac_func=no" 3805fi 3806rm -f conftest* 3807fi 3808 3809if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3810 echo "$ac_t""yes" 1>&6 3811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3812 cat >> confdefs.h <<EOF 3813#define $ac_tr_func 1 3814EOF 3815 3816else 3817 echo "$ac_t""no" 1>&6 3818fi 3819done 3820 3821for ac_func in bcopy 3822do 3823echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3824echo "configure:3825: checking for $ac_func" >&5 3825if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3826 echo $ac_n "(cached) $ac_c" 1>&6 3827else 3828 cat > conftest.$ac_ext <<EOF 3829#line 3830 "configure" 3830#include "confdefs.h" 3831/* System header to define __stub macros and hopefully few prototypes, 3832 which can conflict with char $ac_func(); below. */ 3833#include <assert.h> 3834/* Override any gcc2 internal prototype to avoid an error. */ 3835/* We use char because int might match the return type of a gcc2 3836 builtin and then its argument prototype would still apply. */ 3837char $ac_func(); 3838 3839int main() { 3840 3841/* The GNU C library defines this for functions which it implements 3842 to always fail with ENOSYS. Some functions are actually named 3843 something starting with __ and the normal name is an alias. */ 3844#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3845choke me 3846#else 3847$ac_func(); 3848#endif 3849 3850; return 0; } 3851EOF 3852if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3853 rm -rf conftest* 3854 eval "ac_cv_func_$ac_func=yes" 3855else 3856 echo "configure: failed program was:" >&5 3857 cat conftest.$ac_ext >&5 3858 rm -rf conftest* 3859 eval "ac_cv_func_$ac_func=no" 3860fi 3861rm -f conftest* 3862fi 3863 3864if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3865 echo "$ac_t""yes" 1>&6 3866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3867 cat >> confdefs.h <<EOF 3868#define $ac_tr_func 1 3869EOF 3870 3871else 3872 echo "$ac_t""no" 1>&6 3873fi 3874done 3875 3876for ac_func in bzero 3877do 3878echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3879echo "configure:3880: checking for $ac_func" >&5 3880if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3881 echo $ac_n "(cached) $ac_c" 1>&6 3882else 3883 cat > conftest.$ac_ext <<EOF 3884#line 3885 "configure" 3885#include "confdefs.h" 3886/* System header to define __stub macros and hopefully few prototypes, 3887 which can conflict with char $ac_func(); below. */ 3888#include <assert.h> 3889/* Override any gcc2 internal prototype to avoid an error. */ 3890/* We use char because int might match the return type of a gcc2 3891 builtin and then its argument prototype would still apply. */ 3892char $ac_func(); 3893 3894int main() { 3895 3896/* The GNU C library defines this for functions which it implements 3897 to always fail with ENOSYS. Some functions are actually named 3898 something starting with __ and the normal name is an alias. */ 3899#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3900choke me 3901#else 3902$ac_func(); 3903#endif 3904 3905; return 0; } 3906EOF 3907if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3908 rm -rf conftest* 3909 eval "ac_cv_func_$ac_func=yes" 3910else 3911 echo "configure: failed program was:" >&5 3912 cat conftest.$ac_ext >&5 3913 rm -rf conftest* 3914 eval "ac_cv_func_$ac_func=no" 3915fi 3916rm -f conftest* 3917fi 3918 3919if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3920 echo "$ac_t""yes" 1>&6 3921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3922 cat >> confdefs.h <<EOF 3923#define $ac_tr_func 1 3924EOF 3925 3926else 3927 echo "$ac_t""no" 1>&6 3928fi 3929done 3930 3931for ac_func in chmod 3932do 3933echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3934echo "configure:3935: checking for $ac_func" >&5 3935if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3936 echo $ac_n "(cached) $ac_c" 1>&6 3937else 3938 cat > conftest.$ac_ext <<EOF 3939#line 3940 "configure" 3940#include "confdefs.h" 3941/* System header to define __stub macros and hopefully few prototypes, 3942 which can conflict with char $ac_func(); below. */ 3943#include <assert.h> 3944/* Override any gcc2 internal prototype to avoid an error. */ 3945/* We use char because int might match the return type of a gcc2 3946 builtin and then its argument prototype would still apply. */ 3947char $ac_func(); 3948 3949int main() { 3950 3951/* The GNU C library defines this for functions which it implements 3952 to always fail with ENOSYS. Some functions are actually named 3953 something starting with __ and the normal name is an alias. */ 3954#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3955choke me 3956#else 3957$ac_func(); 3958#endif 3959 3960; return 0; } 3961EOF 3962if { (eval echo configure:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3963 rm -rf conftest* 3964 eval "ac_cv_func_$ac_func=yes" 3965else 3966 echo "configure: failed program was:" >&5 3967 cat conftest.$ac_ext >&5 3968 rm -rf conftest* 3969 eval "ac_cv_func_$ac_func=no" 3970fi 3971rm -f conftest* 3972fi 3973 3974if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3975 echo "$ac_t""yes" 1>&6 3976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3977 cat >> confdefs.h <<EOF 3978#define $ac_tr_func 1 3979EOF 3980 3981else 3982 echo "$ac_t""no" 1>&6 3983fi 3984done 3985 3986for ac_func in getcwd 3987do 3988echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3989echo "configure:3990: checking for $ac_func" >&5 3990if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3991 echo $ac_n "(cached) $ac_c" 1>&6 3992else 3993 cat > conftest.$ac_ext <<EOF 3994#line 3995 "configure" 3995#include "confdefs.h" 3996/* System header to define __stub macros and hopefully few prototypes, 3997 which can conflict with char $ac_func(); below. */ 3998#include <assert.h> 3999/* Override any gcc2 internal prototype to avoid an error. */ 4000/* We use char because int might match the return type of a gcc2 4001 builtin and then its argument prototype would still apply. */ 4002char $ac_func(); 4003 4004int main() { 4005 4006/* The GNU C library defines this for functions which it implements 4007 to always fail with ENOSYS. Some functions are actually named 4008 something starting with __ and the normal name is an alias. */ 4009#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4010choke me 4011#else 4012$ac_func(); 4013#endif 4014 4015; return 0; } 4016EOF 4017if { (eval echo configure:4018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4018 rm -rf conftest* 4019 eval "ac_cv_func_$ac_func=yes" 4020else 4021 echo "configure: failed program was:" >&5 4022 cat conftest.$ac_ext >&5 4023 rm -rf conftest* 4024 eval "ac_cv_func_$ac_func=no" 4025fi 4026rm -f conftest* 4027fi 4028 4029if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4030 echo "$ac_t""yes" 1>&6 4031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4032 cat >> confdefs.h <<EOF 4033#define $ac_tr_func 1 4034EOF 4035 4036else 4037 echo "$ac_t""no" 1>&6 4038fi 4039done 4040 4041for ac_func in getgrgid 4042do 4043echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4044echo "configure:4045: checking for $ac_func" >&5 4045if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4046 echo $ac_n "(cached) $ac_c" 1>&6 4047else 4048 cat > conftest.$ac_ext <<EOF 4049#line 4050 "configure" 4050#include "confdefs.h" 4051/* System header to define __stub macros and hopefully few prototypes, 4052 which can conflict with char $ac_func(); below. */ 4053#include <assert.h> 4054/* Override any gcc2 internal prototype to avoid an error. */ 4055/* We use char because int might match the return type of a gcc2 4056 builtin and then its argument prototype would still apply. */ 4057char $ac_func(); 4058 4059int main() { 4060 4061/* The GNU C library defines this for functions which it implements 4062 to always fail with ENOSYS. Some functions are actually named 4063 something starting with __ and the normal name is an alias. */ 4064#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4065choke me 4066#else 4067$ac_func(); 4068#endif 4069 4070; return 0; } 4071EOF 4072if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4073 rm -rf conftest* 4074 eval "ac_cv_func_$ac_func=yes" 4075else 4076 echo "configure: failed program was:" >&5 4077 cat conftest.$ac_ext >&5 4078 rm -rf conftest* 4079 eval "ac_cv_func_$ac_func=no" 4080fi 4081rm -f conftest* 4082fi 4083 4084if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4085 echo "$ac_t""yes" 1>&6 4086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4087 cat >> confdefs.h <<EOF 4088#define $ac_tr_func 1 4089EOF 4090 4091else 4092 echo "$ac_t""no" 1>&6 4093fi 4094done 4095 4096for ac_func in getpagesize 4097do 4098echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4099echo "configure:4100: checking for $ac_func" >&5 4100if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4101 echo $ac_n "(cached) $ac_c" 1>&6 4102else 4103 cat > conftest.$ac_ext <<EOF 4104#line 4105 "configure" 4105#include "confdefs.h" 4106/* System header to define __stub macros and hopefully few prototypes, 4107 which can conflict with char $ac_func(); below. */ 4108#include <assert.h> 4109/* Override any gcc2 internal prototype to avoid an error. */ 4110/* We use char because int might match the return type of a gcc2 4111 builtin and then its argument prototype would still apply. */ 4112char $ac_func(); 4113 4114int main() { 4115 4116/* The GNU C library defines this for functions which it implements 4117 to always fail with ENOSYS. Some functions are actually named 4118 something starting with __ and the normal name is an alias. */ 4119#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4120choke me 4121#else 4122$ac_func(); 4123#endif 4124 4125; return 0; } 4126EOF 4127if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4128 rm -rf conftest* 4129 eval "ac_cv_func_$ac_func=yes" 4130else 4131 echo "configure: failed program was:" >&5 4132 cat conftest.$ac_ext >&5 4133 rm -rf conftest* 4134 eval "ac_cv_func_$ac_func=no" 4135fi 4136rm -f conftest* 4137fi 4138 4139if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4140 echo "$ac_t""yes" 1>&6 4141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4142 cat >> confdefs.h <<EOF 4143#define $ac_tr_func 1 4144EOF 4145 4146else 4147 echo "$ac_t""no" 1>&6 4148fi 4149done 4150 4151for ac_func in getpid 4152do 4153echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4154echo "configure:4155: checking for $ac_func" >&5 4155if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4156 echo $ac_n "(cached) $ac_c" 1>&6 4157else 4158 cat > conftest.$ac_ext <<EOF 4159#line 4160 "configure" 4160#include "confdefs.h" 4161/* System header to define __stub macros and hopefully few prototypes, 4162 which can conflict with char $ac_func(); below. */ 4163#include <assert.h> 4164/* Override any gcc2 internal prototype to avoid an error. */ 4165/* We use char because int might match the return type of a gcc2 4166 builtin and then its argument prototype would still apply. */ 4167char $ac_func(); 4168 4169int main() { 4170 4171/* The GNU C library defines this for functions which it implements 4172 to always fail with ENOSYS. Some functions are actually named 4173 something starting with __ and the normal name is an alias. */ 4174#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4175choke me 4176#else 4177$ac_func(); 4178#endif 4179 4180; return 0; } 4181EOF 4182if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4183 rm -rf conftest* 4184 eval "ac_cv_func_$ac_func=yes" 4185else 4186 echo "configure: failed program was:" >&5 4187 cat conftest.$ac_ext >&5 4188 rm -rf conftest* 4189 eval "ac_cv_func_$ac_func=no" 4190fi 4191rm -f conftest* 4192fi 4193 4194if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4195 echo "$ac_t""yes" 1>&6 4196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4197 cat >> confdefs.h <<EOF 4198#define $ac_tr_func 1 4199EOF 4200 4201else 4202 echo "$ac_t""no" 1>&6 4203fi 4204done 4205 4206for ac_func in getpwuid 4207do 4208echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4209echo "configure:4210: checking for $ac_func" >&5 4210if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4211 echo $ac_n "(cached) $ac_c" 1>&6 4212else 4213 cat > conftest.$ac_ext <<EOF 4214#line 4215 "configure" 4215#include "confdefs.h" 4216/* System header to define __stub macros and hopefully few prototypes, 4217 which can conflict with char $ac_func(); below. */ 4218#include <assert.h> 4219/* Override any gcc2 internal prototype to avoid an error. */ 4220/* We use char because int might match the return type of a gcc2 4221 builtin and then its argument prototype would still apply. */ 4222char $ac_func(); 4223 4224int main() { 4225 4226/* The GNU C library defines this for functions which it implements 4227 to always fail with ENOSYS. Some functions are actually named 4228 something starting with __ and the normal name is an alias. */ 4229#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4230choke me 4231#else 4232$ac_func(); 4233#endif 4234 4235; return 0; } 4236EOF 4237if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4238 rm -rf conftest* 4239 eval "ac_cv_func_$ac_func=yes" 4240else 4241 echo "configure: failed program was:" >&5 4242 cat conftest.$ac_ext >&5 4243 rm -rf conftest* 4244 eval "ac_cv_func_$ac_func=no" 4245fi 4246rm -f conftest* 4247fi 4248 4249if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4250 echo "$ac_t""yes" 1>&6 4251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4252 cat >> confdefs.h <<EOF 4253#define $ac_tr_func 1 4254EOF 4255 4256else 4257 echo "$ac_t""no" 1>&6 4258fi 4259done 4260 4261for ac_func in getrlimit 4262do 4263echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4264echo "configure:4265: checking for $ac_func" >&5 4265if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4266 echo $ac_n "(cached) $ac_c" 1>&6 4267else 4268 cat > conftest.$ac_ext <<EOF 4269#line 4270 "configure" 4270#include "confdefs.h" 4271/* System header to define __stub macros and hopefully few prototypes, 4272 which can conflict with char $ac_func(); below. */ 4273#include <assert.h> 4274/* Override any gcc2 internal prototype to avoid an error. */ 4275/* We use char because int might match the return type of a gcc2 4276 builtin and then its argument prototype would still apply. */ 4277char $ac_func(); 4278 4279int main() { 4280 4281/* The GNU C library defines this for functions which it implements 4282 to always fail with ENOSYS. Some functions are actually named 4283 something starting with __ and the normal name is an alias. */ 4284#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4285choke me 4286#else 4287$ac_func(); 4288#endif 4289 4290; return 0; } 4291EOF 4292if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4293 rm -rf conftest* 4294 eval "ac_cv_func_$ac_func=yes" 4295else 4296 echo "configure: failed program was:" >&5 4297 cat conftest.$ac_ext >&5 4298 rm -rf conftest* 4299 eval "ac_cv_func_$ac_func=no" 4300fi 4301rm -f conftest* 4302fi 4303 4304if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4305 echo "$ac_t""yes" 1>&6 4306 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4307 cat >> confdefs.h <<EOF 4308#define $ac_tr_func 1 4309EOF 4310 4311else 4312 echo "$ac_t""no" 1>&6 4313fi 4314done 4315 4316for ac_func in gettimeofday 4317do 4318echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4319echo "configure:4320: checking for $ac_func" >&5 4320if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4321 echo $ac_n "(cached) $ac_c" 1>&6 4322else 4323 cat > conftest.$ac_ext <<EOF 4324#line 4325 "configure" 4325#include "confdefs.h" 4326/* System header to define __stub macros and hopefully few prototypes, 4327 which can conflict with char $ac_func(); below. */ 4328#include <assert.h> 4329/* Override any gcc2 internal prototype to avoid an error. */ 4330/* We use char because int might match the return type of a gcc2 4331 builtin and then its argument prototype would still apply. */ 4332char $ac_func(); 4333 4334int main() { 4335 4336/* The GNU C library defines this for functions which it implements 4337 to always fail with ENOSYS. Some functions are actually named 4338 something starting with __ and the normal name is an alias. */ 4339#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4340choke me 4341#else 4342$ac_func(); 4343#endif 4344 4345; return 0; } 4346EOF 4347if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4348 rm -rf conftest* 4349 eval "ac_cv_func_$ac_func=yes" 4350else 4351 echo "configure: failed program was:" >&5 4352 cat conftest.$ac_ext >&5 4353 rm -rf conftest* 4354 eval "ac_cv_func_$ac_func=no" 4355fi 4356rm -f conftest* 4357fi 4358 4359if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4360 echo "$ac_t""yes" 1>&6 4361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4362 cat >> confdefs.h <<EOF 4363#define $ac_tr_func 1 4364EOF 4365 4366else 4367 echo "$ac_t""no" 1>&6 4368fi 4369done 4370 4371for ac_func in mkdir 4372do 4373echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4374echo "configure:4375: checking for $ac_func" >&5 4375if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4376 echo $ac_n "(cached) $ac_c" 1>&6 4377else 4378 cat > conftest.$ac_ext <<EOF 4379#line 4380 "configure" 4380#include "confdefs.h" 4381/* System header to define __stub macros and hopefully few prototypes, 4382 which can conflict with char $ac_func(); below. */ 4383#include <assert.h> 4384/* Override any gcc2 internal prototype to avoid an error. */ 4385/* We use char because int might match the return type of a gcc2 4386 builtin and then its argument prototype would still apply. */ 4387char $ac_func(); 4388 4389int main() { 4390 4391/* The GNU C library defines this for functions which it implements 4392 to always fail with ENOSYS. Some functions are actually named 4393 something starting with __ and the normal name is an alias. */ 4394#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4395choke me 4396#else 4397$ac_func(); 4398#endif 4399 4400; return 0; } 4401EOF 4402if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4403 rm -rf conftest* 4404 eval "ac_cv_func_$ac_func=yes" 4405else 4406 echo "configure: failed program was:" >&5 4407 cat conftest.$ac_ext >&5 4408 rm -rf conftest* 4409 eval "ac_cv_func_$ac_func=no" 4410fi 4411rm -f conftest* 4412fi 4413 4414if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4415 echo "$ac_t""yes" 1>&6 4416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4417 cat >> confdefs.h <<EOF 4418#define $ac_tr_func 1 4419EOF 4420 4421else 4422 echo "$ac_t""no" 1>&6 4423fi 4424done 4425 4426for ac_func in mktime 4427do 4428echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4429echo "configure:4430: checking for $ac_func" >&5 4430if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4431 echo $ac_n "(cached) $ac_c" 1>&6 4432else 4433 cat > conftest.$ac_ext <<EOF 4434#line 4435 "configure" 4435#include "confdefs.h" 4436/* System header to define __stub macros and hopefully few prototypes, 4437 which can conflict with char $ac_func(); below. */ 4438#include <assert.h> 4439/* Override any gcc2 internal prototype to avoid an error. */ 4440/* We use char because int might match the return type of a gcc2 4441 builtin and then its argument prototype would still apply. */ 4442char $ac_func(); 4443 4444int main() { 4445 4446/* The GNU C library defines this for functions which it implements 4447 to always fail with ENOSYS. Some functions are actually named 4448 something starting with __ and the normal name is an alias. */ 4449#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4450choke me 4451#else 4452$ac_func(); 4453#endif 4454 4455; return 0; } 4456EOF 4457if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4458 rm -rf conftest* 4459 eval "ac_cv_func_$ac_func=yes" 4460else 4461 echo "configure: failed program was:" >&5 4462 cat conftest.$ac_ext >&5 4463 rm -rf conftest* 4464 eval "ac_cv_func_$ac_func=no" 4465fi 4466rm -f conftest* 4467fi 4468 4469if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4470 echo "$ac_t""yes" 1>&6 4471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4472 cat >> confdefs.h <<EOF 4473#define $ac_tr_func 1 4474EOF 4475 4476else 4477 echo "$ac_t""no" 1>&6 4478fi 4479done 4480 4481for ac_func in popen 4482do 4483echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4484echo "configure:4485: checking for $ac_func" >&5 4485if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4486 echo $ac_n "(cached) $ac_c" 1>&6 4487else 4488 cat > conftest.$ac_ext <<EOF 4489#line 4490 "configure" 4490#include "confdefs.h" 4491/* System header to define __stub macros and hopefully few prototypes, 4492 which can conflict with char $ac_func(); below. */ 4493#include <assert.h> 4494/* Override any gcc2 internal prototype to avoid an error. */ 4495/* We use char because int might match the return type of a gcc2 4496 builtin and then its argument prototype would still apply. */ 4497char $ac_func(); 4498 4499int main() { 4500 4501/* The GNU C library defines this for functions which it implements 4502 to always fail with ENOSYS. Some functions are actually named 4503 something starting with __ and the normal name is an alias. */ 4504#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4505choke me 4506#else 4507$ac_func(); 4508#endif 4509 4510; return 0; } 4511EOF 4512if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4513 rm -rf conftest* 4514 eval "ac_cv_func_$ac_func=yes" 4515else 4516 echo "configure: failed program was:" >&5 4517 cat conftest.$ac_ext >&5 4518 rm -rf conftest* 4519 eval "ac_cv_func_$ac_func=no" 4520fi 4521rm -f conftest* 4522fi 4523 4524if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4525 echo "$ac_t""yes" 1>&6 4526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4527 cat >> confdefs.h <<EOF 4528#define $ac_tr_func 1 4529EOF 4530 4531else 4532 echo "$ac_t""no" 1>&6 4533fi 4534done 4535 4536for ac_func in pthread_sigmask 4537do 4538echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4539echo "configure:4540: checking for $ac_func" >&5 4540if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4541 echo $ac_n "(cached) $ac_c" 1>&6 4542else 4543 cat > conftest.$ac_ext <<EOF 4544#line 4545 "configure" 4545#include "confdefs.h" 4546/* System header to define __stub macros and hopefully few prototypes, 4547 which can conflict with char $ac_func(); below. */ 4548#include <assert.h> 4549/* Override any gcc2 internal prototype to avoid an error. */ 4550/* We use char because int might match the return type of a gcc2 4551 builtin and then its argument prototype would still apply. */ 4552char $ac_func(); 4553 4554int main() { 4555 4556/* The GNU C library defines this for functions which it implements 4557 to always fail with ENOSYS. Some functions are actually named 4558 something starting with __ and the normal name is an alias. */ 4559#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4560choke me 4561#else 4562$ac_func(); 4563#endif 4564 4565; return 0; } 4566EOF 4567if { (eval echo configure:4568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4568 rm -rf conftest* 4569 eval "ac_cv_func_$ac_func=yes" 4570else 4571 echo "configure: failed program was:" >&5 4572 cat conftest.$ac_ext >&5 4573 rm -rf conftest* 4574 eval "ac_cv_func_$ac_func=no" 4575fi 4576rm -f conftest* 4577fi 4578 4579if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4580 echo "$ac_t""yes" 1>&6 4581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4582 cat >> confdefs.h <<EOF 4583#define $ac_tr_func 1 4584EOF 4585 4586else 4587 echo "$ac_t""no" 1>&6 4588fi 4589done 4590 4591for ac_func in raise 4592do 4593echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4594echo "configure:4595: checking for $ac_func" >&5 4595if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4596 echo $ac_n "(cached) $ac_c" 1>&6 4597else 4598 cat > conftest.$ac_ext <<EOF 4599#line 4600 "configure" 4600#include "confdefs.h" 4601/* System header to define __stub macros and hopefully few prototypes, 4602 which can conflict with char $ac_func(); below. */ 4603#include <assert.h> 4604/* Override any gcc2 internal prototype to avoid an error. */ 4605/* We use char because int might match the return type of a gcc2 4606 builtin and then its argument prototype would still apply. */ 4607char $ac_func(); 4608 4609int main() { 4610 4611/* The GNU C library defines this for functions which it implements 4612 to always fail with ENOSYS. Some functions are actually named 4613 something starting with __ and the normal name is an alias. */ 4614#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4615choke me 4616#else 4617$ac_func(); 4618#endif 4619 4620; return 0; } 4621EOF 4622if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4623 rm -rf conftest* 4624 eval "ac_cv_func_$ac_func=yes" 4625else 4626 echo "configure: failed program was:" >&5 4627 cat conftest.$ac_ext >&5 4628 rm -rf conftest* 4629 eval "ac_cv_func_$ac_func=no" 4630fi 4631rm -f conftest* 4632fi 4633 4634if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4635 echo "$ac_t""yes" 1>&6 4636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4637 cat >> confdefs.h <<EOF 4638#define $ac_tr_func 1 4639EOF 4640 4641else 4642 echo "$ac_t""no" 1>&6 4643fi 4644done 4645 4646for ac_func in select 4647do 4648echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4649echo "configure:4650: checking for $ac_func" >&5 4650if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4651 echo $ac_n "(cached) $ac_c" 1>&6 4652else 4653 cat > conftest.$ac_ext <<EOF 4654#line 4655 "configure" 4655#include "confdefs.h" 4656/* System header to define __stub macros and hopefully few prototypes, 4657 which can conflict with char $ac_func(); below. */ 4658#include <assert.h> 4659/* Override any gcc2 internal prototype to avoid an error. */ 4660/* We use char because int might match the return type of a gcc2 4661 builtin and then its argument prototype would still apply. */ 4662char $ac_func(); 4663 4664int main() { 4665 4666/* The GNU C library defines this for functions which it implements 4667 to always fail with ENOSYS. Some functions are actually named 4668 something starting with __ and the normal name is an alias. */ 4669#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4670choke me 4671#else 4672$ac_func(); 4673#endif 4674 4675; return 0; } 4676EOF 4677if { (eval echo configure:4678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4678 rm -rf conftest* 4679 eval "ac_cv_func_$ac_func=yes" 4680else 4681 echo "configure: failed program was:" >&5 4682 cat conftest.$ac_ext >&5 4683 rm -rf conftest* 4684 eval "ac_cv_func_$ac_func=no" 4685fi 4686rm -f conftest* 4687fi 4688 4689if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4690 echo "$ac_t""yes" 1>&6 4691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4692 cat >> confdefs.h <<EOF 4693#define $ac_tr_func 1 4694EOF 4695 4696else 4697 echo "$ac_t""no" 1>&6 4698fi 4699done 4700 4701for ac_func in setpgid 4702do 4703echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4704echo "configure:4705: checking for $ac_func" >&5 4705if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4706 echo $ac_n "(cached) $ac_c" 1>&6 4707else 4708 cat > conftest.$ac_ext <<EOF 4709#line 4710 "configure" 4710#include "confdefs.h" 4711/* System header to define __stub macros and hopefully few prototypes, 4712 which can conflict with char $ac_func(); below. */ 4713#include <assert.h> 4714/* Override any gcc2 internal prototype to avoid an error. */ 4715/* We use char because int might match the return type of a gcc2 4716 builtin and then its argument prototype would still apply. */ 4717char $ac_func(); 4718 4719int main() { 4720 4721/* The GNU C library defines this for functions which it implements 4722 to always fail with ENOSYS. Some functions are actually named 4723 something starting with __ and the normal name is an alias. */ 4724#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4725choke me 4726#else 4727$ac_func(); 4728#endif 4729 4730; return 0; } 4731EOF 4732if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4733 rm -rf conftest* 4734 eval "ac_cv_func_$ac_func=yes" 4735else 4736 echo "configure: failed program was:" >&5 4737 cat conftest.$ac_ext >&5 4738 rm -rf conftest* 4739 eval "ac_cv_func_$ac_func=no" 4740fi 4741rm -f conftest* 4742fi 4743 4744if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4745 echo "$ac_t""yes" 1>&6 4746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4747 cat >> confdefs.h <<EOF 4748#define $ac_tr_func 1 4749EOF 4750 4751else 4752 echo "$ac_t""no" 1>&6 4753fi 4754done 4755 4756for ac_func in setrlimit 4757do 4758echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4759echo "configure:4760: checking for $ac_func" >&5 4760if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4761 echo $ac_n "(cached) $ac_c" 1>&6 4762else 4763 cat > conftest.$ac_ext <<EOF 4764#line 4765 "configure" 4765#include "confdefs.h" 4766/* System header to define __stub macros and hopefully few prototypes, 4767 which can conflict with char $ac_func(); below. */ 4768#include <assert.h> 4769/* Override any gcc2 internal prototype to avoid an error. */ 4770/* We use char because int might match the return type of a gcc2 4771 builtin and then its argument prototype would still apply. */ 4772char $ac_func(); 4773 4774int main() { 4775 4776/* The GNU C library defines this for functions which it implements 4777 to always fail with ENOSYS. Some functions are actually named 4778 something starting with __ and the normal name is an alias. */ 4779#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4780choke me 4781#else 4782$ac_func(); 4783#endif 4784 4785; return 0; } 4786EOF 4787if { (eval echo configure:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4788 rm -rf conftest* 4789 eval "ac_cv_func_$ac_func=yes" 4790else 4791 echo "configure: failed program was:" >&5 4792 cat conftest.$ac_ext >&5 4793 rm -rf conftest* 4794 eval "ac_cv_func_$ac_func=no" 4795fi 4796rm -f conftest* 4797fi 4798 4799if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4800 echo "$ac_t""yes" 1>&6 4801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4802 cat >> confdefs.h <<EOF 4803#define $ac_tr_func 1 4804EOF 4805 4806else 4807 echo "$ac_t""no" 1>&6 4808fi 4809done 4810 4811for ac_func in sigaction 4812do 4813echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4814echo "configure:4815: checking for $ac_func" >&5 4815if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4816 echo $ac_n "(cached) $ac_c" 1>&6 4817else 4818 cat > conftest.$ac_ext <<EOF 4819#line 4820 "configure" 4820#include "confdefs.h" 4821/* System header to define __stub macros and hopefully few prototypes, 4822 which can conflict with char $ac_func(); below. */ 4823#include <assert.h> 4824/* Override any gcc2 internal prototype to avoid an error. */ 4825/* We use char because int might match the return type of a gcc2 4826 builtin and then its argument prototype would still apply. */ 4827char $ac_func(); 4828 4829int main() { 4830 4831/* The GNU C library defines this for functions which it implements 4832 to always fail with ENOSYS. Some functions are actually named 4833 something starting with __ and the normal name is an alias. */ 4834#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4835choke me 4836#else 4837$ac_func(); 4838#endif 4839 4840; return 0; } 4841EOF 4842if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4843 rm -rf conftest* 4844 eval "ac_cv_func_$ac_func=yes" 4845else 4846 echo "configure: failed program was:" >&5 4847 cat conftest.$ac_ext >&5 4848 rm -rf conftest* 4849 eval "ac_cv_func_$ac_func=no" 4850fi 4851rm -f conftest* 4852fi 4853 4854if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4855 echo "$ac_t""yes" 1>&6 4856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4857 cat >> confdefs.h <<EOF 4858#define $ac_tr_func 1 4859EOF 4860 4861else 4862 echo "$ac_t""no" 1>&6 4863fi 4864done 4865 4866for ac_func in sigblock 4867do 4868echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4869echo "configure:4870: checking for $ac_func" >&5 4870if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4871 echo $ac_n "(cached) $ac_c" 1>&6 4872else 4873 cat > conftest.$ac_ext <<EOF 4874#line 4875 "configure" 4875#include "confdefs.h" 4876/* System header to define __stub macros and hopefully few prototypes, 4877 which can conflict with char $ac_func(); below. */ 4878#include <assert.h> 4879/* Override any gcc2 internal prototype to avoid an error. */ 4880/* We use char because int might match the return type of a gcc2 4881 builtin and then its argument prototype would still apply. */ 4882char $ac_func(); 4883 4884int main() { 4885 4886/* The GNU C library defines this for functions which it implements 4887 to always fail with ENOSYS. Some functions are actually named 4888 something starting with __ and the normal name is an alias. */ 4889#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4890choke me 4891#else 4892$ac_func(); 4893#endif 4894 4895; return 0; } 4896EOF 4897if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4898 rm -rf conftest* 4899 eval "ac_cv_func_$ac_func=yes" 4900else 4901 echo "configure: failed program was:" >&5 4902 cat conftest.$ac_ext >&5 4903 rm -rf conftest* 4904 eval "ac_cv_func_$ac_func=no" 4905fi 4906rm -f conftest* 4907fi 4908 4909if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4910 echo "$ac_t""yes" 1>&6 4911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4912 cat >> confdefs.h <<EOF 4913#define $ac_tr_func 1 4914EOF 4915 4916else 4917 echo "$ac_t""no" 1>&6 4918fi 4919done 4920 4921for ac_func in sigdelset 4922do 4923echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4924echo "configure:4925: checking for $ac_func" >&5 4925if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4926 echo $ac_n "(cached) $ac_c" 1>&6 4927else 4928 cat > conftest.$ac_ext <<EOF 4929#line 4930 "configure" 4930#include "confdefs.h" 4931/* System header to define __stub macros and hopefully few prototypes, 4932 which can conflict with char $ac_func(); below. */ 4933#include <assert.h> 4934/* Override any gcc2 internal prototype to avoid an error. */ 4935/* We use char because int might match the return type of a gcc2 4936 builtin and then its argument prototype would still apply. */ 4937char $ac_func(); 4938 4939int main() { 4940 4941/* The GNU C library defines this for functions which it implements 4942 to always fail with ENOSYS. Some functions are actually named 4943 something starting with __ and the normal name is an alias. */ 4944#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4945choke me 4946#else 4947$ac_func(); 4948#endif 4949 4950; return 0; } 4951EOF 4952if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4953 rm -rf conftest* 4954 eval "ac_cv_func_$ac_func=yes" 4955else 4956 echo "configure: failed program was:" >&5 4957 cat conftest.$ac_ext >&5 4958 rm -rf conftest* 4959 eval "ac_cv_func_$ac_func=no" 4960fi 4961rm -f conftest* 4962fi 4963 4964if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4965 echo "$ac_t""yes" 1>&6 4966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4967 cat >> confdefs.h <<EOF 4968#define $ac_tr_func 1 4969EOF 4970 4971else 4972 echo "$ac_t""no" 1>&6 4973fi 4974done 4975 4976for ac_func in sigfillset 4977do 4978echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4979echo "configure:4980: checking for $ac_func" >&5 4980if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4981 echo $ac_n "(cached) $ac_c" 1>&6 4982else 4983 cat > conftest.$ac_ext <<EOF 4984#line 4985 "configure" 4985#include "confdefs.h" 4986/* System header to define __stub macros and hopefully few prototypes, 4987 which can conflict with char $ac_func(); below. */ 4988#include <assert.h> 4989/* Override any gcc2 internal prototype to avoid an error. */ 4990/* We use char because int might match the return type of a gcc2 4991 builtin and then its argument prototype would still apply. */ 4992char $ac_func(); 4993 4994int main() { 4995 4996/* The GNU C library defines this for functions which it implements 4997 to always fail with ENOSYS. Some functions are actually named 4998 something starting with __ and the normal name is an alias. */ 4999#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5000choke me 5001#else 5002$ac_func(); 5003#endif 5004 5005; return 0; } 5006EOF 5007if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5008 rm -rf conftest* 5009 eval "ac_cv_func_$ac_func=yes" 5010else 5011 echo "configure: failed program was:" >&5 5012 cat conftest.$ac_ext >&5 5013 rm -rf conftest* 5014 eval "ac_cv_func_$ac_func=no" 5015fi 5016rm -f conftest* 5017fi 5018 5019if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5020 echo "$ac_t""yes" 1>&6 5021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5022 cat >> confdefs.h <<EOF 5023#define $ac_tr_func 1 5024EOF 5025 5026else 5027 echo "$ac_t""no" 1>&6 5028fi 5029done 5030 5031for ac_func in sigprocmask 5032do 5033echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5034echo "configure:5035: checking for $ac_func" >&5 5035if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5036 echo $ac_n "(cached) $ac_c" 1>&6 5037else 5038 cat > conftest.$ac_ext <<EOF 5039#line 5040 "configure" 5040#include "confdefs.h" 5041/* System header to define __stub macros and hopefully few prototypes, 5042 which can conflict with char $ac_func(); below. */ 5043#include <assert.h> 5044/* Override any gcc2 internal prototype to avoid an error. */ 5045/* We use char because int might match the return type of a gcc2 5046 builtin and then its argument prototype would still apply. */ 5047char $ac_func(); 5048 5049int main() { 5050 5051/* The GNU C library defines this for functions which it implements 5052 to always fail with ENOSYS. Some functions are actually named 5053 something starting with __ and the normal name is an alias. */ 5054#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5055choke me 5056#else 5057$ac_func(); 5058#endif 5059 5060; return 0; } 5061EOF 5062if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5063 rm -rf conftest* 5064 eval "ac_cv_func_$ac_func=yes" 5065else 5066 echo "configure: failed program was:" >&5 5067 cat conftest.$ac_ext >&5 5068 rm -rf conftest* 5069 eval "ac_cv_func_$ac_func=no" 5070fi 5071rm -f conftest* 5072fi 5073 5074if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5075 echo "$ac_t""yes" 1>&6 5076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5077 cat >> confdefs.h <<EOF 5078#define $ac_tr_func 1 5079EOF 5080 5081else 5082 echo "$ac_t""no" 1>&6 5083fi 5084done 5085 5086for ac_func in sigsetmask 5087do 5088echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5089echo "configure:5090: checking for $ac_func" >&5 5090if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5091 echo $ac_n "(cached) $ac_c" 1>&6 5092else 5093 cat > conftest.$ac_ext <<EOF 5094#line 5095 "configure" 5095#include "confdefs.h" 5096/* System header to define __stub macros and hopefully few prototypes, 5097 which can conflict with char $ac_func(); below. */ 5098#include <assert.h> 5099/* Override any gcc2 internal prototype to avoid an error. */ 5100/* We use char because int might match the return type of a gcc2 5101 builtin and then its argument prototype would still apply. */ 5102char $ac_func(); 5103 5104int main() { 5105 5106/* The GNU C library defines this for functions which it implements 5107 to always fail with ENOSYS. Some functions are actually named 5108 something starting with __ and the normal name is an alias. */ 5109#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5110choke me 5111#else 5112$ac_func(); 5113#endif 5114 5115; return 0; } 5116EOF 5117if { (eval echo configure:5118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5118 rm -rf conftest* 5119 eval "ac_cv_func_$ac_func=yes" 5120else 5121 echo "configure: failed program was:" >&5 5122 cat conftest.$ac_ext >&5 5123 rm -rf conftest* 5124 eval "ac_cv_func_$ac_func=no" 5125fi 5126rm -f conftest* 5127fi 5128 5129if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5130 echo "$ac_t""yes" 1>&6 5131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5132 cat >> confdefs.h <<EOF 5133#define $ac_tr_func 1 5134EOF 5135 5136else 5137 echo "$ac_t""no" 1>&6 5138fi 5139done 5140 5141for ac_func in strdup 5142do 5143echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5144echo "configure:5145: checking for $ac_func" >&5 5145if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5146 echo $ac_n "(cached) $ac_c" 1>&6 5147else 5148 cat > conftest.$ac_ext <<EOF 5149#line 5150 "configure" 5150#include "confdefs.h" 5151/* System header to define __stub macros and hopefully few prototypes, 5152 which can conflict with char $ac_func(); below. */ 5153#include <assert.h> 5154/* Override any gcc2 internal prototype to avoid an error. */ 5155/* We use char because int might match the return type of a gcc2 5156 builtin and then its argument prototype would still apply. */ 5157char $ac_func(); 5158 5159int main() { 5160 5161/* The GNU C library defines this for functions which it implements 5162 to always fail with ENOSYS. Some functions are actually named 5163 something starting with __ and the normal name is an alias. */ 5164#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5165choke me 5166#else 5167$ac_func(); 5168#endif 5169 5170; return 0; } 5171EOF 5172if { (eval echo configure:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5173 rm -rf conftest* 5174 eval "ac_cv_func_$ac_func=yes" 5175else 5176 echo "configure: failed program was:" >&5 5177 cat conftest.$ac_ext >&5 5178 rm -rf conftest* 5179 eval "ac_cv_func_$ac_func=no" 5180fi 5181rm -f conftest* 5182fi 5183 5184if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5185 echo "$ac_t""yes" 1>&6 5186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5187 cat >> confdefs.h <<EOF 5188#define $ac_tr_func 1 5189EOF 5190 5191else 5192 echo "$ac_t""no" 1>&6 5193fi 5194done 5195 5196for ac_func in strtoimax 5197do 5198echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5199echo "configure:5200: checking for $ac_func" >&5 5200if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5201 echo $ac_n "(cached) $ac_c" 1>&6 5202else 5203 cat > conftest.$ac_ext <<EOF 5204#line 5205 "configure" 5205#include "confdefs.h" 5206/* System header to define __stub macros and hopefully few prototypes, 5207 which can conflict with char $ac_func(); below. */ 5208#include <assert.h> 5209/* Override any gcc2 internal prototype to avoid an error. */ 5210/* We use char because int might match the return type of a gcc2 5211 builtin and then its argument prototype would still apply. */ 5212char $ac_func(); 5213 5214int main() { 5215 5216/* The GNU C library defines this for functions which it implements 5217 to always fail with ENOSYS. Some functions are actually named 5218 something starting with __ and the normal name is an alias. */ 5219#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5220choke me 5221#else 5222$ac_func(); 5223#endif 5224 5225; return 0; } 5226EOF 5227if { (eval echo configure:5228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5228 rm -rf conftest* 5229 eval "ac_cv_func_$ac_func=yes" 5230else 5231 echo "configure: failed program was:" >&5 5232 cat conftest.$ac_ext >&5 5233 rm -rf conftest* 5234 eval "ac_cv_func_$ac_func=no" 5235fi 5236rm -f conftest* 5237fi 5238 5239if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5240 echo "$ac_t""yes" 1>&6 5241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5242 cat >> confdefs.h <<EOF 5243#define $ac_tr_func 1 5244EOF 5245 5246else 5247 echo "$ac_t""no" 1>&6 5248fi 5249done 5250 5251for ac_func in strtol 5252do 5253echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5254echo "configure:5255: checking for $ac_func" >&5 5255if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5256 echo $ac_n "(cached) $ac_c" 1>&6 5257else 5258 cat > conftest.$ac_ext <<EOF 5259#line 5260 "configure" 5260#include "confdefs.h" 5261/* System header to define __stub macros and hopefully few prototypes, 5262 which can conflict with char $ac_func(); below. */ 5263#include <assert.h> 5264/* Override any gcc2 internal prototype to avoid an error. */ 5265/* We use char because int might match the return type of a gcc2 5266 builtin and then its argument prototype would still apply. */ 5267char $ac_func(); 5268 5269int main() { 5270 5271/* The GNU C library defines this for functions which it implements 5272 to always fail with ENOSYS. Some functions are actually named 5273 something starting with __ and the normal name is an alias. */ 5274#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5275choke me 5276#else 5277$ac_func(); 5278#endif 5279 5280; return 0; } 5281EOF 5282if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5283 rm -rf conftest* 5284 eval "ac_cv_func_$ac_func=yes" 5285else 5286 echo "configure: failed program was:" >&5 5287 cat conftest.$ac_ext >&5 5288 rm -rf conftest* 5289 eval "ac_cv_func_$ac_func=no" 5290fi 5291rm -f conftest* 5292fi 5293 5294if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5295 echo "$ac_t""yes" 1>&6 5296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5297 cat >> confdefs.h <<EOF 5298#define $ac_tr_func 1 5299EOF 5300 5301else 5302 echo "$ac_t""no" 1>&6 5303fi 5304done 5305 5306for ac_func in strtoll 5307do 5308echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5309echo "configure:5310: checking for $ac_func" >&5 5310if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5311 echo $ac_n "(cached) $ac_c" 1>&6 5312else 5313 cat > conftest.$ac_ext <<EOF 5314#line 5315 "configure" 5315#include "confdefs.h" 5316/* System header to define __stub macros and hopefully few prototypes, 5317 which can conflict with char $ac_func(); below. */ 5318#include <assert.h> 5319/* Override any gcc2 internal prototype to avoid an error. */ 5320/* We use char because int might match the return type of a gcc2 5321 builtin and then its argument prototype would still apply. */ 5322char $ac_func(); 5323 5324int main() { 5325 5326/* The GNU C library defines this for functions which it implements 5327 to always fail with ENOSYS. Some functions are actually named 5328 something starting with __ and the normal name is an alias. */ 5329#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5330choke me 5331#else 5332$ac_func(); 5333#endif 5334 5335; return 0; } 5336EOF 5337if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5338 rm -rf conftest* 5339 eval "ac_cv_func_$ac_func=yes" 5340else 5341 echo "configure: failed program was:" >&5 5342 cat conftest.$ac_ext >&5 5343 rm -rf conftest* 5344 eval "ac_cv_func_$ac_func=no" 5345fi 5346rm -f conftest* 5347fi 5348 5349if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5350 echo "$ac_t""yes" 1>&6 5351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5352 cat >> confdefs.h <<EOF 5353#define $ac_tr_func 1 5354EOF 5355 5356else 5357 echo "$ac_t""no" 1>&6 5358fi 5359done 5360 5361for ac_func in __strtoll 5362do 5363echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5364echo "configure:5365: checking for $ac_func" >&5 5365if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5366 echo $ac_n "(cached) $ac_c" 1>&6 5367else 5368 cat > conftest.$ac_ext <<EOF 5369#line 5370 "configure" 5370#include "confdefs.h" 5371/* System header to define __stub macros and hopefully few prototypes, 5372 which can conflict with char $ac_func(); below. */ 5373#include <assert.h> 5374/* Override any gcc2 internal prototype to avoid an error. */ 5375/* We use char because int might match the return type of a gcc2 5376 builtin and then its argument prototype would still apply. */ 5377char $ac_func(); 5378 5379int main() { 5380 5381/* The GNU C library defines this for functions which it implements 5382 to always fail with ENOSYS. Some functions are actually named 5383 something starting with __ and the normal name is an alias. */ 5384#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5385choke me 5386#else 5387$ac_func(); 5388#endif 5389 5390; return 0; } 5391EOF 5392if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5393 rm -rf conftest* 5394 eval "ac_cv_func_$ac_func=yes" 5395else 5396 echo "configure: failed program was:" >&5 5397 cat conftest.$ac_ext >&5 5398 rm -rf conftest* 5399 eval "ac_cv_func_$ac_func=no" 5400fi 5401rm -f conftest* 5402fi 5403 5404if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5405 echo "$ac_t""yes" 1>&6 5406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5407 cat >> confdefs.h <<EOF 5408#define $ac_tr_func 1 5409EOF 5410 5411else 5412 echo "$ac_t""no" 1>&6 5413fi 5414done 5415 5416for ac_func in strtoq 5417do 5418echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5419echo "configure:5420: checking for $ac_func" >&5 5420if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5421 echo $ac_n "(cached) $ac_c" 1>&6 5422else 5423 cat > conftest.$ac_ext <<EOF 5424#line 5425 "configure" 5425#include "confdefs.h" 5426/* System header to define __stub macros and hopefully few prototypes, 5427 which can conflict with char $ac_func(); below. */ 5428#include <assert.h> 5429/* Override any gcc2 internal prototype to avoid an error. */ 5430/* We use char because int might match the return type of a gcc2 5431 builtin and then its argument prototype would still apply. */ 5432char $ac_func(); 5433 5434int main() { 5435 5436/* The GNU C library defines this for functions which it implements 5437 to always fail with ENOSYS. Some functions are actually named 5438 something starting with __ and the normal name is an alias. */ 5439#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5440choke me 5441#else 5442$ac_func(); 5443#endif 5444 5445; return 0; } 5446EOF 5447if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5448 rm -rf conftest* 5449 eval "ac_cv_func_$ac_func=yes" 5450else 5451 echo "configure: failed program was:" >&5 5452 cat conftest.$ac_ext >&5 5453 rm -rf conftest* 5454 eval "ac_cv_func_$ac_func=no" 5455fi 5456rm -f conftest* 5457fi 5458 5459if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5460 echo "$ac_t""yes" 1>&6 5461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5462 cat >> confdefs.h <<EOF 5463#define $ac_tr_func 1 5464EOF 5465 5466else 5467 echo "$ac_t""no" 1>&6 5468fi 5469done 5470 5471for ac_func in strtoul 5472do 5473echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5474echo "configure:5475: checking for $ac_func" >&5 5475if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5476 echo $ac_n "(cached) $ac_c" 1>&6 5477else 5478 cat > conftest.$ac_ext <<EOF 5479#line 5480 "configure" 5480#include "confdefs.h" 5481/* System header to define __stub macros and hopefully few prototypes, 5482 which can conflict with char $ac_func(); below. */ 5483#include <assert.h> 5484/* Override any gcc2 internal prototype to avoid an error. */ 5485/* We use char because int might match the return type of a gcc2 5486 builtin and then its argument prototype would still apply. */ 5487char $ac_func(); 5488 5489int main() { 5490 5491/* The GNU C library defines this for functions which it implements 5492 to always fail with ENOSYS. Some functions are actually named 5493 something starting with __ and the normal name is an alias. */ 5494#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5495choke me 5496#else 5497$ac_func(); 5498#endif 5499 5500; return 0; } 5501EOF 5502if { (eval echo configure:5503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5503 rm -rf conftest* 5504 eval "ac_cv_func_$ac_func=yes" 5505else 5506 echo "configure: failed program was:" >&5 5507 cat conftest.$ac_ext >&5 5508 rm -rf conftest* 5509 eval "ac_cv_func_$ac_func=no" 5510fi 5511rm -f conftest* 5512fi 5513 5514if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5515 echo "$ac_t""yes" 1>&6 5516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5517 cat >> confdefs.h <<EOF 5518#define $ac_tr_func 1 5519EOF 5520 5521else 5522 echo "$ac_t""no" 1>&6 5523fi 5524done 5525 5526for ac_func in tempnam 5527do 5528echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5529echo "configure:5530: checking for $ac_func" >&5 5530if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5531 echo $ac_n "(cached) $ac_c" 1>&6 5532else 5533 cat > conftest.$ac_ext <<EOF 5534#line 5535 "configure" 5535#include "confdefs.h" 5536/* System header to define __stub macros and hopefully few prototypes, 5537 which can conflict with char $ac_func(); below. */ 5538#include <assert.h> 5539/* Override any gcc2 internal prototype to avoid an error. */ 5540/* We use char because int might match the return type of a gcc2 5541 builtin and then its argument prototype would still apply. */ 5542char $ac_func(); 5543 5544int main() { 5545 5546/* The GNU C library defines this for functions which it implements 5547 to always fail with ENOSYS. Some functions are actually named 5548 something starting with __ and the normal name is an alias. */ 5549#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5550choke me 5551#else 5552$ac_func(); 5553#endif 5554 5555; return 0; } 5556EOF 5557if { (eval echo configure:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5558 rm -rf conftest* 5559 eval "ac_cv_func_$ac_func=yes" 5560else 5561 echo "configure: failed program was:" >&5 5562 cat conftest.$ac_ext >&5 5563 rm -rf conftest* 5564 eval "ac_cv_func_$ac_func=no" 5565fi 5566rm -f conftest* 5567fi 5568 5569if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5570 echo "$ac_t""yes" 1>&6 5571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5572 cat >> confdefs.h <<EOF 5573#define $ac_tr_func 1 5574EOF 5575 5576else 5577 echo "$ac_t""no" 1>&6 5578fi 5579done 5580 5581for ac_func in uname 5582do 5583echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5584echo "configure:5585: checking for $ac_func" >&5 5585if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5586 echo $ac_n "(cached) $ac_c" 1>&6 5587else 5588 cat > conftest.$ac_ext <<EOF 5589#line 5590 "configure" 5590#include "confdefs.h" 5591/* System header to define __stub macros and hopefully few prototypes, 5592 which can conflict with char $ac_func(); below. */ 5593#include <assert.h> 5594/* Override any gcc2 internal prototype to avoid an error. */ 5595/* We use char because int might match the return type of a gcc2 5596 builtin and then its argument prototype would still apply. */ 5597char $ac_func(); 5598 5599int main() { 5600 5601/* The GNU C library defines this for functions which it implements 5602 to always fail with ENOSYS. Some functions are actually named 5603 something starting with __ and the normal name is an alias. */ 5604#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5605choke me 5606#else 5607$ac_func(); 5608#endif 5609 5610; return 0; } 5611EOF 5612if { (eval echo configure:5613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5613 rm -rf conftest* 5614 eval "ac_cv_func_$ac_func=yes" 5615else 5616 echo "configure: failed program was:" >&5 5617 cat conftest.$ac_ext >&5 5618 rm -rf conftest* 5619 eval "ac_cv_func_$ac_func=no" 5620fi 5621rm -f conftest* 5622fi 5623 5624if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5625 echo "$ac_t""yes" 1>&6 5626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5627 cat >> confdefs.h <<EOF 5628#define $ac_tr_func 1 5629EOF 5630 5631else 5632 echo "$ac_t""no" 1>&6 5633fi 5634done 5635 5636for ac_func in utime 5637do 5638echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5639echo "configure:5640: checking for $ac_func" >&5 5640if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5641 echo $ac_n "(cached) $ac_c" 1>&6 5642else 5643 cat > conftest.$ac_ext <<EOF 5644#line 5645 "configure" 5645#include "confdefs.h" 5646/* System header to define __stub macros and hopefully few prototypes, 5647 which can conflict with char $ac_func(); below. */ 5648#include <assert.h> 5649/* Override any gcc2 internal prototype to avoid an error. */ 5650/* We use char because int might match the return type of a gcc2 5651 builtin and then its argument prototype would still apply. */ 5652char $ac_func(); 5653 5654int main() { 5655 5656/* The GNU C library defines this for functions which it implements 5657 to always fail with ENOSYS. Some functions are actually named 5658 something starting with __ and the normal name is an alias. */ 5659#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5660choke me 5661#else 5662$ac_func(); 5663#endif 5664 5665; return 0; } 5666EOF 5667if { (eval echo configure:5668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5668 rm -rf conftest* 5669 eval "ac_cv_func_$ac_func=yes" 5670else 5671 echo "configure: failed program was:" >&5 5672 cat conftest.$ac_ext >&5 5673 rm -rf conftest* 5674 eval "ac_cv_func_$ac_func=no" 5675fi 5676rm -f conftest* 5677fi 5678 5679if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5680 echo "$ac_t""yes" 1>&6 5681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5682 cat >> confdefs.h <<EOF 5683#define $ac_tr_func 1 5684EOF 5685 5686else 5687 echo "$ac_t""no" 1>&6 5688fi 5689done 5690 5691for ac_func in utimes 5692do 5693echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5694echo "configure:5695: checking for $ac_func" >&5 5695if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5696 echo $ac_n "(cached) $ac_c" 1>&6 5697else 5698 cat > conftest.$ac_ext <<EOF 5699#line 5700 "configure" 5700#include "confdefs.h" 5701/* System header to define __stub macros and hopefully few prototypes, 5702 which can conflict with char $ac_func(); below. */ 5703#include <assert.h> 5704/* Override any gcc2 internal prototype to avoid an error. */ 5705/* We use char because int might match the return type of a gcc2 5706 builtin and then its argument prototype would still apply. */ 5707char $ac_func(); 5708 5709int main() { 5710 5711/* The GNU C library defines this for functions which it implements 5712 to always fail with ENOSYS. Some functions are actually named 5713 something starting with __ and the normal name is an alias. */ 5714#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5715choke me 5716#else 5717$ac_func(); 5718#endif 5719 5720; return 0; } 5721EOF 5722if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5723 rm -rf conftest* 5724 eval "ac_cv_func_$ac_func=yes" 5725else 5726 echo "configure: failed program was:" >&5 5727 cat conftest.$ac_ext >&5 5728 rm -rf conftest* 5729 eval "ac_cv_func_$ac_func=no" 5730fi 5731rm -f conftest* 5732fi 5733 5734if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5735 echo "$ac_t""yes" 1>&6 5736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5737 cat >> confdefs.h <<EOF 5738#define $ac_tr_func 1 5739EOF 5740 5741else 5742 echo "$ac_t""no" 1>&6 5743fi 5744done 5745 5746 5747for ac_func in strlen 5748do 5749echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5750echo "configure:5751: checking for $ac_func" >&5 5751if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5752 echo $ac_n "(cached) $ac_c" 1>&6 5753else 5754 cat > conftest.$ac_ext <<EOF 5755#line 5756 "configure" 5756#include "confdefs.h" 5757/* System header to define __stub macros and hopefully few prototypes, 5758 which can conflict with char $ac_func(); below. */ 5759#include <assert.h> 5760/* Override any gcc2 internal prototype to avoid an error. */ 5761/* We use char because int might match the return type of a gcc2 5762 builtin and then its argument prototype would still apply. */ 5763char $ac_func(); 5764 5765int main() { 5766 5767/* The GNU C library defines this for functions which it implements 5768 to always fail with ENOSYS. Some functions are actually named 5769 something starting with __ and the normal name is an alias. */ 5770#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5771choke me 5772#else 5773$ac_func(); 5774#endif 5775 5776; return 0; } 5777EOF 5778if { (eval echo configure:5779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5779 rm -rf conftest* 5780 eval "ac_cv_func_$ac_func=yes" 5781else 5782 echo "configure: failed program was:" >&5 5783 cat conftest.$ac_ext >&5 5784 rm -rf conftest* 5785 eval "ac_cv_func_$ac_func=no" 5786fi 5787rm -f conftest* 5788fi 5789 5790if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5791 echo "$ac_t""yes" 1>&6 5792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5793 cat >> confdefs.h <<EOF 5794#define $ac_tr_func 1 5795EOF 5796 5797else 5798 echo "$ac_t""no" 1>&6 5799fi 5800done 5801 5802echo $ac_n "checking for strlen""... $ac_c" 1>&6 5803echo "configure:5804: checking for strlen" >&5 5804if eval "test \"`echo '$''{'ac_cv_have_strlen'+set}'`\" = set"; then 5805 echo $ac_n "(cached) $ac_c" 1>&6 5806else 5807 cat > conftest.$ac_ext <<EOF 5808#line 5809 "configure" 5809#include "confdefs.h" 5810#include <string.h> 5811int main() { 5812strlen(""); return 0; 5813; return 0; } 5814EOF 5815if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5816 rm -rf conftest* 5817 ac_cv_have_strlen=yes 5818else 5819 echo "configure: failed program was:" >&5 5820 cat conftest.$ac_ext >&5 5821 rm -rf conftest* 5822 ac_cv_have_strlen=no 5823fi 5824rm -f conftest* 5825 5826fi 5827 5828echo "$ac_t""$ac_cv_have_strlen" 1>&6 5829if test "$ac_cv_have_strlen" = yes; then 5830 cat >> confdefs.h <<\EOF 5831#define HAVE_STRLEN 1 5832EOF 5833 5834fi 5835 5836for ac_func in strcpy 5837do 5838echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5839echo "configure:5840: checking for $ac_func" >&5 5840if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5841 echo $ac_n "(cached) $ac_c" 1>&6 5842else 5843 cat > conftest.$ac_ext <<EOF 5844#line 5845 "configure" 5845#include "confdefs.h" 5846/* System header to define __stub macros and hopefully few prototypes, 5847 which can conflict with char $ac_func(); below. */ 5848#include <assert.h> 5849/* Override any gcc2 internal prototype to avoid an error. */ 5850/* We use char because int might match the return type of a gcc2 5851 builtin and then its argument prototype would still apply. */ 5852char $ac_func(); 5853 5854int main() { 5855 5856/* The GNU C library defines this for functions which it implements 5857 to always fail with ENOSYS. Some functions are actually named 5858 something starting with __ and the normal name is an alias. */ 5859#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5860choke me 5861#else 5862$ac_func(); 5863#endif 5864 5865; return 0; } 5866EOF 5867if { (eval echo configure:5868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5868 rm -rf conftest* 5869 eval "ac_cv_func_$ac_func=yes" 5870else 5871 echo "configure: failed program was:" >&5 5872 cat conftest.$ac_ext >&5 5873 rm -rf conftest* 5874 eval "ac_cv_func_$ac_func=no" 5875fi 5876rm -f conftest* 5877fi 5878 5879if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5880 echo "$ac_t""yes" 1>&6 5881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5882 cat >> confdefs.h <<EOF 5883#define $ac_tr_func 1 5884EOF 5885 5886else 5887 echo "$ac_t""no" 1>&6 5888fi 5889done 5890 5891echo $ac_n "checking for strcpy""... $ac_c" 1>&6 5892echo "configure:5893: checking for strcpy" >&5 5893if eval "test \"`echo '$''{'ac_cv_have_strcpy'+set}'`\" = set"; then 5894 echo $ac_n "(cached) $ac_c" 1>&6 5895else 5896 cat > conftest.$ac_ext <<EOF 5897#line 5898 "configure" 5898#include "confdefs.h" 5899#include <string.h> 5900int main() { 5901char a[1]; strcpy(a, ""); return 0; 5902; return 0; } 5903EOF 5904if { (eval echo configure:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5905 rm -rf conftest* 5906 ac_cv_have_strcpy=yes 5907else 5908 echo "configure: failed program was:" >&5 5909 cat conftest.$ac_ext >&5 5910 rm -rf conftest* 5911 ac_cv_have_strcpy=no 5912fi 5913rm -f conftest* 5914 5915fi 5916 5917echo "$ac_t""$ac_cv_have_strcpy" 1>&6 5918if test "$ac_cv_have_strcpy" = yes; then 5919 cat >> confdefs.h <<\EOF 5920#define HAVE_STRCPY 1 5921EOF 5922 5923fi 5924 5925for ac_func in strchr 5926do 5927echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5928echo "configure:5929: checking for $ac_func" >&5 5929if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5930 echo $ac_n "(cached) $ac_c" 1>&6 5931else 5932 cat > conftest.$ac_ext <<EOF 5933#line 5934 "configure" 5934#include "confdefs.h" 5935/* System header to define __stub macros and hopefully few prototypes, 5936 which can conflict with char $ac_func(); below. */ 5937#include <assert.h> 5938/* Override any gcc2 internal prototype to avoid an error. */ 5939/* We use char because int might match the return type of a gcc2 5940 builtin and then its argument prototype would still apply. */ 5941char $ac_func(); 5942 5943int main() { 5944 5945/* The GNU C library defines this for functions which it implements 5946 to always fail with ENOSYS. Some functions are actually named 5947 something starting with __ and the normal name is an alias. */ 5948#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5949choke me 5950#else 5951$ac_func(); 5952#endif 5953 5954; return 0; } 5955EOF 5956if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5957 rm -rf conftest* 5958 eval "ac_cv_func_$ac_func=yes" 5959else 5960 echo "configure: failed program was:" >&5 5961 cat conftest.$ac_ext >&5 5962 rm -rf conftest* 5963 eval "ac_cv_func_$ac_func=no" 5964fi 5965rm -f conftest* 5966fi 5967 5968if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5969 echo "$ac_t""yes" 1>&6 5970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5971 cat >> confdefs.h <<EOF 5972#define $ac_tr_func 1 5973EOF 5974 5975else 5976 echo "$ac_t""no" 1>&6 5977fi 5978done 5979 5980echo $ac_n "checking for strchr""... $ac_c" 1>&6 5981echo "configure:5982: checking for strchr" >&5 5982if eval "test \"`echo '$''{'ac_cv_have_strchr'+set}'`\" = set"; then 5983 echo $ac_n "(cached) $ac_c" 1>&6 5984else 5985 cat > conftest.$ac_ext <<EOF 5986#line 5987 "configure" 5987#include "confdefs.h" 5988#include <string.h> 5989int main() { 5990strchr("", 0); return 0; 5991; return 0; } 5992EOF 5993if { (eval echo configure:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5994 rm -rf conftest* 5995 ac_cv_have_strchr=yes 5996else 5997 echo "configure: failed program was:" >&5 5998 cat conftest.$ac_ext >&5 5999 rm -rf conftest* 6000 ac_cv_have_strchr=no 6001fi 6002rm -f conftest* 6003 6004fi 6005 6006echo "$ac_t""$ac_cv_have_strchr" 1>&6 6007if test "$ac_cv_have_strchr" = yes; then 6008 cat >> confdefs.h <<\EOF 6009#define HAVE_STRCHR 1 6010EOF 6011 6012fi 6013 6014for ac_func in strrchr 6015do 6016echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6017echo "configure:6018: checking for $ac_func" >&5 6018if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6019 echo $ac_n "(cached) $ac_c" 1>&6 6020else 6021 cat > conftest.$ac_ext <<EOF 6022#line 6023 "configure" 6023#include "confdefs.h" 6024/* System header to define __stub macros and hopefully few prototypes, 6025 which can conflict with char $ac_func(); below. */ 6026#include <assert.h> 6027/* Override any gcc2 internal prototype to avoid an error. */ 6028/* We use char because int might match the return type of a gcc2 6029 builtin and then its argument prototype would still apply. */ 6030char $ac_func(); 6031 6032int main() { 6033 6034/* The GNU C library defines this for functions which it implements 6035 to always fail with ENOSYS. Some functions are actually named 6036 something starting with __ and the normal name is an alias. */ 6037#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6038choke me 6039#else 6040$ac_func(); 6041#endif 6042 6043; return 0; } 6044EOF 6045if { (eval echo configure:6046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6046 rm -rf conftest* 6047 eval "ac_cv_func_$ac_func=yes" 6048else 6049 echo "configure: failed program was:" >&5 6050 cat conftest.$ac_ext >&5 6051 rm -rf conftest* 6052 eval "ac_cv_func_$ac_func=no" 6053fi 6054rm -f conftest* 6055fi 6056 6057if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6058 echo "$ac_t""yes" 1>&6 6059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6060 cat >> confdefs.h <<EOF 6061#define $ac_tr_func 1 6062EOF 6063 6064else 6065 echo "$ac_t""no" 1>&6 6066fi 6067done 6068 6069echo $ac_n "checking for strrchr""... $ac_c" 1>&6 6070echo "configure:6071: checking for strrchr" >&5 6071if eval "test \"`echo '$''{'ac_cv_have_strrchr'+set}'`\" = set"; then 6072 echo $ac_n "(cached) $ac_c" 1>&6 6073else 6074 cat > conftest.$ac_ext <<EOF 6075#line 6076 "configure" 6076#include "confdefs.h" 6077#include <string.h> 6078int main() { 6079strrchr("", 0); return 0; 6080; return 0; } 6081EOF 6082if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6083 rm -rf conftest* 6084 ac_cv_have_strrchr=yes 6085else 6086 echo "configure: failed program was:" >&5 6087 cat conftest.$ac_ext >&5 6088 rm -rf conftest* 6089 ac_cv_have_strrchr=no 6090fi 6091rm -f conftest* 6092 6093fi 6094 6095echo "$ac_t""$ac_cv_have_strrchr" 1>&6 6096if test "$ac_cv_have_strrchr" = yes; then 6097 cat >> confdefs.h <<\EOF 6098#define HAVE_STRRCHR 1 6099EOF 6100 6101fi 6102 6103for ac_func in strcmp 6104do 6105echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6106echo "configure:6107: checking for $ac_func" >&5 6107if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6108 echo $ac_n "(cached) $ac_c" 1>&6 6109else 6110 cat > conftest.$ac_ext <<EOF 6111#line 6112 "configure" 6112#include "confdefs.h" 6113/* System header to define __stub macros and hopefully few prototypes, 6114 which can conflict with char $ac_func(); below. */ 6115#include <assert.h> 6116/* Override any gcc2 internal prototype to avoid an error. */ 6117/* We use char because int might match the return type of a gcc2 6118 builtin and then its argument prototype would still apply. */ 6119char $ac_func(); 6120 6121int main() { 6122 6123/* The GNU C library defines this for functions which it implements 6124 to always fail with ENOSYS. Some functions are actually named 6125 something starting with __ and the normal name is an alias. */ 6126#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6127choke me 6128#else 6129$ac_func(); 6130#endif 6131 6132; return 0; } 6133EOF 6134if { (eval echo configure:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6135 rm -rf conftest* 6136 eval "ac_cv_func_$ac_func=yes" 6137else 6138 echo "configure: failed program was:" >&5 6139 cat conftest.$ac_ext >&5 6140 rm -rf conftest* 6141 eval "ac_cv_func_$ac_func=no" 6142fi 6143rm -f conftest* 6144fi 6145 6146if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6147 echo "$ac_t""yes" 1>&6 6148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6149 cat >> confdefs.h <<EOF 6150#define $ac_tr_func 1 6151EOF 6152 6153else 6154 echo "$ac_t""no" 1>&6 6155fi 6156done 6157 6158echo $ac_n "checking for strcmp""... $ac_c" 1>&6 6159echo "configure:6160: checking for strcmp" >&5 6160if eval "test \"`echo '$''{'ac_cv_have_strcmp'+set}'`\" = set"; then 6161 echo $ac_n "(cached) $ac_c" 1>&6 6162else 6163 cat > conftest.$ac_ext <<EOF 6164#line 6165 "configure" 6165#include "confdefs.h" 6166#include <string.h> 6167int main() { 6168strcmp("", ""); return 0; 6169; return 0; } 6170EOF 6171if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6172 rm -rf conftest* 6173 ac_cv_have_strcmp=yes 6174else 6175 echo "configure: failed program was:" >&5 6176 cat conftest.$ac_ext >&5 6177 rm -rf conftest* 6178 ac_cv_have_strcmp=no 6179fi 6180rm -f conftest* 6181 6182fi 6183 6184echo "$ac_t""$ac_cv_have_strcmp" 1>&6 6185if test "$ac_cv_have_strcmp" = yes; then 6186 cat >> confdefs.h <<\EOF 6187#define HAVE_STRCMP 1 6188EOF 6189 6190fi 6191 6192for ac_func in strncmp 6193do 6194echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6195echo "configure:6196: checking for $ac_func" >&5 6196if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6197 echo $ac_n "(cached) $ac_c" 1>&6 6198else 6199 cat > conftest.$ac_ext <<EOF 6200#line 6201 "configure" 6201#include "confdefs.h" 6202/* System header to define __stub macros and hopefully few prototypes, 6203 which can conflict with char $ac_func(); below. */ 6204#include <assert.h> 6205/* Override any gcc2 internal prototype to avoid an error. */ 6206/* We use char because int might match the return type of a gcc2 6207 builtin and then its argument prototype would still apply. */ 6208char $ac_func(); 6209 6210int main() { 6211 6212/* The GNU C library defines this for functions which it implements 6213 to always fail with ENOSYS. Some functions are actually named 6214 something starting with __ and the normal name is an alias. */ 6215#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6216choke me 6217#else 6218$ac_func(); 6219#endif 6220 6221; return 0; } 6222EOF 6223if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6224 rm -rf conftest* 6225 eval "ac_cv_func_$ac_func=yes" 6226else 6227 echo "configure: failed program was:" >&5 6228 cat conftest.$ac_ext >&5 6229 rm -rf conftest* 6230 eval "ac_cv_func_$ac_func=no" 6231fi 6232rm -f conftest* 6233fi 6234 6235if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6236 echo "$ac_t""yes" 1>&6 6237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6238 cat >> confdefs.h <<EOF 6239#define $ac_tr_func 1 6240EOF 6241 6242else 6243 echo "$ac_t""no" 1>&6 6244fi 6245done 6246 6247echo $ac_n "checking for strncmp""... $ac_c" 1>&6 6248echo "configure:6249: checking for strncmp" >&5 6249if eval "test \"`echo '$''{'ac_cv_have_strncmp'+set}'`\" = set"; then 6250 echo $ac_n "(cached) $ac_c" 1>&6 6251else 6252 cat > conftest.$ac_ext <<EOF 6253#line 6254 "configure" 6254#include "confdefs.h" 6255#include <string.h> 6256int main() { 6257strncmp("", "", 1); return 0; 6258; return 0; } 6259EOF 6260if { (eval echo configure:6261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6261 rm -rf conftest* 6262 ac_cv_have_strncmp=yes 6263else 6264 echo "configure: failed program was:" >&5 6265 cat conftest.$ac_ext >&5 6266 rm -rf conftest* 6267 ac_cv_have_strncmp=no 6268fi 6269rm -f conftest* 6270 6271fi 6272 6273echo "$ac_t""$ac_cv_have_strncmp" 1>&6 6274if test "$ac_cv_have_strncmp" = yes; then 6275 cat >> confdefs.h <<\EOF 6276#define HAVE_STRNCMP 1 6277EOF 6278 6279fi 6280 6281for ac_func in strcasecmp 6282do 6283echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6284echo "configure:6285: checking for $ac_func" >&5 6285if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6286 echo $ac_n "(cached) $ac_c" 1>&6 6287else 6288 cat > conftest.$ac_ext <<EOF 6289#line 6290 "configure" 6290#include "confdefs.h" 6291/* System header to define __stub macros and hopefully few prototypes, 6292 which can conflict with char $ac_func(); below. */ 6293#include <assert.h> 6294/* Override any gcc2 internal prototype to avoid an error. */ 6295/* We use char because int might match the return type of a gcc2 6296 builtin and then its argument prototype would still apply. */ 6297char $ac_func(); 6298 6299int main() { 6300 6301/* The GNU C library defines this for functions which it implements 6302 to always fail with ENOSYS. Some functions are actually named 6303 something starting with __ and the normal name is an alias. */ 6304#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6305choke me 6306#else 6307$ac_func(); 6308#endif 6309 6310; return 0; } 6311EOF 6312if { (eval echo configure:6313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6313 rm -rf conftest* 6314 eval "ac_cv_func_$ac_func=yes" 6315else 6316 echo "configure: failed program was:" >&5 6317 cat conftest.$ac_ext >&5 6318 rm -rf conftest* 6319 eval "ac_cv_func_$ac_func=no" 6320fi 6321rm -f conftest* 6322fi 6323 6324if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6325 echo "$ac_t""yes" 1>&6 6326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6327 cat >> confdefs.h <<EOF 6328#define $ac_tr_func 1 6329EOF 6330 6331else 6332 echo "$ac_t""no" 1>&6 6333fi 6334done 6335 6336echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6 6337echo "configure:6338: checking for strcasecmp" >&5 6338if eval "test \"`echo '$''{'ac_cv_have_strcasecmp'+set}'`\" = set"; then 6339 echo $ac_n "(cached) $ac_c" 1>&6 6340else 6341 cat > conftest.$ac_ext <<EOF 6342#line 6343 "configure" 6343#include "confdefs.h" 6344#include <string.h> 6345int main() { 6346strcasecmp("", ""); return 0; 6347; return 0; } 6348EOF 6349if { (eval echo configure:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6350 rm -rf conftest* 6351 ac_cv_have_strcasecmp=yes 6352else 6353 echo "configure: failed program was:" >&5 6354 cat conftest.$ac_ext >&5 6355 rm -rf conftest* 6356 ac_cv_have_strcasecmp=no 6357fi 6358rm -f conftest* 6359 6360fi 6361 6362echo "$ac_t""$ac_cv_have_strcasecmp" 1>&6 6363if test "$ac_cv_have_strcasecmp" = yes; then 6364 cat >> confdefs.h <<\EOF 6365#define HAVE_STRCASECMP 1 6366EOF 6367 6368fi 6369 6370for ac_func in strncasecmp 6371do 6372echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6373echo "configure:6374: checking for $ac_func" >&5 6374if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6375 echo $ac_n "(cached) $ac_c" 1>&6 6376else 6377 cat > conftest.$ac_ext <<EOF 6378#line 6379 "configure" 6379#include "confdefs.h" 6380/* System header to define __stub macros and hopefully few prototypes, 6381 which can conflict with char $ac_func(); below. */ 6382#include <assert.h> 6383/* Override any gcc2 internal prototype to avoid an error. */ 6384/* We use char because int might match the return type of a gcc2 6385 builtin and then its argument prototype would still apply. */ 6386char $ac_func(); 6387 6388int main() { 6389 6390/* The GNU C library defines this for functions which it implements 6391 to always fail with ENOSYS. Some functions are actually named 6392 something starting with __ and the normal name is an alias. */ 6393#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6394choke me 6395#else 6396$ac_func(); 6397#endif 6398 6399; return 0; } 6400EOF 6401if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6402 rm -rf conftest* 6403 eval "ac_cv_func_$ac_func=yes" 6404else 6405 echo "configure: failed program was:" >&5 6406 cat conftest.$ac_ext >&5 6407 rm -rf conftest* 6408 eval "ac_cv_func_$ac_func=no" 6409fi 6410rm -f conftest* 6411fi 6412 6413if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6414 echo "$ac_t""yes" 1>&6 6415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6416 cat >> confdefs.h <<EOF 6417#define $ac_tr_func 1 6418EOF 6419 6420else 6421 echo "$ac_t""no" 1>&6 6422fi 6423done 6424 6425echo $ac_n "checking for strncasecmp""... $ac_c" 1>&6 6426echo "configure:6427: checking for strncasecmp" >&5 6427if eval "test \"`echo '$''{'ac_cv_have_strncasecmp'+set}'`\" = set"; then 6428 echo $ac_n "(cached) $ac_c" 1>&6 6429else 6430 cat > conftest.$ac_ext <<EOF 6431#line 6432 "configure" 6432#include "confdefs.h" 6433#include <string.h> 6434int main() { 6435strncasecmp("", "", 1); return 0; 6436; return 0; } 6437EOF 6438if { (eval echo configure:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6439 rm -rf conftest* 6440 ac_cv_have_strncasecmp=yes 6441else 6442 echo "configure: failed program was:" >&5 6443 cat conftest.$ac_ext >&5 6444 rm -rf conftest* 6445 ac_cv_have_strncasecmp=no 6446fi 6447rm -f conftest* 6448 6449fi 6450 6451echo "$ac_t""$ac_cv_have_strncasecmp" 1>&6 6452if test "$ac_cv_have_strncasecmp" = yes; then 6453 cat >> confdefs.h <<\EOF 6454#define HAVE_STRNCASECMP 1 6455EOF 6456 6457fi 6458 6459for ac_func in strcspn 6460do 6461echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6462echo "configure:6463: checking for $ac_func" >&5 6463if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6464 echo $ac_n "(cached) $ac_c" 1>&6 6465else 6466 cat > conftest.$ac_ext <<EOF 6467#line 6468 "configure" 6468#include "confdefs.h" 6469/* System header to define __stub macros and hopefully few prototypes, 6470 which can conflict with char $ac_func(); below. */ 6471#include <assert.h> 6472/* Override any gcc2 internal prototype to avoid an error. */ 6473/* We use char because int might match the return type of a gcc2 6474 builtin and then its argument prototype would still apply. */ 6475char $ac_func(); 6476 6477int main() { 6478 6479/* The GNU C library defines this for functions which it implements 6480 to always fail with ENOSYS. Some functions are actually named 6481 something starting with __ and the normal name is an alias. */ 6482#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6483choke me 6484#else 6485$ac_func(); 6486#endif 6487 6488; return 0; } 6489EOF 6490if { (eval echo configure:6491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6491 rm -rf conftest* 6492 eval "ac_cv_func_$ac_func=yes" 6493else 6494 echo "configure: failed program was:" >&5 6495 cat conftest.$ac_ext >&5 6496 rm -rf conftest* 6497 eval "ac_cv_func_$ac_func=no" 6498fi 6499rm -f conftest* 6500fi 6501 6502if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6503 echo "$ac_t""yes" 1>&6 6504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6505 cat >> confdefs.h <<EOF 6506#define $ac_tr_func 1 6507EOF 6508 6509else 6510 echo "$ac_t""no" 1>&6 6511fi 6512done 6513 6514echo $ac_n "checking for strcspn""... $ac_c" 1>&6 6515echo "configure:6516: checking for strcspn" >&5 6516if eval "test \"`echo '$''{'ac_cv_have_strcspn'+set}'`\" = set"; then 6517 echo $ac_n "(cached) $ac_c" 1>&6 6518else 6519 cat > conftest.$ac_ext <<EOF 6520#line 6521 "configure" 6521#include "confdefs.h" 6522#include <string.h> 6523int main() { 6524strcspn("", ""); return 0; 6525; return 0; } 6526EOF 6527if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6528 rm -rf conftest* 6529 ac_cv_have_strcspn=yes 6530else 6531 echo "configure: failed program was:" >&5 6532 cat conftest.$ac_ext >&5 6533 rm -rf conftest* 6534 ac_cv_have_strcspn=no 6535fi 6536rm -f conftest* 6537 6538fi 6539 6540echo "$ac_t""$ac_cv_have_strcspn" 1>&6 6541if test "$ac_cv_have_strcspn" = yes; then 6542 cat >> confdefs.h <<\EOF 6543#define HAVE_STRCSPN 1 6544EOF 6545 6546fi 6547 6548for ac_func in strspn 6549do 6550echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6551echo "configure:6552: checking for $ac_func" >&5 6552if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6553 echo $ac_n "(cached) $ac_c" 1>&6 6554else 6555 cat > conftest.$ac_ext <<EOF 6556#line 6557 "configure" 6557#include "confdefs.h" 6558/* System header to define __stub macros and hopefully few prototypes, 6559 which can conflict with char $ac_func(); below. */ 6560#include <assert.h> 6561/* Override any gcc2 internal prototype to avoid an error. */ 6562/* We use char because int might match the return type of a gcc2 6563 builtin and then its argument prototype would still apply. */ 6564char $ac_func(); 6565 6566int main() { 6567 6568/* The GNU C library defines this for functions which it implements 6569 to always fail with ENOSYS. Some functions are actually named 6570 something starting with __ and the normal name is an alias. */ 6571#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6572choke me 6573#else 6574$ac_func(); 6575#endif 6576 6577; return 0; } 6578EOF 6579if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6580 rm -rf conftest* 6581 eval "ac_cv_func_$ac_func=yes" 6582else 6583 echo "configure: failed program was:" >&5 6584 cat conftest.$ac_ext >&5 6585 rm -rf conftest* 6586 eval "ac_cv_func_$ac_func=no" 6587fi 6588rm -f conftest* 6589fi 6590 6591if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6592 echo "$ac_t""yes" 1>&6 6593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6594 cat >> confdefs.h <<EOF 6595#define $ac_tr_func 1 6596EOF 6597 6598else 6599 echo "$ac_t""no" 1>&6 6600fi 6601done 6602 6603echo $ac_n "checking for strspn""... $ac_c" 1>&6 6604echo "configure:6605: checking for strspn" >&5 6605if eval "test \"`echo '$''{'ac_cv_have_strspn'+set}'`\" = set"; then 6606 echo $ac_n "(cached) $ac_c" 1>&6 6607else 6608 cat > conftest.$ac_ext <<EOF 6609#line 6610 "configure" 6610#include "confdefs.h" 6611#include <string.h> 6612int main() { 6613strspn("", ""); return 0; 6614; return 0; } 6615EOF 6616if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6617 rm -rf conftest* 6618 ac_cv_have_strspn=yes 6619else 6620 echo "configure: failed program was:" >&5 6621 cat conftest.$ac_ext >&5 6622 rm -rf conftest* 6623 ac_cv_have_strspn=no 6624fi 6625rm -f conftest* 6626 6627fi 6628 6629echo "$ac_t""$ac_cv_have_strspn" 1>&6 6630if test "$ac_cv_have_strspn" = yes; then 6631 cat >> confdefs.h <<\EOF 6632#define HAVE_STRSPN 1 6633EOF 6634 6635fi 6636 6637for ac_func in strstr 6638do 6639echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6640echo "configure:6641: checking for $ac_func" >&5 6641if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6642 echo $ac_n "(cached) $ac_c" 1>&6 6643else 6644 cat > conftest.$ac_ext <<EOF 6645#line 6646 "configure" 6646#include "confdefs.h" 6647/* System header to define __stub macros and hopefully few prototypes, 6648 which can conflict with char $ac_func(); below. */ 6649#include <assert.h> 6650/* Override any gcc2 internal prototype to avoid an error. */ 6651/* We use char because int might match the return type of a gcc2 6652 builtin and then its argument prototype would still apply. */ 6653char $ac_func(); 6654 6655int main() { 6656 6657/* The GNU C library defines this for functions which it implements 6658 to always fail with ENOSYS. Some functions are actually named 6659 something starting with __ and the normal name is an alias. */ 6660#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6661choke me 6662#else 6663$ac_func(); 6664#endif 6665 6666; return 0; } 6667EOF 6668if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6669 rm -rf conftest* 6670 eval "ac_cv_func_$ac_func=yes" 6671else 6672 echo "configure: failed program was:" >&5 6673 cat conftest.$ac_ext >&5 6674 rm -rf conftest* 6675 eval "ac_cv_func_$ac_func=no" 6676fi 6677rm -f conftest* 6678fi 6679 6680if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6681 echo "$ac_t""yes" 1>&6 6682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6683 cat >> confdefs.h <<EOF 6684#define $ac_tr_func 1 6685EOF 6686 6687else 6688 echo "$ac_t""no" 1>&6 6689fi 6690done 6691 6692echo $ac_n "checking for strstr""... $ac_c" 1>&6 6693echo "configure:6694: checking for strstr" >&5 6694if eval "test \"`echo '$''{'ac_cv_have_strstr'+set}'`\" = set"; then 6695 echo $ac_n "(cached) $ac_c" 1>&6 6696else 6697 cat > conftest.$ac_ext <<EOF 6698#line 6699 "configure" 6699#include "confdefs.h" 6700#include <string.h> 6701int main() { 6702strstr("", ""); return 0; 6703; return 0; } 6704EOF 6705if { (eval echo configure:6706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6706 rm -rf conftest* 6707 ac_cv_have_strstr=yes 6708else 6709 echo "configure: failed program was:" >&5 6710 cat conftest.$ac_ext >&5 6711 rm -rf conftest* 6712 ac_cv_have_strstr=no 6713fi 6714rm -f conftest* 6715 6716fi 6717 6718echo "$ac_t""$ac_cv_have_strstr" 1>&6 6719if test "$ac_cv_have_strstr" = yes; then 6720 cat >> confdefs.h <<\EOF 6721#define HAVE_STRSTR 1 6722EOF 6723 6724fi 6725 6726for ac_func in memchr 6727do 6728echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6729echo "configure:6730: checking for $ac_func" >&5 6730if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6731 echo $ac_n "(cached) $ac_c" 1>&6 6732else 6733 cat > conftest.$ac_ext <<EOF 6734#line 6735 "configure" 6735#include "confdefs.h" 6736/* System header to define __stub macros and hopefully few prototypes, 6737 which can conflict with char $ac_func(); below. */ 6738#include <assert.h> 6739/* Override any gcc2 internal prototype to avoid an error. */ 6740/* We use char because int might match the return type of a gcc2 6741 builtin and then its argument prototype would still apply. */ 6742char $ac_func(); 6743 6744int main() { 6745 6746/* The GNU C library defines this for functions which it implements 6747 to always fail with ENOSYS. Some functions are actually named 6748 something starting with __ and the normal name is an alias. */ 6749#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6750choke me 6751#else 6752$ac_func(); 6753#endif 6754 6755; return 0; } 6756EOF 6757if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6758 rm -rf conftest* 6759 eval "ac_cv_func_$ac_func=yes" 6760else 6761 echo "configure: failed program was:" >&5 6762 cat conftest.$ac_ext >&5 6763 rm -rf conftest* 6764 eval "ac_cv_func_$ac_func=no" 6765fi 6766rm -f conftest* 6767fi 6768 6769if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6770 echo "$ac_t""yes" 1>&6 6771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6772 cat >> confdefs.h <<EOF 6773#define $ac_tr_func 1 6774EOF 6775 6776else 6777 echo "$ac_t""no" 1>&6 6778fi 6779done 6780 6781echo $ac_n "checking for memchr""... $ac_c" 1>&6 6782echo "configure:6783: checking for memchr" >&5 6783if eval "test \"`echo '$''{'ac_cv_have_memchr'+set}'`\" = set"; then 6784 echo $ac_n "(cached) $ac_c" 1>&6 6785else 6786 cat > conftest.$ac_ext <<EOF 6787#line 6788 "configure" 6788#include "confdefs.h" 6789#include <string.h> 6790int main() { 6791char a[1]; memchr(a, 0, 1); return 0; 6792; return 0; } 6793EOF 6794if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6795 rm -rf conftest* 6796 ac_cv_have_memchr=yes 6797else 6798 echo "configure: failed program was:" >&5 6799 cat conftest.$ac_ext >&5 6800 rm -rf conftest* 6801 ac_cv_have_memchr=no 6802fi 6803rm -f conftest* 6804 6805fi 6806 6807echo "$ac_t""$ac_cv_have_memchr" 1>&6 6808if test "$ac_cv_have_memchr" = yes; then 6809 cat >> confdefs.h <<\EOF 6810#define HAVE_MEMCHR 1 6811EOF 6812 6813fi 6814 6815for ac_func in memcmp 6816do 6817echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6818echo "configure:6819: checking for $ac_func" >&5 6819if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6820 echo $ac_n "(cached) $ac_c" 1>&6 6821else 6822 cat > conftest.$ac_ext <<EOF 6823#line 6824 "configure" 6824#include "confdefs.h" 6825/* System header to define __stub macros and hopefully few prototypes, 6826 which can conflict with char $ac_func(); below. */ 6827#include <assert.h> 6828/* Override any gcc2 internal prototype to avoid an error. */ 6829/* We use char because int might match the return type of a gcc2 6830 builtin and then its argument prototype would still apply. */ 6831char $ac_func(); 6832 6833int main() { 6834 6835/* The GNU C library defines this for functions which it implements 6836 to always fail with ENOSYS. Some functions are actually named 6837 something starting with __ and the normal name is an alias. */ 6838#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6839choke me 6840#else 6841$ac_func(); 6842#endif 6843 6844; return 0; } 6845EOF 6846if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6847 rm -rf conftest* 6848 eval "ac_cv_func_$ac_func=yes" 6849else 6850 echo "configure: failed program was:" >&5 6851 cat conftest.$ac_ext >&5 6852 rm -rf conftest* 6853 eval "ac_cv_func_$ac_func=no" 6854fi 6855rm -f conftest* 6856fi 6857 6858if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6859 echo "$ac_t""yes" 1>&6 6860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6861 cat >> confdefs.h <<EOF 6862#define $ac_tr_func 1 6863EOF 6864 6865else 6866 echo "$ac_t""no" 1>&6 6867fi 6868done 6869 6870echo $ac_n "checking for memcmp""... $ac_c" 1>&6 6871echo "configure:6872: checking for memcmp" >&5 6872if eval "test \"`echo '$''{'ac_cv_have_memcmp'+set}'`\" = set"; then 6873 echo $ac_n "(cached) $ac_c" 1>&6 6874else 6875 cat > conftest.$ac_ext <<EOF 6876#line 6877 "configure" 6877#include "confdefs.h" 6878#include <string.h> 6879int main() { 6880char a[1]; memcmp(a, a, 1); return 0; 6881; return 0; } 6882EOF 6883if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6884 rm -rf conftest* 6885 ac_cv_have_memcmp=yes 6886else 6887 echo "configure: failed program was:" >&5 6888 cat conftest.$ac_ext >&5 6889 rm -rf conftest* 6890 ac_cv_have_memcmp=no 6891fi 6892rm -f conftest* 6893 6894fi 6895 6896echo "$ac_t""$ac_cv_have_memcmp" 1>&6 6897if test "$ac_cv_have_memcmp" = yes; then 6898 cat >> confdefs.h <<\EOF 6899#define HAVE_MEMCMP 1 6900EOF 6901 6902fi 6903 6904for ac_func in memcpy 6905do 6906echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6907echo "configure:6908: checking for $ac_func" >&5 6908if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6909 echo $ac_n "(cached) $ac_c" 1>&6 6910else 6911 cat > conftest.$ac_ext <<EOF 6912#line 6913 "configure" 6913#include "confdefs.h" 6914/* System header to define __stub macros and hopefully few prototypes, 6915 which can conflict with char $ac_func(); below. */ 6916#include <assert.h> 6917/* Override any gcc2 internal prototype to avoid an error. */ 6918/* We use char because int might match the return type of a gcc2 6919 builtin and then its argument prototype would still apply. */ 6920char $ac_func(); 6921 6922int main() { 6923 6924/* The GNU C library defines this for functions which it implements 6925 to always fail with ENOSYS. Some functions are actually named 6926 something starting with __ and the normal name is an alias. */ 6927#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6928choke me 6929#else 6930$ac_func(); 6931#endif 6932 6933; return 0; } 6934EOF 6935if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6936 rm -rf conftest* 6937 eval "ac_cv_func_$ac_func=yes" 6938else 6939 echo "configure: failed program was:" >&5 6940 cat conftest.$ac_ext >&5 6941 rm -rf conftest* 6942 eval "ac_cv_func_$ac_func=no" 6943fi 6944rm -f conftest* 6945fi 6946 6947if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6948 echo "$ac_t""yes" 1>&6 6949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6950 cat >> confdefs.h <<EOF 6951#define $ac_tr_func 1 6952EOF 6953 6954else 6955 echo "$ac_t""no" 1>&6 6956fi 6957done 6958 6959echo $ac_n "checking for memcpy""... $ac_c" 1>&6 6960echo "configure:6961: checking for memcpy" >&5 6961if eval "test \"`echo '$''{'ac_cv_have_memcpy'+set}'`\" = set"; then 6962 echo $ac_n "(cached) $ac_c" 1>&6 6963else 6964 cat > conftest.$ac_ext <<EOF 6965#line 6966 "configure" 6966#include "confdefs.h" 6967#include <string.h> 6968int main() { 6969char a[1]; memcpy(a, a, 1); return 0; 6970; return 0; } 6971EOF 6972if { (eval echo configure:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6973 rm -rf conftest* 6974 ac_cv_have_memcpy=yes 6975else 6976 echo "configure: failed program was:" >&5 6977 cat conftest.$ac_ext >&5 6978 rm -rf conftest* 6979 ac_cv_have_memcpy=no 6980fi 6981rm -f conftest* 6982 6983fi 6984 6985echo "$ac_t""$ac_cv_have_memcpy" 1>&6 6986if test "$ac_cv_have_memcpy" = yes; then 6987 cat >> confdefs.h <<\EOF 6988#define HAVE_MEMCPY 1 6989EOF 6990 6991fi 6992 6993for ac_func in memmove 6994do 6995echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6996echo "configure:6997: checking for $ac_func" >&5 6997if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6998 echo $ac_n "(cached) $ac_c" 1>&6 6999else 7000 cat > conftest.$ac_ext <<EOF 7001#line 7002 "configure" 7002#include "confdefs.h" 7003/* System header to define __stub macros and hopefully few prototypes, 7004 which can conflict with char $ac_func(); below. */ 7005#include <assert.h> 7006/* Override any gcc2 internal prototype to avoid an error. */ 7007/* We use char because int might match the return type of a gcc2 7008 builtin and then its argument prototype would still apply. */ 7009char $ac_func(); 7010 7011int main() { 7012 7013/* The GNU C library defines this for functions which it implements 7014 to always fail with ENOSYS. Some functions are actually named 7015 something starting with __ and the normal name is an alias. */ 7016#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7017choke me 7018#else 7019$ac_func(); 7020#endif 7021 7022; return 0; } 7023EOF 7024if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7025 rm -rf conftest* 7026 eval "ac_cv_func_$ac_func=yes" 7027else 7028 echo "configure: failed program was:" >&5 7029 cat conftest.$ac_ext >&5 7030 rm -rf conftest* 7031 eval "ac_cv_func_$ac_func=no" 7032fi 7033rm -f conftest* 7034fi 7035 7036if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7037 echo "$ac_t""yes" 1>&6 7038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7039 cat >> confdefs.h <<EOF 7040#define $ac_tr_func 1 7041EOF 7042 7043else 7044 echo "$ac_t""no" 1>&6 7045fi 7046done 7047 7048echo $ac_n "checking for memmove""... $ac_c" 1>&6 7049echo "configure:7050: checking for memmove" >&5 7050if eval "test \"`echo '$''{'ac_cv_have_memmove'+set}'`\" = set"; then 7051 echo $ac_n "(cached) $ac_c" 1>&6 7052else 7053 cat > conftest.$ac_ext <<EOF 7054#line 7055 "configure" 7055#include "confdefs.h" 7056#include <string.h> 7057int main() { 7058char a[1]; memmove(a, a, 1); return 0; 7059; return 0; } 7060EOF 7061if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7062 rm -rf conftest* 7063 ac_cv_have_memmove=yes 7064else 7065 echo "configure: failed program was:" >&5 7066 cat conftest.$ac_ext >&5 7067 rm -rf conftest* 7068 ac_cv_have_memmove=no 7069fi 7070rm -f conftest* 7071 7072fi 7073 7074echo "$ac_t""$ac_cv_have_memmove" 1>&6 7075if test "$ac_cv_have_memmove" = yes; then 7076 cat >> confdefs.h <<\EOF 7077#define HAVE_MEMMOVE 1 7078EOF 7079 7080fi 7081 7082for ac_func in memset 7083do 7084echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7085echo "configure:7086: checking for $ac_func" >&5 7086if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7087 echo $ac_n "(cached) $ac_c" 1>&6 7088else 7089 cat > conftest.$ac_ext <<EOF 7090#line 7091 "configure" 7091#include "confdefs.h" 7092/* System header to define __stub macros and hopefully few prototypes, 7093 which can conflict with char $ac_func(); below. */ 7094#include <assert.h> 7095/* Override any gcc2 internal prototype to avoid an error. */ 7096/* We use char because int might match the return type of a gcc2 7097 builtin and then its argument prototype would still apply. */ 7098char $ac_func(); 7099 7100int main() { 7101 7102/* The GNU C library defines this for functions which it implements 7103 to always fail with ENOSYS. Some functions are actually named 7104 something starting with __ and the normal name is an alias. */ 7105#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7106choke me 7107#else 7108$ac_func(); 7109#endif 7110 7111; return 0; } 7112EOF 7113if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7114 rm -rf conftest* 7115 eval "ac_cv_func_$ac_func=yes" 7116else 7117 echo "configure: failed program was:" >&5 7118 cat conftest.$ac_ext >&5 7119 rm -rf conftest* 7120 eval "ac_cv_func_$ac_func=no" 7121fi 7122rm -f conftest* 7123fi 7124 7125if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7126 echo "$ac_t""yes" 1>&6 7127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7128 cat >> confdefs.h <<EOF 7129#define $ac_tr_func 1 7130EOF 7131 7132else 7133 echo "$ac_t""no" 1>&6 7134fi 7135done 7136 7137echo $ac_n "checking for memset""... $ac_c" 1>&6 7138echo "configure:7139: checking for memset" >&5 7139if eval "test \"`echo '$''{'ac_cv_have_memset'+set}'`\" = set"; then 7140 echo $ac_n "(cached) $ac_c" 1>&6 7141else 7142 cat > conftest.$ac_ext <<EOF 7143#line 7144 "configure" 7144#include "confdefs.h" 7145#include <string.h> 7146int main() { 7147char a[1]; memset(a, 0, 1); return 0; 7148; return 0; } 7149EOF 7150if { (eval echo configure:7151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7151 rm -rf conftest* 7152 ac_cv_have_memset=yes 7153else 7154 echo "configure: failed program was:" >&5 7155 cat conftest.$ac_ext >&5 7156 rm -rf conftest* 7157 ac_cv_have_memset=no 7158fi 7159rm -f conftest* 7160 7161fi 7162 7163echo "$ac_t""$ac_cv_have_memset" 1>&6 7164if test "$ac_cv_have_memset" = yes; then 7165 cat >> confdefs.h <<\EOF 7166#define HAVE_MEMSET 1 7167EOF 7168 7169fi 7170 7171for ac_func in strerror 7172do 7173echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7174echo "configure:7175: checking for $ac_func" >&5 7175if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7176 echo $ac_n "(cached) $ac_c" 1>&6 7177else 7178 cat > conftest.$ac_ext <<EOF 7179#line 7180 "configure" 7180#include "confdefs.h" 7181/* System header to define __stub macros and hopefully few prototypes, 7182 which can conflict with char $ac_func(); below. */ 7183#include <assert.h> 7184/* Override any gcc2 internal prototype to avoid an error. */ 7185/* We use char because int might match the return type of a gcc2 7186 builtin and then its argument prototype would still apply. */ 7187char $ac_func(); 7188 7189int main() { 7190 7191/* The GNU C library defines this for functions which it implements 7192 to always fail with ENOSYS. Some functions are actually named 7193 something starting with __ and the normal name is an alias. */ 7194#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7195choke me 7196#else 7197$ac_func(); 7198#endif 7199 7200; return 0; } 7201EOF 7202if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7203 rm -rf conftest* 7204 eval "ac_cv_func_$ac_func=yes" 7205else 7206 echo "configure: failed program was:" >&5 7207 cat conftest.$ac_ext >&5 7208 rm -rf conftest* 7209 eval "ac_cv_func_$ac_func=no" 7210fi 7211rm -f conftest* 7212fi 7213 7214if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7215 echo "$ac_t""yes" 1>&6 7216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7217 cat >> confdefs.h <<EOF 7218#define $ac_tr_func 1 7219EOF 7220 7221else 7222 echo "$ac_t""no" 1>&6 7223fi 7224done 7225 7226echo $ac_n "checking for strerror""... $ac_c" 1>&6 7227echo "configure:7228: checking for strerror" >&5 7228if eval "test \"`echo '$''{'ac_cv_have_strerror'+set}'`\" = set"; then 7229 echo $ac_n "(cached) $ac_c" 1>&6 7230else 7231 cat > conftest.$ac_ext <<EOF 7232#line 7233 "configure" 7233#include "confdefs.h" 7234#include <string.h> 7235int main() { 7236char *c = strerror(1); return 0; 7237; return 0; } 7238EOF 7239if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7240 rm -rf conftest* 7241 ac_cv_have_strerror=yes 7242else 7243 echo "configure: failed program was:" >&5 7244 cat conftest.$ac_ext >&5 7245 rm -rf conftest* 7246 ac_cv_have_strerror=no 7247fi 7248rm -f conftest* 7249 7250fi 7251 7252echo "$ac_t""$ac_cv_have_strerror" 1>&6 7253if test "$ac_cv_have_strerror" = yes; then 7254 cat >> confdefs.h <<\EOF 7255#define HAVE_STRERROR 1 7256EOF 7257 7258fi 7259 7260if test "$ac_cv_func_select" != yes; then 7261 { echo "configure: error: select function not present" 1>&2; exit 1; } 7262fi 7263 7264echo $ac_n "checking for socket""... $ac_c" 1>&6 7265echo "configure:7266: checking for socket" >&5 7266if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 7267 echo $ac_n "(cached) $ac_c" 1>&6 7268else 7269 cat > conftest.$ac_ext <<EOF 7270#line 7271 "configure" 7271#include "confdefs.h" 7272/* System header to define __stub macros and hopefully few prototypes, 7273 which can conflict with char socket(); below. */ 7274#include <assert.h> 7275/* Override any gcc2 internal prototype to avoid an error. */ 7276/* We use char because int might match the return type of a gcc2 7277 builtin and then its argument prototype would still apply. */ 7278char socket(); 7279 7280int main() { 7281 7282/* The GNU C library defines this for functions which it implements 7283 to always fail with ENOSYS. Some functions are actually named 7284 something starting with __ and the normal name is an alias. */ 7285#if defined (__stub_socket) || defined (__stub___socket) 7286choke me 7287#else 7288socket(); 7289#endif 7290 7291; return 0; } 7292EOF 7293if { (eval echo configure:7294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7294 rm -rf conftest* 7295 eval "ac_cv_func_socket=yes" 7296else 7297 echo "configure: failed program was:" >&5 7298 cat conftest.$ac_ext >&5 7299 rm -rf conftest* 7300 eval "ac_cv_func_socket=no" 7301fi 7302rm -f conftest* 7303fi 7304 7305if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 7306 echo "$ac_t""yes" 1>&6 7307 cf_result=yes 7308else 7309 echo "$ac_t""no" 1>&6 7310cf_result=no 7311fi 7312 7313if test "$cf_result" = no; then 7314 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 7315echo "configure:7316: checking for socket in -lsocket" >&5 7316ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 7317if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7318 echo $ac_n "(cached) $ac_c" 1>&6 7319else 7320 ac_save_LIBS="$LIBS" 7321LIBS="-lsocket $LIBS" 7322cat > conftest.$ac_ext <<EOF 7323#line 7324 "configure" 7324#include "confdefs.h" 7325/* Override any gcc2 internal prototype to avoid an error. */ 7326/* We use char because int might match the return type of a gcc2 7327 builtin and then its argument prototype would still apply. */ 7328char socket(); 7329 7330int main() { 7331socket() 7332; return 0; } 7333EOF 7334if { (eval echo configure:7335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7335 rm -rf conftest* 7336 eval "ac_cv_lib_$ac_lib_var=yes" 7337else 7338 echo "configure: failed program was:" >&5 7339 cat conftest.$ac_ext >&5 7340 rm -rf conftest* 7341 eval "ac_cv_lib_$ac_lib_var=no" 7342fi 7343rm -f conftest* 7344LIBS="$ac_save_LIBS" 7345 7346fi 7347if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7348 echo "$ac_t""yes" 1>&6 7349 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 7350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 7351 cat >> confdefs.h <<EOF 7352#define $ac_tr_lib 1 7353EOF 7354 7355 LIBS="-lsocket $LIBS" 7356 7357else 7358 echo "$ac_t""no" 1>&6 7359fi 7360 7361 if test "$ac_cv_lib_socket_socket" = no; then 7362 echo $ac_n "checking for socket in -lnetwork""... $ac_c" 1>&6 7363echo "configure:7364: checking for socket in -lnetwork" >&5 7364ac_lib_var=`echo network'_'socket | sed 'y%./+-%__p_%'` 7365if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7366 echo $ac_n "(cached) $ac_c" 1>&6 7367else 7368 ac_save_LIBS="$LIBS" 7369LIBS="-lnetwork $LIBS" 7370cat > conftest.$ac_ext <<EOF 7371#line 7372 "configure" 7372#include "confdefs.h" 7373/* Override any gcc2 internal prototype to avoid an error. */ 7374/* We use char because int might match the return type of a gcc2 7375 builtin and then its argument prototype would still apply. */ 7376char socket(); 7377 7378int main() { 7379socket() 7380; return 0; } 7381EOF 7382if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7383 rm -rf conftest* 7384 eval "ac_cv_lib_$ac_lib_var=yes" 7385else 7386 echo "configure: failed program was:" >&5 7387 cat conftest.$ac_ext >&5 7388 rm -rf conftest* 7389 eval "ac_cv_lib_$ac_lib_var=no" 7390fi 7391rm -f conftest* 7392LIBS="$ac_save_LIBS" 7393 7394fi 7395if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7396 echo "$ac_t""yes" 1>&6 7397 ac_tr_lib=HAVE_LIB`echo network | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 7398 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 7399 cat >> confdefs.h <<EOF 7400#define $ac_tr_lib 1 7401EOF 7402 7403 LIBS="-lnetwork $LIBS" 7404 7405else 7406 echo "$ac_t""no" 1>&6 7407fi 7408 7409 if test "$ac_cv_lib_network_socket" = no; then 7410 { echo "configure: error: socket function not present" 1>&2; exit 1; } 7411 fi 7412 fi 7413fi 7414echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 7415echo "configure:7416: checking for setsockopt" >&5 7416if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then 7417 echo $ac_n "(cached) $ac_c" 1>&6 7418else 7419 cat > conftest.$ac_ext <<EOF 7420#line 7421 "configure" 7421#include "confdefs.h" 7422/* System header to define __stub macros and hopefully few prototypes, 7423 which can conflict with char setsockopt(); below. */ 7424#include <assert.h> 7425/* Override any gcc2 internal prototype to avoid an error. */ 7426/* We use char because int might match the return type of a gcc2 7427 builtin and then its argument prototype would still apply. */ 7428char setsockopt(); 7429 7430int main() { 7431 7432/* The GNU C library defines this for functions which it implements 7433 to always fail with ENOSYS. Some functions are actually named 7434 something starting with __ and the normal name is an alias. */ 7435#if defined (__stub_setsockopt) || defined (__stub___setsockopt) 7436choke me 7437#else 7438setsockopt(); 7439#endif 7440 7441; return 0; } 7442EOF 7443if { (eval echo configure:7444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7444 rm -rf conftest* 7445 eval "ac_cv_func_setsockopt=yes" 7446else 7447 echo "configure: failed program was:" >&5 7448 cat conftest.$ac_ext >&5 7449 rm -rf conftest* 7450 eval "ac_cv_func_setsockopt=no" 7451fi 7452rm -f conftest* 7453fi 7454 7455if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then 7456 echo "$ac_t""yes" 1>&6 7457 cf_result=yes 7458else 7459 echo "$ac_t""no" 1>&6 7460cf_result=no 7461fi 7462 7463if test "$cf_result" = no; then 7464 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 7465echo "configure:7466: checking for setsockopt in -lsocket" >&5 7466ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` 7467if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7468 echo $ac_n "(cached) $ac_c" 1>&6 7469else 7470 ac_save_LIBS="$LIBS" 7471LIBS="-lsocket $LIBS" 7472cat > conftest.$ac_ext <<EOF 7473#line 7474 "configure" 7474#include "confdefs.h" 7475/* Override any gcc2 internal prototype to avoid an error. */ 7476/* We use char because int might match the return type of a gcc2 7477 builtin and then its argument prototype would still apply. */ 7478char setsockopt(); 7479 7480int main() { 7481setsockopt() 7482; return 0; } 7483EOF 7484if { (eval echo configure:7485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7485 rm -rf conftest* 7486 eval "ac_cv_lib_$ac_lib_var=yes" 7487else 7488 echo "configure: failed program was:" >&5 7489 cat conftest.$ac_ext >&5 7490 rm -rf conftest* 7491 eval "ac_cv_lib_$ac_lib_var=no" 7492fi 7493rm -f conftest* 7494LIBS="$ac_save_LIBS" 7495 7496fi 7497if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7498 echo "$ac_t""yes" 1>&6 7499 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 7500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 7501 cat >> confdefs.h <<EOF 7502#define $ac_tr_lib 1 7503EOF 7504 7505 LIBS="-lsocket $LIBS" 7506 7507else 7508 echo "$ac_t""no" 1>&6 7509fi 7510 7511fi 7512 7513#AC_MSG_CHECKING([for gethostbyname]) 7514#AC_TRY_LINK([#include <netdb.h>], [gethostbyname("")], cf_result=yes, cf_result=no) 7515#AC_MSG_RESULT($cf_result) 7516echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 7517echo "configure:7518: checking for gethostbyname" >&5 7518if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 7519 echo $ac_n "(cached) $ac_c" 1>&6 7520else 7521 cat > conftest.$ac_ext <<EOF 7522#line 7523 "configure" 7523#include "confdefs.h" 7524/* System header to define __stub macros and hopefully few prototypes, 7525 which can conflict with char gethostbyname(); below. */ 7526#include <assert.h> 7527/* Override any gcc2 internal prototype to avoid an error. */ 7528/* We use char because int might match the return type of a gcc2 7529 builtin and then its argument prototype would still apply. */ 7530char gethostbyname(); 7531 7532int main() { 7533 7534/* The GNU C library defines this for functions which it implements 7535 to always fail with ENOSYS. Some functions are actually named 7536 something starting with __ and the normal name is an alias. */ 7537#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 7538choke me 7539#else 7540gethostbyname(); 7541#endif 7542 7543; return 0; } 7544EOF 7545if { (eval echo configure:7546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7546 rm -rf conftest* 7547 eval "ac_cv_func_gethostbyname=yes" 7548else 7549 echo "configure: failed program was:" >&5 7550 cat conftest.$ac_ext >&5 7551 rm -rf conftest* 7552 eval "ac_cv_func_gethostbyname=no" 7553fi 7554rm -f conftest* 7555fi 7556 7557if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 7558 echo "$ac_t""yes" 1>&6 7559 cf_result=yes 7560else 7561 echo "$ac_t""no" 1>&6 7562cf_result=no 7563fi 7564 7565if test "$cf_result" = no; then 7566 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 7567echo "configure:7568: checking for gethostbyname in -lsocket" >&5 7568ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'` 7569if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7570 echo $ac_n "(cached) $ac_c" 1>&6 7571else 7572 ac_save_LIBS="$LIBS" 7573LIBS="-lsocket $LIBS" 7574cat > conftest.$ac_ext <<EOF 7575#line 7576 "configure" 7576#include "confdefs.h" 7577/* Override any gcc2 internal prototype to avoid an error. */ 7578/* We use char because int might match the return type of a gcc2 7579 builtin and then its argument prototype would still apply. */ 7580char gethostbyname(); 7581 7582int main() { 7583gethostbyname() 7584; return 0; } 7585EOF 7586if { (eval echo configure:7587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7587 rm -rf conftest* 7588 eval "ac_cv_lib_$ac_lib_var=yes" 7589else 7590 echo "configure: failed program was:" >&5 7591 cat conftest.$ac_ext >&5 7592 rm -rf conftest* 7593 eval "ac_cv_lib_$ac_lib_var=no" 7594fi 7595rm -f conftest* 7596LIBS="$ac_save_LIBS" 7597 7598fi 7599if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7600 echo "$ac_t""yes" 1>&6 7601 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 7602 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 7603 cat >> confdefs.h <<EOF 7604#define $ac_tr_lib 1 7605EOF 7606 7607 LIBS="-lsocket $LIBS" 7608 7609else 7610 echo "$ac_t""no" 1>&6 7611fi 7612 7613 cf_result="$ac_cv_lib_socket_gethostbyname" 7614 if test "$ac_cv_lib_socket_gethostbyname" = no; then 7615 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 7616echo "configure:7617: checking for gethostbyname in -lnsl" >&5 7617ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 7618if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7619 echo $ac_n "(cached) $ac_c" 1>&6 7620else 7621 ac_save_LIBS="$LIBS" 7622LIBS="-lnsl $LIBS" 7623cat > conftest.$ac_ext <<EOF 7624#line 7625 "configure" 7625#include "confdefs.h" 7626/* Override any gcc2 internal prototype to avoid an error. */ 7627/* We use char because int might match the return type of a gcc2 7628 builtin and then its argument prototype would still apply. */ 7629char gethostbyname(); 7630 7631int main() { 7632gethostbyname() 7633; return 0; } 7634EOF 7635if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7636 rm -rf conftest* 7637 eval "ac_cv_lib_$ac_lib_var=yes" 7638else 7639 echo "configure: failed program was:" >&5 7640 cat conftest.$ac_ext >&5 7641 rm -rf conftest* 7642 eval "ac_cv_lib_$ac_lib_var=no" 7643fi 7644rm -f conftest* 7645LIBS="$ac_save_LIBS" 7646 7647fi 7648if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7649 echo "$ac_t""yes" 1>&6 7650 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 7651 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 7652 cat >> confdefs.h <<EOF 7653#define $ac_tr_lib 1 7654EOF 7655 7656 LIBS="-lnsl $LIBS" 7657 7658else 7659 echo "$ac_t""no" 1>&6 7660fi 7661 7662 cf_result="$ac_cv_lib_nsl_gethostbyname" 7663 fi 7664fi 7665test "$cf_result" = yes && cat >> confdefs.h <<\EOF 7666#define HAVE_GETHOSTBYNAME 1 7667EOF 7668 7669 7670if test "$cf_result" = yes && test "$ac_cv_have_watcom" = yes -o "`uname -s`" = SunOS; then 7671 echo $ac_n "checking for flawed gethostbyname""... $ac_c" 1>&6 7672echo "configure:7673: checking for flawed gethostbyname" >&5 7673if eval "test \"`echo '$''{'ac_cv_gethostbyname_bug'+set}'`\" = set"; then 7674 echo $ac_n "(cached) $ac_c" 1>&6 7675else 7676 if test "$cross_compiling" = yes; then 7677 ac_cv_gethostbyname_bug="$ac_cv_have_watcom" 7678else 7679 cat > conftest.$ac_ext <<EOF 7680#line 7681 "configure" 7681#include "confdefs.h" 7682 7683 #include <netdb.h> 7684 int main() 7685 { 7686 return !gethostbyname("www.gnu.org"); 7687 } 7688 7689EOF 7690if { (eval echo configure:7691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7691then 7692 ac_cv_gethostbyname_bug=no 7693else 7694 echo "configure: failed program was:" >&5 7695 cat conftest.$ac_ext >&5 7696 rm -fr conftest* 7697 ac_cv_gethostbyname_bug=yes 7698fi 7699rm -fr conftest* 7700fi 7701 7702 7703fi 7704 7705echo "$ac_t""$ac_cv_gethostbyname_bug" 1>&6 7706 test "$ac_cv_gethostbyname_bug" = yes && cat >> confdefs.h <<\EOF 7707#define HAVE_GETHOSTBYNAME_BUG 1 7708EOF 7709 7710fi 7711 7712for ac_func in herror 7713do 7714echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7715echo "configure:7716: checking for $ac_func" >&5 7716if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7717 echo $ac_n "(cached) $ac_c" 1>&6 7718else 7719 cat > conftest.$ac_ext <<EOF 7720#line 7721 "configure" 7721#include "confdefs.h" 7722/* System header to define __stub macros and hopefully few prototypes, 7723 which can conflict with char $ac_func(); below. */ 7724#include <assert.h> 7725/* Override any gcc2 internal prototype to avoid an error. */ 7726/* We use char because int might match the return type of a gcc2 7727 builtin and then its argument prototype would still apply. */ 7728char $ac_func(); 7729 7730int main() { 7731 7732/* The GNU C library defines this for functions which it implements 7733 to always fail with ENOSYS. Some functions are actually named 7734 something starting with __ and the normal name is an alias. */ 7735#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7736choke me 7737#else 7738$ac_func(); 7739#endif 7740 7741; return 0; } 7742EOF 7743if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7744 rm -rf conftest* 7745 eval "ac_cv_func_$ac_func=yes" 7746else 7747 echo "configure: failed program was:" >&5 7748 cat conftest.$ac_ext >&5 7749 rm -rf conftest* 7750 eval "ac_cv_func_$ac_func=no" 7751fi 7752rm -f conftest* 7753fi 7754 7755if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7756 echo "$ac_t""yes" 1>&6 7757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7758 cat >> confdefs.h <<EOF 7759#define $ac_tr_func 1 7760EOF 7761 7762else 7763 echo "$ac_t""no" 1>&6 7764fi 7765done 7766 7767for ac_func in cfmakeraw 7768do 7769echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7770echo "configure:7771: checking for $ac_func" >&5 7771if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7772 echo $ac_n "(cached) $ac_c" 1>&6 7773else 7774 cat > conftest.$ac_ext <<EOF 7775#line 7776 "configure" 7776#include "confdefs.h" 7777/* System header to define __stub macros and hopefully few prototypes, 7778 which can conflict with char $ac_func(); below. */ 7779#include <assert.h> 7780/* Override any gcc2 internal prototype to avoid an error. */ 7781/* We use char because int might match the return type of a gcc2 7782 builtin and then its argument prototype would still apply. */ 7783char $ac_func(); 7784 7785int main() { 7786 7787/* The GNU C library defines this for functions which it implements 7788 to always fail with ENOSYS. Some functions are actually named 7789 something starting with __ and the normal name is an alias. */ 7790#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7791choke me 7792#else 7793$ac_func(); 7794#endif 7795 7796; return 0; } 7797EOF 7798if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7799 rm -rf conftest* 7800 eval "ac_cv_func_$ac_func=yes" 7801else 7802 echo "configure: failed program was:" >&5 7803 cat conftest.$ac_ext >&5 7804 rm -rf conftest* 7805 eval "ac_cv_func_$ac_func=no" 7806fi 7807rm -f conftest* 7808fi 7809 7810if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7811 echo "$ac_t""yes" 1>&6 7812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7813 cat >> confdefs.h <<EOF 7814#define $ac_tr_func 1 7815EOF 7816 7817else 7818 echo "$ac_t""no" 1>&6 7819fi 7820done 7821 7822 7823for ac_func in cygwin_conv_to_full_win32_path 7824do 7825echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7826echo "configure:7827: checking for $ac_func" >&5 7827if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7828 echo $ac_n "(cached) $ac_c" 1>&6 7829else 7830 cat > conftest.$ac_ext <<EOF 7831#line 7832 "configure" 7832#include "confdefs.h" 7833/* System header to define __stub macros and hopefully few prototypes, 7834 which can conflict with char $ac_func(); below. */ 7835#include <assert.h> 7836/* Override any gcc2 internal prototype to avoid an error. */ 7837/* We use char because int might match the return type of a gcc2 7838 builtin and then its argument prototype would still apply. */ 7839char $ac_func(); 7840 7841int main() { 7842 7843/* The GNU C library defines this for functions which it implements 7844 to always fail with ENOSYS. Some functions are actually named 7845 something starting with __ and the normal name is an alias. */ 7846#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7847choke me 7848#else 7849$ac_func(); 7850#endif 7851 7852; return 0; } 7853EOF 7854if { (eval echo configure:7855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7855 rm -rf conftest* 7856 eval "ac_cv_func_$ac_func=yes" 7857else 7858 echo "configure: failed program was:" >&5 7859 cat conftest.$ac_ext >&5 7860 rm -rf conftest* 7861 eval "ac_cv_func_$ac_func=no" 7862fi 7863rm -f conftest* 7864fi 7865 7866if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7867 echo "$ac_t""yes" 1>&6 7868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7869 cat >> confdefs.h <<EOF 7870#define $ac_tr_func 1 7871EOF 7872 7873else 7874 echo "$ac_t""no" 1>&6 7875fi 7876done 7877 7878for ac_func in cygwin_conv_path 7879do 7880echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7881echo "configure:7882: checking for $ac_func" >&5 7882if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7883 echo $ac_n "(cached) $ac_c" 1>&6 7884else 7885 cat > conftest.$ac_ext <<EOF 7886#line 7887 "configure" 7887#include "confdefs.h" 7888/* System header to define __stub macros and hopefully few prototypes, 7889 which can conflict with char $ac_func(); below. */ 7890#include <assert.h> 7891/* Override any gcc2 internal prototype to avoid an error. */ 7892/* We use char because int might match the return type of a gcc2 7893 builtin and then its argument prototype would still apply. */ 7894char $ac_func(); 7895 7896int main() { 7897 7898/* The GNU C library defines this for functions which it implements 7899 to always fail with ENOSYS. Some functions are actually named 7900 something starting with __ and the normal name is an alias. */ 7901#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7902choke me 7903#else 7904$ac_func(); 7905#endif 7906 7907; return 0; } 7908EOF 7909if { (eval echo configure:7910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7910 rm -rf conftest* 7911 eval "ac_cv_func_$ac_func=yes" 7912else 7913 echo "configure: failed program was:" >&5 7914 cat conftest.$ac_ext >&5 7915 rm -rf conftest* 7916 eval "ac_cv_func_$ac_func=no" 7917fi 7918rm -f conftest* 7919fi 7920 7921if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7922 echo "$ac_t""yes" 1>&6 7923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7924 cat >> confdefs.h <<EOF 7925#define $ac_tr_func 1 7926EOF 7927 7928else 7929 echo "$ac_t""no" 1>&6 7930fi 7931done 7932 7933 7934for ac_func in uwin_path 7935do 7936echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7937echo "configure:7938: checking for $ac_func" >&5 7938if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7939 echo $ac_n "(cached) $ac_c" 1>&6 7940else 7941 cat > conftest.$ac_ext <<EOF 7942#line 7943 "configure" 7943#include "confdefs.h" 7944/* System header to define __stub macros and hopefully few prototypes, 7945 which can conflict with char $ac_func(); below. */ 7946#include <assert.h> 7947/* Override any gcc2 internal prototype to avoid an error. */ 7948/* We use char because int might match the return type of a gcc2 7949 builtin and then its argument prototype would still apply. */ 7950char $ac_func(); 7951 7952int main() { 7953 7954/* The GNU C library defines this for functions which it implements 7955 to always fail with ENOSYS. Some functions are actually named 7956 something starting with __ and the normal name is an alias. */ 7957#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7958choke me 7959#else 7960$ac_func(); 7961#endif 7962 7963; return 0; } 7964EOF 7965if { (eval echo configure:7966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7966 rm -rf conftest* 7967 eval "ac_cv_func_$ac_func=yes" 7968else 7969 echo "configure: failed program was:" >&5 7970 cat conftest.$ac_ext >&5 7971 rm -rf conftest* 7972 eval "ac_cv_func_$ac_func=no" 7973fi 7974rm -f conftest* 7975fi 7976 7977if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7978 echo "$ac_t""yes" 1>&6 7979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7980 cat >> confdefs.h <<EOF 7981#define $ac_tr_func 1 7982EOF 7983 7984else 7985 echo "$ac_t""no" 1>&6 7986fi 7987done 7988 7989 7990for ac_func in unixpath2win 7991do 7992echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7993echo "configure:7994: checking for $ac_func" >&5 7994if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7995 echo $ac_n "(cached) $ac_c" 1>&6 7996else 7997 cat > conftest.$ac_ext <<EOF 7998#line 7999 "configure" 7999#include "confdefs.h" 8000/* System header to define __stub macros and hopefully few prototypes, 8001 which can conflict with char $ac_func(); below. */ 8002#include <assert.h> 8003/* Override any gcc2 internal prototype to avoid an error. */ 8004/* We use char because int might match the return type of a gcc2 8005 builtin and then its argument prototype would still apply. */ 8006char $ac_func(); 8007 8008int main() { 8009 8010/* The GNU C library defines this for functions which it implements 8011 to always fail with ENOSYS. Some functions are actually named 8012 something starting with __ and the normal name is an alias. */ 8013#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8014choke me 8015#else 8016$ac_func(); 8017#endif 8018 8019; return 0; } 8020EOF 8021if { (eval echo configure:8022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8022 rm -rf conftest* 8023 eval "ac_cv_func_$ac_func=yes" 8024else 8025 echo "configure: failed program was:" >&5 8026 cat conftest.$ac_ext >&5 8027 rm -rf conftest* 8028 eval "ac_cv_func_$ac_func=no" 8029fi 8030rm -f conftest* 8031fi 8032 8033if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8034 echo "$ac_t""yes" 1>&6 8035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8036 cat >> confdefs.h <<EOF 8037#define $ac_tr_func 1 8038EOF 8039 8040else 8041 echo "$ac_t""no" 1>&6 8042fi 8043done 8044 8045for ac_func in winpath2unix 8046do 8047echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8048echo "configure:8049: checking for $ac_func" >&5 8049if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8050 echo $ac_n "(cached) $ac_c" 1>&6 8051else 8052 cat > conftest.$ac_ext <<EOF 8053#line 8054 "configure" 8054#include "confdefs.h" 8055/* System header to define __stub macros and hopefully few prototypes, 8056 which can conflict with char $ac_func(); below. */ 8057#include <assert.h> 8058/* Override any gcc2 internal prototype to avoid an error. */ 8059/* We use char because int might match the return type of a gcc2 8060 builtin and then its argument prototype would still apply. */ 8061char $ac_func(); 8062 8063int main() { 8064 8065/* The GNU C library defines this for functions which it implements 8066 to always fail with ENOSYS. Some functions are actually named 8067 something starting with __ and the normal name is an alias. */ 8068#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8069choke me 8070#else 8071$ac_func(); 8072#endif 8073 8074; return 0; } 8075EOF 8076if { (eval echo configure:8077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8077 rm -rf conftest* 8078 eval "ac_cv_func_$ac_func=yes" 8079else 8080 echo "configure: failed program was:" >&5 8081 cat conftest.$ac_ext >&5 8082 rm -rf conftest* 8083 eval "ac_cv_func_$ac_func=no" 8084fi 8085rm -f conftest* 8086fi 8087 8088if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8089 echo "$ac_t""yes" 1>&6 8090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8091 cat >> confdefs.h <<EOF 8092#define $ac_tr_func 1 8093EOF 8094 8095else 8096 echo "$ac_t""no" 1>&6 8097fi 8098done 8099 8100 8101for ac_hdr in gpm.h 8102do 8103ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 8104echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 8105echo "configure:8106: checking for $ac_hdr" >&5 8106if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8107 echo $ac_n "(cached) $ac_c" 1>&6 8108else 8109 cat > conftest.$ac_ext <<EOF 8110#line 8111 "configure" 8111#include "confdefs.h" 8112#include <$ac_hdr> 8113EOF 8114ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8115{ (eval echo configure:8116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8116ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8117if test -z "$ac_err"; then 8118 rm -rf conftest* 8119 eval "ac_cv_header_$ac_safe=yes" 8120else 8121 echo "$ac_err" >&5 8122 echo "configure: failed program was:" >&5 8123 cat conftest.$ac_ext >&5 8124 rm -rf conftest* 8125 eval "ac_cv_header_$ac_safe=no" 8126fi 8127rm -f conftest* 8128fi 8129if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8130 echo "$ac_t""yes" 1>&6 8131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 8132 cat >> confdefs.h <<EOF 8133#define $ac_tr_hdr 1 8134EOF 8135 8136else 8137 echo "$ac_t""no" 1>&6 8138fi 8139done 8140 8141echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 8142echo "configure:8143: checking for Gpm_Open in -lgpm" >&5 8143ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 8144if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8145 echo $ac_n "(cached) $ac_c" 1>&6 8146else 8147 ac_save_LIBS="$LIBS" 8148LIBS="-lgpm $LIBS" 8149cat > conftest.$ac_ext <<EOF 8150#line 8151 "configure" 8151#include "confdefs.h" 8152/* Override any gcc2 internal prototype to avoid an error. */ 8153/* We use char because int might match the return type of a gcc2 8154 builtin and then its argument prototype would still apply. */ 8155char Gpm_Open(); 8156 8157int main() { 8158Gpm_Open() 8159; return 0; } 8160EOF 8161if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8162 rm -rf conftest* 8163 eval "ac_cv_lib_$ac_lib_var=yes" 8164else 8165 echo "configure: failed program was:" >&5 8166 cat conftest.$ac_ext >&5 8167 rm -rf conftest* 8168 eval "ac_cv_lib_$ac_lib_var=no" 8169fi 8170rm -f conftest* 8171LIBS="$ac_save_LIBS" 8172 8173fi 8174if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8175 echo "$ac_t""yes" 1>&6 8176 ac_tr_lib=HAVE_LIB`echo gpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 8177 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 8178 cat >> confdefs.h <<EOF 8179#define $ac_tr_lib 1 8180EOF 8181 8182 LIBS="-lgpm $LIBS" 8183 8184else 8185 echo "$ac_t""no" 1>&6 8186fi 8187 8188for ac_func in Gpm_GetLibVersion 8189do 8190echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8191echo "configure:8192: checking for $ac_func" >&5 8192if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8193 echo $ac_n "(cached) $ac_c" 1>&6 8194else 8195 cat > conftest.$ac_ext <<EOF 8196#line 8197 "configure" 8197#include "confdefs.h" 8198/* System header to define __stub macros and hopefully few prototypes, 8199 which can conflict with char $ac_func(); below. */ 8200#include <assert.h> 8201/* Override any gcc2 internal prototype to avoid an error. */ 8202/* We use char because int might match the return type of a gcc2 8203 builtin and then its argument prototype would still apply. */ 8204char $ac_func(); 8205 8206int main() { 8207 8208/* The GNU C library defines this for functions which it implements 8209 to always fail with ENOSYS. Some functions are actually named 8210 something starting with __ and the normal name is an alias. */ 8211#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8212choke me 8213#else 8214$ac_func(); 8215#endif 8216 8217; return 0; } 8218EOF 8219if { (eval echo configure:8220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8220 rm -rf conftest* 8221 eval "ac_cv_func_$ac_func=yes" 8222else 8223 echo "configure: failed program was:" >&5 8224 cat conftest.$ac_ext >&5 8225 rm -rf conftest* 8226 eval "ac_cv_func_$ac_func=no" 8227fi 8228rm -f conftest* 8229fi 8230 8231if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8232 echo "$ac_t""yes" 1>&6 8233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8234 cat >> confdefs.h <<EOF 8235#define $ac_tr_func 1 8236EOF 8237 8238else 8239 echo "$ac_t""no" 1>&6 8240fi 8241done 8242 8243 8244echo $ac_n "checking for OS/2 threads""... $ac_c" 1>&6 8245echo "configure:8246: checking for OS/2 threads" >&5 8246CFLAGS_X="$CFLAGS" 8247CFLAGS="$CFLAGS -Zmt" 8248cat > conftest.$ac_ext <<EOF 8249#line 8250 "configure" 8250#include "confdefs.h" 8251#include <stdlib.h> 8252int main() { 8253_beginthread(NULL, NULL, 0, NULL) 8254; return 0; } 8255EOF 8256if { (eval echo configure:8257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8257 rm -rf conftest* 8258 cf_result=yes 8259else 8260 echo "configure: failed program was:" >&5 8261 cat conftest.$ac_ext >&5 8262 rm -rf conftest* 8263 cf_result=no 8264fi 8265rm -f conftest* 8266echo "$ac_t""$cf_result" 1>&6 8267if test "$cf_result" = yes; then 8268 cat >> confdefs.h <<\EOF 8269#define HAVE_BEGINTHREAD 1 8270EOF 8271 8272else 8273 CFLAGS="$CFLAGS_X" 8274# AC_CHECK_FUNC(pthread_create, cf_result=yes, cf_result=no) 8275# if test "$cf_result" = yes; then 8276# AC_DEFINE(HAVE_PTHREADS) 8277# else 8278# AC_CHECK_LIB(pthread, pthread_create, AC_DEFINE(HAVE_PTHREADS) 8279# LDFLAGS="$LDFLAGS -lpthread" ) 8280# fi 8281fi 8282#AC_HAVE_FUNCS(clone) 8283 8284for ac_func in MouOpen 8285do 8286echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8287echo "configure:8288: checking for $ac_func" >&5 8288if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8289 echo $ac_n "(cached) $ac_c" 1>&6 8290else 8291 cat > conftest.$ac_ext <<EOF 8292#line 8293 "configure" 8293#include "confdefs.h" 8294/* System header to define __stub macros and hopefully few prototypes, 8295 which can conflict with char $ac_func(); below. */ 8296#include <assert.h> 8297/* Override any gcc2 internal prototype to avoid an error. */ 8298/* We use char because int might match the return type of a gcc2 8299 builtin and then its argument prototype would still apply. */ 8300char $ac_func(); 8301 8302int main() { 8303 8304/* The GNU C library defines this for functions which it implements 8305 to always fail with ENOSYS. Some functions are actually named 8306 something starting with __ and the normal name is an alias. */ 8307#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8308choke me 8309#else 8310$ac_func(); 8311#endif 8312 8313; return 0; } 8314EOF 8315if { (eval echo configure:8316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8316 rm -rf conftest* 8317 eval "ac_cv_func_$ac_func=yes" 8318else 8319 echo "configure: failed program was:" >&5 8320 cat conftest.$ac_ext >&5 8321 rm -rf conftest* 8322 eval "ac_cv_func_$ac_func=no" 8323fi 8324rm -f conftest* 8325fi 8326 8327if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8328 echo "$ac_t""yes" 1>&6 8329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8330 cat >> confdefs.h <<EOF 8331#define $ac_tr_func 1 8332EOF 8333 8334else 8335 echo "$ac_t""no" 1>&6 8336fi 8337done 8338 8339for ac_func in _read_kbd 8340do 8341echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8342echo "configure:8343: checking for $ac_func" >&5 8343if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8344 echo $ac_n "(cached) $ac_c" 1>&6 8345else 8346 cat > conftest.$ac_ext <<EOF 8347#line 8348 "configure" 8348#include "confdefs.h" 8349/* System header to define __stub macros and hopefully few prototypes, 8350 which can conflict with char $ac_func(); below. */ 8351#include <assert.h> 8352/* Override any gcc2 internal prototype to avoid an error. */ 8353/* We use char because int might match the return type of a gcc2 8354 builtin and then its argument prototype would still apply. */ 8355char $ac_func(); 8356 8357int main() { 8358 8359/* The GNU C library defines this for functions which it implements 8360 to always fail with ENOSYS. Some functions are actually named 8361 something starting with __ and the normal name is an alias. */ 8362#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8363choke me 8364#else 8365$ac_func(); 8366#endif 8367 8368; return 0; } 8369EOF 8370if { (eval echo configure:8371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8371 rm -rf conftest* 8372 eval "ac_cv_func_$ac_func=yes" 8373else 8374 echo "configure: failed program was:" >&5 8375 cat conftest.$ac_ext >&5 8376 rm -rf conftest* 8377 eval "ac_cv_func_$ac_func=no" 8378fi 8379rm -f conftest* 8380fi 8381 8382if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8383 echo "$ac_t""yes" 1>&6 8384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8385 cat >> confdefs.h <<EOF 8386#define $ac_tr_func 1 8387EOF 8388 8389else 8390 echo "$ac_t""no" 1>&6 8391fi 8392done 8393 8394 8395echo $ac_n "checking for XFree for OS/2""... $ac_c" 1>&6 8396echo "configure:8397: checking for XFree for OS/2" >&5 8397CPPFLAGS_X="$CPPFLAGS" 8398LIBS_X="$LIBS" 8399cf_result=no 8400if test -n "$X11ROOT"; then 8401 CPPFLAGS="$CPPFLAGS_X -I$X11ROOT/XFree86/include" 8402 LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86_gcc" 8403 cat > conftest.$ac_ext <<EOF 8404#line 8405 "configure" 8405#include "confdefs.h" 8406#include <pty.h> 8407int main() { 8408struct winsize win;ptioctl(1, TIOCGWINSZ, &win) 8409; return 0; } 8410EOF 8411if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8412 rm -rf conftest* 8413 cf_result=yes 8414else 8415 echo "configure: failed program was:" >&5 8416 cat conftest.$ac_ext >&5 8417 rm -rf conftest* 8418 cf_result=no 8419fi 8420rm -f conftest* 8421 if test "$cf_result" = no; then 8422 LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86" 8423 cat > conftest.$ac_ext <<EOF 8424#line 8425 "configure" 8425#include "confdefs.h" 8426#include <pty.h> 8427int main() { 8428struct winsize win;ptioctl(1, TIOCGWINSZ, &win) 8429; return 0; } 8430EOF 8431if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8432 rm -rf conftest* 8433 cf_result=yes 8434else 8435 echo "configure: failed program was:" >&5 8436 cat conftest.$ac_ext >&5 8437 rm -rf conftest* 8438 cf_result=no 8439fi 8440rm -f conftest* 8441 fi 8442fi 8443if test "$cf_result" != yes; then 8444 CPPFLAGS="$CPPFLAGS_X" 8445 LIBS="$LIBS_X" 8446else 8447 cat >> confdefs.h <<\EOF 8448#define X2 1 8449EOF 8450 8451fi 8452echo "$ac_t""$cf_result" 1>&6 8453 8454#ifdef HAVE_SSL 8455ssld=yes 8456withval= 8457# Check whether --with-ssl or --without-ssl was given. 8458if test "${with_ssl+set}" = set; then 8459 withval="$with_ssl" 8460 if test "$withval" = no; then disable_ssl=yes; else ssld="$withval"; fi 8461fi 8462 8463cf_result=no 8464if test -z "$disable_ssl"; then 8465 CPPFLAGS_X="$CPPFLAGS" 8466 LIBS_X="$LIBS" 8467 if test "$static_link" != 0; then 8468 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 8469echo "configure:8470: checking for dlopen in -ldl" >&5 8470ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 8471if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8472 echo $ac_n "(cached) $ac_c" 1>&6 8473else 8474 ac_save_LIBS="$LIBS" 8475LIBS="-ldl $LIBS" 8476cat > conftest.$ac_ext <<EOF 8477#line 8478 "configure" 8478#include "confdefs.h" 8479/* Override any gcc2 internal prototype to avoid an error. */ 8480/* We use char because int might match the return type of a gcc2 8481 builtin and then its argument prototype would still apply. */ 8482char dlopen(); 8483 8484int main() { 8485dlopen() 8486; return 0; } 8487EOF 8488if { (eval echo configure:8489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8489 rm -rf conftest* 8490 eval "ac_cv_lib_$ac_lib_var=yes" 8491else 8492 echo "configure: failed program was:" >&5 8493 cat conftest.$ac_ext >&5 8494 rm -rf conftest* 8495 eval "ac_cv_lib_$ac_lib_var=no" 8496fi 8497rm -f conftest* 8498LIBS="$ac_save_LIBS" 8499 8500fi 8501if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8502 echo "$ac_t""yes" 1>&6 8503 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 8504 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 8505 cat >> confdefs.h <<EOF 8506#define $ac_tr_lib 1 8507EOF 8508 8509 LIBS="-ldl $LIBS" 8510 8511else 8512 echo "$ac_t""no" 1>&6 8513fi 8514 8515 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 8516echo "configure:8517: checking for inflate in -lz" >&5 8517ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 8518if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8519 echo $ac_n "(cached) $ac_c" 1>&6 8520else 8521 ac_save_LIBS="$LIBS" 8522LIBS="-lz $LIBS" 8523cat > conftest.$ac_ext <<EOF 8524#line 8525 "configure" 8525#include "confdefs.h" 8526/* Override any gcc2 internal prototype to avoid an error. */ 8527/* We use char because int might match the return type of a gcc2 8528 builtin and then its argument prototype would still apply. */ 8529char inflate(); 8530 8531int main() { 8532inflate() 8533; return 0; } 8534EOF 8535if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8536 rm -rf conftest* 8537 eval "ac_cv_lib_$ac_lib_var=yes" 8538else 8539 echo "configure: failed program was:" >&5 8540 cat conftest.$ac_ext >&5 8541 rm -rf conftest* 8542 eval "ac_cv_lib_$ac_lib_var=no" 8543fi 8544rm -f conftest* 8545LIBS="$ac_save_LIBS" 8546 8547fi 8548if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8549 echo "$ac_t""yes" 1>&6 8550 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 8551 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 8552 cat >> confdefs.h <<EOF 8553#define $ac_tr_lib 1 8554EOF 8555 8556 LIBS="-lz $LIBS" 8557 8558else 8559 echo "$ac_t""no" 1>&6 8560fi 8561 8562 fi 8563 CPPFLAGS_XX="$CPPFLAGS" 8564 LIBS_XX="$LIBS" 8565 8566 succeeded=no 8567 8568 if test -z "$PKG_CONFIG"; then 8569 # Extract the first word of "pkg-config", so it can be a program name with args. 8570set dummy pkg-config; ac_word=$2 8571echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8572echo "configure:8573: checking for $ac_word" >&5 8573if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then 8574 echo $ac_n "(cached) $ac_c" 1>&6 8575else 8576 case "$PKG_CONFIG" in 8577 /*) 8578 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8579 ;; 8580 ?:/*) 8581 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. 8582 ;; 8583 *) 8584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8585 ac_dummy="$PATH" 8586 for ac_dir in $ac_dummy; do 8587 test -z "$ac_dir" && ac_dir=. 8588 if test -f $ac_dir/$ac_word; then 8589 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 8590 break 8591 fi 8592 done 8593 IFS="$ac_save_ifs" 8594 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8595 ;; 8596esac 8597fi 8598PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 8599if test -n "$PKG_CONFIG"; then 8600 echo "$ac_t""$PKG_CONFIG" 1>&6 8601else 8602 echo "$ac_t""no" 1>&6 8603fi 8604 8605 fi 8606 8607 if test "$PKG_CONFIG" = "no" ; then 8608 echo "*** The pkg-config script could not be found. Make sure it is" 8609 echo "*** in your path, or set the PKG_CONFIG environment variable" 8610 echo "*** to the full path to pkg-config." 8611 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 8612 else 8613 PKG_CONFIG_MIN_VERSION=0.9.0 8614 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8615 echo $ac_n "checking for openssl""... $ac_c" 1>&6 8616echo "configure:8617: checking for openssl" >&5 8617 8618 if $PKG_CONFIG --exists "openssl" ; then 8619 echo "$ac_t""yes" 1>&6 8620 succeeded=yes 8621 8622 echo $ac_n "checking OPENSSL_CFLAGS""... $ac_c" 1>&6 8623echo "configure:8624: checking OPENSSL_CFLAGS" >&5 8624 OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl"` 8625 echo "$ac_t""$OPENSSL_CFLAGS" 1>&6 8626 8627 echo $ac_n "checking OPENSSL_LIBS""... $ac_c" 1>&6 8628echo "configure:8629: checking OPENSSL_LIBS" >&5 8629 OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl"` 8630 echo "$ac_t""$OPENSSL_LIBS" 1>&6 8631 else 8632 OPENSSL_CFLAGS="" 8633 OPENSSL_LIBS="" 8634 ## If we have a custom action on failure, don't print errors, but 8635 ## do set a variable so people can do so. 8636 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"` 8637 8638 fi 8639 8640 8641 8642 else 8643 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 8644 echo "*** See http://www.freedesktop.org/software/pkgconfig" 8645 fi 8646 fi 8647 8648 if test $succeeded = yes; then 8649 pkgconfig_openssl=yes 8650 else 8651 pkgconfig_openssl=no 8652 fi 8653 8654 if test "$PKG_CONFIG" != no -a "$pkgconfig_openssl" = no; then 8655 echo "$ac_t""$pkgconfig_openssl" 1>&6 8656 fi 8657 if test "$pkgconfig_openssl" = yes && test "$ssld" = yes; then 8658 echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6 8659echo "configure:8660: checking for OpenSSL" >&5 8660 CPPFLAGS="$CPPFLAGS $OPENSSL_CFLAGS" 8661 LIBS="$OPENSSL_LIBS $LIBS" 8662 cat > conftest.$ac_ext <<EOF 8663#line 8664 "configure" 8664#include "confdefs.h" 8665#include <openssl/ssl.h> 8666int main() { 8667SSLeay_add_ssl_algorithms() 8668; return 0; } 8669EOF 8670if { (eval echo configure:8671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8671 rm -rf conftest* 8672 cf_result=yes 8673else 8674 echo "configure: failed program was:" >&5 8675 cat conftest.$ac_ext >&5 8676 rm -rf conftest* 8677 cf_result=no 8678fi 8679rm -f conftest* 8680 if test "$cf_result" != yes; then 8681 cat > conftest.$ac_ext <<EOF 8682#line 8683 "configure" 8683#include "confdefs.h" 8684#include <openssl/ssl.h> 8685int main() { 8686SSLeay_add_ssl_algorithms() 8687; return 0; } 8688EOF 8689if { (eval echo configure:8690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8690 rm -rf conftest* 8691 cf_result=yes 8692else 8693 echo "configure: failed program was:" >&5 8694 cat conftest.$ac_ext >&5 8695 rm -rf conftest* 8696 cf_result=no 8697fi 8698rm -f conftest* 8699 fi 8700 else 8701 echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6 8702echo "configure:8703: checking for OpenSSL" >&5 8703 if test "$ssld" = yes; then 8704 ssld=". /usr /usr/local /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/local/www /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl" 8705 fi 8706 for ssldir in $ssld; do 8707 if test "$cf_result" = no; then 8708 if test ! -z "$ssldir" && test "$ssldir" != /usr && test "$ssldir" != .; then 8709 LIBS="-L$ssldir/lib -lssl -lcrypto $LIBS_XX" 8710 CPPFLAGS="$CPPFLAGS_XX -I$ssldir/include" 8711 else 8712 LIBS="-lssl -lcrypto $LIBS_XX" 8713 CPPFLAGS="$CPPFLAGS_XX" 8714 fi 8715 cat > conftest.$ac_ext <<EOF 8716#line 8717 "configure" 8717#include "confdefs.h" 8718#include <openssl/ssl.h> 8719int main() { 8720SSLeay_add_ssl_algorithms() 8721; return 0; } 8722EOF 8723if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8724 rm -rf conftest* 8725 cf_result=yes 8726else 8727 echo "configure: failed program was:" >&5 8728 cat conftest.$ac_ext >&5 8729 rm -rf conftest* 8730 cf_result=no 8731fi 8732rm -f conftest* 8733 fi 8734 done 8735 fi 8736 8737 echo "$ac_t""$cf_result" 1>&6 8738 8739 if test "$cf_result" != yes; then 8740 if test -n "$withval" -a "$withval" != no; then 8741 { echo "configure: error: "OpenSSL not found"" 1>&2; exit 1; } 8742 fi 8743 CPPFLAGS="$CPPFLAGS_X" 8744 LIBS="$LIBS_X" 8745 else 8746 cat >> confdefs.h <<\EOF 8747#define HAVE_SSL 1 8748EOF 8749 8750 for ac_func in RAND_add RAND_egd RAND_file_name RAND_load_file RAND_write_file 8751do 8752echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8753echo "configure:8754: checking for $ac_func" >&5 8754if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8755 echo $ac_n "(cached) $ac_c" 1>&6 8756else 8757 cat > conftest.$ac_ext <<EOF 8758#line 8759 "configure" 8759#include "confdefs.h" 8760/* System header to define __stub macros and hopefully few prototypes, 8761 which can conflict with char $ac_func(); below. */ 8762#include <assert.h> 8763/* Override any gcc2 internal prototype to avoid an error. */ 8764/* We use char because int might match the return type of a gcc2 8765 builtin and then its argument prototype would still apply. */ 8766char $ac_func(); 8767 8768int main() { 8769 8770/* The GNU C library defines this for functions which it implements 8771 to always fail with ENOSYS. Some functions are actually named 8772 something starting with __ and the normal name is an alias. */ 8773#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8774choke me 8775#else 8776$ac_func(); 8777#endif 8778 8779; return 0; } 8780EOF 8781if { (eval echo configure:8782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8782 rm -rf conftest* 8783 eval "ac_cv_func_$ac_func=yes" 8784else 8785 echo "configure: failed program was:" >&5 8786 cat conftest.$ac_ext >&5 8787 rm -rf conftest* 8788 eval "ac_cv_func_$ac_func=no" 8789fi 8790rm -f conftest* 8791fi 8792 8793if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8794 echo "$ac_t""yes" 1>&6 8795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8796 cat >> confdefs.h <<EOF 8797#define $ac_tr_func 1 8798EOF 8799 8800else 8801 echo "$ac_t""no" 1>&6 8802fi 8803done 8804 8805 fi 8806fi 8807#endif 8808 8809test "$have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe" 8810 8811trap '' 1 2 15 8812cat > confcache <<\EOF 8813# This file is a shell script that caches the results of configure 8814# tests run on this system so they can be shared between configure 8815# scripts and configure runs. It is not useful on other systems. 8816# If it contains results you don't want to keep, you may remove or edit it. 8817# 8818# By default, configure uses ./config.cache as the cache file, 8819# creating it if it does not exist already. You can give configure 8820# the --cache-file=FILE option to use a different cache file; that is 8821# what configure does when it calls configure scripts in 8822# subdirectories, so they share the cache. 8823# Giving --cache-file=/dev/null disables caching, for debugging configure. 8824# config.status only pays attention to the cache file if you give it the 8825# --recheck option to rerun configure. 8826# 8827EOF 8828# The following way of writing the cache mishandles newlines in values, 8829# but we know of no workaround that is simple, portable, and efficient. 8830# So, don't put newlines in cache variables' values. 8831# Ultrix sh set writes to stderr and can't be redirected directly, 8832# and sets the high bit in the cache file unless we assign to the vars. 8833(set) 2>&1 | 8834 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8835 *ac_space=\ *) 8836 # `set' does not quote correctly, so add quotes (double-quote substitution 8837 # turns \\\\ into \\, and sed turns \\ into \). 8838 sed -n \ 8839 -e "s/'/'\\\\''/g" \ 8840 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 8841 ;; 8842 *) 8843 # `set' quotes correctly as required by POSIX, so do not add quotes. 8844 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 8845 ;; 8846 esac >> confcache 8847if cmp -s $cache_file confcache; then 8848 : 8849else 8850 if test -w $cache_file; then 8851 echo "updating cache $cache_file" 8852 cat confcache > $cache_file 8853 else 8854 echo "not updating unwritable cache $cache_file" 8855 fi 8856fi 8857rm -f confcache 8858 8859trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 8860 8861test "x$prefix" = xNONE && prefix=$ac_default_prefix 8862# Let make expand exec_prefix. 8863test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8864 8865# Any assignment to VPATH causes Sun make to only execute 8866# the first set of double-colon rules, so remove it if not needed. 8867# If there is a colon in the path, we need to keep it. 8868if test "x$srcdir" = x.; then 8869 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 8870fi 8871 8872trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 8873 8874DEFS=-DHAVE_CONFIG_H 8875 8876# Without the "./", some shells look in PATH for config.status. 8877: ${CONFIG_STATUS=./config.status} 8878 8879echo creating $CONFIG_STATUS 8880rm -f $CONFIG_STATUS 8881cat > $CONFIG_STATUS <<EOF 8882#! /bin/sh 8883# Generated automatically by configure. 8884# Run this file to recreate the current configuration. 8885# This directory was configured as follows, 8886# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8887# 8888# $0 $ac_configure_args 8889# 8890# Compiler output produced by configure, useful for debugging 8891# configure, is in ./config.log if it exists. 8892 8893ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 8894for ac_option 8895do 8896 case "\$ac_option" in 8897 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8898 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 8899 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 8900 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 8901 echo "$CONFIG_STATUS generated by autoconf version 2.13" 8902 exit 0 ;; 8903 -help | --help | --hel | --he | --h) 8904 echo "\$ac_cs_usage"; exit 0 ;; 8905 *) echo "\$ac_cs_usage"; exit 1 ;; 8906 esac 8907done 8908 8909ac_given_srcdir=$srcdir 8910ac_given_INSTALL="$INSTALL" 8911 8912trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 8913EOF 8914cat >> $CONFIG_STATUS <<EOF 8915 8916# Protect against being on the right side of a sed subst in config.status. 8917sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 8918 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 8919$ac_vpsub 8920$extrasub 8921s%@SHELL@%$SHELL%g 8922s%@CFLAGS@%$CFLAGS%g 8923s%@CPPFLAGS@%$CPPFLAGS%g 8924s%@CXXFLAGS@%$CXXFLAGS%g 8925s%@FFLAGS@%$FFLAGS%g 8926s%@DEFS@%$DEFS%g 8927s%@LDFLAGS@%$LDFLAGS%g 8928s%@LIBS@%$LIBS%g 8929s%@exec_prefix@%$exec_prefix%g 8930s%@prefix@%$prefix%g 8931s%@program_transform_name@%$program_transform_name%g 8932s%@bindir@%$bindir%g 8933s%@sbindir@%$sbindir%g 8934s%@libexecdir@%$libexecdir%g 8935s%@datadir@%$datadir%g 8936s%@sysconfdir@%$sysconfdir%g 8937s%@sharedstatedir@%$sharedstatedir%g 8938s%@localstatedir@%$localstatedir%g 8939s%@libdir@%$libdir%g 8940s%@includedir@%$includedir%g 8941s%@oldincludedir@%$oldincludedir%g 8942s%@infodir@%$infodir%g 8943s%@mandir@%$mandir%g 8944s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 8945s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 8946s%@INSTALL_DATA@%$INSTALL_DATA%g 8947s%@PACKAGE@%$PACKAGE%g 8948s%@VERSION@%$VERSION%g 8949s%@ACLOCAL@%$ACLOCAL%g 8950s%@AUTOCONF@%$AUTOCONF%g 8951s%@AUTOMAKE@%$AUTOMAKE%g 8952s%@AUTOHEADER@%$AUTOHEADER%g 8953s%@MAKEINFO@%$MAKEINFO%g 8954s%@SET_MAKE@%$SET_MAKE%g 8955s%@CC@%$CC%g 8956s%@CPP@%$CPP%g 8957s%@PKG_CONFIG@%$PKG_CONFIG%g 8958s%@OPENSSL_CFLAGS@%$OPENSSL_CFLAGS%g 8959s%@OPENSSL_LIBS@%$OPENSSL_LIBS%g 8960 8961CEOF 8962EOF 8963 8964cat >> $CONFIG_STATUS <<\EOF 8965 8966# Split the substitutions into bite-sized pieces for seds with 8967# small command number limits, like on Digital OSF/1 and HP-UX. 8968ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 8969ac_file=1 # Number of current file. 8970ac_beg=1 # First line for current file. 8971ac_end=$ac_max_sed_cmds # Line after last line for current file. 8972ac_more_lines=: 8973ac_sed_cmds="" 8974while $ac_more_lines; do 8975 if test $ac_beg -gt 1; then 8976 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 8977 else 8978 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 8979 fi 8980 if test ! -s conftest.s$ac_file; then 8981 ac_more_lines=false 8982 rm -f conftest.s$ac_file 8983 else 8984 if test -z "$ac_sed_cmds"; then 8985 ac_sed_cmds="sed -f conftest.s$ac_file" 8986 else 8987 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 8988 fi 8989 ac_file=`expr $ac_file + 1` 8990 ac_beg=$ac_end 8991 ac_end=`expr $ac_end + $ac_max_sed_cmds` 8992 fi 8993done 8994if test -z "$ac_sed_cmds"; then 8995 ac_sed_cmds=cat 8996fi 8997EOF 8998 8999cat >> $CONFIG_STATUS <<EOF 9000 9001CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 9002EOF 9003cat >> $CONFIG_STATUS <<\EOF 9004for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 9005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9006 case "$ac_file" in 9007 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 9008 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 9009 *) ac_file_in="${ac_file}.in" ;; 9010 esac 9011 9012 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 9013 9014 # Remove last slash and all that follows it. Not all systems have dirname. 9015 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 9016 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 9017 # The file is in a subdirectory. 9018 test ! -d "$ac_dir" && mkdir "$ac_dir" 9019 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 9020 # A "../" for each directory in $ac_dir_suffix. 9021 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 9022 else 9023 ac_dir_suffix= ac_dots= 9024 fi 9025 9026 case "$ac_given_srcdir" in 9027 .) srcdir=. 9028 if test -z "$ac_dots"; then top_srcdir=. 9029 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 9030 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 9031 *) # Relative path. 9032 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 9033 top_srcdir="$ac_dots$ac_given_srcdir" ;; 9034 esac 9035 9036 case "$ac_given_INSTALL" in 9037 [/$]*) INSTALL="$ac_given_INSTALL" ;; 9038 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 9039 esac 9040 9041 echo creating "$ac_file" 9042 rm -f "$ac_file" 9043 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 9044 case "$ac_file" in 9045 *Makefile*) ac_comsub="1i\\ 9046# $configure_input" ;; 9047 *) ac_comsub= ;; 9048 esac 9049 9050 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 9051 sed -e "$ac_comsub 9052s%@configure_input@%$configure_input%g 9053s%@srcdir@%$srcdir%g 9054s%@top_srcdir@%$top_srcdir%g 9055s%@INSTALL@%$INSTALL%g 9056" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 9057fi; done 9058rm -f conftest.s* 9059 9060# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 9061# NAME is the cpp macro being defined and VALUE is the value it is being given. 9062# 9063# ac_d sets the value in "#define NAME VALUE" lines. 9064ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 9065ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 9066ac_dC='\3' 9067ac_dD='%g' 9068# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 9069ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9070ac_uB='\([ ]\)%\1#\2define\3' 9071ac_uC=' ' 9072ac_uD='\4%g' 9073# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 9074ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9075ac_eB='$%\1#\2define\3' 9076ac_eC=' ' 9077ac_eD='%g' 9078 9079if test "${CONFIG_HEADERS+set}" != set; then 9080EOF 9081cat >> $CONFIG_STATUS <<EOF 9082 CONFIG_HEADERS="config.h" 9083EOF 9084cat >> $CONFIG_STATUS <<\EOF 9085fi 9086for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 9087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9088 case "$ac_file" in 9089 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 9090 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 9091 *) ac_file_in="${ac_file}.in" ;; 9092 esac 9093 9094 echo creating $ac_file 9095 9096 rm -f conftest.frag conftest.in conftest.out 9097 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 9098 cat $ac_file_inputs > conftest.in 9099 9100EOF 9101 9102# Transform confdefs.h into a sed script conftest.vals that substitutes 9103# the proper values into config.h.in to produce config.h. And first: 9104# Protect against being on the right side of a sed subst in config.status. 9105# Protect against being in an unquoted here document in config.status. 9106rm -f conftest.vals 9107cat > conftest.hdr <<\EOF 9108s/[\\&%]/\\&/g 9109s%[\\$`]%\\&%g 9110s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 9111s%ac_d%ac_u%gp 9112s%ac_u%ac_e%gp 9113EOF 9114sed -n -f conftest.hdr confdefs.h > conftest.vals 9115rm -f conftest.hdr 9116 9117# This sed command replaces #undef with comments. This is necessary, for 9118# example, in the case of _POSIX_SOURCE, which is predefined and required 9119# on some systems where configure will not decide to define it. 9120cat >> conftest.vals <<\EOF 9121s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 9122EOF 9123 9124# Break up conftest.vals because some shells have a limit on 9125# the size of here documents, and old seds have small limits too. 9126 9127rm -f conftest.tail 9128while : 9129do 9130 ac_lines=`grep -c . conftest.vals` 9131 # grep -c gives empty output for an empty file on some AIX systems. 9132 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 9133 # Write a limited-size here document to conftest.frag. 9134 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 9135 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 9136 echo 'CEOF 9137 sed -f conftest.frag conftest.in > conftest.out 9138 rm -f conftest.in 9139 mv conftest.out conftest.in 9140' >> $CONFIG_STATUS 9141 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 9142 rm -f conftest.vals 9143 mv conftest.tail conftest.vals 9144done 9145rm -f conftest.vals 9146 9147cat >> $CONFIG_STATUS <<\EOF 9148 rm -f conftest.frag conftest.h 9149 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 9150 cat conftest.in >> conftest.h 9151 rm -f conftest.in 9152 if cmp -s $ac_file conftest.h 2>/dev/null; then 9153 echo "$ac_file is unchanged" 9154 rm -f conftest.h 9155 else 9156 # Remove last slash and all that follows it. Not all systems have dirname. 9157 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 9158 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 9159 # The file is in a subdirectory. 9160 test ! -d "$ac_dir" && mkdir "$ac_dir" 9161 fi 9162 rm -f $ac_file 9163 mv conftest.h $ac_file 9164 fi 9165fi; done 9166 9167EOF 9168cat >> $CONFIG_STATUS <<EOF 9169 9170 9171EOF 9172cat >> $CONFIG_STATUS <<\EOF 9173test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 9174 9175exit 0 9176EOF 9177chmod +x $CONFIG_STATUS 9178rm -fr confdefs* $ac_clean_files 9179test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 9180 9181 9182