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