~ubuntu-branches/ubuntu/precise/nagios-plugins/precise-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2004-06-15 15:37:48 UTC
  • Revision ID: james.westby@ubuntu.com-20040615153748-pq7702qdzghqfcns
Tags: upstream-1.3.1.0
ImportĀ upstreamĀ versionĀ 1.3.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# From configure.in .
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated by GNU Autoconf 2.57.
 
5
#
 
6
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
7
# Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
 
 
25
# Support unset when possible.
 
26
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
27
  as_unset=unset
 
28
else
 
29
  as_unset=false
 
30
fi
 
31
 
 
32
 
 
33
# Work around bugs in pre-3.0 UWIN ksh.
 
34
$as_unset ENV MAIL MAILPATH
 
35
PS1='$ '
 
36
PS2='> '
 
37
PS4='+ '
 
38
 
 
39
# NLS nuisances.
 
40
for as_var in \
 
41
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
42
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
43
  LC_TELEPHONE LC_TIME
 
44
do
 
45
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
46
    eval $as_var=C; export $as_var
 
47
  else
 
48
    $as_unset $as_var
 
49
  fi
 
50
done
 
51
 
 
52
# Required to use basename.
 
53
if expr a : '\(a\)' >/dev/null 2>&1; then
 
54
  as_expr=expr
 
55
else
 
56
  as_expr=false
 
57
fi
 
58
 
 
59
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
60
  as_basename=basename
 
61
else
 
62
  as_basename=false
 
63
fi
 
64
 
 
65
 
 
66
# Name of the executable.
 
67
as_me=`$as_basename "$0" ||
 
68
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
69
         X"$0" : 'X\(//\)$' \| \
 
70
         X"$0" : 'X\(/\)$' \| \
 
71
         .     : '\(.\)' 2>/dev/null ||
 
72
echo X/"$0" |
 
73
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
74
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
75
          /^X\/\(\/\).*/{ s//\1/; q; }
 
76
          s/.*/./; q'`
 
77
 
 
78
 
 
79
# PATH needs CR, and LINENO needs CR and PATH.
 
80
# Avoid depending upon Character Ranges.
 
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
84
as_cr_digits='0123456789'
 
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
86
 
 
87
# The user is always right.
 
88
if test "${PATH_SEPARATOR+set}" != set; then
 
89
  echo "#! /bin/sh" >conf$$.sh
 
90
  echo  "exit 0"   >>conf$$.sh
 
91
  chmod +x conf$$.sh
 
92
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
93
    PATH_SEPARATOR=';'
 
94
  else
 
95
    PATH_SEPARATOR=:
 
96
  fi
 
97
  rm -f conf$$.sh
 
98
fi
 
99
 
 
100
 
 
101
  as_lineno_1=$LINENO
 
102
  as_lineno_2=$LINENO
 
103
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
104
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
105
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
106
  # Find who we are.  Look in the path if we contain no path at all
 
107
  # relative or not.
 
108
  case $0 in
 
109
    *[\\/]* ) as_myself=$0 ;;
 
110
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
111
for as_dir in $PATH
 
112
do
 
113
  IFS=$as_save_IFS
 
114
  test -z "$as_dir" && as_dir=.
 
115
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
116
done
 
117
 
 
118
       ;;
 
119
  esac
 
120
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
121
  # in which case we are not to be found in the path.
 
122
  if test "x$as_myself" = x; then
 
123
    as_myself=$0
 
124
  fi
 
125
  if test ! -f "$as_myself"; then
 
126
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
127
   { (exit 1); exit 1; }; }
 
128
  fi
 
129
  case $CONFIG_SHELL in
 
130
  '')
 
131
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
133
do
 
134
  IFS=$as_save_IFS
 
135
  test -z "$as_dir" && as_dir=.
 
136
  for as_base in sh bash ksh sh5; do
 
137
         case $as_dir in
 
138
         /*)
 
139
           if ("$as_dir/$as_base" -c '
 
140
  as_lineno_1=$LINENO
 
141
  as_lineno_2=$LINENO
 
142
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
143
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
144
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
145
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
146
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
147
             CONFIG_SHELL=$as_dir/$as_base
 
148
             export CONFIG_SHELL
 
149
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
150
           fi;;
 
151
         esac
 
152
       done
 
153
done
 
154
;;
 
155
  esac
 
156
 
 
157
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
158
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
159
  # line-number line before each line; the second 'sed' does the real
 
160
  # work.  The second script uses 'N' to pair each line-number line
 
161
  # with the numbered line, and appends trailing '-' during
 
162
  # substitution so that $LINENO is not a special case at line end.
 
163
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
164
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
165
  sed '=' <$as_myself |
 
166
    sed '
 
167
      N
 
168
      s,$,-,
 
169
      : loop
 
170
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
171
      t loop
 
172
      s,-$,,
 
173
      s,^['$as_cr_digits']*\n,,
 
174
    ' >$as_me.lineno &&
 
175
  chmod +x $as_me.lineno ||
 
176
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
177
   { (exit 1); exit 1; }; }
 
178
 
 
179
  # Don't try to exec as it changes $[0], causing all sort of problems
 
180
  # (the dirname of $[0] is not the place where we might find the
 
181
  # original and so on.  Autoconf is especially sensible to this).
 
182
  . ./$as_me.lineno
 
183
  # Exit status is that of the last command.
 
184
  exit
 
185
}
 
186
 
 
187
 
 
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
189
  *c*,-n*) ECHO_N= ECHO_C='
 
190
' ECHO_T='      ' ;;
 
191
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
192
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
193
esac
 
194
 
 
195
if expr a : '\(a\)' >/dev/null 2>&1; then
 
196
  as_expr=expr
 
197
else
 
198
  as_expr=false
 
199
fi
 
200
 
 
201
rm -f conf$$ conf$$.exe conf$$.file
 
202
echo >conf$$.file
 
203
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
204
  # We could just check for DJGPP; but this test a) works b) is more generic
 
205
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
206
  if test -f conf$$.exe; then
 
207
    # Don't use ln at all; we don't have any links
 
208
    as_ln_s='cp -p'
 
209
  else
 
210
    as_ln_s='ln -s'
 
211
  fi
 
212
elif ln conf$$.file conf$$ 2>/dev/null; then
 
213
  as_ln_s=ln
 
214
else
 
215
  as_ln_s='cp -p'
 
216
fi
 
217
rm -f conf$$ conf$$.exe conf$$.file
 
218
 
 
219
if mkdir -p . 2>/dev/null; then
 
220
  as_mkdir_p=:
 
221
else
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="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.
 
231
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $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.
 
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
248
 
 
249
exec 6>&1
 
250
 
 
251
#
 
252
# Initializations.
 
253
#
 
254
ac_default_prefix=/usr/local
 
255
ac_config_libobj_dir=.
 
256
cross_compiling=no
 
257
subdirs=
 
258
MFLAGS=
 
259
MAKEFLAGS=
 
260
SHELL=${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.
 
268
PACKAGE_NAME=
 
269
PACKAGE_TARNAME=
 
270
PACKAGE_VERSION=
 
271
PACKAGE_STRING=
 
272
PACKAGE_BUGREPORT=
 
273
 
 
274
ac_unique_file="Helper.pm"
 
275
ac_default_prefix=/usr/local/nagios
 
276
# Factoring default headers for most tests.
 
277
ac_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
 
 
313
ac_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 VER REL PACKAGE_RELEASE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE INSTALL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE LIBOBJS CPP EGREP NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS POW_LIB RANLIB ac_ct_RANLIB PLUGIN_TEST SCRIPT_TEST WARRANTY SUPPORT nagios_usr nagios_grp INSTALL_OPTS trusted_path PYTHON PERL SH HOSTNAME BASENAME SOCKETLIBS PGLIBS PGINCLUDE RADIUSLIBS LDAPLIBS LDAPINCLUDE MYSQLINCLUDE MYSQLLIBS check_mysql_LDFLAGS OPENSSL KRBINCLUDE SSLINCLUDE check_tcp_ssl SSLLIBS PATH_TO_PS PATH_TO_DF PATH_TO_PING PATH_TO_NSLOOKUP PATH_TO_HOST PATH_TO_UPTIME PATH_TO_RPCINFO PATH_TO_NTPDATE PATH_TO_NTPDC PATH_TO_NTPQ PATH_TO_LMSTAT PATH_TO_SMBCLIENT PATH_TO_WHO PATH_TO_SNMPGET PATH_TO_SNMPGETNEXT PATH_TO_QUAKESTAT PATH_TO_QSTAT PATH_TO_FPING PATH_TO_SSH PATH_TO_MAILQ PATH_TO_SWAP PATH_TO_DIG NEED_VA_LIST EXTRAS DEPLIBS LTLIBOBJS'
 
314
ac_subst_files=''
 
315
 
 
316
# Initialize some variables set by options.
 
317
ac_init_help=
 
318
ac_init_version=false
 
319
# The variables have the same names as the options, with
 
320
# dashes changed to underlines.
 
321
cache_file=/dev/null
 
322
exec_prefix=NONE
 
323
no_create=
 
324
no_recursion=
 
325
prefix=NONE
 
326
program_prefix=NONE
 
327
program_suffix=NONE
 
328
program_transform_name=s,x,x,
 
329
silent=
 
330
site=
 
331
srcdir=
 
332
verbose=
 
333
x_includes=NONE
 
334
x_libraries=NONE
 
335
 
 
336
# Installation directory options.
 
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
338
# and all the variables that are supposed to be based on exec_prefix
 
339
# by default will actually change.
 
340
# Use braces instead of parens because sh, perl, etc. also accept them.
 
341
bindir='${exec_prefix}/bin'
 
342
sbindir='${exec_prefix}/sbin'
 
343
libexecdir='${exec_prefix}/libexec'
 
344
datadir='${prefix}/share'
 
345
sysconfdir='${prefix}/etc'
 
346
sharedstatedir='${prefix}/com'
 
347
localstatedir='${prefix}/var'
 
348
libdir='${exec_prefix}/lib'
 
349
includedir='${prefix}/include'
 
350
oldincludedir='/usr/include'
 
351
infodir='${prefix}/info'
 
352
mandir='${prefix}/man'
 
353
 
 
354
ac_prev=
 
355
for ac_option
 
356
do
 
357
  # If the previous option needs an argument, assign it.
 
358
  if test -n "$ac_prev"; then
 
359
    eval "$ac_prev=\$ac_option"
 
360
    ac_prev=
 
361
    continue
 
362
  fi
 
363
 
 
364
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
365
 
 
366
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
367
 
 
368
  case $ac_option in
 
369
 
 
370
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
371
    ac_prev=bindir ;;
 
372
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
373
    bindir=$ac_optarg ;;
 
374
 
 
375
  -build | --build | --buil | --bui | --bu)
 
376
    ac_prev=build_alias ;;
 
377
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
378
    build_alias=$ac_optarg ;;
 
379
 
 
380
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
381
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
382
    ac_prev=cache_file ;;
 
383
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
384
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
385
    cache_file=$ac_optarg ;;
 
386
 
 
387
  --config-cache | -C)
 
388
    cache_file=config.cache ;;
 
389
 
 
390
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
391
    ac_prev=datadir ;;
 
392
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
393
  | --da=*)
 
394
    datadir=$ac_optarg ;;
 
395
 
 
396
  -disable-* | --disable-*)
 
397
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
398
    # Reject names that are not valid shell variable names.
 
399
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
400
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
401
   { (exit 1); exit 1; }; }
 
402
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
403
    eval "enable_$ac_feature=no" ;;
 
404
 
 
405
  -enable-* | --enable-*)
 
406
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
407
    # Reject names that are not valid shell variable names.
 
408
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
409
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
410
   { (exit 1); exit 1; }; }
 
411
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
412
    case $ac_option in
 
413
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
414
      *) ac_optarg=yes ;;
 
415
    esac
 
416
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
417
 
 
418
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
419
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
420
  | --exec | --exe | --ex)
 
421
    ac_prev=exec_prefix ;;
 
422
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
423
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
424
  | --exec=* | --exe=* | --ex=*)
 
425
    exec_prefix=$ac_optarg ;;
 
426
 
 
427
  -gas | --gas | --ga | --g)
 
428
    # Obsolete; use --with-gas.
 
429
    with_gas=yes ;;
 
430
 
 
431
  -help | --help | --hel | --he | -h)
 
432
    ac_init_help=long ;;
 
433
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
434
    ac_init_help=recursive ;;
 
435
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
436
    ac_init_help=short ;;
 
437
 
 
438
  -host | --host | --hos | --ho)
 
439
    ac_prev=host_alias ;;
 
440
  -host=* | --host=* | --hos=* | --ho=*)
 
441
    host_alias=$ac_optarg ;;
 
442
 
 
443
  -includedir | --includedir | --includedi | --included | --include \
 
444
  | --includ | --inclu | --incl | --inc)
 
445
    ac_prev=includedir ;;
 
446
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
447
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
448
    includedir=$ac_optarg ;;
 
449
 
 
450
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
451
    ac_prev=infodir ;;
 
452
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
453
    infodir=$ac_optarg ;;
 
454
 
 
455
  -libdir | --libdir | --libdi | --libd)
 
456
    ac_prev=libdir ;;
 
457
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
458
    libdir=$ac_optarg ;;
 
459
 
 
460
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
461
  | --libexe | --libex | --libe)
 
462
    ac_prev=libexecdir ;;
 
463
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
464
  | --libexe=* | --libex=* | --libe=*)
 
465
    libexecdir=$ac_optarg ;;
 
466
 
 
467
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
468
  | --localstate | --localstat | --localsta | --localst \
 
469
  | --locals | --local | --loca | --loc | --lo)
 
470
    ac_prev=localstatedir ;;
 
471
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
472
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
473
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
474
    localstatedir=$ac_optarg ;;
 
475
 
 
476
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
477
    ac_prev=mandir ;;
 
478
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
479
    mandir=$ac_optarg ;;
 
480
 
 
481
  -nfp | --nfp | --nf)
 
482
    # Obsolete; use --without-fp.
 
483
    with_fp=no ;;
 
484
 
 
485
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
486
  | --no-cr | --no-c | -n)
 
487
    no_create=yes ;;
 
488
 
 
489
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
490
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
491
    no_recursion=yes ;;
 
492
 
 
493
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
494
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
495
  | --oldin | --oldi | --old | --ol | --o)
 
496
    ac_prev=oldincludedir ;;
 
497
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
498
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
499
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
500
    oldincludedir=$ac_optarg ;;
 
501
 
 
502
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
503
    ac_prev=prefix ;;
 
504
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
505
    prefix=$ac_optarg ;;
 
506
 
 
507
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
508
  | --program-pre | --program-pr | --program-p)
 
509
    ac_prev=program_prefix ;;
 
510
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
511
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
512
    program_prefix=$ac_optarg ;;
 
513
 
 
514
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
515
  | --program-suf | --program-su | --program-s)
 
516
    ac_prev=program_suffix ;;
 
517
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
518
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
519
    program_suffix=$ac_optarg ;;
 
520
 
 
521
  -program-transform-name | --program-transform-name \
 
522
  | --program-transform-nam | --program-transform-na \
 
523
  | --program-transform-n | --program-transform- \
 
524
  | --program-transform | --program-transfor \
 
525
  | --program-transfo | --program-transf \
 
526
  | --program-trans | --program-tran \
 
527
  | --progr-tra | --program-tr | --program-t)
 
528
    ac_prev=program_transform_name ;;
 
529
  -program-transform-name=* | --program-transform-name=* \
 
530
  | --program-transform-nam=* | --program-transform-na=* \
 
531
  | --program-transform-n=* | --program-transform-=* \
 
532
  | --program-transform=* | --program-transfor=* \
 
533
  | --program-transfo=* | --program-transf=* \
 
534
  | --program-trans=* | --program-tran=* \
 
535
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
536
    program_transform_name=$ac_optarg ;;
 
537
 
 
538
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
539
  | -silent | --silent | --silen | --sile | --sil)
 
540
    silent=yes ;;
 
541
 
 
542
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
543
    ac_prev=sbindir ;;
 
544
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
545
  | --sbi=* | --sb=*)
 
546
    sbindir=$ac_optarg ;;
 
547
 
 
548
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
549
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
550
  | --sharedst | --shareds | --shared | --share | --shar \
 
551
  | --sha | --sh)
 
552
    ac_prev=sharedstatedir ;;
 
553
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
554
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
555
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
556
  | --sha=* | --sh=*)
 
557
    sharedstatedir=$ac_optarg ;;
 
558
 
 
559
  -site | --site | --sit)
 
560
    ac_prev=site ;;
 
561
  -site=* | --site=* | --sit=*)
 
562
    site=$ac_optarg ;;
 
563
 
 
564
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
565
    ac_prev=srcdir ;;
 
566
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
567
    srcdir=$ac_optarg ;;
 
568
 
 
569
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
570
  | --syscon | --sysco | --sysc | --sys | --sy)
 
571
    ac_prev=sysconfdir ;;
 
572
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
573
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
574
    sysconfdir=$ac_optarg ;;
 
575
 
 
576
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
577
    ac_prev=target_alias ;;
 
578
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
579
    target_alias=$ac_optarg ;;
 
580
 
 
581
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
582
    verbose=yes ;;
 
583
 
 
584
  -version | --version | --versio | --versi | --vers | -V)
 
585
    ac_init_version=: ;;
 
586
 
 
587
  -with-* | --with-*)
 
588
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
589
    # Reject names that are not valid shell variable names.
 
590
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
591
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
592
   { (exit 1); exit 1; }; }
 
593
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
594
    case $ac_option in
 
595
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
596
      *) ac_optarg=yes ;;
 
597
    esac
 
598
    eval "with_$ac_package='$ac_optarg'" ;;
 
599
 
 
600
  -without-* | --without-*)
 
601
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
602
    # Reject names that are not valid shell variable names.
 
603
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
604
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
605
   { (exit 1); exit 1; }; }
 
606
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
607
    eval "with_$ac_package=no" ;;
 
608
 
 
609
  --x)
 
610
    # Obsolete; use --with-x.
 
611
    with_x=yes ;;
 
612
 
 
613
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
614
  | --x-incl | --x-inc | --x-in | --x-i)
 
615
    ac_prev=x_includes ;;
 
616
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
617
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
618
    x_includes=$ac_optarg ;;
 
619
 
 
620
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
621
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
622
    ac_prev=x_libraries ;;
 
623
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
624
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
625
    x_libraries=$ac_optarg ;;
 
626
 
 
627
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
628
Try \`$0 --help' for more information." >&2
 
629
   { (exit 1); exit 1; }; }
 
630
    ;;
 
631
 
 
632
  *=*)
 
633
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
634
    # Reject names that are not valid shell variable names.
 
635
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
636
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
637
   { (exit 1); exit 1; }; }
 
638
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
639
    eval "$ac_envvar='$ac_optarg'"
 
640
    export $ac_envvar ;;
 
641
 
 
642
  *)
 
643
    # FIXME: should be removed in autoconf 3.0.
 
644
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
645
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
646
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
647
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
648
    ;;
 
649
 
 
650
  esac
 
651
done
 
652
 
 
653
if test -n "$ac_prev"; then
 
654
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
655
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
656
   { (exit 1); exit 1; }; }
 
657
fi
 
658
 
 
659
# Be sure to have absolute paths.
 
660
for ac_var in exec_prefix prefix
 
661
do
 
662
  eval ac_val=$`echo $ac_var`
 
663
  case $ac_val in
 
664
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
665
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
666
   { (exit 1); exit 1; }; };;
 
667
  esac
 
668
done
 
669
 
 
670
# Be sure to have absolute paths.
 
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
672
              localstatedir libdir includedir oldincludedir infodir mandir
 
673
do
 
674
  eval ac_val=$`echo $ac_var`
 
675
  case $ac_val in
 
676
    [\\/$]* | ?:[\\/]* ) ;;
 
677
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
678
   { (exit 1); exit 1; }; };;
 
679
  esac
 
680
done
 
681
 
 
682
# There might be people who depend on the old broken behavior: `$host'
 
683
# used to hold the argument of --host etc.
 
684
# FIXME: To remove some day.
 
685
build=$build_alias
 
686
host=$host_alias
 
687
target=$target_alias
 
688
 
 
689
# FIXME: To remove some day.
 
690
if test "x$host_alias" != x; then
 
691
  if test "x$build_alias" = x; then
 
692
    cross_compiling=maybe
 
693
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
694
    If a cross compiler is detected then cross compile mode will be used." >&2
 
695
  elif test "x$build_alias" != "x$host_alias"; then
 
696
    cross_compiling=yes
 
697
  fi
 
698
fi
 
699
 
 
700
ac_tool_prefix=
 
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
702
 
 
703
test "$silent" = yes && exec 6>/dev/null
 
704
 
 
705
 
 
706
# Find the source files, if location was not specified.
 
707
if test -z "$srcdir"; then
 
708
  ac_srcdir_defaulted=yes
 
709
  # Try the directory containing this script, then its parent.
 
710
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
712
         X"$0" : 'X\(//\)[^/]' \| \
 
713
         X"$0" : 'X\(//\)$' \| \
 
714
         X"$0" : 'X\(/\)' \| \
 
715
         .     : '\(.\)' 2>/dev/null ||
 
716
echo X"$0" |
 
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
719
          /^X\(\/\/\)$/{ s//\1/; q; }
 
720
          /^X\(\/\).*/{ s//\1/; q; }
 
721
          s/.*/./; q'`
 
722
  srcdir=$ac_confdir
 
723
  if test ! -r $srcdir/$ac_unique_file; then
 
724
    srcdir=..
 
725
  fi
 
726
else
 
727
  ac_srcdir_defaulted=no
 
728
fi
 
729
if test ! -r $srcdir/$ac_unique_file; then
 
730
  if test "$ac_srcdir_defaulted" = yes; then
 
731
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
732
   { (exit 1); exit 1; }; }
 
733
  else
 
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
735
   { (exit 1); exit 1; }; }
 
736
  fi
 
737
fi
 
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
739
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
740
   { (exit 1); exit 1; }; }
 
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
742
ac_env_build_alias_set=${build_alias+set}
 
743
ac_env_build_alias_value=$build_alias
 
744
ac_cv_env_build_alias_set=${build_alias+set}
 
745
ac_cv_env_build_alias_value=$build_alias
 
746
ac_env_host_alias_set=${host_alias+set}
 
747
ac_env_host_alias_value=$host_alias
 
748
ac_cv_env_host_alias_set=${host_alias+set}
 
749
ac_cv_env_host_alias_value=$host_alias
 
750
ac_env_target_alias_set=${target_alias+set}
 
751
ac_env_target_alias_value=$target_alias
 
752
ac_cv_env_target_alias_set=${target_alias+set}
 
753
ac_cv_env_target_alias_value=$target_alias
 
754
ac_env_CC_set=${CC+set}
 
755
ac_env_CC_value=$CC
 
756
ac_cv_env_CC_set=${CC+set}
 
757
ac_cv_env_CC_value=$CC
 
758
ac_env_CFLAGS_set=${CFLAGS+set}
 
759
ac_env_CFLAGS_value=$CFLAGS
 
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
761
ac_cv_env_CFLAGS_value=$CFLAGS
 
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
763
ac_env_LDFLAGS_value=$LDFLAGS
 
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
767
ac_env_CPPFLAGS_value=$CPPFLAGS
 
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
770
ac_env_CPP_set=${CPP+set}
 
771
ac_env_CPP_value=$CPP
 
772
ac_cv_env_CPP_set=${CPP+set}
 
773
ac_cv_env_CPP_value=$CPP
 
774
 
 
775
#
 
776
# Report the --help message.
 
777
#
 
778
if test "$ac_init_help" = "long"; then
 
779
  # Omit some internal or obsolete options to make the list less imposing.
 
780
  # This message is too long to be a string in the A/UX 3.1 sh.
 
781
  cat <<_ACEOF
 
782
\`configure' configures this package to adapt to many kinds of systems.
 
783
 
 
784
Usage: $0 [OPTION]... [VAR=VALUE]...
 
785
 
 
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
787
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
788
 
 
789
Defaults for the options are specified in brackets.
 
790
 
 
791
Configuration:
 
792
  -h, --help              display this help and exit
 
793
      --help=short        display options specific to this package
 
794
      --help=recursive    display the short help of all the included packages
 
795
  -V, --version           display version information and exit
 
796
  -q, --quiet, --silent   do not print \`checking...' messages
 
797
      --cache-file=FILE   cache test results in FILE [disabled]
 
798
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
799
  -n, --no-create         do not create output files
 
800
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
801
 
 
802
_ACEOF
 
803
 
 
804
  cat <<_ACEOF
 
805
Installation directories:
 
806
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
807
                          [$ac_default_prefix]
 
808
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
809
                          [PREFIX]
 
810
 
 
811
By default, \`make install' will install all the files in
 
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
814
for instance \`--prefix=\$HOME'.
 
815
 
 
816
For better control, use the options below.
 
817
 
 
818
Fine tuning of the installation directories:
 
819
  --bindir=DIR           user executables [EPREFIX/bin]
 
820
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
821
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
822
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
823
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
824
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
825
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
826
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
827
  --includedir=DIR       C header files [PREFIX/include]
 
828
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
829
  --infodir=DIR          info documentation [PREFIX/info]
 
830
  --mandir=DIR           man documentation [PREFIX/man]
 
831
_ACEOF
 
832
 
 
833
  cat <<\_ACEOF
 
834
 
 
835
Program names:
 
836
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
837
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
838
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
839
_ACEOF
 
840
fi
 
841
 
 
842
if test -n "$ac_init_help"; then
 
843
 
 
844
  cat <<\_ACEOF
 
845
 
 
846
Optional Features:
 
847
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
848
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
849
  --disable-dependency-tracking Speeds up one-time builds
 
850
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
851
 
 
852
Optional Packages:
 
853
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
854
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
855
--with-cgiurl=<dir> sets URL for cgi programs
 
856
--with-nagios-user=<user> sets user name to run nagios
 
857
--with-nagios-group=<group> sets group name to run nagios
 
858
--with-trusted-path=/bin:/sbin:/usr/bin:/usr/sbin sets trusted path for executables called by scripts
 
859
--with-pgsql=<dir> sets path to pgsql installation
 
860
--with-mysql=<dir> sets path to mysql installation (assumes lib/mysql and include subdirs)
 
861
--with-openssl=<dir> sets path to openssl installation
 
862
--with-df-command=<syntax> sets syntax for df
 
863
--with-ping-command=<syntax> sets syntax for ping
 
864
 
 
865
Some influential environment variables:
 
866
  CC          C compiler command
 
867
  CFLAGS      C compiler flags
 
868
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
869
              nonstandard directory <lib dir>
 
870
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
871
              headers in a nonstandard directory <include dir>
 
872
  CPP         C preprocessor
 
873
 
 
874
Use these variables to override the choices made by `configure' or to help
 
875
it to find libraries and programs with nonstandard names/locations.
 
876
 
 
877
_ACEOF
 
878
fi
 
879
 
 
880
if test "$ac_init_help" = "recursive"; then
 
881
  # If there are subdirs, report their specific --help.
 
882
  ac_popdir=`pwd`
 
883
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
884
    test -d $ac_dir || continue
 
885
    ac_builddir=.
 
886
 
 
887
if test "$ac_dir" != .; then
 
888
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
889
  # A "../" for each directory in $ac_dir_suffix.
 
890
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
891
else
 
892
  ac_dir_suffix= ac_top_builddir=
 
893
fi
 
894
 
 
895
case $srcdir in
 
896
  .)  # No --srcdir option.  We are building in place.
 
897
    ac_srcdir=.
 
898
    if test -z "$ac_top_builddir"; then
 
899
       ac_top_srcdir=.
 
900
    else
 
901
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
902
    fi ;;
 
903
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
904
    ac_srcdir=$srcdir$ac_dir_suffix;
 
905
    ac_top_srcdir=$srcdir ;;
 
906
  *) # Relative path.
 
907
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
908
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
909
esac
 
910
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
911
# absolute.
 
912
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
913
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
914
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
915
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
916
 
 
917
    cd $ac_dir
 
918
    # Check for guested configure; otherwise get Cygnus style configure.
 
919
    if test -f $ac_srcdir/configure.gnu; then
 
920
      echo
 
921
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
922
    elif test -f $ac_srcdir/configure; then
 
923
      echo
 
924
      $SHELL $ac_srcdir/configure  --help=recursive
 
925
    elif test -f $ac_srcdir/configure.ac ||
 
926
           test -f $ac_srcdir/configure.in; then
 
927
      echo
 
928
      $ac_configure --help
 
929
    else
 
930
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
931
    fi
 
932
    cd $ac_popdir
 
933
  done
 
934
fi
 
935
 
 
936
test -n "$ac_init_help" && exit 0
 
937
if $ac_init_version; then
 
938
  cat <<\_ACEOF
 
939
 
 
940
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
941
Free Software Foundation, Inc.
 
942
This configure script is free software; the Free Software Foundation
 
943
gives unlimited permission to copy, distribute and modify it.
 
944
_ACEOF
 
945
  exit 0
 
946
fi
 
947
exec 5>config.log
 
948
cat >&5 <<_ACEOF
 
949
This file contains any messages produced by compilers while
 
950
running configure, to aid debugging if configure makes a mistake.
 
951
 
 
952
It was created by $as_me, which was
 
953
generated by GNU Autoconf 2.57.  Invocation command line was
 
954
 
 
955
  $ $0 $@
 
956
 
 
957
_ACEOF
 
958
{
 
959
cat <<_ASUNAME
 
960
## --------- ##
 
961
## Platform. ##
 
962
## --------- ##
 
963
 
 
964
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
965
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
966
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
967
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
968
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
969
 
 
970
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
971
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
972
 
 
973
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
974
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
975
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
976
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
977
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
978
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
979
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
980
 
 
981
_ASUNAME
 
982
 
 
983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
984
for as_dir in $PATH
 
985
do
 
986
  IFS=$as_save_IFS
 
987
  test -z "$as_dir" && as_dir=.
 
988
  echo "PATH: $as_dir"
 
989
done
 
990
 
 
991
} >&5
 
992
 
 
993
cat >&5 <<_ACEOF
 
994
 
 
995
 
 
996
## ----------- ##
 
997
## Core tests. ##
 
998
## ----------- ##
 
999
 
 
1000
_ACEOF
 
1001
 
 
1002
 
 
1003
# Keep a trace of the command line.
 
1004
# Strip out --no-create and --no-recursion so they do not pile up.
 
1005
# Strip out --silent because we don't want to record it for future runs.
 
1006
# Also quote any args containing shell meta-characters.
 
1007
# Make two passes to allow for proper duplicate-argument suppression.
 
1008
ac_configure_args=
 
1009
ac_configure_args0=
 
1010
ac_configure_args1=
 
1011
ac_sep=
 
1012
ac_must_keep_next=false
 
1013
for ac_pass in 1 2
 
1014
do
 
1015
  for ac_arg
 
1016
  do
 
1017
    case $ac_arg in
 
1018
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1019
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1020
    | -silent | --silent | --silen | --sile | --sil)
 
1021
      continue ;;
 
1022
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1023
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1024
    esac
 
1025
    case $ac_pass in
 
1026
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1027
    2)
 
1028
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1029
      if test $ac_must_keep_next = true; then
 
1030
        ac_must_keep_next=false # Got value, back to normal.
 
1031
      else
 
1032
        case $ac_arg in
 
1033
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1034
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1035
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1036
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1037
            case "$ac_configure_args0 " in
 
1038
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1039
            esac
 
1040
            ;;
 
1041
          -* ) ac_must_keep_next=true ;;
 
1042
        esac
 
1043
      fi
 
1044
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1045
      # Get rid of the leading space.
 
1046
      ac_sep=" "
 
1047
      ;;
 
1048
    esac
 
1049
  done
 
1050
done
 
1051
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1052
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1053
 
 
1054
# When interrupted or exit'd, cleanup temporary files, and complete
 
1055
# config.log.  We remove comments because anyway the quotes in there
 
1056
# would cause problems or look ugly.
 
1057
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1058
# such as our DU 5.0 friend, will then `close' the trap.
 
1059
trap 'exit_status=$?
 
1060
  # Save into config.log some information that might help in debugging.
 
1061
  {
 
1062
    echo
 
1063
 
 
1064
    cat <<\_ASBOX
 
1065
## ---------------- ##
 
1066
## Cache variables. ##
 
1067
## ---------------- ##
 
1068
_ASBOX
 
1069
    echo
 
1070
    # The following way of writing the cache mishandles newlines in values,
 
1071
{
 
1072
  (set) 2>&1 |
 
1073
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1074
    *ac_space=\ *)
 
1075
      sed -n \
 
1076
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1077
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1078
      ;;
 
1079
    *)
 
1080
      sed -n \
 
1081
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1082
      ;;
 
1083
    esac;
 
1084
}
 
1085
    echo
 
1086
 
 
1087
    cat <<\_ASBOX
 
1088
## ----------------- ##
 
1089
## Output variables. ##
 
1090
## ----------------- ##
 
1091
_ASBOX
 
1092
    echo
 
1093
    for ac_var in $ac_subst_vars
 
1094
    do
 
1095
      eval ac_val=$`echo $ac_var`
 
1096
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1097
    done | sort
 
1098
    echo
 
1099
 
 
1100
    if test -n "$ac_subst_files"; then
 
1101
      cat <<\_ASBOX
 
1102
## ------------- ##
 
1103
## Output files. ##
 
1104
## ------------- ##
 
1105
_ASBOX
 
1106
      echo
 
1107
      for ac_var in $ac_subst_files
 
1108
      do
 
1109
        eval ac_val=$`echo $ac_var`
 
1110
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1111
      done | sort
 
1112
      echo
 
1113
    fi
 
1114
 
 
1115
    if test -s confdefs.h; then
 
1116
      cat <<\_ASBOX
 
1117
## ----------- ##
 
1118
## confdefs.h. ##
 
1119
## ----------- ##
 
1120
_ASBOX
 
1121
      echo
 
1122
      sed "/^$/d" confdefs.h | sort
 
1123
      echo
 
1124
    fi
 
1125
    test "$ac_signal" != 0 &&
 
1126
      echo "$as_me: caught signal $ac_signal"
 
1127
    echo "$as_me: exit $exit_status"
 
1128
  } >&5
 
1129
  rm -f core core.* *.core &&
 
1130
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1131
    exit $exit_status
 
1132
     ' 0
 
1133
for ac_signal in 1 2 13 15; do
 
1134
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1135
done
 
1136
ac_signal=0
 
1137
 
 
1138
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1139
rm -rf conftest* confdefs.h
 
1140
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1141
echo >confdefs.h
 
1142
 
 
1143
# Predefined preprocessor variables.
 
1144
 
 
1145
cat >>confdefs.h <<_ACEOF
 
1146
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1147
_ACEOF
 
1148
 
 
1149
 
 
1150
cat >>confdefs.h <<_ACEOF
 
1151
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1152
_ACEOF
 
1153
 
 
1154
 
 
1155
cat >>confdefs.h <<_ACEOF
 
1156
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1157
_ACEOF
 
1158
 
 
1159
 
 
1160
cat >>confdefs.h <<_ACEOF
 
1161
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1162
_ACEOF
 
1163
 
 
1164
 
 
1165
cat >>confdefs.h <<_ACEOF
 
1166
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1167
_ACEOF
 
1168
 
 
1169
 
 
1170
# Let the site file select an alternate cache file if it wants to.
 
1171
# Prefer explicitly selected file to automatically selected ones.
 
1172
if test -z "$CONFIG_SITE"; then
 
1173
  if test "x$prefix" != xNONE; then
 
1174
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1175
  else
 
1176
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1177
  fi
 
1178
fi
 
1179
for ac_site_file in $CONFIG_SITE; do
 
1180
  if test -r "$ac_site_file"; then
 
1181
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1182
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1183
    sed 's/^/| /' "$ac_site_file" >&5
 
1184
    . "$ac_site_file"
 
1185
  fi
 
1186
done
 
1187
 
 
1188
if test -r "$cache_file"; then
 
1189
  # Some versions of bash will fail to source /dev/null (special
 
1190
  # files actually), so we avoid doing that.
 
1191
  if test -f "$cache_file"; then
 
1192
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1193
echo "$as_me: loading cache $cache_file" >&6;}
 
1194
    case $cache_file in
 
1195
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1196
      *)                      . ./$cache_file;;
 
1197
    esac
 
1198
  fi
 
1199
else
 
1200
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1201
echo "$as_me: creating cache $cache_file" >&6;}
 
1202
  >$cache_file
 
1203
fi
 
1204
 
 
1205
# Check that the precious variables saved in the cache have kept the same
 
1206
# value.
 
1207
ac_cache_corrupted=false
 
1208
for ac_var in `(set) 2>&1 |
 
1209
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1210
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1211
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1212
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1213
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1214
  case $ac_old_set,$ac_new_set in
 
1215
    set,)
 
1216
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1217
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1218
      ac_cache_corrupted=: ;;
 
1219
    ,set)
 
1220
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1221
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1222
      ac_cache_corrupted=: ;;
 
1223
    ,);;
 
1224
    *)
 
1225
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1226
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1227
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1228
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1229
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1230
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1231
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1232
        ac_cache_corrupted=:
 
1233
      fi;;
 
1234
  esac
 
1235
  # Pass precious variables to config.status.
 
1236
  if test "$ac_new_set" = set; then
 
1237
    case $ac_new_val in
 
1238
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1239
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1240
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1241
    esac
 
1242
    case " $ac_configure_args " in
 
1243
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1244
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1245
    esac
 
1246
  fi
 
1247
done
 
1248
if $ac_cache_corrupted; then
 
1249
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1250
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1251
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1252
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1253
   { (exit 1); exit 1; }; }
 
1254
fi
 
1255
 
 
1256
ac_ext=c
 
1257
ac_cpp='$CPP $CPPFLAGS'
 
1258
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1259
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1260
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1261
 
 
1262
 
 
1263
 
 
1264
 
 
1265
 
 
1266
 
 
1267
 
 
1268
 
 
1269
 
 
1270
 
 
1271
 
 
1272
 
 
1273
 
 
1274
 
 
1275
 
 
1276
 
 
1277
 
 
1278
 
 
1279
 
 
1280
VER=1.3.1
 
1281
REL=1
 
1282
 
 
1283
 
 
1284
PACKAGE_VERSION="${VER}"
 
1285
 
 
1286
PACKAGE_RELEASE="${REL}"
 
1287
 
 
1288
am__api_version="1.6"
 
1289
ac_aux_dir=
 
1290
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1291
  if test -f $ac_dir/install-sh; then
 
1292
    ac_aux_dir=$ac_dir
 
1293
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1294
    break
 
1295
  elif test -f $ac_dir/install.sh; then
 
1296
    ac_aux_dir=$ac_dir
 
1297
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1298
    break
 
1299
  elif test -f $ac_dir/shtool; then
 
1300
    ac_aux_dir=$ac_dir
 
1301
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1302
    break
 
1303
  fi
 
1304
done
 
1305
if test -z "$ac_aux_dir"; then
 
1306
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1307
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1308
   { (exit 1); exit 1; }; }
 
1309
fi
 
1310
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1311
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1312
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1313
 
 
1314
# Find a good install program.  We prefer a C program (faster),
 
1315
# so one script is as good as another.  But avoid the broken or
 
1316
# incompatible versions:
 
1317
# SysV /etc/install, /usr/sbin/install
 
1318
# SunOS /usr/etc/install
 
1319
# IRIX /sbin/install
 
1320
# AIX /bin/install
 
1321
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1322
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1323
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1324
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1325
# ./install, which can be erroneously created by make from ./install.sh.
 
1326
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1327
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1328
if test -z "$INSTALL"; then
 
1329
if test "${ac_cv_path_install+set}" = set; then
 
1330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1331
else
 
1332
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1333
for as_dir in $PATH
 
1334
do
 
1335
  IFS=$as_save_IFS
 
1336
  test -z "$as_dir" && as_dir=.
 
1337
  # Account for people who put trailing slashes in PATH elements.
 
1338
case $as_dir/ in
 
1339
  ./ | .// | /cC/* | \
 
1340
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1341
  /usr/ucb/* ) ;;
 
1342
  *)
 
1343
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1344
    # Don't use installbsd from OSF since it installs stuff as root
 
1345
    # by default.
 
1346
    for ac_prog in ginstall scoinst install; do
 
1347
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1348
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1349
          if test $ac_prog = install &&
 
1350
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1351
            # AIX install.  It has an incompatible calling convention.
 
1352
            :
 
1353
          elif test $ac_prog = install &&
 
1354
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1355
            # program-specific install script used by HP pwplus--don't use.
 
1356
            :
 
1357
          else
 
1358
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1359
            break 3
 
1360
          fi
 
1361
        fi
 
1362
      done
 
1363
    done
 
1364
    ;;
 
1365
esac
 
1366
done
 
1367
 
 
1368
 
 
1369
fi
 
1370
  if test "${ac_cv_path_install+set}" = set; then
 
1371
    INSTALL=$ac_cv_path_install
 
1372
  else
 
1373
    # As a last resort, use the slow shell script.  We don't cache a
 
1374
    # path for INSTALL within a source directory, because that will
 
1375
    # break other packages using the cache if that directory is
 
1376
    # removed, or if the path is relative.
 
1377
    INSTALL=$ac_install_sh
 
1378
  fi
 
1379
fi
 
1380
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1381
echo "${ECHO_T}$INSTALL" >&6
 
1382
 
 
1383
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1384
# It thinks the first close brace ends the variable substitution.
 
1385
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1386
 
 
1387
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1388
 
 
1389
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1390
 
 
1391
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1392
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1393
# Just in case
 
1394
sleep 1
 
1395
echo timestamp > conftest.file
 
1396
# Do `set' in a subshell so we don't clobber the current shell's
 
1397
# arguments.  Must try -L first in case configure is actually a
 
1398
# symlink; some systems play weird games with the mod time of symlinks
 
1399
# (eg FreeBSD returns the mod time of the symlink's containing
 
1400
# directory).
 
1401
if (
 
1402
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1403
   if test "$*" = "X"; then
 
1404
      # -L didn't work.
 
1405
      set X `ls -t $srcdir/configure conftest.file`
 
1406
   fi
 
1407
   rm -f conftest.file
 
1408
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1409
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1410
 
 
1411
      # If neither matched, then we have a broken ls.  This can happen
 
1412
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1413
      # broken ls alias from the environment.  This has actually
 
1414
      # happened.  Such a system could not be considered "sane".
 
1415
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1416
alias in your environment" >&5
 
1417
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1418
alias in your environment" >&2;}
 
1419
   { (exit 1); exit 1; }; }
 
1420
   fi
 
1421
 
 
1422
   test "$2" = conftest.file
 
1423
   )
 
1424
then
 
1425
   # Ok.
 
1426
   :
 
1427
else
 
1428
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1429
Check your system clock" >&5
 
1430
echo "$as_me: error: newly created file is older than distributed files!
 
1431
Check your system clock" >&2;}
 
1432
   { (exit 1); exit 1; }; }
 
1433
fi
 
1434
echo "$as_me:$LINENO: result: yes" >&5
 
1435
echo "${ECHO_T}yes" >&6
 
1436
test "$program_prefix" != NONE &&
 
1437
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1438
# Use a double $ so make ignores it.
 
1439
test "$program_suffix" != NONE &&
 
1440
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1441
# Double any \ or $.  echo might interpret backslashes.
 
1442
# By default was `s,x,x', remove it if useless.
 
1443
cat <<\_ACEOF >conftest.sed
 
1444
s/[\\$]/&&/g;s/;s,x,x,$//
 
1445
_ACEOF
 
1446
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1447
rm conftest.sed
 
1448
 
 
1449
 
 
1450
# expand $ac_aux_dir to an absolute path
 
1451
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1452
 
 
1453
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1454
# Use eval to expand $SHELL
 
1455
if eval "$MISSING --run true"; then
 
1456
  am_missing_run="$MISSING --run "
 
1457
else
 
1458
  am_missing_run=
 
1459
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1460
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1461
fi
 
1462
 
 
1463
for ac_prog in gawk mawk nawk awk
 
1464
do
 
1465
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1466
set dummy $ac_prog; ac_word=$2
 
1467
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1468
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1469
if test "${ac_cv_prog_AWK+set}" = set; then
 
1470
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1471
else
 
1472
  if test -n "$AWK"; then
 
1473
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1474
else
 
1475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1476
for as_dir in $PATH
 
1477
do
 
1478
  IFS=$as_save_IFS
 
1479
  test -z "$as_dir" && as_dir=.
 
1480
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1481
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1482
    ac_cv_prog_AWK="$ac_prog"
 
1483
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1484
    break 2
 
1485
  fi
 
1486
done
 
1487
done
 
1488
 
 
1489
fi
 
1490
fi
 
1491
AWK=$ac_cv_prog_AWK
 
1492
if test -n "$AWK"; then
 
1493
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1494
echo "${ECHO_T}$AWK" >&6
 
1495
else
 
1496
  echo "$as_me:$LINENO: result: no" >&5
 
1497
echo "${ECHO_T}no" >&6
 
1498
fi
 
1499
 
 
1500
  test -n "$AWK" && break
 
1501
done
 
1502
 
 
1503
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1504
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1505
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1506
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1508
else
 
1509
  cat >conftest.make <<\_ACEOF
 
1510
all:
 
1511
        @echo 'ac_maketemp="$(MAKE)"'
 
1512
_ACEOF
 
1513
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1514
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1515
if test -n "$ac_maketemp"; then
 
1516
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1517
else
 
1518
  eval ac_cv_prog_make_${ac_make}_set=no
 
1519
fi
 
1520
rm -f conftest.make
 
1521
fi
 
1522
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1523
  echo "$as_me:$LINENO: result: yes" >&5
 
1524
echo "${ECHO_T}yes" >&6
 
1525
  SET_MAKE=
 
1526
else
 
1527
  echo "$as_me:$LINENO: result: no" >&5
 
1528
echo "${ECHO_T}no" >&6
 
1529
  SET_MAKE="MAKE=${MAKE-make}"
 
1530
fi
 
1531
 
 
1532
 # test to see if srcdir already configured
 
1533
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1534
   test -f $srcdir/config.status; then
 
1535
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1536
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1537
   { (exit 1); exit 1; }; }
 
1538
fi
 
1539
 
 
1540
# Define the identity of the package.
 
1541
 PACKAGE=nagios-plugins
 
1542
 VERSION=${PACKAGE_VERSION}
 
1543
 
 
1544
 
 
1545
cat >>confdefs.h <<_ACEOF
 
1546
#define PACKAGE "$PACKAGE"
 
1547
_ACEOF
 
1548
 
 
1549
 
 
1550
cat >>confdefs.h <<_ACEOF
 
1551
#define VERSION "$VERSION"
 
1552
_ACEOF
 
1553
 
 
1554
# Some tools Automake needs.
 
1555
 
 
1556
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1557
 
 
1558
 
 
1559
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1560
 
 
1561
 
 
1562
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1563
 
 
1564
 
 
1565
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1566
 
 
1567
 
 
1568
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1569
 
 
1570
 
 
1571
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1572
 
 
1573
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1574
 
 
1575
# Installed binaries are usually stripped using `strip' when the user
 
1576
# run `make install-strip'.  However `strip' might not be the right
 
1577
# tool to use in cross-compilation environments, therefore Automake
 
1578
# will honor the `STRIP' environment variable to overrule this program.
 
1579
if test "$cross_compiling" != no; then
 
1580
  if test -n "$ac_tool_prefix"; then
 
1581
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1582
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1583
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1585
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1586
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1587
else
 
1588
  if test -n "$STRIP"; then
 
1589
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1590
else
 
1591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1592
for as_dir in $PATH
 
1593
do
 
1594
  IFS=$as_save_IFS
 
1595
  test -z "$as_dir" && as_dir=.
 
1596
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1597
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1598
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1599
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1600
    break 2
 
1601
  fi
 
1602
done
 
1603
done
 
1604
 
 
1605
fi
 
1606
fi
 
1607
STRIP=$ac_cv_prog_STRIP
 
1608
if test -n "$STRIP"; then
 
1609
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1610
echo "${ECHO_T}$STRIP" >&6
 
1611
else
 
1612
  echo "$as_me:$LINENO: result: no" >&5
 
1613
echo "${ECHO_T}no" >&6
 
1614
fi
 
1615
 
 
1616
fi
 
1617
if test -z "$ac_cv_prog_STRIP"; then
 
1618
  ac_ct_STRIP=$STRIP
 
1619
  # Extract the first word of "strip", so it can be a program name with args.
 
1620
set dummy strip; ac_word=$2
 
1621
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1623
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1625
else
 
1626
  if test -n "$ac_ct_STRIP"; then
 
1627
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1628
else
 
1629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1630
for as_dir in $PATH
 
1631
do
 
1632
  IFS=$as_save_IFS
 
1633
  test -z "$as_dir" && as_dir=.
 
1634
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1635
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1636
    ac_cv_prog_ac_ct_STRIP="strip"
 
1637
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1638
    break 2
 
1639
  fi
 
1640
done
 
1641
done
 
1642
 
 
1643
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1644
fi
 
1645
fi
 
1646
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1647
if test -n "$ac_ct_STRIP"; then
 
1648
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1649
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1650
else
 
1651
  echo "$as_me:$LINENO: result: no" >&5
 
1652
echo "${ECHO_T}no" >&6
 
1653
fi
 
1654
 
 
1655
  STRIP=$ac_ct_STRIP
 
1656
else
 
1657
  STRIP="$ac_cv_prog_STRIP"
 
1658
fi
 
1659
 
 
1660
fi
 
1661
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1662
 
 
1663
# We need awk for the "check" target.  The system "awk" is bad on
 
1664
# some platforms.
 
1665
 
 
1666
 
 
1667
 
 
1668
# Add the stamp file to the list of files AC keeps track of,
 
1669
# along with our hook.
 
1670
          ac_config_headers="$ac_config_headers plugins/config.h"
 
1671
 
 
1672
# Add the stamp file to the list of files AC keeps track of,
 
1673
# along with our hook.
 
1674
          ac_config_headers="$ac_config_headers plugins/common.h"
 
1675
 
 
1676
# Add the stamp file to the list of files AC keeps track of,
 
1677
# along with our hook.
 
1678
          ac_config_headers="$ac_config_headers plugins/version.h"
 
1679
 
 
1680
# Add the stamp file to the list of files AC keeps track of,
 
1681
# along with our hook.
 
1682
          ac_config_headers="$ac_config_headers plugins/netutils.h"
 
1683
 
 
1684
# Add the stamp file to the list of files AC keeps track of,
 
1685
# along with our hook.
 
1686
          ac_config_headers="$ac_config_headers plugins/utils.h"
 
1687
 
 
1688
# Add the stamp file to the list of files AC keeps track of,
 
1689
# along with our hook.
 
1690
          ac_config_headers="$ac_config_headers plugins/popen.h"
 
1691
 
 
1692
 
 
1693
 
 
1694
 
 
1695
 
 
1696
 
 
1697
 
 
1698
# Find a good install program.  We prefer a C program (faster),
 
1699
# so one script is as good as another.  But avoid the broken or
 
1700
# incompatible versions:
 
1701
# SysV /etc/install, /usr/sbin/install
 
1702
# SunOS /usr/etc/install
 
1703
# IRIX /sbin/install
 
1704
# AIX /bin/install
 
1705
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1706
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1707
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1708
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1709
# ./install, which can be erroneously created by make from ./install.sh.
 
1710
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1711
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1712
if test -z "$INSTALL"; then
 
1713
if test "${ac_cv_path_install+set}" = set; then
 
1714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1715
else
 
1716
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1717
for as_dir in $PATH
 
1718
do
 
1719
  IFS=$as_save_IFS
 
1720
  test -z "$as_dir" && as_dir=.
 
1721
  # Account for people who put trailing slashes in PATH elements.
 
1722
case $as_dir/ in
 
1723
  ./ | .// | /cC/* | \
 
1724
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1725
  /usr/ucb/* ) ;;
 
1726
  *)
 
1727
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1728
    # Don't use installbsd from OSF since it installs stuff as root
 
1729
    # by default.
 
1730
    for ac_prog in ginstall scoinst install; do
 
1731
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1732
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1733
          if test $ac_prog = install &&
 
1734
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1735
            # AIX install.  It has an incompatible calling convention.
 
1736
            :
 
1737
          elif test $ac_prog = install &&
 
1738
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1739
            # program-specific install script used by HP pwplus--don't use.
 
1740
            :
 
1741
          else
 
1742
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1743
            break 3
 
1744
          fi
 
1745
        fi
 
1746
      done
 
1747
    done
 
1748
    ;;
 
1749
esac
 
1750
done
 
1751
 
 
1752
 
 
1753
fi
 
1754
  if test "${ac_cv_path_install+set}" = set; then
 
1755
    INSTALL=$ac_cv_path_install
 
1756
  else
 
1757
    # As a last resort, use the slow shell script.  We don't cache a
 
1758
    # path for INSTALL within a source directory, because that will
 
1759
    # break other packages using the cache if that directory is
 
1760
    # removed, or if the path is relative.
 
1761
    INSTALL=$ac_install_sh
 
1762
  fi
 
1763
fi
 
1764
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1765
echo "${ECHO_T}$INSTALL" >&6
 
1766
 
 
1767
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1768
# It thinks the first close brace ends the variable substitution.
 
1769
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1770
 
 
1771
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1772
 
 
1773
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1774
 
 
1775
 
 
1776
 
 
1777
ac_ext=c
 
1778
ac_cpp='$CPP $CPPFLAGS'
 
1779
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1780
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1781
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1782
if test -n "$ac_tool_prefix"; then
 
1783
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1784
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1785
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1787
if test "${ac_cv_prog_CC+set}" = set; then
 
1788
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1789
else
 
1790
  if test -n "$CC"; then
 
1791
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1792
else
 
1793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1794
for as_dir in $PATH
 
1795
do
 
1796
  IFS=$as_save_IFS
 
1797
  test -z "$as_dir" && as_dir=.
 
1798
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1799
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1800
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1801
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1802
    break 2
 
1803
  fi
 
1804
done
 
1805
done
 
1806
 
 
1807
fi
 
1808
fi
 
1809
CC=$ac_cv_prog_CC
 
1810
if test -n "$CC"; then
 
1811
  echo "$as_me:$LINENO: result: $CC" >&5
 
1812
echo "${ECHO_T}$CC" >&6
 
1813
else
 
1814
  echo "$as_me:$LINENO: result: no" >&5
 
1815
echo "${ECHO_T}no" >&6
 
1816
fi
 
1817
 
 
1818
fi
 
1819
if test -z "$ac_cv_prog_CC"; then
 
1820
  ac_ct_CC=$CC
 
1821
  # Extract the first word of "gcc", so it can be a program name with args.
 
1822
set dummy gcc; ac_word=$2
 
1823
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1824
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1825
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1827
else
 
1828
  if test -n "$ac_ct_CC"; then
 
1829
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1830
else
 
1831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1832
for as_dir in $PATH
 
1833
do
 
1834
  IFS=$as_save_IFS
 
1835
  test -z "$as_dir" && as_dir=.
 
1836
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1837
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1838
    ac_cv_prog_ac_ct_CC="gcc"
 
1839
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1840
    break 2
 
1841
  fi
 
1842
done
 
1843
done
 
1844
 
 
1845
fi
 
1846
fi
 
1847
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1848
if test -n "$ac_ct_CC"; then
 
1849
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1850
echo "${ECHO_T}$ac_ct_CC" >&6
 
1851
else
 
1852
  echo "$as_me:$LINENO: result: no" >&5
 
1853
echo "${ECHO_T}no" >&6
 
1854
fi
 
1855
 
 
1856
  CC=$ac_ct_CC
 
1857
else
 
1858
  CC="$ac_cv_prog_CC"
 
1859
fi
 
1860
 
 
1861
if test -z "$CC"; then
 
1862
  if test -n "$ac_tool_prefix"; then
 
1863
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1864
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1865
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1866
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1867
if test "${ac_cv_prog_CC+set}" = set; then
 
1868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1869
else
 
1870
  if test -n "$CC"; then
 
1871
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1872
else
 
1873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1874
for as_dir in $PATH
 
1875
do
 
1876
  IFS=$as_save_IFS
 
1877
  test -z "$as_dir" && as_dir=.
 
1878
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1879
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1880
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1881
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1882
    break 2
 
1883
  fi
 
1884
done
 
1885
done
 
1886
 
 
1887
fi
 
1888
fi
 
1889
CC=$ac_cv_prog_CC
 
1890
if test -n "$CC"; then
 
1891
  echo "$as_me:$LINENO: result: $CC" >&5
 
1892
echo "${ECHO_T}$CC" >&6
 
1893
else
 
1894
  echo "$as_me:$LINENO: result: no" >&5
 
1895
echo "${ECHO_T}no" >&6
 
1896
fi
 
1897
 
 
1898
fi
 
1899
if test -z "$ac_cv_prog_CC"; then
 
1900
  ac_ct_CC=$CC
 
1901
  # Extract the first word of "cc", so it can be a program name with args.
 
1902
set dummy cc; ac_word=$2
 
1903
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1905
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1907
else
 
1908
  if test -n "$ac_ct_CC"; then
 
1909
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1910
else
 
1911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1912
for as_dir in $PATH
 
1913
do
 
1914
  IFS=$as_save_IFS
 
1915
  test -z "$as_dir" && as_dir=.
 
1916
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1917
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1918
    ac_cv_prog_ac_ct_CC="cc"
 
1919
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1920
    break 2
 
1921
  fi
 
1922
done
 
1923
done
 
1924
 
 
1925
fi
 
1926
fi
 
1927
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1928
if test -n "$ac_ct_CC"; then
 
1929
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1930
echo "${ECHO_T}$ac_ct_CC" >&6
 
1931
else
 
1932
  echo "$as_me:$LINENO: result: no" >&5
 
1933
echo "${ECHO_T}no" >&6
 
1934
fi
 
1935
 
 
1936
  CC=$ac_ct_CC
 
1937
else
 
1938
  CC="$ac_cv_prog_CC"
 
1939
fi
 
1940
 
 
1941
fi
 
1942
if test -z "$CC"; then
 
1943
  # Extract the first word of "cc", so it can be a program name with args.
 
1944
set dummy cc; ac_word=$2
 
1945
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1946
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1947
if test "${ac_cv_prog_CC+set}" = set; then
 
1948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1949
else
 
1950
  if test -n "$CC"; then
 
1951
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1952
else
 
1953
  ac_prog_rejected=no
 
1954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1955
for as_dir in $PATH
 
1956
do
 
1957
  IFS=$as_save_IFS
 
1958
  test -z "$as_dir" && as_dir=.
 
1959
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1960
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1961
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1962
       ac_prog_rejected=yes
 
1963
       continue
 
1964
     fi
 
1965
    ac_cv_prog_CC="cc"
 
1966
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1967
    break 2
 
1968
  fi
 
1969
done
 
1970
done
 
1971
 
 
1972
if test $ac_prog_rejected = yes; then
 
1973
  # We found a bogon in the path, so make sure we never use it.
 
1974
  set dummy $ac_cv_prog_CC
 
1975
  shift
 
1976
  if test $# != 0; then
 
1977
    # We chose a different compiler from the bogus one.
 
1978
    # However, it has the same basename, so the bogon will be chosen
 
1979
    # first if we set CC to just the basename; use the full file name.
 
1980
    shift
 
1981
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1982
  fi
 
1983
fi
 
1984
fi
 
1985
fi
 
1986
CC=$ac_cv_prog_CC
 
1987
if test -n "$CC"; then
 
1988
  echo "$as_me:$LINENO: result: $CC" >&5
 
1989
echo "${ECHO_T}$CC" >&6
 
1990
else
 
1991
  echo "$as_me:$LINENO: result: no" >&5
 
1992
echo "${ECHO_T}no" >&6
 
1993
fi
 
1994
 
 
1995
fi
 
1996
if test -z "$CC"; then
 
1997
  if test -n "$ac_tool_prefix"; then
 
1998
  for ac_prog in cl
 
1999
  do
 
2000
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2001
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2002
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2004
if test "${ac_cv_prog_CC+set}" = set; then
 
2005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2006
else
 
2007
  if test -n "$CC"; then
 
2008
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2009
else
 
2010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2011
for as_dir in $PATH
 
2012
do
 
2013
  IFS=$as_save_IFS
 
2014
  test -z "$as_dir" && as_dir=.
 
2015
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2016
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2017
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2018
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2019
    break 2
 
2020
  fi
 
2021
done
 
2022
done
 
2023
 
 
2024
fi
 
2025
fi
 
2026
CC=$ac_cv_prog_CC
 
2027
if test -n "$CC"; then
 
2028
  echo "$as_me:$LINENO: result: $CC" >&5
 
2029
echo "${ECHO_T}$CC" >&6
 
2030
else
 
2031
  echo "$as_me:$LINENO: result: no" >&5
 
2032
echo "${ECHO_T}no" >&6
 
2033
fi
 
2034
 
 
2035
    test -n "$CC" && break
 
2036
  done
 
2037
fi
 
2038
if test -z "$CC"; then
 
2039
  ac_ct_CC=$CC
 
2040
  for ac_prog in cl
 
2041
do
 
2042
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2043
set dummy $ac_prog; ac_word=$2
 
2044
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2045
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2046
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2048
else
 
2049
  if test -n "$ac_ct_CC"; then
 
2050
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2051
else
 
2052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2053
for as_dir in $PATH
 
2054
do
 
2055
  IFS=$as_save_IFS
 
2056
  test -z "$as_dir" && as_dir=.
 
2057
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2058
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2059
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2060
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2061
    break 2
 
2062
  fi
 
2063
done
 
2064
done
 
2065
 
 
2066
fi
 
2067
fi
 
2068
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2069
if test -n "$ac_ct_CC"; then
 
2070
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2071
echo "${ECHO_T}$ac_ct_CC" >&6
 
2072
else
 
2073
  echo "$as_me:$LINENO: result: no" >&5
 
2074
echo "${ECHO_T}no" >&6
 
2075
fi
 
2076
 
 
2077
  test -n "$ac_ct_CC" && break
 
2078
done
 
2079
 
 
2080
  CC=$ac_ct_CC
 
2081
fi
 
2082
 
 
2083
fi
 
2084
 
 
2085
 
 
2086
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2087
See \`config.log' for more details." >&5
 
2088
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2089
See \`config.log' for more details." >&2;}
 
2090
   { (exit 1); exit 1; }; }
 
2091
 
 
2092
# Provide some information about the compiler.
 
2093
echo "$as_me:$LINENO:" \
 
2094
     "checking for C compiler version" >&5
 
2095
ac_compiler=`set X $ac_compile; echo $2`
 
2096
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2097
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2098
  ac_status=$?
 
2099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2100
  (exit $ac_status); }
 
2101
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2102
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2103
  ac_status=$?
 
2104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2105
  (exit $ac_status); }
 
2106
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2107
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2108
  ac_status=$?
 
2109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2110
  (exit $ac_status); }
 
2111
 
 
2112
cat >conftest.$ac_ext <<_ACEOF
 
2113
#line $LINENO "configure"
 
2114
/* confdefs.h.  */
 
2115
_ACEOF
 
2116
cat confdefs.h >>conftest.$ac_ext
 
2117
cat >>conftest.$ac_ext <<_ACEOF
 
2118
/* end confdefs.h.  */
 
2119
 
 
2120
int
 
2121
main ()
 
2122
{
 
2123
 
 
2124
  ;
 
2125
  return 0;
 
2126
}
 
2127
_ACEOF
 
2128
ac_clean_files_save=$ac_clean_files
 
2129
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2130
# Try to create an executable without -o first, disregard a.out.
 
2131
# It will help us diagnose broken compilers, and finding out an intuition
 
2132
# of exeext.
 
2133
echo "$as_me:$LINENO: checking for C compiler default output" >&5
 
2134
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2135
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2136
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2137
  (eval $ac_link_default) 2>&5
 
2138
  ac_status=$?
 
2139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2140
  (exit $ac_status); }; then
 
2141
  # Find the output, starting from the most likely.  This scheme is
 
2142
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2143
# resort.
 
2144
 
 
2145
# Be careful to initialize this variable, since it used to be cached.
 
2146
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2147
ac_cv_exeext=
 
2148
# b.out is created by i960 compilers.
 
2149
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2150
do
 
2151
  test -f "$ac_file" || continue
 
2152
  case $ac_file in
 
2153
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2154
        ;;
 
2155
    conftest.$ac_ext )
 
2156
        # This is the source file.
 
2157
        ;;
 
2158
    [ab].out )
 
2159
        # We found the default executable, but exeext='' is most
 
2160
        # certainly right.
 
2161
        break;;
 
2162
    *.* )
 
2163
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2164
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2165
        # but it would be cool to find out if it's true.  Does anybody
 
2166
        # maintain Libtool? --akim.
 
2167
        export ac_cv_exeext
 
2168
        break;;
 
2169
    * )
 
2170
        break;;
 
2171
  esac
 
2172
done
 
2173
else
 
2174
  echo "$as_me: failed program was:" >&5
 
2175
sed 's/^/| /' conftest.$ac_ext >&5
 
2176
 
 
2177
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2178
See \`config.log' for more details." >&5
 
2179
echo "$as_me: error: C compiler cannot create executables
 
2180
See \`config.log' for more details." >&2;}
 
2181
   { (exit 77); exit 77; }; }
 
2182
fi
 
2183
 
 
2184
ac_exeext=$ac_cv_exeext
 
2185
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2186
echo "${ECHO_T}$ac_file" >&6
 
2187
 
 
2188
# Check the compiler produces executables we can run.  If not, either
 
2189
# the compiler is broken, or we cross compile.
 
2190
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2191
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2192
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2193
# If not cross compiling, check that we can run a simple program.
 
2194
if test "$cross_compiling" != yes; then
 
2195
  if { ac_try='./$ac_file'
 
2196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2197
  (eval $ac_try) 2>&5
 
2198
  ac_status=$?
 
2199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2200
  (exit $ac_status); }; }; then
 
2201
    cross_compiling=no
 
2202
  else
 
2203
    if test "$cross_compiling" = maybe; then
 
2204
        cross_compiling=yes
 
2205
    else
 
2206
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2207
If you meant to cross compile, use \`--host'.
 
2208
See \`config.log' for more details." >&5
 
2209
echo "$as_me: error: cannot run C compiled programs.
 
2210
If you meant to cross compile, use \`--host'.
 
2211
See \`config.log' for more details." >&2;}
 
2212
   { (exit 1); exit 1; }; }
 
2213
    fi
 
2214
  fi
 
2215
fi
 
2216
echo "$as_me:$LINENO: result: yes" >&5
 
2217
echo "${ECHO_T}yes" >&6
 
2218
 
 
2219
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2220
ac_clean_files=$ac_clean_files_save
 
2221
# Check the compiler produces executables we can run.  If not, either
 
2222
# the compiler is broken, or we cross compile.
 
2223
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2224
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2225
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2226
echo "${ECHO_T}$cross_compiling" >&6
 
2227
 
 
2228
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2229
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2231
  (eval $ac_link) 2>&5
 
2232
  ac_status=$?
 
2233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2234
  (exit $ac_status); }; then
 
2235
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2236
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2237
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2238
# `rm'.
 
2239
for ac_file in conftest.exe conftest conftest.*; do
 
2240
  test -f "$ac_file" || continue
 
2241
  case $ac_file in
 
2242
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2243
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2244
          export ac_cv_exeext
 
2245
          break;;
 
2246
    * ) break;;
 
2247
  esac
 
2248
done
 
2249
else
 
2250
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2251
See \`config.log' for more details." >&5
 
2252
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2253
See \`config.log' for more details." >&2;}
 
2254
   { (exit 1); exit 1; }; }
 
2255
fi
 
2256
 
 
2257
rm -f conftest$ac_cv_exeext
 
2258
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2259
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2260
 
 
2261
rm -f conftest.$ac_ext
 
2262
EXEEXT=$ac_cv_exeext
 
2263
ac_exeext=$EXEEXT
 
2264
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2265
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2266
if test "${ac_cv_objext+set}" = set; then
 
2267
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2268
else
 
2269
  cat >conftest.$ac_ext <<_ACEOF
 
2270
#line $LINENO "configure"
 
2271
/* confdefs.h.  */
 
2272
_ACEOF
 
2273
cat confdefs.h >>conftest.$ac_ext
 
2274
cat >>conftest.$ac_ext <<_ACEOF
 
2275
/* end confdefs.h.  */
 
2276
 
 
2277
int
 
2278
main ()
 
2279
{
 
2280
 
 
2281
  ;
 
2282
  return 0;
 
2283
}
 
2284
_ACEOF
 
2285
rm -f conftest.o conftest.obj
 
2286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2287
  (eval $ac_compile) 2>&5
 
2288
  ac_status=$?
 
2289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2290
  (exit $ac_status); }; then
 
2291
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2292
  case $ac_file in
 
2293
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2294
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2295
       break;;
 
2296
  esac
 
2297
done
 
2298
else
 
2299
  echo "$as_me: failed program was:" >&5
 
2300
sed 's/^/| /' conftest.$ac_ext >&5
 
2301
 
 
2302
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2303
See \`config.log' for more details." >&5
 
2304
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2305
See \`config.log' for more details." >&2;}
 
2306
   { (exit 1); exit 1; }; }
 
2307
fi
 
2308
 
 
2309
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2310
fi
 
2311
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2312
echo "${ECHO_T}$ac_cv_objext" >&6
 
2313
OBJEXT=$ac_cv_objext
 
2314
ac_objext=$OBJEXT
 
2315
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2316
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2317
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2319
else
 
2320
  cat >conftest.$ac_ext <<_ACEOF
 
2321
#line $LINENO "configure"
 
2322
/* confdefs.h.  */
 
2323
_ACEOF
 
2324
cat confdefs.h >>conftest.$ac_ext
 
2325
cat >>conftest.$ac_ext <<_ACEOF
 
2326
/* end confdefs.h.  */
 
2327
 
 
2328
int
 
2329
main ()
 
2330
{
 
2331
#ifndef __GNUC__
 
2332
       choke me
 
2333
#endif
 
2334
 
 
2335
  ;
 
2336
  return 0;
 
2337
}
 
2338
_ACEOF
 
2339
rm -f conftest.$ac_objext
 
2340
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2341
  (eval $ac_compile) 2>&5
 
2342
  ac_status=$?
 
2343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2344
  (exit $ac_status); } &&
 
2345
         { ac_try='test -s conftest.$ac_objext'
 
2346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2347
  (eval $ac_try) 2>&5
 
2348
  ac_status=$?
 
2349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2350
  (exit $ac_status); }; }; then
 
2351
  ac_compiler_gnu=yes
 
2352
else
 
2353
  echo "$as_me: failed program was:" >&5
 
2354
sed 's/^/| /' conftest.$ac_ext >&5
 
2355
 
 
2356
ac_compiler_gnu=no
 
2357
fi
 
2358
rm -f conftest.$ac_objext conftest.$ac_ext
 
2359
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2360
 
 
2361
fi
 
2362
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2363
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2364
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2365
ac_test_CFLAGS=${CFLAGS+set}
 
2366
ac_save_CFLAGS=$CFLAGS
 
2367
CFLAGS="-g"
 
2368
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2369
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2370
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2372
else
 
2373
  cat >conftest.$ac_ext <<_ACEOF
 
2374
#line $LINENO "configure"
 
2375
/* confdefs.h.  */
 
2376
_ACEOF
 
2377
cat confdefs.h >>conftest.$ac_ext
 
2378
cat >>conftest.$ac_ext <<_ACEOF
 
2379
/* end confdefs.h.  */
 
2380
 
 
2381
int
 
2382
main ()
 
2383
{
 
2384
 
 
2385
  ;
 
2386
  return 0;
 
2387
}
 
2388
_ACEOF
 
2389
rm -f conftest.$ac_objext
 
2390
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2391
  (eval $ac_compile) 2>&5
 
2392
  ac_status=$?
 
2393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2394
  (exit $ac_status); } &&
 
2395
         { ac_try='test -s conftest.$ac_objext'
 
2396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2397
  (eval $ac_try) 2>&5
 
2398
  ac_status=$?
 
2399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2400
  (exit $ac_status); }; }; then
 
2401
  ac_cv_prog_cc_g=yes
 
2402
else
 
2403
  echo "$as_me: failed program was:" >&5
 
2404
sed 's/^/| /' conftest.$ac_ext >&5
 
2405
 
 
2406
ac_cv_prog_cc_g=no
 
2407
fi
 
2408
rm -f conftest.$ac_objext conftest.$ac_ext
 
2409
fi
 
2410
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2411
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2412
if test "$ac_test_CFLAGS" = set; then
 
2413
  CFLAGS=$ac_save_CFLAGS
 
2414
elif test $ac_cv_prog_cc_g = yes; then
 
2415
  if test "$GCC" = yes; then
 
2416
    CFLAGS="-g -O2"
 
2417
  else
 
2418
    CFLAGS="-g"
 
2419
  fi
 
2420
else
 
2421
  if test "$GCC" = yes; then
 
2422
    CFLAGS="-O2"
 
2423
  else
 
2424
    CFLAGS=
 
2425
  fi
 
2426
fi
 
2427
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2428
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2429
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2431
else
 
2432
  ac_cv_prog_cc_stdc=no
 
2433
ac_save_CC=$CC
 
2434
cat >conftest.$ac_ext <<_ACEOF
 
2435
#line $LINENO "configure"
 
2436
/* confdefs.h.  */
 
2437
_ACEOF
 
2438
cat confdefs.h >>conftest.$ac_ext
 
2439
cat >>conftest.$ac_ext <<_ACEOF
 
2440
/* end confdefs.h.  */
 
2441
#include <stdarg.h>
 
2442
#include <stdio.h>
 
2443
#include <sys/types.h>
 
2444
#include <sys/stat.h>
 
2445
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2446
struct buf { int x; };
 
2447
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2448
static char *e (p, i)
 
2449
     char **p;
 
2450
     int i;
 
2451
{
 
2452
  return p[i];
 
2453
}
 
2454
static char *f (char * (*g) (char **, int), char **p, ...)
 
2455
{
 
2456
  char *s;
 
2457
  va_list v;
 
2458
  va_start (v,p);
 
2459
  s = g (p, va_arg (v,int));
 
2460
  va_end (v);
 
2461
  return s;
 
2462
}
 
2463
int test (int i, double x);
 
2464
struct s1 {int (*f) (int a);};
 
2465
struct s2 {int (*f) (double a);};
 
2466
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2467
int argc;
 
2468
char **argv;
 
2469
int
 
2470
main ()
 
2471
{
 
2472
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2473
  ;
 
2474
  return 0;
 
2475
}
 
2476
_ACEOF
 
2477
# Don't try gcc -ansi; that turns off useful extensions and
 
2478
# breaks some systems' header files.
 
2479
# AIX                   -qlanglvl=ansi
 
2480
# Ultrix and OSF/1      -std1
 
2481
# HP-UX 10.20 and later -Ae
 
2482
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2483
# SVR4                  -Xc -D__EXTENSIONS__
 
2484
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2485
do
 
2486
  CC="$ac_save_CC $ac_arg"
 
2487
  rm -f conftest.$ac_objext
 
2488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2489
  (eval $ac_compile) 2>&5
 
2490
  ac_status=$?
 
2491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2492
  (exit $ac_status); } &&
 
2493
         { ac_try='test -s conftest.$ac_objext'
 
2494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2495
  (eval $ac_try) 2>&5
 
2496
  ac_status=$?
 
2497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2498
  (exit $ac_status); }; }; then
 
2499
  ac_cv_prog_cc_stdc=$ac_arg
 
2500
break
 
2501
else
 
2502
  echo "$as_me: failed program was:" >&5
 
2503
sed 's/^/| /' conftest.$ac_ext >&5
 
2504
 
 
2505
fi
 
2506
rm -f conftest.$ac_objext
 
2507
done
 
2508
rm -f conftest.$ac_ext conftest.$ac_objext
 
2509
CC=$ac_save_CC
 
2510
 
 
2511
fi
 
2512
 
 
2513
case "x$ac_cv_prog_cc_stdc" in
 
2514
  x|xno)
 
2515
    echo "$as_me:$LINENO: result: none needed" >&5
 
2516
echo "${ECHO_T}none needed" >&6 ;;
 
2517
  *)
 
2518
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2519
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2520
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2521
esac
 
2522
 
 
2523
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2524
# in C++ we need to declare it.  In case someone uses the same compiler
 
2525
# for both compiling C and C++ we need to have the C++ compiler decide
 
2526
# the declaration of exit, since it's the most demanding environment.
 
2527
cat >conftest.$ac_ext <<_ACEOF
 
2528
#ifndef __cplusplus
 
2529
  choke me
 
2530
#endif
 
2531
_ACEOF
 
2532
rm -f conftest.$ac_objext
 
2533
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2534
  (eval $ac_compile) 2>&5
 
2535
  ac_status=$?
 
2536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2537
  (exit $ac_status); } &&
 
2538
         { ac_try='test -s conftest.$ac_objext'
 
2539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2540
  (eval $ac_try) 2>&5
 
2541
  ac_status=$?
 
2542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2543
  (exit $ac_status); }; }; then
 
2544
  for ac_declaration in \
 
2545
   ''\
 
2546
   '#include <stdlib.h>' \
 
2547
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2548
   'extern "C" void std::exit (int); using std::exit;' \
 
2549
   'extern "C" void exit (int) throw ();' \
 
2550
   'extern "C" void exit (int);' \
 
2551
   'void exit (int);'
 
2552
do
 
2553
  cat >conftest.$ac_ext <<_ACEOF
 
2554
#line $LINENO "configure"
 
2555
/* confdefs.h.  */
 
2556
_ACEOF
 
2557
cat confdefs.h >>conftest.$ac_ext
 
2558
cat >>conftest.$ac_ext <<_ACEOF
 
2559
/* end confdefs.h.  */
 
2560
#include <stdlib.h>
 
2561
$ac_declaration
 
2562
int
 
2563
main ()
 
2564
{
 
2565
exit (42);
 
2566
  ;
 
2567
  return 0;
 
2568
}
 
2569
_ACEOF
 
2570
rm -f conftest.$ac_objext
 
2571
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2572
  (eval $ac_compile) 2>&5
 
2573
  ac_status=$?
 
2574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2575
  (exit $ac_status); } &&
 
2576
         { ac_try='test -s conftest.$ac_objext'
 
2577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2578
  (eval $ac_try) 2>&5
 
2579
  ac_status=$?
 
2580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2581
  (exit $ac_status); }; }; then
 
2582
  :
 
2583
else
 
2584
  echo "$as_me: failed program was:" >&5
 
2585
sed 's/^/| /' conftest.$ac_ext >&5
 
2586
 
 
2587
continue
 
2588
fi
 
2589
rm -f conftest.$ac_objext conftest.$ac_ext
 
2590
  cat >conftest.$ac_ext <<_ACEOF
 
2591
#line $LINENO "configure"
 
2592
/* confdefs.h.  */
 
2593
_ACEOF
 
2594
cat confdefs.h >>conftest.$ac_ext
 
2595
cat >>conftest.$ac_ext <<_ACEOF
 
2596
/* end confdefs.h.  */
 
2597
$ac_declaration
 
2598
int
 
2599
main ()
 
2600
{
 
2601
exit (42);
 
2602
  ;
 
2603
  return 0;
 
2604
}
 
2605
_ACEOF
 
2606
rm -f conftest.$ac_objext
 
2607
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2608
  (eval $ac_compile) 2>&5
 
2609
  ac_status=$?
 
2610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2611
  (exit $ac_status); } &&
 
2612
         { ac_try='test -s conftest.$ac_objext'
 
2613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2614
  (eval $ac_try) 2>&5
 
2615
  ac_status=$?
 
2616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2617
  (exit $ac_status); }; }; then
 
2618
  break
 
2619
else
 
2620
  echo "$as_me: failed program was:" >&5
 
2621
sed 's/^/| /' conftest.$ac_ext >&5
 
2622
 
 
2623
fi
 
2624
rm -f conftest.$ac_objext conftest.$ac_ext
 
2625
done
 
2626
rm -f conftest*
 
2627
if test -n "$ac_declaration"; then
 
2628
  echo '#ifdef __cplusplus' >>confdefs.h
 
2629
  echo $ac_declaration      >>confdefs.h
 
2630
  echo '#endif'             >>confdefs.h
 
2631
fi
 
2632
 
 
2633
else
 
2634
  echo "$as_me: failed program was:" >&5
 
2635
sed 's/^/| /' conftest.$ac_ext >&5
 
2636
 
 
2637
fi
 
2638
rm -f conftest.$ac_objext conftest.$ac_ext
 
2639
ac_ext=c
 
2640
ac_cpp='$CPP $CPPFLAGS'
 
2641
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2642
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2643
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2644
rm -f .deps 2>/dev/null
 
2645
mkdir .deps 2>/dev/null
 
2646
if test -d .deps; then
 
2647
  DEPDIR=.deps
 
2648
else
 
2649
  # MS-DOS does not allow filenames that begin with a dot.
 
2650
  DEPDIR=_deps
 
2651
fi
 
2652
rmdir .deps 2>/dev/null
 
2653
 
 
2654
 
 
2655
          ac_config_commands="$ac_config_commands depfiles"
 
2656
 
 
2657
 
 
2658
am_make=${MAKE-make}
 
2659
cat > confinc << 'END'
 
2660
doit:
 
2661
        @echo done
 
2662
END
 
2663
# If we don't find an include directive, just comment out the code.
 
2664
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2665
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2666
am__include="#"
 
2667
am__quote=
 
2668
_am_result=none
 
2669
# First try GNU make style include.
 
2670
echo "include confinc" > confmf
 
2671
# We grep out `Entering directory' and `Leaving directory'
 
2672
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2673
# In particular we don't look at `^make:' because GNU make might
 
2674
# be invoked under some other name (usually "gmake"), in which
 
2675
# case it prints its new name instead of `make'.
 
2676
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
2677
   am__include=include
 
2678
   am__quote=
 
2679
   _am_result=GNU
 
2680
fi
 
2681
# Now try BSD make style include.
 
2682
if test "$am__include" = "#"; then
 
2683
   echo '.include "confinc"' > confmf
 
2684
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2685
      am__include=.include
 
2686
      am__quote="\""
 
2687
      _am_result=BSD
 
2688
   fi
 
2689
fi
 
2690
 
 
2691
 
 
2692
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2693
echo "${ECHO_T}$_am_result" >&6
 
2694
rm -f confinc confmf
 
2695
 
 
2696
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2697
if test "${enable_dependency_tracking+set}" = set; then
 
2698
  enableval="$enable_dependency_tracking"
 
2699
 
 
2700
fi;
 
2701
if test "x$enable_dependency_tracking" != xno; then
 
2702
  am_depcomp="$ac_aux_dir/depcomp"
 
2703
  AMDEPBACKSLASH='\'
 
2704
fi
 
2705
 
 
2706
 
 
2707
if test "x$enable_dependency_tracking" != xno; then
 
2708
  AMDEP_TRUE=
 
2709
  AMDEP_FALSE='#'
 
2710
else
 
2711
  AMDEP_TRUE='#'
 
2712
  AMDEP_FALSE=
 
2713
fi
 
2714
 
 
2715
 
 
2716
 
 
2717
 
 
2718
depcc="$CC"   am_compiler_list=
 
2719
 
 
2720
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2721
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2722
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2724
else
 
2725
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2726
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2727
  # making bogus files that we don't know about and never remove.  For
 
2728
  # instance it was reported that on HP-UX the gcc test will end up
 
2729
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2730
  # in D'.
 
2731
  mkdir conftest.dir
 
2732
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2733
  # using a relative directory.
 
2734
  cp "$am_depcomp" conftest.dir
 
2735
  cd conftest.dir
 
2736
 
 
2737
  am_cv_CC_dependencies_compiler_type=none
 
2738
  if test "$am_compiler_list" = ""; then
 
2739
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2740
  fi
 
2741
  for depmode in $am_compiler_list; do
 
2742
    # We need to recreate these files for each test, as the compiler may
 
2743
    # overwrite some of them when testing with obscure command lines.
 
2744
    # This happens at least with the AIX C compiler.
 
2745
    echo '#include "conftest.h"' > conftest.c
 
2746
    echo 'int i;' > conftest.h
 
2747
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
2748
 
 
2749
    case $depmode in
 
2750
    nosideeffect)
 
2751
      # after this tag, mechanisms are not by side-effect, so they'll
 
2752
      # only be used when explicitly requested
 
2753
      if test "x$enable_dependency_tracking" = xyes; then
 
2754
        continue
 
2755
      else
 
2756
        break
 
2757
      fi
 
2758
      ;;
 
2759
    none) break ;;
 
2760
    esac
 
2761
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2762
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2763
    # handle `-M -o', and we need to detect this.
 
2764
    if depmode=$depmode \
 
2765
       source=conftest.c object=conftest.o \
 
2766
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
2767
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
2768
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
2769
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2770
      am_cv_CC_dependencies_compiler_type=$depmode
 
2771
      break
 
2772
    fi
 
2773
  done
 
2774
 
 
2775
  cd ..
 
2776
  rm -rf conftest.dir
 
2777
else
 
2778
  am_cv_CC_dependencies_compiler_type=none
 
2779
fi
 
2780
 
 
2781
fi
 
2782
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2783
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2784
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
2785
 
 
2786
 
 
2787
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2788
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
2789
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
2790
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2792
else
 
2793
  cat >conftest.make <<\_ACEOF
 
2794
all:
 
2795
        @echo 'ac_maketemp="$(MAKE)"'
 
2796
_ACEOF
 
2797
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2798
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
2799
if test -n "$ac_maketemp"; then
 
2800
  eval ac_cv_prog_make_${ac_make}_set=yes
 
2801
else
 
2802
  eval ac_cv_prog_make_${ac_make}_set=no
 
2803
fi
 
2804
rm -f conftest.make
 
2805
fi
 
2806
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
2807
  echo "$as_me:$LINENO: result: yes" >&5
 
2808
echo "${ECHO_T}yes" >&6
 
2809
  SET_MAKE=
 
2810
else
 
2811
  echo "$as_me:$LINENO: result: no" >&5
 
2812
echo "${ECHO_T}no" >&6
 
2813
  SET_MAKE="MAKE=${MAKE-make}"
 
2814
fi
 
2815
 
 
2816
for ac_prog in gawk mawk nawk awk
 
2817
do
 
2818
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2819
set dummy $ac_prog; ac_word=$2
 
2820
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2821
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2822
if test "${ac_cv_prog_AWK+set}" = set; then
 
2823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2824
else
 
2825
  if test -n "$AWK"; then
 
2826
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2827
else
 
2828
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2829
for as_dir in $PATH
 
2830
do
 
2831
  IFS=$as_save_IFS
 
2832
  test -z "$as_dir" && as_dir=.
 
2833
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2834
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2835
    ac_cv_prog_AWK="$ac_prog"
 
2836
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2837
    break 2
 
2838
  fi
 
2839
done
 
2840
done
 
2841
 
 
2842
fi
 
2843
fi
 
2844
AWK=$ac_cv_prog_AWK
 
2845
if test -n "$AWK"; then
 
2846
  echo "$as_me:$LINENO: result: $AWK" >&5
 
2847
echo "${ECHO_T}$AWK" >&6
 
2848
else
 
2849
  echo "$as_me:$LINENO: result: no" >&5
 
2850
echo "${ECHO_T}no" >&6
 
2851
fi
 
2852
 
 
2853
  test -n "$AWK" && break
 
2854
done
 
2855
 
 
2856
 
 
2857
saved_srcdir=$srcdir
 
2858
srcdir=$srcdir/lib
 
2859
test -f $srcdir/getloadavg.c \
 
2860
  || { { echo "$as_me:$LINENO: error: getloadavg.c is not in $srcdir" >&5
 
2861
echo "$as_me: error: getloadavg.c is not in $srcdir" >&2;}
 
2862
   { (exit 1); exit 1; }; }
 
2863
 
 
2864
ac_ext=c
 
2865
ac_cpp='$CPP $CPPFLAGS'
 
2866
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2867
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2868
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2869
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2870
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2871
# On Suns, sometimes $CPP names a directory.
 
2872
if test -n "$CPP" && test -d "$CPP"; then
 
2873
  CPP=
 
2874
fi
 
2875
if test -z "$CPP"; then
 
2876
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2878
else
 
2879
      # Double quotes because CPP needs to be expanded
 
2880
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2881
    do
 
2882
      ac_preproc_ok=false
 
2883
for ac_c_preproc_warn_flag in '' yes
 
2884
do
 
2885
  # Use a header file that comes with gcc, so configuring glibc
 
2886
  # with a fresh cross-compiler works.
 
2887
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2888
  # <limits.h> exists even on freestanding compilers.
 
2889
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2890
  # not just through cpp. "Syntax error" is here to catch this case.
 
2891
  cat >conftest.$ac_ext <<_ACEOF
 
2892
#line $LINENO "configure"
 
2893
/* confdefs.h.  */
 
2894
_ACEOF
 
2895
cat confdefs.h >>conftest.$ac_ext
 
2896
cat >>conftest.$ac_ext <<_ACEOF
 
2897
/* end confdefs.h.  */
 
2898
#ifdef __STDC__
 
2899
# include <limits.h>
 
2900
#else
 
2901
# include <assert.h>
 
2902
#endif
 
2903
                     Syntax error
 
2904
_ACEOF
 
2905
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2906
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2907
  ac_status=$?
 
2908
  grep -v '^ *+' conftest.er1 >conftest.err
 
2909
  rm -f conftest.er1
 
2910
  cat conftest.err >&5
 
2911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2912
  (exit $ac_status); } >/dev/null; then
 
2913
  if test -s conftest.err; then
 
2914
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2915
  else
 
2916
    ac_cpp_err=
 
2917
  fi
 
2918
else
 
2919
  ac_cpp_err=yes
 
2920
fi
 
2921
if test -z "$ac_cpp_err"; then
 
2922
  :
 
2923
else
 
2924
  echo "$as_me: failed program was:" >&5
 
2925
sed 's/^/| /' conftest.$ac_ext >&5
 
2926
 
 
2927
  # Broken: fails on valid input.
 
2928
continue
 
2929
fi
 
2930
rm -f conftest.err conftest.$ac_ext
 
2931
 
 
2932
  # OK, works on sane cases.  Now check whether non-existent headers
 
2933
  # can be detected and how.
 
2934
  cat >conftest.$ac_ext <<_ACEOF
 
2935
#line $LINENO "configure"
 
2936
/* confdefs.h.  */
 
2937
_ACEOF
 
2938
cat confdefs.h >>conftest.$ac_ext
 
2939
cat >>conftest.$ac_ext <<_ACEOF
 
2940
/* end confdefs.h.  */
 
2941
#include <ac_nonexistent.h>
 
2942
_ACEOF
 
2943
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2944
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2945
  ac_status=$?
 
2946
  grep -v '^ *+' conftest.er1 >conftest.err
 
2947
  rm -f conftest.er1
 
2948
  cat conftest.err >&5
 
2949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2950
  (exit $ac_status); } >/dev/null; then
 
2951
  if test -s conftest.err; then
 
2952
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2953
  else
 
2954
    ac_cpp_err=
 
2955
  fi
 
2956
else
 
2957
  ac_cpp_err=yes
 
2958
fi
 
2959
if test -z "$ac_cpp_err"; then
 
2960
  # Broken: success on invalid input.
 
2961
continue
 
2962
else
 
2963
  echo "$as_me: failed program was:" >&5
 
2964
sed 's/^/| /' conftest.$ac_ext >&5
 
2965
 
 
2966
  # Passes both tests.
 
2967
ac_preproc_ok=:
 
2968
break
 
2969
fi
 
2970
rm -f conftest.err conftest.$ac_ext
 
2971
 
 
2972
done
 
2973
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2974
rm -f conftest.err conftest.$ac_ext
 
2975
if $ac_preproc_ok; then
 
2976
  break
 
2977
fi
 
2978
 
 
2979
    done
 
2980
    ac_cv_prog_CPP=$CPP
 
2981
 
 
2982
fi
 
2983
  CPP=$ac_cv_prog_CPP
 
2984
else
 
2985
  ac_cv_prog_CPP=$CPP
 
2986
fi
 
2987
echo "$as_me:$LINENO: result: $CPP" >&5
 
2988
echo "${ECHO_T}$CPP" >&6
 
2989
ac_preproc_ok=false
 
2990
for ac_c_preproc_warn_flag in '' yes
 
2991
do
 
2992
  # Use a header file that comes with gcc, so configuring glibc
 
2993
  # with a fresh cross-compiler works.
 
2994
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2995
  # <limits.h> exists even on freestanding compilers.
 
2996
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2997
  # not just through cpp. "Syntax error" is here to catch this case.
 
2998
  cat >conftest.$ac_ext <<_ACEOF
 
2999
#line $LINENO "configure"
 
3000
/* confdefs.h.  */
 
3001
_ACEOF
 
3002
cat confdefs.h >>conftest.$ac_ext
 
3003
cat >>conftest.$ac_ext <<_ACEOF
 
3004
/* end confdefs.h.  */
 
3005
#ifdef __STDC__
 
3006
# include <limits.h>
 
3007
#else
 
3008
# include <assert.h>
 
3009
#endif
 
3010
                     Syntax error
 
3011
_ACEOF
 
3012
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3013
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3014
  ac_status=$?
 
3015
  grep -v '^ *+' conftest.er1 >conftest.err
 
3016
  rm -f conftest.er1
 
3017
  cat conftest.err >&5
 
3018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3019
  (exit $ac_status); } >/dev/null; then
 
3020
  if test -s conftest.err; then
 
3021
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3022
  else
 
3023
    ac_cpp_err=
 
3024
  fi
 
3025
else
 
3026
  ac_cpp_err=yes
 
3027
fi
 
3028
if test -z "$ac_cpp_err"; then
 
3029
  :
 
3030
else
 
3031
  echo "$as_me: failed program was:" >&5
 
3032
sed 's/^/| /' conftest.$ac_ext >&5
 
3033
 
 
3034
  # Broken: fails on valid input.
 
3035
continue
 
3036
fi
 
3037
rm -f conftest.err conftest.$ac_ext
 
3038
 
 
3039
  # OK, works on sane cases.  Now check whether non-existent headers
 
3040
  # can be detected and how.
 
3041
  cat >conftest.$ac_ext <<_ACEOF
 
3042
#line $LINENO "configure"
 
3043
/* confdefs.h.  */
 
3044
_ACEOF
 
3045
cat confdefs.h >>conftest.$ac_ext
 
3046
cat >>conftest.$ac_ext <<_ACEOF
 
3047
/* end confdefs.h.  */
 
3048
#include <ac_nonexistent.h>
 
3049
_ACEOF
 
3050
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3051
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3052
  ac_status=$?
 
3053
  grep -v '^ *+' conftest.er1 >conftest.err
 
3054
  rm -f conftest.er1
 
3055
  cat conftest.err >&5
 
3056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3057
  (exit $ac_status); } >/dev/null; then
 
3058
  if test -s conftest.err; then
 
3059
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3060
  else
 
3061
    ac_cpp_err=
 
3062
  fi
 
3063
else
 
3064
  ac_cpp_err=yes
 
3065
fi
 
3066
if test -z "$ac_cpp_err"; then
 
3067
  # Broken: success on invalid input.
 
3068
continue
 
3069
else
 
3070
  echo "$as_me: failed program was:" >&5
 
3071
sed 's/^/| /' conftest.$ac_ext >&5
 
3072
 
 
3073
  # Passes both tests.
 
3074
ac_preproc_ok=:
 
3075
break
 
3076
fi
 
3077
rm -f conftest.err conftest.$ac_ext
 
3078
 
 
3079
done
 
3080
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3081
rm -f conftest.err conftest.$ac_ext
 
3082
if $ac_preproc_ok; then
 
3083
  :
 
3084
else
 
3085
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3086
See \`config.log' for more details." >&5
 
3087
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3088
See \`config.log' for more details." >&2;}
 
3089
   { (exit 1); exit 1; }; }
 
3090
fi
 
3091
 
 
3092
ac_ext=c
 
3093
ac_cpp='$CPP $CPPFLAGS'
 
3094
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3095
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3096
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3097
 
 
3098
 
 
3099
echo "$as_me:$LINENO: checking for egrep" >&5
 
3100
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3101
if test "${ac_cv_prog_egrep+set}" = set; then
 
3102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3103
else
 
3104
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3105
    then ac_cv_prog_egrep='grep -E'
 
3106
    else ac_cv_prog_egrep='egrep'
 
3107
    fi
 
3108
fi
 
3109
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3110
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3111
 EGREP=$ac_cv_prog_egrep
 
3112
 
 
3113
 
 
3114
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3115
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3116
if test "${ac_cv_header_stdc+set}" = set; then
 
3117
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3118
else
 
3119
  cat >conftest.$ac_ext <<_ACEOF
 
3120
#line $LINENO "configure"
 
3121
/* confdefs.h.  */
 
3122
_ACEOF
 
3123
cat confdefs.h >>conftest.$ac_ext
 
3124
cat >>conftest.$ac_ext <<_ACEOF
 
3125
/* end confdefs.h.  */
 
3126
#include <stdlib.h>
 
3127
#include <stdarg.h>
 
3128
#include <string.h>
 
3129
#include <float.h>
 
3130
 
 
3131
int
 
3132
main ()
 
3133
{
 
3134
 
 
3135
  ;
 
3136
  return 0;
 
3137
}
 
3138
_ACEOF
 
3139
rm -f conftest.$ac_objext
 
3140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3141
  (eval $ac_compile) 2>&5
 
3142
  ac_status=$?
 
3143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3144
  (exit $ac_status); } &&
 
3145
         { ac_try='test -s conftest.$ac_objext'
 
3146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3147
  (eval $ac_try) 2>&5
 
3148
  ac_status=$?
 
3149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3150
  (exit $ac_status); }; }; then
 
3151
  ac_cv_header_stdc=yes
 
3152
else
 
3153
  echo "$as_me: failed program was:" >&5
 
3154
sed 's/^/| /' conftest.$ac_ext >&5
 
3155
 
 
3156
ac_cv_header_stdc=no
 
3157
fi
 
3158
rm -f conftest.$ac_objext conftest.$ac_ext
 
3159
 
 
3160
if test $ac_cv_header_stdc = yes; then
 
3161
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3162
  cat >conftest.$ac_ext <<_ACEOF
 
3163
#line $LINENO "configure"
 
3164
/* confdefs.h.  */
 
3165
_ACEOF
 
3166
cat confdefs.h >>conftest.$ac_ext
 
3167
cat >>conftest.$ac_ext <<_ACEOF
 
3168
/* end confdefs.h.  */
 
3169
#include <string.h>
 
3170
 
 
3171
_ACEOF
 
3172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3173
  $EGREP "memchr" >/dev/null 2>&1; then
 
3174
  :
 
3175
else
 
3176
  ac_cv_header_stdc=no
 
3177
fi
 
3178
rm -f conftest*
 
3179
 
 
3180
fi
 
3181
 
 
3182
if test $ac_cv_header_stdc = yes; then
 
3183
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3184
  cat >conftest.$ac_ext <<_ACEOF
 
3185
#line $LINENO "configure"
 
3186
/* confdefs.h.  */
 
3187
_ACEOF
 
3188
cat confdefs.h >>conftest.$ac_ext
 
3189
cat >>conftest.$ac_ext <<_ACEOF
 
3190
/* end confdefs.h.  */
 
3191
#include <stdlib.h>
 
3192
 
 
3193
_ACEOF
 
3194
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3195
  $EGREP "free" >/dev/null 2>&1; then
 
3196
  :
 
3197
else
 
3198
  ac_cv_header_stdc=no
 
3199
fi
 
3200
rm -f conftest*
 
3201
 
 
3202
fi
 
3203
 
 
3204
if test $ac_cv_header_stdc = yes; then
 
3205
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3206
  if test "$cross_compiling" = yes; then
 
3207
  :
 
3208
else
 
3209
  cat >conftest.$ac_ext <<_ACEOF
 
3210
#line $LINENO "configure"
 
3211
/* confdefs.h.  */
 
3212
_ACEOF
 
3213
cat confdefs.h >>conftest.$ac_ext
 
3214
cat >>conftest.$ac_ext <<_ACEOF
 
3215
/* end confdefs.h.  */
 
3216
#include <ctype.h>
 
3217
#if ((' ' & 0x0FF) == 0x020)
 
3218
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3219
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3220
#else
 
3221
# define ISLOWER(c) \
 
3222
                   (('a' <= (c) && (c) <= 'i') \
 
3223
                     || ('j' <= (c) && (c) <= 'r') \
 
3224
                     || ('s' <= (c) && (c) <= 'z'))
 
3225
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3226
#endif
 
3227
 
 
3228
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3229
int
 
3230
main ()
 
3231
{
 
3232
  int i;
 
3233
  for (i = 0; i < 256; i++)
 
3234
    if (XOR (islower (i), ISLOWER (i))
 
3235
        || toupper (i) != TOUPPER (i))
 
3236
      exit(2);
 
3237
  exit (0);
 
3238
}
 
3239
_ACEOF
 
3240
rm -f conftest$ac_exeext
 
3241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3242
  (eval $ac_link) 2>&5
 
3243
  ac_status=$?
 
3244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3245
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3247
  (eval $ac_try) 2>&5
 
3248
  ac_status=$?
 
3249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3250
  (exit $ac_status); }; }; then
 
3251
  :
 
3252
else
 
3253
  echo "$as_me: program exited with status $ac_status" >&5
 
3254
echo "$as_me: failed program was:" >&5
 
3255
sed 's/^/| /' conftest.$ac_ext >&5
 
3256
 
 
3257
( exit $ac_status )
 
3258
ac_cv_header_stdc=no
 
3259
fi
 
3260
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3261
fi
 
3262
fi
 
3263
fi
 
3264
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3265
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3266
if test $ac_cv_header_stdc = yes; then
 
3267
 
 
3268
cat >>confdefs.h <<\_ACEOF
 
3269
#define STDC_HEADERS 1
 
3270
_ACEOF
 
3271
 
 
3272
fi
 
3273
 
 
3274
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3275
 
 
3276
 
 
3277
 
 
3278
 
 
3279
 
 
3280
 
 
3281
 
 
3282
 
 
3283
 
 
3284
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3285
                  inttypes.h stdint.h unistd.h
 
3286
do
 
3287
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3288
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3289
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3290
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3291
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3292
else
 
3293
  cat >conftest.$ac_ext <<_ACEOF
 
3294
#line $LINENO "configure"
 
3295
/* confdefs.h.  */
 
3296
_ACEOF
 
3297
cat confdefs.h >>conftest.$ac_ext
 
3298
cat >>conftest.$ac_ext <<_ACEOF
 
3299
/* end confdefs.h.  */
 
3300
$ac_includes_default
 
3301
 
 
3302
#include <$ac_header>
 
3303
_ACEOF
 
3304
rm -f conftest.$ac_objext
 
3305
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3306
  (eval $ac_compile) 2>&5
 
3307
  ac_status=$?
 
3308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3309
  (exit $ac_status); } &&
 
3310
         { ac_try='test -s conftest.$ac_objext'
 
3311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3312
  (eval $ac_try) 2>&5
 
3313
  ac_status=$?
 
3314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3315
  (exit $ac_status); }; }; then
 
3316
  eval "$as_ac_Header=yes"
 
3317
else
 
3318
  echo "$as_me: failed program was:" >&5
 
3319
sed 's/^/| /' conftest.$ac_ext >&5
 
3320
 
 
3321
eval "$as_ac_Header=no"
 
3322
fi
 
3323
rm -f conftest.$ac_objext conftest.$ac_ext
 
3324
fi
 
3325
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3326
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3327
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3328
  cat >>confdefs.h <<_ACEOF
 
3329
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3330
_ACEOF
 
3331
 
 
3332
fi
 
3333
 
 
3334
done
 
3335
 
 
3336
 
 
3337
ac_have_func=no # yes means we've found a way to get the load average.
 
3338
 
 
3339
# Make sure getloadavg.c is where it belongs, at configure-time.
 
3340
test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
 
3341
  { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
 
3342
echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
 
3343
   { (exit 1); exit 1; }; }
 
3344
 
 
3345
ac_save_LIBS=$LIBS
 
3346
 
 
3347
# Check for getloadavg, but be sure not to touch the cache variable.
 
3348
(echo "$as_me:$LINENO: checking for getloadavg" >&5
 
3349
echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
 
3350
if test "${ac_cv_func_getloadavg+set}" = set; then
 
3351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3352
else
 
3353
  cat >conftest.$ac_ext <<_ACEOF
 
3354
#line $LINENO "configure"
 
3355
/* confdefs.h.  */
 
3356
_ACEOF
 
3357
cat confdefs.h >>conftest.$ac_ext
 
3358
cat >>conftest.$ac_ext <<_ACEOF
 
3359
/* end confdefs.h.  */
 
3360
/* System header to define __stub macros and hopefully few prototypes,
 
3361
    which can conflict with char getloadavg (); below.
 
3362
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3363
    <limits.h> exists even on freestanding compilers.  */
 
3364
#ifdef __STDC__
 
3365
# include <limits.h>
 
3366
#else
 
3367
# include <assert.h>
 
3368
#endif
 
3369
/* Override any gcc2 internal prototype to avoid an error.  */
 
3370
#ifdef __cplusplus
 
3371
extern "C"
 
3372
{
 
3373
#endif
 
3374
/* We use char because int might match the return type of a gcc2
 
3375
   builtin and then its argument prototype would still apply.  */
 
3376
char getloadavg ();
 
3377
/* The GNU C library defines this for functions which it implements
 
3378
    to always fail with ENOSYS.  Some functions are actually named
 
3379
    something starting with __ and the normal name is an alias.  */
 
3380
#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
 
3381
choke me
 
3382
#else
 
3383
char (*f) () = getloadavg;
 
3384
#endif
 
3385
#ifdef __cplusplus
 
3386
}
 
3387
#endif
 
3388
 
 
3389
int
 
3390
main ()
 
3391
{
 
3392
return f != getloadavg;
 
3393
  ;
 
3394
  return 0;
 
3395
}
 
3396
_ACEOF
 
3397
rm -f conftest.$ac_objext conftest$ac_exeext
 
3398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3399
  (eval $ac_link) 2>&5
 
3400
  ac_status=$?
 
3401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3402
  (exit $ac_status); } &&
 
3403
         { ac_try='test -s conftest$ac_exeext'
 
3404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3405
  (eval $ac_try) 2>&5
 
3406
  ac_status=$?
 
3407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3408
  (exit $ac_status); }; }; then
 
3409
  ac_cv_func_getloadavg=yes
 
3410
else
 
3411
  echo "$as_me: failed program was:" >&5
 
3412
sed 's/^/| /' conftest.$ac_ext >&5
 
3413
 
 
3414
ac_cv_func_getloadavg=no
 
3415
fi
 
3416
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3417
fi
 
3418
echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
 
3419
echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
 
3420
if test $ac_cv_func_getloadavg = yes; then
 
3421
  exit 0
 
3422
else
 
3423
  exit 1
 
3424
fi
 
3425
) && ac_have_func=yes
 
3426
 
 
3427
# On HPUX9, an unprivileged user can get load averages through this function.
 
3428
 
 
3429
for ac_func in pstat_getdynamic
 
3430
do
 
3431
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3432
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3433
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3434
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3436
else
 
3437
  cat >conftest.$ac_ext <<_ACEOF
 
3438
#line $LINENO "configure"
 
3439
/* confdefs.h.  */
 
3440
_ACEOF
 
3441
cat confdefs.h >>conftest.$ac_ext
 
3442
cat >>conftest.$ac_ext <<_ACEOF
 
3443
/* end confdefs.h.  */
 
3444
/* System header to define __stub macros and hopefully few prototypes,
 
3445
    which can conflict with char $ac_func (); below.
 
3446
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3447
    <limits.h> exists even on freestanding compilers.  */
 
3448
#ifdef __STDC__
 
3449
# include <limits.h>
 
3450
#else
 
3451
# include <assert.h>
 
3452
#endif
 
3453
/* Override any gcc2 internal prototype to avoid an error.  */
 
3454
#ifdef __cplusplus
 
3455
extern "C"
 
3456
{
 
3457
#endif
 
3458
/* We use char because int might match the return type of a gcc2
 
3459
   builtin and then its argument prototype would still apply.  */
 
3460
char $ac_func ();
 
3461
/* The GNU C library defines this for functions which it implements
 
3462
    to always fail with ENOSYS.  Some functions are actually named
 
3463
    something starting with __ and the normal name is an alias.  */
 
3464
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3465
choke me
 
3466
#else
 
3467
char (*f) () = $ac_func;
 
3468
#endif
 
3469
#ifdef __cplusplus
 
3470
}
 
3471
#endif
 
3472
 
 
3473
int
 
3474
main ()
 
3475
{
 
3476
return f != $ac_func;
 
3477
  ;
 
3478
  return 0;
 
3479
}
 
3480
_ACEOF
 
3481
rm -f conftest.$ac_objext conftest$ac_exeext
 
3482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3483
  (eval $ac_link) 2>&5
 
3484
  ac_status=$?
 
3485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3486
  (exit $ac_status); } &&
 
3487
         { ac_try='test -s conftest$ac_exeext'
 
3488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3489
  (eval $ac_try) 2>&5
 
3490
  ac_status=$?
 
3491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3492
  (exit $ac_status); }; }; then
 
3493
  eval "$as_ac_var=yes"
 
3494
else
 
3495
  echo "$as_me: failed program was:" >&5
 
3496
sed 's/^/| /' conftest.$ac_ext >&5
 
3497
 
 
3498
eval "$as_ac_var=no"
 
3499
fi
 
3500
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3501
fi
 
3502
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3503
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3504
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3505
  cat >>confdefs.h <<_ACEOF
 
3506
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3507
_ACEOF
 
3508
 
 
3509
fi
 
3510
done
 
3511
 
 
3512
 
 
3513
# Solaris has libkstat which does not require root.
 
3514
 
 
3515
echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
 
3516
echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
 
3517
if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
 
3518
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3519
else
 
3520
  ac_check_lib_save_LIBS=$LIBS
 
3521
LIBS="-lkstat  $LIBS"
 
3522
cat >conftest.$ac_ext <<_ACEOF
 
3523
#line $LINENO "configure"
 
3524
/* confdefs.h.  */
 
3525
_ACEOF
 
3526
cat confdefs.h >>conftest.$ac_ext
 
3527
cat >>conftest.$ac_ext <<_ACEOF
 
3528
/* end confdefs.h.  */
 
3529
 
 
3530
/* Override any gcc2 internal prototype to avoid an error.  */
 
3531
#ifdef __cplusplus
 
3532
extern "C"
 
3533
#endif
 
3534
/* We use char because int might match the return type of a gcc2
 
3535
   builtin and then its argument prototype would still apply.  */
 
3536
char kstat_open ();
 
3537
int
 
3538
main ()
 
3539
{
 
3540
kstat_open ();
 
3541
  ;
 
3542
  return 0;
 
3543
}
 
3544
_ACEOF
 
3545
rm -f conftest.$ac_objext conftest$ac_exeext
 
3546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3547
  (eval $ac_link) 2>&5
 
3548
  ac_status=$?
 
3549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3550
  (exit $ac_status); } &&
 
3551
         { ac_try='test -s conftest$ac_exeext'
 
3552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3553
  (eval $ac_try) 2>&5
 
3554
  ac_status=$?
 
3555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3556
  (exit $ac_status); }; }; then
 
3557
  ac_cv_lib_kstat_kstat_open=yes
 
3558
else
 
3559
  echo "$as_me: failed program was:" >&5
 
3560
sed 's/^/| /' conftest.$ac_ext >&5
 
3561
 
 
3562
ac_cv_lib_kstat_kstat_open=no
 
3563
fi
 
3564
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3565
LIBS=$ac_check_lib_save_LIBS
 
3566
fi
 
3567
echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
 
3568
echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
 
3569
if test $ac_cv_lib_kstat_kstat_open = yes; then
 
3570
  cat >>confdefs.h <<_ACEOF
 
3571
#define HAVE_LIBKSTAT 1
 
3572
_ACEOF
 
3573
 
 
3574
  LIBS="-lkstat $LIBS"
 
3575
 
 
3576
fi
 
3577
 
 
3578
test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
 
3579
 
 
3580
# Some systems with -lutil have (and need) -lkvm as well, some do not.
 
3581
# On Solaris, -lkvm requires nlist from -lelf, so check that first
 
3582
# to get the right answer into the cache.
 
3583
# For kstat on solaris, we need libelf to force the definition of SVR4 below.
 
3584
if test $ac_have_func = no; then
 
3585
  echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
 
3586
echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
 
3587
if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
 
3588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3589
else
 
3590
  ac_check_lib_save_LIBS=$LIBS
 
3591
LIBS="-lelf  $LIBS"
 
3592
cat >conftest.$ac_ext <<_ACEOF
 
3593
#line $LINENO "configure"
 
3594
/* confdefs.h.  */
 
3595
_ACEOF
 
3596
cat confdefs.h >>conftest.$ac_ext
 
3597
cat >>conftest.$ac_ext <<_ACEOF
 
3598
/* end confdefs.h.  */
 
3599
 
 
3600
/* Override any gcc2 internal prototype to avoid an error.  */
 
3601
#ifdef __cplusplus
 
3602
extern "C"
 
3603
#endif
 
3604
/* We use char because int might match the return type of a gcc2
 
3605
   builtin and then its argument prototype would still apply.  */
 
3606
char elf_begin ();
 
3607
int
 
3608
main ()
 
3609
{
 
3610
elf_begin ();
 
3611
  ;
 
3612
  return 0;
 
3613
}
 
3614
_ACEOF
 
3615
rm -f conftest.$ac_objext conftest$ac_exeext
 
3616
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3617
  (eval $ac_link) 2>&5
 
3618
  ac_status=$?
 
3619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3620
  (exit $ac_status); } &&
 
3621
         { ac_try='test -s conftest$ac_exeext'
 
3622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3623
  (eval $ac_try) 2>&5
 
3624
  ac_status=$?
 
3625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3626
  (exit $ac_status); }; }; then
 
3627
  ac_cv_lib_elf_elf_begin=yes
 
3628
else
 
3629
  echo "$as_me: failed program was:" >&5
 
3630
sed 's/^/| /' conftest.$ac_ext >&5
 
3631
 
 
3632
ac_cv_lib_elf_elf_begin=no
 
3633
fi
 
3634
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3635
LIBS=$ac_check_lib_save_LIBS
 
3636
fi
 
3637
echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
 
3638
echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
 
3639
if test $ac_cv_lib_elf_elf_begin = yes; then
 
3640
  LIBS="-lelf $LIBS"
 
3641
fi
 
3642
 
 
3643
fi
 
3644
if test $ac_have_func = no; then
 
3645
  echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
 
3646
echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
 
3647
if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
 
3648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3649
else
 
3650
  ac_check_lib_save_LIBS=$LIBS
 
3651
LIBS="-lkvm  $LIBS"
 
3652
cat >conftest.$ac_ext <<_ACEOF
 
3653
#line $LINENO "configure"
 
3654
/* confdefs.h.  */
 
3655
_ACEOF
 
3656
cat confdefs.h >>conftest.$ac_ext
 
3657
cat >>conftest.$ac_ext <<_ACEOF
 
3658
/* end confdefs.h.  */
 
3659
 
 
3660
/* Override any gcc2 internal prototype to avoid an error.  */
 
3661
#ifdef __cplusplus
 
3662
extern "C"
 
3663
#endif
 
3664
/* We use char because int might match the return type of a gcc2
 
3665
   builtin and then its argument prototype would still apply.  */
 
3666
char kvm_open ();
 
3667
int
 
3668
main ()
 
3669
{
 
3670
kvm_open ();
 
3671
  ;
 
3672
  return 0;
 
3673
}
 
3674
_ACEOF
 
3675
rm -f conftest.$ac_objext conftest$ac_exeext
 
3676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3677
  (eval $ac_link) 2>&5
 
3678
  ac_status=$?
 
3679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3680
  (exit $ac_status); } &&
 
3681
         { ac_try='test -s conftest$ac_exeext'
 
3682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3683
  (eval $ac_try) 2>&5
 
3684
  ac_status=$?
 
3685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3686
  (exit $ac_status); }; }; then
 
3687
  ac_cv_lib_kvm_kvm_open=yes
 
3688
else
 
3689
  echo "$as_me: failed program was:" >&5
 
3690
sed 's/^/| /' conftest.$ac_ext >&5
 
3691
 
 
3692
ac_cv_lib_kvm_kvm_open=no
 
3693
fi
 
3694
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3695
LIBS=$ac_check_lib_save_LIBS
 
3696
fi
 
3697
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
 
3698
echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
 
3699
if test $ac_cv_lib_kvm_kvm_open = yes; then
 
3700
  LIBS="-lkvm $LIBS"
 
3701
fi
 
3702
 
 
3703
  # Check for the 4.4BSD definition of getloadavg.
 
3704
  echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
 
3705
echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
 
3706
if test "${ac_cv_lib_util_getloadavg+set}" = set; then
 
3707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3708
else
 
3709
  ac_check_lib_save_LIBS=$LIBS
 
3710
LIBS="-lutil  $LIBS"
 
3711
cat >conftest.$ac_ext <<_ACEOF
 
3712
#line $LINENO "configure"
 
3713
/* confdefs.h.  */
 
3714
_ACEOF
 
3715
cat confdefs.h >>conftest.$ac_ext
 
3716
cat >>conftest.$ac_ext <<_ACEOF
 
3717
/* end confdefs.h.  */
 
3718
 
 
3719
/* Override any gcc2 internal prototype to avoid an error.  */
 
3720
#ifdef __cplusplus
 
3721
extern "C"
 
3722
#endif
 
3723
/* We use char because int might match the return type of a gcc2
 
3724
   builtin and then its argument prototype would still apply.  */
 
3725
char getloadavg ();
 
3726
int
 
3727
main ()
 
3728
{
 
3729
getloadavg ();
 
3730
  ;
 
3731
  return 0;
 
3732
}
 
3733
_ACEOF
 
3734
rm -f conftest.$ac_objext conftest$ac_exeext
 
3735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3736
  (eval $ac_link) 2>&5
 
3737
  ac_status=$?
 
3738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3739
  (exit $ac_status); } &&
 
3740
         { ac_try='test -s conftest$ac_exeext'
 
3741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3742
  (eval $ac_try) 2>&5
 
3743
  ac_status=$?
 
3744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3745
  (exit $ac_status); }; }; then
 
3746
  ac_cv_lib_util_getloadavg=yes
 
3747
else
 
3748
  echo "$as_me: failed program was:" >&5
 
3749
sed 's/^/| /' conftest.$ac_ext >&5
 
3750
 
 
3751
ac_cv_lib_util_getloadavg=no
 
3752
fi
 
3753
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3754
LIBS=$ac_check_lib_save_LIBS
 
3755
fi
 
3756
echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
 
3757
echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
 
3758
if test $ac_cv_lib_util_getloadavg = yes; then
 
3759
  LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
 
3760
fi
 
3761
 
 
3762
fi
 
3763
 
 
3764
if test $ac_have_func = no; then
 
3765
  # There is a commonly available library for RS/6000 AIX.
 
3766
  # Since it is not a standard part of AIX, it might be installed locally.
 
3767
  ac_getloadavg_LIBS=$LIBS
 
3768
  LIBS="-L/usr/local/lib $LIBS"
 
3769
  echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
 
3770
echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
 
3771
if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
 
3772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3773
else
 
3774
  ac_check_lib_save_LIBS=$LIBS
 
3775
LIBS="-lgetloadavg  $LIBS"
 
3776
cat >conftest.$ac_ext <<_ACEOF
 
3777
#line $LINENO "configure"
 
3778
/* confdefs.h.  */
 
3779
_ACEOF
 
3780
cat confdefs.h >>conftest.$ac_ext
 
3781
cat >>conftest.$ac_ext <<_ACEOF
 
3782
/* end confdefs.h.  */
 
3783
 
 
3784
/* Override any gcc2 internal prototype to avoid an error.  */
 
3785
#ifdef __cplusplus
 
3786
extern "C"
 
3787
#endif
 
3788
/* We use char because int might match the return type of a gcc2
 
3789
   builtin and then its argument prototype would still apply.  */
 
3790
char getloadavg ();
 
3791
int
 
3792
main ()
 
3793
{
 
3794
getloadavg ();
 
3795
  ;
 
3796
  return 0;
 
3797
}
 
3798
_ACEOF
 
3799
rm -f conftest.$ac_objext conftest$ac_exeext
 
3800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3801
  (eval $ac_link) 2>&5
 
3802
  ac_status=$?
 
3803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3804
  (exit $ac_status); } &&
 
3805
         { ac_try='test -s conftest$ac_exeext'
 
3806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3807
  (eval $ac_try) 2>&5
 
3808
  ac_status=$?
 
3809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3810
  (exit $ac_status); }; }; then
 
3811
  ac_cv_lib_getloadavg_getloadavg=yes
 
3812
else
 
3813
  echo "$as_me: failed program was:" >&5
 
3814
sed 's/^/| /' conftest.$ac_ext >&5
 
3815
 
 
3816
ac_cv_lib_getloadavg_getloadavg=no
 
3817
fi
 
3818
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3819
LIBS=$ac_check_lib_save_LIBS
 
3820
fi
 
3821
echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
 
3822
echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
 
3823
if test $ac_cv_lib_getloadavg_getloadavg = yes; then
 
3824
  LIBS="-lgetloadavg $LIBS"
 
3825
else
 
3826
  LIBS=$ac_getloadavg_LIBS
 
3827
fi
 
3828
 
 
3829
fi
 
3830
 
 
3831
# Make sure it is really in the library, if we think we found it,
 
3832
# otherwise set up the replacement function.
 
3833
 
 
3834
for ac_func in getloadavg
 
3835
do
 
3836
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3837
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3838
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3839
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3841
else
 
3842
  cat >conftest.$ac_ext <<_ACEOF
 
3843
#line $LINENO "configure"
 
3844
/* confdefs.h.  */
 
3845
_ACEOF
 
3846
cat confdefs.h >>conftest.$ac_ext
 
3847
cat >>conftest.$ac_ext <<_ACEOF
 
3848
/* end confdefs.h.  */
 
3849
/* System header to define __stub macros and hopefully few prototypes,
 
3850
    which can conflict with char $ac_func (); below.
 
3851
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3852
    <limits.h> exists even on freestanding compilers.  */
 
3853
#ifdef __STDC__
 
3854
# include <limits.h>
 
3855
#else
 
3856
# include <assert.h>
 
3857
#endif
 
3858
/* Override any gcc2 internal prototype to avoid an error.  */
 
3859
#ifdef __cplusplus
 
3860
extern "C"
 
3861
{
 
3862
#endif
 
3863
/* We use char because int might match the return type of a gcc2
 
3864
   builtin and then its argument prototype would still apply.  */
 
3865
char $ac_func ();
 
3866
/* The GNU C library defines this for functions which it implements
 
3867
    to always fail with ENOSYS.  Some functions are actually named
 
3868
    something starting with __ and the normal name is an alias.  */
 
3869
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3870
choke me
 
3871
#else
 
3872
char (*f) () = $ac_func;
 
3873
#endif
 
3874
#ifdef __cplusplus
 
3875
}
 
3876
#endif
 
3877
 
 
3878
int
 
3879
main ()
 
3880
{
 
3881
return f != $ac_func;
 
3882
  ;
 
3883
  return 0;
 
3884
}
 
3885
_ACEOF
 
3886
rm -f conftest.$ac_objext conftest$ac_exeext
 
3887
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3888
  (eval $ac_link) 2>&5
 
3889
  ac_status=$?
 
3890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3891
  (exit $ac_status); } &&
 
3892
         { ac_try='test -s conftest$ac_exeext'
 
3893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3894
  (eval $ac_try) 2>&5
 
3895
  ac_status=$?
 
3896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3897
  (exit $ac_status); }; }; then
 
3898
  eval "$as_ac_var=yes"
 
3899
else
 
3900
  echo "$as_me: failed program was:" >&5
 
3901
sed 's/^/| /' conftest.$ac_ext >&5
 
3902
 
 
3903
eval "$as_ac_var=no"
 
3904
fi
 
3905
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3906
fi
 
3907
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3908
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3909
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3910
  cat >>confdefs.h <<_ACEOF
 
3911
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3912
_ACEOF
 
3913
 
 
3914
else
 
3915
  LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
 
3916
 
 
3917
cat >>confdefs.h <<\_ACEOF
 
3918
#define C_GETLOADAVG 1
 
3919
_ACEOF
 
3920
 
 
3921
# Figure out what our getloadavg.c needs.
 
3922
ac_have_func=no
 
3923
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
 
3924
  echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
 
3925
echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
 
3926
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
 
3927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3928
fi
 
3929
echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
 
3930
echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
 
3931
else
 
3932
  # Is the header compilable?
 
3933
echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
 
3934
echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
 
3935
cat >conftest.$ac_ext <<_ACEOF
 
3936
#line $LINENO "configure"
 
3937
/* confdefs.h.  */
 
3938
_ACEOF
 
3939
cat confdefs.h >>conftest.$ac_ext
 
3940
cat >>conftest.$ac_ext <<_ACEOF
 
3941
/* end confdefs.h.  */
 
3942
$ac_includes_default
 
3943
#include <sys/dg_sys_info.h>
 
3944
_ACEOF
 
3945
rm -f conftest.$ac_objext
 
3946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3947
  (eval $ac_compile) 2>&5
 
3948
  ac_status=$?
 
3949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3950
  (exit $ac_status); } &&
 
3951
         { ac_try='test -s conftest.$ac_objext'
 
3952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3953
  (eval $ac_try) 2>&5
 
3954
  ac_status=$?
 
3955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3956
  (exit $ac_status); }; }; then
 
3957
  ac_header_compiler=yes
 
3958
else
 
3959
  echo "$as_me: failed program was:" >&5
 
3960
sed 's/^/| /' conftest.$ac_ext >&5
 
3961
 
 
3962
ac_header_compiler=no
 
3963
fi
 
3964
rm -f conftest.$ac_objext conftest.$ac_ext
 
3965
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3966
echo "${ECHO_T}$ac_header_compiler" >&6
 
3967
 
 
3968
# Is the header present?
 
3969
echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
 
3970
echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
 
3971
cat >conftest.$ac_ext <<_ACEOF
 
3972
#line $LINENO "configure"
 
3973
/* confdefs.h.  */
 
3974
_ACEOF
 
3975
cat confdefs.h >>conftest.$ac_ext
 
3976
cat >>conftest.$ac_ext <<_ACEOF
 
3977
/* end confdefs.h.  */
 
3978
#include <sys/dg_sys_info.h>
 
3979
_ACEOF
 
3980
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3981
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3982
  ac_status=$?
 
3983
  grep -v '^ *+' conftest.er1 >conftest.err
 
3984
  rm -f conftest.er1
 
3985
  cat conftest.err >&5
 
3986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3987
  (exit $ac_status); } >/dev/null; then
 
3988
  if test -s conftest.err; then
 
3989
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3990
  else
 
3991
    ac_cpp_err=
 
3992
  fi
 
3993
else
 
3994
  ac_cpp_err=yes
 
3995
fi
 
3996
if test -z "$ac_cpp_err"; then
 
3997
  ac_header_preproc=yes
 
3998
else
 
3999
  echo "$as_me: failed program was:" >&5
 
4000
sed 's/^/| /' conftest.$ac_ext >&5
 
4001
 
 
4002
  ac_header_preproc=no
 
4003
fi
 
4004
rm -f conftest.err conftest.$ac_ext
 
4005
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4006
echo "${ECHO_T}$ac_header_preproc" >&6
 
4007
 
 
4008
# So?  What about this header?
 
4009
case $ac_header_compiler:$ac_header_preproc in
 
4010
  yes:no )
 
4011
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4012
echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4013
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
 
4014
echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
 
4015
    (
 
4016
      cat <<\_ASBOX
 
4017
## ------------------------------------ ##
 
4018
## Report this to bug-autoconf@gnu.org. ##
 
4019
## ------------------------------------ ##
 
4020
_ASBOX
 
4021
    ) |
 
4022
      sed "s/^/$as_me: WARNING:     /" >&2
 
4023
    ;;
 
4024
  no:yes )
 
4025
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
 
4026
echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
 
4027
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
 
4028
echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
 
4029
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
 
4030
echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
 
4031
    (
 
4032
      cat <<\_ASBOX
 
4033
## ------------------------------------ ##
 
4034
## Report this to bug-autoconf@gnu.org. ##
 
4035
## ------------------------------------ ##
 
4036
_ASBOX
 
4037
    ) |
 
4038
      sed "s/^/$as_me: WARNING:     /" >&2
 
4039
    ;;
 
4040
esac
 
4041
echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
 
4042
echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
 
4043
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
 
4044
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4045
else
 
4046
  ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
 
4047
fi
 
4048
echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
 
4049
echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
 
4050
 
 
4051
fi
 
4052
if test $ac_cv_header_sys_dg_sys_info_h = yes; then
 
4053
  ac_have_func=yes
 
4054
 
 
4055
cat >>confdefs.h <<\_ACEOF
 
4056
#define DGUX 1
 
4057
_ACEOF
 
4058
 
 
4059
 
 
4060
echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
 
4061
echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
 
4062
if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
 
4063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4064
else
 
4065
  ac_check_lib_save_LIBS=$LIBS
 
4066
LIBS="-ldgc  $LIBS"
 
4067
cat >conftest.$ac_ext <<_ACEOF
 
4068
#line $LINENO "configure"
 
4069
/* confdefs.h.  */
 
4070
_ACEOF
 
4071
cat confdefs.h >>conftest.$ac_ext
 
4072
cat >>conftest.$ac_ext <<_ACEOF
 
4073
/* end confdefs.h.  */
 
4074
 
 
4075
/* Override any gcc2 internal prototype to avoid an error.  */
 
4076
#ifdef __cplusplus
 
4077
extern "C"
 
4078
#endif
 
4079
/* We use char because int might match the return type of a gcc2
 
4080
   builtin and then its argument prototype would still apply.  */
 
4081
char dg_sys_info ();
 
4082
int
 
4083
main ()
 
4084
{
 
4085
dg_sys_info ();
 
4086
  ;
 
4087
  return 0;
 
4088
}
 
4089
_ACEOF
 
4090
rm -f conftest.$ac_objext conftest$ac_exeext
 
4091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4092
  (eval $ac_link) 2>&5
 
4093
  ac_status=$?
 
4094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4095
  (exit $ac_status); } &&
 
4096
         { ac_try='test -s conftest$ac_exeext'
 
4097
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4098
  (eval $ac_try) 2>&5
 
4099
  ac_status=$?
 
4100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4101
  (exit $ac_status); }; }; then
 
4102
  ac_cv_lib_dgc_dg_sys_info=yes
 
4103
else
 
4104
  echo "$as_me: failed program was:" >&5
 
4105
sed 's/^/| /' conftest.$ac_ext >&5
 
4106
 
 
4107
ac_cv_lib_dgc_dg_sys_info=no
 
4108
fi
 
4109
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4110
LIBS=$ac_check_lib_save_LIBS
 
4111
fi
 
4112
echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
 
4113
echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
 
4114
if test $ac_cv_lib_dgc_dg_sys_info = yes; then
 
4115
  cat >>confdefs.h <<_ACEOF
 
4116
#define HAVE_LIBDGC 1
 
4117
_ACEOF
 
4118
 
 
4119
  LIBS="-ldgc $LIBS"
 
4120
 
 
4121
fi
 
4122
 
 
4123
fi
 
4124
 
 
4125
 
 
4126
 
 
4127
if test "${ac_cv_header_locale_h+set}" = set; then
 
4128
  echo "$as_me:$LINENO: checking for locale.h" >&5
 
4129
echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
 
4130
if test "${ac_cv_header_locale_h+set}" = set; then
 
4131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4132
fi
 
4133
echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
 
4134
echo "${ECHO_T}$ac_cv_header_locale_h" >&6
 
4135
else
 
4136
  # Is the header compilable?
 
4137
echo "$as_me:$LINENO: checking locale.h usability" >&5
 
4138
echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
 
4139
cat >conftest.$ac_ext <<_ACEOF
 
4140
#line $LINENO "configure"
 
4141
/* confdefs.h.  */
 
4142
_ACEOF
 
4143
cat confdefs.h >>conftest.$ac_ext
 
4144
cat >>conftest.$ac_ext <<_ACEOF
 
4145
/* end confdefs.h.  */
 
4146
$ac_includes_default
 
4147
#include <locale.h>
 
4148
_ACEOF
 
4149
rm -f conftest.$ac_objext
 
4150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4151
  (eval $ac_compile) 2>&5
 
4152
  ac_status=$?
 
4153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4154
  (exit $ac_status); } &&
 
4155
         { ac_try='test -s conftest.$ac_objext'
 
4156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4157
  (eval $ac_try) 2>&5
 
4158
  ac_status=$?
 
4159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4160
  (exit $ac_status); }; }; then
 
4161
  ac_header_compiler=yes
 
4162
else
 
4163
  echo "$as_me: failed program was:" >&5
 
4164
sed 's/^/| /' conftest.$ac_ext >&5
 
4165
 
 
4166
ac_header_compiler=no
 
4167
fi
 
4168
rm -f conftest.$ac_objext conftest.$ac_ext
 
4169
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4170
echo "${ECHO_T}$ac_header_compiler" >&6
 
4171
 
 
4172
# Is the header present?
 
4173
echo "$as_me:$LINENO: checking locale.h presence" >&5
 
4174
echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
 
4175
cat >conftest.$ac_ext <<_ACEOF
 
4176
#line $LINENO "configure"
 
4177
/* confdefs.h.  */
 
4178
_ACEOF
 
4179
cat confdefs.h >>conftest.$ac_ext
 
4180
cat >>conftest.$ac_ext <<_ACEOF
 
4181
/* end confdefs.h.  */
 
4182
#include <locale.h>
 
4183
_ACEOF
 
4184
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4185
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4186
  ac_status=$?
 
4187
  grep -v '^ *+' conftest.er1 >conftest.err
 
4188
  rm -f conftest.er1
 
4189
  cat conftest.err >&5
 
4190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4191
  (exit $ac_status); } >/dev/null; then
 
4192
  if test -s conftest.err; then
 
4193
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4194
  else
 
4195
    ac_cpp_err=
 
4196
  fi
 
4197
else
 
4198
  ac_cpp_err=yes
 
4199
fi
 
4200
if test -z "$ac_cpp_err"; then
 
4201
  ac_header_preproc=yes
 
4202
else
 
4203
  echo "$as_me: failed program was:" >&5
 
4204
sed 's/^/| /' conftest.$ac_ext >&5
 
4205
 
 
4206
  ac_header_preproc=no
 
4207
fi
 
4208
rm -f conftest.err conftest.$ac_ext
 
4209
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4210
echo "${ECHO_T}$ac_header_preproc" >&6
 
4211
 
 
4212
# So?  What about this header?
 
4213
case $ac_header_compiler:$ac_header_preproc in
 
4214
  yes:no )
 
4215
    { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4216
echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4217
    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
 
4218
echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
 
4219
    (
 
4220
      cat <<\_ASBOX
 
4221
## ------------------------------------ ##
 
4222
## Report this to bug-autoconf@gnu.org. ##
 
4223
## ------------------------------------ ##
 
4224
_ASBOX
 
4225
    ) |
 
4226
      sed "s/^/$as_me: WARNING:     /" >&2
 
4227
    ;;
 
4228
  no:yes )
 
4229
    { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
 
4230
echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
 
4231
    { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
 
4232
echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
 
4233
    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
 
4234
echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
 
4235
    (
 
4236
      cat <<\_ASBOX
 
4237
## ------------------------------------ ##
 
4238
## Report this to bug-autoconf@gnu.org. ##
 
4239
## ------------------------------------ ##
 
4240
_ASBOX
 
4241
    ) |
 
4242
      sed "s/^/$as_me: WARNING:     /" >&2
 
4243
    ;;
 
4244
esac
 
4245
echo "$as_me:$LINENO: checking for locale.h" >&5
 
4246
echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
 
4247
if test "${ac_cv_header_locale_h+set}" = set; then
 
4248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4249
else
 
4250
  ac_cv_header_locale_h=$ac_header_preproc
 
4251
fi
 
4252
echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
 
4253
echo "${ECHO_T}$ac_cv_header_locale_h" >&6
 
4254
 
 
4255
fi
 
4256
 
 
4257
 
 
4258
 
 
4259
for ac_func in setlocale
 
4260
do
 
4261
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4262
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
4263
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
4264
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
4265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4266
else
 
4267
  cat >conftest.$ac_ext <<_ACEOF
 
4268
#line $LINENO "configure"
 
4269
/* confdefs.h.  */
 
4270
_ACEOF
 
4271
cat confdefs.h >>conftest.$ac_ext
 
4272
cat >>conftest.$ac_ext <<_ACEOF
 
4273
/* end confdefs.h.  */
 
4274
/* System header to define __stub macros and hopefully few prototypes,
 
4275
    which can conflict with char $ac_func (); below.
 
4276
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4277
    <limits.h> exists even on freestanding compilers.  */
 
4278
#ifdef __STDC__
 
4279
# include <limits.h>
 
4280
#else
 
4281
# include <assert.h>
 
4282
#endif
 
4283
/* Override any gcc2 internal prototype to avoid an error.  */
 
4284
#ifdef __cplusplus
 
4285
extern "C"
 
4286
{
 
4287
#endif
 
4288
/* We use char because int might match the return type of a gcc2
 
4289
   builtin and then its argument prototype would still apply.  */
 
4290
char $ac_func ();
 
4291
/* The GNU C library defines this for functions which it implements
 
4292
    to always fail with ENOSYS.  Some functions are actually named
 
4293
    something starting with __ and the normal name is an alias.  */
 
4294
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
4295
choke me
 
4296
#else
 
4297
char (*f) () = $ac_func;
 
4298
#endif
 
4299
#ifdef __cplusplus
 
4300
}
 
4301
#endif
 
4302
 
 
4303
int
 
4304
main ()
 
4305
{
 
4306
return f != $ac_func;
 
4307
  ;
 
4308
  return 0;
 
4309
}
 
4310
_ACEOF
 
4311
rm -f conftest.$ac_objext conftest$ac_exeext
 
4312
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4313
  (eval $ac_link) 2>&5
 
4314
  ac_status=$?
 
4315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4316
  (exit $ac_status); } &&
 
4317
         { ac_try='test -s conftest$ac_exeext'
 
4318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4319
  (eval $ac_try) 2>&5
 
4320
  ac_status=$?
 
4321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4322
  (exit $ac_status); }; }; then
 
4323
  eval "$as_ac_var=yes"
 
4324
else
 
4325
  echo "$as_me: failed program was:" >&5
 
4326
sed 's/^/| /' conftest.$ac_ext >&5
 
4327
 
 
4328
eval "$as_ac_var=no"
 
4329
fi
 
4330
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4331
fi
 
4332
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
4333
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
4334
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
4335
  cat >>confdefs.h <<_ACEOF
 
4336
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4337
_ACEOF
 
4338
 
 
4339
fi
 
4340
done
 
4341
 
 
4342
 
 
4343
# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
 
4344
# uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
 
4345
# Irix 4.0.5F has the header but not the library.
 
4346
if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
 
4347
  ac_have_func=yes
 
4348
 
 
4349
cat >>confdefs.h <<\_ACEOF
 
4350
#define SVR4 1
 
4351
_ACEOF
 
4352
 
 
4353
fi
 
4354
 
 
4355
if test $ac_have_func = no; then
 
4356
  if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
 
4357
  echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
 
4358
echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
 
4359
if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
 
4360
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4361
fi
 
4362
echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
 
4363
echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
 
4364
else
 
4365
  # Is the header compilable?
 
4366
echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
 
4367
echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
 
4368
cat >conftest.$ac_ext <<_ACEOF
 
4369
#line $LINENO "configure"
 
4370
/* confdefs.h.  */
 
4371
_ACEOF
 
4372
cat confdefs.h >>conftest.$ac_ext
 
4373
cat >>conftest.$ac_ext <<_ACEOF
 
4374
/* end confdefs.h.  */
 
4375
$ac_includes_default
 
4376
#include <inq_stats/cpustats.h>
 
4377
_ACEOF
 
4378
rm -f conftest.$ac_objext
 
4379
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4380
  (eval $ac_compile) 2>&5
 
4381
  ac_status=$?
 
4382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4383
  (exit $ac_status); } &&
 
4384
         { ac_try='test -s conftest.$ac_objext'
 
4385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4386
  (eval $ac_try) 2>&5
 
4387
  ac_status=$?
 
4388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4389
  (exit $ac_status); }; }; then
 
4390
  ac_header_compiler=yes
 
4391
else
 
4392
  echo "$as_me: failed program was:" >&5
 
4393
sed 's/^/| /' conftest.$ac_ext >&5
 
4394
 
 
4395
ac_header_compiler=no
 
4396
fi
 
4397
rm -f conftest.$ac_objext conftest.$ac_ext
 
4398
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4399
echo "${ECHO_T}$ac_header_compiler" >&6
 
4400
 
 
4401
# Is the header present?
 
4402
echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
 
4403
echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
 
4404
cat >conftest.$ac_ext <<_ACEOF
 
4405
#line $LINENO "configure"
 
4406
/* confdefs.h.  */
 
4407
_ACEOF
 
4408
cat confdefs.h >>conftest.$ac_ext
 
4409
cat >>conftest.$ac_ext <<_ACEOF
 
4410
/* end confdefs.h.  */
 
4411
#include <inq_stats/cpustats.h>
 
4412
_ACEOF
 
4413
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4414
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4415
  ac_status=$?
 
4416
  grep -v '^ *+' conftest.er1 >conftest.err
 
4417
  rm -f conftest.er1
 
4418
  cat conftest.err >&5
 
4419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4420
  (exit $ac_status); } >/dev/null; then
 
4421
  if test -s conftest.err; then
 
4422
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4423
  else
 
4424
    ac_cpp_err=
 
4425
  fi
 
4426
else
 
4427
  ac_cpp_err=yes
 
4428
fi
 
4429
if test -z "$ac_cpp_err"; then
 
4430
  ac_header_preproc=yes
 
4431
else
 
4432
  echo "$as_me: failed program was:" >&5
 
4433
sed 's/^/| /' conftest.$ac_ext >&5
 
4434
 
 
4435
  ac_header_preproc=no
 
4436
fi
 
4437
rm -f conftest.err conftest.$ac_ext
 
4438
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4439
echo "${ECHO_T}$ac_header_preproc" >&6
 
4440
 
 
4441
# So?  What about this header?
 
4442
case $ac_header_compiler:$ac_header_preproc in
 
4443
  yes:no )
 
4444
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4445
echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4446
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
 
4447
echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
 
4448
    (
 
4449
      cat <<\_ASBOX
 
4450
## ------------------------------------ ##
 
4451
## Report this to bug-autoconf@gnu.org. ##
 
4452
## ------------------------------------ ##
 
4453
_ASBOX
 
4454
    ) |
 
4455
      sed "s/^/$as_me: WARNING:     /" >&2
 
4456
    ;;
 
4457
  no:yes )
 
4458
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
 
4459
echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
 
4460
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
 
4461
echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
 
4462
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
 
4463
echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
 
4464
    (
 
4465
      cat <<\_ASBOX
 
4466
## ------------------------------------ ##
 
4467
## Report this to bug-autoconf@gnu.org. ##
 
4468
## ------------------------------------ ##
 
4469
_ASBOX
 
4470
    ) |
 
4471
      sed "s/^/$as_me: WARNING:     /" >&2
 
4472
    ;;
 
4473
esac
 
4474
echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
 
4475
echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
 
4476
if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
 
4477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4478
else
 
4479
  ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
 
4480
fi
 
4481
echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
 
4482
echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
 
4483
 
 
4484
fi
 
4485
if test $ac_cv_header_inq_stats_cpustats_h = yes; then
 
4486
  ac_have_func=yes
 
4487
 
 
4488
cat >>confdefs.h <<\_ACEOF
 
4489
#define UMAX 1
 
4490
_ACEOF
 
4491
 
 
4492
 
 
4493
cat >>confdefs.h <<\_ACEOF
 
4494
#define UMAX4_3 1
 
4495
_ACEOF
 
4496
 
 
4497
fi
 
4498
 
 
4499
 
 
4500
fi
 
4501
 
 
4502
if test $ac_have_func = no; then
 
4503
  if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
 
4504
  echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
 
4505
echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
 
4506
if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
 
4507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4508
fi
 
4509
echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
 
4510
echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
 
4511
else
 
4512
  # Is the header compilable?
 
4513
echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
 
4514
echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
 
4515
cat >conftest.$ac_ext <<_ACEOF
 
4516
#line $LINENO "configure"
 
4517
/* confdefs.h.  */
 
4518
_ACEOF
 
4519
cat confdefs.h >>conftest.$ac_ext
 
4520
cat >>conftest.$ac_ext <<_ACEOF
 
4521
/* end confdefs.h.  */
 
4522
$ac_includes_default
 
4523
#include <sys/cpustats.h>
 
4524
_ACEOF
 
4525
rm -f conftest.$ac_objext
 
4526
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4527
  (eval $ac_compile) 2>&5
 
4528
  ac_status=$?
 
4529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4530
  (exit $ac_status); } &&
 
4531
         { ac_try='test -s conftest.$ac_objext'
 
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); }; }; then
 
4537
  ac_header_compiler=yes
 
4538
else
 
4539
  echo "$as_me: failed program was:" >&5
 
4540
sed 's/^/| /' conftest.$ac_ext >&5
 
4541
 
 
4542
ac_header_compiler=no
 
4543
fi
 
4544
rm -f conftest.$ac_objext conftest.$ac_ext
 
4545
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4546
echo "${ECHO_T}$ac_header_compiler" >&6
 
4547
 
 
4548
# Is the header present?
 
4549
echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
 
4550
echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
 
4551
cat >conftest.$ac_ext <<_ACEOF
 
4552
#line $LINENO "configure"
 
4553
/* confdefs.h.  */
 
4554
_ACEOF
 
4555
cat confdefs.h >>conftest.$ac_ext
 
4556
cat >>conftest.$ac_ext <<_ACEOF
 
4557
/* end confdefs.h.  */
 
4558
#include <sys/cpustats.h>
 
4559
_ACEOF
 
4560
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4561
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4562
  ac_status=$?
 
4563
  grep -v '^ *+' conftest.er1 >conftest.err
 
4564
  rm -f conftest.er1
 
4565
  cat conftest.err >&5
 
4566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4567
  (exit $ac_status); } >/dev/null; then
 
4568
  if test -s conftest.err; then
 
4569
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4570
  else
 
4571
    ac_cpp_err=
 
4572
  fi
 
4573
else
 
4574
  ac_cpp_err=yes
 
4575
fi
 
4576
if test -z "$ac_cpp_err"; then
 
4577
  ac_header_preproc=yes
 
4578
else
 
4579
  echo "$as_me: failed program was:" >&5
 
4580
sed 's/^/| /' conftest.$ac_ext >&5
 
4581
 
 
4582
  ac_header_preproc=no
 
4583
fi
 
4584
rm -f conftest.err conftest.$ac_ext
 
4585
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4586
echo "${ECHO_T}$ac_header_preproc" >&6
 
4587
 
 
4588
# So?  What about this header?
 
4589
case $ac_header_compiler:$ac_header_preproc in
 
4590
  yes:no )
 
4591
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4592
echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4593
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
 
4594
echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
 
4595
    (
 
4596
      cat <<\_ASBOX
 
4597
## ------------------------------------ ##
 
4598
## Report this to bug-autoconf@gnu.org. ##
 
4599
## ------------------------------------ ##
 
4600
_ASBOX
 
4601
    ) |
 
4602
      sed "s/^/$as_me: WARNING:     /" >&2
 
4603
    ;;
 
4604
  no:yes )
 
4605
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
 
4606
echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
 
4607
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
 
4608
echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
 
4609
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
 
4610
echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
 
4611
    (
 
4612
      cat <<\_ASBOX
 
4613
## ------------------------------------ ##
 
4614
## Report this to bug-autoconf@gnu.org. ##
 
4615
## ------------------------------------ ##
 
4616
_ASBOX
 
4617
    ) |
 
4618
      sed "s/^/$as_me: WARNING:     /" >&2
 
4619
    ;;
 
4620
esac
 
4621
echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
 
4622
echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
 
4623
if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
 
4624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4625
else
 
4626
  ac_cv_header_sys_cpustats_h=$ac_header_preproc
 
4627
fi
 
4628
echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
 
4629
echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
 
4630
 
 
4631
fi
 
4632
if test $ac_cv_header_sys_cpustats_h = yes; then
 
4633
  ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
 
4634
#define UMAX 1
 
4635
_ACEOF
 
4636
 
 
4637
fi
 
4638
 
 
4639
 
 
4640
fi
 
4641
 
 
4642
if test $ac_have_func = no; then
 
4643
 
 
4644
for ac_header in mach/mach.h
 
4645
do
 
4646
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4647
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4648
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4649
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4650
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4652
fi
 
4653
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4654
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4655
else
 
4656
  # Is the header compilable?
 
4657
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4658
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4659
cat >conftest.$ac_ext <<_ACEOF
 
4660
#line $LINENO "configure"
 
4661
/* confdefs.h.  */
 
4662
_ACEOF
 
4663
cat confdefs.h >>conftest.$ac_ext
 
4664
cat >>conftest.$ac_ext <<_ACEOF
 
4665
/* end confdefs.h.  */
 
4666
$ac_includes_default
 
4667
#include <$ac_header>
 
4668
_ACEOF
 
4669
rm -f conftest.$ac_objext
 
4670
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4671
  (eval $ac_compile) 2>&5
 
4672
  ac_status=$?
 
4673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4674
  (exit $ac_status); } &&
 
4675
         { ac_try='test -s conftest.$ac_objext'
 
4676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4677
  (eval $ac_try) 2>&5
 
4678
  ac_status=$?
 
4679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4680
  (exit $ac_status); }; }; then
 
4681
  ac_header_compiler=yes
 
4682
else
 
4683
  echo "$as_me: failed program was:" >&5
 
4684
sed 's/^/| /' conftest.$ac_ext >&5
 
4685
 
 
4686
ac_header_compiler=no
 
4687
fi
 
4688
rm -f conftest.$ac_objext conftest.$ac_ext
 
4689
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4690
echo "${ECHO_T}$ac_header_compiler" >&6
 
4691
 
 
4692
# Is the header present?
 
4693
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4694
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4695
cat >conftest.$ac_ext <<_ACEOF
 
4696
#line $LINENO "configure"
 
4697
/* confdefs.h.  */
 
4698
_ACEOF
 
4699
cat confdefs.h >>conftest.$ac_ext
 
4700
cat >>conftest.$ac_ext <<_ACEOF
 
4701
/* end confdefs.h.  */
 
4702
#include <$ac_header>
 
4703
_ACEOF
 
4704
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4705
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4706
  ac_status=$?
 
4707
  grep -v '^ *+' conftest.er1 >conftest.err
 
4708
  rm -f conftest.er1
 
4709
  cat conftest.err >&5
 
4710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4711
  (exit $ac_status); } >/dev/null; then
 
4712
  if test -s conftest.err; then
 
4713
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4714
  else
 
4715
    ac_cpp_err=
 
4716
  fi
 
4717
else
 
4718
  ac_cpp_err=yes
 
4719
fi
 
4720
if test -z "$ac_cpp_err"; then
 
4721
  ac_header_preproc=yes
 
4722
else
 
4723
  echo "$as_me: failed program was:" >&5
 
4724
sed 's/^/| /' conftest.$ac_ext >&5
 
4725
 
 
4726
  ac_header_preproc=no
 
4727
fi
 
4728
rm -f conftest.err conftest.$ac_ext
 
4729
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4730
echo "${ECHO_T}$ac_header_preproc" >&6
 
4731
 
 
4732
# So?  What about this header?
 
4733
case $ac_header_compiler:$ac_header_preproc in
 
4734
  yes:no )
 
4735
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4736
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4737
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4738
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4739
    (
 
4740
      cat <<\_ASBOX
 
4741
## ------------------------------------ ##
 
4742
## Report this to bug-autoconf@gnu.org. ##
 
4743
## ------------------------------------ ##
 
4744
_ASBOX
 
4745
    ) |
 
4746
      sed "s/^/$as_me: WARNING:     /" >&2
 
4747
    ;;
 
4748
  no:yes )
 
4749
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4750
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4751
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4752
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4753
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4754
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4755
    (
 
4756
      cat <<\_ASBOX
 
4757
## ------------------------------------ ##
 
4758
## Report this to bug-autoconf@gnu.org. ##
 
4759
## ------------------------------------ ##
 
4760
_ASBOX
 
4761
    ) |
 
4762
      sed "s/^/$as_me: WARNING:     /" >&2
 
4763
    ;;
 
4764
esac
 
4765
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4766
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4767
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4769
else
 
4770
  eval "$as_ac_Header=$ac_header_preproc"
 
4771
fi
 
4772
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4773
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4774
 
 
4775
fi
 
4776
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4777
  cat >>confdefs.h <<_ACEOF
 
4778
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4779
_ACEOF
 
4780
 
 
4781
fi
 
4782
 
 
4783
done
 
4784
 
 
4785
fi
 
4786
 
 
4787
 
 
4788
for ac_header in nlist.h
 
4789
do
 
4790
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4791
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4792
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4793
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4794
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4796
fi
 
4797
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4798
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4799
else
 
4800
  # Is the header compilable?
 
4801
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4802
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4803
cat >conftest.$ac_ext <<_ACEOF
 
4804
#line $LINENO "configure"
 
4805
/* confdefs.h.  */
 
4806
_ACEOF
 
4807
cat confdefs.h >>conftest.$ac_ext
 
4808
cat >>conftest.$ac_ext <<_ACEOF
 
4809
/* end confdefs.h.  */
 
4810
$ac_includes_default
 
4811
#include <$ac_header>
 
4812
_ACEOF
 
4813
rm -f conftest.$ac_objext
 
4814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4815
  (eval $ac_compile) 2>&5
 
4816
  ac_status=$?
 
4817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4818
  (exit $ac_status); } &&
 
4819
         { ac_try='test -s conftest.$ac_objext'
 
4820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4821
  (eval $ac_try) 2>&5
 
4822
  ac_status=$?
 
4823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4824
  (exit $ac_status); }; }; then
 
4825
  ac_header_compiler=yes
 
4826
else
 
4827
  echo "$as_me: failed program was:" >&5
 
4828
sed 's/^/| /' conftest.$ac_ext >&5
 
4829
 
 
4830
ac_header_compiler=no
 
4831
fi
 
4832
rm -f conftest.$ac_objext conftest.$ac_ext
 
4833
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4834
echo "${ECHO_T}$ac_header_compiler" >&6
 
4835
 
 
4836
# Is the header present?
 
4837
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4838
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4839
cat >conftest.$ac_ext <<_ACEOF
 
4840
#line $LINENO "configure"
 
4841
/* confdefs.h.  */
 
4842
_ACEOF
 
4843
cat confdefs.h >>conftest.$ac_ext
 
4844
cat >>conftest.$ac_ext <<_ACEOF
 
4845
/* end confdefs.h.  */
 
4846
#include <$ac_header>
 
4847
_ACEOF
 
4848
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4849
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4850
  ac_status=$?
 
4851
  grep -v '^ *+' conftest.er1 >conftest.err
 
4852
  rm -f conftest.er1
 
4853
  cat conftest.err >&5
 
4854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4855
  (exit $ac_status); } >/dev/null; then
 
4856
  if test -s conftest.err; then
 
4857
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4858
  else
 
4859
    ac_cpp_err=
 
4860
  fi
 
4861
else
 
4862
  ac_cpp_err=yes
 
4863
fi
 
4864
if test -z "$ac_cpp_err"; then
 
4865
  ac_header_preproc=yes
 
4866
else
 
4867
  echo "$as_me: failed program was:" >&5
 
4868
sed 's/^/| /' conftest.$ac_ext >&5
 
4869
 
 
4870
  ac_header_preproc=no
 
4871
fi
 
4872
rm -f conftest.err conftest.$ac_ext
 
4873
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4874
echo "${ECHO_T}$ac_header_preproc" >&6
 
4875
 
 
4876
# So?  What about this header?
 
4877
case $ac_header_compiler:$ac_header_preproc in
 
4878
  yes:no )
 
4879
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4880
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4881
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4882
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4883
    (
 
4884
      cat <<\_ASBOX
 
4885
## ------------------------------------ ##
 
4886
## Report this to bug-autoconf@gnu.org. ##
 
4887
## ------------------------------------ ##
 
4888
_ASBOX
 
4889
    ) |
 
4890
      sed "s/^/$as_me: WARNING:     /" >&2
 
4891
    ;;
 
4892
  no:yes )
 
4893
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4894
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4895
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4896
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4897
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4898
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4899
    (
 
4900
      cat <<\_ASBOX
 
4901
## ------------------------------------ ##
 
4902
## Report this to bug-autoconf@gnu.org. ##
 
4903
## ------------------------------------ ##
 
4904
_ASBOX
 
4905
    ) |
 
4906
      sed "s/^/$as_me: WARNING:     /" >&2
 
4907
    ;;
 
4908
esac
 
4909
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4910
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4911
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4913
else
 
4914
  eval "$as_ac_Header=$ac_header_preproc"
 
4915
fi
 
4916
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4917
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4918
 
 
4919
fi
 
4920
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4921
  cat >>confdefs.h <<_ACEOF
 
4922
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4923
_ACEOF
 
4924
 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
 
4925
echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
 
4926
if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
 
4927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4928
else
 
4929
  cat >conftest.$ac_ext <<_ACEOF
 
4930
#line $LINENO "configure"
 
4931
/* confdefs.h.  */
 
4932
_ACEOF
 
4933
cat confdefs.h >>conftest.$ac_ext
 
4934
cat >>conftest.$ac_ext <<_ACEOF
 
4935
/* end confdefs.h.  */
 
4936
#include <nlist.h>
 
4937
 
 
4938
int
 
4939
main ()
 
4940
{
 
4941
static struct nlist ac_aggr;
 
4942
if (ac_aggr.n_un.n_name)
 
4943
return 0;
 
4944
  ;
 
4945
  return 0;
 
4946
}
 
4947
_ACEOF
 
4948
rm -f conftest.$ac_objext
 
4949
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4950
  (eval $ac_compile) 2>&5
 
4951
  ac_status=$?
 
4952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4953
  (exit $ac_status); } &&
 
4954
         { ac_try='test -s conftest.$ac_objext'
 
4955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4956
  (eval $ac_try) 2>&5
 
4957
  ac_status=$?
 
4958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4959
  (exit $ac_status); }; }; then
 
4960
  ac_cv_member_struct_nlist_n_un_n_name=yes
 
4961
else
 
4962
  echo "$as_me: failed program was:" >&5
 
4963
sed 's/^/| /' conftest.$ac_ext >&5
 
4964
 
 
4965
cat >conftest.$ac_ext <<_ACEOF
 
4966
#line $LINENO "configure"
 
4967
/* confdefs.h.  */
 
4968
_ACEOF
 
4969
cat confdefs.h >>conftest.$ac_ext
 
4970
cat >>conftest.$ac_ext <<_ACEOF
 
4971
/* end confdefs.h.  */
 
4972
#include <nlist.h>
 
4973
 
 
4974
int
 
4975
main ()
 
4976
{
 
4977
static struct nlist ac_aggr;
 
4978
if (sizeof ac_aggr.n_un.n_name)
 
4979
return 0;
 
4980
  ;
 
4981
  return 0;
 
4982
}
 
4983
_ACEOF
 
4984
rm -f conftest.$ac_objext
 
4985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4986
  (eval $ac_compile) 2>&5
 
4987
  ac_status=$?
 
4988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4989
  (exit $ac_status); } &&
 
4990
         { ac_try='test -s conftest.$ac_objext'
 
4991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4992
  (eval $ac_try) 2>&5
 
4993
  ac_status=$?
 
4994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4995
  (exit $ac_status); }; }; then
 
4996
  ac_cv_member_struct_nlist_n_un_n_name=yes
 
4997
else
 
4998
  echo "$as_me: failed program was:" >&5
 
4999
sed 's/^/| /' conftest.$ac_ext >&5
 
5000
 
 
5001
ac_cv_member_struct_nlist_n_un_n_name=no
 
5002
fi
 
5003
rm -f conftest.$ac_objext conftest.$ac_ext
 
5004
fi
 
5005
rm -f conftest.$ac_objext conftest.$ac_ext
 
5006
fi
 
5007
echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
 
5008
echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
 
5009
if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
 
5010
 
 
5011
cat >>confdefs.h <<_ACEOF
 
5012
#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
 
5013
_ACEOF
 
5014
 
 
5015
 
 
5016
cat >>confdefs.h <<\_ACEOF
 
5017
#define NLIST_NAME_UNION 1
 
5018
_ACEOF
 
5019
 
 
5020
fi
 
5021
 
 
5022
 
 
5023
fi
 
5024
 
 
5025
done
 
5026
 
 
5027
fi
 
5028
done
 
5029
 
 
5030
 
 
5031
# Some definitions of getloadavg require that the program be installed setgid.
 
5032
echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
 
5033
echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
 
5034
if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
 
5035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5036
else
 
5037
  cat >conftest.$ac_ext <<_ACEOF
 
5038
#line $LINENO "configure"
 
5039
/* confdefs.h.  */
 
5040
_ACEOF
 
5041
cat confdefs.h >>conftest.$ac_ext
 
5042
cat >>conftest.$ac_ext <<_ACEOF
 
5043
/* end confdefs.h.  */
 
5044
#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
 
5045
#ifdef LDAV_PRIVILEGED
 
5046
Yowza Am I SETGID yet
 
5047
#endif
 
5048
_ACEOF
 
5049
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5050
  $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
 
5051
  ac_cv_func_getloadavg_setgid=yes
 
5052
else
 
5053
  ac_cv_func_getloadavg_setgid=no
 
5054
fi
 
5055
rm -f conftest*
 
5056
 
 
5057
fi
 
5058
echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
 
5059
echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
 
5060
if test $ac_cv_func_getloadavg_setgid = yes; then
 
5061
  NEED_SETGID=true
 
5062
 
 
5063
cat >>confdefs.h <<\_ACEOF
 
5064
#define GETLOADAVG_PRIVILEGED 1
 
5065
_ACEOF
 
5066
 
 
5067
else
 
5068
  NEED_SETGID=false
 
5069
fi
 
5070
 
 
5071
if test $ac_cv_func_getloadavg_setgid = yes; then
 
5072
  echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
 
5073
echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
 
5074
if test "${ac_cv_group_kmem+set}" = set; then
 
5075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5076
else
 
5077
   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
 
5078
  ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
 
5079
  # If we got an error (system does not support symlinks), try without -L.
 
5080
  test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
 
5081
  ac_cv_group_kmem=`echo $ac_ls_output \
 
5082
    | sed -ne 's/[      ][      ]*/ /g;
 
5083
               s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
 
5084
               / /s/.* //;p;'`
 
5085
 
 
5086
fi
 
5087
echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
 
5088
echo "${ECHO_T}$ac_cv_group_kmem" >&6
 
5089
  KMEM_GROUP=$ac_cv_group_kmem
 
5090
fi
 
5091
if test "x$ac_save_LIBS" = x; then
 
5092
  GETLOADAVG_LIBS=$LIBS
 
5093
else
 
5094
  GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
 
5095
fi
 
5096
LIBS=$ac_save_LIBS
 
5097
 
 
5098
 
 
5099
srcdir=$saved_srcdir
 
5100
 
 
5101
echo "$as_me:$LINENO: checking for working strtod" >&5
 
5102
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
 
5103
if test "${ac_cv_func_strtod+set}" = set; then
 
5104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5105
else
 
5106
  if test "$cross_compiling" = yes; then
 
5107
  ac_cv_func_strtod=no
 
5108
else
 
5109
  cat >conftest.$ac_ext <<_ACEOF
 
5110
#line $LINENO "configure"
 
5111
/* confdefs.h.  */
 
5112
_ACEOF
 
5113
cat confdefs.h >>conftest.$ac_ext
 
5114
cat >>conftest.$ac_ext <<_ACEOF
 
5115
/* end confdefs.h.  */
 
5116
 
 
5117
double strtod ();
 
5118
int
 
5119
main()
 
5120
{
 
5121
  {
 
5122
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
 
5123
    char *string = " +69";
 
5124
    char *term;
 
5125
    double value;
 
5126
    value = strtod (string, &term);
 
5127
    if (value != 69 || term != (string + 4))
 
5128
      exit (1);
 
5129
  }
 
5130
 
 
5131
  {
 
5132
    /* Under Solaris 2.4, strtod returns the wrong value for the
 
5133
       terminating character under some conditions.  */
 
5134
    char *string = "NaN";
 
5135
    char *term;
 
5136
    strtod (string, &term);
 
5137
    if (term != string && *(term - 1) == 0)
 
5138
      exit (1);
 
5139
  }
 
5140
  exit (0);
 
5141
}
 
5142
 
 
5143
_ACEOF
 
5144
rm -f conftest$ac_exeext
 
5145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5146
  (eval $ac_link) 2>&5
 
5147
  ac_status=$?
 
5148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5149
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5151
  (eval $ac_try) 2>&5
 
5152
  ac_status=$?
 
5153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5154
  (exit $ac_status); }; }; then
 
5155
  ac_cv_func_strtod=yes
 
5156
else
 
5157
  echo "$as_me: program exited with status $ac_status" >&5
 
5158
echo "$as_me: failed program was:" >&5
 
5159
sed 's/^/| /' conftest.$ac_ext >&5
 
5160
 
 
5161
( exit $ac_status )
 
5162
ac_cv_func_strtod=no
 
5163
fi
 
5164
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5165
fi
 
5166
fi
 
5167
echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
 
5168
echo "${ECHO_T}$ac_cv_func_strtod" >&6
 
5169
if test $ac_cv_func_strtod = no; then
 
5170
  LIBOBJS="$LIBOBJS strtod.$ac_objext"
 
5171
echo "$as_me:$LINENO: checking for pow" >&5
 
5172
echo $ECHO_N "checking for pow... $ECHO_C" >&6
 
5173
if test "${ac_cv_func_pow+set}" = set; then
 
5174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5175
else
 
5176
  cat >conftest.$ac_ext <<_ACEOF
 
5177
#line $LINENO "configure"
 
5178
/* confdefs.h.  */
 
5179
_ACEOF
 
5180
cat confdefs.h >>conftest.$ac_ext
 
5181
cat >>conftest.$ac_ext <<_ACEOF
 
5182
/* end confdefs.h.  */
 
5183
/* System header to define __stub macros and hopefully few prototypes,
 
5184
    which can conflict with char pow (); below.
 
5185
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5186
    <limits.h> exists even on freestanding compilers.  */
 
5187
#ifdef __STDC__
 
5188
# include <limits.h>
 
5189
#else
 
5190
# include <assert.h>
 
5191
#endif
 
5192
/* Override any gcc2 internal prototype to avoid an error.  */
 
5193
#ifdef __cplusplus
 
5194
extern "C"
 
5195
{
 
5196
#endif
 
5197
/* We use char because int might match the return type of a gcc2
 
5198
   builtin and then its argument prototype would still apply.  */
 
5199
char pow ();
 
5200
/* The GNU C library defines this for functions which it implements
 
5201
    to always fail with ENOSYS.  Some functions are actually named
 
5202
    something starting with __ and the normal name is an alias.  */
 
5203
#if defined (__stub_pow) || defined (__stub___pow)
 
5204
choke me
 
5205
#else
 
5206
char (*f) () = pow;
 
5207
#endif
 
5208
#ifdef __cplusplus
 
5209
}
 
5210
#endif
 
5211
 
 
5212
int
 
5213
main ()
 
5214
{
 
5215
return f != pow;
 
5216
  ;
 
5217
  return 0;
 
5218
}
 
5219
_ACEOF
 
5220
rm -f conftest.$ac_objext conftest$ac_exeext
 
5221
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5222
  (eval $ac_link) 2>&5
 
5223
  ac_status=$?
 
5224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5225
  (exit $ac_status); } &&
 
5226
         { ac_try='test -s conftest$ac_exeext'
 
5227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5228
  (eval $ac_try) 2>&5
 
5229
  ac_status=$?
 
5230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5231
  (exit $ac_status); }; }; then
 
5232
  ac_cv_func_pow=yes
 
5233
else
 
5234
  echo "$as_me: failed program was:" >&5
 
5235
sed 's/^/| /' conftest.$ac_ext >&5
 
5236
 
 
5237
ac_cv_func_pow=no
 
5238
fi
 
5239
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5240
fi
 
5241
echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
 
5242
echo "${ECHO_T}$ac_cv_func_pow" >&6
 
5243
 
 
5244
if test $ac_cv_func_pow = no; then
 
5245
  echo "$as_me:$LINENO: checking for pow in -lm" >&5
 
5246
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
 
5247
if test "${ac_cv_lib_m_pow+set}" = set; then
 
5248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5249
else
 
5250
  ac_check_lib_save_LIBS=$LIBS
 
5251
LIBS="-lm  $LIBS"
 
5252
cat >conftest.$ac_ext <<_ACEOF
 
5253
#line $LINENO "configure"
 
5254
/* confdefs.h.  */
 
5255
_ACEOF
 
5256
cat confdefs.h >>conftest.$ac_ext
 
5257
cat >>conftest.$ac_ext <<_ACEOF
 
5258
/* end confdefs.h.  */
 
5259
 
 
5260
/* Override any gcc2 internal prototype to avoid an error.  */
 
5261
#ifdef __cplusplus
 
5262
extern "C"
 
5263
#endif
 
5264
/* We use char because int might match the return type of a gcc2
 
5265
   builtin and then its argument prototype would still apply.  */
 
5266
char pow ();
 
5267
int
 
5268
main ()
 
5269
{
 
5270
pow ();
 
5271
  ;
 
5272
  return 0;
 
5273
}
 
5274
_ACEOF
 
5275
rm -f conftest.$ac_objext conftest$ac_exeext
 
5276
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5277
  (eval $ac_link) 2>&5
 
5278
  ac_status=$?
 
5279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5280
  (exit $ac_status); } &&
 
5281
         { ac_try='test -s conftest$ac_exeext'
 
5282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5283
  (eval $ac_try) 2>&5
 
5284
  ac_status=$?
 
5285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5286
  (exit $ac_status); }; }; then
 
5287
  ac_cv_lib_m_pow=yes
 
5288
else
 
5289
  echo "$as_me: failed program was:" >&5
 
5290
sed 's/^/| /' conftest.$ac_ext >&5
 
5291
 
 
5292
ac_cv_lib_m_pow=no
 
5293
fi
 
5294
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5295
LIBS=$ac_check_lib_save_LIBS
 
5296
fi
 
5297
echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
 
5298
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
 
5299
if test $ac_cv_lib_m_pow = yes; then
 
5300
  POW_LIB=-lm
 
5301
else
 
5302
  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
 
5303
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
 
5304
fi
 
5305
 
 
5306
fi
 
5307
 
 
5308
fi
 
5309
 
 
5310
if test -n "$ac_tool_prefix"; then
 
5311
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5312
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5313
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5315
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5317
else
 
5318
  if test -n "$RANLIB"; then
 
5319
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5320
else
 
5321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5322
for as_dir in $PATH
 
5323
do
 
5324
  IFS=$as_save_IFS
 
5325
  test -z "$as_dir" && as_dir=.
 
5326
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5327
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5328
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5329
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5330
    break 2
 
5331
  fi
 
5332
done
 
5333
done
 
5334
 
 
5335
fi
 
5336
fi
 
5337
RANLIB=$ac_cv_prog_RANLIB
 
5338
if test -n "$RANLIB"; then
 
5339
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5340
echo "${ECHO_T}$RANLIB" >&6
 
5341
else
 
5342
  echo "$as_me:$LINENO: result: no" >&5
 
5343
echo "${ECHO_T}no" >&6
 
5344
fi
 
5345
 
 
5346
fi
 
5347
if test -z "$ac_cv_prog_RANLIB"; then
 
5348
  ac_ct_RANLIB=$RANLIB
 
5349
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5350
set dummy ranlib; ac_word=$2
 
5351
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5352
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5353
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5354
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5355
else
 
5356
  if test -n "$ac_ct_RANLIB"; then
 
5357
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5358
else
 
5359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5360
for as_dir in $PATH
 
5361
do
 
5362
  IFS=$as_save_IFS
 
5363
  test -z "$as_dir" && as_dir=.
 
5364
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5365
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5366
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5367
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5368
    break 2
 
5369
  fi
 
5370
done
 
5371
done
 
5372
 
 
5373
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5374
fi
 
5375
fi
 
5376
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5377
if test -n "$ac_ct_RANLIB"; then
 
5378
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5379
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5380
else
 
5381
  echo "$as_me:$LINENO: result: no" >&5
 
5382
echo "${ECHO_T}no" >&6
 
5383
fi
 
5384
 
 
5385
  RANLIB=$ac_ct_RANLIB
 
5386
else
 
5387
  RANLIB="$ac_cv_prog_RANLIB"
 
5388
fi
 
5389
 
 
5390
 
 
5391
# Extract the first word of "aclocal", so it can be a program name with args.
 
5392
set dummy aclocal; ac_word=$2
 
5393
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5394
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5395
if test "${ac_cv_path_ACLOCAL+set}" = set; then
 
5396
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5397
else
 
5398
  case $ACLOCAL in
 
5399
  [\\/]* | ?:[\\/]*)
 
5400
  ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
 
5401
  ;;
 
5402
  *)
 
5403
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5404
for as_dir in $PATH
 
5405
do
 
5406
  IFS=$as_save_IFS
 
5407
  test -z "$as_dir" && as_dir=.
 
5408
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5409
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5410
    ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
 
5411
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5412
    break 2
 
5413
  fi
 
5414
done
 
5415
done
 
5416
 
 
5417
  ;;
 
5418
esac
 
5419
fi
 
5420
ACLOCAL=$ac_cv_path_ACLOCAL
 
5421
 
 
5422
if test -n "$ACLOCAL"; then
 
5423
  echo "$as_me:$LINENO: result: $ACLOCAL" >&5
 
5424
echo "${ECHO_T}$ACLOCAL" >&6
 
5425
else
 
5426
  echo "$as_me:$LINENO: result: no" >&5
 
5427
echo "${ECHO_T}no" >&6
 
5428
fi
 
5429
 
 
5430
# Extract the first word of "automake", so it can be a program name with args.
 
5431
set dummy automake; ac_word=$2
 
5432
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5433
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5434
if test "${ac_cv_path_AUTOMAKE+set}" = set; then
 
5435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5436
else
 
5437
  case $AUTOMAKE in
 
5438
  [\\/]* | ?:[\\/]*)
 
5439
  ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
 
5440
  ;;
 
5441
  *)
 
5442
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5443
for as_dir in $PATH
 
5444
do
 
5445
  IFS=$as_save_IFS
 
5446
  test -z "$as_dir" && as_dir=.
 
5447
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5448
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5449
    ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
 
5450
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5451
    break 2
 
5452
  fi
 
5453
done
 
5454
done
 
5455
 
 
5456
  ;;
 
5457
esac
 
5458
fi
 
5459
AUTOMAKE=$ac_cv_path_AUTOMAKE
 
5460
 
 
5461
if test -n "$AUTOMAKE"; then
 
5462
  echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
 
5463
echo "${ECHO_T}$AUTOMAKE" >&6
 
5464
else
 
5465
  echo "$as_me:$LINENO: result: no" >&5
 
5466
echo "${ECHO_T}no" >&6
 
5467
fi
 
5468
 
 
5469
# Extract the first word of "autoconf", so it can be a program name with args.
 
5470
set dummy autoconf; ac_word=$2
 
5471
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5473
if test "${ac_cv_path_AUTOCONF+set}" = set; then
 
5474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5475
else
 
5476
  case $AUTOCONF in
 
5477
  [\\/]* | ?:[\\/]*)
 
5478
  ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
 
5479
  ;;
 
5480
  *)
 
5481
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5482
for as_dir in $PATH
 
5483
do
 
5484
  IFS=$as_save_IFS
 
5485
  test -z "$as_dir" && as_dir=.
 
5486
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5487
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5488
    ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
 
5489
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5490
    break 2
 
5491
  fi
 
5492
done
 
5493
done
 
5494
 
 
5495
  ;;
 
5496
esac
 
5497
fi
 
5498
AUTOCONF=$ac_cv_path_AUTOCONF
 
5499
 
 
5500
if test -n "$AUTOCONF"; then
 
5501
  echo "$as_me:$LINENO: result: $AUTOCONF" >&5
 
5502
echo "${ECHO_T}$AUTOCONF" >&6
 
5503
else
 
5504
  echo "$as_me:$LINENO: result: no" >&5
 
5505
echo "${ECHO_T}no" >&6
 
5506
fi
 
5507
 
 
5508
# Extract the first word of "autoheader", so it can be a program name with args.
 
5509
set dummy autoheader; ac_word=$2
 
5510
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5511
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5512
if test "${ac_cv_path_AUTOHEADER+set}" = set; then
 
5513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5514
else
 
5515
  case $AUTOHEADER in
 
5516
  [\\/]* | ?:[\\/]*)
 
5517
  ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
 
5518
  ;;
 
5519
  *)
 
5520
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5521
for as_dir in $PATH
 
5522
do
 
5523
  IFS=$as_save_IFS
 
5524
  test -z "$as_dir" && as_dir=.
 
5525
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5526
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5527
    ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
 
5528
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5529
    break 2
 
5530
  fi
 
5531
done
 
5532
done
 
5533
 
 
5534
  ;;
 
5535
esac
 
5536
fi
 
5537
AUTOHEADER=$ac_cv_path_AUTOHEADER
 
5538
 
 
5539
if test -n "$AUTOHEADER"; then
 
5540
  echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
 
5541
echo "${ECHO_T}$AUTOHEADER" >&6
 
5542
else
 
5543
  echo "$as_me:$LINENO: result: no" >&5
 
5544
echo "${ECHO_T}no" >&6
 
5545
fi
 
5546
 
 
5547
 
 
5548
PLUGIN_TEST=`echo $srcdir/plugins/t/*.t|sed -e 's,\.*/plugins/,,g'`
 
5549
 
 
5550
SCRIPT_TEST=`echo $srcdir/plugins-scripts/t/*.t|sed -e 's,\.*/plugins-scripts/,,g'`
 
5551
 
 
5552
WARRANTY="The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugins under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n"
 
5553
 
 
5554
 
 
5555
SUPPORT="Send email to nagios-users@lists.sourceforge.net if you have questions\nregarding use of this software. To submit patches or suggest improvements,\nsend email to nagiosplug-devel@lists.sourceforge.net\n"
 
5556
 
 
5557
 
 
5558
 
 
5559
# Check whether --with-cgiurl or --without-cgiurl was given.
 
5560
if test "${with_cgiurl+set}" = set; then
 
5561
  withval="$with_cgiurl"
 
5562
  cgiurl=$withval
 
5563
else
 
5564
  cgiurl=/nagios/cgi-bin
 
5565
fi;
 
5566
CGIURL="$cgiurl"
 
5567
 
 
5568
cat >>confdefs.h <<_ACEOF
 
5569
#define CGIURL "$CGIURL"
 
5570
_ACEOF
 
5571
 
 
5572
 
 
5573
 
 
5574
# Check whether --with-nagios_user or --without-nagios_user was given.
 
5575
if test "${with_nagios_user+set}" = set; then
 
5576
  withval="$with_nagios_user"
 
5577
  nagios_usr=$withval
 
5578
else
 
5579
  nagios_usr=nagios
 
5580
fi;
 
5581
 
 
5582
# Check whether --with-nagios_group or --without-nagios_group was given.
 
5583
if test "${with_nagios_group+set}" = set; then
 
5584
  withval="$with_nagios_group"
 
5585
  nagios_grp=$withval
 
5586
else
 
5587
  nagios_grp=nagios
 
5588
fi;
 
5589
 
 
5590
 
 
5591
INSTALL_OPTS="-o $nagios_usr -g $nagios_grp"
 
5592
 
 
5593
 
 
5594
 
 
5595
# Check whether --with-trusted_path or --without-trusted_path was given.
 
5596
if test "${with_trusted_path+set}" = set; then
 
5597
  withval="$with_trusted_path"
 
5598
  trusted_path=$withval
 
5599
else
 
5600
  trusted_path=/bin:/sbin:/usr/bin:/usr/sbin
 
5601
fi;
 
5602
 
 
5603
 
 
5604
EXTRAS=
 
5605
 
 
5606
LDFLAGS="$LDFLAGS -L."
 
5607
 
 
5608
ac_cv_uname_m=`uname -m`
 
5609
ac_cv_uname_s=`uname -s`
 
5610
ac_cv_uname_r=`uname -r`
 
5611
ac_cv_uname_v=`uname -v`
 
5612
 
 
5613
# Extract the first word of "python", so it can be a program name with args.
 
5614
set dummy python; ac_word=$2
 
5615
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5617
if test "${ac_cv_path_PYTHON+set}" = set; then
 
5618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5619
else
 
5620
  case $PYTHON in
 
5621
  [\\/]* | ?:[\\/]*)
 
5622
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
5623
  ;;
 
5624
  *)
 
5625
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5626
for as_dir in $PATH
 
5627
do
 
5628
  IFS=$as_save_IFS
 
5629
  test -z "$as_dir" && as_dir=.
 
5630
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5631
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5632
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
5633
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5634
    break 2
 
5635
  fi
 
5636
done
 
5637
done
 
5638
 
 
5639
  ;;
 
5640
esac
 
5641
fi
 
5642
PYTHON=$ac_cv_path_PYTHON
 
5643
 
 
5644
if test -n "$PYTHON"; then
 
5645
  echo "$as_me:$LINENO: result: $PYTHON" >&5
 
5646
echo "${ECHO_T}$PYTHON" >&6
 
5647
else
 
5648
  echo "$as_me:$LINENO: result: no" >&5
 
5649
echo "${ECHO_T}no" >&6
 
5650
fi
 
5651
 
 
5652
# Extract the first word of "perl", so it can be a program name with args.
 
5653
set dummy perl; ac_word=$2
 
5654
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5655
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5656
if test "${ac_cv_path_PERL+set}" = set; then
 
5657
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5658
else
 
5659
  case $PERL in
 
5660
  [\\/]* | ?:[\\/]*)
 
5661
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
5662
  ;;
 
5663
  *)
 
5664
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5665
for as_dir in $PATH
 
5666
do
 
5667
  IFS=$as_save_IFS
 
5668
  test -z "$as_dir" && as_dir=.
 
5669
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5670
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5671
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
5672
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5673
    break 2
 
5674
  fi
 
5675
done
 
5676
done
 
5677
 
 
5678
  ;;
 
5679
esac
 
5680
fi
 
5681
PERL=$ac_cv_path_PERL
 
5682
 
 
5683
if test -n "$PERL"; then
 
5684
  echo "$as_me:$LINENO: result: $PERL" >&5
 
5685
echo "${ECHO_T}$PERL" >&6
 
5686
else
 
5687
  echo "$as_me:$LINENO: result: no" >&5
 
5688
echo "${ECHO_T}no" >&6
 
5689
fi
 
5690
 
 
5691
# Extract the first word of "sh", so it can be a program name with args.
 
5692
set dummy sh; ac_word=$2
 
5693
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5694
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5695
if test "${ac_cv_path_SH+set}" = set; then
 
5696
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5697
else
 
5698
  case $SH in
 
5699
  [\\/]* | ?:[\\/]*)
 
5700
  ac_cv_path_SH="$SH" # Let the user override the test with a path.
 
5701
  ;;
 
5702
  *)
 
5703
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5704
for as_dir in $PATH
 
5705
do
 
5706
  IFS=$as_save_IFS
 
5707
  test -z "$as_dir" && as_dir=.
 
5708
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5709
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5710
    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
 
5711
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5712
    break 2
 
5713
  fi
 
5714
done
 
5715
done
 
5716
 
 
5717
  ;;
 
5718
esac
 
5719
fi
 
5720
SH=$ac_cv_path_SH
 
5721
 
 
5722
if test -n "$SH"; then
 
5723
  echo "$as_me:$LINENO: result: $SH" >&5
 
5724
echo "${ECHO_T}$SH" >&6
 
5725
else
 
5726
  echo "$as_me:$LINENO: result: no" >&5
 
5727
echo "${ECHO_T}no" >&6
 
5728
fi
 
5729
 
 
5730
 
 
5731
# Extract the first word of "hostname", so it can be a program name with args.
 
5732
set dummy hostname; ac_word=$2
 
5733
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5734
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5735
if test "${ac_cv_path_HOSTNAME+set}" = set; then
 
5736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5737
else
 
5738
  case $HOSTNAME in
 
5739
  [\\/]* | ?:[\\/]*)
 
5740
  ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path.
 
5741
  ;;
 
5742
  *)
 
5743
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5744
for as_dir in $PATH
 
5745
do
 
5746
  IFS=$as_save_IFS
 
5747
  test -z "$as_dir" && as_dir=.
 
5748
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5749
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5750
    ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext"
 
5751
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5752
    break 2
 
5753
  fi
 
5754
done
 
5755
done
 
5756
 
 
5757
  ;;
 
5758
esac
 
5759
fi
 
5760
HOSTNAME=$ac_cv_path_HOSTNAME
 
5761
 
 
5762
if test -n "$HOSTNAME"; then
 
5763
  echo "$as_me:$LINENO: result: $HOSTNAME" >&5
 
5764
echo "${ECHO_T}$HOSTNAME" >&6
 
5765
else
 
5766
  echo "$as_me:$LINENO: result: no" >&5
 
5767
echo "${ECHO_T}no" >&6
 
5768
fi
 
5769
 
 
5770
# Extract the first word of "basename", so it can be a program name with args.
 
5771
set dummy basename; ac_word=$2
 
5772
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5773
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5774
if test "${ac_cv_path_BASENAME+set}" = set; then
 
5775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5776
else
 
5777
  case $BASENAME in
 
5778
  [\\/]* | ?:[\\/]*)
 
5779
  ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
 
5780
  ;;
 
5781
  *)
 
5782
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5783
for as_dir in $PATH
 
5784
do
 
5785
  IFS=$as_save_IFS
 
5786
  test -z "$as_dir" && as_dir=.
 
5787
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5788
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5789
    ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
 
5790
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5791
    break 2
 
5792
  fi
 
5793
done
 
5794
done
 
5795
 
 
5796
  ;;
 
5797
esac
 
5798
fi
 
5799
BASENAME=$ac_cv_path_BASENAME
 
5800
 
 
5801
if test -n "$BASENAME"; then
 
5802
  echo "$as_me:$LINENO: result: $BASENAME" >&5
 
5803
echo "${ECHO_T}$BASENAME" >&6
 
5804
else
 
5805
  echo "$as_me:$LINENO: result: no" >&5
 
5806
echo "${ECHO_T}no" >&6
 
5807
fi
 
5808
 
 
5809
 
 
5810
 
 
5811
 
 
5812
echo "$as_me:$LINENO: checking for main in -ldce" >&5
 
5813
echo $ECHO_N "checking for main in -ldce... $ECHO_C" >&6
 
5814
if test "${ac_cv_lib_dce_main+set}" = set; then
 
5815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5816
else
 
5817
  ac_check_lib_save_LIBS=$LIBS
 
5818
LIBS="-ldce  $LIBS"
 
5819
cat >conftest.$ac_ext <<_ACEOF
 
5820
#line $LINENO "configure"
 
5821
/* confdefs.h.  */
 
5822
_ACEOF
 
5823
cat confdefs.h >>conftest.$ac_ext
 
5824
cat >>conftest.$ac_ext <<_ACEOF
 
5825
/* end confdefs.h.  */
 
5826
 
 
5827
 
 
5828
int
 
5829
main ()
 
5830
{
 
5831
main ();
 
5832
  ;
 
5833
  return 0;
 
5834
}
 
5835
_ACEOF
 
5836
rm -f conftest.$ac_objext conftest$ac_exeext
 
5837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5838
  (eval $ac_link) 2>&5
 
5839
  ac_status=$?
 
5840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5841
  (exit $ac_status); } &&
 
5842
         { ac_try='test -s conftest$ac_exeext'
 
5843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5844
  (eval $ac_try) 2>&5
 
5845
  ac_status=$?
 
5846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5847
  (exit $ac_status); }; }; then
 
5848
  ac_cv_lib_dce_main=yes
 
5849
else
 
5850
  echo "$as_me: failed program was:" >&5
 
5851
sed 's/^/| /' conftest.$ac_ext >&5
 
5852
 
 
5853
ac_cv_lib_dce_main=no
 
5854
fi
 
5855
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5856
LIBS=$ac_check_lib_save_LIBS
 
5857
fi
 
5858
echo "$as_me:$LINENO: result: $ac_cv_lib_dce_main" >&5
 
5859
echo "${ECHO_T}$ac_cv_lib_dce_main" >&6
 
5860
if test $ac_cv_lib_dce_main = yes; then
 
5861
  SOCKETLIBS="$SOCKETLIBS -ldce"
 
5862
fi
 
5863
 
 
5864
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
 
5865
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
 
5866
if test "${ac_cv_lib_nsl_main+set}" = set; then
 
5867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5868
else
 
5869
  ac_check_lib_save_LIBS=$LIBS
 
5870
LIBS="-lnsl  $LIBS"
 
5871
cat >conftest.$ac_ext <<_ACEOF
 
5872
#line $LINENO "configure"
 
5873
/* confdefs.h.  */
 
5874
_ACEOF
 
5875
cat confdefs.h >>conftest.$ac_ext
 
5876
cat >>conftest.$ac_ext <<_ACEOF
 
5877
/* end confdefs.h.  */
 
5878
 
 
5879
 
 
5880
int
 
5881
main ()
 
5882
{
 
5883
main ();
 
5884
  ;
 
5885
  return 0;
 
5886
}
 
5887
_ACEOF
 
5888
rm -f conftest.$ac_objext conftest$ac_exeext
 
5889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5890
  (eval $ac_link) 2>&5
 
5891
  ac_status=$?
 
5892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5893
  (exit $ac_status); } &&
 
5894
         { ac_try='test -s conftest$ac_exeext'
 
5895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5896
  (eval $ac_try) 2>&5
 
5897
  ac_status=$?
 
5898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5899
  (exit $ac_status); }; }; then
 
5900
  ac_cv_lib_nsl_main=yes
 
5901
else
 
5902
  echo "$as_me: failed program was:" >&5
 
5903
sed 's/^/| /' conftest.$ac_ext >&5
 
5904
 
 
5905
ac_cv_lib_nsl_main=no
 
5906
fi
 
5907
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5908
LIBS=$ac_check_lib_save_LIBS
 
5909
fi
 
5910
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
 
5911
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
 
5912
if test $ac_cv_lib_nsl_main = yes; then
 
5913
  SOCKETLIBS="$SOCKETLIBS -lnsl"
 
5914
fi
 
5915
 
 
5916
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
 
5917
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
 
5918
if test "${ac_cv_lib_socket_socket+set}" = set; then
 
5919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5920
else
 
5921
  ac_check_lib_save_LIBS=$LIBS
 
5922
LIBS="-lsocket  $LIBS"
 
5923
cat >conftest.$ac_ext <<_ACEOF
 
5924
#line $LINENO "configure"
 
5925
/* confdefs.h.  */
 
5926
_ACEOF
 
5927
cat confdefs.h >>conftest.$ac_ext
 
5928
cat >>conftest.$ac_ext <<_ACEOF
 
5929
/* end confdefs.h.  */
 
5930
 
 
5931
/* Override any gcc2 internal prototype to avoid an error.  */
 
5932
#ifdef __cplusplus
 
5933
extern "C"
 
5934
#endif
 
5935
/* We use char because int might match the return type of a gcc2
 
5936
   builtin and then its argument prototype would still apply.  */
 
5937
char socket ();
 
5938
int
 
5939
main ()
 
5940
{
 
5941
socket ();
 
5942
  ;
 
5943
  return 0;
 
5944
}
 
5945
_ACEOF
 
5946
rm -f conftest.$ac_objext conftest$ac_exeext
 
5947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5948
  (eval $ac_link) 2>&5
 
5949
  ac_status=$?
 
5950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5951
  (exit $ac_status); } &&
 
5952
         { ac_try='test -s conftest$ac_exeext'
 
5953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5954
  (eval $ac_try) 2>&5
 
5955
  ac_status=$?
 
5956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5957
  (exit $ac_status); }; }; then
 
5958
  ac_cv_lib_socket_socket=yes
 
5959
else
 
5960
  echo "$as_me: failed program was:" >&5
 
5961
sed 's/^/| /' conftest.$ac_ext >&5
 
5962
 
 
5963
ac_cv_lib_socket_socket=no
 
5964
fi
 
5965
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5966
LIBS=$ac_check_lib_save_LIBS
 
5967
fi
 
5968
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
 
5969
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
 
5970
if test $ac_cv_lib_socket_socket = yes; then
 
5971
  SOCKETLIBS="$SOCKETLIBS -lsocket"
 
5972
fi
 
5973
 
 
5974
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
 
5975
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
 
5976
if test "${ac_cv_lib_resolv_main+set}" = set; then
 
5977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5978
else
 
5979
  ac_check_lib_save_LIBS=$LIBS
 
5980
LIBS="-lresolv  $LIBS"
 
5981
cat >conftest.$ac_ext <<_ACEOF
 
5982
#line $LINENO "configure"
 
5983
/* confdefs.h.  */
 
5984
_ACEOF
 
5985
cat confdefs.h >>conftest.$ac_ext
 
5986
cat >>conftest.$ac_ext <<_ACEOF
 
5987
/* end confdefs.h.  */
 
5988
 
 
5989
 
 
5990
int
 
5991
main ()
 
5992
{
 
5993
main ();
 
5994
  ;
 
5995
  return 0;
 
5996
}
 
5997
_ACEOF
 
5998
rm -f conftest.$ac_objext conftest$ac_exeext
 
5999
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6000
  (eval $ac_link) 2>&5
 
6001
  ac_status=$?
 
6002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6003
  (exit $ac_status); } &&
 
6004
         { ac_try='test -s conftest$ac_exeext'
 
6005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6006
  (eval $ac_try) 2>&5
 
6007
  ac_status=$?
 
6008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6009
  (exit $ac_status); }; }; then
 
6010
  ac_cv_lib_resolv_main=yes
 
6011
else
 
6012
  echo "$as_me: failed program was:" >&5
 
6013
sed 's/^/| /' conftest.$ac_ext >&5
 
6014
 
 
6015
ac_cv_lib_resolv_main=no
 
6016
fi
 
6017
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6018
LIBS=$ac_check_lib_save_LIBS
 
6019
fi
 
6020
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
 
6021
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
 
6022
if test $ac_cv_lib_resolv_main = yes; then
 
6023
  SOCKETLIBS="$SOCKETLIBS -lresolv"
 
6024
fi
 
6025
 
 
6026
 
 
6027
 
 
6028
_SAVEDLIBS="$LIBS"
 
6029
_SAVEDCPPFLAGS="$CPPFLAGS"
 
6030
 
 
6031
# Check whether --with-pgsql or --without-pgsql was given.
 
6032
if test "${with_pgsql+set}" = set; then
 
6033
  withval="$with_pgsql"
 
6034
  PGSQL=$withval
 
6035
fi;
 
6036
 
 
6037
echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
 
6038
echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
 
6039
if test "${ac_cv_lib_crypt_main+set}" = set; then
 
6040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6041
else
 
6042
  ac_check_lib_save_LIBS=$LIBS
 
6043
LIBS="-lcrypt  $LIBS"
 
6044
cat >conftest.$ac_ext <<_ACEOF
 
6045
#line $LINENO "configure"
 
6046
/* confdefs.h.  */
 
6047
_ACEOF
 
6048
cat confdefs.h >>conftest.$ac_ext
 
6049
cat >>conftest.$ac_ext <<_ACEOF
 
6050
/* end confdefs.h.  */
 
6051
 
 
6052
 
 
6053
int
 
6054
main ()
 
6055
{
 
6056
main ();
 
6057
  ;
 
6058
  return 0;
 
6059
}
 
6060
_ACEOF
 
6061
rm -f conftest.$ac_objext conftest$ac_exeext
 
6062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6063
  (eval $ac_link) 2>&5
 
6064
  ac_status=$?
 
6065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6066
  (exit $ac_status); } &&
 
6067
         { ac_try='test -s conftest$ac_exeext'
 
6068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6069
  (eval $ac_try) 2>&5
 
6070
  ac_status=$?
 
6071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6072
  (exit $ac_status); }; }; then
 
6073
  ac_cv_lib_crypt_main=yes
 
6074
else
 
6075
  echo "$as_me: failed program was:" >&5
 
6076
sed 's/^/| /' conftest.$ac_ext >&5
 
6077
 
 
6078
ac_cv_lib_crypt_main=no
 
6079
fi
 
6080
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6081
LIBS=$ac_check_lib_save_LIBS
 
6082
fi
 
6083
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
 
6084
echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
 
6085
if test $ac_cv_lib_crypt_main = yes; then
 
6086
  cat >>confdefs.h <<_ACEOF
 
6087
#define HAVE_LIBCRYPT 1
 
6088
_ACEOF
 
6089
 
 
6090
  LIBS="-lcrypt $LIBS"
 
6091
 
 
6092
fi
 
6093
 
 
6094
if test "$ac_cv_lib_crypt_main" = "yes"; then
 
6095
  if test -n "$PGSQL"; then
 
6096
    LDFLAGS="$LDFLAGS -L$PGSQL/lib"
 
6097
    CPPFLAGS="$CPPFLAGS -I$PGSQL/include"
 
6098
  fi
 
6099
 
 
6100
echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
 
6101
echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6
 
6102
if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
 
6103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6104
else
 
6105
  ac_check_lib_save_LIBS=$LIBS
 
6106
LIBS="-lpq -lcrypt $LIBS"
 
6107
cat >conftest.$ac_ext <<_ACEOF
 
6108
#line $LINENO "configure"
 
6109
/* confdefs.h.  */
 
6110
_ACEOF
 
6111
cat confdefs.h >>conftest.$ac_ext
 
6112
cat >>conftest.$ac_ext <<_ACEOF
 
6113
/* end confdefs.h.  */
 
6114
 
 
6115
/* Override any gcc2 internal prototype to avoid an error.  */
 
6116
#ifdef __cplusplus
 
6117
extern "C"
 
6118
#endif
 
6119
/* We use char because int might match the return type of a gcc2
 
6120
   builtin and then its argument prototype would still apply.  */
 
6121
char PQsetdbLogin ();
 
6122
int
 
6123
main ()
 
6124
{
 
6125
PQsetdbLogin ();
 
6126
  ;
 
6127
  return 0;
 
6128
}
 
6129
_ACEOF
 
6130
rm -f conftest.$ac_objext conftest$ac_exeext
 
6131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6132
  (eval $ac_link) 2>&5
 
6133
  ac_status=$?
 
6134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6135
  (exit $ac_status); } &&
 
6136
         { ac_try='test -s conftest$ac_exeext'
 
6137
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6138
  (eval $ac_try) 2>&5
 
6139
  ac_status=$?
 
6140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6141
  (exit $ac_status); }; }; then
 
6142
  ac_cv_lib_pq_PQsetdbLogin=yes
 
6143
else
 
6144
  echo "$as_me: failed program was:" >&5
 
6145
sed 's/^/| /' conftest.$ac_ext >&5
 
6146
 
 
6147
ac_cv_lib_pq_PQsetdbLogin=no
 
6148
fi
 
6149
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6150
LIBS=$ac_check_lib_save_LIBS
 
6151
fi
 
6152
echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
 
6153
echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6
 
6154
if test $ac_cv_lib_pq_PQsetdbLogin = yes; then
 
6155
  cat >>confdefs.h <<_ACEOF
 
6156
#define HAVE_LIBPQ 1
 
6157
_ACEOF
 
6158
 
 
6159
  LIBS="-lpq $LIBS"
 
6160
 
 
6161
fi
 
6162
 
 
6163
  if test "$ac_cv_lib_pq_PQsetdbLogin" = "yes"; then
 
6164
 
 
6165
for ac_header in pgsql/libpq-fe.h
 
6166
do
 
6167
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6168
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6169
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6170
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6171
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6173
fi
 
6174
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6175
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6176
else
 
6177
  # Is the header compilable?
 
6178
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6179
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6180
cat >conftest.$ac_ext <<_ACEOF
 
6181
#line $LINENO "configure"
 
6182
/* confdefs.h.  */
 
6183
_ACEOF
 
6184
cat confdefs.h >>conftest.$ac_ext
 
6185
cat >>conftest.$ac_ext <<_ACEOF
 
6186
/* end confdefs.h.  */
 
6187
$ac_includes_default
 
6188
#include <$ac_header>
 
6189
_ACEOF
 
6190
rm -f conftest.$ac_objext
 
6191
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6192
  (eval $ac_compile) 2>&5
 
6193
  ac_status=$?
 
6194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6195
  (exit $ac_status); } &&
 
6196
         { ac_try='test -s conftest.$ac_objext'
 
6197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6198
  (eval $ac_try) 2>&5
 
6199
  ac_status=$?
 
6200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6201
  (exit $ac_status); }; }; then
 
6202
  ac_header_compiler=yes
 
6203
else
 
6204
  echo "$as_me: failed program was:" >&5
 
6205
sed 's/^/| /' conftest.$ac_ext >&5
 
6206
 
 
6207
ac_header_compiler=no
 
6208
fi
 
6209
rm -f conftest.$ac_objext conftest.$ac_ext
 
6210
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6211
echo "${ECHO_T}$ac_header_compiler" >&6
 
6212
 
 
6213
# Is the header present?
 
6214
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6215
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6216
cat >conftest.$ac_ext <<_ACEOF
 
6217
#line $LINENO "configure"
 
6218
/* confdefs.h.  */
 
6219
_ACEOF
 
6220
cat confdefs.h >>conftest.$ac_ext
 
6221
cat >>conftest.$ac_ext <<_ACEOF
 
6222
/* end confdefs.h.  */
 
6223
#include <$ac_header>
 
6224
_ACEOF
 
6225
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6226
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6227
  ac_status=$?
 
6228
  grep -v '^ *+' conftest.er1 >conftest.err
 
6229
  rm -f conftest.er1
 
6230
  cat conftest.err >&5
 
6231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6232
  (exit $ac_status); } >/dev/null; then
 
6233
  if test -s conftest.err; then
 
6234
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6235
  else
 
6236
    ac_cpp_err=
 
6237
  fi
 
6238
else
 
6239
  ac_cpp_err=yes
 
6240
fi
 
6241
if test -z "$ac_cpp_err"; then
 
6242
  ac_header_preproc=yes
 
6243
else
 
6244
  echo "$as_me: failed program was:" >&5
 
6245
sed 's/^/| /' conftest.$ac_ext >&5
 
6246
 
 
6247
  ac_header_preproc=no
 
6248
fi
 
6249
rm -f conftest.err conftest.$ac_ext
 
6250
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6251
echo "${ECHO_T}$ac_header_preproc" >&6
 
6252
 
 
6253
# So?  What about this header?
 
6254
case $ac_header_compiler:$ac_header_preproc in
 
6255
  yes:no )
 
6256
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6257
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6258
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6259
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6260
    (
 
6261
      cat <<\_ASBOX
 
6262
## ------------------------------------ ##
 
6263
## Report this to bug-autoconf@gnu.org. ##
 
6264
## ------------------------------------ ##
 
6265
_ASBOX
 
6266
    ) |
 
6267
      sed "s/^/$as_me: WARNING:     /" >&2
 
6268
    ;;
 
6269
  no:yes )
 
6270
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6271
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6272
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
6273
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
6274
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6275
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6276
    (
 
6277
      cat <<\_ASBOX
 
6278
## ------------------------------------ ##
 
6279
## Report this to bug-autoconf@gnu.org. ##
 
6280
## ------------------------------------ ##
 
6281
_ASBOX
 
6282
    ) |
 
6283
      sed "s/^/$as_me: WARNING:     /" >&2
 
6284
    ;;
 
6285
esac
 
6286
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6287
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6288
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6290
else
 
6291
  eval "$as_ac_Header=$ac_header_preproc"
 
6292
fi
 
6293
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6294
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6295
 
 
6296
fi
 
6297
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6298
  cat >>confdefs.h <<_ACEOF
 
6299
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6300
_ACEOF
 
6301
 
 
6302
fi
 
6303
 
 
6304
done
 
6305
 
 
6306
 
 
6307
for ac_header in postgresql/libpq-fe.h
 
6308
do
 
6309
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6310
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6311
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6312
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6313
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6315
fi
 
6316
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6317
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6318
else
 
6319
  # Is the header compilable?
 
6320
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6321
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6322
cat >conftest.$ac_ext <<_ACEOF
 
6323
#line $LINENO "configure"
 
6324
/* confdefs.h.  */
 
6325
_ACEOF
 
6326
cat confdefs.h >>conftest.$ac_ext
 
6327
cat >>conftest.$ac_ext <<_ACEOF
 
6328
/* end confdefs.h.  */
 
6329
$ac_includes_default
 
6330
#include <$ac_header>
 
6331
_ACEOF
 
6332
rm -f conftest.$ac_objext
 
6333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6334
  (eval $ac_compile) 2>&5
 
6335
  ac_status=$?
 
6336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6337
  (exit $ac_status); } &&
 
6338
         { ac_try='test -s conftest.$ac_objext'
 
6339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6340
  (eval $ac_try) 2>&5
 
6341
  ac_status=$?
 
6342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6343
  (exit $ac_status); }; }; then
 
6344
  ac_header_compiler=yes
 
6345
else
 
6346
  echo "$as_me: failed program was:" >&5
 
6347
sed 's/^/| /' conftest.$ac_ext >&5
 
6348
 
 
6349
ac_header_compiler=no
 
6350
fi
 
6351
rm -f conftest.$ac_objext conftest.$ac_ext
 
6352
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6353
echo "${ECHO_T}$ac_header_compiler" >&6
 
6354
 
 
6355
# Is the header present?
 
6356
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6357
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6358
cat >conftest.$ac_ext <<_ACEOF
 
6359
#line $LINENO "configure"
 
6360
/* confdefs.h.  */
 
6361
_ACEOF
 
6362
cat confdefs.h >>conftest.$ac_ext
 
6363
cat >>conftest.$ac_ext <<_ACEOF
 
6364
/* end confdefs.h.  */
 
6365
#include <$ac_header>
 
6366
_ACEOF
 
6367
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6368
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6369
  ac_status=$?
 
6370
  grep -v '^ *+' conftest.er1 >conftest.err
 
6371
  rm -f conftest.er1
 
6372
  cat conftest.err >&5
 
6373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6374
  (exit $ac_status); } >/dev/null; then
 
6375
  if test -s conftest.err; then
 
6376
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6377
  else
 
6378
    ac_cpp_err=
 
6379
  fi
 
6380
else
 
6381
  ac_cpp_err=yes
 
6382
fi
 
6383
if test -z "$ac_cpp_err"; then
 
6384
  ac_header_preproc=yes
 
6385
else
 
6386
  echo "$as_me: failed program was:" >&5
 
6387
sed 's/^/| /' conftest.$ac_ext >&5
 
6388
 
 
6389
  ac_header_preproc=no
 
6390
fi
 
6391
rm -f conftest.err conftest.$ac_ext
 
6392
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6393
echo "${ECHO_T}$ac_header_preproc" >&6
 
6394
 
 
6395
# So?  What about this header?
 
6396
case $ac_header_compiler:$ac_header_preproc in
 
6397
  yes:no )
 
6398
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6399
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6400
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6401
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6402
    (
 
6403
      cat <<\_ASBOX
 
6404
## ------------------------------------ ##
 
6405
## Report this to bug-autoconf@gnu.org. ##
 
6406
## ------------------------------------ ##
 
6407
_ASBOX
 
6408
    ) |
 
6409
      sed "s/^/$as_me: WARNING:     /" >&2
 
6410
    ;;
 
6411
  no:yes )
 
6412
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6413
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6414
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
6415
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
6416
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6417
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6418
    (
 
6419
      cat <<\_ASBOX
 
6420
## ------------------------------------ ##
 
6421
## Report this to bug-autoconf@gnu.org. ##
 
6422
## ------------------------------------ ##
 
6423
_ASBOX
 
6424
    ) |
 
6425
      sed "s/^/$as_me: WARNING:     /" >&2
 
6426
    ;;
 
6427
esac
 
6428
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6429
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6430
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6432
else
 
6433
  eval "$as_ac_Header=$ac_header_preproc"
 
6434
fi
 
6435
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6436
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6437
 
 
6438
fi
 
6439
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6440
  cat >>confdefs.h <<_ACEOF
 
6441
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6442
_ACEOF
 
6443
 
 
6444
fi
 
6445
 
 
6446
done
 
6447
 
 
6448
 
 
6449
for ac_header in libpq-fe.h
 
6450
do
 
6451
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6452
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6453
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6454
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6455
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6456
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6457
fi
 
6458
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6459
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6460
else
 
6461
  # Is the header compilable?
 
6462
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6463
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6464
cat >conftest.$ac_ext <<_ACEOF
 
6465
#line $LINENO "configure"
 
6466
/* confdefs.h.  */
 
6467
_ACEOF
 
6468
cat confdefs.h >>conftest.$ac_ext
 
6469
cat >>conftest.$ac_ext <<_ACEOF
 
6470
/* end confdefs.h.  */
 
6471
$ac_includes_default
 
6472
#include <$ac_header>
 
6473
_ACEOF
 
6474
rm -f conftest.$ac_objext
 
6475
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6476
  (eval $ac_compile) 2>&5
 
6477
  ac_status=$?
 
6478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6479
  (exit $ac_status); } &&
 
6480
         { ac_try='test -s conftest.$ac_objext'
 
6481
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6482
  (eval $ac_try) 2>&5
 
6483
  ac_status=$?
 
6484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6485
  (exit $ac_status); }; }; then
 
6486
  ac_header_compiler=yes
 
6487
else
 
6488
  echo "$as_me: failed program was:" >&5
 
6489
sed 's/^/| /' conftest.$ac_ext >&5
 
6490
 
 
6491
ac_header_compiler=no
 
6492
fi
 
6493
rm -f conftest.$ac_objext conftest.$ac_ext
 
6494
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6495
echo "${ECHO_T}$ac_header_compiler" >&6
 
6496
 
 
6497
# Is the header present?
 
6498
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6499
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6500
cat >conftest.$ac_ext <<_ACEOF
 
6501
#line $LINENO "configure"
 
6502
/* confdefs.h.  */
 
6503
_ACEOF
 
6504
cat confdefs.h >>conftest.$ac_ext
 
6505
cat >>conftest.$ac_ext <<_ACEOF
 
6506
/* end confdefs.h.  */
 
6507
#include <$ac_header>
 
6508
_ACEOF
 
6509
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6510
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6511
  ac_status=$?
 
6512
  grep -v '^ *+' conftest.er1 >conftest.err
 
6513
  rm -f conftest.er1
 
6514
  cat conftest.err >&5
 
6515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6516
  (exit $ac_status); } >/dev/null; then
 
6517
  if test -s conftest.err; then
 
6518
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6519
  else
 
6520
    ac_cpp_err=
 
6521
  fi
 
6522
else
 
6523
  ac_cpp_err=yes
 
6524
fi
 
6525
if test -z "$ac_cpp_err"; then
 
6526
  ac_header_preproc=yes
 
6527
else
 
6528
  echo "$as_me: failed program was:" >&5
 
6529
sed 's/^/| /' conftest.$ac_ext >&5
 
6530
 
 
6531
  ac_header_preproc=no
 
6532
fi
 
6533
rm -f conftest.err conftest.$ac_ext
 
6534
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6535
echo "${ECHO_T}$ac_header_preproc" >&6
 
6536
 
 
6537
# So?  What about this header?
 
6538
case $ac_header_compiler:$ac_header_preproc in
 
6539
  yes:no )
 
6540
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6541
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6542
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6543
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6544
    (
 
6545
      cat <<\_ASBOX
 
6546
## ------------------------------------ ##
 
6547
## Report this to bug-autoconf@gnu.org. ##
 
6548
## ------------------------------------ ##
 
6549
_ASBOX
 
6550
    ) |
 
6551
      sed "s/^/$as_me: WARNING:     /" >&2
 
6552
    ;;
 
6553
  no:yes )
 
6554
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6555
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6556
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
6557
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
6558
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6559
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6560
    (
 
6561
      cat <<\_ASBOX
 
6562
## ------------------------------------ ##
 
6563
## Report this to bug-autoconf@gnu.org. ##
 
6564
## ------------------------------------ ##
 
6565
_ASBOX
 
6566
    ) |
 
6567
      sed "s/^/$as_me: WARNING:     /" >&2
 
6568
    ;;
 
6569
esac
 
6570
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6571
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6572
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6574
else
 
6575
  eval "$as_ac_Header=$ac_header_preproc"
 
6576
fi
 
6577
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6578
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6579
 
 
6580
fi
 
6581
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6582
  cat >>confdefs.h <<_ACEOF
 
6583
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6584
_ACEOF
 
6585
 
 
6586
fi
 
6587
 
 
6588
done
 
6589
 
 
6590
    if [ -n "$PGSQL" -a "$ac_cv_header_libpq_fe_h" = "yes" ]; then
 
6591
      PGLIBS="-L$PGSQL/lib -lpq -lcrypt"
 
6592
      PGINCLUDE="-I$PGSQL/include"
 
6593
    elif test  "$ac_cv_header_pgsql_libpq_fe_h" = "yes"; then
 
6594
      PGLIBS="-lpq -lcrypt"
 
6595
      PGINCLUDE="-I/usr/include/pgsql"
 
6596
    elif test  "$ac_cv_header_postgresql_libpq_fe_h" = "yes"; then
 
6597
      PGLIBS="-L$PGSQL/lib -lpq -lcrypt"
 
6598
      PGINCLUDE="-I/usr/include/postgresql"
 
6599
    elif test  "$ac_cv_header_libpq_fe_h" = "yes"; then
 
6600
      PGLIBS="-L$PGSQL/lib -lpq -lcrypt"
 
6601
      PGINCLUDE="-I$PGSQL/include"
 
6602
    fi
 
6603
    if test -z "$PGINCLUDE"; then
 
6604
      { echo "$as_me:$LINENO: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5
 
6605
echo "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;}
 
6606
      { echo "$as_me:$LINENO: WARNING: install PostgreSQL headers to compile this plugin (see REQUIREMENTS)." >&5
 
6607
echo "$as_me: WARNING: install PostgreSQL headers to compile this plugin (see REQUIREMENTS)." >&2;}
 
6608
    else
 
6609
 
 
6610
 
 
6611
      EXTRAS="$EXTRAS check_pgsql"
 
6612
    fi
 
6613
  else
 
6614
    { echo "$as_me:$LINENO: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5
 
6615
echo "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;}
 
6616
    { echo "$as_me:$LINENO: WARNING: LIBS=\"$LIBS\" CPPFLAGS=\"$CPPFLAGS\"" >&5
 
6617
echo "$as_me: WARNING: LIBS=\"$LIBS\" CPPFLAGS=\"$CPPFLAGS\"" >&2;}
 
6618
    { echo "$as_me:$LINENO: WARNING: install PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&5
 
6619
echo "$as_me: WARNING: install PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&2;}
 
6620
  fi
 
6621
else
 
6622
  { echo "$as_me:$LINENO: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5
 
6623
echo "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;}
 
6624
  { echo "$as_me:$LINENO: WARNING: install lib crypt and PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&5
 
6625
echo "$as_me: WARNING: install lib crypt and PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&2;}
 
6626
fi
 
6627
LIBS="$_SAVEDLIBS"
 
6628
CPPFLAGS="$_SAVEDCPPFLAGS"
 
6629
 
 
6630
_SAVEDLIBS="$LIBS"
 
6631
 
 
6632
echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient" >&5
 
6633
echo $ECHO_N "checking for rc_read_config in -lradiusclient... $ECHO_C" >&6
 
6634
if test "${ac_cv_lib_radiusclient_rc_read_config+set}" = set; then
 
6635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6636
else
 
6637
  ac_check_lib_save_LIBS=$LIBS
 
6638
LIBS="-lradiusclient  $LIBS"
 
6639
cat >conftest.$ac_ext <<_ACEOF
 
6640
#line $LINENO "configure"
 
6641
/* confdefs.h.  */
 
6642
_ACEOF
 
6643
cat confdefs.h >>conftest.$ac_ext
 
6644
cat >>conftest.$ac_ext <<_ACEOF
 
6645
/* end confdefs.h.  */
 
6646
 
 
6647
/* Override any gcc2 internal prototype to avoid an error.  */
 
6648
#ifdef __cplusplus
 
6649
extern "C"
 
6650
#endif
 
6651
/* We use char because int might match the return type of a gcc2
 
6652
   builtin and then its argument prototype would still apply.  */
 
6653
char rc_read_config ();
 
6654
int
 
6655
main ()
 
6656
{
 
6657
rc_read_config ();
 
6658
  ;
 
6659
  return 0;
 
6660
}
 
6661
_ACEOF
 
6662
rm -f conftest.$ac_objext conftest$ac_exeext
 
6663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6664
  (eval $ac_link) 2>&5
 
6665
  ac_status=$?
 
6666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6667
  (exit $ac_status); } &&
 
6668
         { ac_try='test -s conftest$ac_exeext'
 
6669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6670
  (eval $ac_try) 2>&5
 
6671
  ac_status=$?
 
6672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6673
  (exit $ac_status); }; }; then
 
6674
  ac_cv_lib_radiusclient_rc_read_config=yes
 
6675
else
 
6676
  echo "$as_me: failed program was:" >&5
 
6677
sed 's/^/| /' conftest.$ac_ext >&5
 
6678
 
 
6679
ac_cv_lib_radiusclient_rc_read_config=no
 
6680
fi
 
6681
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6682
LIBS=$ac_check_lib_save_LIBS
 
6683
fi
 
6684
echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_rc_read_config" >&5
 
6685
echo "${ECHO_T}$ac_cv_lib_radiusclient_rc_read_config" >&6
 
6686
if test $ac_cv_lib_radiusclient_rc_read_config = yes; then
 
6687
  cat >>confdefs.h <<_ACEOF
 
6688
#define HAVE_LIBRADIUSCLIENT 1
 
6689
_ACEOF
 
6690
 
 
6691
  LIBS="-lradiusclient $LIBS"
 
6692
 
 
6693
fi
 
6694
 
 
6695
if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then
 
6696
  EXTRAS="$EXTRAS check_radius"
 
6697
        RADIUSLIBS="-lradiusclient"
 
6698
 
 
6699
else
 
6700
  { echo "$as_me:$LINENO: WARNING: Skipping radius plugin" >&5
 
6701
echo "$as_me: WARNING: Skipping radius plugin" >&2;}
 
6702
  { echo "$as_me:$LINENO: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&5
 
6703
echo "$as_me: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&2;}
 
6704
fi
 
6705
LIBS="$_SAVEDLIBS"
 
6706
 
 
6707
_SAVEDLIBS="$LIBS"
 
6708
 
 
6709
echo "$as_me:$LINENO: checking for main in -lldap" >&5
 
6710
echo $ECHO_N "checking for main in -lldap... $ECHO_C" >&6
 
6711
if test "${ac_cv_lib_ldap_main+set}" = set; then
 
6712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6713
else
 
6714
  ac_check_lib_save_LIBS=$LIBS
 
6715
LIBS="-lldap -llber $LIBS"
 
6716
cat >conftest.$ac_ext <<_ACEOF
 
6717
#line $LINENO "configure"
 
6718
/* confdefs.h.  */
 
6719
_ACEOF
 
6720
cat confdefs.h >>conftest.$ac_ext
 
6721
cat >>conftest.$ac_ext <<_ACEOF
 
6722
/* end confdefs.h.  */
 
6723
 
 
6724
 
 
6725
int
 
6726
main ()
 
6727
{
 
6728
main ();
 
6729
  ;
 
6730
  return 0;
 
6731
}
 
6732
_ACEOF
 
6733
rm -f conftest.$ac_objext conftest$ac_exeext
 
6734
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6735
  (eval $ac_link) 2>&5
 
6736
  ac_status=$?
 
6737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6738
  (exit $ac_status); } &&
 
6739
         { ac_try='test -s conftest$ac_exeext'
 
6740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6741
  (eval $ac_try) 2>&5
 
6742
  ac_status=$?
 
6743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6744
  (exit $ac_status); }; }; then
 
6745
  ac_cv_lib_ldap_main=yes
 
6746
else
 
6747
  echo "$as_me: failed program was:" >&5
 
6748
sed 's/^/| /' conftest.$ac_ext >&5
 
6749
 
 
6750
ac_cv_lib_ldap_main=no
 
6751
fi
 
6752
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6753
LIBS=$ac_check_lib_save_LIBS
 
6754
fi
 
6755
echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_main" >&5
 
6756
echo "${ECHO_T}$ac_cv_lib_ldap_main" >&6
 
6757
if test $ac_cv_lib_ldap_main = yes; then
 
6758
  cat >>confdefs.h <<_ACEOF
 
6759
#define HAVE_LIBLDAP 1
 
6760
_ACEOF
 
6761
 
 
6762
  LIBS="-lldap $LIBS"
 
6763
 
 
6764
fi
 
6765
 
 
6766
if test "$ac_cv_lib_ldap_main" = "yes"; then
 
6767
  LDAPLIBS="-lldap -llber"\
 
6768
  LDAPINCLUDE="-I/usr/include/ldap"
 
6769
 
 
6770
 
 
6771
  EXTRAS="$EXTRAS check_ldap"
 
6772
else
 
6773
  { echo "$as_me:$LINENO: WARNING: Skipping LDAP plugin" >&5
 
6774
echo "$as_me: WARNING: Skipping LDAP plugin" >&2;}
 
6775
  { echo "$as_me:$LINENO: WARNING: install LDAP libs to compile this plugin (see REQUIREMENTS)." >&5
 
6776
echo "$as_me: WARNING: install LDAP libs to compile this plugin (see REQUIREMENTS)." >&2;}
 
6777
fi
 
6778
LIBS="$_SAVEDLIBS"
 
6779
 
 
6780
 
 
6781
_SAVEDLIBS="$LIBS"
 
6782
_SAVEDCPPFLAGS="$CPPFLAGS"
 
6783
 
 
6784
# Check whether --with-mysql or --without-mysql was given.
 
6785
if test "${with_mysql+set}" = set; then
 
6786
  withval="$with_mysql"
 
6787
  MYSQL=$withval
 
6788
fi;
 
6789
if test -n "$MYSQL"; then
 
6790
  MYSQLLIBDIR=$MYSQL/lib/mysql
 
6791
  CPPFLAGS="-I$MYSQL/include"
 
6792
  echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
 
6793
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
 
6794
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
 
6795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6796
else
 
6797
  ac_check_lib_save_LIBS=$LIBS
 
6798
LIBS="-lmysqlclient -L$MYSQLLIBDIR -lz $LIBS"
 
6799
cat >conftest.$ac_ext <<_ACEOF
 
6800
#line $LINENO "configure"
 
6801
/* confdefs.h.  */
 
6802
_ACEOF
 
6803
cat confdefs.h >>conftest.$ac_ext
 
6804
cat >>conftest.$ac_ext <<_ACEOF
 
6805
/* end confdefs.h.  */
 
6806
 
 
6807
/* Override any gcc2 internal prototype to avoid an error.  */
 
6808
#ifdef __cplusplus
 
6809
extern "C"
 
6810
#endif
 
6811
/* We use char because int might match the return type of a gcc2
 
6812
   builtin and then its argument prototype would still apply.  */
 
6813
char mysql_init ();
 
6814
int
 
6815
main ()
 
6816
{
 
6817
mysql_init ();
 
6818
  ;
 
6819
  return 0;
 
6820
}
 
6821
_ACEOF
 
6822
rm -f conftest.$ac_objext conftest$ac_exeext
 
6823
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6824
  (eval $ac_link) 2>&5
 
6825
  ac_status=$?
 
6826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6827
  (exit $ac_status); } &&
 
6828
         { ac_try='test -s conftest$ac_exeext'
 
6829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6830
  (eval $ac_try) 2>&5
 
6831
  ac_status=$?
 
6832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6833
  (exit $ac_status); }; }; then
 
6834
  ac_cv_lib_mysqlclient_mysql_init=yes
 
6835
else
 
6836
  echo "$as_me: failed program was:" >&5
 
6837
sed 's/^/| /' conftest.$ac_ext >&5
 
6838
 
 
6839
ac_cv_lib_mysqlclient_mysql_init=no
 
6840
fi
 
6841
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6842
LIBS=$ac_check_lib_save_LIBS
 
6843
fi
 
6844
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
 
6845
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
 
6846
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
 
6847
  MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L$MYSQLLIBDIR "
 
6848
fi
 
6849
 
 
6850
  echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
 
6851
echo $ECHO_N "checking for mysql_close in -lmysqlclient... $ECHO_C" >&6
 
6852
if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then
 
6853
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6854
else
 
6855
  ac_check_lib_save_LIBS=$LIBS
 
6856
LIBS="-lmysqlclient  $LIBS"
 
6857
cat >conftest.$ac_ext <<_ACEOF
 
6858
#line $LINENO "configure"
 
6859
/* confdefs.h.  */
 
6860
_ACEOF
 
6861
cat confdefs.h >>conftest.$ac_ext
 
6862
cat >>conftest.$ac_ext <<_ACEOF
 
6863
/* end confdefs.h.  */
 
6864
 
 
6865
/* Override any gcc2 internal prototype to avoid an error.  */
 
6866
#ifdef __cplusplus
 
6867
extern "C"
 
6868
#endif
 
6869
/* We use char because int might match the return type of a gcc2
 
6870
   builtin and then its argument prototype would still apply.  */
 
6871
char mysql_close ();
 
6872
int
 
6873
main ()
 
6874
{
 
6875
mysql_close ();
 
6876
  ;
 
6877
  return 0;
 
6878
}
 
6879
_ACEOF
 
6880
rm -f conftest.$ac_objext conftest$ac_exeext
 
6881
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6882
  (eval $ac_link) 2>&5
 
6883
  ac_status=$?
 
6884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6885
  (exit $ac_status); } &&
 
6886
         { ac_try='test -s conftest$ac_exeext'
 
6887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6888
  (eval $ac_try) 2>&5
 
6889
  ac_status=$?
 
6890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6891
  (exit $ac_status); }; }; then
 
6892
  ac_cv_lib_mysqlclient_mysql_close=yes
 
6893
else
 
6894
  echo "$as_me: failed program was:" >&5
 
6895
sed 's/^/| /' conftest.$ac_ext >&5
 
6896
 
 
6897
ac_cv_lib_mysqlclient_mysql_close=no
 
6898
fi
 
6899
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6900
LIBS=$ac_check_lib_save_LIBS
 
6901
fi
 
6902
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
 
6903
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
 
6904
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
 
6905
  MYSQLLIBS="-lmysqlclient"
 
6906
fi
 
6907
 
 
6908
elif test -f /usr/lib/libmysqlclient.so; then
 
6909
  echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
 
6910
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
 
6911
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
 
6912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6913
else
 
6914
  ac_check_lib_save_LIBS=$LIBS
 
6915
LIBS="-lmysqlclient -lz $LIBS"
 
6916
cat >conftest.$ac_ext <<_ACEOF
 
6917
#line $LINENO "configure"
 
6918
/* confdefs.h.  */
 
6919
_ACEOF
 
6920
cat confdefs.h >>conftest.$ac_ext
 
6921
cat >>conftest.$ac_ext <<_ACEOF
 
6922
/* end confdefs.h.  */
 
6923
 
 
6924
/* Override any gcc2 internal prototype to avoid an error.  */
 
6925
#ifdef __cplusplus
 
6926
extern "C"
 
6927
#endif
 
6928
/* We use char because int might match the return type of a gcc2
 
6929
   builtin and then its argument prototype would still apply.  */
 
6930
char mysql_init ();
 
6931
int
 
6932
main ()
 
6933
{
 
6934
mysql_init ();
 
6935
  ;
 
6936
  return 0;
 
6937
}
 
6938
_ACEOF
 
6939
rm -f conftest.$ac_objext conftest$ac_exeext
 
6940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6941
  (eval $ac_link) 2>&5
 
6942
  ac_status=$?
 
6943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6944
  (exit $ac_status); } &&
 
6945
         { ac_try='test -s conftest$ac_exeext'
 
6946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6947
  (eval $ac_try) 2>&5
 
6948
  ac_status=$?
 
6949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6950
  (exit $ac_status); }; }; then
 
6951
  ac_cv_lib_mysqlclient_mysql_init=yes
 
6952
else
 
6953
  echo "$as_me: failed program was:" >&5
 
6954
sed 's/^/| /' conftest.$ac_ext >&5
 
6955
 
 
6956
ac_cv_lib_mysqlclient_mysql_init=no
 
6957
fi
 
6958
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6959
LIBS=$ac_check_lib_save_LIBS
 
6960
fi
 
6961
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
 
6962
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
 
6963
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
 
6964
  MYSQLLIBS="-lmysqlclient -lz"
 
6965
fi
 
6966
 
 
6967
  echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
 
6968
echo $ECHO_N "checking for mysql_close in -lmysqlclient... $ECHO_C" >&6
 
6969
if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then
 
6970
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6971
else
 
6972
  ac_check_lib_save_LIBS=$LIBS
 
6973
LIBS="-lmysqlclient  $LIBS"
 
6974
cat >conftest.$ac_ext <<_ACEOF
 
6975
#line $LINENO "configure"
 
6976
/* confdefs.h.  */
 
6977
_ACEOF
 
6978
cat confdefs.h >>conftest.$ac_ext
 
6979
cat >>conftest.$ac_ext <<_ACEOF
 
6980
/* end confdefs.h.  */
 
6981
 
 
6982
/* Override any gcc2 internal prototype to avoid an error.  */
 
6983
#ifdef __cplusplus
 
6984
extern "C"
 
6985
#endif
 
6986
/* We use char because int might match the return type of a gcc2
 
6987
   builtin and then its argument prototype would still apply.  */
 
6988
char mysql_close ();
 
6989
int
 
6990
main ()
 
6991
{
 
6992
mysql_close ();
 
6993
  ;
 
6994
  return 0;
 
6995
}
 
6996
_ACEOF
 
6997
rm -f conftest.$ac_objext conftest$ac_exeext
 
6998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6999
  (eval $ac_link) 2>&5
 
7000
  ac_status=$?
 
7001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7002
  (exit $ac_status); } &&
 
7003
         { ac_try='test -s conftest$ac_exeext'
 
7004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7005
  (eval $ac_try) 2>&5
 
7006
  ac_status=$?
 
7007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7008
  (exit $ac_status); }; }; then
 
7009
  ac_cv_lib_mysqlclient_mysql_close=yes
 
7010
else
 
7011
  echo "$as_me: failed program was:" >&5
 
7012
sed 's/^/| /' conftest.$ac_ext >&5
 
7013
 
 
7014
ac_cv_lib_mysqlclient_mysql_close=no
 
7015
fi
 
7016
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7017
LIBS=$ac_check_lib_save_LIBS
 
7018
fi
 
7019
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
 
7020
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
 
7021
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
 
7022
  MYSQLLIBS="-lmysqlclient"
 
7023
fi
 
7024
 
 
7025
elif test -f /usr/lib/libmysqlclient.a; then
 
7026
  echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
 
7027
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
 
7028
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
 
7029
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7030
else
 
7031
  ac_check_lib_save_LIBS=$LIBS
 
7032
LIBS="-lmysqlclient -lz $LIBS"
 
7033
cat >conftest.$ac_ext <<_ACEOF
 
7034
#line $LINENO "configure"
 
7035
/* confdefs.h.  */
 
7036
_ACEOF
 
7037
cat confdefs.h >>conftest.$ac_ext
 
7038
cat >>conftest.$ac_ext <<_ACEOF
 
7039
/* end confdefs.h.  */
 
7040
 
 
7041
/* Override any gcc2 internal prototype to avoid an error.  */
 
7042
#ifdef __cplusplus
 
7043
extern "C"
 
7044
#endif
 
7045
/* We use char because int might match the return type of a gcc2
 
7046
   builtin and then its argument prototype would still apply.  */
 
7047
char mysql_init ();
 
7048
int
 
7049
main ()
 
7050
{
 
7051
mysql_init ();
 
7052
  ;
 
7053
  return 0;
 
7054
}
 
7055
_ACEOF
 
7056
rm -f conftest.$ac_objext conftest$ac_exeext
 
7057
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7058
  (eval $ac_link) 2>&5
 
7059
  ac_status=$?
 
7060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7061
  (exit $ac_status); } &&
 
7062
         { ac_try='test -s conftest$ac_exeext'
 
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); }; }; then
 
7068
  ac_cv_lib_mysqlclient_mysql_init=yes
 
7069
else
 
7070
  echo "$as_me: failed program was:" >&5
 
7071
sed 's/^/| /' conftest.$ac_ext >&5
 
7072
 
 
7073
ac_cv_lib_mysqlclient_mysql_init=no
 
7074
fi
 
7075
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7076
LIBS=$ac_check_lib_save_LIBS
 
7077
fi
 
7078
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
 
7079
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
 
7080
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
 
7081
  MYSQLLIBS="-lmysqlclient -lz"
 
7082
fi
 
7083
 
 
7084
  echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
 
7085
echo $ECHO_N "checking for mysql_close in -lmysqlclient... $ECHO_C" >&6
 
7086
if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then
 
7087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7088
else
 
7089
  ac_check_lib_save_LIBS=$LIBS
 
7090
LIBS="-lmysqlclient  $LIBS"
 
7091
cat >conftest.$ac_ext <<_ACEOF
 
7092
#line $LINENO "configure"
 
7093
/* confdefs.h.  */
 
7094
_ACEOF
 
7095
cat confdefs.h >>conftest.$ac_ext
 
7096
cat >>conftest.$ac_ext <<_ACEOF
 
7097
/* end confdefs.h.  */
 
7098
 
 
7099
/* Override any gcc2 internal prototype to avoid an error.  */
 
7100
#ifdef __cplusplus
 
7101
extern "C"
 
7102
#endif
 
7103
/* We use char because int might match the return type of a gcc2
 
7104
   builtin and then its argument prototype would still apply.  */
 
7105
char mysql_close ();
 
7106
int
 
7107
main ()
 
7108
{
 
7109
mysql_close ();
 
7110
  ;
 
7111
  return 0;
 
7112
}
 
7113
_ACEOF
 
7114
rm -f conftest.$ac_objext conftest$ac_exeext
 
7115
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7116
  (eval $ac_link) 2>&5
 
7117
  ac_status=$?
 
7118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7119
  (exit $ac_status); } &&
 
7120
         { ac_try='test -s conftest$ac_exeext'
 
7121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7122
  (eval $ac_try) 2>&5
 
7123
  ac_status=$?
 
7124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7125
  (exit $ac_status); }; }; then
 
7126
  ac_cv_lib_mysqlclient_mysql_close=yes
 
7127
else
 
7128
  echo "$as_me: failed program was:" >&5
 
7129
sed 's/^/| /' conftest.$ac_ext >&5
 
7130
 
 
7131
ac_cv_lib_mysqlclient_mysql_close=no
 
7132
fi
 
7133
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7134
LIBS=$ac_check_lib_save_LIBS
 
7135
fi
 
7136
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
 
7137
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
 
7138
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
 
7139
  MYSQLLIBS="-lmysqlclient"
 
7140
fi
 
7141
 
 
7142
elif test -f /usr/lib/mysql/libmysqlclient.so; then
 
7143
  echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
 
7144
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
 
7145
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
 
7146
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7147
else
 
7148
  ac_check_lib_save_LIBS=$LIBS
 
7149
LIBS="-lmysqlclient -L/usr/lib/mysql -lz $LIBS"
 
7150
cat >conftest.$ac_ext <<_ACEOF
 
7151
#line $LINENO "configure"
 
7152
/* confdefs.h.  */
 
7153
_ACEOF
 
7154
cat confdefs.h >>conftest.$ac_ext
 
7155
cat >>conftest.$ac_ext <<_ACEOF
 
7156
/* end confdefs.h.  */
 
7157
 
 
7158
/* Override any gcc2 internal prototype to avoid an error.  */
 
7159
#ifdef __cplusplus
 
7160
extern "C"
 
7161
#endif
 
7162
/* We use char because int might match the return type of a gcc2
 
7163
   builtin and then its argument prototype would still apply.  */
 
7164
char mysql_init ();
 
7165
int
 
7166
main ()
 
7167
{
 
7168
mysql_init ();
 
7169
  ;
 
7170
  return 0;
 
7171
}
 
7172
_ACEOF
 
7173
rm -f conftest.$ac_objext conftest$ac_exeext
 
7174
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7175
  (eval $ac_link) 2>&5
 
7176
  ac_status=$?
 
7177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7178
  (exit $ac_status); } &&
 
7179
         { ac_try='test -s conftest$ac_exeext'
 
7180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7181
  (eval $ac_try) 2>&5
 
7182
  ac_status=$?
 
7183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7184
  (exit $ac_status); }; }; then
 
7185
  ac_cv_lib_mysqlclient_mysql_init=yes
 
7186
else
 
7187
  echo "$as_me: failed program was:" >&5
 
7188
sed 's/^/| /' conftest.$ac_ext >&5
 
7189
 
 
7190
ac_cv_lib_mysqlclient_mysql_init=no
 
7191
fi
 
7192
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7193
LIBS=$ac_check_lib_save_LIBS
 
7194
fi
 
7195
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
 
7196
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
 
7197
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
 
7198
  MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L/usr/lib/mysql"
 
7199
fi
 
7200
 
 
7201
  echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
 
7202
echo $ECHO_N "checking for mysql_close in -lmysqlclient... $ECHO_C" >&6
 
7203
if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then
 
7204
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7205
else
 
7206
  ac_check_lib_save_LIBS=$LIBS
 
7207
LIBS="-lmysqlclient -L/usr/lib/mysql $LIBS"
 
7208
cat >conftest.$ac_ext <<_ACEOF
 
7209
#line $LINENO "configure"
 
7210
/* confdefs.h.  */
 
7211
_ACEOF
 
7212
cat confdefs.h >>conftest.$ac_ext
 
7213
cat >>conftest.$ac_ext <<_ACEOF
 
7214
/* end confdefs.h.  */
 
7215
 
 
7216
/* Override any gcc2 internal prototype to avoid an error.  */
 
7217
#ifdef __cplusplus
 
7218
extern "C"
 
7219
#endif
 
7220
/* We use char because int might match the return type of a gcc2
 
7221
   builtin and then its argument prototype would still apply.  */
 
7222
char mysql_close ();
 
7223
int
 
7224
main ()
 
7225
{
 
7226
mysql_close ();
 
7227
  ;
 
7228
  return 0;
 
7229
}
 
7230
_ACEOF
 
7231
rm -f conftest.$ac_objext conftest$ac_exeext
 
7232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7233
  (eval $ac_link) 2>&5
 
7234
  ac_status=$?
 
7235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7236
  (exit $ac_status); } &&
 
7237
         { ac_try='test -s conftest$ac_exeext'
 
7238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7239
  (eval $ac_try) 2>&5
 
7240
  ac_status=$?
 
7241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7242
  (exit $ac_status); }; }; then
 
7243
  ac_cv_lib_mysqlclient_mysql_close=yes
 
7244
else
 
7245
  echo "$as_me: failed program was:" >&5
 
7246
sed 's/^/| /' conftest.$ac_ext >&5
 
7247
 
 
7248
ac_cv_lib_mysqlclient_mysql_close=no
 
7249
fi
 
7250
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7251
LIBS=$ac_check_lib_save_LIBS
 
7252
fi
 
7253
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
 
7254
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
 
7255
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
 
7256
  MYSQLLIBS="-lmysqlclient" check_mysql_LDFLAGS="-L/usr/lib/mysql"
 
7257
fi
 
7258
 
 
7259
elif test -f /usr/lib/mysql/libmysqlclient.a; then
 
7260
  echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
 
7261
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
 
7262
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
 
7263
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7264
else
 
7265
  ac_check_lib_save_LIBS=$LIBS
 
7266
LIBS="-lmysqlclient -L/usr/lib/mysql -lz $LIBS"
 
7267
cat >conftest.$ac_ext <<_ACEOF
 
7268
#line $LINENO "configure"
 
7269
/* confdefs.h.  */
 
7270
_ACEOF
 
7271
cat confdefs.h >>conftest.$ac_ext
 
7272
cat >>conftest.$ac_ext <<_ACEOF
 
7273
/* end confdefs.h.  */
 
7274
 
 
7275
/* Override any gcc2 internal prototype to avoid an error.  */
 
7276
#ifdef __cplusplus
 
7277
extern "C"
 
7278
#endif
 
7279
/* We use char because int might match the return type of a gcc2
 
7280
   builtin and then its argument prototype would still apply.  */
 
7281
char mysql_init ();
 
7282
int
 
7283
main ()
 
7284
{
 
7285
mysql_init ();
 
7286
  ;
 
7287
  return 0;
 
7288
}
 
7289
_ACEOF
 
7290
rm -f conftest.$ac_objext conftest$ac_exeext
 
7291
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7292
  (eval $ac_link) 2>&5
 
7293
  ac_status=$?
 
7294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7295
  (exit $ac_status); } &&
 
7296
         { ac_try='test -s conftest$ac_exeext'
 
7297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7298
  (eval $ac_try) 2>&5
 
7299
  ac_status=$?
 
7300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7301
  (exit $ac_status); }; }; then
 
7302
  ac_cv_lib_mysqlclient_mysql_init=yes
 
7303
else
 
7304
  echo "$as_me: failed program was:" >&5
 
7305
sed 's/^/| /' conftest.$ac_ext >&5
 
7306
 
 
7307
ac_cv_lib_mysqlclient_mysql_init=no
 
7308
fi
 
7309
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7310
LIBS=$ac_check_lib_save_LIBS
 
7311
fi
 
7312
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
 
7313
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
 
7314
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
 
7315
  MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L/usr/lib/mysql"
 
7316
fi
 
7317
 
 
7318
  echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
 
7319
echo $ECHO_N "checking for mysql_close in -lmysqlclient... $ECHO_C" >&6
 
7320
if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then
 
7321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7322
else
 
7323
  ac_check_lib_save_LIBS=$LIBS
 
7324
LIBS="-lmysqlclient -L/usr/lib/mysql $LIBS"
 
7325
cat >conftest.$ac_ext <<_ACEOF
 
7326
#line $LINENO "configure"
 
7327
/* confdefs.h.  */
 
7328
_ACEOF
 
7329
cat confdefs.h >>conftest.$ac_ext
 
7330
cat >>conftest.$ac_ext <<_ACEOF
 
7331
/* end confdefs.h.  */
 
7332
 
 
7333
/* Override any gcc2 internal prototype to avoid an error.  */
 
7334
#ifdef __cplusplus
 
7335
extern "C"
 
7336
#endif
 
7337
/* We use char because int might match the return type of a gcc2
 
7338
   builtin and then its argument prototype would still apply.  */
 
7339
char mysql_close ();
 
7340
int
 
7341
main ()
 
7342
{
 
7343
mysql_close ();
 
7344
  ;
 
7345
  return 0;
 
7346
}
 
7347
_ACEOF
 
7348
rm -f conftest.$ac_objext conftest$ac_exeext
 
7349
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7350
  (eval $ac_link) 2>&5
 
7351
  ac_status=$?
 
7352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7353
  (exit $ac_status); } &&
 
7354
         { ac_try='test -s conftest$ac_exeext'
 
7355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7356
  (eval $ac_try) 2>&5
 
7357
  ac_status=$?
 
7358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7359
  (exit $ac_status); }; }; then
 
7360
  ac_cv_lib_mysqlclient_mysql_close=yes
 
7361
else
 
7362
  echo "$as_me: failed program was:" >&5
 
7363
sed 's/^/| /' conftest.$ac_ext >&5
 
7364
 
 
7365
ac_cv_lib_mysqlclient_mysql_close=no
 
7366
fi
 
7367
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7368
LIBS=$ac_check_lib_save_LIBS
 
7369
fi
 
7370
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
 
7371
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
 
7372
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
 
7373
  MYSQLLIBS="-lmysqlclient" check_mysql_LDFLAGS="-L/usr/lib/mysql"
 
7374
fi
 
7375
 
 
7376
fi
 
7377
if test "$ac_cv_lib_mysqlclient_mysql_init" = "yes" -o "$ac_cv_lib_mysqlclient_mysql_close" = "yes"; then
 
7378
 
 
7379
 
 
7380
for ac_header in mysql/mysql.h mysql/errmsg.h
 
7381
do
 
7382
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7383
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7384
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7385
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7386
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7387
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7388
fi
 
7389
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7390
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7391
else
 
7392
  # Is the header compilable?
 
7393
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7394
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7395
cat >conftest.$ac_ext <<_ACEOF
 
7396
#line $LINENO "configure"
 
7397
/* confdefs.h.  */
 
7398
_ACEOF
 
7399
cat confdefs.h >>conftest.$ac_ext
 
7400
cat >>conftest.$ac_ext <<_ACEOF
 
7401
/* end confdefs.h.  */
 
7402
$ac_includes_default
 
7403
#include <$ac_header>
 
7404
_ACEOF
 
7405
rm -f conftest.$ac_objext
 
7406
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7407
  (eval $ac_compile) 2>&5
 
7408
  ac_status=$?
 
7409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7410
  (exit $ac_status); } &&
 
7411
         { ac_try='test -s conftest.$ac_objext'
 
7412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7413
  (eval $ac_try) 2>&5
 
7414
  ac_status=$?
 
7415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7416
  (exit $ac_status); }; }; then
 
7417
  ac_header_compiler=yes
 
7418
else
 
7419
  echo "$as_me: failed program was:" >&5
 
7420
sed 's/^/| /' conftest.$ac_ext >&5
 
7421
 
 
7422
ac_header_compiler=no
 
7423
fi
 
7424
rm -f conftest.$ac_objext conftest.$ac_ext
 
7425
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7426
echo "${ECHO_T}$ac_header_compiler" >&6
 
7427
 
 
7428
# Is the header present?
 
7429
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7430
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7431
cat >conftest.$ac_ext <<_ACEOF
 
7432
#line $LINENO "configure"
 
7433
/* confdefs.h.  */
 
7434
_ACEOF
 
7435
cat confdefs.h >>conftest.$ac_ext
 
7436
cat >>conftest.$ac_ext <<_ACEOF
 
7437
/* end confdefs.h.  */
 
7438
#include <$ac_header>
 
7439
_ACEOF
 
7440
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7441
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7442
  ac_status=$?
 
7443
  grep -v '^ *+' conftest.er1 >conftest.err
 
7444
  rm -f conftest.er1
 
7445
  cat conftest.err >&5
 
7446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7447
  (exit $ac_status); } >/dev/null; then
 
7448
  if test -s conftest.err; then
 
7449
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7450
  else
 
7451
    ac_cpp_err=
 
7452
  fi
 
7453
else
 
7454
  ac_cpp_err=yes
 
7455
fi
 
7456
if test -z "$ac_cpp_err"; then
 
7457
  ac_header_preproc=yes
 
7458
else
 
7459
  echo "$as_me: failed program was:" >&5
 
7460
sed 's/^/| /' conftest.$ac_ext >&5
 
7461
 
 
7462
  ac_header_preproc=no
 
7463
fi
 
7464
rm -f conftest.err conftest.$ac_ext
 
7465
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7466
echo "${ECHO_T}$ac_header_preproc" >&6
 
7467
 
 
7468
# So?  What about this header?
 
7469
case $ac_header_compiler:$ac_header_preproc in
 
7470
  yes:no )
 
7471
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7472
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7473
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7474
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7475
    (
 
7476
      cat <<\_ASBOX
 
7477
## ------------------------------------ ##
 
7478
## Report this to bug-autoconf@gnu.org. ##
 
7479
## ------------------------------------ ##
 
7480
_ASBOX
 
7481
    ) |
 
7482
      sed "s/^/$as_me: WARNING:     /" >&2
 
7483
    ;;
 
7484
  no:yes )
 
7485
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7486
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7487
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
7488
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
7489
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7490
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7491
    (
 
7492
      cat <<\_ASBOX
 
7493
## ------------------------------------ ##
 
7494
## Report this to bug-autoconf@gnu.org. ##
 
7495
## ------------------------------------ ##
 
7496
_ASBOX
 
7497
    ) |
 
7498
      sed "s/^/$as_me: WARNING:     /" >&2
 
7499
    ;;
 
7500
esac
 
7501
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7502
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7503
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7505
else
 
7506
  eval "$as_ac_Header=$ac_header_preproc"
 
7507
fi
 
7508
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7509
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7510
 
 
7511
fi
 
7512
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7513
  cat >>confdefs.h <<_ACEOF
 
7514
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7515
_ACEOF
 
7516
 MYSQLINCLUDE="-I$MYSQL/include"
 
7517
fi
 
7518
 
 
7519
done
 
7520
 
 
7521
  if test "$ac_cv_header_mysql_mysql_h" = "yes" -a "$ac_cv_header_mysql_errmsg_h" = "yes"; then
 
7522
    EXTRAS="$EXTRAS check_mysql"
 
7523
 
 
7524
 
 
7525
 
 
7526
  else
 
7527
    { echo "$as_me:$LINENO: WARNING: Skipping mysql plugin" >&5
 
7528
echo "$as_me: WARNING: Skipping mysql plugin" >&2;}
 
7529
    { echo "$as_me:$LINENO: WARNING: install mysql client headers to compile this plugin (see REQUIREMENTS)." >&5
 
7530
echo "$as_me: WARNING: install mysql client headers to compile this plugin (see REQUIREMENTS)." >&2;}
 
7531
  fi
 
7532
else
 
7533
  { echo "$as_me:$LINENO: WARNING: Skipping mysql plugin" >&5
 
7534
echo "$as_me: WARNING: Skipping mysql plugin" >&2;}
 
7535
  { echo "$as_me:$LINENO: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS)." >&5
 
7536
echo "$as_me: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS)." >&2;}
 
7537
fi
 
7538
CPPFLAGS="$_SAVEDCPPFLAGS"
 
7539
LIBS="$_SAVEDLIBS"
 
7540
 
 
7541
# Extract the first word of "openssl", so it can be a program name with args.
 
7542
set dummy openssl; ac_word=$2
 
7543
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7544
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7545
if test "${ac_cv_path_OPENSSL+set}" = set; then
 
7546
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7547
else
 
7548
  case $OPENSSL in
 
7549
  [\\/]* | ?:[\\/]*)
 
7550
  ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
 
7551
  ;;
 
7552
  *)
 
7553
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7554
for as_dir in $PATH
 
7555
do
 
7556
  IFS=$as_save_IFS
 
7557
  test -z "$as_dir" && as_dir=.
 
7558
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7559
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7560
    ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
 
7561
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7562
    break 2
 
7563
  fi
 
7564
done
 
7565
done
 
7566
 
 
7567
  ;;
 
7568
esac
 
7569
fi
 
7570
OPENSSL=$ac_cv_path_OPENSSL
 
7571
 
 
7572
if test -n "$OPENSSL"; then
 
7573
  echo "$as_me:$LINENO: result: $OPENSSL" >&5
 
7574
echo "${ECHO_T}$OPENSSL" >&6
 
7575
else
 
7576
  echo "$as_me:$LINENO: result: no" >&5
 
7577
echo "${ECHO_T}no" >&6
 
7578
fi
 
7579
 
 
7580
if test "$OPENSSL" = "/usr/bin/openssl"; then
 
7581
  OPENSSL=/usr
 
7582
elif test "$OPENSSL" = "/usr/sbin/openssl"; then
 
7583
  OPENSSL=/usr
 
7584
elif test "$OPENSSL" = "/opt/bin/openssl"; then
 
7585
  OPENSSL=/opt
 
7586
elif test "$OPENSSL" = "/opt/openssl/bin/openssl"; then
 
7587
  OPENSSL=/opt/openssl
 
7588
elif test "$OPENSSL" = "/usr/slocal/bin/openssl"; then
 
7589
  OPENSSL=/usr/slocal
 
7590
elif test "$OPENSSL" = "/usr/local/bin/openssl"; then
 
7591
  OPENSSL=/usr/local
 
7592
elif test "$OPENSSL" = "/usr/local/ssl/bin/openssl"; then
 
7593
  OPENSSL=/usr/local/ssl
 
7594
fi
 
7595
 
 
7596
# Check whether --with-openssl or --without-openssl was given.
 
7597
if test "${with_openssl+set}" = set; then
 
7598
  withval="$with_openssl"
 
7599
  OPENSSL=$withval
 
7600
fi;
 
7601
 
 
7602
 
 
7603
for ac_header in krb5.h
 
7604
do
 
7605
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7606
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7607
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7608
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7609
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7611
fi
 
7612
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7613
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7614
else
 
7615
  # Is the header compilable?
 
7616
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7617
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7618
cat >conftest.$ac_ext <<_ACEOF
 
7619
#line $LINENO "configure"
 
7620
/* confdefs.h.  */
 
7621
_ACEOF
 
7622
cat confdefs.h >>conftest.$ac_ext
 
7623
cat >>conftest.$ac_ext <<_ACEOF
 
7624
/* end confdefs.h.  */
 
7625
$ac_includes_default
 
7626
#include <$ac_header>
 
7627
_ACEOF
 
7628
rm -f conftest.$ac_objext
 
7629
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7630
  (eval $ac_compile) 2>&5
 
7631
  ac_status=$?
 
7632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7633
  (exit $ac_status); } &&
 
7634
         { ac_try='test -s conftest.$ac_objext'
 
7635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7636
  (eval $ac_try) 2>&5
 
7637
  ac_status=$?
 
7638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7639
  (exit $ac_status); }; }; then
 
7640
  ac_header_compiler=yes
 
7641
else
 
7642
  echo "$as_me: failed program was:" >&5
 
7643
sed 's/^/| /' conftest.$ac_ext >&5
 
7644
 
 
7645
ac_header_compiler=no
 
7646
fi
 
7647
rm -f conftest.$ac_objext conftest.$ac_ext
 
7648
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7649
echo "${ECHO_T}$ac_header_compiler" >&6
 
7650
 
 
7651
# Is the header present?
 
7652
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7653
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7654
cat >conftest.$ac_ext <<_ACEOF
 
7655
#line $LINENO "configure"
 
7656
/* confdefs.h.  */
 
7657
_ACEOF
 
7658
cat confdefs.h >>conftest.$ac_ext
 
7659
cat >>conftest.$ac_ext <<_ACEOF
 
7660
/* end confdefs.h.  */
 
7661
#include <$ac_header>
 
7662
_ACEOF
 
7663
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7664
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7665
  ac_status=$?
 
7666
  grep -v '^ *+' conftest.er1 >conftest.err
 
7667
  rm -f conftest.er1
 
7668
  cat conftest.err >&5
 
7669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7670
  (exit $ac_status); } >/dev/null; then
 
7671
  if test -s conftest.err; then
 
7672
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7673
  else
 
7674
    ac_cpp_err=
 
7675
  fi
 
7676
else
 
7677
  ac_cpp_err=yes
 
7678
fi
 
7679
if test -z "$ac_cpp_err"; then
 
7680
  ac_header_preproc=yes
 
7681
else
 
7682
  echo "$as_me: failed program was:" >&5
 
7683
sed 's/^/| /' conftest.$ac_ext >&5
 
7684
 
 
7685
  ac_header_preproc=no
 
7686
fi
 
7687
rm -f conftest.err conftest.$ac_ext
 
7688
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7689
echo "${ECHO_T}$ac_header_preproc" >&6
 
7690
 
 
7691
# So?  What about this header?
 
7692
case $ac_header_compiler:$ac_header_preproc in
 
7693
  yes:no )
 
7694
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7695
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7696
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7697
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7698
    (
 
7699
      cat <<\_ASBOX
 
7700
## ------------------------------------ ##
 
7701
## Report this to bug-autoconf@gnu.org. ##
 
7702
## ------------------------------------ ##
 
7703
_ASBOX
 
7704
    ) |
 
7705
      sed "s/^/$as_me: WARNING:     /" >&2
 
7706
    ;;
 
7707
  no:yes )
 
7708
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7709
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7710
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
7711
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
7712
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7713
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7714
    (
 
7715
      cat <<\_ASBOX
 
7716
## ------------------------------------ ##
 
7717
## Report this to bug-autoconf@gnu.org. ##
 
7718
## ------------------------------------ ##
 
7719
_ASBOX
 
7720
    ) |
 
7721
      sed "s/^/$as_me: WARNING:     /" >&2
 
7722
    ;;
 
7723
esac
 
7724
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7725
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7726
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7728
else
 
7729
  eval "$as_ac_Header=$ac_header_preproc"
 
7730
fi
 
7731
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7732
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7733
 
 
7734
fi
 
7735
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7736
  cat >>confdefs.h <<_ACEOF
 
7737
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7738
_ACEOF
 
7739
 FOUNDINCLUDE=yes
 
7740
else
 
7741
  FOUNDINCLUDE=no
 
7742
fi
 
7743
 
 
7744
done
 
7745
 
 
7746
if test "$FOUNDINCLUDE" = "no"; then
 
7747
  _SAVEDCPPFLAGS="$CPPFLAGS"
 
7748
  CPPFLAGS="$_SAVEDCPPFLAGS -I/usr/kerberos/include"
 
7749
  unset ac_cv_header_krb5_h
 
7750
 
 
7751
for ac_header in krb5.h
 
7752
do
 
7753
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7754
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7755
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7756
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7758
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7759
fi
 
7760
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7761
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7762
else
 
7763
  # Is the header compilable?
 
7764
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7765
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7766
cat >conftest.$ac_ext <<_ACEOF
 
7767
#line $LINENO "configure"
 
7768
/* confdefs.h.  */
 
7769
_ACEOF
 
7770
cat confdefs.h >>conftest.$ac_ext
 
7771
cat >>conftest.$ac_ext <<_ACEOF
 
7772
/* end confdefs.h.  */
 
7773
$ac_includes_default
 
7774
#include <$ac_header>
 
7775
_ACEOF
 
7776
rm -f conftest.$ac_objext
 
7777
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7778
  (eval $ac_compile) 2>&5
 
7779
  ac_status=$?
 
7780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7781
  (exit $ac_status); } &&
 
7782
         { ac_try='test -s conftest.$ac_objext'
 
7783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7784
  (eval $ac_try) 2>&5
 
7785
  ac_status=$?
 
7786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7787
  (exit $ac_status); }; }; then
 
7788
  ac_header_compiler=yes
 
7789
else
 
7790
  echo "$as_me: failed program was:" >&5
 
7791
sed 's/^/| /' conftest.$ac_ext >&5
 
7792
 
 
7793
ac_header_compiler=no
 
7794
fi
 
7795
rm -f conftest.$ac_objext conftest.$ac_ext
 
7796
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7797
echo "${ECHO_T}$ac_header_compiler" >&6
 
7798
 
 
7799
# Is the header present?
 
7800
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7801
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7802
cat >conftest.$ac_ext <<_ACEOF
 
7803
#line $LINENO "configure"
 
7804
/* confdefs.h.  */
 
7805
_ACEOF
 
7806
cat confdefs.h >>conftest.$ac_ext
 
7807
cat >>conftest.$ac_ext <<_ACEOF
 
7808
/* end confdefs.h.  */
 
7809
#include <$ac_header>
 
7810
_ACEOF
 
7811
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7812
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7813
  ac_status=$?
 
7814
  grep -v '^ *+' conftest.er1 >conftest.err
 
7815
  rm -f conftest.er1
 
7816
  cat conftest.err >&5
 
7817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7818
  (exit $ac_status); } >/dev/null; then
 
7819
  if test -s conftest.err; then
 
7820
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7821
  else
 
7822
    ac_cpp_err=
 
7823
  fi
 
7824
else
 
7825
  ac_cpp_err=yes
 
7826
fi
 
7827
if test -z "$ac_cpp_err"; then
 
7828
  ac_header_preproc=yes
 
7829
else
 
7830
  echo "$as_me: failed program was:" >&5
 
7831
sed 's/^/| /' conftest.$ac_ext >&5
 
7832
 
 
7833
  ac_header_preproc=no
 
7834
fi
 
7835
rm -f conftest.err conftest.$ac_ext
 
7836
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7837
echo "${ECHO_T}$ac_header_preproc" >&6
 
7838
 
 
7839
# So?  What about this header?
 
7840
case $ac_header_compiler:$ac_header_preproc in
 
7841
  yes:no )
 
7842
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7843
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7844
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7845
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7846
    (
 
7847
      cat <<\_ASBOX
 
7848
## ------------------------------------ ##
 
7849
## Report this to bug-autoconf@gnu.org. ##
 
7850
## ------------------------------------ ##
 
7851
_ASBOX
 
7852
    ) |
 
7853
      sed "s/^/$as_me: WARNING:     /" >&2
 
7854
    ;;
 
7855
  no:yes )
 
7856
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7857
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7858
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
7859
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
7860
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7861
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7862
    (
 
7863
      cat <<\_ASBOX
 
7864
## ------------------------------------ ##
 
7865
## Report this to bug-autoconf@gnu.org. ##
 
7866
## ------------------------------------ ##
 
7867
_ASBOX
 
7868
    ) |
 
7869
      sed "s/^/$as_me: WARNING:     /" >&2
 
7870
    ;;
 
7871
esac
 
7872
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7873
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7874
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7876
else
 
7877
  eval "$as_ac_Header=$ac_header_preproc"
 
7878
fi
 
7879
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7880
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7881
 
 
7882
fi
 
7883
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7884
  cat >>confdefs.h <<_ACEOF
 
7885
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7886
_ACEOF
 
7887
 KRB5INCLUDE="-I/usr/kerberos/include"
 
7888
                   FOUNDINCLUDE=yes
 
7889
else
 
7890
  FOUNDINCLUDE=no
 
7891
fi
 
7892
 
 
7893
done
 
7894
 
 
7895
fi
 
7896
 
 
7897
if test "$FOUNDINCLUDE" = "no"; then
 
7898
  CPPFLAGS="$_SAVEDCPPFLAGS"
 
7899
fi
 
7900
 
 
7901
unset FOUNDINCLUDE
 
7902
_SAVEDCPPFLAGS="$CPPFLAGS"
 
7903
CPPFLAGS="$CPPFLAGS -I$OPENSSL/include"
 
7904
 
 
7905
 
 
7906
 
 
7907
 
 
7908
 
 
7909
 
 
7910
for ac_header in openssl/ssl.h openssl/x509.h openssl/rsa.h openssl/pem.h openssl/crypto.h openssl/err.h
 
7911
do
 
7912
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7913
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7914
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7915
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7916
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7918
fi
 
7919
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7920
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7921
else
 
7922
  # Is the header compilable?
 
7923
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7924
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7925
cat >conftest.$ac_ext <<_ACEOF
 
7926
#line $LINENO "configure"
 
7927
/* confdefs.h.  */
 
7928
_ACEOF
 
7929
cat confdefs.h >>conftest.$ac_ext
 
7930
cat >>conftest.$ac_ext <<_ACEOF
 
7931
/* end confdefs.h.  */
 
7932
$ac_includes_default
 
7933
#include <$ac_header>
 
7934
_ACEOF
 
7935
rm -f conftest.$ac_objext
 
7936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7937
  (eval $ac_compile) 2>&5
 
7938
  ac_status=$?
 
7939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7940
  (exit $ac_status); } &&
 
7941
         { ac_try='test -s conftest.$ac_objext'
 
7942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7943
  (eval $ac_try) 2>&5
 
7944
  ac_status=$?
 
7945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7946
  (exit $ac_status); }; }; then
 
7947
  ac_header_compiler=yes
 
7948
else
 
7949
  echo "$as_me: failed program was:" >&5
 
7950
sed 's/^/| /' conftest.$ac_ext >&5
 
7951
 
 
7952
ac_header_compiler=no
 
7953
fi
 
7954
rm -f conftest.$ac_objext conftest.$ac_ext
 
7955
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7956
echo "${ECHO_T}$ac_header_compiler" >&6
 
7957
 
 
7958
# Is the header present?
 
7959
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7960
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7961
cat >conftest.$ac_ext <<_ACEOF
 
7962
#line $LINENO "configure"
 
7963
/* confdefs.h.  */
 
7964
_ACEOF
 
7965
cat confdefs.h >>conftest.$ac_ext
 
7966
cat >>conftest.$ac_ext <<_ACEOF
 
7967
/* end confdefs.h.  */
 
7968
#include <$ac_header>
 
7969
_ACEOF
 
7970
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7971
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7972
  ac_status=$?
 
7973
  grep -v '^ *+' conftest.er1 >conftest.err
 
7974
  rm -f conftest.er1
 
7975
  cat conftest.err >&5
 
7976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7977
  (exit $ac_status); } >/dev/null; then
 
7978
  if test -s conftest.err; then
 
7979
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7980
  else
 
7981
    ac_cpp_err=
 
7982
  fi
 
7983
else
 
7984
  ac_cpp_err=yes
 
7985
fi
 
7986
if test -z "$ac_cpp_err"; then
 
7987
  ac_header_preproc=yes
 
7988
else
 
7989
  echo "$as_me: failed program was:" >&5
 
7990
sed 's/^/| /' conftest.$ac_ext >&5
 
7991
 
 
7992
  ac_header_preproc=no
 
7993
fi
 
7994
rm -f conftest.err conftest.$ac_ext
 
7995
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7996
echo "${ECHO_T}$ac_header_preproc" >&6
 
7997
 
 
7998
# So?  What about this header?
 
7999
case $ac_header_compiler:$ac_header_preproc in
 
8000
  yes:no )
 
8001
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8002
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8003
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8004
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8005
    (
 
8006
      cat <<\_ASBOX
 
8007
## ------------------------------------ ##
 
8008
## Report this to bug-autoconf@gnu.org. ##
 
8009
## ------------------------------------ ##
 
8010
_ASBOX
 
8011
    ) |
 
8012
      sed "s/^/$as_me: WARNING:     /" >&2
 
8013
    ;;
 
8014
  no:yes )
 
8015
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8016
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8017
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
8018
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
8019
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8020
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8021
    (
 
8022
      cat <<\_ASBOX
 
8023
## ------------------------------------ ##
 
8024
## Report this to bug-autoconf@gnu.org. ##
 
8025
## ------------------------------------ ##
 
8026
_ASBOX
 
8027
    ) |
 
8028
      sed "s/^/$as_me: WARNING:     /" >&2
 
8029
    ;;
 
8030
esac
 
8031
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8032
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8033
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8035
else
 
8036
  eval "$as_ac_Header=$ac_header_preproc"
 
8037
fi
 
8038
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8039
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8040
 
 
8041
fi
 
8042
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8043
  cat >>confdefs.h <<_ACEOF
 
8044
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8045
_ACEOF
 
8046
 SSLINCLUDE="-I$OPENSSL/include"
 
8047
                 FOUNDINCLUDE=yes
 
8048
else
 
8049
  FOUNDINCLUDE=no
 
8050
fi
 
8051
 
 
8052
done
 
8053
 
 
8054
if test "$FOUNDINCLUDE" = "no"; then
 
8055
 
 
8056
 
 
8057
 
 
8058
 
 
8059
 
 
8060
 
 
8061
for ac_header in ssl.h x509.h rsa.h pem.h crypto.h err.h
 
8062
do
 
8063
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8064
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8065
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8066
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8067
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8069
fi
 
8070
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8071
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8072
else
 
8073
  # Is the header compilable?
 
8074
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8075
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8076
cat >conftest.$ac_ext <<_ACEOF
 
8077
#line $LINENO "configure"
 
8078
/* confdefs.h.  */
 
8079
_ACEOF
 
8080
cat confdefs.h >>conftest.$ac_ext
 
8081
cat >>conftest.$ac_ext <<_ACEOF
 
8082
/* end confdefs.h.  */
 
8083
$ac_includes_default
 
8084
#include <$ac_header>
 
8085
_ACEOF
 
8086
rm -f conftest.$ac_objext
 
8087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8088
  (eval $ac_compile) 2>&5
 
8089
  ac_status=$?
 
8090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8091
  (exit $ac_status); } &&
 
8092
         { ac_try='test -s conftest.$ac_objext'
 
8093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8094
  (eval $ac_try) 2>&5
 
8095
  ac_status=$?
 
8096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8097
  (exit $ac_status); }; }; then
 
8098
  ac_header_compiler=yes
 
8099
else
 
8100
  echo "$as_me: failed program was:" >&5
 
8101
sed 's/^/| /' conftest.$ac_ext >&5
 
8102
 
 
8103
ac_header_compiler=no
 
8104
fi
 
8105
rm -f conftest.$ac_objext conftest.$ac_ext
 
8106
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8107
echo "${ECHO_T}$ac_header_compiler" >&6
 
8108
 
 
8109
# Is the header present?
 
8110
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8111
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8112
cat >conftest.$ac_ext <<_ACEOF
 
8113
#line $LINENO "configure"
 
8114
/* confdefs.h.  */
 
8115
_ACEOF
 
8116
cat confdefs.h >>conftest.$ac_ext
 
8117
cat >>conftest.$ac_ext <<_ACEOF
 
8118
/* end confdefs.h.  */
 
8119
#include <$ac_header>
 
8120
_ACEOF
 
8121
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8122
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8123
  ac_status=$?
 
8124
  grep -v '^ *+' conftest.er1 >conftest.err
 
8125
  rm -f conftest.er1
 
8126
  cat conftest.err >&5
 
8127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8128
  (exit $ac_status); } >/dev/null; then
 
8129
  if test -s conftest.err; then
 
8130
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8131
  else
 
8132
    ac_cpp_err=
 
8133
  fi
 
8134
else
 
8135
  ac_cpp_err=yes
 
8136
fi
 
8137
if test -z "$ac_cpp_err"; then
 
8138
  ac_header_preproc=yes
 
8139
else
 
8140
  echo "$as_me: failed program was:" >&5
 
8141
sed 's/^/| /' conftest.$ac_ext >&5
 
8142
 
 
8143
  ac_header_preproc=no
 
8144
fi
 
8145
rm -f conftest.err conftest.$ac_ext
 
8146
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8147
echo "${ECHO_T}$ac_header_preproc" >&6
 
8148
 
 
8149
# So?  What about this header?
 
8150
case $ac_header_compiler:$ac_header_preproc in
 
8151
  yes:no )
 
8152
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8153
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8154
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8155
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8156
    (
 
8157
      cat <<\_ASBOX
 
8158
## ------------------------------------ ##
 
8159
## Report this to bug-autoconf@gnu.org. ##
 
8160
## ------------------------------------ ##
 
8161
_ASBOX
 
8162
    ) |
 
8163
      sed "s/^/$as_me: WARNING:     /" >&2
 
8164
    ;;
 
8165
  no:yes )
 
8166
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8167
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8168
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
8169
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
8170
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8171
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8172
    (
 
8173
      cat <<\_ASBOX
 
8174
## ------------------------------------ ##
 
8175
## Report this to bug-autoconf@gnu.org. ##
 
8176
## ------------------------------------ ##
 
8177
_ASBOX
 
8178
    ) |
 
8179
      sed "s/^/$as_me: WARNING:     /" >&2
 
8180
    ;;
 
8181
esac
 
8182
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8183
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8184
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8186
else
 
8187
  eval "$as_ac_Header=$ac_header_preproc"
 
8188
fi
 
8189
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8190
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8191
 
 
8192
fi
 
8193
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8194
  cat >>confdefs.h <<_ACEOF
 
8195
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8196
_ACEOF
 
8197
 SSLINCLUDE="-I$OPENSSL/include"
 
8198
                   FOUNDINCLUDE=yes
 
8199
else
 
8200
  FOUNDINCLUDE=no
 
8201
fi
 
8202
 
 
8203
done
 
8204
 
 
8205
fi
 
8206
 
 
8207
if test "$FOUNDINCLUDE" = "no"; then
 
8208
  CPPFLAGS="$_SAVEDCPPFLAGS"
 
8209
fi
 
8210
 
 
8211
_SAVEDLIBS="$LIBS"
 
8212
 
 
8213
echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
 
8214
echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6
 
8215
if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
 
8216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8217
else
 
8218
  ac_check_lib_save_LIBS=$LIBS
 
8219
LIBS="-lcrypto -L$OPENSSL/lib $LIBS"
 
8220
cat >conftest.$ac_ext <<_ACEOF
 
8221
#line $LINENO "configure"
 
8222
/* confdefs.h.  */
 
8223
_ACEOF
 
8224
cat confdefs.h >>conftest.$ac_ext
 
8225
cat >>conftest.$ac_ext <<_ACEOF
 
8226
/* end confdefs.h.  */
 
8227
 
 
8228
/* Override any gcc2 internal prototype to avoid an error.  */
 
8229
#ifdef __cplusplus
 
8230
extern "C"
 
8231
#endif
 
8232
/* We use char because int might match the return type of a gcc2
 
8233
   builtin and then its argument prototype would still apply.  */
 
8234
char CRYPTO_lock ();
 
8235
int
 
8236
main ()
 
8237
{
 
8238
CRYPTO_lock ();
 
8239
  ;
 
8240
  return 0;
 
8241
}
 
8242
_ACEOF
 
8243
rm -f conftest.$ac_objext conftest$ac_exeext
 
8244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8245
  (eval $ac_link) 2>&5
 
8246
  ac_status=$?
 
8247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8248
  (exit $ac_status); } &&
 
8249
         { ac_try='test -s conftest$ac_exeext'
 
8250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8251
  (eval $ac_try) 2>&5
 
8252
  ac_status=$?
 
8253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8254
  (exit $ac_status); }; }; then
 
8255
  ac_cv_lib_crypto_CRYPTO_lock=yes
 
8256
else
 
8257
  echo "$as_me: failed program was:" >&5
 
8258
sed 's/^/| /' conftest.$ac_ext >&5
 
8259
 
 
8260
ac_cv_lib_crypto_CRYPTO_lock=no
 
8261
fi
 
8262
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8263
LIBS=$ac_check_lib_save_LIBS
 
8264
fi
 
8265
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
 
8266
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6
 
8267
if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
 
8268
  cat >>confdefs.h <<_ACEOF
 
8269
#define HAVE_LIBCRYPTO 1
 
8270
_ACEOF
 
8271
 
 
8272
  LIBS="-lcrypto $LIBS"
 
8273
 
 
8274
fi
 
8275
 
 
8276
if test "$ac_cv_lib_crypto_CRYPTO_lock" = "yes"; then
 
8277
    echo "$as_me:$LINENO: checking for main in -lssl" >&5
 
8278
echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6
 
8279
if test "${ac_cv_lib_ssl_main+set}" = set; then
 
8280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8281
else
 
8282
  ac_check_lib_save_LIBS=$LIBS
 
8283
LIBS="-lssl -L$OPENSSL/lib -lcrypto $LIBS"
 
8284
cat >conftest.$ac_ext <<_ACEOF
 
8285
#line $LINENO "configure"
 
8286
/* confdefs.h.  */
 
8287
_ACEOF
 
8288
cat confdefs.h >>conftest.$ac_ext
 
8289
cat >>conftest.$ac_ext <<_ACEOF
 
8290
/* end confdefs.h.  */
 
8291
 
 
8292
 
 
8293
int
 
8294
main ()
 
8295
{
 
8296
main ();
 
8297
  ;
 
8298
  return 0;
 
8299
}
 
8300
_ACEOF
 
8301
rm -f conftest.$ac_objext conftest$ac_exeext
 
8302
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8303
  (eval $ac_link) 2>&5
 
8304
  ac_status=$?
 
8305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8306
  (exit $ac_status); } &&
 
8307
         { ac_try='test -s conftest$ac_exeext'
 
8308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8309
  (eval $ac_try) 2>&5
 
8310
  ac_status=$?
 
8311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8312
  (exit $ac_status); }; }; then
 
8313
  ac_cv_lib_ssl_main=yes
 
8314
else
 
8315
  echo "$as_me: failed program was:" >&5
 
8316
sed 's/^/| /' conftest.$ac_ext >&5
 
8317
 
 
8318
ac_cv_lib_ssl_main=no
 
8319
fi
 
8320
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8321
LIBS=$ac_check_lib_save_LIBS
 
8322
fi
 
8323
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
 
8324
echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6
 
8325
if test $ac_cv_lib_ssl_main = yes; then
 
8326
  LDFLAGS="$LDFLAGS -L$OPENSSL/lib" SSLLIBS="-lssl -lcrypto"
 
8327
else
 
8328
  echo "$as_me:$LINENO: checking for main in -lssl" >&5
 
8329
echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6
 
8330
if test "${ac_cv_lib_ssl_main+set}" = set; then
 
8331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8332
else
 
8333
  ac_check_lib_save_LIBS=$LIBS
 
8334
LIBS="-lssl  $LIBS"
 
8335
cat >conftest.$ac_ext <<_ACEOF
 
8336
#line $LINENO "configure"
 
8337
/* confdefs.h.  */
 
8338
_ACEOF
 
8339
cat confdefs.h >>conftest.$ac_ext
 
8340
cat >>conftest.$ac_ext <<_ACEOF
 
8341
/* end confdefs.h.  */
 
8342
 
 
8343
 
 
8344
int
 
8345
main ()
 
8346
{
 
8347
main ();
 
8348
  ;
 
8349
  return 0;
 
8350
}
 
8351
_ACEOF
 
8352
rm -f conftest.$ac_objext conftest$ac_exeext
 
8353
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8354
  (eval $ac_link) 2>&5
 
8355
  ac_status=$?
 
8356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8357
  (exit $ac_status); } &&
 
8358
         { ac_try='test -s conftest$ac_exeext'
 
8359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8360
  (eval $ac_try) 2>&5
 
8361
  ac_status=$?
 
8362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8363
  (exit $ac_status); }; }; then
 
8364
  ac_cv_lib_ssl_main=yes
 
8365
else
 
8366
  echo "$as_me: failed program was:" >&5
 
8367
sed 's/^/| /' conftest.$ac_ext >&5
 
8368
 
 
8369
ac_cv_lib_ssl_main=no
 
8370
fi
 
8371
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8372
LIBS=$ac_check_lib_save_LIBS
 
8373
fi
 
8374
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
 
8375
echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6
 
8376
if test $ac_cv_lib_ssl_main = yes; then
 
8377
  LDFLAGS="$LDFLAGS -L$OPENSSL/lib" SSLLIBS="-lssl -lcrypto"
 
8378
fi
 
8379
 
 
8380
fi
 
8381
 
 
8382
fi
 
8383
LIBS="$_SAVEDLIBS"
 
8384
 
 
8385
if test "$ac_cv_lib_crypto_CRYPTO_lock" = "yes"; then
 
8386
  if test "$ac_cv_lib_ssl_main" = "yes"; then
 
8387
    if test "$FOUNDINCLUDE" = "yes"; then
 
8388
      check_tcp_ssl="check_simap check_spop"
 
8389
 
 
8390
 
 
8391
 
 
8392
cat >>confdefs.h <<\_ACEOF
 
8393
#define HAVE_SSL 1
 
8394
_ACEOF
 
8395
 
 
8396
    fi
 
8397
  fi
 
8398
fi
 
8399
CPPFLAGS="$_SAVEDCPPFLAGS"
 
8400
 
 
8401
 
 
8402
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
8403
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
8404
if test "${ac_cv_header_stdc+set}" = set; then
 
8405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8406
else
 
8407
  cat >conftest.$ac_ext <<_ACEOF
 
8408
#line $LINENO "configure"
 
8409
/* confdefs.h.  */
 
8410
_ACEOF
 
8411
cat confdefs.h >>conftest.$ac_ext
 
8412
cat >>conftest.$ac_ext <<_ACEOF
 
8413
/* end confdefs.h.  */
 
8414
#include <stdlib.h>
 
8415
#include <stdarg.h>
 
8416
#include <string.h>
 
8417
#include <float.h>
 
8418
 
 
8419
int
 
8420
main ()
 
8421
{
 
8422
 
 
8423
  ;
 
8424
  return 0;
 
8425
}
 
8426
_ACEOF
 
8427
rm -f conftest.$ac_objext
 
8428
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8429
  (eval $ac_compile) 2>&5
 
8430
  ac_status=$?
 
8431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8432
  (exit $ac_status); } &&
 
8433
         { ac_try='test -s conftest.$ac_objext'
 
8434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8435
  (eval $ac_try) 2>&5
 
8436
  ac_status=$?
 
8437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8438
  (exit $ac_status); }; }; then
 
8439
  ac_cv_header_stdc=yes
 
8440
else
 
8441
  echo "$as_me: failed program was:" >&5
 
8442
sed 's/^/| /' conftest.$ac_ext >&5
 
8443
 
 
8444
ac_cv_header_stdc=no
 
8445
fi
 
8446
rm -f conftest.$ac_objext conftest.$ac_ext
 
8447
 
 
8448
if test $ac_cv_header_stdc = yes; then
 
8449
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8450
  cat >conftest.$ac_ext <<_ACEOF
 
8451
#line $LINENO "configure"
 
8452
/* confdefs.h.  */
 
8453
_ACEOF
 
8454
cat confdefs.h >>conftest.$ac_ext
 
8455
cat >>conftest.$ac_ext <<_ACEOF
 
8456
/* end confdefs.h.  */
 
8457
#include <string.h>
 
8458
 
 
8459
_ACEOF
 
8460
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8461
  $EGREP "memchr" >/dev/null 2>&1; then
 
8462
  :
 
8463
else
 
8464
  ac_cv_header_stdc=no
 
8465
fi
 
8466
rm -f conftest*
 
8467
 
 
8468
fi
 
8469
 
 
8470
if test $ac_cv_header_stdc = yes; then
 
8471
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8472
  cat >conftest.$ac_ext <<_ACEOF
 
8473
#line $LINENO "configure"
 
8474
/* confdefs.h.  */
 
8475
_ACEOF
 
8476
cat confdefs.h >>conftest.$ac_ext
 
8477
cat >>conftest.$ac_ext <<_ACEOF
 
8478
/* end confdefs.h.  */
 
8479
#include <stdlib.h>
 
8480
 
 
8481
_ACEOF
 
8482
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8483
  $EGREP "free" >/dev/null 2>&1; then
 
8484
  :
 
8485
else
 
8486
  ac_cv_header_stdc=no
 
8487
fi
 
8488
rm -f conftest*
 
8489
 
 
8490
fi
 
8491
 
 
8492
if test $ac_cv_header_stdc = yes; then
 
8493
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8494
  if test "$cross_compiling" = yes; then
 
8495
  :
 
8496
else
 
8497
  cat >conftest.$ac_ext <<_ACEOF
 
8498
#line $LINENO "configure"
 
8499
/* confdefs.h.  */
 
8500
_ACEOF
 
8501
cat confdefs.h >>conftest.$ac_ext
 
8502
cat >>conftest.$ac_ext <<_ACEOF
 
8503
/* end confdefs.h.  */
 
8504
#include <ctype.h>
 
8505
#if ((' ' & 0x0FF) == 0x020)
 
8506
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8507
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8508
#else
 
8509
# define ISLOWER(c) \
 
8510
                   (('a' <= (c) && (c) <= 'i') \
 
8511
                     || ('j' <= (c) && (c) <= 'r') \
 
8512
                     || ('s' <= (c) && (c) <= 'z'))
 
8513
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8514
#endif
 
8515
 
 
8516
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8517
int
 
8518
main ()
 
8519
{
 
8520
  int i;
 
8521
  for (i = 0; i < 256; i++)
 
8522
    if (XOR (islower (i), ISLOWER (i))
 
8523
        || toupper (i) != TOUPPER (i))
 
8524
      exit(2);
 
8525
  exit (0);
 
8526
}
 
8527
_ACEOF
 
8528
rm -f conftest$ac_exeext
 
8529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8530
  (eval $ac_link) 2>&5
 
8531
  ac_status=$?
 
8532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8533
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8535
  (eval $ac_try) 2>&5
 
8536
  ac_status=$?
 
8537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8538
  (exit $ac_status); }; }; then
 
8539
  :
 
8540
else
 
8541
  echo "$as_me: program exited with status $ac_status" >&5
 
8542
echo "$as_me: failed program was:" >&5
 
8543
sed 's/^/| /' conftest.$ac_ext >&5
 
8544
 
 
8545
( exit $ac_status )
 
8546
ac_cv_header_stdc=no
 
8547
fi
 
8548
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8549
fi
 
8550
fi
 
8551
fi
 
8552
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
8553
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
8554
if test $ac_cv_header_stdc = yes; then
 
8555
 
 
8556
cat >>confdefs.h <<\_ACEOF
 
8557
#define STDC_HEADERS 1
 
8558
_ACEOF
 
8559
 
 
8560
fi
 
8561
 
 
8562
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
8563
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
8564
if test "${ac_cv_header_time+set}" = set; then
 
8565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8566
else
 
8567
  cat >conftest.$ac_ext <<_ACEOF
 
8568
#line $LINENO "configure"
 
8569
/* confdefs.h.  */
 
8570
_ACEOF
 
8571
cat confdefs.h >>conftest.$ac_ext
 
8572
cat >>conftest.$ac_ext <<_ACEOF
 
8573
/* end confdefs.h.  */
 
8574
#include <sys/types.h>
 
8575
#include <sys/time.h>
 
8576
#include <time.h>
 
8577
 
 
8578
int
 
8579
main ()
 
8580
{
 
8581
if ((struct tm *) 0)
 
8582
return 0;
 
8583
  ;
 
8584
  return 0;
 
8585
}
 
8586
_ACEOF
 
8587
rm -f conftest.$ac_objext
 
8588
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8589
  (eval $ac_compile) 2>&5
 
8590
  ac_status=$?
 
8591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8592
  (exit $ac_status); } &&
 
8593
         { ac_try='test -s conftest.$ac_objext'
 
8594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8595
  (eval $ac_try) 2>&5
 
8596
  ac_status=$?
 
8597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8598
  (exit $ac_status); }; }; then
 
8599
  ac_cv_header_time=yes
 
8600
else
 
8601
  echo "$as_me: failed program was:" >&5
 
8602
sed 's/^/| /' conftest.$ac_ext >&5
 
8603
 
 
8604
ac_cv_header_time=no
 
8605
fi
 
8606
rm -f conftest.$ac_objext conftest.$ac_ext
 
8607
fi
 
8608
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
8609
echo "${ECHO_T}$ac_cv_header_time" >&6
 
8610
if test $ac_cv_header_time = yes; then
 
8611
 
 
8612
cat >>confdefs.h <<\_ACEOF
 
8613
#define TIME_WITH_SYS_TIME 1
 
8614
_ACEOF
 
8615
 
 
8616
fi
 
8617
 
 
8618
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
8619
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
 
8620
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
8621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8622
else
 
8623
  cat >conftest.$ac_ext <<_ACEOF
 
8624
#line $LINENO "configure"
 
8625
/* confdefs.h.  */
 
8626
_ACEOF
 
8627
cat confdefs.h >>conftest.$ac_ext
 
8628
cat >>conftest.$ac_ext <<_ACEOF
 
8629
/* end confdefs.h.  */
 
8630
#include <sys/types.h>
 
8631
#include <sys/wait.h>
 
8632
#ifndef WEXITSTATUS
 
8633
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
8634
#endif
 
8635
#ifndef WIFEXITED
 
8636
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
8637
#endif
 
8638
 
 
8639
int
 
8640
main ()
 
8641
{
 
8642
  int s;
 
8643
  wait (&s);
 
8644
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
8645
  ;
 
8646
  return 0;
 
8647
}
 
8648
_ACEOF
 
8649
rm -f conftest.$ac_objext
 
8650
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8651
  (eval $ac_compile) 2>&5
 
8652
  ac_status=$?
 
8653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8654
  (exit $ac_status); } &&
 
8655
         { ac_try='test -s conftest.$ac_objext'
 
8656
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8657
  (eval $ac_try) 2>&5
 
8658
  ac_status=$?
 
8659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8660
  (exit $ac_status); }; }; then
 
8661
  ac_cv_header_sys_wait_h=yes
 
8662
else
 
8663
  echo "$as_me: failed program was:" >&5
 
8664
sed 's/^/| /' conftest.$ac_ext >&5
 
8665
 
 
8666
ac_cv_header_sys_wait_h=no
 
8667
fi
 
8668
rm -f conftest.$ac_objext conftest.$ac_ext
 
8669
fi
 
8670
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
8671
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
 
8672
if test $ac_cv_header_sys_wait_h = yes; then
 
8673
 
 
8674
cat >>confdefs.h <<\_ACEOF
 
8675
#define HAVE_SYS_WAIT_H 1
 
8676
_ACEOF
 
8677
 
 
8678
fi
 
8679
 
 
8680
 
 
8681
 
 
8682
 
 
8683
 
 
8684
 
 
8685
 
 
8686
 
 
8687
 
 
8688
 
 
8689
 
 
8690
 
 
8691
 
 
8692
for ac_header in signal.h strings.h string.h syslog.h unistd.h uio.h errno.h regex.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h
 
8693
do
 
8694
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8695
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8696
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8697
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8698
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8700
fi
 
8701
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8702
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8703
else
 
8704
  # Is the header compilable?
 
8705
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8706
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8707
cat >conftest.$ac_ext <<_ACEOF
 
8708
#line $LINENO "configure"
 
8709
/* confdefs.h.  */
 
8710
_ACEOF
 
8711
cat confdefs.h >>conftest.$ac_ext
 
8712
cat >>conftest.$ac_ext <<_ACEOF
 
8713
/* end confdefs.h.  */
 
8714
$ac_includes_default
 
8715
#include <$ac_header>
 
8716
_ACEOF
 
8717
rm -f conftest.$ac_objext
 
8718
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8719
  (eval $ac_compile) 2>&5
 
8720
  ac_status=$?
 
8721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8722
  (exit $ac_status); } &&
 
8723
         { ac_try='test -s conftest.$ac_objext'
 
8724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8725
  (eval $ac_try) 2>&5
 
8726
  ac_status=$?
 
8727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8728
  (exit $ac_status); }; }; then
 
8729
  ac_header_compiler=yes
 
8730
else
 
8731
  echo "$as_me: failed program was:" >&5
 
8732
sed 's/^/| /' conftest.$ac_ext >&5
 
8733
 
 
8734
ac_header_compiler=no
 
8735
fi
 
8736
rm -f conftest.$ac_objext conftest.$ac_ext
 
8737
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8738
echo "${ECHO_T}$ac_header_compiler" >&6
 
8739
 
 
8740
# Is the header present?
 
8741
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8742
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8743
cat >conftest.$ac_ext <<_ACEOF
 
8744
#line $LINENO "configure"
 
8745
/* confdefs.h.  */
 
8746
_ACEOF
 
8747
cat confdefs.h >>conftest.$ac_ext
 
8748
cat >>conftest.$ac_ext <<_ACEOF
 
8749
/* end confdefs.h.  */
 
8750
#include <$ac_header>
 
8751
_ACEOF
 
8752
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8753
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8754
  ac_status=$?
 
8755
  grep -v '^ *+' conftest.er1 >conftest.err
 
8756
  rm -f conftest.er1
 
8757
  cat conftest.err >&5
 
8758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8759
  (exit $ac_status); } >/dev/null; then
 
8760
  if test -s conftest.err; then
 
8761
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8762
  else
 
8763
    ac_cpp_err=
 
8764
  fi
 
8765
else
 
8766
  ac_cpp_err=yes
 
8767
fi
 
8768
if test -z "$ac_cpp_err"; then
 
8769
  ac_header_preproc=yes
 
8770
else
 
8771
  echo "$as_me: failed program was:" >&5
 
8772
sed 's/^/| /' conftest.$ac_ext >&5
 
8773
 
 
8774
  ac_header_preproc=no
 
8775
fi
 
8776
rm -f conftest.err conftest.$ac_ext
 
8777
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8778
echo "${ECHO_T}$ac_header_preproc" >&6
 
8779
 
 
8780
# So?  What about this header?
 
8781
case $ac_header_compiler:$ac_header_preproc in
 
8782
  yes:no )
 
8783
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8784
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8785
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8786
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8787
    (
 
8788
      cat <<\_ASBOX
 
8789
## ------------------------------------ ##
 
8790
## Report this to bug-autoconf@gnu.org. ##
 
8791
## ------------------------------------ ##
 
8792
_ASBOX
 
8793
    ) |
 
8794
      sed "s/^/$as_me: WARNING:     /" >&2
 
8795
    ;;
 
8796
  no:yes )
 
8797
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8798
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8799
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
8800
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
8801
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8802
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8803
    (
 
8804
      cat <<\_ASBOX
 
8805
## ------------------------------------ ##
 
8806
## Report this to bug-autoconf@gnu.org. ##
 
8807
## ------------------------------------ ##
 
8808
_ASBOX
 
8809
    ) |
 
8810
      sed "s/^/$as_me: WARNING:     /" >&2
 
8811
    ;;
 
8812
esac
 
8813
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8814
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8815
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8816
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8817
else
 
8818
  eval "$as_ac_Header=$ac_header_preproc"
 
8819
fi
 
8820
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8821
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8822
 
 
8823
fi
 
8824
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8825
  cat >>confdefs.h <<_ACEOF
 
8826
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8827
_ACEOF
 
8828
 
 
8829
fi
 
8830
 
 
8831
done
 
8832
 
 
8833
 
 
8834
 
 
8835
 
 
8836
 
 
8837
 
 
8838
 
 
8839
for ac_header in stdarg.h sys/unistd.h unistd.h ctype.h sys/wait.h stdlib.h
 
8840
do
 
8841
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8842
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8843
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8844
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8845
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8847
fi
 
8848
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8849
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8850
else
 
8851
  # Is the header compilable?
 
8852
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8853
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8854
cat >conftest.$ac_ext <<_ACEOF
 
8855
#line $LINENO "configure"
 
8856
/* confdefs.h.  */
 
8857
_ACEOF
 
8858
cat confdefs.h >>conftest.$ac_ext
 
8859
cat >>conftest.$ac_ext <<_ACEOF
 
8860
/* end confdefs.h.  */
 
8861
$ac_includes_default
 
8862
#include <$ac_header>
 
8863
_ACEOF
 
8864
rm -f conftest.$ac_objext
 
8865
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8866
  (eval $ac_compile) 2>&5
 
8867
  ac_status=$?
 
8868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8869
  (exit $ac_status); } &&
 
8870
         { ac_try='test -s conftest.$ac_objext'
 
8871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8872
  (eval $ac_try) 2>&5
 
8873
  ac_status=$?
 
8874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8875
  (exit $ac_status); }; }; then
 
8876
  ac_header_compiler=yes
 
8877
else
 
8878
  echo "$as_me: failed program was:" >&5
 
8879
sed 's/^/| /' conftest.$ac_ext >&5
 
8880
 
 
8881
ac_header_compiler=no
 
8882
fi
 
8883
rm -f conftest.$ac_objext conftest.$ac_ext
 
8884
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8885
echo "${ECHO_T}$ac_header_compiler" >&6
 
8886
 
 
8887
# Is the header present?
 
8888
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8889
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8890
cat >conftest.$ac_ext <<_ACEOF
 
8891
#line $LINENO "configure"
 
8892
/* confdefs.h.  */
 
8893
_ACEOF
 
8894
cat confdefs.h >>conftest.$ac_ext
 
8895
cat >>conftest.$ac_ext <<_ACEOF
 
8896
/* end confdefs.h.  */
 
8897
#include <$ac_header>
 
8898
_ACEOF
 
8899
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8900
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8901
  ac_status=$?
 
8902
  grep -v '^ *+' conftest.er1 >conftest.err
 
8903
  rm -f conftest.er1
 
8904
  cat conftest.err >&5
 
8905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8906
  (exit $ac_status); } >/dev/null; then
 
8907
  if test -s conftest.err; then
 
8908
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8909
  else
 
8910
    ac_cpp_err=
 
8911
  fi
 
8912
else
 
8913
  ac_cpp_err=yes
 
8914
fi
 
8915
if test -z "$ac_cpp_err"; then
 
8916
  ac_header_preproc=yes
 
8917
else
 
8918
  echo "$as_me: failed program was:" >&5
 
8919
sed 's/^/| /' conftest.$ac_ext >&5
 
8920
 
 
8921
  ac_header_preproc=no
 
8922
fi
 
8923
rm -f conftest.err conftest.$ac_ext
 
8924
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8925
echo "${ECHO_T}$ac_header_preproc" >&6
 
8926
 
 
8927
# So?  What about this header?
 
8928
case $ac_header_compiler:$ac_header_preproc in
 
8929
  yes:no )
 
8930
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8931
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8932
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8933
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8934
    (
 
8935
      cat <<\_ASBOX
 
8936
## ------------------------------------ ##
 
8937
## Report this to bug-autoconf@gnu.org. ##
 
8938
## ------------------------------------ ##
 
8939
_ASBOX
 
8940
    ) |
 
8941
      sed "s/^/$as_me: WARNING:     /" >&2
 
8942
    ;;
 
8943
  no:yes )
 
8944
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8945
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8946
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
8947
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
8948
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8949
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8950
    (
 
8951
      cat <<\_ASBOX
 
8952
## ------------------------------------ ##
 
8953
## Report this to bug-autoconf@gnu.org. ##
 
8954
## ------------------------------------ ##
 
8955
_ASBOX
 
8956
    ) |
 
8957
      sed "s/^/$as_me: WARNING:     /" >&2
 
8958
    ;;
 
8959
esac
 
8960
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8961
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8962
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8964
else
 
8965
  eval "$as_ac_Header=$ac_header_preproc"
 
8966
fi
 
8967
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8968
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8969
 
 
8970
fi
 
8971
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8972
  cat >>confdefs.h <<_ACEOF
 
8973
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8974
_ACEOF
 
8975
 
 
8976
fi
 
8977
 
 
8978
done
 
8979
 
 
8980
 
 
8981
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
8982
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
8983
if test "${ac_cv_c_const+set}" = set; then
 
8984
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8985
else
 
8986
  cat >conftest.$ac_ext <<_ACEOF
 
8987
#line $LINENO "configure"
 
8988
/* confdefs.h.  */
 
8989
_ACEOF
 
8990
cat confdefs.h >>conftest.$ac_ext
 
8991
cat >>conftest.$ac_ext <<_ACEOF
 
8992
/* end confdefs.h.  */
 
8993
 
 
8994
int
 
8995
main ()
 
8996
{
 
8997
/* FIXME: Include the comments suggested by Paul. */
 
8998
#ifndef __cplusplus
 
8999
  /* Ultrix mips cc rejects this.  */
 
9000
  typedef int charset[2];
 
9001
  const charset x;
 
9002
  /* SunOS 4.1.1 cc rejects this.  */
 
9003
  char const *const *ccp;
 
9004
  char **p;
 
9005
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
9006
  struct point {int x, y;};
 
9007
  static struct point const zero = {0,0};
 
9008
  /* AIX XL C 1.02.0.0 rejects this.
 
9009
     It does not let you subtract one const X* pointer from another in
 
9010
     an arm of an if-expression whose if-part is not a constant
 
9011
     expression */
 
9012
  const char *g = "string";
 
9013
  ccp = &g + (g ? g-g : 0);
 
9014
  /* HPUX 7.0 cc rejects these. */
 
9015
  ++ccp;
 
9016
  p = (char**) ccp;
 
9017
  ccp = (char const *const *) p;
 
9018
  { /* SCO 3.2v4 cc rejects this.  */
 
9019
    char *t;
 
9020
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
9021
 
 
9022
    *t++ = 0;
 
9023
  }
 
9024
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
9025
    int x[] = {25, 17};
 
9026
    const int *foo = &x[0];
 
9027
    ++foo;
 
9028
  }
 
9029
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
9030
    typedef const int *iptr;
 
9031
    iptr p = 0;
 
9032
    ++p;
 
9033
  }
 
9034
  { /* AIX XL C 1.02.0.0 rejects this saying
 
9035
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
9036
    struct s { int j; const int *ap[3]; };
 
9037
    struct s *b; b->j = 5;
 
9038
  }
 
9039
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
9040
    const int foo = 10;
 
9041
  }
 
9042
#endif
 
9043
 
 
9044
  ;
 
9045
  return 0;
 
9046
}
 
9047
_ACEOF
 
9048
rm -f conftest.$ac_objext
 
9049
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9050
  (eval $ac_compile) 2>&5
 
9051
  ac_status=$?
 
9052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9053
  (exit $ac_status); } &&
 
9054
         { ac_try='test -s conftest.$ac_objext'
 
9055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9056
  (eval $ac_try) 2>&5
 
9057
  ac_status=$?
 
9058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9059
  (exit $ac_status); }; }; then
 
9060
  ac_cv_c_const=yes
 
9061
else
 
9062
  echo "$as_me: failed program was:" >&5
 
9063
sed 's/^/| /' conftest.$ac_ext >&5
 
9064
 
 
9065
ac_cv_c_const=no
 
9066
fi
 
9067
rm -f conftest.$ac_objext conftest.$ac_ext
 
9068
fi
 
9069
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
9070
echo "${ECHO_T}$ac_cv_c_const" >&6
 
9071
if test $ac_cv_c_const = no; then
 
9072
 
 
9073
cat >>confdefs.h <<\_ACEOF
 
9074
#define const
 
9075
_ACEOF
 
9076
 
 
9077
fi
 
9078
 
 
9079
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
9080
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
 
9081
if test "${ac_cv_struct_tm+set}" = set; then
 
9082
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9083
else
 
9084
  cat >conftest.$ac_ext <<_ACEOF
 
9085
#line $LINENO "configure"
 
9086
/* confdefs.h.  */
 
9087
_ACEOF
 
9088
cat confdefs.h >>conftest.$ac_ext
 
9089
cat >>conftest.$ac_ext <<_ACEOF
 
9090
/* end confdefs.h.  */
 
9091
#include <sys/types.h>
 
9092
#include <time.h>
 
9093
 
 
9094
int
 
9095
main ()
 
9096
{
 
9097
struct tm *tp; tp->tm_sec;
 
9098
  ;
 
9099
  return 0;
 
9100
}
 
9101
_ACEOF
 
9102
rm -f conftest.$ac_objext
 
9103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9104
  (eval $ac_compile) 2>&5
 
9105
  ac_status=$?
 
9106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9107
  (exit $ac_status); } &&
 
9108
         { ac_try='test -s conftest.$ac_objext'
 
9109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9110
  (eval $ac_try) 2>&5
 
9111
  ac_status=$?
 
9112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9113
  (exit $ac_status); }; }; then
 
9114
  ac_cv_struct_tm=time.h
 
9115
else
 
9116
  echo "$as_me: failed program was:" >&5
 
9117
sed 's/^/| /' conftest.$ac_ext >&5
 
9118
 
 
9119
ac_cv_struct_tm=sys/time.h
 
9120
fi
 
9121
rm -f conftest.$ac_objext conftest.$ac_ext
 
9122
fi
 
9123
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
9124
echo "${ECHO_T}$ac_cv_struct_tm" >&6
 
9125
if test $ac_cv_struct_tm = sys/time.h; then
 
9126
 
 
9127
cat >>confdefs.h <<\_ACEOF
 
9128
#define TM_IN_SYS_TIME 1
 
9129
_ACEOF
 
9130
 
 
9131
fi
 
9132
 
 
9133
echo "$as_me:$LINENO: checking for pid_t" >&5
 
9134
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
9135
if test "${ac_cv_type_pid_t+set}" = set; then
 
9136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9137
else
 
9138
  cat >conftest.$ac_ext <<_ACEOF
 
9139
#line $LINENO "configure"
 
9140
/* confdefs.h.  */
 
9141
_ACEOF
 
9142
cat confdefs.h >>conftest.$ac_ext
 
9143
cat >>conftest.$ac_ext <<_ACEOF
 
9144
/* end confdefs.h.  */
 
9145
$ac_includes_default
 
9146
int
 
9147
main ()
 
9148
{
 
9149
if ((pid_t *) 0)
 
9150
  return 0;
 
9151
if (sizeof (pid_t))
 
9152
  return 0;
 
9153
  ;
 
9154
  return 0;
 
9155
}
 
9156
_ACEOF
 
9157
rm -f conftest.$ac_objext
 
9158
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9159
  (eval $ac_compile) 2>&5
 
9160
  ac_status=$?
 
9161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9162
  (exit $ac_status); } &&
 
9163
         { ac_try='test -s conftest.$ac_objext'
 
9164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9165
  (eval $ac_try) 2>&5
 
9166
  ac_status=$?
 
9167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9168
  (exit $ac_status); }; }; then
 
9169
  ac_cv_type_pid_t=yes
 
9170
else
 
9171
  echo "$as_me: failed program was:" >&5
 
9172
sed 's/^/| /' conftest.$ac_ext >&5
 
9173
 
 
9174
ac_cv_type_pid_t=no
 
9175
fi
 
9176
rm -f conftest.$ac_objext conftest.$ac_ext
 
9177
fi
 
9178
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
9179
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
9180
if test $ac_cv_type_pid_t = yes; then
 
9181
  :
 
9182
else
 
9183
 
 
9184
cat >>confdefs.h <<_ACEOF
 
9185
#define pid_t int
 
9186
_ACEOF
 
9187
 
 
9188
fi
 
9189
 
 
9190
echo "$as_me:$LINENO: checking for size_t" >&5
 
9191
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
9192
if test "${ac_cv_type_size_t+set}" = set; then
 
9193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9194
else
 
9195
  cat >conftest.$ac_ext <<_ACEOF
 
9196
#line $LINENO "configure"
 
9197
/* confdefs.h.  */
 
9198
_ACEOF
 
9199
cat confdefs.h >>conftest.$ac_ext
 
9200
cat >>conftest.$ac_ext <<_ACEOF
 
9201
/* end confdefs.h.  */
 
9202
$ac_includes_default
 
9203
int
 
9204
main ()
 
9205
{
 
9206
if ((size_t *) 0)
 
9207
  return 0;
 
9208
if (sizeof (size_t))
 
9209
  return 0;
 
9210
  ;
 
9211
  return 0;
 
9212
}
 
9213
_ACEOF
 
9214
rm -f conftest.$ac_objext
 
9215
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9216
  (eval $ac_compile) 2>&5
 
9217
  ac_status=$?
 
9218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9219
  (exit $ac_status); } &&
 
9220
         { ac_try='test -s conftest.$ac_objext'
 
9221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9222
  (eval $ac_try) 2>&5
 
9223
  ac_status=$?
 
9224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9225
  (exit $ac_status); }; }; then
 
9226
  ac_cv_type_size_t=yes
 
9227
else
 
9228
  echo "$as_me: failed program was:" >&5
 
9229
sed 's/^/| /' conftest.$ac_ext >&5
 
9230
 
 
9231
ac_cv_type_size_t=no
 
9232
fi
 
9233
rm -f conftest.$ac_objext conftest.$ac_ext
 
9234
fi
 
9235
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
9236
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
9237
if test $ac_cv_type_size_t = yes; then
 
9238
  :
 
9239
else
 
9240
 
 
9241
cat >>confdefs.h <<_ACEOF
 
9242
#define size_t unsigned
 
9243
_ACEOF
 
9244
 
 
9245
fi
 
9246
 
 
9247
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
9248
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
9249
if test "${ac_cv_type_signal+set}" = set; then
 
9250
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9251
else
 
9252
  cat >conftest.$ac_ext <<_ACEOF
 
9253
#line $LINENO "configure"
 
9254
/* confdefs.h.  */
 
9255
_ACEOF
 
9256
cat confdefs.h >>conftest.$ac_ext
 
9257
cat >>conftest.$ac_ext <<_ACEOF
 
9258
/* end confdefs.h.  */
 
9259
#include <sys/types.h>
 
9260
#include <signal.h>
 
9261
#ifdef signal
 
9262
# undef signal
 
9263
#endif
 
9264
#ifdef __cplusplus
 
9265
extern "C" void (*signal (int, void (*)(int)))(int);
 
9266
#else
 
9267
void (*signal ()) ();
 
9268
#endif
 
9269
 
 
9270
int
 
9271
main ()
 
9272
{
 
9273
int i;
 
9274
  ;
 
9275
  return 0;
 
9276
}
 
9277
_ACEOF
 
9278
rm -f conftest.$ac_objext
 
9279
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9280
  (eval $ac_compile) 2>&5
 
9281
  ac_status=$?
 
9282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9283
  (exit $ac_status); } &&
 
9284
         { ac_try='test -s conftest.$ac_objext'
 
9285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9286
  (eval $ac_try) 2>&5
 
9287
  ac_status=$?
 
9288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9289
  (exit $ac_status); }; }; then
 
9290
  ac_cv_type_signal=void
 
9291
else
 
9292
  echo "$as_me: failed program was:" >&5
 
9293
sed 's/^/| /' conftest.$ac_ext >&5
 
9294
 
 
9295
ac_cv_type_signal=int
 
9296
fi
 
9297
rm -f conftest.$ac_objext conftest.$ac_ext
 
9298
fi
 
9299
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
9300
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
9301
 
 
9302
cat >>confdefs.h <<_ACEOF
 
9303
#define RETSIGTYPE $ac_cv_type_signal
 
9304
_ACEOF
 
9305
 
 
9306
 
 
9307
 
 
9308
echo "$as_me:$LINENO: checking for int" >&5
 
9309
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
9310
if test "${ac_cv_type_int+set}" = set; then
 
9311
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9312
else
 
9313
  cat >conftest.$ac_ext <<_ACEOF
 
9314
#line $LINENO "configure"
 
9315
/* confdefs.h.  */
 
9316
_ACEOF
 
9317
cat confdefs.h >>conftest.$ac_ext
 
9318
cat >>conftest.$ac_ext <<_ACEOF
 
9319
/* end confdefs.h.  */
 
9320
$ac_includes_default
 
9321
int
 
9322
main ()
 
9323
{
 
9324
if ((int *) 0)
 
9325
  return 0;
 
9326
if (sizeof (int))
 
9327
  return 0;
 
9328
  ;
 
9329
  return 0;
 
9330
}
 
9331
_ACEOF
 
9332
rm -f conftest.$ac_objext
 
9333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9334
  (eval $ac_compile) 2>&5
 
9335
  ac_status=$?
 
9336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9337
  (exit $ac_status); } &&
 
9338
         { ac_try='test -s conftest.$ac_objext'
 
9339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9340
  (eval $ac_try) 2>&5
 
9341
  ac_status=$?
 
9342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9343
  (exit $ac_status); }; }; then
 
9344
  ac_cv_type_int=yes
 
9345
else
 
9346
  echo "$as_me: failed program was:" >&5
 
9347
sed 's/^/| /' conftest.$ac_ext >&5
 
9348
 
 
9349
ac_cv_type_int=no
 
9350
fi
 
9351
rm -f conftest.$ac_objext conftest.$ac_ext
 
9352
fi
 
9353
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
9354
echo "${ECHO_T}$ac_cv_type_int" >&6
 
9355
 
 
9356
echo "$as_me:$LINENO: checking size of int" >&5
 
9357
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
9358
if test "${ac_cv_sizeof_int+set}" = set; then
 
9359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9360
else
 
9361
  if test "$ac_cv_type_int" = yes; then
 
9362
  # The cast to unsigned long works around a bug in the HP C Compiler
 
9363
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
9364
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
9365
  # This bug is HP SR number 8606223364.
 
9366
  if test "$cross_compiling" = yes; then
 
9367
  # Depending upon the size, compute the lo and hi bounds.
 
9368
cat >conftest.$ac_ext <<_ACEOF
 
9369
#line $LINENO "configure"
 
9370
/* confdefs.h.  */
 
9371
_ACEOF
 
9372
cat confdefs.h >>conftest.$ac_ext
 
9373
cat >>conftest.$ac_ext <<_ACEOF
 
9374
/* end confdefs.h.  */
 
9375
$ac_includes_default
 
9376
int
 
9377
main ()
 
9378
{
 
9379
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
9380
test_array [0] = 0
 
9381
 
 
9382
  ;
 
9383
  return 0;
 
9384
}
 
9385
_ACEOF
 
9386
rm -f conftest.$ac_objext
 
9387
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9388
  (eval $ac_compile) 2>&5
 
9389
  ac_status=$?
 
9390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9391
  (exit $ac_status); } &&
 
9392
         { ac_try='test -s conftest.$ac_objext'
 
9393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9394
  (eval $ac_try) 2>&5
 
9395
  ac_status=$?
 
9396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9397
  (exit $ac_status); }; }; then
 
9398
  ac_lo=0 ac_mid=0
 
9399
  while :; do
 
9400
    cat >conftest.$ac_ext <<_ACEOF
 
9401
#line $LINENO "configure"
 
9402
/* confdefs.h.  */
 
9403
_ACEOF
 
9404
cat confdefs.h >>conftest.$ac_ext
 
9405
cat >>conftest.$ac_ext <<_ACEOF
 
9406
/* end confdefs.h.  */
 
9407
$ac_includes_default
 
9408
int
 
9409
main ()
 
9410
{
 
9411
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
9412
test_array [0] = 0
 
9413
 
 
9414
  ;
 
9415
  return 0;
 
9416
}
 
9417
_ACEOF
 
9418
rm -f conftest.$ac_objext
 
9419
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9420
  (eval $ac_compile) 2>&5
 
9421
  ac_status=$?
 
9422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9423
  (exit $ac_status); } &&
 
9424
         { ac_try='test -s conftest.$ac_objext'
 
9425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9426
  (eval $ac_try) 2>&5
 
9427
  ac_status=$?
 
9428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9429
  (exit $ac_status); }; }; then
 
9430
  ac_hi=$ac_mid; break
 
9431
else
 
9432
  echo "$as_me: failed program was:" >&5
 
9433
sed 's/^/| /' conftest.$ac_ext >&5
 
9434
 
 
9435
ac_lo=`expr $ac_mid + 1`
 
9436
                    if test $ac_lo -le $ac_mid; then
 
9437
                      ac_lo= ac_hi=
 
9438
                      break
 
9439
                    fi
 
9440
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
9441
fi
 
9442
rm -f conftest.$ac_objext conftest.$ac_ext
 
9443
  done
 
9444
else
 
9445
  echo "$as_me: failed program was:" >&5
 
9446
sed 's/^/| /' conftest.$ac_ext >&5
 
9447
 
 
9448
cat >conftest.$ac_ext <<_ACEOF
 
9449
#line $LINENO "configure"
 
9450
/* confdefs.h.  */
 
9451
_ACEOF
 
9452
cat confdefs.h >>conftest.$ac_ext
 
9453
cat >>conftest.$ac_ext <<_ACEOF
 
9454
/* end confdefs.h.  */
 
9455
$ac_includes_default
 
9456
int
 
9457
main ()
 
9458
{
 
9459
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
9460
test_array [0] = 0
 
9461
 
 
9462
  ;
 
9463
  return 0;
 
9464
}
 
9465
_ACEOF
 
9466
rm -f conftest.$ac_objext
 
9467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9468
  (eval $ac_compile) 2>&5
 
9469
  ac_status=$?
 
9470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9471
  (exit $ac_status); } &&
 
9472
         { ac_try='test -s conftest.$ac_objext'
 
9473
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9474
  (eval $ac_try) 2>&5
 
9475
  ac_status=$?
 
9476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9477
  (exit $ac_status); }; }; then
 
9478
  ac_hi=-1 ac_mid=-1
 
9479
  while :; do
 
9480
    cat >conftest.$ac_ext <<_ACEOF
 
9481
#line $LINENO "configure"
 
9482
/* confdefs.h.  */
 
9483
_ACEOF
 
9484
cat confdefs.h >>conftest.$ac_ext
 
9485
cat >>conftest.$ac_ext <<_ACEOF
 
9486
/* end confdefs.h.  */
 
9487
$ac_includes_default
 
9488
int
 
9489
main ()
 
9490
{
 
9491
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
9492
test_array [0] = 0
 
9493
 
 
9494
  ;
 
9495
  return 0;
 
9496
}
 
9497
_ACEOF
 
9498
rm -f conftest.$ac_objext
 
9499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9500
  (eval $ac_compile) 2>&5
 
9501
  ac_status=$?
 
9502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9503
  (exit $ac_status); } &&
 
9504
         { ac_try='test -s conftest.$ac_objext'
 
9505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9506
  (eval $ac_try) 2>&5
 
9507
  ac_status=$?
 
9508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9509
  (exit $ac_status); }; }; then
 
9510
  ac_lo=$ac_mid; break
 
9511
else
 
9512
  echo "$as_me: failed program was:" >&5
 
9513
sed 's/^/| /' conftest.$ac_ext >&5
 
9514
 
 
9515
ac_hi=`expr '(' $ac_mid ')' - 1`
 
9516
                       if test $ac_mid -le $ac_hi; then
 
9517
                         ac_lo= ac_hi=
 
9518
                         break
 
9519
                       fi
 
9520
                       ac_mid=`expr 2 '*' $ac_mid`
 
9521
fi
 
9522
rm -f conftest.$ac_objext conftest.$ac_ext
 
9523
  done
 
9524
else
 
9525
  echo "$as_me: failed program was:" >&5
 
9526
sed 's/^/| /' conftest.$ac_ext >&5
 
9527
 
 
9528
ac_lo= ac_hi=
 
9529
fi
 
9530
rm -f conftest.$ac_objext conftest.$ac_ext
 
9531
fi
 
9532
rm -f conftest.$ac_objext conftest.$ac_ext
 
9533
# Binary search between lo and hi bounds.
 
9534
while test "x$ac_lo" != "x$ac_hi"; do
 
9535
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
9536
  cat >conftest.$ac_ext <<_ACEOF
 
9537
#line $LINENO "configure"
 
9538
/* confdefs.h.  */
 
9539
_ACEOF
 
9540
cat confdefs.h >>conftest.$ac_ext
 
9541
cat >>conftest.$ac_ext <<_ACEOF
 
9542
/* end confdefs.h.  */
 
9543
$ac_includes_default
 
9544
int
 
9545
main ()
 
9546
{
 
9547
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
9548
test_array [0] = 0
 
9549
 
 
9550
  ;
 
9551
  return 0;
 
9552
}
 
9553
_ACEOF
 
9554
rm -f conftest.$ac_objext
 
9555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9556
  (eval $ac_compile) 2>&5
 
9557
  ac_status=$?
 
9558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9559
  (exit $ac_status); } &&
 
9560
         { ac_try='test -s conftest.$ac_objext'
 
9561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9562
  (eval $ac_try) 2>&5
 
9563
  ac_status=$?
 
9564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9565
  (exit $ac_status); }; }; then
 
9566
  ac_hi=$ac_mid
 
9567
else
 
9568
  echo "$as_me: failed program was:" >&5
 
9569
sed 's/^/| /' conftest.$ac_ext >&5
 
9570
 
 
9571
ac_lo=`expr '(' $ac_mid ')' + 1`
 
9572
fi
 
9573
rm -f conftest.$ac_objext conftest.$ac_ext
 
9574
done
 
9575
case $ac_lo in
 
9576
?*) ac_cv_sizeof_int=$ac_lo;;
 
9577
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
9578
See \`config.log' for more details." >&5
 
9579
echo "$as_me: error: cannot compute sizeof (int), 77
 
9580
See \`config.log' for more details." >&2;}
 
9581
   { (exit 1); exit 1; }; } ;;
 
9582
esac
 
9583
else
 
9584
  if test "$cross_compiling" = yes; then
 
9585
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
9586
See \`config.log' for more details." >&5
 
9587
echo "$as_me: error: cannot run test program while cross compiling
 
9588
See \`config.log' for more details." >&2;}
 
9589
   { (exit 1); exit 1; }; }
 
9590
else
 
9591
  cat >conftest.$ac_ext <<_ACEOF
 
9592
#line $LINENO "configure"
 
9593
/* confdefs.h.  */
 
9594
_ACEOF
 
9595
cat confdefs.h >>conftest.$ac_ext
 
9596
cat >>conftest.$ac_ext <<_ACEOF
 
9597
/* end confdefs.h.  */
 
9598
$ac_includes_default
 
9599
long longval () { return (long) (sizeof (int)); }
 
9600
unsigned long ulongval () { return (long) (sizeof (int)); }
 
9601
#include <stdio.h>
 
9602
#include <stdlib.h>
 
9603
int
 
9604
main ()
 
9605
{
 
9606
 
 
9607
  FILE *f = fopen ("conftest.val", "w");
 
9608
  if (! f)
 
9609
    exit (1);
 
9610
  if (((long) (sizeof (int))) < 0)
 
9611
    {
 
9612
      long i = longval ();
 
9613
      if (i != ((long) (sizeof (int))))
 
9614
        exit (1);
 
9615
      fprintf (f, "%ld\n", i);
 
9616
    }
 
9617
  else
 
9618
    {
 
9619
      unsigned long i = ulongval ();
 
9620
      if (i != ((long) (sizeof (int))))
 
9621
        exit (1);
 
9622
      fprintf (f, "%lu\n", i);
 
9623
    }
 
9624
  exit (ferror (f) || fclose (f) != 0);
 
9625
 
 
9626
  ;
 
9627
  return 0;
 
9628
}
 
9629
_ACEOF
 
9630
rm -f conftest$ac_exeext
 
9631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9632
  (eval $ac_link) 2>&5
 
9633
  ac_status=$?
 
9634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9635
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9637
  (eval $ac_try) 2>&5
 
9638
  ac_status=$?
 
9639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9640
  (exit $ac_status); }; }; then
 
9641
  ac_cv_sizeof_int=`cat conftest.val`
 
9642
else
 
9643
  echo "$as_me: program exited with status $ac_status" >&5
 
9644
echo "$as_me: failed program was:" >&5
 
9645
sed 's/^/| /' conftest.$ac_ext >&5
 
9646
 
 
9647
( exit $ac_status )
 
9648
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
9649
See \`config.log' for more details." >&5
 
9650
echo "$as_me: error: cannot compute sizeof (int), 77
 
9651
See \`config.log' for more details." >&2;}
 
9652
   { (exit 1); exit 1; }; }
 
9653
fi
 
9654
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9655
fi
 
9656
fi
 
9657
rm -f conftest.val
 
9658
else
 
9659
  ac_cv_sizeof_int=0
 
9660
fi
 
9661
fi
 
9662
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
9663
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
9664
cat >>confdefs.h <<_ACEOF
 
9665
#define SIZEOF_INT $ac_cv_sizeof_int
 
9666
_ACEOF
 
9667
 
 
9668
 
 
9669
echo "$as_me:$LINENO: checking for long" >&5
 
9670
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
9671
if test "${ac_cv_type_long+set}" = set; then
 
9672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9673
else
 
9674
  cat >conftest.$ac_ext <<_ACEOF
 
9675
#line $LINENO "configure"
 
9676
/* confdefs.h.  */
 
9677
_ACEOF
 
9678
cat confdefs.h >>conftest.$ac_ext
 
9679
cat >>conftest.$ac_ext <<_ACEOF
 
9680
/* end confdefs.h.  */
 
9681
$ac_includes_default
 
9682
int
 
9683
main ()
 
9684
{
 
9685
if ((long *) 0)
 
9686
  return 0;
 
9687
if (sizeof (long))
 
9688
  return 0;
 
9689
  ;
 
9690
  return 0;
 
9691
}
 
9692
_ACEOF
 
9693
rm -f conftest.$ac_objext
 
9694
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9695
  (eval $ac_compile) 2>&5
 
9696
  ac_status=$?
 
9697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9698
  (exit $ac_status); } &&
 
9699
         { ac_try='test -s conftest.$ac_objext'
 
9700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9701
  (eval $ac_try) 2>&5
 
9702
  ac_status=$?
 
9703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9704
  (exit $ac_status); }; }; then
 
9705
  ac_cv_type_long=yes
 
9706
else
 
9707
  echo "$as_me: failed program was:" >&5
 
9708
sed 's/^/| /' conftest.$ac_ext >&5
 
9709
 
 
9710
ac_cv_type_long=no
 
9711
fi
 
9712
rm -f conftest.$ac_objext conftest.$ac_ext
 
9713
fi
 
9714
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
9715
echo "${ECHO_T}$ac_cv_type_long" >&6
 
9716
 
 
9717
echo "$as_me:$LINENO: checking size of long" >&5
 
9718
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
9719
if test "${ac_cv_sizeof_long+set}" = set; then
 
9720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9721
else
 
9722
  if test "$ac_cv_type_long" = yes; then
 
9723
  # The cast to unsigned long works around a bug in the HP C Compiler
 
9724
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
9725
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
9726
  # This bug is HP SR number 8606223364.
 
9727
  if test "$cross_compiling" = yes; then
 
9728
  # Depending upon the size, compute the lo and hi bounds.
 
9729
cat >conftest.$ac_ext <<_ACEOF
 
9730
#line $LINENO "configure"
 
9731
/* confdefs.h.  */
 
9732
_ACEOF
 
9733
cat confdefs.h >>conftest.$ac_ext
 
9734
cat >>conftest.$ac_ext <<_ACEOF
 
9735
/* end confdefs.h.  */
 
9736
$ac_includes_default
 
9737
int
 
9738
main ()
 
9739
{
 
9740
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
9741
test_array [0] = 0
 
9742
 
 
9743
  ;
 
9744
  return 0;
 
9745
}
 
9746
_ACEOF
 
9747
rm -f conftest.$ac_objext
 
9748
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9749
  (eval $ac_compile) 2>&5
 
9750
  ac_status=$?
 
9751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9752
  (exit $ac_status); } &&
 
9753
         { ac_try='test -s conftest.$ac_objext'
 
9754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9755
  (eval $ac_try) 2>&5
 
9756
  ac_status=$?
 
9757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9758
  (exit $ac_status); }; }; then
 
9759
  ac_lo=0 ac_mid=0
 
9760
  while :; do
 
9761
    cat >conftest.$ac_ext <<_ACEOF
 
9762
#line $LINENO "configure"
 
9763
/* confdefs.h.  */
 
9764
_ACEOF
 
9765
cat confdefs.h >>conftest.$ac_ext
 
9766
cat >>conftest.$ac_ext <<_ACEOF
 
9767
/* end confdefs.h.  */
 
9768
$ac_includes_default
 
9769
int
 
9770
main ()
 
9771
{
 
9772
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
9773
test_array [0] = 0
 
9774
 
 
9775
  ;
 
9776
  return 0;
 
9777
}
 
9778
_ACEOF
 
9779
rm -f conftest.$ac_objext
 
9780
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9781
  (eval $ac_compile) 2>&5
 
9782
  ac_status=$?
 
9783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9784
  (exit $ac_status); } &&
 
9785
         { ac_try='test -s conftest.$ac_objext'
 
9786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9787
  (eval $ac_try) 2>&5
 
9788
  ac_status=$?
 
9789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9790
  (exit $ac_status); }; }; then
 
9791
  ac_hi=$ac_mid; break
 
9792
else
 
9793
  echo "$as_me: failed program was:" >&5
 
9794
sed 's/^/| /' conftest.$ac_ext >&5
 
9795
 
 
9796
ac_lo=`expr $ac_mid + 1`
 
9797
                    if test $ac_lo -le $ac_mid; then
 
9798
                      ac_lo= ac_hi=
 
9799
                      break
 
9800
                    fi
 
9801
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
9802
fi
 
9803
rm -f conftest.$ac_objext conftest.$ac_ext
 
9804
  done
 
9805
else
 
9806
  echo "$as_me: failed program was:" >&5
 
9807
sed 's/^/| /' conftest.$ac_ext >&5
 
9808
 
 
9809
cat >conftest.$ac_ext <<_ACEOF
 
9810
#line $LINENO "configure"
 
9811
/* confdefs.h.  */
 
9812
_ACEOF
 
9813
cat confdefs.h >>conftest.$ac_ext
 
9814
cat >>conftest.$ac_ext <<_ACEOF
 
9815
/* end confdefs.h.  */
 
9816
$ac_includes_default
 
9817
int
 
9818
main ()
 
9819
{
 
9820
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
9821
test_array [0] = 0
 
9822
 
 
9823
  ;
 
9824
  return 0;
 
9825
}
 
9826
_ACEOF
 
9827
rm -f conftest.$ac_objext
 
9828
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9829
  (eval $ac_compile) 2>&5
 
9830
  ac_status=$?
 
9831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9832
  (exit $ac_status); } &&
 
9833
         { ac_try='test -s conftest.$ac_objext'
 
9834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9835
  (eval $ac_try) 2>&5
 
9836
  ac_status=$?
 
9837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9838
  (exit $ac_status); }; }; then
 
9839
  ac_hi=-1 ac_mid=-1
 
9840
  while :; do
 
9841
    cat >conftest.$ac_ext <<_ACEOF
 
9842
#line $LINENO "configure"
 
9843
/* confdefs.h.  */
 
9844
_ACEOF
 
9845
cat confdefs.h >>conftest.$ac_ext
 
9846
cat >>conftest.$ac_ext <<_ACEOF
 
9847
/* end confdefs.h.  */
 
9848
$ac_includes_default
 
9849
int
 
9850
main ()
 
9851
{
 
9852
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
9853
test_array [0] = 0
 
9854
 
 
9855
  ;
 
9856
  return 0;
 
9857
}
 
9858
_ACEOF
 
9859
rm -f conftest.$ac_objext
 
9860
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9861
  (eval $ac_compile) 2>&5
 
9862
  ac_status=$?
 
9863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9864
  (exit $ac_status); } &&
 
9865
         { ac_try='test -s conftest.$ac_objext'
 
9866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9867
  (eval $ac_try) 2>&5
 
9868
  ac_status=$?
 
9869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9870
  (exit $ac_status); }; }; then
 
9871
  ac_lo=$ac_mid; break
 
9872
else
 
9873
  echo "$as_me: failed program was:" >&5
 
9874
sed 's/^/| /' conftest.$ac_ext >&5
 
9875
 
 
9876
ac_hi=`expr '(' $ac_mid ')' - 1`
 
9877
                       if test $ac_mid -le $ac_hi; then
 
9878
                         ac_lo= ac_hi=
 
9879
                         break
 
9880
                       fi
 
9881
                       ac_mid=`expr 2 '*' $ac_mid`
 
9882
fi
 
9883
rm -f conftest.$ac_objext conftest.$ac_ext
 
9884
  done
 
9885
else
 
9886
  echo "$as_me: failed program was:" >&5
 
9887
sed 's/^/| /' conftest.$ac_ext >&5
 
9888
 
 
9889
ac_lo= ac_hi=
 
9890
fi
 
9891
rm -f conftest.$ac_objext conftest.$ac_ext
 
9892
fi
 
9893
rm -f conftest.$ac_objext conftest.$ac_ext
 
9894
# Binary search between lo and hi bounds.
 
9895
while test "x$ac_lo" != "x$ac_hi"; do
 
9896
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
9897
  cat >conftest.$ac_ext <<_ACEOF
 
9898
#line $LINENO "configure"
 
9899
/* confdefs.h.  */
 
9900
_ACEOF
 
9901
cat confdefs.h >>conftest.$ac_ext
 
9902
cat >>conftest.$ac_ext <<_ACEOF
 
9903
/* end confdefs.h.  */
 
9904
$ac_includes_default
 
9905
int
 
9906
main ()
 
9907
{
 
9908
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
9909
test_array [0] = 0
 
9910
 
 
9911
  ;
 
9912
  return 0;
 
9913
}
 
9914
_ACEOF
 
9915
rm -f conftest.$ac_objext
 
9916
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9917
  (eval $ac_compile) 2>&5
 
9918
  ac_status=$?
 
9919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9920
  (exit $ac_status); } &&
 
9921
         { ac_try='test -s conftest.$ac_objext'
 
9922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9923
  (eval $ac_try) 2>&5
 
9924
  ac_status=$?
 
9925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9926
  (exit $ac_status); }; }; then
 
9927
  ac_hi=$ac_mid
 
9928
else
 
9929
  echo "$as_me: failed program was:" >&5
 
9930
sed 's/^/| /' conftest.$ac_ext >&5
 
9931
 
 
9932
ac_lo=`expr '(' $ac_mid ')' + 1`
 
9933
fi
 
9934
rm -f conftest.$ac_objext conftest.$ac_ext
 
9935
done
 
9936
case $ac_lo in
 
9937
?*) ac_cv_sizeof_long=$ac_lo;;
 
9938
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
9939
See \`config.log' for more details." >&5
 
9940
echo "$as_me: error: cannot compute sizeof (long), 77
 
9941
See \`config.log' for more details." >&2;}
 
9942
   { (exit 1); exit 1; }; } ;;
 
9943
esac
 
9944
else
 
9945
  if test "$cross_compiling" = yes; then
 
9946
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
9947
See \`config.log' for more details." >&5
 
9948
echo "$as_me: error: cannot run test program while cross compiling
 
9949
See \`config.log' for more details." >&2;}
 
9950
   { (exit 1); exit 1; }; }
 
9951
else
 
9952
  cat >conftest.$ac_ext <<_ACEOF
 
9953
#line $LINENO "configure"
 
9954
/* confdefs.h.  */
 
9955
_ACEOF
 
9956
cat confdefs.h >>conftest.$ac_ext
 
9957
cat >>conftest.$ac_ext <<_ACEOF
 
9958
/* end confdefs.h.  */
 
9959
$ac_includes_default
 
9960
long longval () { return (long) (sizeof (long)); }
 
9961
unsigned long ulongval () { return (long) (sizeof (long)); }
 
9962
#include <stdio.h>
 
9963
#include <stdlib.h>
 
9964
int
 
9965
main ()
 
9966
{
 
9967
 
 
9968
  FILE *f = fopen ("conftest.val", "w");
 
9969
  if (! f)
 
9970
    exit (1);
 
9971
  if (((long) (sizeof (long))) < 0)
 
9972
    {
 
9973
      long i = longval ();
 
9974
      if (i != ((long) (sizeof (long))))
 
9975
        exit (1);
 
9976
      fprintf (f, "%ld\n", i);
 
9977
    }
 
9978
  else
 
9979
    {
 
9980
      unsigned long i = ulongval ();
 
9981
      if (i != ((long) (sizeof (long))))
 
9982
        exit (1);
 
9983
      fprintf (f, "%lu\n", i);
 
9984
    }
 
9985
  exit (ferror (f) || fclose (f) != 0);
 
9986
 
 
9987
  ;
 
9988
  return 0;
 
9989
}
 
9990
_ACEOF
 
9991
rm -f conftest$ac_exeext
 
9992
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9993
  (eval $ac_link) 2>&5
 
9994
  ac_status=$?
 
9995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9996
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9997
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9998
  (eval $ac_try) 2>&5
 
9999
  ac_status=$?
 
10000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10001
  (exit $ac_status); }; }; then
 
10002
  ac_cv_sizeof_long=`cat conftest.val`
 
10003
else
 
10004
  echo "$as_me: program exited with status $ac_status" >&5
 
10005
echo "$as_me: failed program was:" >&5
 
10006
sed 's/^/| /' conftest.$ac_ext >&5
 
10007
 
 
10008
( exit $ac_status )
 
10009
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
10010
See \`config.log' for more details." >&5
 
10011
echo "$as_me: error: cannot compute sizeof (long), 77
 
10012
See \`config.log' for more details." >&2;}
 
10013
   { (exit 1); exit 1; }; }
 
10014
fi
 
10015
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10016
fi
 
10017
fi
 
10018
rm -f conftest.val
 
10019
else
 
10020
  ac_cv_sizeof_long=0
 
10021
fi
 
10022
fi
 
10023
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
10024
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
10025
cat >>confdefs.h <<_ACEOF
 
10026
#define SIZEOF_LONG $ac_cv_sizeof_long
 
10027
_ACEOF
 
10028
 
 
10029
 
 
10030
echo "$as_me:$LINENO: checking for short" >&5
 
10031
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
10032
if test "${ac_cv_type_short+set}" = set; then
 
10033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10034
else
 
10035
  cat >conftest.$ac_ext <<_ACEOF
 
10036
#line $LINENO "configure"
 
10037
/* confdefs.h.  */
 
10038
_ACEOF
 
10039
cat confdefs.h >>conftest.$ac_ext
 
10040
cat >>conftest.$ac_ext <<_ACEOF
 
10041
/* end confdefs.h.  */
 
10042
$ac_includes_default
 
10043
int
 
10044
main ()
 
10045
{
 
10046
if ((short *) 0)
 
10047
  return 0;
 
10048
if (sizeof (short))
 
10049
  return 0;
 
10050
  ;
 
10051
  return 0;
 
10052
}
 
10053
_ACEOF
 
10054
rm -f conftest.$ac_objext
 
10055
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10056
  (eval $ac_compile) 2>&5
 
10057
  ac_status=$?
 
10058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10059
  (exit $ac_status); } &&
 
10060
         { ac_try='test -s conftest.$ac_objext'
 
10061
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10062
  (eval $ac_try) 2>&5
 
10063
  ac_status=$?
 
10064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10065
  (exit $ac_status); }; }; then
 
10066
  ac_cv_type_short=yes
 
10067
else
 
10068
  echo "$as_me: failed program was:" >&5
 
10069
sed 's/^/| /' conftest.$ac_ext >&5
 
10070
 
 
10071
ac_cv_type_short=no
 
10072
fi
 
10073
rm -f conftest.$ac_objext conftest.$ac_ext
 
10074
fi
 
10075
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
10076
echo "${ECHO_T}$ac_cv_type_short" >&6
 
10077
 
 
10078
echo "$as_me:$LINENO: checking size of short" >&5
 
10079
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
10080
if test "${ac_cv_sizeof_short+set}" = set; then
 
10081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10082
else
 
10083
  if test "$ac_cv_type_short" = yes; then
 
10084
  # The cast to unsigned long works around a bug in the HP C Compiler
 
10085
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
10086
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
10087
  # This bug is HP SR number 8606223364.
 
10088
  if test "$cross_compiling" = yes; then
 
10089
  # Depending upon the size, compute the lo and hi bounds.
 
10090
cat >conftest.$ac_ext <<_ACEOF
 
10091
#line $LINENO "configure"
 
10092
/* confdefs.h.  */
 
10093
_ACEOF
 
10094
cat confdefs.h >>conftest.$ac_ext
 
10095
cat >>conftest.$ac_ext <<_ACEOF
 
10096
/* end confdefs.h.  */
 
10097
$ac_includes_default
 
10098
int
 
10099
main ()
 
10100
{
 
10101
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
10102
test_array [0] = 0
 
10103
 
 
10104
  ;
 
10105
  return 0;
 
10106
}
 
10107
_ACEOF
 
10108
rm -f conftest.$ac_objext
 
10109
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10110
  (eval $ac_compile) 2>&5
 
10111
  ac_status=$?
 
10112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10113
  (exit $ac_status); } &&
 
10114
         { ac_try='test -s conftest.$ac_objext'
 
10115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10116
  (eval $ac_try) 2>&5
 
10117
  ac_status=$?
 
10118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10119
  (exit $ac_status); }; }; then
 
10120
  ac_lo=0 ac_mid=0
 
10121
  while :; do
 
10122
    cat >conftest.$ac_ext <<_ACEOF
 
10123
#line $LINENO "configure"
 
10124
/* confdefs.h.  */
 
10125
_ACEOF
 
10126
cat confdefs.h >>conftest.$ac_ext
 
10127
cat >>conftest.$ac_ext <<_ACEOF
 
10128
/* end confdefs.h.  */
 
10129
$ac_includes_default
 
10130
int
 
10131
main ()
 
10132
{
 
10133
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
10134
test_array [0] = 0
 
10135
 
 
10136
  ;
 
10137
  return 0;
 
10138
}
 
10139
_ACEOF
 
10140
rm -f conftest.$ac_objext
 
10141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10142
  (eval $ac_compile) 2>&5
 
10143
  ac_status=$?
 
10144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10145
  (exit $ac_status); } &&
 
10146
         { ac_try='test -s conftest.$ac_objext'
 
10147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10148
  (eval $ac_try) 2>&5
 
10149
  ac_status=$?
 
10150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10151
  (exit $ac_status); }; }; then
 
10152
  ac_hi=$ac_mid; break
 
10153
else
 
10154
  echo "$as_me: failed program was:" >&5
 
10155
sed 's/^/| /' conftest.$ac_ext >&5
 
10156
 
 
10157
ac_lo=`expr $ac_mid + 1`
 
10158
                    if test $ac_lo -le $ac_mid; then
 
10159
                      ac_lo= ac_hi=
 
10160
                      break
 
10161
                    fi
 
10162
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
10163
fi
 
10164
rm -f conftest.$ac_objext conftest.$ac_ext
 
10165
  done
 
10166
else
 
10167
  echo "$as_me: failed program was:" >&5
 
10168
sed 's/^/| /' conftest.$ac_ext >&5
 
10169
 
 
10170
cat >conftest.$ac_ext <<_ACEOF
 
10171
#line $LINENO "configure"
 
10172
/* confdefs.h.  */
 
10173
_ACEOF
 
10174
cat confdefs.h >>conftest.$ac_ext
 
10175
cat >>conftest.$ac_ext <<_ACEOF
 
10176
/* end confdefs.h.  */
 
10177
$ac_includes_default
 
10178
int
 
10179
main ()
 
10180
{
 
10181
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
10182
test_array [0] = 0
 
10183
 
 
10184
  ;
 
10185
  return 0;
 
10186
}
 
10187
_ACEOF
 
10188
rm -f conftest.$ac_objext
 
10189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10190
  (eval $ac_compile) 2>&5
 
10191
  ac_status=$?
 
10192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10193
  (exit $ac_status); } &&
 
10194
         { ac_try='test -s conftest.$ac_objext'
 
10195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10196
  (eval $ac_try) 2>&5
 
10197
  ac_status=$?
 
10198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10199
  (exit $ac_status); }; }; then
 
10200
  ac_hi=-1 ac_mid=-1
 
10201
  while :; do
 
10202
    cat >conftest.$ac_ext <<_ACEOF
 
10203
#line $LINENO "configure"
 
10204
/* confdefs.h.  */
 
10205
_ACEOF
 
10206
cat confdefs.h >>conftest.$ac_ext
 
10207
cat >>conftest.$ac_ext <<_ACEOF
 
10208
/* end confdefs.h.  */
 
10209
$ac_includes_default
 
10210
int
 
10211
main ()
 
10212
{
 
10213
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
10214
test_array [0] = 0
 
10215
 
 
10216
  ;
 
10217
  return 0;
 
10218
}
 
10219
_ACEOF
 
10220
rm -f conftest.$ac_objext
 
10221
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10222
  (eval $ac_compile) 2>&5
 
10223
  ac_status=$?
 
10224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10225
  (exit $ac_status); } &&
 
10226
         { ac_try='test -s conftest.$ac_objext'
 
10227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10228
  (eval $ac_try) 2>&5
 
10229
  ac_status=$?
 
10230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10231
  (exit $ac_status); }; }; then
 
10232
  ac_lo=$ac_mid; break
 
10233
else
 
10234
  echo "$as_me: failed program was:" >&5
 
10235
sed 's/^/| /' conftest.$ac_ext >&5
 
10236
 
 
10237
ac_hi=`expr '(' $ac_mid ')' - 1`
 
10238
                       if test $ac_mid -le $ac_hi; then
 
10239
                         ac_lo= ac_hi=
 
10240
                         break
 
10241
                       fi
 
10242
                       ac_mid=`expr 2 '*' $ac_mid`
 
10243
fi
 
10244
rm -f conftest.$ac_objext conftest.$ac_ext
 
10245
  done
 
10246
else
 
10247
  echo "$as_me: failed program was:" >&5
 
10248
sed 's/^/| /' conftest.$ac_ext >&5
 
10249
 
 
10250
ac_lo= ac_hi=
 
10251
fi
 
10252
rm -f conftest.$ac_objext conftest.$ac_ext
 
10253
fi
 
10254
rm -f conftest.$ac_objext conftest.$ac_ext
 
10255
# Binary search between lo and hi bounds.
 
10256
while test "x$ac_lo" != "x$ac_hi"; do
 
10257
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
10258
  cat >conftest.$ac_ext <<_ACEOF
 
10259
#line $LINENO "configure"
 
10260
/* confdefs.h.  */
 
10261
_ACEOF
 
10262
cat confdefs.h >>conftest.$ac_ext
 
10263
cat >>conftest.$ac_ext <<_ACEOF
 
10264
/* end confdefs.h.  */
 
10265
$ac_includes_default
 
10266
int
 
10267
main ()
 
10268
{
 
10269
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
10270
test_array [0] = 0
 
10271
 
 
10272
  ;
 
10273
  return 0;
 
10274
}
 
10275
_ACEOF
 
10276
rm -f conftest.$ac_objext
 
10277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10278
  (eval $ac_compile) 2>&5
 
10279
  ac_status=$?
 
10280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10281
  (exit $ac_status); } &&
 
10282
         { ac_try='test -s conftest.$ac_objext'
 
10283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10284
  (eval $ac_try) 2>&5
 
10285
  ac_status=$?
 
10286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10287
  (exit $ac_status); }; }; then
 
10288
  ac_hi=$ac_mid
 
10289
else
 
10290
  echo "$as_me: failed program was:" >&5
 
10291
sed 's/^/| /' conftest.$ac_ext >&5
 
10292
 
 
10293
ac_lo=`expr '(' $ac_mid ')' + 1`
 
10294
fi
 
10295
rm -f conftest.$ac_objext conftest.$ac_ext
 
10296
done
 
10297
case $ac_lo in
 
10298
?*) ac_cv_sizeof_short=$ac_lo;;
 
10299
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
10300
See \`config.log' for more details." >&5
 
10301
echo "$as_me: error: cannot compute sizeof (short), 77
 
10302
See \`config.log' for more details." >&2;}
 
10303
   { (exit 1); exit 1; }; } ;;
 
10304
esac
 
10305
else
 
10306
  if test "$cross_compiling" = yes; then
 
10307
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
10308
See \`config.log' for more details." >&5
 
10309
echo "$as_me: error: cannot run test program while cross compiling
 
10310
See \`config.log' for more details." >&2;}
 
10311
   { (exit 1); exit 1; }; }
 
10312
else
 
10313
  cat >conftest.$ac_ext <<_ACEOF
 
10314
#line $LINENO "configure"
 
10315
/* confdefs.h.  */
 
10316
_ACEOF
 
10317
cat confdefs.h >>conftest.$ac_ext
 
10318
cat >>conftest.$ac_ext <<_ACEOF
 
10319
/* end confdefs.h.  */
 
10320
$ac_includes_default
 
10321
long longval () { return (long) (sizeof (short)); }
 
10322
unsigned long ulongval () { return (long) (sizeof (short)); }
 
10323
#include <stdio.h>
 
10324
#include <stdlib.h>
 
10325
int
 
10326
main ()
 
10327
{
 
10328
 
 
10329
  FILE *f = fopen ("conftest.val", "w");
 
10330
  if (! f)
 
10331
    exit (1);
 
10332
  if (((long) (sizeof (short))) < 0)
 
10333
    {
 
10334
      long i = longval ();
 
10335
      if (i != ((long) (sizeof (short))))
 
10336
        exit (1);
 
10337
      fprintf (f, "%ld\n", i);
 
10338
    }
 
10339
  else
 
10340
    {
 
10341
      unsigned long i = ulongval ();
 
10342
      if (i != ((long) (sizeof (short))))
 
10343
        exit (1);
 
10344
      fprintf (f, "%lu\n", i);
 
10345
    }
 
10346
  exit (ferror (f) || fclose (f) != 0);
 
10347
 
 
10348
  ;
 
10349
  return 0;
 
10350
}
 
10351
_ACEOF
 
10352
rm -f conftest$ac_exeext
 
10353
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10354
  (eval $ac_link) 2>&5
 
10355
  ac_status=$?
 
10356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10357
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10359
  (eval $ac_try) 2>&5
 
10360
  ac_status=$?
 
10361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10362
  (exit $ac_status); }; }; then
 
10363
  ac_cv_sizeof_short=`cat conftest.val`
 
10364
else
 
10365
  echo "$as_me: program exited with status $ac_status" >&5
 
10366
echo "$as_me: failed program was:" >&5
 
10367
sed 's/^/| /' conftest.$ac_ext >&5
 
10368
 
 
10369
( exit $ac_status )
 
10370
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
10371
See \`config.log' for more details." >&5
 
10372
echo "$as_me: error: cannot compute sizeof (short), 77
 
10373
See \`config.log' for more details." >&2;}
 
10374
   { (exit 1); exit 1; }; }
 
10375
fi
 
10376
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10377
fi
 
10378
fi
 
10379
rm -f conftest.val
 
10380
else
 
10381
  ac_cv_sizeof_short=0
 
10382
fi
 
10383
fi
 
10384
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
10385
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
10386
cat >>confdefs.h <<_ACEOF
 
10387
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
10388
_ACEOF
 
10389
 
 
10390
 
 
10391
 
 
10392
echo "$as_me:$LINENO: checking for long long" >&5
 
10393
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
10394
if test "${ac_cv_have_longlong+set}" = set; then
 
10395
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10396
else
 
10397
 
 
10398
if test "$cross_compiling" = yes; then
 
10399
  ac_cv_have_longlong=cross
 
10400
else
 
10401
  cat >conftest.$ac_ext <<_ACEOF
 
10402
#line $LINENO "configure"
 
10403
/* confdefs.h.  */
 
10404
_ACEOF
 
10405
cat confdefs.h >>conftest.$ac_ext
 
10406
cat >>conftest.$ac_ext <<_ACEOF
 
10407
/* end confdefs.h.  */
 
10408
#include <stdio.h>
 
10409
main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
 
10410
_ACEOF
 
10411
rm -f conftest$ac_exeext
 
10412
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10413
  (eval $ac_link) 2>&5
 
10414
  ac_status=$?
 
10415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10416
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10418
  (eval $ac_try) 2>&5
 
10419
  ac_status=$?
 
10420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10421
  (exit $ac_status); }; }; then
 
10422
  ac_cv_have_longlong=yes
 
10423
else
 
10424
  echo "$as_me: program exited with status $ac_status" >&5
 
10425
echo "$as_me: failed program was:" >&5
 
10426
sed 's/^/| /' conftest.$ac_ext >&5
 
10427
 
 
10428
( exit $ac_status )
 
10429
ac_cv_have_longlong=no
 
10430
fi
 
10431
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10432
fi
 
10433
fi
 
10434
echo "$as_me:$LINENO: result: $ac_cv_have_longlong" >&5
 
10435
echo "${ECHO_T}$ac_cv_have_longlong" >&6
 
10436
if test x"$ac_cv_have_longlong" = x"yes"; then
 
10437
 
 
10438
cat >>confdefs.h <<\_ACEOF
 
10439
#define HAVE_LONGLONG 1
 
10440
_ACEOF
 
10441
 
 
10442
fi
 
10443
 
 
10444
#
 
10445
# Check if the compiler supports the LL prefix on long long integers.
 
10446
# AIX needs this.
 
10447
 
 
10448
echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
 
10449
echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
 
10450
if test "${ac_cv_compiler_supports_ll+set}" = set; then
 
10451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10452
else
 
10453
 
 
10454
    cat >conftest.$ac_ext <<_ACEOF
 
10455
#line $LINENO "configure"
 
10456
/* confdefs.h.  */
 
10457
_ACEOF
 
10458
cat confdefs.h >>conftest.$ac_ext
 
10459
cat >>conftest.$ac_ext <<_ACEOF
 
10460
/* end confdefs.h.  */
 
10461
#include <stdio.h>
 
10462
int
 
10463
main ()
 
10464
{
 
10465
long long i = 0x8000000000LL
 
10466
  ;
 
10467
  return 0;
 
10468
}
 
10469
_ACEOF
 
10470
rm -f conftest.$ac_objext
 
10471
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10472
  (eval $ac_compile) 2>&5
 
10473
  ac_status=$?
 
10474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10475
  (exit $ac_status); } &&
 
10476
         { ac_try='test -s conftest.$ac_objext'
 
10477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10478
  (eval $ac_try) 2>&5
 
10479
  ac_status=$?
 
10480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10481
  (exit $ac_status); }; }; then
 
10482
  ac_cv_compiler_supports_ll=yes
 
10483
else
 
10484
  echo "$as_me: failed program was:" >&5
 
10485
sed 's/^/| /' conftest.$ac_ext >&5
 
10486
 
 
10487
ac_cv_compiler_supports_ll=no
 
10488
fi
 
10489
rm -f conftest.$ac_objext conftest.$ac_ext
 
10490
fi
 
10491
echo "$as_me:$LINENO: result: $ac_cv_compiler_supports_ll" >&5
 
10492
echo "${ECHO_T}$ac_cv_compiler_supports_ll" >&6
 
10493
if test x"$ac_cv_compiler_supports_ll" = x"yes"; then
 
10494
 
 
10495
cat >>confdefs.h <<\_ACEOF
 
10496
#define COMPILER_SUPPORTS_LL 1
 
10497
_ACEOF
 
10498
 
 
10499
fi
 
10500
 
 
10501
echo "$as_me:$LINENO: checking for __va_copy" >&5
 
10502
echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
 
10503
if test "${ac_cv_HAVE_VA_COPY+set}" = set; then
 
10504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10505
else
 
10506
 
 
10507
cat >conftest.$ac_ext <<_ACEOF
 
10508
#line $LINENO "configure"
 
10509
/* confdefs.h.  */
 
10510
_ACEOF
 
10511
cat confdefs.h >>conftest.$ac_ext
 
10512
cat >>conftest.$ac_ext <<_ACEOF
 
10513
/* end confdefs.h.  */
 
10514
#include <stdarg.h>
 
10515
va_list ap1,ap2;
 
10516
int
 
10517
main ()
 
10518
{
 
10519
__va_copy(ap1,ap2);
 
10520
  ;
 
10521
  return 0;
 
10522
}
 
10523
_ACEOF
 
10524
rm -f conftest.$ac_objext conftest$ac_exeext
 
10525
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10526
  (eval $ac_link) 2>&5
 
10527
  ac_status=$?
 
10528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10529
  (exit $ac_status); } &&
 
10530
         { ac_try='test -s conftest$ac_exeext'
 
10531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10532
  (eval $ac_try) 2>&5
 
10533
  ac_status=$?
 
10534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10535
  (exit $ac_status); }; }; then
 
10536
  ac_cv_HAVE_VA_COPY=yes
 
10537
else
 
10538
  echo "$as_me: failed program was:" >&5
 
10539
sed 's/^/| /' conftest.$ac_ext >&5
 
10540
 
 
10541
ac_cv_HAVE_VA_COPY=no
 
10542
fi
 
10543
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10544
fi
 
10545
echo "$as_me:$LINENO: result: $ac_cv_HAVE_VA_COPY" >&5
 
10546
echo "${ECHO_T}$ac_cv_HAVE_VA_COPY" >&6
 
10547
if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then
 
10548
 
 
10549
cat >>confdefs.h <<\_ACEOF
 
10550
#define HAVE_VA_COPY 1
 
10551
_ACEOF
 
10552
 
 
10553
fi
 
10554
 
 
10555
echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
 
10556
echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
 
10557
if test "${ac_cv_HAVE_C99_VSNPRINTF+set}" = set; then
 
10558
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10559
else
 
10560
 
 
10561
if test "$cross_compiling" = yes; then
 
10562
  ac_cv_HAVE_C99_VSNPRINTF=cross
 
10563
else
 
10564
  cat >conftest.$ac_ext <<_ACEOF
 
10565
#line $LINENO "configure"
 
10566
/* confdefs.h.  */
 
10567
_ACEOF
 
10568
cat confdefs.h >>conftest.$ac_ext
 
10569
cat >>conftest.$ac_ext <<_ACEOF
 
10570
/* end confdefs.h.  */
 
10571
 
 
10572
#include <sys/types.h>
 
10573
#include <stdarg.h>
 
10574
void foo(const char *format, ...) {
 
10575
       va_list ap;
 
10576
       int len;
 
10577
       char buf[5];
 
10578
 
 
10579
       va_start(ap, format);
 
10580
       len = vsnprintf(buf, 0, format, ap);
 
10581
       va_end(ap);
 
10582
       if (len != 5) exit(1);
 
10583
 
 
10584
       va_start(ap, format);
 
10585
       len = vsnprintf(0, 0, format, ap);
 
10586
       va_end(ap);
 
10587
       if (len != 5) exit(1);
 
10588
 
 
10589
       if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
 
10590
 
 
10591
       exit(0);
 
10592
}
 
10593
main() { foo("hello"); }
 
10594
 
 
10595
_ACEOF
 
10596
rm -f conftest$ac_exeext
 
10597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10598
  (eval $ac_link) 2>&5
 
10599
  ac_status=$?
 
10600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10601
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10603
  (eval $ac_try) 2>&5
 
10604
  ac_status=$?
 
10605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10606
  (exit $ac_status); }; }; then
 
10607
  ac_cv_HAVE_C99_VSNPRINTF=yes
 
10608
else
 
10609
  echo "$as_me: program exited with status $ac_status" >&5
 
10610
echo "$as_me: failed program was:" >&5
 
10611
sed 's/^/| /' conftest.$ac_ext >&5
 
10612
 
 
10613
( exit $ac_status )
 
10614
ac_cv_HAVE_C99_VSNPRINTF=no
 
10615
fi
 
10616
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10617
fi
 
10618
fi
 
10619
echo "$as_me:$LINENO: result: $ac_cv_HAVE_C99_VSNPRINTF" >&5
 
10620
echo "${ECHO_T}$ac_cv_HAVE_C99_VSNPRINTF" >&6
 
10621
if test x"$ac_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
 
10622
 
 
10623
cat >>confdefs.h <<\_ACEOF
 
10624
#define HAVE_C99_VSNPRINTF 1
 
10625
_ACEOF
 
10626
 
 
10627
fi
 
10628
 
 
10629
#AC_HAVE_DECL(asprintf, [#include <stdio.h>])
 
10630
#AC_HAVE_DECL(vasprintf, [#include <stdio.h>])
 
10631
#AC_HAVE_DECL(vsnprintf, [#include <stdio.h>])
 
10632
#AC_HAVE_DECL(snprintf, [#include <stdio.h>])
 
10633
 
 
10634
echo "$as_me:$LINENO: checking for snprintf" >&5
 
10635
echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
 
10636
if test "${ac_cv_func_snprintf+set}" = set; then
 
10637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10638
else
 
10639
  cat >conftest.$ac_ext <<_ACEOF
 
10640
#line $LINENO "configure"
 
10641
/* confdefs.h.  */
 
10642
_ACEOF
 
10643
cat confdefs.h >>conftest.$ac_ext
 
10644
cat >>conftest.$ac_ext <<_ACEOF
 
10645
/* end confdefs.h.  */
 
10646
/* System header to define __stub macros and hopefully few prototypes,
 
10647
    which can conflict with char snprintf (); below.
 
10648
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10649
    <limits.h> exists even on freestanding compilers.  */
 
10650
#ifdef __STDC__
 
10651
# include <limits.h>
 
10652
#else
 
10653
# include <assert.h>
 
10654
#endif
 
10655
/* Override any gcc2 internal prototype to avoid an error.  */
 
10656
#ifdef __cplusplus
 
10657
extern "C"
 
10658
{
 
10659
#endif
 
10660
/* We use char because int might match the return type of a gcc2
 
10661
   builtin and then its argument prototype would still apply.  */
 
10662
char snprintf ();
 
10663
/* The GNU C library defines this for functions which it implements
 
10664
    to always fail with ENOSYS.  Some functions are actually named
 
10665
    something starting with __ and the normal name is an alias.  */
 
10666
#if defined (__stub_snprintf) || defined (__stub___snprintf)
 
10667
choke me
 
10668
#else
 
10669
char (*f) () = snprintf;
 
10670
#endif
 
10671
#ifdef __cplusplus
 
10672
}
 
10673
#endif
 
10674
 
 
10675
int
 
10676
main ()
 
10677
{
 
10678
return f != snprintf;
 
10679
  ;
 
10680
  return 0;
 
10681
}
 
10682
_ACEOF
 
10683
rm -f conftest.$ac_objext conftest$ac_exeext
 
10684
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10685
  (eval $ac_link) 2>&5
 
10686
  ac_status=$?
 
10687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10688
  (exit $ac_status); } &&
 
10689
         { ac_try='test -s conftest$ac_exeext'
 
10690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10691
  (eval $ac_try) 2>&5
 
10692
  ac_status=$?
 
10693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10694
  (exit $ac_status); }; }; then
 
10695
  ac_cv_func_snprintf=yes
 
10696
else
 
10697
  echo "$as_me: failed program was:" >&5
 
10698
sed 's/^/| /' conftest.$ac_ext >&5
 
10699
 
 
10700
ac_cv_func_snprintf=no
 
10701
fi
 
10702
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10703
fi
 
10704
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
 
10705
echo "${ECHO_T}$ac_cv_func_snprintf" >&6
 
10706
if test $ac_cv_func_snprintf = yes; then
 
10707
 
 
10708
cat >>confdefs.h <<\_ACEOF
 
10709
#define HAVE_SNPRINTF 1
 
10710
_ACEOF
 
10711
 
 
10712
else
 
10713
  LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
 
10714
fi
 
10715
 
 
10716
echo "$as_me:$LINENO: checking for vsnprintf" >&5
 
10717
echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
 
10718
if test "${ac_cv_func_vsnprintf+set}" = set; then
 
10719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10720
else
 
10721
  cat >conftest.$ac_ext <<_ACEOF
 
10722
#line $LINENO "configure"
 
10723
/* confdefs.h.  */
 
10724
_ACEOF
 
10725
cat confdefs.h >>conftest.$ac_ext
 
10726
cat >>conftest.$ac_ext <<_ACEOF
 
10727
/* end confdefs.h.  */
 
10728
/* System header to define __stub macros and hopefully few prototypes,
 
10729
    which can conflict with char vsnprintf (); below.
 
10730
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10731
    <limits.h> exists even on freestanding compilers.  */
 
10732
#ifdef __STDC__
 
10733
# include <limits.h>
 
10734
#else
 
10735
# include <assert.h>
 
10736
#endif
 
10737
/* Override any gcc2 internal prototype to avoid an error.  */
 
10738
#ifdef __cplusplus
 
10739
extern "C"
 
10740
{
 
10741
#endif
 
10742
/* We use char because int might match the return type of a gcc2
 
10743
   builtin and then its argument prototype would still apply.  */
 
10744
char vsnprintf ();
 
10745
/* The GNU C library defines this for functions which it implements
 
10746
    to always fail with ENOSYS.  Some functions are actually named
 
10747
    something starting with __ and the normal name is an alias.  */
 
10748
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
 
10749
choke me
 
10750
#else
 
10751
char (*f) () = vsnprintf;
 
10752
#endif
 
10753
#ifdef __cplusplus
 
10754
}
 
10755
#endif
 
10756
 
 
10757
int
 
10758
main ()
 
10759
{
 
10760
return f != vsnprintf;
 
10761
  ;
 
10762
  return 0;
 
10763
}
 
10764
_ACEOF
 
10765
rm -f conftest.$ac_objext conftest$ac_exeext
 
10766
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10767
  (eval $ac_link) 2>&5
 
10768
  ac_status=$?
 
10769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10770
  (exit $ac_status); } &&
 
10771
         { ac_try='test -s conftest$ac_exeext'
 
10772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10773
  (eval $ac_try) 2>&5
 
10774
  ac_status=$?
 
10775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10776
  (exit $ac_status); }; }; then
 
10777
  ac_cv_func_vsnprintf=yes
 
10778
else
 
10779
  echo "$as_me: failed program was:" >&5
 
10780
sed 's/^/| /' conftest.$ac_ext >&5
 
10781
 
 
10782
ac_cv_func_vsnprintf=no
 
10783
fi
 
10784
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10785
fi
 
10786
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
 
10787
echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
 
10788
if test $ac_cv_func_vsnprintf = yes; then
 
10789
 
 
10790
cat >>confdefs.h <<\_ACEOF
 
10791
#define HAVE_VSNPRINTF 1
 
10792
_ACEOF
 
10793
 
 
10794
else
 
10795
  LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
 
10796
fi
 
10797
 
 
10798
echo "$as_me:$LINENO: checking for vasprintf" >&5
 
10799
echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6
 
10800
if test "${ac_cv_func_vasprintf+set}" = set; then
 
10801
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10802
else
 
10803
  cat >conftest.$ac_ext <<_ACEOF
 
10804
#line $LINENO "configure"
 
10805
/* confdefs.h.  */
 
10806
_ACEOF
 
10807
cat confdefs.h >>conftest.$ac_ext
 
10808
cat >>conftest.$ac_ext <<_ACEOF
 
10809
/* end confdefs.h.  */
 
10810
/* System header to define __stub macros and hopefully few prototypes,
 
10811
    which can conflict with char vasprintf (); below.
 
10812
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10813
    <limits.h> exists even on freestanding compilers.  */
 
10814
#ifdef __STDC__
 
10815
# include <limits.h>
 
10816
#else
 
10817
# include <assert.h>
 
10818
#endif
 
10819
/* Override any gcc2 internal prototype to avoid an error.  */
 
10820
#ifdef __cplusplus
 
10821
extern "C"
 
10822
{
 
10823
#endif
 
10824
/* We use char because int might match the return type of a gcc2
 
10825
   builtin and then its argument prototype would still apply.  */
 
10826
char vasprintf ();
 
10827
/* The GNU C library defines this for functions which it implements
 
10828
    to always fail with ENOSYS.  Some functions are actually named
 
10829
    something starting with __ and the normal name is an alias.  */
 
10830
#if defined (__stub_vasprintf) || defined (__stub___vasprintf)
 
10831
choke me
 
10832
#else
 
10833
char (*f) () = vasprintf;
 
10834
#endif
 
10835
#ifdef __cplusplus
 
10836
}
 
10837
#endif
 
10838
 
 
10839
int
 
10840
main ()
 
10841
{
 
10842
return f != vasprintf;
 
10843
  ;
 
10844
  return 0;
 
10845
}
 
10846
_ACEOF
 
10847
rm -f conftest.$ac_objext conftest$ac_exeext
 
10848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10849
  (eval $ac_link) 2>&5
 
10850
  ac_status=$?
 
10851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10852
  (exit $ac_status); } &&
 
10853
         { ac_try='test -s conftest$ac_exeext'
 
10854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10855
  (eval $ac_try) 2>&5
 
10856
  ac_status=$?
 
10857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10858
  (exit $ac_status); }; }; then
 
10859
  ac_cv_func_vasprintf=yes
 
10860
else
 
10861
  echo "$as_me: failed program was:" >&5
 
10862
sed 's/^/| /' conftest.$ac_ext >&5
 
10863
 
 
10864
ac_cv_func_vasprintf=no
 
10865
fi
 
10866
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10867
fi
 
10868
echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
 
10869
echo "${ECHO_T}$ac_cv_func_vasprintf" >&6
 
10870
if test $ac_cv_func_vasprintf = yes; then
 
10871
 
 
10872
cat >>confdefs.h <<\_ACEOF
 
10873
#define HAVE_VASPRINTF 1
 
10874
_ACEOF
 
10875
 
 
10876
else
 
10877
  LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
 
10878
fi
 
10879
 
 
10880
echo "$as_me:$LINENO: checking for asprintf" >&5
 
10881
echo $ECHO_N "checking for asprintf... $ECHO_C" >&6
 
10882
if test "${ac_cv_func_asprintf+set}" = set; then
 
10883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10884
else
 
10885
  cat >conftest.$ac_ext <<_ACEOF
 
10886
#line $LINENO "configure"
 
10887
/* confdefs.h.  */
 
10888
_ACEOF
 
10889
cat confdefs.h >>conftest.$ac_ext
 
10890
cat >>conftest.$ac_ext <<_ACEOF
 
10891
/* end confdefs.h.  */
 
10892
/* System header to define __stub macros and hopefully few prototypes,
 
10893
    which can conflict with char asprintf (); below.
 
10894
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10895
    <limits.h> exists even on freestanding compilers.  */
 
10896
#ifdef __STDC__
 
10897
# include <limits.h>
 
10898
#else
 
10899
# include <assert.h>
 
10900
#endif
 
10901
/* Override any gcc2 internal prototype to avoid an error.  */
 
10902
#ifdef __cplusplus
 
10903
extern "C"
 
10904
{
 
10905
#endif
 
10906
/* We use char because int might match the return type of a gcc2
 
10907
   builtin and then its argument prototype would still apply.  */
 
10908
char asprintf ();
 
10909
/* The GNU C library defines this for functions which it implements
 
10910
    to always fail with ENOSYS.  Some functions are actually named
 
10911
    something starting with __ and the normal name is an alias.  */
 
10912
#if defined (__stub_asprintf) || defined (__stub___asprintf)
 
10913
choke me
 
10914
#else
 
10915
char (*f) () = asprintf;
 
10916
#endif
 
10917
#ifdef __cplusplus
 
10918
}
 
10919
#endif
 
10920
 
 
10921
int
 
10922
main ()
 
10923
{
 
10924
return f != asprintf;
 
10925
  ;
 
10926
  return 0;
 
10927
}
 
10928
_ACEOF
 
10929
rm -f conftest.$ac_objext conftest$ac_exeext
 
10930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10931
  (eval $ac_link) 2>&5
 
10932
  ac_status=$?
 
10933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10934
  (exit $ac_status); } &&
 
10935
         { ac_try='test -s conftest$ac_exeext'
 
10936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10937
  (eval $ac_try) 2>&5
 
10938
  ac_status=$?
 
10939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10940
  (exit $ac_status); }; }; then
 
10941
  ac_cv_func_asprintf=yes
 
10942
else
 
10943
  echo "$as_me: failed program was:" >&5
 
10944
sed 's/^/| /' conftest.$ac_ext >&5
 
10945
 
 
10946
ac_cv_func_asprintf=no
 
10947
fi
 
10948
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10949
fi
 
10950
echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
 
10951
echo "${ECHO_T}$ac_cv_func_asprintf" >&6
 
10952
if test $ac_cv_func_asprintf = yes; then
 
10953
 
 
10954
cat >>confdefs.h <<\_ACEOF
 
10955
#define HAVE_ASPRINTF 1
 
10956
_ACEOF
 
10957
 
 
10958
else
 
10959
  LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
 
10960
fi
 
10961
 
 
10962
 
 
10963
if test x"$ac_cv_HAVE_SNPRINTF" = x"no" -o x"$ac_cv_HAVE_VSNPRINTF" = x"no" -o x"$ac_cv_HAVE_VASPRINTF" = x"no" -o x"$ac_cv_HAVE_ASPRINTF" = x"no"; then
 
10964
  LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
 
10965
fi
 
10966
 
 
10967
cat >conftest.$ac_ext <<_ACEOF
 
10968
#line $LINENO "configure"
 
10969
/* confdefs.h.  */
 
10970
_ACEOF
 
10971
cat confdefs.h >>conftest.$ac_ext
 
10972
cat >>conftest.$ac_ext <<_ACEOF
 
10973
/* end confdefs.h.  */
 
10974
#include <sys/time.h>
 
10975
int
 
10976
main ()
 
10977
{
 
10978
struct timeval *tv;
 
10979
                struct timezone *tz;
 
10980
  ;
 
10981
  return 0;
 
10982
}
 
10983
_ACEOF
 
10984
rm -f conftest.$ac_objext
 
10985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10986
  (eval $ac_compile) 2>&5
 
10987
  ac_status=$?
 
10988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10989
  (exit $ac_status); } &&
 
10990
         { ac_try='test -s conftest.$ac_objext'
 
10991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10992
  (eval $ac_try) 2>&5
 
10993
  ac_status=$?
 
10994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10995
  (exit $ac_status); }; }; then
 
10996
 
 
10997
cat >>confdefs.h <<\_ACEOF
 
10998
#define HAVE_STRUCT_TIMEVAL 1
 
10999
_ACEOF
 
11000
 
 
11001
               cat >conftest.$ac_ext <<_ACEOF
 
11002
#line $LINENO "configure"
 
11003
/* confdefs.h.  */
 
11004
_ACEOF
 
11005
cat confdefs.h >>conftest.$ac_ext
 
11006
cat >>conftest.$ac_ext <<_ACEOF
 
11007
/* end confdefs.h.  */
 
11008
#include <sys/time.h>
 
11009
int
 
11010
main ()
 
11011
{
 
11012
struct timeval *tv;
 
11013
                               struct timezone *tz;
 
11014
                               gettimeofday(tv, tz);
 
11015
  ;
 
11016
  return 0;
 
11017
}
 
11018
_ACEOF
 
11019
rm -f conftest.$ac_objext
 
11020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11021
  (eval $ac_compile) 2>&5
 
11022
  ac_status=$?
 
11023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11024
  (exit $ac_status); } &&
 
11025
         { ac_try='test -s conftest.$ac_objext'
 
11026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11027
  (eval $ac_try) 2>&5
 
11028
  ac_status=$?
 
11029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11030
  (exit $ac_status); }; }; then
 
11031
 
 
11032
cat >>confdefs.h <<\_ACEOF
 
11033
#define HAVE_GETTIMEOFDAY 1
 
11034
_ACEOF
 
11035
 
 
11036
else
 
11037
  echo "$as_me: failed program was:" >&5
 
11038
sed 's/^/| /' conftest.$ac_ext >&5
 
11039
 
 
11040
 
 
11041
cat >>confdefs.h <<\_ACEOF
 
11042
#define NEED_GETTIMEOFDAY 1
 
11043
_ACEOF
 
11044
 
 
11045
fi
 
11046
rm -f conftest.$ac_objext conftest.$ac_ext
 
11047
else
 
11048
  echo "$as_me: failed program was:" >&5
 
11049
sed 's/^/| /' conftest.$ac_ext >&5
 
11050
 
 
11051
fi
 
11052
rm -f conftest.$ac_objext conftest.$ac_ext
 
11053
 
 
11054
 
 
11055
 
 
11056
 
 
11057
 
 
11058
 
 
11059
 
 
11060
 
 
11061
 
 
11062
for ac_func in memmove select socket strdup strstr strtod strtol strtoul
 
11063
do
 
11064
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11065
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11066
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11067
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11069
else
 
11070
  cat >conftest.$ac_ext <<_ACEOF
 
11071
#line $LINENO "configure"
 
11072
/* confdefs.h.  */
 
11073
_ACEOF
 
11074
cat confdefs.h >>conftest.$ac_ext
 
11075
cat >>conftest.$ac_ext <<_ACEOF
 
11076
/* end confdefs.h.  */
 
11077
/* System header to define __stub macros and hopefully few prototypes,
 
11078
    which can conflict with char $ac_func (); below.
 
11079
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11080
    <limits.h> exists even on freestanding compilers.  */
 
11081
#ifdef __STDC__
 
11082
# include <limits.h>
 
11083
#else
 
11084
# include <assert.h>
 
11085
#endif
 
11086
/* Override any gcc2 internal prototype to avoid an error.  */
 
11087
#ifdef __cplusplus
 
11088
extern "C"
 
11089
{
 
11090
#endif
 
11091
/* We use char because int might match the return type of a gcc2
 
11092
   builtin and then its argument prototype would still apply.  */
 
11093
char $ac_func ();
 
11094
/* The GNU C library defines this for functions which it implements
 
11095
    to always fail with ENOSYS.  Some functions are actually named
 
11096
    something starting with __ and the normal name is an alias.  */
 
11097
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11098
choke me
 
11099
#else
 
11100
char (*f) () = $ac_func;
 
11101
#endif
 
11102
#ifdef __cplusplus
 
11103
}
 
11104
#endif
 
11105
 
 
11106
int
 
11107
main ()
 
11108
{
 
11109
return f != $ac_func;
 
11110
  ;
 
11111
  return 0;
 
11112
}
 
11113
_ACEOF
 
11114
rm -f conftest.$ac_objext conftest$ac_exeext
 
11115
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11116
  (eval $ac_link) 2>&5
 
11117
  ac_status=$?
 
11118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11119
  (exit $ac_status); } &&
 
11120
         { ac_try='test -s conftest$ac_exeext'
 
11121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11122
  (eval $ac_try) 2>&5
 
11123
  ac_status=$?
 
11124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11125
  (exit $ac_status); }; }; then
 
11126
  eval "$as_ac_var=yes"
 
11127
else
 
11128
  echo "$as_me: failed program was:" >&5
 
11129
sed 's/^/| /' conftest.$ac_ext >&5
 
11130
 
 
11131
eval "$as_ac_var=no"
 
11132
fi
 
11133
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11134
fi
 
11135
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11136
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11137
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11138
  cat >>confdefs.h <<_ACEOF
 
11139
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11140
_ACEOF
 
11141
 
 
11142
fi
 
11143
done
 
11144
 
 
11145
 
 
11146
echo "$as_me:$LINENO: checking for type of socket size" >&5
 
11147
echo $ECHO_N "checking for type of socket size... $ECHO_C" >&6
 
11148
cat >conftest.$ac_ext <<_ACEOF
 
11149
#line $LINENO "configure"
 
11150
/* confdefs.h.  */
 
11151
_ACEOF
 
11152
cat confdefs.h >>conftest.$ac_ext
 
11153
cat >>conftest.$ac_ext <<_ACEOF
 
11154
/* end confdefs.h.  */
 
11155
#include <stdlib.h>
 
11156
                #include <sys/types.h>
 
11157
                #include <sys/socket.h>
 
11158
int
 
11159
main ()
 
11160
{
 
11161
int a = send(1, (const void *) buffer, (size_t *) 0, (int *) 0);
 
11162
  ;
 
11163
  return 0;
 
11164
}
 
11165
_ACEOF
 
11166
rm -f conftest.$ac_objext
 
11167
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11168
  (eval $ac_compile) 2>&5
 
11169
  ac_status=$?
 
11170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11171
  (exit $ac_status); } &&
 
11172
         { ac_try='test -s conftest.$ac_objext'
 
11173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11174
  (eval $ac_try) 2>&5
 
11175
  ac_status=$?
 
11176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11177
  (exit $ac_status); }; }; then
 
11178
 
 
11179
cat >>confdefs.h <<\_ACEOF
 
11180
#define SOCKET_SIZE_TYPE size_t
 
11181
_ACEOF
 
11182
 
 
11183
                echo "$as_me:$LINENO: result: size_t" >&5
 
11184
echo "${ECHO_T}size_t" >&6
 
11185
else
 
11186
  echo "$as_me: failed program was:" >&5
 
11187
sed 's/^/| /' conftest.$ac_ext >&5
 
11188
 
 
11189
 
 
11190
cat >>confdefs.h <<\_ACEOF
 
11191
#define SOCKET_SIZE_TYPE int
 
11192
_ACEOF
 
11193
 
 
11194
                echo "$as_me:$LINENO: result: int" >&5
 
11195
echo "${ECHO_T}int" >&6
 
11196
fi
 
11197
rm -f conftest.$ac_objext conftest.$ac_ext
 
11198
 
 
11199
if test -f "/proc/loadavg"
 
11200
then
 
11201
 
 
11202
cat >>confdefs.h <<\_ACEOF
 
11203
#define HAVE_PROC_LOADAVG 1
 
11204
_ACEOF
 
11205
 
 
11206
 
 
11207
cat >>confdefs.h <<_ACEOF
 
11208
#define PROC_LOADAVG "/proc/loadavg"
 
11209
_ACEOF
 
11210
 
 
11211
fi
 
11212
 
 
11213
# Extract the first word of "ps", so it can be a program name with args.
 
11214
set dummy ps; ac_word=$2
 
11215
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11216
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
11217
if test "${ac_cv_path_PATH_TO_PS+set}" = set; then
 
11218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11219
else
 
11220
  case $PATH_TO_PS in
 
11221
  [\\/]* | ?:[\\/]*)
 
11222
  ac_cv_path_PATH_TO_PS="$PATH_TO_PS" # Let the user override the test with a path.
 
11223
  ;;
 
11224
  *)
 
11225
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11226
for as_dir in $PATH
 
11227
do
 
11228
  IFS=$as_save_IFS
 
11229
  test -z "$as_dir" && as_dir=.
 
11230
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11231
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11232
    ac_cv_path_PATH_TO_PS="$as_dir/$ac_word$ac_exec_ext"
 
11233
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11234
    break 2
 
11235
  fi
 
11236
done
 
11237
done
 
11238
 
 
11239
  ;;
 
11240
esac
 
11241
fi
 
11242
PATH_TO_PS=$ac_cv_path_PATH_TO_PS
 
11243
 
 
11244
if test -n "$PATH_TO_PS"; then
 
11245
  echo "$as_me:$LINENO: result: $PATH_TO_PS" >&5
 
11246
echo "${ECHO_T}$PATH_TO_PS" >&6
 
11247
else
 
11248
  echo "$as_me:$LINENO: result: no" >&5
 
11249
echo "${ECHO_T}no" >&6
 
11250
fi
 
11251
 
 
11252
if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *STAT +UCOMM +VSZ +RSS +USER +UID +PPID +COMMAND" > /dev/null
 
11253
then
 
11254
 
 
11255
cat >>confdefs.h <<\_ACEOF
 
11256
#define USE_PS_VARS 1
 
11257
_ACEOF
 
11258
 
 
11259
 
 
11260
cat >>confdefs.h <<_ACEOF
 
11261
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11262
_ACEOF
 
11263
 
 
11264
 
 
11265
cat >>confdefs.h <<_ACEOF
 
11266
#define PS_RAW_COMMAND "$PATH_TO_PS -axwo 'stat uid ppid args'"
 
11267
_ACEOF
 
11268
 
 
11269
        EXTRAS="$EXTRAS check_nagios"
 
11270
 
 
11271
cat >>confdefs.h <<_ACEOF
 
11272
#define PS_COMMAND "$PATH_TO_PS -axwo 'stat uid ppid comm args'"
 
11273
_ACEOF
 
11274
 
 
11275
 
 
11276
cat >>confdefs.h <<_ACEOF
 
11277
#define PS_FORMAT "%s %d %d %s %n"
 
11278
_ACEOF
 
11279
 
 
11280
 
 
11281
cat >>confdefs.h <<_ACEOF
 
11282
#define VSZ_COMMAND "$PATH_TO_PS -axwo 'vsz comm'"
 
11283
_ACEOF
 
11284
 
 
11285
 
 
11286
cat >>confdefs.h <<_ACEOF
 
11287
#define VSZ_FORMAT "%d %s"
 
11288
_ACEOF
 
11289
 
 
11290
 
 
11291
cat >>confdefs.h <<_ACEOF
 
11292
#define RSS_COMMAND "$PATH_TO_PS -axwo 'rss comm'"
 
11293
_ACEOF
 
11294
 
 
11295
 
 
11296
cat >>confdefs.h <<_ACEOF
 
11297
#define RSS_FORMAT "%d %s"
 
11298
_ACEOF
 
11299
 
 
11300
  echo "      ps syntax... $PATH_TO_PS -axwo 'stat uid ppid comm args'"
 
11301
elif ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
 
11302
then
 
11303
 
 
11304
cat >>confdefs.h <<\_ACEOF
 
11305
#define USE_PS_VARS 1
 
11306
_ACEOF
 
11307
 
 
11308
 
 
11309
cat >>confdefs.h <<_ACEOF
 
11310
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11311
_ACEOF
 
11312
 
 
11313
 
 
11314
cat >>confdefs.h <<_ACEOF
 
11315
#define PS_RAW_COMMAND "$PATH_TO_PS -weo 'stat user ppid args'"
 
11316
_ACEOF
 
11317
 
 
11318
        EXTRAS="$EXTRAS check_nagios"
 
11319
 
 
11320
cat >>confdefs.h <<_ACEOF
 
11321
#define PS_COMMAND "$PATH_TO_PS -weo 'stat uid ppid comm args'"
 
11322
_ACEOF
 
11323
 
 
11324
 
 
11325
cat >>confdefs.h <<_ACEOF
 
11326
#define PS_FORMAT "%s %d %d %s %n"
 
11327
_ACEOF
 
11328
 
 
11329
 
 
11330
cat >>confdefs.h <<_ACEOF
 
11331
#define VSZ_COMMAND "$PATH_TO_PS -weo 'vsz comm'"
 
11332
_ACEOF
 
11333
 
 
11334
 
 
11335
cat >>confdefs.h <<_ACEOF
 
11336
#define VSZ_FORMAT "%d %s"
 
11337
_ACEOF
 
11338
 
 
11339
 
 
11340
cat >>confdefs.h <<_ACEOF
 
11341
#define RSS_COMMAND "$PATH_TO_PS -weo 'rss comm'"
 
11342
_ACEOF
 
11343
 
 
11344
 
 
11345
cat >>confdefs.h <<_ACEOF
 
11346
#define RSS_FORMAT "%d %s"
 
11347
_ACEOF
 
11348
 
 
11349
  echo "      ps syntax... $PATH_TO_PS -weo 'stat comm vsz rss user ppid args'"
 
11350
elif ps waxco 'state command vsz rss uid user ppid' 2>/dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null
 
11351
then
 
11352
 
 
11353
cat >>confdefs.h <<\_ACEOF
 
11354
#define USE_PS_VARS 1
 
11355
_ACEOF
 
11356
 
 
11357
        cat >>confdefs.h <<_ACEOF
 
11358
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11359
_ACEOF
 
11360
 
 
11361
        cat >>confdefs.h <<_ACEOF
 
11362
#define PS_RAW_COMMAND "$PATH_TO_PS waxo 'state uid ppid command'"
 
11363
_ACEOF
 
11364
 
 
11365
        EXTRAS="$EXTRAS check_nagios"
 
11366
        cat >>confdefs.h <<_ACEOF
 
11367
#define PS_COMMAND "$PATH_TO_PS waxco 'state uid ppid command command'"
 
11368
_ACEOF
 
11369
 
 
11370
 
 
11371
cat >>confdefs.h <<_ACEOF
 
11372
#define PS_FORMAT "%s %d %d %s %n"
 
11373
_ACEOF
 
11374
 
 
11375
        cat >>confdefs.h <<_ACEOF
 
11376
#define VSZ_COMMAND "$PATH_TO_PS waxco 'vsz command'"
 
11377
_ACEOF
 
11378
 
 
11379
        cat >>confdefs.h <<_ACEOF
 
11380
#define VSZ_FORMAT "%d %s"
 
11381
_ACEOF
 
11382
 
 
11383
        cat >>confdefs.h <<_ACEOF
 
11384
#define RSS_COMMAND "$PATH_TO_PS waxco 'rss command'"
 
11385
_ACEOF
 
11386
 
 
11387
        cat >>confdefs.h <<_ACEOF
 
11388
#define RSS_FORMAT "%d %s"
 
11389
_ACEOF
 
11390
 
 
11391
        echo "      ps syntax... $PATH_TO_PS -Ao 'state command vsz rss'"
 
11392
elif ps waxno 'state comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S +COMMAND +VSZ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
 
11393
then
 
11394
 
 
11395
cat >>confdefs.h <<\_ACEOF
 
11396
#define USE_PS_VARS 1
 
11397
_ACEOF
 
11398
 
 
11399
        cat >>confdefs.h <<_ACEOF
 
11400
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11401
_ACEOF
 
11402
 
 
11403
        cat >>confdefs.h <<_ACEOF
 
11404
#define PS_RAW_COMMAND "$PATH_TO_PS waxno 'state user ppid comm'"
 
11405
_ACEOF
 
11406
 
 
11407
        EXTRAS="$EXTRAS check_nagios"
 
11408
        cat >>confdefs.h <<_ACEOF
 
11409
#define PS_COMMAND "$PATH_TO_PS waxno 'state uid ppid comm args'"
 
11410
_ACEOF
 
11411
 
 
11412
 
 
11413
cat >>confdefs.h <<_ACEOF
 
11414
#define PS_FORMAT "%s %d %d %s %n"
 
11415
_ACEOF
 
11416
 
 
11417
        cat >>confdefs.h <<_ACEOF
 
11418
#define VSZ_COMMAND "$PATH_TO_PS waxno 'vsz comm'"
 
11419
_ACEOF
 
11420
 
 
11421
        cat >>confdefs.h <<_ACEOF
 
11422
#define VSZ_FORMAT "%d %s"
 
11423
_ACEOF
 
11424
 
 
11425
        cat >>confdefs.h <<_ACEOF
 
11426
#define RSS_COMMAND "$PATH_TO_PS waxno 'rss comm'"
 
11427
_ACEOF
 
11428
 
 
11429
        cat >>confdefs.h <<_ACEOF
 
11430
#define RSS_FORMAT "%d %s"
 
11431
_ACEOF
 
11432
 
 
11433
        echo "      ps syntax... $PATH_TO_PS -waxco 'state comm vsz rss'"
 
11434
elif ps -laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND" >/dev/null
 
11435
then
 
11436
 
 
11437
cat >>confdefs.h <<\_ACEOF
 
11438
#define USE_PS_VARS 1
 
11439
_ACEOF
 
11440
 
 
11441
        cat >>confdefs.h <<_ACEOF
 
11442
#define PS_RAW_COMMAND "$PATH_TO_PS laxnwww"
 
11443
_ACEOF
 
11444
 
 
11445
        EXTRAS="$EXTRAS check_nagios"
 
11446
        cat >>confdefs.h <<_ACEOF
 
11447
#define PS_VARLIST &procuid,&procppid,procstat,&pos,procprog
 
11448
_ACEOF
 
11449
 
 
11450
        cat >>confdefs.h <<_ACEOF
 
11451
#define PS_COMMAND "$PATH_TO_PS -laxnwww"
 
11452
_ACEOF
 
11453
 
 
11454
 
 
11455
cat >>confdefs.h <<_ACEOF
 
11456
#define PS_FORMAT "%*s %d %*s %d %*s %*s %*s %*s %*s %*s %s %*s %*s %n%s"
 
11457
_ACEOF
 
11458
 
 
11459
        cat >>confdefs.h <<_ACEOF
 
11460
#define VSZ_COMMAND "$PATH_TO_PS laxnwww"
 
11461
_ACEOF
 
11462
 
 
11463
        cat >>confdefs.h <<_ACEOF
 
11464
#define VSZ_FORMAT "%*s %*s %*s %*s %*s %*s %*s %d"
 
11465
_ACEOF
 
11466
 
 
11467
        cat >>confdefs.h <<_ACEOF
 
11468
#define RSS_COMMAND "$PATH_TO_PS laxnwww"
 
11469
_ACEOF
 
11470
 
 
11471
        cat >>confdefs.h <<_ACEOF
 
11472
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %*s %d"
 
11473
_ACEOF
 
11474
 
 
11475
        echo "      ps syntax... $PATH_TO_PS laxnwww"
 
11476
elif ps laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND" >/dev/null
 
11477
then
 
11478
 
 
11479
cat >>confdefs.h <<\_ACEOF
 
11480
#define USE_PS_VARS 1
 
11481
_ACEOF
 
11482
 
 
11483
        cat >>confdefs.h <<_ACEOF
 
11484
#define PS_RAW_COMMAND "$PATH_TO_PS laxnwww"
 
11485
_ACEOF
 
11486
 
 
11487
        EXTRAS="$EXTRAS check_nagios"
 
11488
        cat >>confdefs.h <<_ACEOF
 
11489
#define PS_VARLIST &procuid,&procppid,procstat,&pos,procprog
 
11490
_ACEOF
 
11491
 
 
11492
        cat >>confdefs.h <<_ACEOF
 
11493
#define PS_COMMAND "$PATH_TO_PS laxnwww"
 
11494
_ACEOF
 
11495
 
 
11496
 
 
11497
cat >>confdefs.h <<_ACEOF
 
11498
#define PS_FORMAT "%*s %d %*s %d %*s %*s %*s %*s %*s %s %*s %*s %n%s"
 
11499
_ACEOF
 
11500
 
 
11501
        cat >>confdefs.h <<_ACEOF
 
11502
#define VSZ_COMMAND "$PATH_TO_PS laxnwww"
 
11503
_ACEOF
 
11504
 
 
11505
        cat >>confdefs.h <<_ACEOF
 
11506
#define VSZ_FORMAT "%*s %*s %*s %*s %*s %*s %d"
 
11507
_ACEOF
 
11508
 
 
11509
        cat >>confdefs.h <<_ACEOF
 
11510
#define RSS_COMMAND "$PATH_TO_PS laxnwww"
 
11511
_ACEOF
 
11512
 
 
11513
        cat >>confdefs.h <<_ACEOF
 
11514
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %d"
 
11515
_ACEOF
 
11516
 
 
11517
        echo "      ps syntax... $PATH_TO_PS laxnwww"
 
11518
elif ps -axo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
 
11519
then
 
11520
 
 
11521
cat >>confdefs.h <<\_ACEOF
 
11522
#define USE_PS_VARS 1
 
11523
_ACEOF
 
11524
 
 
11525
 
 
11526
cat >>confdefs.h <<_ACEOF
 
11527
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11528
_ACEOF
 
11529
 
 
11530
 
 
11531
cat >>confdefs.h <<_ACEOF
 
11532
#define PS_RAW_COMMAND "$PATH_TO_PS -axo 'stat user ppid args'"
 
11533
_ACEOF
 
11534
 
 
11535
        EXTRAS="$EXTRAS check_nagios"
 
11536
 
 
11537
cat >>confdefs.h <<_ACEOF
 
11538
#define PS_COMMAND "$PATH_TO_PS -axo 'stat uid ppid comm args'"
 
11539
_ACEOF
 
11540
 
 
11541
 
 
11542
cat >>confdefs.h <<_ACEOF
 
11543
#define PS_FORMAT "%s %d %d %s %n"
 
11544
_ACEOF
 
11545
 
 
11546
 
 
11547
cat >>confdefs.h <<_ACEOF
 
11548
#define VSZ_COMMAND "$PATH_TO_PS -axo 'vsz comm'"
 
11549
_ACEOF
 
11550
 
 
11551
 
 
11552
cat >>confdefs.h <<_ACEOF
 
11553
#define VSZ_FORMAT "%d %s"
 
11554
_ACEOF
 
11555
 
 
11556
 
 
11557
cat >>confdefs.h <<_ACEOF
 
11558
#define RSS_COMMAND "$PATH_TO_PS -axo 'rss comm'"
 
11559
_ACEOF
 
11560
 
 
11561
 
 
11562
cat >>confdefs.h <<_ACEOF
 
11563
#define RSS_FORMAT "%d %s"
 
11564
_ACEOF
 
11565
 
 
11566
  echo "      ps syntax... $PATH_TO_PS -axo 'stat comm vsz rss user ppid args'"
 
11567
elif ps -ao 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
 
11568
then
 
11569
 
 
11570
cat >>confdefs.h <<\_ACEOF
 
11571
#define USE_PS_VARS 1
 
11572
_ACEOF
 
11573
 
 
11574
 
 
11575
cat >>confdefs.h <<_ACEOF
 
11576
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11577
_ACEOF
 
11578
 
 
11579
 
 
11580
cat >>confdefs.h <<_ACEOF
 
11581
#define PS_RAW_COMMAND "$PATH_TO_PS -ao 'stat user ppid args'"
 
11582
_ACEOF
 
11583
 
 
11584
        EXTRAS="$EXTRAS check_nagios"
 
11585
        cat >>confdefs.h <<_ACEOF
 
11586
#define PS_COMMAND "$PATH_TO_PS -ao 'stat uid ppid comm args'"
 
11587
_ACEOF
 
11588
 
 
11589
 
 
11590
cat >>confdefs.h <<_ACEOF
 
11591
#define PS_FORMAT "%s%*[ +] %d %d %s %n"
 
11592
_ACEOF
 
11593
 
 
11594
        cat >>confdefs.h <<_ACEOF
 
11595
#define VSZ_COMMAND "$PATH_TO_PS -ao 'vsz comm'"
 
11596
_ACEOF
 
11597
 
 
11598
        cat >>confdefs.h <<_ACEOF
 
11599
#define VSZ_FORMAT "%d %s"
 
11600
_ACEOF
 
11601
 
 
11602
        cat >>confdefs.h <<_ACEOF
 
11603
#define RSS_COMMAND "$PATH_TO_PS -ao 'rss comm'"
 
11604
_ACEOF
 
11605
 
 
11606
        cat >>confdefs.h <<_ACEOF
 
11607
#define RSS_FORMAT "%d %s"
 
11608
_ACEOF
 
11609
 
 
11610
  echo "      ps syntax... $PATH_TO_PS -ao 'stat comm vsz rss user ppid args'"
 
11611
elif ps -eo 's comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
 
11612
then
 
11613
 
 
11614
cat >>confdefs.h <<\_ACEOF
 
11615
#define USE_PS_VARS 1
 
11616
_ACEOF
 
11617
 
 
11618
 
 
11619
cat >>confdefs.h <<_ACEOF
 
11620
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11621
_ACEOF
 
11622
 
 
11623
 
 
11624
cat >>confdefs.h <<_ACEOF
 
11625
#define PS_RAW_COMMAND "$PATH_TO_PS -eo 's user ppid args'"
 
11626
_ACEOF
 
11627
 
 
11628
        EXTRAS="$EXTRAS check_nagios"
 
11629
        cat >>confdefs.h <<_ACEOF
 
11630
#define PS_COMMAND "$PATH_TO_PS -eo 's uid ppid comm args'"
 
11631
_ACEOF
 
11632
 
 
11633
 
 
11634
cat >>confdefs.h <<_ACEOF
 
11635
#define PS_FORMAT "%s %d %d %s %n"
 
11636
_ACEOF
 
11637
 
 
11638
        cat >>confdefs.h <<_ACEOF
 
11639
#define VSZ_COMMAND "$PATH_TO_PS -eo 'vsz comm'"
 
11640
_ACEOF
 
11641
 
 
11642
        cat >>confdefs.h <<_ACEOF
 
11643
#define VSZ_FORMAT "%d %s"
 
11644
_ACEOF
 
11645
 
 
11646
        cat >>confdefs.h <<_ACEOF
 
11647
#define RSS_COMMAND "$PATH_TO_PS -eo 'rss comm'"
 
11648
_ACEOF
 
11649
 
 
11650
        cat >>confdefs.h <<_ACEOF
 
11651
#define RSS_FORMAT "%d %s"
 
11652
_ACEOF
 
11653
 
 
11654
        echo "      ps syntax... $PATH_TO_PS -eo 's  comm vsz rss user ppid args'"
 
11655
elif ps -Ao 's comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
 
11656
then
 
11657
 
 
11658
cat >>confdefs.h <<\_ACEOF
 
11659
#define USE_PS_VARS 1
 
11660
_ACEOF
 
11661
 
 
11662
 
 
11663
cat >>confdefs.h <<_ACEOF
 
11664
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11665
_ACEOF
 
11666
 
 
11667
 
 
11668
cat >>confdefs.h <<_ACEOF
 
11669
#define PS_RAW_COMMAND "$PATH_TO_PS -Ao 's user ppid args'"
 
11670
_ACEOF
 
11671
 
 
11672
        EXTRAS="$EXTRAS check_nagios"
 
11673
        cat >>confdefs.h <<_ACEOF
 
11674
#define PS_COMMAND "$PATH_TO_PS -Ao 's uid ppid comm args'"
 
11675
_ACEOF
 
11676
 
 
11677
 
 
11678
cat >>confdefs.h <<_ACEOF
 
11679
#define PS_FORMAT "%s %d %d %s %n"
 
11680
_ACEOF
 
11681
 
 
11682
        cat >>confdefs.h <<_ACEOF
 
11683
#define VSZ_COMMAND "$PATH_TO_PS -Ao 'vsz comm'"
 
11684
_ACEOF
 
11685
 
 
11686
        cat >>confdefs.h <<_ACEOF
 
11687
#define VSZ_FORMAT "%d %s"
 
11688
_ACEOF
 
11689
 
 
11690
        cat >>confdefs.h <<_ACEOF
 
11691
#define RSS_COMMAND "$PATH_TO_PS -Ao 'rss comm'"
 
11692
_ACEOF
 
11693
 
 
11694
        cat >>confdefs.h <<_ACEOF
 
11695
#define RSS_FORMAT "%d %s"
 
11696
_ACEOF
 
11697
 
 
11698
        echo "      ps syntax... $PATH_TO_PS -Ao 's comm vsz rss'"
 
11699
elif ps -Ao 'status comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
 
11700
then
 
11701
 
 
11702
cat >>confdefs.h <<\_ACEOF
 
11703
#define USE_PS_VARS 1
 
11704
_ACEOF
 
11705
 
 
11706
        cat >>confdefs.h <<_ACEOF
 
11707
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11708
_ACEOF
 
11709
 
 
11710
 
 
11711
cat >>confdefs.h <<_ACEOF
 
11712
#define PS_RAW_COMMAND "$PATH_TO_PS -Ao 'status user ppid args'"
 
11713
_ACEOF
 
11714
 
 
11715
        EXTRAS="$EXTRAS check_nagios"
 
11716
        cat >>confdefs.h <<_ACEOF
 
11717
#define PS_COMMAND "$PATH_TO_PS -Ao 'status uid ppid comm args'"
 
11718
_ACEOF
 
11719
 
 
11720
 
 
11721
cat >>confdefs.h <<_ACEOF
 
11722
#define PS_FORMAT "%s %d %d %s %n"
 
11723
_ACEOF
 
11724
 
 
11725
        cat >>confdefs.h <<_ACEOF
 
11726
#define VSZ_COMMAND "$PATH_TO_PS -Ao 'vsz comm'"
 
11727
_ACEOF
 
11728
 
 
11729
        cat >>confdefs.h <<_ACEOF
 
11730
#define VSZ_FORMAT "%d %s"
 
11731
_ACEOF
 
11732
 
 
11733
        cat >>confdefs.h <<_ACEOF
 
11734
#define RSS_COMMAND "$PATH_TO_PS -Ao 'rss comm'"
 
11735
_ACEOF
 
11736
 
 
11737
        cat >>confdefs.h <<_ACEOF
 
11738
#define RSS_FORMAT "%d %s"
 
11739
_ACEOF
 
11740
 
 
11741
        echo "      ps syntax... $PATH_TO_PS -Ao 'status comm vsz rss'"
 
11742
elif ps -Ao 'state comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
 
11743
then
 
11744
 
 
11745
cat >>confdefs.h <<\_ACEOF
 
11746
#define USE_PS_VARS 1
 
11747
_ACEOF
 
11748
 
 
11749
        cat >>confdefs.h <<_ACEOF
 
11750
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11751
_ACEOF
 
11752
 
 
11753
 
 
11754
cat >>confdefs.h <<_ACEOF
 
11755
#define PS_RAW_COMMAND "$PATH_TO_PS -Ao 'state user ppid args'"
 
11756
_ACEOF
 
11757
 
 
11758
        EXTRAS="$EXTRAS check_nagios"
 
11759
        cat >>confdefs.h <<_ACEOF
 
11760
#define PS_COMMAND "$PATH_TO_PS -Ao 'state uid ppid comm args'"
 
11761
_ACEOF
 
11762
 
 
11763
 
 
11764
cat >>confdefs.h <<_ACEOF
 
11765
#define PS_FORMAT "%s %d %d %s %n"
 
11766
_ACEOF
 
11767
 
 
11768
        cat >>confdefs.h <<_ACEOF
 
11769
#define VSZ_COMMAND "$PATH_TO_PS -Ao 'vsz comm'"
 
11770
_ACEOF
 
11771
 
 
11772
        cat >>confdefs.h <<_ACEOF
 
11773
#define VSZ_FORMAT "%d %s"
 
11774
_ACEOF
 
11775
 
 
11776
        cat >>confdefs.h <<_ACEOF
 
11777
#define RSS_COMMAND "$PATH_TO_PS -Ao 'rss comm'"
 
11778
_ACEOF
 
11779
 
 
11780
        cat >>confdefs.h <<_ACEOF
 
11781
#define RSS_FORMAT "%d %s"
 
11782
_ACEOF
 
11783
 
 
11784
        echo "      ps syntax... $PATH_TO_PS -Ao 'state comm vsz rss'"
 
11785
elif ps -ao 'state command vsz rss user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
 
11786
then
 
11787
 
 
11788
cat >>confdefs.h <<\_ACEOF
 
11789
#define USE_PS_VARS 1
 
11790
_ACEOF
 
11791
 
 
11792
        cat >>confdefs.h <<_ACEOF
 
11793
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11794
_ACEOF
 
11795
 
 
11796
        cat >>confdefs.h <<_ACEOF
 
11797
#define PS_RAW_COMMAND "$PATH_TO_PS -ao 'state user ppid args'"
 
11798
_ACEOF
 
11799
 
 
11800
        EXTRAS="$EXTRAS check_nagios"
 
11801
        cat >>confdefs.h <<_ACEOF
 
11802
#define PS_COMMAND "$PATH_TO_PS -ao 'state uid ppid command args'"
 
11803
_ACEOF
 
11804
 
 
11805
 
 
11806
cat >>confdefs.h <<_ACEOF
 
11807
#define PS_FORMAT "%s %d %d %s %n"
 
11808
_ACEOF
 
11809
 
 
11810
        cat >>confdefs.h <<_ACEOF
 
11811
#define VSZ_COMMAND "$PATH_TO_PS -ao 'vsz command'"
 
11812
_ACEOF
 
11813
 
 
11814
        cat >>confdefs.h <<_ACEOF
 
11815
#define VSZ_FORMAT "%d %s"
 
11816
_ACEOF
 
11817
 
 
11818
        cat >>confdefs.h <<_ACEOF
 
11819
#define RSS_COMMAND "$PATH_TO_PS -ao 'rss command'"
 
11820
_ACEOF
 
11821
 
 
11822
        cat >>confdefs.h <<_ACEOF
 
11823
#define RSS_FORMAT "%d %s"
 
11824
_ACEOF
 
11825
 
 
11826
        echo "      ps syntax... $PATH_TO_PS -ao 'state command vsz rss'"
 
11827
elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null
 
11828
then
 
11829
 
 
11830
cat >>confdefs.h <<\_ACEOF
 
11831
#define USE_PS_VARS 1
 
11832
_ACEOF
 
11833
 
 
11834
        cat >>confdefs.h <<_ACEOF
 
11835
#define PS_VARLIST procstat,&procuid,&procppid,&pos,procprog
 
11836
_ACEOF
 
11837
 
 
11838
        cat >>confdefs.h <<_ACEOF
 
11839
#define PS_COMMAND "$PATH_TO_PS -el"
 
11840
_ACEOF
 
11841
 
 
11842
 
 
11843
cat >>confdefs.h <<_ACEOF
 
11844
#define PS_FORMAT "%*s %s %d %*s %d %*s %*s %*s %*s %*s %*s %*s %*s %*s %n%s"
 
11845
_ACEOF
 
11846
 
 
11847
        cat >>confdefs.h <<_ACEOF
 
11848
#define VSZ_COMMAND "$PATH_TO_PS -el"
 
11849
_ACEOF
 
11850
 
 
11851
        cat >>confdefs.h <<_ACEOF
 
11852
#define VSZ_FORMAT "%*s %*s %*s %*s %d"
 
11853
_ACEOF
 
11854
 
 
11855
        cat >>confdefs.h <<_ACEOF
 
11856
#define RSS_COMMAND "$PATH_TO_PS -el"
 
11857
_ACEOF
 
11858
 
 
11859
        cat >>confdefs.h <<_ACEOF
 
11860
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %d"
 
11861
_ACEOF
 
11862
 
 
11863
        echo "      ps syntax... $PATH_TO_PS -el"
 
11864
elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null
 
11865
then
 
11866
 
 
11867
cat >>confdefs.h <<\_ACEOF
 
11868
#define USE_PS_VARS 1
 
11869
_ACEOF
 
11870
 
 
11871
        cat >>confdefs.h <<_ACEOF
 
11872
#define PS_VARLIST procstat,&procuid,&procppid,&pos,procprog
 
11873
_ACEOF
 
11874
 
 
11875
        cat >>confdefs.h <<_ACEOF
 
11876
#define PS_COMMAND "$PATH_TO_PS -el"
 
11877
_ACEOF
 
11878
 
 
11879
 
 
11880
cat >>confdefs.h <<_ACEOF
 
11881
#define PS_FORMAT "%*s %s %d %*s %d %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %n%s"
 
11882
_ACEOF
 
11883
 
 
11884
        cat >>confdefs.h <<_ACEOF
 
11885
#define VSZ_COMMAND "$PATH_TO_PS -el"
 
11886
_ACEOF
 
11887
 
 
11888
        cat >>confdefs.h <<_ACEOF
 
11889
#define VSZ_FORMAT "%*s %*s %*s %*s %d"
 
11890
_ACEOF
 
11891
 
 
11892
        cat >>confdefs.h <<_ACEOF
 
11893
#define RSS_COMMAND "$PATH_TO_PS -el"
 
11894
_ACEOF
 
11895
 
 
11896
        cat >>confdefs.h <<_ACEOF
 
11897
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %d"
 
11898
_ACEOF
 
11899
 
 
11900
        echo "      ps syntax... $PATH_TO_PS -el"
 
11901
elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null
 
11902
then
 
11903
 
 
11904
cat >>confdefs.h <<\_ACEOF
 
11905
#define USE_PS_VARS 1
 
11906
_ACEOF
 
11907
 
 
11908
        cat >>confdefs.h <<_ACEOF
 
11909
#define PS_VARLIST procstat,&procuid,&procppid,&pos,procprog
 
11910
_ACEOF
 
11911
 
 
11912
        cat >>confdefs.h <<_ACEOF
 
11913
#define PS_COMMAND "$PATH_TO_PS -el"
 
11914
_ACEOF
 
11915
 
 
11916
 
 
11917
cat >>confdefs.h <<_ACEOF
 
11918
#define PS_FORMAT "%*s %s %d %*s %d %*s %*s %*s %*s %*s %*s %*s %*s %n%s"
 
11919
_ACEOF
 
11920
 
 
11921
        cat >>confdefs.h <<_ACEOF
 
11922
#define VSZ_COMMAND "$PATH_TO_PS -el"
 
11923
_ACEOF
 
11924
 
 
11925
        cat >>confdefs.h <<_ACEOF
 
11926
#define VSZ_FORMAT "%*s %*s %*s %*s %*s %*s %*s %*s %*s %d"
 
11927
_ACEOF
 
11928
 
 
11929
        cat >>confdefs.h <<_ACEOF
 
11930
#define RSS_COMMAND "$PATH_TO_PS -el"
 
11931
_ACEOF
 
11932
 
 
11933
        cat >>confdefs.h <<_ACEOF
 
11934
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %*s %*s %d"
 
11935
_ACEOF
 
11936
 
 
11937
        echo "      ps syntax... $PATH_TO_PS -el"
 
11938
elif ps glaxen 2>/dev/null | egrep -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null
 
11939
then
 
11940
 
 
11941
cat >>confdefs.h <<\_ACEOF
 
11942
#define USE_PS_VARS 1
 
11943
_ACEOF
 
11944
 
 
11945
        cat >>confdefs.h <<_ACEOF
 
11946
#define PS_VARLIST &procuid,&procppid,procstat,&pos,procprog
 
11947
_ACEOF
 
11948
 
 
11949
        cat >>confdefs.h <<_ACEOF
 
11950
#define PS_COMMAND "$PATH_TO_PS glaxen"
 
11951
_ACEOF
 
11952
 
 
11953
 
 
11954
cat >>confdefs.h <<_ACEOF
 
11955
#define PS_FORMAT "%*s %d %*s %d %*s %*s %*s %*s %*s %s %*s %*s %n%s"
 
11956
_ACEOF
 
11957
 
 
11958
        cat >>confdefs.h <<_ACEOF
 
11959
#define VSZ_COMMAND "$PATH_TO_PS glaxen"
 
11960
_ACEOF
 
11961
 
 
11962
        cat >>confdefs.h <<_ACEOF
 
11963
#define VSZ_FORMAT "%*s %*s %*s %*s %*s %*s %d"
 
11964
_ACEOF
 
11965
 
 
11966
        cat >>confdefs.h <<_ACEOF
 
11967
#define RSS_COMMAND "$PATH_TO_PS glaxen"
 
11968
_ACEOF
 
11969
 
 
11970
        cat >>confdefs.h <<_ACEOF
 
11971
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %d"
 
11972
_ACEOF
 
11973
 
 
11974
        echo "      ps syntax... $PATH_TO_PS glaxen"
 
11975
elif ps waxo 'state vsz rss uid user ppid ucomm command' 2>/dev/null | egrep -i "^STAT +VSZ +RSS +UID +USER +PPID +UCOMM +COMMAND" >/dev/null
 
11976
then
 
11977
 
 
11978
cat >>confdefs.h <<\_ACEOF
 
11979
#define USE_PS_VARS 1
 
11980
_ACEOF
 
11981
 
 
11982
        cat >>confdefs.h <<_ACEOF
 
11983
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
 
11984
_ACEOF
 
11985
 
 
11986
        cat >>confdefs.h <<_ACEOF
 
11987
#define PS_RAW_COMMAND "$PATH_TO_PS waxo 'state uid ppid command'"
 
11988
_ACEOF
 
11989
 
 
11990
        EXTRAS="$EXTRAS check_nagios"
 
11991
        cat >>confdefs.h <<_ACEOF
 
11992
#define PS_COMMAND "$PATH_TO_PS waxo 'state uid ppid ucomm command'"
 
11993
_ACEOF
 
11994
 
 
11995
 
 
11996
cat >>confdefs.h <<_ACEOF
 
11997
#define PS_FORMAT "%s %d %d %s %n"
 
11998
_ACEOF
 
11999
 
 
12000
        cat >>confdefs.h <<_ACEOF
 
12001
#define VSZ_COMMAND "$PATH_TO_PS waxco 'vsz command'"
 
12002
_ACEOF
 
12003
 
 
12004
        cat >>confdefs.h <<_ACEOF
 
12005
#define VSZ_FORMAT "%d %s"
 
12006
_ACEOF
 
12007
 
 
12008
        cat >>confdefs.h <<_ACEOF
 
12009
#define RSS_COMMAND "$PATH_TO_PS waxco 'rss command'"
 
12010
_ACEOF
 
12011
 
 
12012
        cat >>confdefs.h <<_ACEOF
 
12013
#define RSS_FORMAT "%d %s"
 
12014
_ACEOF
 
12015
 
 
12016
        echo "      ps syntax... $PATH_TO_PS waxo 'state vsz rss command'"
 
12017
elif ps -Al 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD" >/dev/null
 
12018
then
 
12019
 
 
12020
cat >>confdefs.h <<\_ACEOF
 
12021
#define USE_PS_VARS 1
 
12022
_ACEOF
 
12023
 
 
12024
        cat >>confdefs.h <<_ACEOF
 
12025
#define PS_VARLIST procstat,&procuid,&procppid,&pos,procprog
 
12026
_ACEOF
 
12027
 
 
12028
        cat >>confdefs.h <<_ACEOF
 
12029
#define PS_COMMAND "$PATH_TO_PS -Al"
 
12030
_ACEOF
 
12031
 
 
12032
 
 
12033
cat >>confdefs.h <<_ACEOF
 
12034
#define PS_FORMAT "%*s %s %d %*s %d %*s %*s %*s %*s %*s %*s %*s %*s %*s %n%s"
 
12035
_ACEOF
 
12036
 
 
12037
        if ps -Ao 'vsz comm' 2>/dev/null | egrep -i "^ *VSZ +COMMAND" >/dev/null
 
12038
        then
 
12039
                cat >>confdefs.h <<_ACEOF
 
12040
#define VSZ_COMMAND "$PATH_TO_PS -Ao 'vsz comm'"
 
12041
_ACEOF
 
12042
 
 
12043
                cat >>confdefs.h <<_ACEOF
 
12044
#define VSZ_FORMAT "%*s %d"
 
12045
_ACEOF
 
12046
 
 
12047
        fi
 
12048
        echo "      ps syntax... $PATH_TO_PS -Al"
 
12049
else
 
12050
        echo "** Unable to find usable ps syntax"
 
12051
fi
 
12052
 
 
12053
 
 
12054
# Check whether --with-df_command or --without-df_command was given.
 
12055
if test "${with_df_command+set}" = set; then
 
12056
  withval="$with_df_command"
 
12057
  DF_COMMAND=$withval
 
12058
fi;
 
12059
if test -n "$DF_COMMAND"
 
12060
then
 
12061
 
 
12062
cat >>confdefs.h <<_ACEOF
 
12063
#define DF_COMMAND "$DF_COMMAND"
 
12064
_ACEOF
 
12065
 
 
12066
elif df -Pk 2>/dev/null | egrep -i "^(/dev/|[a-zA-Z]:)[a-z0-9/\\]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/\\]*" >/dev/null
 
12067
then
 
12068
        # Extract the first word of "df", so it can be a program name with args.
 
12069
set dummy df; ac_word=$2
 
12070
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12071
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12072
if test "${ac_cv_path_PATH_TO_DF+set}" = set; then
 
12073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12074
else
 
12075
  case $PATH_TO_DF in
 
12076
  [\\/]* | ?:[\\/]*)
 
12077
  ac_cv_path_PATH_TO_DF="$PATH_TO_DF" # Let the user override the test with a path.
 
12078
  ;;
 
12079
  *)
 
12080
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12081
for as_dir in $PATH
 
12082
do
 
12083
  IFS=$as_save_IFS
 
12084
  test -z "$as_dir" && as_dir=.
 
12085
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12086
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12087
    ac_cv_path_PATH_TO_DF="$as_dir/$ac_word$ac_exec_ext"
 
12088
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12089
    break 2
 
12090
  fi
 
12091
done
 
12092
done
 
12093
 
 
12094
  ;;
 
12095
esac
 
12096
fi
 
12097
PATH_TO_DF=$ac_cv_path_PATH_TO_DF
 
12098
 
 
12099
if test -n "$PATH_TO_DF"; then
 
12100
  echo "$as_me:$LINENO: result: $PATH_TO_DF" >&5
 
12101
echo "${ECHO_T}$PATH_TO_DF" >&6
 
12102
else
 
12103
  echo "$as_me:$LINENO: result: no" >&5
 
12104
echo "${ECHO_T}no" >&6
 
12105
fi
 
12106
 
 
12107
        echo "$as_me:$LINENO: result:       df syntax... $PATH_TO_DF -Pk" >&5
 
12108
echo "${ECHO_T}      df syntax... $PATH_TO_DF -Pk" >&6
 
12109
 
 
12110
cat >>confdefs.h <<_ACEOF
 
12111
#define DF_COMMAND "$PATH_TO_DF -Pk"
 
12112
_ACEOF
 
12113
 
 
12114
elif df -k 2>/dev/null | egrep -i "^/dev/[a-z0-9/]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*" >/dev/null
 
12115
then
 
12116
        # Extract the first word of "df", so it can be a program name with args.
 
12117
set dummy df; ac_word=$2
 
12118
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12119
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12120
if test "${ac_cv_path_PATH_TO_DF+set}" = set; then
 
12121
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12122
else
 
12123
  case $PATH_TO_DF in
 
12124
  [\\/]* | ?:[\\/]*)
 
12125
  ac_cv_path_PATH_TO_DF="$PATH_TO_DF" # Let the user override the test with a path.
 
12126
  ;;
 
12127
  *)
 
12128
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12129
for as_dir in $PATH
 
12130
do
 
12131
  IFS=$as_save_IFS
 
12132
  test -z "$as_dir" && as_dir=.
 
12133
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12134
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12135
    ac_cv_path_PATH_TO_DF="$as_dir/$ac_word$ac_exec_ext"
 
12136
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12137
    break 2
 
12138
  fi
 
12139
done
 
12140
done
 
12141
 
 
12142
  ;;
 
12143
esac
 
12144
fi
 
12145
PATH_TO_DF=$ac_cv_path_PATH_TO_DF
 
12146
 
 
12147
if test -n "$PATH_TO_DF"; then
 
12148
  echo "$as_me:$LINENO: result: $PATH_TO_DF" >&5
 
12149
echo "${ECHO_T}$PATH_TO_DF" >&6
 
12150
else
 
12151
  echo "$as_me:$LINENO: result: no" >&5
 
12152
echo "${ECHO_T}no" >&6
 
12153
fi
 
12154
 
 
12155
        echo "$as_me:$LINENO: result:       df syntax... $PATH_TO_DF -k" >&5
 
12156
echo "${ECHO_T}      df syntax... $PATH_TO_DF -k" >&6
 
12157
 
 
12158
cat >>confdefs.h <<_ACEOF
 
12159
#define DF_COMMAND "$PATH_TO_DF -k"
 
12160
_ACEOF
 
12161
 
 
12162
elif df 2>/dev/null | egrep -i "^/dev/[a-z0-9/]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*" >/dev/null
 
12163
then
 
12164
        # Extract the first word of "df", so it can be a program name with args.
 
12165
set dummy df; ac_word=$2
 
12166
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12167
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12168
if test "${ac_cv_path_PATH_TO_DF+set}" = set; then
 
12169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12170
else
 
12171
  case $PATH_TO_DF in
 
12172
  [\\/]* | ?:[\\/]*)
 
12173
  ac_cv_path_PATH_TO_DF="$PATH_TO_DF" # Let the user override the test with a path.
 
12174
  ;;
 
12175
  *)
 
12176
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12177
for as_dir in $PATH
 
12178
do
 
12179
  IFS=$as_save_IFS
 
12180
  test -z "$as_dir" && as_dir=.
 
12181
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12182
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12183
    ac_cv_path_PATH_TO_DF="$as_dir/$ac_word$ac_exec_ext"
 
12184
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12185
    break 2
 
12186
  fi
 
12187
done
 
12188
done
 
12189
 
 
12190
  ;;
 
12191
esac
 
12192
fi
 
12193
PATH_TO_DF=$ac_cv_path_PATH_TO_DF
 
12194
 
 
12195
if test -n "$PATH_TO_DF"; then
 
12196
  echo "$as_me:$LINENO: result: $PATH_TO_DF" >&5
 
12197
echo "${ECHO_T}$PATH_TO_DF" >&6
 
12198
else
 
12199
  echo "$as_me:$LINENO: result: no" >&5
 
12200
echo "${ECHO_T}no" >&6
 
12201
fi
 
12202
 
 
12203
        echo "$as_me:$LINENO: result:       df syntax... $PATH_TO_DF" >&5
 
12204
echo "${ECHO_T}      df syntax... $PATH_TO_DF" >&6
 
12205
 
 
12206
cat >>confdefs.h <<_ACEOF
 
12207
#define DF_COMMAND "$PATH_TO_DF"
 
12208
_ACEOF
 
12209
 
 
12210
elif bdf 2>/dev/null | egrep -i "^/dev/[a-z0-9/]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*" >/dev/null
 
12211
then
 
12212
        # Extract the first word of "bdf", so it can be a program name with args.
 
12213
set dummy bdf; ac_word=$2
 
12214
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12216
if test "${ac_cv_path_PATH_TO_DF+set}" = set; then
 
12217
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12218
else
 
12219
  case $PATH_TO_DF in
 
12220
  [\\/]* | ?:[\\/]*)
 
12221
  ac_cv_path_PATH_TO_DF="$PATH_TO_DF" # Let the user override the test with a path.
 
12222
  ;;
 
12223
  *)
 
12224
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12225
for as_dir in $PATH
 
12226
do
 
12227
  IFS=$as_save_IFS
 
12228
  test -z "$as_dir" && as_dir=.
 
12229
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12230
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12231
    ac_cv_path_PATH_TO_DF="$as_dir/$ac_word$ac_exec_ext"
 
12232
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12233
    break 2
 
12234
  fi
 
12235
done
 
12236
done
 
12237
 
 
12238
  ;;
 
12239
esac
 
12240
fi
 
12241
PATH_TO_DF=$ac_cv_path_PATH_TO_DF
 
12242
 
 
12243
if test -n "$PATH_TO_DF"; then
 
12244
  echo "$as_me:$LINENO: result: $PATH_TO_DF" >&5
 
12245
echo "${ECHO_T}$PATH_TO_DF" >&6
 
12246
else
 
12247
  echo "$as_me:$LINENO: result: no" >&5
 
12248
echo "${ECHO_T}no" >&6
 
12249
fi
 
12250
 
 
12251
        echo "$as_me:$LINENO: result:       df syntax... $PATH_TO_DF" >&5
 
12252
echo "${ECHO_T}      df syntax... $PATH_TO_DF" >&6
 
12253
 
 
12254
cat >>confdefs.h <<_ACEOF
 
12255
#define DF_COMMAND "$PATH_TO_DF"
 
12256
_ACEOF
 
12257
 
 
12258
elif df -Pk 2>/dev/null | egrep -i "^[a-z_]+#[a-z_]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*" > /dev/null
 
12259
then
 
12260
        # Extract the first word of "df", so it can be a program name with args.
 
12261
set dummy df; ac_word=$2
 
12262
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12264
if test "${ac_cv_path_PATH_TO_DF+set}" = set; then
 
12265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12266
else
 
12267
  case $PATH_TO_DF in
 
12268
  [\\/]* | ?:[\\/]*)
 
12269
  ac_cv_path_PATH_TO_DF="$PATH_TO_DF" # Let the user override the test with a path.
 
12270
  ;;
 
12271
  *)
 
12272
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12273
for as_dir in $PATH
 
12274
do
 
12275
  IFS=$as_save_IFS
 
12276
  test -z "$as_dir" && as_dir=.
 
12277
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12278
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12279
    ac_cv_path_PATH_TO_DF="$as_dir/$ac_word$ac_exec_ext"
 
12280
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12281
    break 2
 
12282
  fi
 
12283
done
 
12284
done
 
12285
 
 
12286
  ;;
 
12287
esac
 
12288
fi
 
12289
PATH_TO_DF=$ac_cv_path_PATH_TO_DF
 
12290
 
 
12291
if test -n "$PATH_TO_DF"; then
 
12292
  echo "$as_me:$LINENO: result: $PATH_TO_DF" >&5
 
12293
echo "${ECHO_T}$PATH_TO_DF" >&6
 
12294
else
 
12295
  echo "$as_me:$LINENO: result: no" >&5
 
12296
echo "${ECHO_T}no" >&6
 
12297
fi
 
12298
 
 
12299
        echo "$as_me:$LINENO: result:       df syntax... $PATH_TO_DF -Pk (Tru64)" >&5
 
12300
echo "${ECHO_T}      df syntax... $PATH_TO_DF -Pk (Tru64)" >&6
 
12301
 
 
12302
cat >>confdefs.h <<_ACEOF
 
12303
#define DF_COMMAND "$PATH_TO_DF -Pk"
 
12304
_ACEOF
 
12305
 
 
12306
else
 
12307
        { echo "$as_me:$LINENO: WARNING: \"unable to find usable df syntax\"" >&5
 
12308
echo "$as_me: WARNING: \"unable to find usable df syntax\"" >&2;}
 
12309
fi
 
12310
 
 
12311
# Extract the first word of "ping", so it can be a program name with args.
 
12312
set dummy ping; ac_word=$2
 
12313
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12315
if test "${ac_cv_path_PATH_TO_PING+set}" = set; then
 
12316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12317
else
 
12318
  case $PATH_TO_PING in
 
12319
  [\\/]* | ?:[\\/]*)
 
12320
  ac_cv_path_PATH_TO_PING="$PATH_TO_PING" # Let the user override the test with a path.
 
12321
  ;;
 
12322
  *)
 
12323
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12324
for as_dir in $PATH
 
12325
do
 
12326
  IFS=$as_save_IFS
 
12327
  test -z "$as_dir" && as_dir=.
 
12328
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12329
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12330
    ac_cv_path_PATH_TO_PING="$as_dir/$ac_word$ac_exec_ext"
 
12331
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12332
    break 2
 
12333
  fi
 
12334
done
 
12335
done
 
12336
 
 
12337
  ;;
 
12338
esac
 
12339
fi
 
12340
PATH_TO_PING=$ac_cv_path_PATH_TO_PING
 
12341
 
 
12342
if test -n "$PATH_TO_PING"; then
 
12343
  echo "$as_me:$LINENO: result: $PATH_TO_PING" >&5
 
12344
echo "${ECHO_T}$PATH_TO_PING" >&6
 
12345
else
 
12346
  echo "$as_me:$LINENO: result: no" >&5
 
12347
echo "${ECHO_T}no" >&6
 
12348
fi
 
12349
 
 
12350
 
 
12351
 
 
12352
# Check whether --with-ping_command or --without-ping_command was given.
 
12353
if test "${with_ping_command+set}" = set; then
 
12354
  withval="$with_ping_command"
 
12355
  PING_COMMAND=$withval
 
12356
fi;
 
12357
if test -n "$PING_COMMAND"
 
12358
then
 
12359
        echo "      ping syntax... (command-line) $PING_COMMAND"
 
12360
        if test -n "$PING_PACKETS_FIRST"
 
12361
        then
 
12362
 
 
12363
cat >>confdefs.h <<_ACEOF
 
12364
#define PING_PACKETS_FIRST "$PING_COMMAND"
 
12365
_ACEOF
 
12366
 
 
12367
        fi
 
12368
elif [ "z$ac_cv_uname_s" = "zUnixWare" ] && ping -n -s 127.0.0.1 56 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
 
12369
then
 
12370
        PING_COMMAND="$PATH_TO_PING -n -U -c %d %s"
 
12371
 
 
12372
cat >>confdefs.h <<_ACEOF
 
12373
#define PING_PACKETS_FIRST "$PING_COMMAND"
 
12374
_ACEOF
 
12375
 
 
12376
        echo "      ping syntax... $PATH_TO_PING -n -U -c <count> <host>"
 
12377
elif ping -n -U -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
 
12378
then
 
12379
        PING_COMMAND="$PATH_TO_PING -n -U -c %d %s"
 
12380
 
 
12381
cat >>confdefs.h <<_ACEOF
 
12382
#define PING_PACKETS_FIRST "$PING_COMMAND"
 
12383
_ACEOF
 
12384
 
 
12385
        echo "      ping syntax... $PATH_TO_PING -n -U -c <count> <host>"
 
12386
elif ping -n -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
 
12387
then
 
12388
        PING_COMMAND="$PATH_TO_PING -n -c %d %s"
 
12389
 
 
12390
cat >>confdefs.h <<_ACEOF
 
12391
#define PING_PACKETS_FIRST "$PING_COMMAND"
 
12392
_ACEOF
 
12393
 
 
12394
        echo "      ping syntax... $PATH_TO_PING -n -c <count> <host>"
 
12395
elif ping -n 127.0.0.1 -c 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
 
12396
then
 
12397
        PING_COMMAND="$PATH_TO_PING -n %s -c %d"
 
12398
        echo "      ping syntax... $PATH_TO_PING -n <host> -c <count>"
 
12399
elif ping 127.0.0.1 -n 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
 
12400
then
 
12401
        PING_COMMAND="$PATH_TO_PING %s -n %d"
 
12402
        echo "      ping syntax... $PATH_TO_PING <host> -n <count>"
 
12403
elif ping -n -s 127.0.0.1 56 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
 
12404
then
 
12405
        PING_COMMAND="$PATH_TO_PING -n -s %s 56 %d"
 
12406
        echo "      ping syntax... $PATH_TO_PING -n -s <host> 56 <count>"
 
12407
elif ping -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
 
12408
then
 
12409
        PING_COMMAND="$PATH_TO_PING -n -h %s -s 56 -c %d"
 
12410
        echo "      ping syntax... $PATH_TO_PING -n -h <host> -s 56 -c <count>"
 
12411
elif ping -n -s 56 -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
 
12412
then
 
12413
        PING_COMMAND="$PATH_TO_PING -n -s 56 -c %d %s"
 
12414
 
 
12415
cat >>confdefs.h <<_ACEOF
 
12416
#define PING_PACKETS_FIRST "$PING_COMMAND"
 
12417
_ACEOF
 
12418
 
 
12419
        echo "      ping syntax... $PATH_TO_PING -n -s 56 -c <count> <host>"
 
12420
elif ping -n -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
 
12421
then
 
12422
        PING_COMMAND="$PATH_TO_PING -n -c %d %s"
 
12423
 
 
12424
cat >>confdefs.h <<_ACEOF
 
12425
#define PING_PACKETS_FIRST "$PING_COMMAND"
 
12426
_ACEOF
 
12427
 
 
12428
        echo "      ping syntax... $PATH_TO_PING -n -c <count> <host>"
 
12429
else
 
12430
        { echo "$as_me:$LINENO: WARNING: \"unable to find usable ping syntax\"" >&5
 
12431
echo "$as_me: WARNING: \"unable to find usable ping syntax\"" >&2;}
 
12432
fi
 
12433
 
 
12434
cat >>confdefs.h <<_ACEOF
 
12435
#define PING_COMMAND "$PING_COMMAND"
 
12436
_ACEOF
 
12437
 
 
12438
 
 
12439
# Extract the first word of "nslookup", so it can be a program name with args.
 
12440
set dummy nslookup; ac_word=$2
 
12441
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12443
if test "${ac_cv_path_PATH_TO_NSLOOKUP+set}" = set; then
 
12444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12445
else
 
12446
  case $PATH_TO_NSLOOKUP in
 
12447
  [\\/]* | ?:[\\/]*)
 
12448
  ac_cv_path_PATH_TO_NSLOOKUP="$PATH_TO_NSLOOKUP" # Let the user override the test with a path.
 
12449
  ;;
 
12450
  *)
 
12451
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12452
for as_dir in $PATH
 
12453
do
 
12454
  IFS=$as_save_IFS
 
12455
  test -z "$as_dir" && as_dir=.
 
12456
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12457
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12458
    ac_cv_path_PATH_TO_NSLOOKUP="$as_dir/$ac_word$ac_exec_ext"
 
12459
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12460
    break 2
 
12461
  fi
 
12462
done
 
12463
done
 
12464
 
 
12465
  ;;
 
12466
esac
 
12467
fi
 
12468
PATH_TO_NSLOOKUP=$ac_cv_path_PATH_TO_NSLOOKUP
 
12469
 
 
12470
if test -n "$PATH_TO_NSLOOKUP"; then
 
12471
  echo "$as_me:$LINENO: result: $PATH_TO_NSLOOKUP" >&5
 
12472
echo "${ECHO_T}$PATH_TO_NSLOOKUP" >&6
 
12473
else
 
12474
  echo "$as_me:$LINENO: result: no" >&5
 
12475
echo "${ECHO_T}no" >&6
 
12476
fi
 
12477
 
 
12478
if test -n "$ac_cv_path_PATH_TO_NSLOOKUP"
 
12479
then
 
12480
        if nslookup -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null
 
12481
        then
 
12482
                echo "$as_me:$LINENO: result:       nslookup syntax... $PATH_TO_NSLOOKUP" >&5
 
12483
echo "${ECHO_T}      nslookup syntax... $PATH_TO_NSLOOKUP" >&6
 
12484
 
 
12485
cat >>confdefs.h <<_ACEOF
 
12486
#define NSLOOKUP_COMMAND "$PATH_TO_NSLOOKUP"
 
12487
_ACEOF
 
12488
 
 
12489
        else
 
12490
                echo "$as_me:$LINENO: result:       nslookup syntax... $PATH_TO_NSLOOKUP -sil" >&5
 
12491
echo "${ECHO_T}      nslookup syntax... $PATH_TO_NSLOOKUP -sil" >&6
 
12492
 
 
12493
cat >>confdefs.h <<_ACEOF
 
12494
#define NSLOOKUP_COMMAND "$PATH_TO_NSLOOKUP -sil"
 
12495
_ACEOF
 
12496
 
 
12497
        fi
 
12498
        EXTRAS="$EXTRAS check_dns"
 
12499
else
 
12500
        { echo "$as_me:$LINENO: WARNING: nslookup command not found" >&5
 
12501
echo "$as_me: WARNING: nslookup command not found" >&2;}
 
12502
fi
 
12503
 
 
12504
# Extract the first word of "host", so it can be a program name with args.
 
12505
set dummy host; ac_word=$2
 
12506
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12507
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12508
if test "${ac_cv_path_PATH_TO_HOST+set}" = set; then
 
12509
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12510
else
 
12511
  case $PATH_TO_HOST in
 
12512
  [\\/]* | ?:[\\/]*)
 
12513
  ac_cv_path_PATH_TO_HOST="$PATH_TO_HOST" # Let the user override the test with a path.
 
12514
  ;;
 
12515
  *)
 
12516
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12517
for as_dir in $PATH
 
12518
do
 
12519
  IFS=$as_save_IFS
 
12520
  test -z "$as_dir" && as_dir=.
 
12521
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12522
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12523
    ac_cv_path_PATH_TO_HOST="$as_dir/$ac_word$ac_exec_ext"
 
12524
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12525
    break 2
 
12526
  fi
 
12527
done
 
12528
done
 
12529
 
 
12530
  ;;
 
12531
esac
 
12532
fi
 
12533
PATH_TO_HOST=$ac_cv_path_PATH_TO_HOST
 
12534
 
 
12535
if test -n "$PATH_TO_HOST"; then
 
12536
  echo "$as_me:$LINENO: result: $PATH_TO_HOST" >&5
 
12537
echo "${ECHO_T}$PATH_TO_HOST" >&6
 
12538
else
 
12539
  echo "$as_me:$LINENO: result: no" >&5
 
12540
echo "${ECHO_T}no" >&6
 
12541
fi
 
12542
 
 
12543
if test -n "$ac_cv_path_PATH_TO_HOST"
 
12544
then
 
12545
        EXTRAS="$EXTRAS check_dns"
 
12546
fi
 
12547
 
 
12548
# Extract the first word of "uptime", so it can be a program name with args.
 
12549
set dummy uptime; ac_word=$2
 
12550
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12551
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12552
if test "${ac_cv_path_PATH_TO_UPTIME+set}" = set; then
 
12553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12554
else
 
12555
  case $PATH_TO_UPTIME in
 
12556
  [\\/]* | ?:[\\/]*)
 
12557
  ac_cv_path_PATH_TO_UPTIME="$PATH_TO_UPTIME" # Let the user override the test with a path.
 
12558
  ;;
 
12559
  *)
 
12560
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12561
for as_dir in $PATH
 
12562
do
 
12563
  IFS=$as_save_IFS
 
12564
  test -z "$as_dir" && as_dir=.
 
12565
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12566
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12567
    ac_cv_path_PATH_TO_UPTIME="$as_dir/$ac_word$ac_exec_ext"
 
12568
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12569
    break 2
 
12570
  fi
 
12571
done
 
12572
done
 
12573
 
 
12574
  ;;
 
12575
esac
 
12576
fi
 
12577
PATH_TO_UPTIME=$ac_cv_path_PATH_TO_UPTIME
 
12578
 
 
12579
if test -n "$PATH_TO_UPTIME"; then
 
12580
  echo "$as_me:$LINENO: result: $PATH_TO_UPTIME" >&5
 
12581
echo "${ECHO_T}$PATH_TO_UPTIME" >&6
 
12582
else
 
12583
  echo "$as_me:$LINENO: result: no" >&5
 
12584
echo "${ECHO_T}no" >&6
 
12585
fi
 
12586
 
 
12587
 
 
12588
cat >>confdefs.h <<_ACEOF
 
12589
#define PATH_TO_UPTIME "$PATH_TO_UPTIME"
 
12590
_ACEOF
 
12591
 
 
12592
 
 
12593
# Extract the first word of "rpcinfo", so it can be a program name with args.
 
12594
set dummy rpcinfo; ac_word=$2
 
12595
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12596
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12597
if test "${ac_cv_path_PATH_TO_RPCINFO+set}" = set; then
 
12598
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12599
else
 
12600
  case $PATH_TO_RPCINFO in
 
12601
  [\\/]* | ?:[\\/]*)
 
12602
  ac_cv_path_PATH_TO_RPCINFO="$PATH_TO_RPCINFO" # Let the user override the test with a path.
 
12603
  ;;
 
12604
  *)
 
12605
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12606
for as_dir in $PATH
 
12607
do
 
12608
  IFS=$as_save_IFS
 
12609
  test -z "$as_dir" && as_dir=.
 
12610
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12611
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12612
    ac_cv_path_PATH_TO_RPCINFO="$as_dir/$ac_word$ac_exec_ext"
 
12613
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12614
    break 2
 
12615
  fi
 
12616
done
 
12617
done
 
12618
 
 
12619
  ;;
 
12620
esac
 
12621
fi
 
12622
PATH_TO_RPCINFO=$ac_cv_path_PATH_TO_RPCINFO
 
12623
 
 
12624
if test -n "$PATH_TO_RPCINFO"; then
 
12625
  echo "$as_me:$LINENO: result: $PATH_TO_RPCINFO" >&5
 
12626
echo "${ECHO_T}$PATH_TO_RPCINFO" >&6
 
12627
else
 
12628
  echo "$as_me:$LINENO: result: no" >&5
 
12629
echo "${ECHO_T}no" >&6
 
12630
fi
 
12631
 
 
12632
 
 
12633
cat >>confdefs.h <<_ACEOF
 
12634
#define PATH_TO_RPCINFO "$PATH_TO_RPCINFO"
 
12635
_ACEOF
 
12636
 
 
12637
 
 
12638
# Extract the first word of "ntpdate", so it can be a program name with args.
 
12639
set dummy ntpdate; ac_word=$2
 
12640
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12641
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12642
if test "${ac_cv_path_PATH_TO_NTPDATE+set}" = set; then
 
12643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12644
else
 
12645
  case $PATH_TO_NTPDATE in
 
12646
  [\\/]* | ?:[\\/]*)
 
12647
  ac_cv_path_PATH_TO_NTPDATE="$PATH_TO_NTPDATE" # Let the user override the test with a path.
 
12648
  ;;
 
12649
  *)
 
12650
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12651
for as_dir in $PATH
 
12652
do
 
12653
  IFS=$as_save_IFS
 
12654
  test -z "$as_dir" && as_dir=.
 
12655
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12656
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12657
    ac_cv_path_PATH_TO_NTPDATE="$as_dir/$ac_word$ac_exec_ext"
 
12658
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12659
    break 2
 
12660
  fi
 
12661
done
 
12662
done
 
12663
 
 
12664
  ;;
 
12665
esac
 
12666
fi
 
12667
PATH_TO_NTPDATE=$ac_cv_path_PATH_TO_NTPDATE
 
12668
 
 
12669
if test -n "$PATH_TO_NTPDATE"; then
 
12670
  echo "$as_me:$LINENO: result: $PATH_TO_NTPDATE" >&5
 
12671
echo "${ECHO_T}$PATH_TO_NTPDATE" >&6
 
12672
else
 
12673
  echo "$as_me:$LINENO: result: no" >&5
 
12674
echo "${ECHO_T}no" >&6
 
12675
fi
 
12676
 
 
12677
for ac_prog in ntpdc xntpdc
 
12678
do
 
12679
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12680
set dummy $ac_prog; ac_word=$2
 
12681
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12683
if test "${ac_cv_path_PATH_TO_NTPDC+set}" = set; then
 
12684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12685
else
 
12686
  case $PATH_TO_NTPDC in
 
12687
  [\\/]* | ?:[\\/]*)
 
12688
  ac_cv_path_PATH_TO_NTPDC="$PATH_TO_NTPDC" # Let the user override the test with a path.
 
12689
  ;;
 
12690
  *)
 
12691
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12692
for as_dir in $PATH
 
12693
do
 
12694
  IFS=$as_save_IFS
 
12695
  test -z "$as_dir" && as_dir=.
 
12696
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12697
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12698
    ac_cv_path_PATH_TO_NTPDC="$as_dir/$ac_word$ac_exec_ext"
 
12699
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12700
    break 2
 
12701
  fi
 
12702
done
 
12703
done
 
12704
 
 
12705
  ;;
 
12706
esac
 
12707
fi
 
12708
PATH_TO_NTPDC=$ac_cv_path_PATH_TO_NTPDC
 
12709
 
 
12710
if test -n "$PATH_TO_NTPDC"; then
 
12711
  echo "$as_me:$LINENO: result: $PATH_TO_NTPDC" >&5
 
12712
echo "${ECHO_T}$PATH_TO_NTPDC" >&6
 
12713
else
 
12714
  echo "$as_me:$LINENO: result: no" >&5
 
12715
echo "${ECHO_T}no" >&6
 
12716
fi
 
12717
 
 
12718
  test -n "$PATH_TO_NTPDC" && break
 
12719
done
 
12720
 
 
12721
for ac_prog in ntpq
 
12722
do
 
12723
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12724
set dummy $ac_prog; ac_word=$2
 
12725
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12726
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12727
if test "${ac_cv_path_PATH_TO_NTPQ+set}" = set; then
 
12728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12729
else
 
12730
  case $PATH_TO_NTPQ in
 
12731
  [\\/]* | ?:[\\/]*)
 
12732
  ac_cv_path_PATH_TO_NTPQ="$PATH_TO_NTPQ" # Let the user override the test with a path.
 
12733
  ;;
 
12734
  *)
 
12735
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12736
for as_dir in $PATH
 
12737
do
 
12738
  IFS=$as_save_IFS
 
12739
  test -z "$as_dir" && as_dir=.
 
12740
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12741
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12742
    ac_cv_path_PATH_TO_NTPQ="$as_dir/$ac_word$ac_exec_ext"
 
12743
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12744
    break 2
 
12745
  fi
 
12746
done
 
12747
done
 
12748
 
 
12749
  ;;
 
12750
esac
 
12751
fi
 
12752
PATH_TO_NTPQ=$ac_cv_path_PATH_TO_NTPQ
 
12753
 
 
12754
if test -n "$PATH_TO_NTPQ"; then
 
12755
  echo "$as_me:$LINENO: result: $PATH_TO_NTPQ" >&5
 
12756
echo "${ECHO_T}$PATH_TO_NTPQ" >&6
 
12757
else
 
12758
  echo "$as_me:$LINENO: result: no" >&5
 
12759
echo "${ECHO_T}no" >&6
 
12760
fi
 
12761
 
 
12762
  test -n "$PATH_TO_NTPQ" && break
 
12763
done
 
12764
 
 
12765
if (test -x "$PATH_TO_NTPDATE" || test -x "$PATH_TO_NTPQ")
 
12766
then
 
12767
 
 
12768
cat >>confdefs.h <<_ACEOF
 
12769
#define PATH_TO_NTPQ "$PATH_TO_NTPQ"
 
12770
_ACEOF
 
12771
 
 
12772
 
 
12773
cat >>confdefs.h <<_ACEOF
 
12774
#define PATH_TO_NTPDATE "$PATH_TO_NTPDATE"
 
12775
_ACEOF
 
12776
 
 
12777
else
 
12778
        echo "** Install NTP programs (http://www.ntp.org) if you want to monitor time synchronization"
 
12779
fi
 
12780
 
 
12781
# Extract the first word of "lmstat", so it can be a program name with args.
 
12782
set dummy lmstat; ac_word=$2
 
12783
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12785
if test "${ac_cv_path_PATH_TO_LMSTAT+set}" = set; then
 
12786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12787
else
 
12788
  case $PATH_TO_LMSTAT in
 
12789
  [\\/]* | ?:[\\/]*)
 
12790
  ac_cv_path_PATH_TO_LMSTAT="$PATH_TO_LMSTAT" # Let the user override the test with a path.
 
12791
  ;;
 
12792
  *)
 
12793
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12794
for as_dir in $PATH
 
12795
do
 
12796
  IFS=$as_save_IFS
 
12797
  test -z "$as_dir" && as_dir=.
 
12798
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12799
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12800
    ac_cv_path_PATH_TO_LMSTAT="$as_dir/$ac_word$ac_exec_ext"
 
12801
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12802
    break 2
 
12803
  fi
 
12804
done
 
12805
done
 
12806
 
 
12807
  ;;
 
12808
esac
 
12809
fi
 
12810
PATH_TO_LMSTAT=$ac_cv_path_PATH_TO_LMSTAT
 
12811
 
 
12812
if test -n "$PATH_TO_LMSTAT"; then
 
12813
  echo "$as_me:$LINENO: result: $PATH_TO_LMSTAT" >&5
 
12814
echo "${ECHO_T}$PATH_TO_LMSTAT" >&6
 
12815
else
 
12816
  echo "$as_me:$LINENO: result: no" >&5
 
12817
echo "${ECHO_T}no" >&6
 
12818
fi
 
12819
 
 
12820
if test -x "$PATH_TO_LMSTAT"
 
12821
then
 
12822
 
 
12823
cat >>confdefs.h <<_ACEOF
 
12824
#define PATH_TO_LMSTAT "$PATH_TO_LMSTAT"
 
12825
_ACEOF
 
12826
 
 
12827
else
 
12828
        echo "** Get lmstat from Globetrotter Software to monitor flexlm licenses"
 
12829
fi
 
12830
 
 
12831
# Extract the first word of "smbclient", so it can be a program name with args.
 
12832
set dummy smbclient; ac_word=$2
 
12833
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12835
if test "${ac_cv_path_PATH_TO_SMBCLIENT+set}" = set; then
 
12836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12837
else
 
12838
  case $PATH_TO_SMBCLIENT in
 
12839
  [\\/]* | ?:[\\/]*)
 
12840
  ac_cv_path_PATH_TO_SMBCLIENT="$PATH_TO_SMBCLIENT" # Let the user override the test with a path.
 
12841
  ;;
 
12842
  *)
 
12843
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12844
for as_dir in $PATH
 
12845
do
 
12846
  IFS=$as_save_IFS
 
12847
  test -z "$as_dir" && as_dir=.
 
12848
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12849
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12850
    ac_cv_path_PATH_TO_SMBCLIENT="$as_dir/$ac_word$ac_exec_ext"
 
12851
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12852
    break 2
 
12853
  fi
 
12854
done
 
12855
done
 
12856
 
 
12857
  ;;
 
12858
esac
 
12859
fi
 
12860
PATH_TO_SMBCLIENT=$ac_cv_path_PATH_TO_SMBCLIENT
 
12861
 
 
12862
if test -n "$PATH_TO_SMBCLIENT"; then
 
12863
  echo "$as_me:$LINENO: result: $PATH_TO_SMBCLIENT" >&5
 
12864
echo "${ECHO_T}$PATH_TO_SMBCLIENT" >&6
 
12865
else
 
12866
  echo "$as_me:$LINENO: result: no" >&5
 
12867
echo "${ECHO_T}no" >&6
 
12868
fi
 
12869
 
 
12870
if test -x "$PATH_TO_SMBCLIENT"
 
12871
then
 
12872
 
 
12873
cat >>confdefs.h <<_ACEOF
 
12874
#define PATH_TO_SMBCLIENT "$PATH_TO_SMBCLIENT"
 
12875
_ACEOF
 
12876
 
 
12877
else
 
12878
        echo "** Get smbclient from Samba.org to monitor SMB shares"
 
12879
fi
 
12880
 
 
12881
 
 
12882
# Extract the first word of "who", so it can be a program name with args.
 
12883
set dummy who; ac_word=$2
 
12884
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12885
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12886
if test "${ac_cv_path_PATH_TO_WHO+set}" = set; then
 
12887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12888
else
 
12889
  case $PATH_TO_WHO in
 
12890
  [\\/]* | ?:[\\/]*)
 
12891
  ac_cv_path_PATH_TO_WHO="$PATH_TO_WHO" # Let the user override the test with a path.
 
12892
  ;;
 
12893
  *)
 
12894
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12895
for as_dir in $PATH
 
12896
do
 
12897
  IFS=$as_save_IFS
 
12898
  test -z "$as_dir" && as_dir=.
 
12899
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12900
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12901
    ac_cv_path_PATH_TO_WHO="$as_dir/$ac_word$ac_exec_ext"
 
12902
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12903
    break 2
 
12904
  fi
 
12905
done
 
12906
done
 
12907
 
 
12908
  ;;
 
12909
esac
 
12910
fi
 
12911
PATH_TO_WHO=$ac_cv_path_PATH_TO_WHO
 
12912
 
 
12913
if test -n "$PATH_TO_WHO"; then
 
12914
  echo "$as_me:$LINENO: result: $PATH_TO_WHO" >&5
 
12915
echo "${ECHO_T}$PATH_TO_WHO" >&6
 
12916
else
 
12917
  echo "$as_me:$LINENO: result: no" >&5
 
12918
echo "${ECHO_T}no" >&6
 
12919
fi
 
12920
 
 
12921
if who -q 2>/dev/null | egrep -i "^# users=[0-9]+$" >/dev/null
 
12922
then
 
12923
 
 
12924
cat >>confdefs.h <<_ACEOF
 
12925
#define WHO_COMMAND "$PATH_TO_WHO -q"
 
12926
_ACEOF
 
12927
 
 
12928
else
 
12929
 
 
12930
cat >>confdefs.h <<_ACEOF
 
12931
#define WHO_COMMAND "$PATH_TO_WHO"
 
12932
_ACEOF
 
12933
 
 
12934
fi
 
12935
 
 
12936
# Extract the first word of "snmpget", so it can be a program name with args.
 
12937
set dummy snmpget; ac_word=$2
 
12938
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12940
if test "${ac_cv_path_PATH_TO_SNMPGET+set}" = set; then
 
12941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12942
else
 
12943
  case $PATH_TO_SNMPGET in
 
12944
  [\\/]* | ?:[\\/]*)
 
12945
  ac_cv_path_PATH_TO_SNMPGET="$PATH_TO_SNMPGET" # Let the user override the test with a path.
 
12946
  ;;
 
12947
  *)
 
12948
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12949
for as_dir in $PATH
 
12950
do
 
12951
  IFS=$as_save_IFS
 
12952
  test -z "$as_dir" && as_dir=.
 
12953
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12954
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12955
    ac_cv_path_PATH_TO_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
 
12956
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12957
    break 2
 
12958
  fi
 
12959
done
 
12960
done
 
12961
 
 
12962
  ;;
 
12963
esac
 
12964
fi
 
12965
PATH_TO_SNMPGET=$ac_cv_path_PATH_TO_SNMPGET
 
12966
 
 
12967
if test -n "$PATH_TO_SNMPGET"; then
 
12968
  echo "$as_me:$LINENO: result: $PATH_TO_SNMPGET" >&5
 
12969
echo "${ECHO_T}$PATH_TO_SNMPGET" >&6
 
12970
else
 
12971
  echo "$as_me:$LINENO: result: no" >&5
 
12972
echo "${ECHO_T}no" >&6
 
12973
fi
 
12974
 
 
12975
if test -x "$PATH_TO_SNMPGET"
 
12976
then
 
12977
 
 
12978
cat >>confdefs.h <<_ACEOF
 
12979
#define PATH_TO_SNMPGET "$PATH_TO_SNMPGET"
 
12980
_ACEOF
 
12981
 
 
12982
        EXTRAS="$EXTRAS check_hpjd check_snmp"
 
12983
else
 
12984
        echo "** Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins"
 
12985
fi
 
12986
 
 
12987
# Extract the first word of "snmpgetnext", so it can be a program name with args.
 
12988
set dummy snmpgetnext; ac_word=$2
 
12989
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12991
if test "${ac_cv_path_PATH_TO_SNMPGETNEXT+set}" = set; then
 
12992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12993
else
 
12994
  case $PATH_TO_SNMPGETNEXT in
 
12995
  [\\/]* | ?:[\\/]*)
 
12996
  ac_cv_path_PATH_TO_SNMPGETNEXT="$PATH_TO_SNMPGETNEXT" # Let the user override the test with a path.
 
12997
  ;;
 
12998
  *)
 
12999
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13000
for as_dir in $PATH
 
13001
do
 
13002
  IFS=$as_save_IFS
 
13003
  test -z "$as_dir" && as_dir=.
 
13004
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13005
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13006
    ac_cv_path_PATH_TO_SNMPGETNEXT="$as_dir/$ac_word$ac_exec_ext"
 
13007
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13008
    break 2
 
13009
  fi
 
13010
done
 
13011
done
 
13012
 
 
13013
  ;;
 
13014
esac
 
13015
fi
 
13016
PATH_TO_SNMPGETNEXT=$ac_cv_path_PATH_TO_SNMPGETNEXT
 
13017
 
 
13018
if test -n "$PATH_TO_SNMPGETNEXT"; then
 
13019
  echo "$as_me:$LINENO: result: $PATH_TO_SNMPGETNEXT" >&5
 
13020
echo "${ECHO_T}$PATH_TO_SNMPGETNEXT" >&6
 
13021
else
 
13022
  echo "$as_me:$LINENO: result: no" >&5
 
13023
echo "${ECHO_T}no" >&6
 
13024
fi
 
13025
 
 
13026
if test -x "$PATH_TO_SNMPGETNEXT"
 
13027
then
 
13028
 
 
13029
cat >>confdefs.h <<_ACEOF
 
13030
#define PATH_TO_SNMPGETNEXT "$PATH_TO_SNMPGETNEXT"
 
13031
_ACEOF
 
13032
 
 
13033
fi
 
13034
 
 
13035
if ( $PERL -M"Net::SNMP 3.6" -e 'exit' 2>/dev/null  )
 
13036
then
 
13037
        echo "Found Net::SNMP perl module"
 
13038
else
 
13039
        echo "** Tried $PERL - install Net::SNMP perl module if you want to"
 
13040
        echo "        use the perl snmp plugins"
 
13041
fi
 
13042
 
 
13043
# Extract the first word of "quakestat", so it can be a program name with args.
 
13044
set dummy quakestat; ac_word=$2
 
13045
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13046
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13047
if test "${ac_cv_path_PATH_TO_QUAKESTAT+set}" = set; then
 
13048
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13049
else
 
13050
  case $PATH_TO_QUAKESTAT in
 
13051
  [\\/]* | ?:[\\/]*)
 
13052
  ac_cv_path_PATH_TO_QUAKESTAT="$PATH_TO_QUAKESTAT" # Let the user override the test with a path.
 
13053
  ;;
 
13054
  *)
 
13055
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13056
for as_dir in $PATH
 
13057
do
 
13058
  IFS=$as_save_IFS
 
13059
  test -z "$as_dir" && as_dir=.
 
13060
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13061
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13062
    ac_cv_path_PATH_TO_QUAKESTAT="$as_dir/$ac_word$ac_exec_ext"
 
13063
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13064
    break 2
 
13065
  fi
 
13066
done
 
13067
done
 
13068
 
 
13069
  ;;
 
13070
esac
 
13071
fi
 
13072
PATH_TO_QUAKESTAT=$ac_cv_path_PATH_TO_QUAKESTAT
 
13073
 
 
13074
if test -n "$PATH_TO_QUAKESTAT"; then
 
13075
  echo "$as_me:$LINENO: result: $PATH_TO_QUAKESTAT" >&5
 
13076
echo "${ECHO_T}$PATH_TO_QUAKESTAT" >&6
 
13077
else
 
13078
  echo "$as_me:$LINENO: result: no" >&5
 
13079
echo "${ECHO_T}no" >&6
 
13080
fi
 
13081
 
 
13082
# Extract the first word of "qstat", so it can be a program name with args.
 
13083
set dummy qstat; ac_word=$2
 
13084
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13085
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13086
if test "${ac_cv_path_PATH_TO_QSTAT+set}" = set; then
 
13087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13088
else
 
13089
  case $PATH_TO_QSTAT in
 
13090
  [\\/]* | ?:[\\/]*)
 
13091
  ac_cv_path_PATH_TO_QSTAT="$PATH_TO_QSTAT" # Let the user override the test with a path.
 
13092
  ;;
 
13093
  *)
 
13094
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13095
for as_dir in $PATH
 
13096
do
 
13097
  IFS=$as_save_IFS
 
13098
  test -z "$as_dir" && as_dir=.
 
13099
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13100
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13101
    ac_cv_path_PATH_TO_QSTAT="$as_dir/$ac_word$ac_exec_ext"
 
13102
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13103
    break 2
 
13104
  fi
 
13105
done
 
13106
done
 
13107
 
 
13108
  ;;
 
13109
esac
 
13110
fi
 
13111
PATH_TO_QSTAT=$ac_cv_path_PATH_TO_QSTAT
 
13112
 
 
13113
if test -n "$PATH_TO_QSTAT"; then
 
13114
  echo "$as_me:$LINENO: result: $PATH_TO_QSTAT" >&5
 
13115
echo "${ECHO_T}$PATH_TO_QSTAT" >&6
 
13116
else
 
13117
  echo "$as_me:$LINENO: result: no" >&5
 
13118
echo "${ECHO_T}no" >&6
 
13119
fi
 
13120
 
 
13121
if test -x "$PATH_TO_QUAKESTAT"
 
13122
then
 
13123
 
 
13124
cat >>confdefs.h <<_ACEOF
 
13125
#define PATH_TO_QSTAT "$PATH_TO_QUAKESTAT"
 
13126
_ACEOF
 
13127
 
 
13128
        EXTRAS="$EXTRAS check_game"
 
13129
elif test -x "$PATH_TO_QSTAT"
 
13130
then
 
13131
 
 
13132
cat >>confdefs.h <<_ACEOF
 
13133
#define PATH_TO_QSTAT "$PATH_TO_QSTAT"
 
13134
_ACEOF
 
13135
 
 
13136
        EXTRAS="$EXTRAS check_game"
 
13137
else
 
13138
        echo "** Get qstat from http://www.activesw.com/people/steve/qstat.html in order to make check_game plugin"
 
13139
fi
 
13140
 
 
13141
# Extract the first word of "fping", so it can be a program name with args.
 
13142
set dummy fping; ac_word=$2
 
13143
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13144
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13145
if test "${ac_cv_path_PATH_TO_FPING+set}" = set; then
 
13146
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13147
else
 
13148
  case $PATH_TO_FPING in
 
13149
  [\\/]* | ?:[\\/]*)
 
13150
  ac_cv_path_PATH_TO_FPING="$PATH_TO_FPING" # Let the user override the test with a path.
 
13151
  ;;
 
13152
  *)
 
13153
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13154
for as_dir in $PATH
 
13155
do
 
13156
  IFS=$as_save_IFS
 
13157
  test -z "$as_dir" && as_dir=.
 
13158
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13159
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13160
    ac_cv_path_PATH_TO_FPING="$as_dir/$ac_word$ac_exec_ext"
 
13161
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13162
    break 2
 
13163
  fi
 
13164
done
 
13165
done
 
13166
 
 
13167
  ;;
 
13168
esac
 
13169
fi
 
13170
PATH_TO_FPING=$ac_cv_path_PATH_TO_FPING
 
13171
 
 
13172
if test -n "$PATH_TO_FPING"; then
 
13173
  echo "$as_me:$LINENO: result: $PATH_TO_FPING" >&5
 
13174
echo "${ECHO_T}$PATH_TO_FPING" >&6
 
13175
else
 
13176
  echo "$as_me:$LINENO: result: no" >&5
 
13177
echo "${ECHO_T}no" >&6
 
13178
fi
 
13179
 
 
13180
if test -x "$PATH_TO_FPING"
 
13181
then
 
13182
 
 
13183
cat >>confdefs.h <<_ACEOF
 
13184
#define PATH_TO_FPING "$PATH_TO_FPING"
 
13185
_ACEOF
 
13186
 
 
13187
        EXTRAS="$EXTRAS check_fping"
 
13188
else
 
13189
        echo "** Get fping from http://www.fping.com in order to make check_fping plugin"
 
13190
fi
 
13191
 
 
13192
# Extract the first word of "ssh", so it can be a program name with args.
 
13193
set dummy ssh; ac_word=$2
 
13194
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13195
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13196
if test "${ac_cv_path_PATH_TO_SSH+set}" = set; then
 
13197
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13198
else
 
13199
  case $PATH_TO_SSH in
 
13200
  [\\/]* | ?:[\\/]*)
 
13201
  ac_cv_path_PATH_TO_SSH="$PATH_TO_SSH" # Let the user override the test with a path.
 
13202
  ;;
 
13203
  *)
 
13204
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13205
for as_dir in $PATH
 
13206
do
 
13207
  IFS=$as_save_IFS
 
13208
  test -z "$as_dir" && as_dir=.
 
13209
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13210
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13211
    ac_cv_path_PATH_TO_SSH="$as_dir/$ac_word$ac_exec_ext"
 
13212
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13213
    break 2
 
13214
  fi
 
13215
done
 
13216
done
 
13217
 
 
13218
  ;;
 
13219
esac
 
13220
fi
 
13221
PATH_TO_SSH=$ac_cv_path_PATH_TO_SSH
 
13222
 
 
13223
if test -n "$PATH_TO_SSH"; then
 
13224
  echo "$as_me:$LINENO: result: $PATH_TO_SSH" >&5
 
13225
echo "${ECHO_T}$PATH_TO_SSH" >&6
 
13226
else
 
13227
  echo "$as_me:$LINENO: result: no" >&5
 
13228
echo "${ECHO_T}no" >&6
 
13229
fi
 
13230
 
 
13231
if test -x "$PATH_TO_SSH"
 
13232
then
 
13233
 
 
13234
cat >>confdefs.h <<_ACEOF
 
13235
#define SSH_COMMAND "$PATH_TO_SSH"
 
13236
_ACEOF
 
13237
 
 
13238
        EXTRAS="$EXTRAS check_by_ssh"
 
13239
else
 
13240
        echo "** Get ssh in order to make check_by_ssh plugin"
 
13241
fi
 
13242
 
 
13243
 
 
13244
# Extract the first word of "mailq", so it can be a program name with args.
 
13245
set dummy mailq; ac_word=$2
 
13246
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13248
if test "${ac_cv_path_PATH_TO_MAILQ+set}" = set; then
 
13249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13250
else
 
13251
  case $PATH_TO_MAILQ in
 
13252
  [\\/]* | ?:[\\/]*)
 
13253
  ac_cv_path_PATH_TO_MAILQ="$PATH_TO_MAILQ" # Let the user override the test with a path.
 
13254
  ;;
 
13255
  *)
 
13256
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13257
for as_dir in $PATH
 
13258
do
 
13259
  IFS=$as_save_IFS
 
13260
  test -z "$as_dir" && as_dir=.
 
13261
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13262
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13263
    ac_cv_path_PATH_TO_MAILQ="$as_dir/$ac_word$ac_exec_ext"
 
13264
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13265
    break 2
 
13266
  fi
 
13267
done
 
13268
done
 
13269
 
 
13270
  ;;
 
13271
esac
 
13272
fi
 
13273
PATH_TO_MAILQ=$ac_cv_path_PATH_TO_MAILQ
 
13274
 
 
13275
if test -n "$PATH_TO_MAILQ"; then
 
13276
  echo "$as_me:$LINENO: result: $PATH_TO_MAILQ" >&5
 
13277
echo "${ECHO_T}$PATH_TO_MAILQ" >&6
 
13278
else
 
13279
  echo "$as_me:$LINENO: result: no" >&5
 
13280
echo "${ECHO_T}no" >&6
 
13281
fi
 
13282
 
 
13283
if test -x "$PATH_TO_MAILQ"
 
13284
then
 
13285
 
 
13286
cat >>confdefs.h <<_ACEOF
 
13287
#define PATH_TO_MAILQ "$PATH_TO_MAILQ"
 
13288
_ACEOF
 
13289
 
 
13290
else
 
13291
        echo "** Could not find mailq or eqivalent"
 
13292
fi
 
13293
 
 
13294
 
 
13295
 
 
13296
if cat /proc/meminfo > /dev/null 2>&1
 
13297
then
 
13298
        echo "found /proc/meminfo"
 
13299
 
 
13300
cat >>confdefs.h <<\_ACEOF
 
13301
#define HAVE_PROC_MEMINFO 1
 
13302
_ACEOF
 
13303
 
 
13304
 
 
13305
cat >>confdefs.h <<_ACEOF
 
13306
#define PROC_MEMINFO "/proc/meminfo"
 
13307
_ACEOF
 
13308
 
 
13309
        EXTRAS="$EXTRAS check_swap"
 
13310
elif swap -l 2>&1 >/dev/null
 
13311
then
 
13312
        echo "found swap command"
 
13313
 
 
13314
cat >>confdefs.h <<\_ACEOF
 
13315
#define HAVE_SWAP 1
 
13316
_ACEOF
 
13317
 
 
13318
        # Extract the first word of "swap", so it can be a program name with args.
 
13319
set dummy swap; ac_word=$2
 
13320
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13321
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13322
if test "${ac_cv_path_PATH_TO_SWAP+set}" = set; then
 
13323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13324
else
 
13325
  case $PATH_TO_SWAP in
 
13326
  [\\/]* | ?:[\\/]*)
 
13327
  ac_cv_path_PATH_TO_SWAP="$PATH_TO_SWAP" # Let the user override the test with a path.
 
13328
  ;;
 
13329
  *)
 
13330
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13331
for as_dir in $PATH
 
13332
do
 
13333
  IFS=$as_save_IFS
 
13334
  test -z "$as_dir" && as_dir=.
 
13335
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13336
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13337
    ac_cv_path_PATH_TO_SWAP="$as_dir/$ac_word$ac_exec_ext"
 
13338
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13339
    break 2
 
13340
  fi
 
13341
done
 
13342
done
 
13343
 
 
13344
  ;;
 
13345
esac
 
13346
fi
 
13347
PATH_TO_SWAP=$ac_cv_path_PATH_TO_SWAP
 
13348
 
 
13349
if test -n "$PATH_TO_SWAP"; then
 
13350
  echo "$as_me:$LINENO: result: $PATH_TO_SWAP" >&5
 
13351
echo "${ECHO_T}$PATH_TO_SWAP" >&6
 
13352
else
 
13353
  echo "$as_me:$LINENO: result: no" >&5
 
13354
echo "${ECHO_T}no" >&6
 
13355
fi
 
13356
 
 
13357
 
 
13358
cat >>confdefs.h <<_ACEOF
 
13359
#define SWAP_COMMAND "$PATH_TO_SWAP -l"
 
13360
_ACEOF
 
13361
 
 
13362
        if swap -l 2>/dev/null | egrep -i "^lswap +path +pri +swaplo +blocks +free +maxswap" >/dev/null
 
13363
        then
 
13364
 
 
13365
cat >>confdefs.h <<_ACEOF
 
13366
#define SWAP_FORMAT " %*d %*s %*d,%*d %*d %*d %d %d"
 
13367
_ACEOF
 
13368
 
 
13369
                echo "      using IRIX format"
 
13370
        elif swap -l 2>/dev/null | egrep -i "^swapfile +dev +swaplo +blocks +free" >/dev/null
 
13371
        then
 
13372
 
 
13373
cat >>confdefs.h <<_ACEOF
 
13374
#define SWAP_FORMAT "%*s %*[0-9,-] %*d %d %d"
 
13375
_ACEOF
 
13376
 
 
13377
                echo "      using Solaris format"
 
13378
        elif swap -l 2>/dev/null | egrep -i "^path +dev +swaplo +blocks +free" >/dev/null
 
13379
        then
 
13380
 
 
13381
cat >>confdefs.h <<_ACEOF
 
13382
#define SWAP_FORMAT "%*s %*[0-9,-] %*d %d %d"
 
13383
_ACEOF
 
13384
 
 
13385
                echo "      using Unixware format"
 
13386
        fi
 
13387
        EXTRAS="$EXTRAS check_swap"
 
13388
elif swapinfo -k 2>&1 | egrep -i "^Device" >/dev/null
 
13389
then
 
13390
        echo "found swapinfo command"
 
13391
 
 
13392
cat >>confdefs.h <<\_ACEOF
 
13393
#define HAVE_SWAP 1
 
13394
_ACEOF
 
13395
 
 
13396
        # Extract the first word of "swapinfo", so it can be a program name with args.
 
13397
set dummy swapinfo; ac_word=$2
 
13398
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13399
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13400
if test "${ac_cv_path_PATH_TO_SWAP+set}" = set; then
 
13401
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13402
else
 
13403
  case $PATH_TO_SWAP in
 
13404
  [\\/]* | ?:[\\/]*)
 
13405
  ac_cv_path_PATH_TO_SWAP="$PATH_TO_SWAP" # Let the user override the test with a path.
 
13406
  ;;
 
13407
  *)
 
13408
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13409
for as_dir in $PATH
 
13410
do
 
13411
  IFS=$as_save_IFS
 
13412
  test -z "$as_dir" && as_dir=.
 
13413
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13414
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13415
    ac_cv_path_PATH_TO_SWAP="$as_dir/$ac_word$ac_exec_ext"
 
13416
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13417
    break 2
 
13418
  fi
 
13419
done
 
13420
done
 
13421
 
 
13422
  ;;
 
13423
esac
 
13424
fi
 
13425
PATH_TO_SWAP=$ac_cv_path_PATH_TO_SWAP
 
13426
 
 
13427
if test -n "$PATH_TO_SWAP"; then
 
13428
  echo "$as_me:$LINENO: result: $PATH_TO_SWAP" >&5
 
13429
echo "${ECHO_T}$PATH_TO_SWAP" >&6
 
13430
else
 
13431
  echo "$as_me:$LINENO: result: no" >&5
 
13432
echo "${ECHO_T}no" >&6
 
13433
fi
 
13434
 
 
13435
 
 
13436
cat >>confdefs.h <<_ACEOF
 
13437
#define SWAP_COMMAND "$PATH_TO_SWAP -k"
 
13438
_ACEOF
 
13439
 
 
13440
        if swapinfo -k 2>/dev/null | egrep -i "^Device +1K-blocks +Used +Avail" >/dev/null
 
13441
        then
 
13442
 
 
13443
cat >>confdefs.h <<_ACEOF
 
13444
#define SWAP_FORMAT "%*s %d %*d %d"
 
13445
_ACEOF
 
13446
 
 
13447
                echo "      using FreeBSD format"
 
13448
        fi
 
13449
        EXTRAS="$EXTRAS check_swap"
 
13450
elif swapinfo -dfM 2>/dev/null | egrep -i "^TYPE +AVAIL +USED +FREE" >/dev/null
 
13451
then
 
13452
 
 
13453
cat >>confdefs.h <<\_ACEOF
 
13454
#define HAVE_SWAP 1
 
13455
_ACEOF
 
13456
 
 
13457
        # Extract the first word of "swapinfo", so it can be a program name with args.
 
13458
set dummy swapinfo; ac_word=$2
 
13459
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13461
if test "${ac_cv_path_PATH_TO_SWAP+set}" = set; then
 
13462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13463
else
 
13464
  case $PATH_TO_SWAP in
 
13465
  [\\/]* | ?:[\\/]*)
 
13466
  ac_cv_path_PATH_TO_SWAP="$PATH_TO_SWAP" # Let the user override the test with a path.
 
13467
  ;;
 
13468
  *)
 
13469
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13470
for as_dir in $PATH
 
13471
do
 
13472
  IFS=$as_save_IFS
 
13473
  test -z "$as_dir" && as_dir=.
 
13474
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13475
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13476
    ac_cv_path_PATH_TO_SWAP="$as_dir/$ac_word$ac_exec_ext"
 
13477
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13478
    break 2
 
13479
  fi
 
13480
done
 
13481
done
 
13482
 
 
13483
  ;;
 
13484
esac
 
13485
fi
 
13486
PATH_TO_SWAP=$ac_cv_path_PATH_TO_SWAP
 
13487
 
 
13488
if test -n "$PATH_TO_SWAP"; then
 
13489
  echo "$as_me:$LINENO: result: $PATH_TO_SWAP" >&5
 
13490
echo "${ECHO_T}$PATH_TO_SWAP" >&6
 
13491
else
 
13492
  echo "$as_me:$LINENO: result: no" >&5
 
13493
echo "${ECHO_T}no" >&6
 
13494
fi
 
13495
 
 
13496
 
 
13497
cat >>confdefs.h <<_ACEOF
 
13498
#define SWAP_COMMAND "$PATH_TO_SWAP -dfM"
 
13499
_ACEOF
 
13500
 
 
13501
 
 
13502
cat >>confdefs.h <<_ACEOF
 
13503
#define SWAP_FORMAT "%*s %d %*d %d"
 
13504
_ACEOF
 
13505
 
 
13506
        echo "        using HP-UX format HP-UX"
 
13507
fi
 
13508
 
 
13509
# Extract the first word of "dig", so it can be a program name with args.
 
13510
set dummy dig; ac_word=$2
 
13511
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13512
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13513
if test "${ac_cv_path_PATH_TO_DIG+set}" = set; then
 
13514
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13515
else
 
13516
  case $PATH_TO_DIG in
 
13517
  [\\/]* | ?:[\\/]*)
 
13518
  ac_cv_path_PATH_TO_DIG="$PATH_TO_DIG" # Let the user override the test with a path.
 
13519
  ;;
 
13520
  *)
 
13521
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13522
for as_dir in $PATH
 
13523
do
 
13524
  IFS=$as_save_IFS
 
13525
  test -z "$as_dir" && as_dir=.
 
13526
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13527
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13528
    ac_cv_path_PATH_TO_DIG="$as_dir/$ac_word$ac_exec_ext"
 
13529
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13530
    break 2
 
13531
  fi
 
13532
done
 
13533
done
 
13534
 
 
13535
  ;;
 
13536
esac
 
13537
fi
 
13538
PATH_TO_DIG=$ac_cv_path_PATH_TO_DIG
 
13539
 
 
13540
if test -n "$PATH_TO_DIG"; then
 
13541
  echo "$as_me:$LINENO: result: $PATH_TO_DIG" >&5
 
13542
echo "${ECHO_T}$PATH_TO_DIG" >&6
 
13543
else
 
13544
  echo "$as_me:$LINENO: result: no" >&5
 
13545
echo "${ECHO_T}no" >&6
 
13546
fi
 
13547
 
 
13548
 
 
13549
cat >>confdefs.h <<_ACEOF
 
13550
#define PATH_TO_DIG "$PATH_TO_DIG"
 
13551
_ACEOF
 
13552
 
 
13553
if test -n "$PATH_TO_DIG"; then
 
13554
        EXTRAS="$EXTRAS check_dig"
 
13555
fi
 
13556
 
 
13557
if test -f plugins/check_nt.c ; then
 
13558
  EXTRAS="$EXTRAS check_nt"
 
13559
elif test -f ../plugins/check_nt.c ; then
 
13560
  EXTRAS="$EXTRAS check_nt"
 
13561
fi
 
13562
 
 
13563
cat >conftest.$ac_ext <<_ACEOF
 
13564
#line $LINENO "configure"
 
13565
/* confdefs.h.  */
 
13566
_ACEOF
 
13567
cat confdefs.h >>conftest.$ac_ext
 
13568
cat >>conftest.$ac_ext <<_ACEOF
 
13569
/* end confdefs.h.  */
 
13570
#ifdef __STDC__
 
13571
#include <stdio.h>
 
13572
#include <stdlib.h>
 
13573
#include <stdarg.h>
 
13574
#else
 
13575
#include <sys/types.h>
 
13576
#include <stdio.h>
 
13577
#include <varargs.h>
 
13578
#endif
 
13579
int
 
13580
main ()
 
13581
{
 
13582
va_list args;
 
13583
  ;
 
13584
  return 0;
 
13585
}
 
13586
_ACEOF
 
13587
rm -f conftest.$ac_objext
 
13588
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13589
  (eval $ac_compile) 2>&5
 
13590
  ac_status=$?
 
13591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13592
  (exit $ac_status); } &&
 
13593
         { ac_try='test -s conftest.$ac_objext'
 
13594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13595
  (eval $ac_try) 2>&5
 
13596
  ac_status=$?
 
13597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13598
  (exit $ac_status); }; }; then
 
13599
  echo "$as_me:$LINENO: result: yes" >&5
 
13600
echo "${ECHO_T}yes" >&6
 
13601
else
 
13602
  echo "$as_me: failed program was:" >&5
 
13603
sed 's/^/| /' conftest.$ac_ext >&5
 
13604
 
 
13605
NEED_VA_LIST=-DNEED_VA_LIST  echo "$as_me:$LINENO: result: no" >&5
 
13606
echo "${ECHO_T}no" >&6
 
13607
fi
 
13608
rm -f conftest.$ac_objext conftest.$ac_ext
 
13609
 
 
13610
 
 
13611
 
 
13612
 
 
13613
 
 
13614
cat >>confdefs.h <<_ACEOF
 
13615
#define PACKAGE_VERSION "${VERSION}"
 
13616
_ACEOF
 
13617
 
 
13618
 
 
13619
                                                                                                    ac_config_files="$ac_config_files Makefile subst lib/Makefile plugins/Makefile plugins-scripts/Makefile plugins-scripts/subst plugins-scripts/utils.pm plugins-scripts/utils.sh command.cfg test.pl"
 
13620
          ac_config_commands="$ac_config_commands default"
 
13621
cat >confcache <<\_ACEOF
 
13622
# This file is a shell script that caches the results of configure
 
13623
# tests run on this system so they can be shared between configure
 
13624
# scripts and configure runs, see configure's option --config-cache.
 
13625
# It is not useful on other systems.  If it contains results you don't
 
13626
# want to keep, you may remove or edit it.
 
13627
#
 
13628
# config.status only pays attention to the cache file if you give it
 
13629
# the --recheck option to rerun configure.
 
13630
#
 
13631
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
13632
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
13633
# following values.
 
13634
 
 
13635
_ACEOF
 
13636
 
 
13637
# The following way of writing the cache mishandles newlines in values,
 
13638
# but we know of no workaround that is simple, portable, and efficient.
 
13639
# So, don't put newlines in cache variables' values.
 
13640
# Ultrix sh set writes to stderr and can't be redirected directly,
 
13641
# and sets the high bit in the cache file unless we assign to the vars.
 
13642
{
 
13643
  (set) 2>&1 |
 
13644
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
13645
    *ac_space=\ *)
 
13646
      # `set' does not quote correctly, so add quotes (double-quote
 
13647
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
13648
      sed -n \
 
13649
        "s/'/'\\\\''/g;
 
13650
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13651
      ;;
 
13652
    *)
 
13653
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13654
      sed -n \
 
13655
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
13656
      ;;
 
13657
    esac;
 
13658
} |
 
13659
  sed '
 
13660
     t clear
 
13661
     : clear
 
13662
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13663
     t end
 
13664
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13665
     : end' >>confcache
 
13666
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
13667
  if test -w $cache_file; then
 
13668
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
13669
    cat confcache >$cache_file
 
13670
  else
 
13671
    echo "not updating unwritable cache $cache_file"
 
13672
  fi
 
13673
fi
 
13674
rm -f confcache
 
13675
 
 
13676
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13677
# Let make expand exec_prefix.
 
13678
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13679
 
 
13680
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
13681
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
13682
# trailing colons and then remove the whole line if VPATH becomes empty
 
13683
# (actually we leave an empty line to preserve line numbers).
 
13684
if test "x$srcdir" = x.; then
 
13685
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
13686
s/:*\$(srcdir):*/:/;
 
13687
s/:*\${srcdir}:*/:/;
 
13688
s/:*@srcdir@:*/:/;
 
13689
s/^\([^=]*=[    ]*\):*/\1/;
 
13690
s/:*$//;
 
13691
s/^[^=]*=[      ]*$//;
 
13692
}'
 
13693
fi
 
13694
 
 
13695
DEFS=-DHAVE_CONFIG_H
 
13696
 
 
13697
ac_libobjs=
 
13698
ac_ltlibobjs=
 
13699
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
13700
  # 1. Remove the extension, and $U if already installed.
 
13701
  ac_i=`echo "$ac_i" |
 
13702
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
13703
  # 2. Add them.
 
13704
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
13705
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
13706
done
 
13707
LIBOBJS=$ac_libobjs
 
13708
 
 
13709
LTLIBOBJS=$ac_ltlibobjs
 
13710
 
 
13711
 
 
13712
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13713
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
13714
Usually this means the macro was only invoked conditionally." >&5
 
13715
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
13716
Usually this means the macro was only invoked conditionally." >&2;}
 
13717
   { (exit 1); exit 1; }; }
 
13718
fi
 
13719
 
 
13720
: ${CONFIG_STATUS=./config.status}
 
13721
ac_clean_files_save=$ac_clean_files
 
13722
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13723
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
13724
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13725
cat >$CONFIG_STATUS <<_ACEOF
 
13726
#! $SHELL
 
13727
# Generated by $as_me.
 
13728
# Run this file to recreate the current configuration.
 
13729
# Compiler output produced by configure, useful for debugging
 
13730
# configure, is in config.log if it exists.
 
13731
 
 
13732
debug=false
 
13733
ac_cs_recheck=false
 
13734
ac_cs_silent=false
 
13735
SHELL=\${CONFIG_SHELL-$SHELL}
 
13736
_ACEOF
 
13737
 
 
13738
cat >>$CONFIG_STATUS <<\_ACEOF
 
13739
## --------------------- ##
 
13740
## M4sh Initialization.  ##
 
13741
## --------------------- ##
 
13742
 
 
13743
# Be Bourne compatible
 
13744
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
13745
  emulate sh
 
13746
  NULLCMD=:
 
13747
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
13748
  # is contrary to our usage.  Disable this feature.
 
13749
  alias -g '${1+"$@"}'='"$@"'
 
13750
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
13751
  set -o posix
 
13752
fi
 
13753
 
 
13754
# Support unset when possible.
 
13755
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
13756
  as_unset=unset
 
13757
else
 
13758
  as_unset=false
 
13759
fi
 
13760
 
 
13761
 
 
13762
# Work around bugs in pre-3.0 UWIN ksh.
 
13763
$as_unset ENV MAIL MAILPATH
 
13764
PS1='$ '
 
13765
PS2='> '
 
13766
PS4='+ '
 
13767
 
 
13768
# NLS nuisances.
 
13769
for as_var in \
 
13770
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
13771
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
13772
  LC_TELEPHONE LC_TIME
 
13773
do
 
13774
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
13775
    eval $as_var=C; export $as_var
 
13776
  else
 
13777
    $as_unset $as_var
 
13778
  fi
 
13779
done
 
13780
 
 
13781
# Required to use basename.
 
13782
if expr a : '\(a\)' >/dev/null 2>&1; then
 
13783
  as_expr=expr
 
13784
else
 
13785
  as_expr=false
 
13786
fi
 
13787
 
 
13788
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
13789
  as_basename=basename
 
13790
else
 
13791
  as_basename=false
 
13792
fi
 
13793
 
 
13794
 
 
13795
# Name of the executable.
 
13796
as_me=`$as_basename "$0" ||
 
13797
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13798
         X"$0" : 'X\(//\)$' \| \
 
13799
         X"$0" : 'X\(/\)$' \| \
 
13800
         .     : '\(.\)' 2>/dev/null ||
 
13801
echo X/"$0" |
 
13802
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
13803
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
13804
          /^X\/\(\/\).*/{ s//\1/; q; }
 
13805
          s/.*/./; q'`
 
13806
 
 
13807
 
 
13808
# PATH needs CR, and LINENO needs CR and PATH.
 
13809
# Avoid depending upon Character Ranges.
 
13810
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13811
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13812
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13813
as_cr_digits='0123456789'
 
13814
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13815
 
 
13816
# The user is always right.
 
13817
if test "${PATH_SEPARATOR+set}" != set; then
 
13818
  echo "#! /bin/sh" >conf$$.sh
 
13819
  echo  "exit 0"   >>conf$$.sh
 
13820
  chmod +x conf$$.sh
 
13821
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
13822
    PATH_SEPARATOR=';'
 
13823
  else
 
13824
    PATH_SEPARATOR=:
 
13825
  fi
 
13826
  rm -f conf$$.sh
 
13827
fi
 
13828
 
 
13829
 
 
13830
  as_lineno_1=$LINENO
 
13831
  as_lineno_2=$LINENO
 
13832
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
13833
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
13834
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
13835
  # Find who we are.  Look in the path if we contain no path at all
 
13836
  # relative or not.
 
13837
  case $0 in
 
13838
    *[\\/]* ) as_myself=$0 ;;
 
13839
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13840
for as_dir in $PATH
 
13841
do
 
13842
  IFS=$as_save_IFS
 
13843
  test -z "$as_dir" && as_dir=.
 
13844
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13845
done
 
13846
 
 
13847
       ;;
 
13848
  esac
 
13849
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
13850
  # in which case we are not to be found in the path.
 
13851
  if test "x$as_myself" = x; then
 
13852
    as_myself=$0
 
13853
  fi
 
13854
  if test ! -f "$as_myself"; then
 
13855
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
13856
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
13857
   { (exit 1); exit 1; }; }
 
13858
  fi
 
13859
  case $CONFIG_SHELL in
 
13860
  '')
 
13861
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13862
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
13863
do
 
13864
  IFS=$as_save_IFS
 
13865
  test -z "$as_dir" && as_dir=.
 
13866
  for as_base in sh bash ksh sh5; do
 
13867
         case $as_dir in
 
13868
         /*)
 
13869
           if ("$as_dir/$as_base" -c '
 
13870
  as_lineno_1=$LINENO
 
13871
  as_lineno_2=$LINENO
 
13872
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
13873
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
13874
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
13875
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
13876
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
13877
             CONFIG_SHELL=$as_dir/$as_base
 
13878
             export CONFIG_SHELL
 
13879
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
13880
           fi;;
 
13881
         esac
 
13882
       done
 
13883
done
 
13884
;;
 
13885
  esac
 
13886
 
 
13887
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
13888
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
13889
  # line-number line before each line; the second 'sed' does the real
 
13890
  # work.  The second script uses 'N' to pair each line-number line
 
13891
  # with the numbered line, and appends trailing '-' during
 
13892
  # substitution so that $LINENO is not a special case at line end.
 
13893
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
13894
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
13895
  sed '=' <$as_myself |
 
13896
    sed '
 
13897
      N
 
13898
      s,$,-,
 
13899
      : loop
 
13900
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
13901
      t loop
 
13902
      s,-$,,
 
13903
      s,^['$as_cr_digits']*\n,,
 
13904
    ' >$as_me.lineno &&
 
13905
  chmod +x $as_me.lineno ||
 
13906
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
13907
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
13908
   { (exit 1); exit 1; }; }
 
13909
 
 
13910
  # Don't try to exec as it changes $[0], causing all sort of problems
 
13911
  # (the dirname of $[0] is not the place where we might find the
 
13912
  # original and so on.  Autoconf is especially sensible to this).
 
13913
  . ./$as_me.lineno
 
13914
  # Exit status is that of the last command.
 
13915
  exit
 
13916
}
 
13917
 
 
13918
 
 
13919
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
13920
  *c*,-n*) ECHO_N= ECHO_C='
 
13921
' ECHO_T='      ' ;;
 
13922
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
13923
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
13924
esac
 
13925
 
 
13926
if expr a : '\(a\)' >/dev/null 2>&1; then
 
13927
  as_expr=expr
 
13928
else
 
13929
  as_expr=false
 
13930
fi
 
13931
 
 
13932
rm -f conf$$ conf$$.exe conf$$.file
 
13933
echo >conf$$.file
 
13934
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13935
  # We could just check for DJGPP; but this test a) works b) is more generic
 
13936
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
13937
  if test -f conf$$.exe; then
 
13938
    # Don't use ln at all; we don't have any links
 
13939
    as_ln_s='cp -p'
 
13940
  else
 
13941
    as_ln_s='ln -s'
 
13942
  fi
 
13943
elif ln conf$$.file conf$$ 2>/dev/null; then
 
13944
  as_ln_s=ln
 
13945
else
 
13946
  as_ln_s='cp -p'
 
13947
fi
 
13948
rm -f conf$$ conf$$.exe conf$$.file
 
13949
 
 
13950
if mkdir -p . 2>/dev/null; then
 
13951
  as_mkdir_p=:
 
13952
else
 
13953
  as_mkdir_p=false
 
13954
fi
 
13955
 
 
13956
as_executable_p="test -f"
 
13957
 
 
13958
# Sed expression to map a string onto a valid CPP name.
 
13959
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
13960
 
 
13961
# Sed expression to map a string onto a valid variable name.
 
13962
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
13963
 
 
13964
 
 
13965
# IFS
 
13966
# We need space, tab and new line, in precisely that order.
 
13967
as_nl='
 
13968
'
 
13969
IFS="   $as_nl"
 
13970
 
 
13971
# CDPATH.
 
13972
$as_unset CDPATH
 
13973
 
 
13974
exec 6>&1
 
13975
 
 
13976
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
13977
# report actual input values of CONFIG_FILES etc. instead of their
 
13978
# values after options handling.  Logging --version etc. is OK.
 
13979
exec 5>>config.log
 
13980
{
 
13981
  echo
 
13982
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
13983
## Running $as_me. ##
 
13984
_ASBOX
 
13985
} >&5
 
13986
cat >&5 <<_CSEOF
 
13987
 
 
13988
This file was extended by $as_me, which was
 
13989
generated by GNU Autoconf 2.57.  Invocation command line was
 
13990
 
 
13991
  CONFIG_FILES    = $CONFIG_FILES
 
13992
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
13993
  CONFIG_LINKS    = $CONFIG_LINKS
 
13994
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
13995
  $ $0 $@
 
13996
 
 
13997
_CSEOF
 
13998
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
13999
echo >&5
 
14000
_ACEOF
 
14001
 
 
14002
# Files that config.status was made for.
 
14003
if test -n "$ac_config_files"; then
 
14004
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
14005
fi
 
14006
 
 
14007
if test -n "$ac_config_headers"; then
 
14008
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
14009
fi
 
14010
 
 
14011
if test -n "$ac_config_links"; then
 
14012
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
14013
fi
 
14014
 
 
14015
if test -n "$ac_config_commands"; then
 
14016
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
14017
fi
 
14018
 
 
14019
cat >>$CONFIG_STATUS <<\_ACEOF
 
14020
 
 
14021
ac_cs_usage="\
 
14022
\`$as_me' instantiates files from templates according to the
 
14023
current configuration.
 
14024
 
 
14025
Usage: $0 [OPTIONS] [FILE]...
 
14026
 
 
14027
  -h, --help       print this help, then exit
 
14028
  -V, --version    print version number, then exit
 
14029
  -q, --quiet      do not print progress messages
 
14030
  -d, --debug      don't remove temporary files
 
14031
      --recheck    update $as_me by reconfiguring in the same conditions
 
14032
  --file=FILE[:TEMPLATE]
 
14033
                   instantiate the configuration file FILE
 
14034
  --header=FILE[:TEMPLATE]
 
14035
                   instantiate the configuration header FILE
 
14036
 
 
14037
Configuration files:
 
14038
$config_files
 
14039
 
 
14040
Configuration headers:
 
14041
$config_headers
 
14042
 
 
14043
Configuration commands:
 
14044
$config_commands
 
14045
 
 
14046
Report bugs to <bug-autoconf@gnu.org>."
 
14047
_ACEOF
 
14048
 
 
14049
cat >>$CONFIG_STATUS <<_ACEOF
 
14050
ac_cs_version="\\
 
14051
config.status
 
14052
configured by $0, generated by GNU Autoconf 2.57,
 
14053
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
14054
 
 
14055
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
14056
Free Software Foundation, Inc.
 
14057
This config.status script is free software; the Free Software Foundation
 
14058
gives unlimited permission to copy, distribute and modify it."
 
14059
srcdir=$srcdir
 
14060
INSTALL="$INSTALL"
 
14061
_ACEOF
 
14062
 
 
14063
cat >>$CONFIG_STATUS <<\_ACEOF
 
14064
# If no file are specified by the user, then we need to provide default
 
14065
# value.  By we need to know if files were specified by the user.
 
14066
ac_need_defaults=:
 
14067
while test $# != 0
 
14068
do
 
14069
  case $1 in
 
14070
  --*=*)
 
14071
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
14072
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
14073
    ac_shift=:
 
14074
    ;;
 
14075
  -*)
 
14076
    ac_option=$1
 
14077
    ac_optarg=$2
 
14078
    ac_shift=shift
 
14079
    ;;
 
14080
  *) # This is not an option, so the user has probably given explicit
 
14081
     # arguments.
 
14082
     ac_option=$1
 
14083
     ac_need_defaults=false;;
 
14084
  esac
 
14085
 
 
14086
  case $ac_option in
 
14087
  # Handling of the options.
 
14088
_ACEOF
 
14089
cat >>$CONFIG_STATUS <<\_ACEOF
 
14090
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
14091
    ac_cs_recheck=: ;;
 
14092
  --version | --vers* | -V )
 
14093
    echo "$ac_cs_version"; exit 0 ;;
 
14094
  --he | --h)
 
14095
    # Conflict between --help and --header
 
14096
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
14097
Try \`$0 --help' for more information." >&5
 
14098
echo "$as_me: error: ambiguous option: $1
 
14099
Try \`$0 --help' for more information." >&2;}
 
14100
   { (exit 1); exit 1; }; };;
 
14101
  --help | --hel | -h )
 
14102
    echo "$ac_cs_usage"; exit 0 ;;
 
14103
  --debug | --d* | -d )
 
14104
    debug=: ;;
 
14105
  --file | --fil | --fi | --f )
 
14106
    $ac_shift
 
14107
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
14108
    ac_need_defaults=false;;
 
14109
  --header | --heade | --head | --hea )
 
14110
    $ac_shift
 
14111
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
14112
    ac_need_defaults=false;;
 
14113
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
14114
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
14115
    ac_cs_silent=: ;;
 
14116
 
 
14117
  # This is an error.
 
14118
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
14119
Try \`$0 --help' for more information." >&5
 
14120
echo "$as_me: error: unrecognized option: $1
 
14121
Try \`$0 --help' for more information." >&2;}
 
14122
   { (exit 1); exit 1; }; } ;;
 
14123
 
 
14124
  *) ac_config_targets="$ac_config_targets $1" ;;
 
14125
 
 
14126
  esac
 
14127
  shift
 
14128
done
 
14129
 
 
14130
ac_configure_extra_args=
 
14131
 
 
14132
if $ac_cs_silent; then
 
14133
  exec 6>/dev/null
 
14134
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
14135
fi
 
14136
 
 
14137
_ACEOF
 
14138
cat >>$CONFIG_STATUS <<_ACEOF
 
14139
if \$ac_cs_recheck; then
 
14140
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
14141
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14142
fi
 
14143
 
 
14144
_ACEOF
 
14145
 
 
14146
cat >>$CONFIG_STATUS <<_ACEOF
 
14147
#
 
14148
# INIT-COMMANDS section.
 
14149
#
 
14150
 
 
14151
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
14152
 
 
14153
_ACEOF
 
14154
 
 
14155
 
 
14156
 
 
14157
cat >>$CONFIG_STATUS <<\_ACEOF
 
14158
for ac_config_target in $ac_config_targets
 
14159
do
 
14160
  case "$ac_config_target" in
 
14161
  # Handling of arguments.
 
14162
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
14163
  "subst" ) CONFIG_FILES="$CONFIG_FILES subst" ;;
 
14164
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
14165
  "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
 
14166
  "plugins-scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/Makefile" ;;
 
14167
  "plugins-scripts/subst" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/subst" ;;
 
14168
  "plugins-scripts/utils.pm" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/utils.pm" ;;
 
14169
  "plugins-scripts/utils.sh" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/utils.sh" ;;
 
14170
  "command.cfg" ) CONFIG_FILES="$CONFIG_FILES command.cfg" ;;
 
14171
  "test.pl" ) CONFIG_FILES="$CONFIG_FILES test.pl" ;;
 
14172
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14173
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
14174
  "plugins/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/config.h" ;;
 
14175
  "plugins/common.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/common.h" ;;
 
14176
  "plugins/version.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/version.h" ;;
 
14177
  "plugins/netutils.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/netutils.h" ;;
 
14178
  "plugins/utils.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/utils.h" ;;
 
14179
  "plugins/popen.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/popen.h" ;;
 
14180
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
14181
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
14182
   { (exit 1); exit 1; }; };;
 
14183
  esac
 
14184
done
 
14185
 
 
14186
# If the user did not use the arguments to specify the items to instantiate,
 
14187
# then the envvar interface is used.  Set only those that are not.
 
14188
# We use the long form for the default assignment because of an extremely
 
14189
# bizarre bug on SunOS 4.1.3.
 
14190
if $ac_need_defaults; then
 
14191
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
14192
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
14193
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
14194
fi
 
14195
 
 
14196
# Have a temporary directory for convenience.  Make it in the build tree
 
14197
# simply because there is no reason to put it here, and in addition,
 
14198
# creating and moving files from /tmp can sometimes cause problems.
 
14199
# Create a temporary directory, and hook for its removal unless debugging.
 
14200
$debug ||
 
14201
{
 
14202
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
14203
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
14204
}
 
14205
 
 
14206
# Create a (secure) tmp directory for tmp files.
 
14207
 
 
14208
{
 
14209
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
14210
  test -n "$tmp" && test -d "$tmp"
 
14211
}  ||
 
14212
{
 
14213
  tmp=./confstat$$-$RANDOM
 
14214
  (umask 077 && mkdir $tmp)
 
14215
} ||
 
14216
{
 
14217
   echo "$me: cannot create a temporary directory in ." >&2
 
14218
   { (exit 1); exit 1; }
 
14219
}
 
14220
 
 
14221
_ACEOF
 
14222
 
 
14223
cat >>$CONFIG_STATUS <<_ACEOF
 
14224
 
 
14225
#
 
14226
# CONFIG_FILES section.
 
14227
#
 
14228
 
 
14229
# No need to generate the scripts if there are no CONFIG_FILES.
 
14230
# This happens for instance when ./config.status config.h
 
14231
if test -n "\$CONFIG_FILES"; then
 
14232
  # Protect against being on the right side of a sed subst in config.status.
 
14233
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
14234
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
14235
s,@SHELL@,$SHELL,;t t
 
14236
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
14237
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
14238
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
14239
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
14240
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
14241
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
14242
s,@exec_prefix@,$exec_prefix,;t t
 
14243
s,@prefix@,$prefix,;t t
 
14244
s,@program_transform_name@,$program_transform_name,;t t
 
14245
s,@bindir@,$bindir,;t t
 
14246
s,@sbindir@,$sbindir,;t t
 
14247
s,@libexecdir@,$libexecdir,;t t
 
14248
s,@datadir@,$datadir,;t t
 
14249
s,@sysconfdir@,$sysconfdir,;t t
 
14250
s,@sharedstatedir@,$sharedstatedir,;t t
 
14251
s,@localstatedir@,$localstatedir,;t t
 
14252
s,@libdir@,$libdir,;t t
 
14253
s,@includedir@,$includedir,;t t
 
14254
s,@oldincludedir@,$oldincludedir,;t t
 
14255
s,@infodir@,$infodir,;t t
 
14256
s,@mandir@,$mandir,;t t
 
14257
s,@build_alias@,$build_alias,;t t
 
14258
s,@host_alias@,$host_alias,;t t
 
14259
s,@target_alias@,$target_alias,;t t
 
14260
s,@DEFS@,$DEFS,;t t
 
14261
s,@ECHO_C@,$ECHO_C,;t t
 
14262
s,@ECHO_N@,$ECHO_N,;t t
 
14263
s,@ECHO_T@,$ECHO_T,;t t
 
14264
s,@LIBS@,$LIBS,;t t
 
14265
s,@VER@,$VER,;t t
 
14266
s,@REL@,$REL,;t t
 
14267
s,@PACKAGE_RELEASE@,$PACKAGE_RELEASE,;t t
 
14268
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
14269
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
14270
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
14271
s,@PACKAGE@,$PACKAGE,;t t
 
14272
s,@VERSION@,$VERSION,;t t
 
14273
s,@ACLOCAL@,$ACLOCAL,;t t
 
14274
s,@AUTOCONF@,$AUTOCONF,;t t
 
14275
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
14276
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
14277
s,@MAKEINFO@,$MAKEINFO,;t t
 
14278
s,@AMTAR@,$AMTAR,;t t
 
14279
s,@install_sh@,$install_sh,;t t
 
14280
s,@STRIP@,$STRIP,;t t
 
14281
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
14282
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
14283
s,@AWK@,$AWK,;t t
 
14284
s,@SET_MAKE@,$SET_MAKE,;t t
 
14285
s,@INSTALL@,$INSTALL,;t t
 
14286
s,@CC@,$CC,;t t
 
14287
s,@CFLAGS@,$CFLAGS,;t t
 
14288
s,@LDFLAGS@,$LDFLAGS,;t t
 
14289
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
14290
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
14291
s,@EXEEXT@,$EXEEXT,;t t
 
14292
s,@OBJEXT@,$OBJEXT,;t t
 
14293
s,@DEPDIR@,$DEPDIR,;t t
 
14294
s,@am__include@,$am__include,;t t
 
14295
s,@am__quote@,$am__quote,;t t
 
14296
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
14297
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
14298
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
14299
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
14300
s,@LIBOBJS@,$LIBOBJS,;t t
 
14301
s,@CPP@,$CPP,;t t
 
14302
s,@EGREP@,$EGREP,;t t
 
14303
s,@NEED_SETGID@,$NEED_SETGID,;t t
 
14304
s,@KMEM_GROUP@,$KMEM_GROUP,;t t
 
14305
s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
 
14306
s,@POW_LIB@,$POW_LIB,;t t
 
14307
s,@RANLIB@,$RANLIB,;t t
 
14308
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
14309
s,@PLUGIN_TEST@,$PLUGIN_TEST,;t t
 
14310
s,@SCRIPT_TEST@,$SCRIPT_TEST,;t t
 
14311
s,@WARRANTY@,$WARRANTY,;t t
 
14312
s,@SUPPORT@,$SUPPORT,;t t
 
14313
s,@nagios_usr@,$nagios_usr,;t t
 
14314
s,@nagios_grp@,$nagios_grp,;t t
 
14315
s,@INSTALL_OPTS@,$INSTALL_OPTS,;t t
 
14316
s,@trusted_path@,$trusted_path,;t t
 
14317
s,@PYTHON@,$PYTHON,;t t
 
14318
s,@PERL@,$PERL,;t t
 
14319
s,@SH@,$SH,;t t
 
14320
s,@HOSTNAME@,$HOSTNAME,;t t
 
14321
s,@BASENAME@,$BASENAME,;t t
 
14322
s,@SOCKETLIBS@,$SOCKETLIBS,;t t
 
14323
s,@PGLIBS@,$PGLIBS,;t t
 
14324
s,@PGINCLUDE@,$PGINCLUDE,;t t
 
14325
s,@RADIUSLIBS@,$RADIUSLIBS,;t t
 
14326
s,@LDAPLIBS@,$LDAPLIBS,;t t
 
14327
s,@LDAPINCLUDE@,$LDAPINCLUDE,;t t
 
14328
s,@MYSQLINCLUDE@,$MYSQLINCLUDE,;t t
 
14329
s,@MYSQLLIBS@,$MYSQLLIBS,;t t
 
14330
s,@check_mysql_LDFLAGS@,$check_mysql_LDFLAGS,;t t
 
14331
s,@OPENSSL@,$OPENSSL,;t t
 
14332
s,@KRBINCLUDE@,$KRBINCLUDE,;t t
 
14333
s,@SSLINCLUDE@,$SSLINCLUDE,;t t
 
14334
s,@check_tcp_ssl@,$check_tcp_ssl,;t t
 
14335
s,@SSLLIBS@,$SSLLIBS,;t t
 
14336
s,@PATH_TO_PS@,$PATH_TO_PS,;t t
 
14337
s,@PATH_TO_DF@,$PATH_TO_DF,;t t
 
14338
s,@PATH_TO_PING@,$PATH_TO_PING,;t t
 
14339
s,@PATH_TO_NSLOOKUP@,$PATH_TO_NSLOOKUP,;t t
 
14340
s,@PATH_TO_HOST@,$PATH_TO_HOST,;t t
 
14341
s,@PATH_TO_UPTIME@,$PATH_TO_UPTIME,;t t
 
14342
s,@PATH_TO_RPCINFO@,$PATH_TO_RPCINFO,;t t
 
14343
s,@PATH_TO_NTPDATE@,$PATH_TO_NTPDATE,;t t
 
14344
s,@PATH_TO_NTPDC@,$PATH_TO_NTPDC,;t t
 
14345
s,@PATH_TO_NTPQ@,$PATH_TO_NTPQ,;t t
 
14346
s,@PATH_TO_LMSTAT@,$PATH_TO_LMSTAT,;t t
 
14347
s,@PATH_TO_SMBCLIENT@,$PATH_TO_SMBCLIENT,;t t
 
14348
s,@PATH_TO_WHO@,$PATH_TO_WHO,;t t
 
14349
s,@PATH_TO_SNMPGET@,$PATH_TO_SNMPGET,;t t
 
14350
s,@PATH_TO_SNMPGETNEXT@,$PATH_TO_SNMPGETNEXT,;t t
 
14351
s,@PATH_TO_QUAKESTAT@,$PATH_TO_QUAKESTAT,;t t
 
14352
s,@PATH_TO_QSTAT@,$PATH_TO_QSTAT,;t t
 
14353
s,@PATH_TO_FPING@,$PATH_TO_FPING,;t t
 
14354
s,@PATH_TO_SSH@,$PATH_TO_SSH,;t t
 
14355
s,@PATH_TO_MAILQ@,$PATH_TO_MAILQ,;t t
 
14356
s,@PATH_TO_SWAP@,$PATH_TO_SWAP,;t t
 
14357
s,@PATH_TO_DIG@,$PATH_TO_DIG,;t t
 
14358
s,@NEED_VA_LIST@,$NEED_VA_LIST,;t t
 
14359
s,@EXTRAS@,$EXTRAS,;t t
 
14360
s,@DEPLIBS@,$DEPLIBS,;t t
 
14361
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
14362
CEOF
 
14363
 
 
14364
_ACEOF
 
14365
 
 
14366
  cat >>$CONFIG_STATUS <<\_ACEOF
 
14367
  # Split the substitutions into bite-sized pieces for seds with
 
14368
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
14369
  ac_max_sed_lines=48
 
14370
  ac_sed_frag=1 # Number of current file.
 
14371
  ac_beg=1 # First line for current file.
 
14372
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
14373
  ac_more_lines=:
 
14374
  ac_sed_cmds=
 
14375
  while $ac_more_lines; do
 
14376
    if test $ac_beg -gt 1; then
 
14377
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
14378
    else
 
14379
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
14380
    fi
 
14381
    if test ! -s $tmp/subs.frag; then
 
14382
      ac_more_lines=false
 
14383
    else
 
14384
      # The purpose of the label and of the branching condition is to
 
14385
      # speed up the sed processing (if there are no `@' at all, there
 
14386
      # is no need to browse any of the substitutions).
 
14387
      # These are the two extra sed commands mentioned above.
 
14388
      (echo ':t
 
14389
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
14390
      if test -z "$ac_sed_cmds"; then
 
14391
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
14392
      else
 
14393
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
14394
      fi
 
14395
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
14396
      ac_beg=$ac_end
 
14397
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
14398
    fi
 
14399
  done
 
14400
  if test -z "$ac_sed_cmds"; then
 
14401
    ac_sed_cmds=cat
 
14402
  fi
 
14403
fi # test -n "$CONFIG_FILES"
 
14404
 
 
14405
_ACEOF
 
14406
cat >>$CONFIG_STATUS <<\_ACEOF
 
14407
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
14408
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
14409
  case $ac_file in
 
14410
  - | *:- | *:-:* ) # input from stdin
 
14411
        cat >$tmp/stdin
 
14412
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14413
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14414
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14415
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14416
  * )   ac_file_in=$ac_file.in ;;
 
14417
  esac
 
14418
 
 
14419
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
14420
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
14421
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14422
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14423
         X"$ac_file" : 'X\(//\)$' \| \
 
14424
         X"$ac_file" : 'X\(/\)' \| \
 
14425
         .     : '\(.\)' 2>/dev/null ||
 
14426
echo X"$ac_file" |
 
14427
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14428
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14429
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14430
          /^X\(\/\).*/{ s//\1/; q; }
 
14431
          s/.*/./; q'`
 
14432
  { if $as_mkdir_p; then
 
14433
    mkdir -p "$ac_dir"
 
14434
  else
 
14435
    as_dir="$ac_dir"
 
14436
    as_dirs=
 
14437
    while test ! -d "$as_dir"; do
 
14438
      as_dirs="$as_dir $as_dirs"
 
14439
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
14440
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14441
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14442
         X"$as_dir" : 'X\(//\)$' \| \
 
14443
         X"$as_dir" : 'X\(/\)' \| \
 
14444
         .     : '\(.\)' 2>/dev/null ||
 
14445
echo X"$as_dir" |
 
14446
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14447
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14448
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14449
          /^X\(\/\).*/{ s//\1/; q; }
 
14450
          s/.*/./; q'`
 
14451
    done
 
14452
    test ! -n "$as_dirs" || mkdir $as_dirs
 
14453
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
14454
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
14455
   { (exit 1); exit 1; }; }; }
 
14456
 
 
14457
  ac_builddir=.
 
14458
 
 
14459
if test "$ac_dir" != .; then
 
14460
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
14461
  # A "../" for each directory in $ac_dir_suffix.
 
14462
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
14463
else
 
14464
  ac_dir_suffix= ac_top_builddir=
 
14465
fi
 
14466
 
 
14467
case $srcdir in
 
14468
  .)  # No --srcdir option.  We are building in place.
 
14469
    ac_srcdir=.
 
14470
    if test -z "$ac_top_builddir"; then
 
14471
       ac_top_srcdir=.
 
14472
    else
 
14473
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
14474
    fi ;;
 
14475
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
14476
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14477
    ac_top_srcdir=$srcdir ;;
 
14478
  *) # Relative path.
 
14479
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
14480
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
14481
esac
 
14482
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
14483
# absolute.
 
14484
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
14485
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
14486
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
14487
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
14488
 
 
14489
 
 
14490
  case $INSTALL in
 
14491
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14492
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
14493
  esac
 
14494
 
 
14495
  if test x"$ac_file" != x-; then
 
14496
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
14497
echo "$as_me: creating $ac_file" >&6;}
 
14498
    rm -f "$ac_file"
 
14499
  fi
 
14500
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14501
  # use $as_me), people would be surprised to read:
 
14502
  #    /* config.h.  Generated by config.status.  */
 
14503
  if test x"$ac_file" = x-; then
 
14504
    configure_input=
 
14505
  else
 
14506
    configure_input="$ac_file.  "
 
14507
  fi
 
14508
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
14509
                                     sed 's,.*/,,'` by configure."
 
14510
 
 
14511
  # First look for the input files in the build tree, otherwise in the
 
14512
  # src tree.
 
14513
  ac_file_inputs=`IFS=:
 
14514
    for f in $ac_file_in; do
 
14515
      case $f in
 
14516
      -) echo $tmp/stdin ;;
 
14517
      [\\/$]*)
 
14518
         # Absolute (can't be DOS-style, as IFS=:)
 
14519
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
14520
echo "$as_me: error: cannot find input file: $f" >&2;}
 
14521
   { (exit 1); exit 1; }; }
 
14522
         echo $f;;
 
14523
      *) # Relative
 
14524
         if test -f "$f"; then
 
14525
           # Build tree
 
14526
           echo $f
 
14527
         elif test -f "$srcdir/$f"; then
 
14528
           # Source tree
 
14529
           echo $srcdir/$f
 
14530
         else
 
14531
           # /dev/null tree
 
14532
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
14533
echo "$as_me: error: cannot find input file: $f" >&2;}
 
14534
   { (exit 1); exit 1; }; }
 
14535
         fi;;
 
14536
      esac
 
14537
    done` || { (exit 1); exit 1; }
 
14538
_ACEOF
 
14539
cat >>$CONFIG_STATUS <<_ACEOF
 
14540
  sed "$ac_vpsub
 
14541
$extrasub
 
14542
_ACEOF
 
14543
cat >>$CONFIG_STATUS <<\_ACEOF
 
14544
:t
 
14545
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14546
s,@configure_input@,$configure_input,;t t
 
14547
s,@srcdir@,$ac_srcdir,;t t
 
14548
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
14549
s,@top_srcdir@,$ac_top_srcdir,;t t
 
14550
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
14551
s,@builddir@,$ac_builddir,;t t
 
14552
s,@abs_builddir@,$ac_abs_builddir,;t t
 
14553
s,@top_builddir@,$ac_top_builddir,;t t
 
14554
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
14555
s,@INSTALL@,$ac_INSTALL,;t t
 
14556
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
14557
  rm -f $tmp/stdin
 
14558
  if test x"$ac_file" != x-; then
 
14559
    mv $tmp/out $ac_file
 
14560
  else
 
14561
    cat $tmp/out
 
14562
    rm -f $tmp/out
 
14563
  fi
 
14564
 
 
14565
done
 
14566
_ACEOF
 
14567
cat >>$CONFIG_STATUS <<\_ACEOF
 
14568
 
 
14569
#
 
14570
# CONFIG_HEADER section.
 
14571
#
 
14572
 
 
14573
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
14574
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
14575
#
 
14576
# ac_d sets the value in "#define NAME VALUE" lines.
 
14577
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
14578
ac_dB='[        ].*$,\1#\2'
 
14579
ac_dC=' '
 
14580
ac_dD=',;t'
 
14581
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
14582
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
14583
ac_uB='$,\1#\2define\3'
 
14584
ac_uC=' '
 
14585
ac_uD=',;t'
 
14586
 
 
14587
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
14588
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
14589
  case $ac_file in
 
14590
  - | *:- | *:-:* ) # input from stdin
 
14591
        cat >$tmp/stdin
 
14592
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14593
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14594
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14595
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14596
  * )   ac_file_in=$ac_file.in ;;
 
14597
  esac
 
14598
 
 
14599
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
14600
echo "$as_me: creating $ac_file" >&6;}
 
14601
 
 
14602
  # First look for the input files in the build tree, otherwise in the
 
14603
  # src tree.
 
14604
  ac_file_inputs=`IFS=:
 
14605
    for f in $ac_file_in; do
 
14606
      case $f in
 
14607
      -) echo $tmp/stdin ;;
 
14608
      [\\/$]*)
 
14609
         # Absolute (can't be DOS-style, as IFS=:)
 
14610
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
14611
echo "$as_me: error: cannot find input file: $f" >&2;}
 
14612
   { (exit 1); exit 1; }; }
 
14613
         echo $f;;
 
14614
      *) # Relative
 
14615
         if test -f "$f"; then
 
14616
           # Build tree
 
14617
           echo $f
 
14618
         elif test -f "$srcdir/$f"; then
 
14619
           # Source tree
 
14620
           echo $srcdir/$f
 
14621
         else
 
14622
           # /dev/null tree
 
14623
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
14624
echo "$as_me: error: cannot find input file: $f" >&2;}
 
14625
   { (exit 1); exit 1; }; }
 
14626
         fi;;
 
14627
      esac
 
14628
    done` || { (exit 1); exit 1; }
 
14629
  # Remove the trailing spaces.
 
14630
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
14631
 
 
14632
_ACEOF
 
14633
 
 
14634
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
14635
# `conftest.undefs', that substitutes the proper values into
 
14636
# config.h.in to produce config.h.  The first handles `#define'
 
14637
# templates, and the second `#undef' templates.
 
14638
# And first: Protect against being on the right side of a sed subst in
 
14639
# config.status.  Protect against being in an unquoted here document
 
14640
# in config.status.
 
14641
rm -f conftest.defines conftest.undefs
 
14642
# Using a here document instead of a string reduces the quoting nightmare.
 
14643
# Putting comments in sed scripts is not portable.
 
14644
#
 
14645
# `end' is used to avoid that the second main sed command (meant for
 
14646
# 0-ary CPP macros) applies to n-ary macro definitions.
 
14647
# See the Autoconf documentation for `clear'.
 
14648
cat >confdef2sed.sed <<\_ACEOF
 
14649
s/[\\&,]/\\&/g
 
14650
s,[\\$`],\\&,g
 
14651
t clear
 
14652
: clear
 
14653
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
14654
t end
 
14655
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
14656
: end
 
14657
_ACEOF
 
14658
# If some macros were called several times there might be several times
 
14659
# the same #defines, which is useless.  Nevertheless, we may not want to
 
14660
# sort them, since we want the *last* AC-DEFINE to be honored.
 
14661
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
14662
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
14663
rm -f confdef2sed.sed
 
14664
 
 
14665
# This sed command replaces #undef with comments.  This is necessary, for
 
14666
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
14667
# on some systems where configure will not decide to define it.
 
14668
cat >>conftest.undefs <<\_ACEOF
 
14669
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
14670
_ACEOF
 
14671
 
 
14672
# Break up conftest.defines because some shells have a limit on the size
 
14673
# of here documents, and old seds have small limits too (100 cmds).
 
14674
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
14675
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
14676
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
14677
echo '  :' >>$CONFIG_STATUS
 
14678
rm -f conftest.tail
 
14679
while grep . conftest.defines >/dev/null
 
14680
do
 
14681
  # Write a limited-size here document to $tmp/defines.sed.
 
14682
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
14683
  # Speed up: don't consider the non `#define' lines.
 
14684
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
14685
  # Work around the forget-to-reset-the-flag bug.
 
14686
  echo 't clr' >>$CONFIG_STATUS
 
14687
  echo ': clr' >>$CONFIG_STATUS
 
14688
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
14689
  echo 'CEOF
 
14690
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
14691
  rm -f $tmp/in
 
14692
  mv $tmp/out $tmp/in
 
14693
' >>$CONFIG_STATUS
 
14694
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
14695
  rm -f conftest.defines
 
14696
  mv conftest.tail conftest.defines
 
14697
done
 
14698
rm -f conftest.defines
 
14699
echo '  fi # grep' >>$CONFIG_STATUS
 
14700
echo >>$CONFIG_STATUS
 
14701
 
 
14702
# Break up conftest.undefs because some shells have a limit on the size
 
14703
# of here documents, and old seds have small limits too (100 cmds).
 
14704
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
14705
rm -f conftest.tail
 
14706
while grep . conftest.undefs >/dev/null
 
14707
do
 
14708
  # Write a limited-size here document to $tmp/undefs.sed.
 
14709
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
14710
  # Speed up: don't consider the non `#undef'
 
14711
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
14712
  # Work around the forget-to-reset-the-flag bug.
 
14713
  echo 't clr' >>$CONFIG_STATUS
 
14714
  echo ': clr' >>$CONFIG_STATUS
 
14715
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
14716
  echo 'CEOF
 
14717
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
14718
  rm -f $tmp/in
 
14719
  mv $tmp/out $tmp/in
 
14720
' >>$CONFIG_STATUS
 
14721
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
14722
  rm -f conftest.undefs
 
14723
  mv conftest.tail conftest.undefs
 
14724
done
 
14725
rm -f conftest.undefs
 
14726
 
 
14727
cat >>$CONFIG_STATUS <<\_ACEOF
 
14728
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14729
  # use $as_me), people would be surprised to read:
 
14730
  #    /* config.h.  Generated by config.status.  */
 
14731
  if test x"$ac_file" = x-; then
 
14732
    echo "/* Generated by configure.  */" >$tmp/config.h
 
14733
  else
 
14734
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
14735
  fi
 
14736
  cat $tmp/in >>$tmp/config.h
 
14737
  rm -f $tmp/in
 
14738
  if test x"$ac_file" != x-; then
 
14739
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
14740
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
14741
echo "$as_me: $ac_file is unchanged" >&6;}
 
14742
    else
 
14743
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
14744
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14745
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14746
         X"$ac_file" : 'X\(//\)$' \| \
 
14747
         X"$ac_file" : 'X\(/\)' \| \
 
14748
         .     : '\(.\)' 2>/dev/null ||
 
14749
echo X"$ac_file" |
 
14750
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14751
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14752
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14753
          /^X\(\/\).*/{ s//\1/; q; }
 
14754
          s/.*/./; q'`
 
14755
      { if $as_mkdir_p; then
 
14756
    mkdir -p "$ac_dir"
 
14757
  else
 
14758
    as_dir="$ac_dir"
 
14759
    as_dirs=
 
14760
    while test ! -d "$as_dir"; do
 
14761
      as_dirs="$as_dir $as_dirs"
 
14762
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
14763
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14764
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14765
         X"$as_dir" : 'X\(//\)$' \| \
 
14766
         X"$as_dir" : 'X\(/\)' \| \
 
14767
         .     : '\(.\)' 2>/dev/null ||
 
14768
echo X"$as_dir" |
 
14769
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14770
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14771
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14772
          /^X\(\/\).*/{ s//\1/; q; }
 
14773
          s/.*/./; q'`
 
14774
    done
 
14775
    test ! -n "$as_dirs" || mkdir $as_dirs
 
14776
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
14777
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
14778
   { (exit 1); exit 1; }; }; }
 
14779
 
 
14780
      rm -f $ac_file
 
14781
      mv $tmp/config.h $ac_file
 
14782
    fi
 
14783
  else
 
14784
    cat $tmp/config.h
 
14785
    rm -f $tmp/config.h
 
14786
  fi
 
14787
  # Run the commands associated with the file.
 
14788
  case $ac_file in
 
14789
    plugins/config.h ) # update the timestamp
 
14790
echo 'timestamp for plugins/config.h' >"plugins/stamp-h1"
 
14791
 ;;
 
14792
    plugins/common.h ) # update the timestamp
 
14793
echo 'timestamp for plugins/common.h' >"plugins/stamp-h2"
 
14794
 ;;
 
14795
    plugins/version.h ) # update the timestamp
 
14796
echo 'timestamp for plugins/version.h' >"plugins/stamp-h3"
 
14797
 ;;
 
14798
    plugins/netutils.h ) # update the timestamp
 
14799
echo 'timestamp for plugins/netutils.h' >"plugins/stamp-h4"
 
14800
 ;;
 
14801
    plugins/utils.h ) # update the timestamp
 
14802
echo 'timestamp for plugins/utils.h' >"plugins/stamp-h5"
 
14803
 ;;
 
14804
    plugins/popen.h ) # update the timestamp
 
14805
echo 'timestamp for plugins/popen.h' >"plugins/stamp-h6"
 
14806
 ;;
 
14807
  esac
 
14808
done
 
14809
_ACEOF
 
14810
cat >>$CONFIG_STATUS <<\_ACEOF
 
14811
 
 
14812
#
 
14813
# CONFIG_COMMANDS section.
 
14814
#
 
14815
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
14816
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
14817
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14818
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
14819
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14820
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
14821
         X"$ac_dest" : 'X\(//\)$' \| \
 
14822
         X"$ac_dest" : 'X\(/\)' \| \
 
14823
         .     : '\(.\)' 2>/dev/null ||
 
14824
echo X"$ac_dest" |
 
14825
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14826
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14827
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14828
          /^X\(\/\).*/{ s//\1/; q; }
 
14829
          s/.*/./; q'`
 
14830
  ac_builddir=.
 
14831
 
 
14832
if test "$ac_dir" != .; then
 
14833
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
14834
  # A "../" for each directory in $ac_dir_suffix.
 
14835
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
14836
else
 
14837
  ac_dir_suffix= ac_top_builddir=
 
14838
fi
 
14839
 
 
14840
case $srcdir in
 
14841
  .)  # No --srcdir option.  We are building in place.
 
14842
    ac_srcdir=.
 
14843
    if test -z "$ac_top_builddir"; then
 
14844
       ac_top_srcdir=.
 
14845
    else
 
14846
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
14847
    fi ;;
 
14848
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
14849
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14850
    ac_top_srcdir=$srcdir ;;
 
14851
  *) # Relative path.
 
14852
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
14853
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
14854
esac
 
14855
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
14856
# absolute.
 
14857
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
14858
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
14859
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
14860
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
14861
 
 
14862
 
 
14863
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
14864
echo "$as_me: executing $ac_dest commands" >&6;}
 
14865
  case $ac_dest in
 
14866
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
14867
  # Strip MF so we end up with the name of the file.
 
14868
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
14869
  # Check whether this is an Automake generated Makefile or not.
 
14870
  # We used to match only the files named `Makefile.in', but
 
14871
  # some people rename them; so instead we look at the file content.
 
14872
  # Grep'ing the first line is not enough: some people post-process
 
14873
  # each Makefile.in and add a new line on top of each file to say so.
 
14874
  # So let's grep whole file.
 
14875
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
14876
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
14877
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14878
         X"$mf" : 'X\(//\)[^/]' \| \
 
14879
         X"$mf" : 'X\(//\)$' \| \
 
14880
         X"$mf" : 'X\(/\)' \| \
 
14881
         .     : '\(.\)' 2>/dev/null ||
 
14882
echo X"$mf" |
 
14883
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14884
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14885
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14886
          /^X\(\/\).*/{ s//\1/; q; }
 
14887
          s/.*/./; q'`
 
14888
  else
 
14889
    continue
 
14890
  fi
 
14891
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
14892
  # Extract the definition of DEP_FILES from the Makefile without
 
14893
  # running `make'.
 
14894
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
14895
  test -z "$DEPDIR" && continue
 
14896
  # When using ansi2knr, U may be empty or an underscore; expand it
 
14897
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
14898
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
14899
  # We invoke sed twice because it is the simplest approach to
 
14900
  # changing $(DEPDIR) to its actual value in the expansion.
 
14901
  for file in `sed -n -e '
 
14902
    /^DEP_FILES = .*\\\\$/ {
 
14903
      s/^DEP_FILES = //
 
14904
      :loop
 
14905
        s/\\\\$//
 
14906
        p
 
14907
        n
 
14908
        /\\\\$/ b loop
 
14909
      p
 
14910
    }
 
14911
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
14912
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
14913
    # Make sure the directory exists.
 
14914
    test -f "$dirpart/$file" && continue
 
14915
    fdir=`(dirname "$file") 2>/dev/null ||
 
14916
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14917
         X"$file" : 'X\(//\)[^/]' \| \
 
14918
         X"$file" : 'X\(//\)$' \| \
 
14919
         X"$file" : 'X\(/\)' \| \
 
14920
         .     : '\(.\)' 2>/dev/null ||
 
14921
echo X"$file" |
 
14922
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14923
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14924
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14925
          /^X\(\/\).*/{ s//\1/; q; }
 
14926
          s/.*/./; q'`
 
14927
    { if $as_mkdir_p; then
 
14928
    mkdir -p $dirpart/$fdir
 
14929
  else
 
14930
    as_dir=$dirpart/$fdir
 
14931
    as_dirs=
 
14932
    while test ! -d "$as_dir"; do
 
14933
      as_dirs="$as_dir $as_dirs"
 
14934
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
14935
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14936
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14937
         X"$as_dir" : 'X\(//\)$' \| \
 
14938
         X"$as_dir" : 'X\(/\)' \| \
 
14939
         .     : '\(.\)' 2>/dev/null ||
 
14940
echo X"$as_dir" |
 
14941
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14942
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14943
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14944
          /^X\(\/\).*/{ s//\1/; q; }
 
14945
          s/.*/./; q'`
 
14946
    done
 
14947
    test ! -n "$as_dirs" || mkdir $as_dirs
 
14948
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
14949
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
14950
   { (exit 1); exit 1; }; }; }
 
14951
 
 
14952
    # echo "creating $dirpart/$file"
 
14953
    echo '# dummy' > "$dirpart/$file"
 
14954
  done
 
14955
done
 
14956
 ;;
 
14957
    default ) echo timestamp > plugins/stamp-h1;echo timestamp > plugins/stamp-h2;echo timestamp > plugins/stamp-h3;echo timestamp > plugins/stamp-h4;echo timestamp > plugins/stamp-h5;echo timestamp > plugins/stamp-h6;PATH=.:..:$PATH subst.sh command.cfg ;;
 
14958
  esac
 
14959
done
 
14960
_ACEOF
 
14961
 
 
14962
cat >>$CONFIG_STATUS <<\_ACEOF
 
14963
 
 
14964
{ (exit 0); exit 0; }
 
14965
_ACEOF
 
14966
chmod +x $CONFIG_STATUS
 
14967
ac_clean_files=$ac_clean_files_save
 
14968
 
 
14969
 
 
14970
# configure is writing to config.log, and then calls config.status.
 
14971
# config.status does its own redirection, appending to config.log.
 
14972
# Unfortunately, on DOS this fails, as config.log is still kept open
 
14973
# by configure, so config.status won't be able to write to it; its
 
14974
# output is simply discarded.  So we exec the FD to /dev/null,
 
14975
# effectively closing config.log, so it can be properly (re)opened and
 
14976
# appended to by config.status.  When coming back to configure, we
 
14977
# need to make the FD available again.
 
14978
if test "$no_create" != yes; then
 
14979
  ac_cs_success=:
 
14980
  ac_config_status_args=
 
14981
  test "$silent" = yes &&
 
14982
    ac_config_status_args="$ac_config_status_args --quiet"
 
14983
  exec 5>/dev/null
 
14984
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
14985
  exec 5>>config.log
 
14986
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
14987
  # would make configure fail if this is the last instruction.
 
14988
  $ac_cs_success || { (exit 1); exit 1; }
 
14989
fi
 
14990