~ubuntu-branches/ubuntu/karmic/openvas-server/karmic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Javier Fernandez-Sanguino Pen~a
  • Date: 2009-01-02 01:38:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090102013847-74xy2uo1e3hovqjo
Tags: 2.0.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
 
2
# From configure.in Revision: 1773 .
3
3
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
4
# Generated by GNU Autoconf 2.61.
6
5
#
 
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
7
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
8
# This configure script is free software; the Free Software Foundation
8
9
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be more Bourne compatible
 
15
DUALCASE=1; export DUALCASE # for MKS sh
 
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
17
  emulate sh
 
18
  NULLCMD=:
 
19
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20
  # is contrary to our usage.  Disable this feature.
 
21
  alias -g '${1+"$@"}'='"$@"'
 
22
  setopt NO_GLOB_SUBST
 
23
else
 
24
  case `(set -o) 2>/dev/null` in
 
25
  *posix*) set -o posix ;;
 
26
esac
 
27
 
 
28
fi
 
29
 
 
30
 
 
31
 
 
32
 
 
33
# PATH needs CR
 
34
# Avoid depending upon Character Ranges.
 
35
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
36
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
37
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
38
as_cr_digits='0123456789'
 
39
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
40
 
 
41
# The user is always right.
 
42
if test "${PATH_SEPARATOR+set}" != set; then
 
43
  echo "#! /bin/sh" >conf$$.sh
 
44
  echo  "exit 0"   >>conf$$.sh
 
45
  chmod +x conf$$.sh
 
46
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
47
    PATH_SEPARATOR=';'
 
48
  else
 
49
    PATH_SEPARATOR=:
 
50
  fi
 
51
  rm -f conf$$.sh
 
52
fi
 
53
 
 
54
# Support unset when possible.
 
55
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
56
  as_unset=unset
 
57
else
 
58
  as_unset=false
 
59
fi
 
60
 
 
61
 
 
62
# IFS
 
63
# We need space, tab and new line, in precisely that order.  Quoting is
 
64
# there to prevent editors from complaining about space-tab.
 
65
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
66
# splitting by setting IFS to empty value.)
 
67
as_nl='
 
68
'
 
69
IFS=" ""        $as_nl"
 
70
 
 
71
# Find who we are.  Look in the path if we contain no directory separator.
 
72
case $0 in
 
73
  *[\\/]* ) as_myself=$0 ;;
 
74
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
75
for as_dir in $PATH
 
76
do
 
77
  IFS=$as_save_IFS
 
78
  test -z "$as_dir" && as_dir=.
 
79
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
80
done
 
81
IFS=$as_save_IFS
 
82
 
 
83
     ;;
 
84
esac
 
85
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
86
# in which case we are not to be found in the path.
 
87
if test "x$as_myself" = x; then
 
88
  as_myself=$0
 
89
fi
 
90
if test ! -f "$as_myself"; then
 
91
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
92
  { (exit 1); exit 1; }
 
93
fi
 
94
 
 
95
# Work around bugs in pre-3.0 UWIN ksh.
 
96
for as_var in ENV MAIL MAILPATH
 
97
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
98
done
 
99
PS1='$ '
 
100
PS2='> '
 
101
PS4='+ '
 
102
 
 
103
# NLS nuisances.
 
104
for as_var in \
 
105
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
106
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
107
  LC_TELEPHONE LC_TIME
 
108
do
 
109
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
110
    eval $as_var=C; export $as_var
 
111
  else
 
112
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
113
  fi
 
114
done
 
115
 
 
116
# Required to use basename.
 
117
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
118
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
119
  as_expr=expr
 
120
else
 
121
  as_expr=false
 
122
fi
 
123
 
 
124
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
125
  as_basename=basename
 
126
else
 
127
  as_basename=false
 
128
fi
 
129
 
 
130
 
 
131
# Name of the executable.
 
132
as_me=`$as_basename -- "$0" ||
 
133
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
134
         X"$0" : 'X\(//\)$' \| \
 
135
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
136
echo X/"$0" |
 
137
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
138
            s//\1/
 
139
            q
 
140
          }
 
141
          /^X\/\(\/\/\)$/{
 
142
            s//\1/
 
143
            q
 
144
          }
 
145
          /^X\/\(\/\).*/{
 
146
            s//\1/
 
147
            q
 
148
          }
 
149
          s/.*/./; q'`
 
150
 
 
151
# CDPATH.
 
152
$as_unset CDPATH
 
153
 
 
154
 
 
155
if test "x$CONFIG_SHELL" = x; then
 
156
  if (eval ":") 2>/dev/null; then
 
157
  as_have_required=yes
 
158
else
 
159
  as_have_required=no
 
160
fi
 
161
 
 
162
  if test $as_have_required = yes &&     (eval ":
 
163
(as_func_return () {
 
164
  (exit \$1)
 
165
}
 
166
as_func_success () {
 
167
  as_func_return 0
 
168
}
 
169
as_func_failure () {
 
170
  as_func_return 1
 
171
}
 
172
as_func_ret_success () {
 
173
  return 0
 
174
}
 
175
as_func_ret_failure () {
 
176
  return 1
 
177
}
 
178
 
 
179
exitcode=0
 
180
if as_func_success; then
 
181
  :
 
182
else
 
183
  exitcode=1
 
184
  echo as_func_success failed.
 
185
fi
 
186
 
 
187
if as_func_failure; then
 
188
  exitcode=1
 
189
  echo as_func_failure succeeded.
 
190
fi
 
191
 
 
192
if as_func_ret_success; then
 
193
  :
 
194
else
 
195
  exitcode=1
 
196
  echo as_func_ret_success failed.
 
197
fi
 
198
 
 
199
if as_func_ret_failure; then
 
200
  exitcode=1
 
201
  echo as_func_ret_failure succeeded.
 
202
fi
 
203
 
 
204
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
205
  :
 
206
else
 
207
  exitcode=1
 
208
  echo positional parameters were not saved.
 
209
fi
 
210
 
 
211
test \$exitcode = 0) || { (exit 1); exit 1; }
 
212
 
 
213
(
 
214
  as_lineno_1=\$LINENO
 
215
  as_lineno_2=\$LINENO
 
216
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
217
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
218
") 2> /dev/null; then
 
219
  :
 
220
else
 
221
  as_candidate_shells=
 
222
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
223
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
224
do
 
225
  IFS=$as_save_IFS
 
226
  test -z "$as_dir" && as_dir=.
 
227
  case $as_dir in
 
228
         /*)
 
229
           for as_base in sh bash ksh sh5; do
 
230
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
231
           done;;
 
232
       esac
 
233
done
 
234
IFS=$as_save_IFS
 
235
 
 
236
 
 
237
      for as_shell in $as_candidate_shells $SHELL; do
 
238
         # Try only shells that exist, to save several forks.
 
239
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
240
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
241
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
242
  emulate sh
 
243
  NULLCMD=:
 
244
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
245
  # is contrary to our usage.  Disable this feature.
 
246
  alias -g '${1+"$@"}'='"$@"'
 
247
  setopt NO_GLOB_SUBST
 
248
else
 
249
  case `(set -o) 2>/dev/null` in
 
250
  *posix*) set -o posix ;;
 
251
esac
 
252
 
 
253
fi
 
254
 
 
255
 
 
256
:
 
257
_ASEOF
 
258
}; then
 
259
  CONFIG_SHELL=$as_shell
 
260
               as_have_required=yes
 
261
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
262
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
263
  emulate sh
 
264
  NULLCMD=:
 
265
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
266
  # is contrary to our usage.  Disable this feature.
 
267
  alias -g '${1+"$@"}'='"$@"'
 
268
  setopt NO_GLOB_SUBST
 
269
else
 
270
  case `(set -o) 2>/dev/null` in
 
271
  *posix*) set -o posix ;;
 
272
esac
 
273
 
 
274
fi
 
275
 
 
276
 
 
277
:
 
278
(as_func_return () {
 
279
  (exit $1)
 
280
}
 
281
as_func_success () {
 
282
  as_func_return 0
 
283
}
 
284
as_func_failure () {
 
285
  as_func_return 1
 
286
}
 
287
as_func_ret_success () {
 
288
  return 0
 
289
}
 
290
as_func_ret_failure () {
 
291
  return 1
 
292
}
 
293
 
 
294
exitcode=0
 
295
if as_func_success; then
 
296
  :
 
297
else
 
298
  exitcode=1
 
299
  echo as_func_success failed.
 
300
fi
 
301
 
 
302
if as_func_failure; then
 
303
  exitcode=1
 
304
  echo as_func_failure succeeded.
 
305
fi
 
306
 
 
307
if as_func_ret_success; then
 
308
  :
 
309
else
 
310
  exitcode=1
 
311
  echo as_func_ret_success failed.
 
312
fi
 
313
 
 
314
if as_func_ret_failure; then
 
315
  exitcode=1
 
316
  echo as_func_ret_failure succeeded.
 
317
fi
 
318
 
 
319
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
320
  :
 
321
else
 
322
  exitcode=1
 
323
  echo positional parameters were not saved.
 
324
fi
 
325
 
 
326
test $exitcode = 0) || { (exit 1); exit 1; }
 
327
 
 
328
(
 
329
  as_lineno_1=$LINENO
 
330
  as_lineno_2=$LINENO
 
331
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
332
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
333
 
 
334
_ASEOF
 
335
}; then
 
336
  break
 
337
fi
 
338
 
 
339
fi
 
340
 
 
341
      done
 
342
 
 
343
      if test "x$CONFIG_SHELL" != x; then
 
344
  for as_var in BASH_ENV ENV
 
345
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
346
        done
 
347
        export CONFIG_SHELL
 
348
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
349
fi
 
350
 
 
351
 
 
352
    if test $as_have_required = no; then
 
353
  echo This script requires a shell more modern than all the
 
354
      echo shells that I found on your system.  Please install a
 
355
      echo modern shell, or manually run the script under such a
 
356
      echo shell if you do have one.
 
357
      { (exit 1); exit 1; }
 
358
fi
 
359
 
 
360
 
 
361
fi
 
362
 
 
363
fi
 
364
 
 
365
 
 
366
 
 
367
(eval "as_func_return () {
 
368
  (exit \$1)
 
369
}
 
370
as_func_success () {
 
371
  as_func_return 0
 
372
}
 
373
as_func_failure () {
 
374
  as_func_return 1
 
375
}
 
376
as_func_ret_success () {
 
377
  return 0
 
378
}
 
379
as_func_ret_failure () {
 
380
  return 1
 
381
}
 
382
 
 
383
exitcode=0
 
384
if as_func_success; then
 
385
  :
 
386
else
 
387
  exitcode=1
 
388
  echo as_func_success failed.
 
389
fi
 
390
 
 
391
if as_func_failure; then
 
392
  exitcode=1
 
393
  echo as_func_failure succeeded.
 
394
fi
 
395
 
 
396
if as_func_ret_success; then
 
397
  :
 
398
else
 
399
  exitcode=1
 
400
  echo as_func_ret_success failed.
 
401
fi
 
402
 
 
403
if as_func_ret_failure; then
 
404
  exitcode=1
 
405
  echo as_func_ret_failure succeeded.
 
406
fi
 
407
 
 
408
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
409
  :
 
410
else
 
411
  exitcode=1
 
412
  echo positional parameters were not saved.
 
413
fi
 
414
 
 
415
test \$exitcode = 0") || {
 
416
  echo No shell found that supports shell functions.
 
417
  echo Please tell autoconf@gnu.org about your system,
 
418
  echo including any error possibly output before this
 
419
  echo message
 
420
}
 
421
 
 
422
 
 
423
 
 
424
  as_lineno_1=$LINENO
 
425
  as_lineno_2=$LINENO
 
426
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
427
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
428
 
 
429
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
430
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
431
  # line-number line after each line using $LINENO; the second 'sed'
 
432
  # does the real work.  The second script uses 'N' to pair each
 
433
  # line-number line with the line containing $LINENO, and appends
 
434
  # trailing '-' during substitution so that $LINENO is not a special
 
435
  # case at line end.
 
436
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
437
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
438
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
439
  sed -n '
 
440
    p
 
441
    /[$]LINENO/=
 
442
  ' <$as_myself |
 
443
    sed '
 
444
      s/[$]LINENO.*/&-/
 
445
      t lineno
 
446
      b
 
447
      :lineno
 
448
      N
 
449
      :loop
 
450
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
451
      t loop
 
452
      s/-\n.*//
 
453
    ' >$as_me.lineno &&
 
454
  chmod +x "$as_me.lineno" ||
 
455
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
456
   { (exit 1); exit 1; }; }
 
457
 
 
458
  # Don't try to exec as it changes $[0], causing all sort of problems
 
459
  # (the dirname of $[0] is not the place where we might find the
 
460
  # original and so on.  Autoconf is especially sensitive to this).
 
461
  . "./$as_me.lineno"
 
462
  # Exit status is that of the last command.
 
463
  exit
 
464
}
 
465
 
 
466
 
 
467
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
468
  as_dirname=dirname
 
469
else
 
470
  as_dirname=false
 
471
fi
 
472
 
 
473
ECHO_C= ECHO_N= ECHO_T=
 
474
case `echo -n x` in
 
475
-n*)
 
476
  case `echo 'x\c'` in
 
477
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
478
  *)   ECHO_C='\c';;
 
479
  esac;;
 
480
*)
 
481
  ECHO_N='-n';;
 
482
esac
 
483
 
 
484
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
485
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
486
  as_expr=expr
 
487
else
 
488
  as_expr=false
 
489
fi
 
490
 
 
491
rm -f conf$$ conf$$.exe conf$$.file
 
492
if test -d conf$$.dir; then
 
493
  rm -f conf$$.dir/conf$$.file
 
494
else
 
495
  rm -f conf$$.dir
 
496
  mkdir conf$$.dir
 
497
fi
 
498
echo >conf$$.file
 
499
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
500
  as_ln_s='ln -s'
 
501
  # ... but there are two gotchas:
 
502
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
503
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
504
  # In both cases, we have to default to `cp -p'.
 
505
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
506
    as_ln_s='cp -p'
 
507
elif ln conf$$.file conf$$ 2>/dev/null; then
 
508
  as_ln_s=ln
 
509
else
 
510
  as_ln_s='cp -p'
 
511
fi
 
512
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
513
rmdir conf$$.dir 2>/dev/null
 
514
 
 
515
if mkdir -p . 2>/dev/null; then
 
516
  as_mkdir_p=:
 
517
else
 
518
  test -d ./-p && rmdir ./-p
 
519
  as_mkdir_p=false
 
520
fi
 
521
 
 
522
if test -x / >/dev/null 2>&1; then
 
523
  as_test_x='test -x'
 
524
else
 
525
  if ls -dL / >/dev/null 2>&1; then
 
526
    as_ls_L_option=L
 
527
  else
 
528
    as_ls_L_option=
 
529
  fi
 
530
  as_test_x='
 
531
    eval sh -c '\''
 
532
      if test -d "$1"; then
 
533
        test -d "$1/.";
 
534
      else
 
535
        case $1 in
 
536
        -*)set "./$1";;
 
537
        esac;
 
538
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
539
        ???[sx]*):;;*)false;;esac;fi
 
540
    '\'' sh
 
541
  '
 
542
fi
 
543
as_executable_p=$as_test_x
 
544
 
 
545
# Sed expression to map a string onto a valid CPP name.
 
546
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
547
 
 
548
# Sed expression to map a string onto a valid variable name.
 
549
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
550
 
 
551
 
 
552
 
 
553
exec 7<&0 </dev/null 6>&1
 
554
 
 
555
# Name of the host.
 
556
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
557
# so uname gets run too.
 
558
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
559
 
 
560
#
 
561
# Initializations.
 
562
#
12
563
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
 
564
ac_clean_files=
 
565
ac_config_libobj_dir=.
 
566
LIBOBJS=
 
567
cross_compiling=no
 
568
subdirs=
 
569
MFLAGS=
 
570
MAKEFLAGS=
 
571
SHELL=${CONFIG_SHELL-/bin/sh}
 
572
 
 
573
# Identity of this package.
 
574
PACKAGE_NAME=
 
575
PACKAGE_TARNAME=
 
576
PACKAGE_VERSION=
 
577
PACKAGE_STRING=
 
578
PACKAGE_BUGREPORT=
 
579
 
 
580
ac_unique_file=".root-dir"
14
581
ac_default_prefix="/usr/local"
15
 
ac_help="$ac_help
16
 
  --enable-release        set the compiler flags to -O6"
17
 
ac_help="$ac_help
18
 
  --enable-debug          set the compiler flags to -g"
19
 
ac_help="$ac_help
20
 
  --enable-install=user   for debugging, install as non-root user"
21
 
ac_help="$ac_help
22
 
  --enable-syslog         log messages via syslog()"
23
 
ac_help="$ac_help
24
 
  --enable-tcpwrappers    use the libwrap.a library"
25
 
ac_help="$ac_help
26
 
  --with-x                use the X Window System"
 
582
# Factoring default headers for most tests.
 
583
ac_includes_default="\
 
584
#include <stdio.h>
 
585
#ifdef HAVE_SYS_TYPES_H
 
586
# include <sys/types.h>
 
587
#endif
 
588
#ifdef HAVE_SYS_STAT_H
 
589
# include <sys/stat.h>
 
590
#endif
 
591
#ifdef STDC_HEADERS
 
592
# include <stdlib.h>
 
593
# include <stddef.h>
 
594
#else
 
595
# ifdef HAVE_STDLIB_H
 
596
#  include <stdlib.h>
 
597
# endif
 
598
#endif
 
599
#ifdef HAVE_STRING_H
 
600
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
601
#  include <memory.h>
 
602
# endif
 
603
# include <string.h>
 
604
#endif
 
605
#ifdef HAVE_STRINGS_H
 
606
# include <strings.h>
 
607
#endif
 
608
#ifdef HAVE_INTTYPES_H
 
609
# include <inttypes.h>
 
610
#endif
 
611
#ifdef HAVE_STDINT_H
 
612
# include <stdint.h>
 
613
#endif
 
614
#ifdef HAVE_UNISTD_H
 
615
# include <unistd.h>
 
616
#endif"
 
617
 
 
618
ac_subst_vars='SHELL
 
619
PATH_SEPARATOR
 
620
PACKAGE_NAME
 
621
PACKAGE_TARNAME
 
622
PACKAGE_VERSION
 
623
PACKAGE_STRING
 
624
PACKAGE_BUGREPORT
 
625
exec_prefix
 
626
prefix
 
627
program_transform_name
 
628
bindir
 
629
sbindir
 
630
libexecdir
 
631
datarootdir
 
632
datadir
 
633
sysconfdir
 
634
sharedstatedir
 
635
localstatedir
 
636
includedir
 
637
oldincludedir
 
638
docdir
 
639
infodir
 
640
htmldir
 
641
dvidir
 
642
pdfdir
 
643
psdir
 
644
libdir
 
645
localedir
 
646
mandir
 
647
DEFS
 
648
ECHO_C
 
649
ECHO_N
 
650
ECHO_T
 
651
LIBS
 
652
build_alias
 
653
host_alias
 
654
target_alias
 
655
build
 
656
build_cpu
 
657
build_vendor
 
658
build_os
 
659
host
 
660
host_cpu
 
661
host_vendor
 
662
host_os
 
663
CC
 
664
CFLAGS
 
665
LDFLAGS
 
666
CPPFLAGS
 
667
ac_ct_CC
 
668
EXEEXT
 
669
OBJEXT
 
670
SET_MAKE
 
671
INSTALL_PROGRAM
 
672
INSTALL_SCRIPT
 
673
INSTALL_DATA
 
674
LIBOPENVASCONFIG
 
675
OPENVASLIBNASLCONFIG
 
676
PKG_CONFIG
 
677
GLIB_CFLAGS
 
678
GLIB_LIBS
 
679
CPP
 
680
GREP
 
681
EGREP
 
682
ALLOCA
 
683
XMKMF
 
684
X_CFLAGS
 
685
X_PRE_LIBS
 
686
X_LIBS
 
687
X_EXTRA_LIBS
 
688
AR
 
689
PWD
 
690
PWDD
 
691
OVSCFLAGS
 
692
NASLCFLAGS
 
693
CWALL
 
694
version
 
695
OPENVASD_MAJOR
 
696
OPENVASD_MINOR
 
697
OPENVASD_PATCH
 
698
OPENVASD_RC
 
699
OPENVASD_DATE
 
700
OVS_COMPILER
 
701
OVS_OS_NAME
 
702
OVS_OS_VERSION
 
703
OPENVASD_CONFDIR
 
704
OPENVASD_STATEDIR
 
705
OPENVASD_PIDDIR
 
706
OPENVASD_SHAREDSTATEDIR
 
707
OPENVASD_DATADIR
 
708
OPENVASD_LIBDIR
 
709
OPENVASD_PLUGINS
 
710
OPENVASD_LOGDIR
 
711
OPENVASD_REPORTS
 
712
INSTALL_DIR
 
713
INSTALL
 
714
RUN_LIBS
 
715
resolv_lib
 
716
socket_lib
 
717
nsl_lib
 
718
ssl_lib
 
719
pthread_lib
 
720
debug_flags
 
721
man_openvas_1
 
722
man_openvasd_8
 
723
dl_lib
 
724
libwrap
 
725
uselibwrap
 
726
use_pthreads
 
727
rpcsvc_lib
 
728
compat_lib
 
729
c_r_lib
 
730
ac_configure_args
 
731
egdpath
 
732
installuser
 
733
LIBOBJS
 
734
LTLIBOBJS'
 
735
ac_subst_files=''
 
736
      ac_precious_vars='build_alias
 
737
host_alias
 
738
target_alias
 
739
CC
 
740
CFLAGS
 
741
LDFLAGS
 
742
LIBS
 
743
CPPFLAGS
 
744
PKG_CONFIG
 
745
GLIB_CFLAGS
 
746
GLIB_LIBS
 
747
CPP
 
748
XMKMF'
 
749
 
27
750
 
28
751
# Initialize some variables set by options.
 
752
ac_init_help=
 
753
ac_init_version=false
29
754
# The variables have the same names as the options, with
30
755
# dashes changed to underlines.
31
 
build=NONE
32
 
cache_file=./config.cache
 
756
cache_file=/dev/null
33
757
exec_prefix=NONE
34
 
host=NONE
35
758
no_create=
36
 
nonopt=NONE
37
759
no_recursion=
38
760
prefix=NONE
39
761
program_prefix=NONE
42
764
silent=
43
765
site=
44
766
srcdir=
45
 
target=NONE
46
767
verbose=
47
768
x_includes=NONE
48
769
x_libraries=NONE
 
770
 
 
771
# Installation directory options.
 
772
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
773
# and all the variables that are supposed to be based on exec_prefix
 
774
# by default will actually change.
 
775
# Use braces instead of parens because sh, perl, etc. also accept them.
 
776
# (The list follows the same order as the GNU Coding Standards.)
49
777
bindir='${exec_prefix}/bin'
50
778
sbindir='${exec_prefix}/sbin'
51
779
libexecdir='${exec_prefix}/libexec'
52
 
datadir='${prefix}/share'
 
780
datarootdir='${prefix}/share'
 
781
datadir='${datarootdir}'
53
782
sysconfdir='${prefix}/etc'
54
783
sharedstatedir='${prefix}/com'
55
784
localstatedir='${prefix}/var'
56
 
libdir='${exec_prefix}/lib'
57
785
includedir='${prefix}/include'
58
786
oldincludedir='/usr/include'
59
 
infodir='${prefix}/info'
60
 
mandir='${prefix}/man'
61
 
 
62
 
# Initialize some other variables.
63
 
subdirs=
64
 
MFLAGS= MAKEFLAGS=
65
 
SHELL=${CONFIG_SHELL-/bin/sh}
66
 
# Maximum number of lines to put in a shell here document.
67
 
ac_max_here_lines=12
 
787
docdir='${datarootdir}/doc/${PACKAGE}'
 
788
infodir='${datarootdir}/info'
 
789
htmldir='${docdir}'
 
790
dvidir='${docdir}'
 
791
pdfdir='${docdir}'
 
792
psdir='${docdir}'
 
793
libdir='${exec_prefix}/lib'
 
794
localedir='${datarootdir}/locale'
 
795
mandir='${datarootdir}/man'
68
796
 
69
797
ac_prev=
 
798
ac_dashdash=
70
799
for ac_option
71
800
do
72
 
 
73
801
  # If the previous option needs an argument, assign it.
74
802
  if test -n "$ac_prev"; then
75
 
    eval "$ac_prev=\$ac_option"
 
803
    eval $ac_prev=\$ac_option
76
804
    ac_prev=
77
805
    continue
78
806
  fi
79
807
 
80
 
  case "$ac_option" in
81
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82
 
  *) ac_optarg= ;;
 
808
  case $ac_option in
 
809
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
810
  *)    ac_optarg=yes ;;
83
811
  esac
84
812
 
85
813
  # Accept the important Cygnus configure options, so we can diagnose typos.
86
814
 
87
 
  case "$ac_option" in
 
815
  case $ac_dashdash$ac_option in
 
816
  --)
 
817
    ac_dashdash=yes ;;
88
818
 
89
819
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
90
820
    ac_prev=bindir ;;
91
821
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92
 
    bindir="$ac_optarg" ;;
 
822
    bindir=$ac_optarg ;;
93
823
 
94
824
  -build | --build | --buil | --bui | --bu)
95
 
    ac_prev=build ;;
 
825
    ac_prev=build_alias ;;
96
826
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97
 
    build="$ac_optarg" ;;
 
827
    build_alias=$ac_optarg ;;
98
828
 
99
829
  -cache-file | --cache-file | --cache-fil | --cache-fi \
100
830
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101
831
    ac_prev=cache_file ;;
102
832
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103
833
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104
 
    cache_file="$ac_optarg" ;;
105
 
 
106
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
834
    cache_file=$ac_optarg ;;
 
835
 
 
836
  --config-cache | -C)
 
837
    cache_file=config.cache ;;
 
838
 
 
839
  -datadir | --datadir | --datadi | --datad)
107
840
    ac_prev=datadir ;;
108
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109
 
  | --da=*)
110
 
    datadir="$ac_optarg" ;;
 
841
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
842
    datadir=$ac_optarg ;;
 
843
 
 
844
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
845
  | --dataroo | --dataro | --datar)
 
846
    ac_prev=datarootdir ;;
 
847
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
848
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
849
    datarootdir=$ac_optarg ;;
111
850
 
112
851
  -disable-* | --disable-*)
113
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
852
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
114
853
    # Reject names that are not valid shell variable names.
115
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117
 
    fi
118
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119
 
    eval "enable_${ac_feature}=no" ;;
 
854
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
855
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
856
   { (exit 1); exit 1; }; }
 
857
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
858
    eval enable_$ac_feature=no ;;
 
859
 
 
860
  -docdir | --docdir | --docdi | --doc | --do)
 
861
    ac_prev=docdir ;;
 
862
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
863
    docdir=$ac_optarg ;;
 
864
 
 
865
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
866
    ac_prev=dvidir ;;
 
867
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
868
    dvidir=$ac_optarg ;;
120
869
 
121
870
  -enable-* | --enable-*)
122
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
871
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
123
872
    # Reject names that are not valid shell variable names.
124
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126
 
    fi
127
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128
 
    case "$ac_option" in
129
 
      *=*) ;;
130
 
      *) ac_optarg=yes ;;
131
 
    esac
132
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
873
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
874
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
875
   { (exit 1); exit 1; }; }
 
876
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
877
    eval enable_$ac_feature=\$ac_optarg ;;
133
878
 
134
879
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135
880
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138
883
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139
884
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140
885
  | --exec=* | --exe=* | --ex=*)
141
 
    exec_prefix="$ac_optarg" ;;
 
886
    exec_prefix=$ac_optarg ;;
142
887
 
143
888
  -gas | --gas | --ga | --g)
144
889
    # Obsolete; use --with-gas.
145
890
    with_gas=yes ;;
146
891
 
147
 
  -help | --help | --hel | --he)
148
 
    # Omit some internal or obsolete options to make the list less imposing.
149
 
    # This message is too long to be a string in the A/UX 3.1 sh.
150
 
    cat << EOF
151
 
Usage: configure [options] [host]
152
 
Options: [defaults in brackets after descriptions]
153
 
Configuration:
154
 
  --cache-file=FILE       cache test results in FILE
155
 
  --help                  print this message
156
 
  --no-create             do not create output files
157
 
  --quiet, --silent       do not print \`checking...' messages
158
 
  --version               print the version of autoconf that created configure
159
 
Directory and file names:
160
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
161
 
                          [$ac_default_prefix]
162
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
163
 
                          [same as prefix]
164
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
165
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
166
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
167
 
  --datadir=DIR           read-only architecture-independent data in DIR
168
 
                          [PREFIX/share]
169
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
170
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
171
 
                          [PREFIX/com]
172
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
173
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
174
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
175
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
176
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
177
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
178
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
179
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
180
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
181
 
  --program-transform-name=PROGRAM
182
 
                          run sed PROGRAM on installed program names
183
 
EOF
184
 
    cat << EOF
185
 
Host type:
186
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
187
 
  --host=HOST             configure for HOST [guessed]
188
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
189
 
Features and packages:
190
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
191
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
192
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
193
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
194
 
  --x-includes=DIR        X include files are in DIR
195
 
  --x-libraries=DIR       X library files are in DIR
196
 
EOF
197
 
    if test -n "$ac_help"; then
198
 
      echo "--enable and --with options recognized:$ac_help"
199
 
    fi
200
 
    exit 0 ;;
 
892
  -help | --help | --hel | --he | -h)
 
893
    ac_init_help=long ;;
 
894
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
895
    ac_init_help=recursive ;;
 
896
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
897
    ac_init_help=short ;;
201
898
 
202
899
  -host | --host | --hos | --ho)
203
 
    ac_prev=host ;;
 
900
    ac_prev=host_alias ;;
204
901
  -host=* | --host=* | --hos=* | --ho=*)
205
 
    host="$ac_optarg" ;;
 
902
    host_alias=$ac_optarg ;;
 
903
 
 
904
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
905
    ac_prev=htmldir ;;
 
906
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
907
  | --ht=*)
 
908
    htmldir=$ac_optarg ;;
206
909
 
207
910
  -includedir | --includedir | --includedi | --included | --include \
208
911
  | --includ | --inclu | --incl | --inc)
209
912
    ac_prev=includedir ;;
210
913
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211
914
  | --includ=* | --inclu=* | --incl=* | --inc=*)
212
 
    includedir="$ac_optarg" ;;
 
915
    includedir=$ac_optarg ;;
213
916
 
214
917
  -infodir | --infodir | --infodi | --infod | --info | --inf)
215
918
    ac_prev=infodir ;;
216
919
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217
 
    infodir="$ac_optarg" ;;
 
920
    infodir=$ac_optarg ;;
218
921
 
219
922
  -libdir | --libdir | --libdi | --libd)
220
923
    ac_prev=libdir ;;
221
924
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
222
 
    libdir="$ac_optarg" ;;
 
925
    libdir=$ac_optarg ;;
223
926
 
224
927
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225
928
  | --libexe | --libex | --libe)
226
929
    ac_prev=libexecdir ;;
227
930
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228
931
  | --libexe=* | --libex=* | --libe=*)
229
 
    libexecdir="$ac_optarg" ;;
 
932
    libexecdir=$ac_optarg ;;
 
933
 
 
934
  -localedir | --localedir | --localedi | --localed | --locale)
 
935
    ac_prev=localedir ;;
 
936
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
937
    localedir=$ac_optarg ;;
230
938
 
231
939
  -localstatedir | --localstatedir | --localstatedi | --localstated \
232
 
  | --localstate | --localstat | --localsta | --localst \
233
 
  | --locals | --local | --loca | --loc | --lo)
 
940
  | --localstate | --localstat | --localsta | --localst | --locals)
234
941
    ac_prev=localstatedir ;;
235
942
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238
 
    localstatedir="$ac_optarg" ;;
 
943
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
944
    localstatedir=$ac_optarg ;;
239
945
 
240
946
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241
947
    ac_prev=mandir ;;
242
948
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243
 
    mandir="$ac_optarg" ;;
 
949
    mandir=$ac_optarg ;;
244
950
 
245
951
  -nfp | --nfp | --nf)
246
952
    # Obsolete; use --without-fp.
247
953
    with_fp=no ;;
248
954
 
249
955
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250
 
  | --no-cr | --no-c)
 
956
  | --no-cr | --no-c | -n)
251
957
    no_create=yes ;;
252
958
 
253
959
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261
967
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262
968
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263
969
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264
 
    oldincludedir="$ac_optarg" ;;
 
970
    oldincludedir=$ac_optarg ;;
265
971
 
266
972
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267
973
    ac_prev=prefix ;;
268
974
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269
 
    prefix="$ac_optarg" ;;
 
975
    prefix=$ac_optarg ;;
270
976
 
271
977
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
272
978
  | --program-pre | --program-pr | --program-p)
273
979
    ac_prev=program_prefix ;;
274
980
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
275
981
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276
 
    program_prefix="$ac_optarg" ;;
 
982
    program_prefix=$ac_optarg ;;
277
983
 
278
984
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
279
985
  | --program-suf | --program-su | --program-s)
280
986
    ac_prev=program_suffix ;;
281
987
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
282
988
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283
 
    program_suffix="$ac_optarg" ;;
 
989
    program_suffix=$ac_optarg ;;
284
990
 
285
991
  -program-transform-name | --program-transform-name \
286
992
  | --program-transform-nam | --program-transform-na \
297
1003
  | --program-transfo=* | --program-transf=* \
298
1004
  | --program-trans=* | --program-tran=* \
299
1005
  | --progr-tra=* | --program-tr=* | --program-t=*)
300
 
    program_transform_name="$ac_optarg" ;;
 
1006
    program_transform_name=$ac_optarg ;;
 
1007
 
 
1008
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1009
    ac_prev=pdfdir ;;
 
1010
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1011
    pdfdir=$ac_optarg ;;
 
1012
 
 
1013
  -psdir | --psdir | --psdi | --psd | --ps)
 
1014
    ac_prev=psdir ;;
 
1015
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1016
    psdir=$ac_optarg ;;
301
1017
 
302
1018
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303
1019
  | -silent | --silent | --silen | --sile | --sil)
307
1023
    ac_prev=sbindir ;;
308
1024
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309
1025
  | --sbi=* | --sb=*)
310
 
    sbindir="$ac_optarg" ;;
 
1026
    sbindir=$ac_optarg ;;
311
1027
 
312
1028
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
313
1029
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318
1034
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319
1035
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320
1036
  | --sha=* | --sh=*)
321
 
    sharedstatedir="$ac_optarg" ;;
 
1037
    sharedstatedir=$ac_optarg ;;
322
1038
 
323
1039
  -site | --site | --sit)
324
1040
    ac_prev=site ;;
325
1041
  -site=* | --site=* | --sit=*)
326
 
    site="$ac_optarg" ;;
 
1042
    site=$ac_optarg ;;
327
1043
 
328
1044
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329
1045
    ac_prev=srcdir ;;
330
1046
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331
 
    srcdir="$ac_optarg" ;;
 
1047
    srcdir=$ac_optarg ;;
332
1048
 
333
1049
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334
1050
  | --syscon | --sysco | --sysc | --sys | --sy)
335
1051
    ac_prev=sysconfdir ;;
336
1052
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337
1053
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338
 
    sysconfdir="$ac_optarg" ;;
 
1054
    sysconfdir=$ac_optarg ;;
339
1055
 
340
1056
  -target | --target | --targe | --targ | --tar | --ta | --t)
341
 
    ac_prev=target ;;
 
1057
    ac_prev=target_alias ;;
342
1058
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343
 
    target="$ac_optarg" ;;
 
1059
    target_alias=$ac_optarg ;;
344
1060
 
345
1061
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
346
1062
    verbose=yes ;;
347
1063
 
348
 
  -version | --version | --versio | --versi | --vers)
349
 
    echo "configure generated by autoconf version 2.13"
350
 
    exit 0 ;;
 
1064
  -version | --version | --versio | --versi | --vers | -V)
 
1065
    ac_init_version=: ;;
351
1066
 
352
1067
  -with-* | --with-*)
353
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
1068
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
354
1069
    # Reject names that are not valid shell variable names.
355
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357
 
    fi
358
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
359
 
    case "$ac_option" in
360
 
      *=*) ;;
361
 
      *) ac_optarg=yes ;;
362
 
    esac
363
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
1070
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1071
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1072
   { (exit 1); exit 1; }; }
 
1073
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1074
    eval with_$ac_package=\$ac_optarg ;;
364
1075
 
365
1076
  -without-* | --without-*)
366
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
1077
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
367
1078
    # Reject names that are not valid shell variable names.
368
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370
 
    fi
371
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
372
 
    eval "with_${ac_package}=no" ;;
 
1079
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1080
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1081
   { (exit 1); exit 1; }; }
 
1082
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1083
    eval with_$ac_package=no ;;
373
1084
 
374
1085
  --x)
375
1086
    # Obsolete; use --with-x.
380
1091
    ac_prev=x_includes ;;
381
1092
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382
1093
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383
 
    x_includes="$ac_optarg" ;;
 
1094
    x_includes=$ac_optarg ;;
384
1095
 
385
1096
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
386
1097
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387
1098
    ac_prev=x_libraries ;;
388
1099
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389
1100
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390
 
    x_libraries="$ac_optarg" ;;
 
1101
    x_libraries=$ac_optarg ;;
391
1102
 
392
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
1103
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1104
Try \`$0 --help' for more information." >&2
 
1105
   { (exit 1); exit 1; }; }
393
1106
    ;;
394
1107
 
 
1108
  *=*)
 
1109
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1110
    # Reject names that are not valid shell variable names.
 
1111
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1112
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1113
   { (exit 1); exit 1; }; }
 
1114
    eval $ac_envvar=\$ac_optarg
 
1115
    export $ac_envvar ;;
 
1116
 
395
1117
  *)
396
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
398
 
    fi
399
 
    if test "x$nonopt" != xNONE; then
400
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401
 
    fi
402
 
    nonopt="$ac_option"
 
1118
    # FIXME: should be removed in autoconf 3.0.
 
1119
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1120
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1121
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1122
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
403
1123
    ;;
404
1124
 
405
1125
  esac
406
1126
done
407
1127
 
408
1128
if test -n "$ac_prev"; then
409
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410
 
fi
411
 
 
412
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
 
 
414
 
# File descriptor usage:
415
 
# 0 standard input
416
 
# 1 file creation
417
 
# 2 errors and warnings
418
 
# 3 some systems may open it to /dev/tty
419
 
# 4 used on the Kubota Titan
420
 
# 6 checking for... messages and results
421
 
# 5 compiler messages saved in config.log
422
 
if test "$silent" = yes; then
423
 
  exec 6>/dev/null
424
 
else
425
 
  exec 6>&1
426
 
fi
427
 
exec 5>./config.log
428
 
 
429
 
echo "\
430
 
This file contains any messages produced by compilers while
431
 
running configure, to aid debugging if configure makes a mistake.
432
 
" 1>&5
433
 
 
434
 
# Strip out --no-create and --no-recursion so they do not pile up.
435
 
# Also quote any args containing shell metacharacters.
436
 
ac_configure_args=
437
 
for ac_arg
 
1129
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1130
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1131
   { (exit 1); exit 1; }; }
 
1132
fi
 
1133
 
 
1134
# Be sure to have absolute directory names.
 
1135
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1136
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1137
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1138
                libdir localedir mandir
438
1139
do
439
 
  case "$ac_arg" in
440
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441
 
  | --no-cr | --no-c) ;;
442
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
1140
  eval ac_val=\$$ac_var
 
1141
  case $ac_val in
 
1142
    [\\/$]* | ?:[\\/]* )  continue;;
 
1143
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
447
1144
  esac
 
1145
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1146
   { (exit 1); exit 1; }; }
448
1147
done
449
1148
 
450
 
# NLS nuisances.
451
 
# Only set these to C if already set.  These must not be set unconditionally
452
 
# because not all systems understand e.g. LANG=C (notably SCO).
453
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454
 
# Non-C LC_CTYPE values break the ctype check.
455
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
456
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
459
 
 
460
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
461
 
rm -rf conftest* confdefs.h
462
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463
 
echo > confdefs.h
464
 
 
465
 
# A filename unique to this package, relative to the directory that
466
 
# configure is in, which we can look for to find out if srcdir is correct.
467
 
ac_unique_file=.root-dir
 
1149
# There might be people who depend on the old broken behavior: `$host'
 
1150
# used to hold the argument of --host etc.
 
1151
# FIXME: To remove some day.
 
1152
build=$build_alias
 
1153
host=$host_alias
 
1154
target=$target_alias
 
1155
 
 
1156
# FIXME: To remove some day.
 
1157
if test "x$host_alias" != x; then
 
1158
  if test "x$build_alias" = x; then
 
1159
    cross_compiling=maybe
 
1160
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1161
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1162
  elif test "x$build_alias" != "x$host_alias"; then
 
1163
    cross_compiling=yes
 
1164
  fi
 
1165
fi
 
1166
 
 
1167
ac_tool_prefix=
 
1168
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1169
 
 
1170
test "$silent" = yes && exec 6>/dev/null
 
1171
 
 
1172
 
 
1173
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1174
ac_ls_di=`ls -di .` &&
 
1175
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1176
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1177
   { (exit 1); exit 1; }; }
 
1178
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1179
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1180
   { (exit 1); exit 1; }; }
 
1181
 
468
1182
 
469
1183
# Find the source files, if location was not specified.
470
1184
if test -z "$srcdir"; then
471
1185
  ac_srcdir_defaulted=yes
472
 
  # Try the directory containing this script, then its parent.
473
 
  ac_prog=$0
474
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
1186
  # Try the directory containing this script, then the parent directory.
 
1187
  ac_confdir=`$as_dirname -- "$0" ||
 
1188
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1189
         X"$0" : 'X\(//\)[^/]' \| \
 
1190
         X"$0" : 'X\(//\)$' \| \
 
1191
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1192
echo X"$0" |
 
1193
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1194
            s//\1/
 
1195
            q
 
1196
          }
 
1197
          /^X\(\/\/\)[^/].*/{
 
1198
            s//\1/
 
1199
            q
 
1200
          }
 
1201
          /^X\(\/\/\)$/{
 
1202
            s//\1/
 
1203
            q
 
1204
          }
 
1205
          /^X\(\/\).*/{
 
1206
            s//\1/
 
1207
            q
 
1208
          }
 
1209
          s/.*/./; q'`
476
1210
  srcdir=$ac_confdir
477
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1211
  if test ! -r "$srcdir/$ac_unique_file"; then
478
1212
    srcdir=..
479
1213
  fi
480
1214
else
481
1215
  ac_srcdir_defaulted=no
482
1216
fi
483
 
if test ! -r $srcdir/$ac_unique_file; then
484
 
  if test "$ac_srcdir_defaulted" = yes; then
485
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486
 
  else
487
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488
 
  fi
489
 
fi
490
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
 
 
 
1217
if test ! -r "$srcdir/$ac_unique_file"; then
 
1218
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1219
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1220
   { (exit 1); exit 1; }; }
 
1221
fi
 
1222
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1223
ac_abs_confdir=`(
 
1224
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1225
   { (exit 1); exit 1; }; }
 
1226
        pwd)`
 
1227
# When building in place, set srcdir=.
 
1228
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1229
  srcdir=.
 
1230
fi
 
1231
# Remove unnecessary trailing slashes from srcdir.
 
1232
# Double slashes in file names in object file debugging info
 
1233
# mess up M-x gdb in Emacs.
 
1234
case $srcdir in
 
1235
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1236
esac
 
1237
for ac_var in $ac_precious_vars; do
 
1238
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1239
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1240
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1241
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1242
done
 
1243
 
 
1244
#
 
1245
# Report the --help message.
 
1246
#
 
1247
if test "$ac_init_help" = "long"; then
 
1248
  # Omit some internal or obsolete options to make the list less imposing.
 
1249
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1250
  cat <<_ACEOF
 
1251
\`configure' configures this package to adapt to many kinds of systems.
 
1252
 
 
1253
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1254
 
 
1255
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1256
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1257
 
 
1258
Defaults for the options are specified in brackets.
 
1259
 
 
1260
Configuration:
 
1261
  -h, --help              display this help and exit
 
1262
      --help=short        display options specific to this package
 
1263
      --help=recursive    display the short help of all the included packages
 
1264
  -V, --version           display version information and exit
 
1265
  -q, --quiet, --silent   do not print \`checking...' messages
 
1266
      --cache-file=FILE   cache test results in FILE [disabled]
 
1267
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1268
  -n, --no-create         do not create output files
 
1269
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1270
 
 
1271
Installation directories:
 
1272
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1273
                          [$ac_default_prefix]
 
1274
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1275
                          [PREFIX]
 
1276
 
 
1277
By default, \`make install' will install all the files in
 
1278
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1279
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1280
for instance \`--prefix=\$HOME'.
 
1281
 
 
1282
For better control, use the options below.
 
1283
 
 
1284
Fine tuning of the installation directories:
 
1285
  --bindir=DIR           user executables [EPREFIX/bin]
 
1286
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1287
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1288
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1289
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1290
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1291
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1292
  --includedir=DIR       C header files [PREFIX/include]
 
1293
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1294
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1295
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1296
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1297
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1298
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1299
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
 
1300
  --htmldir=DIR          html documentation [DOCDIR]
 
1301
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1302
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1303
  --psdir=DIR            ps documentation [DOCDIR]
 
1304
_ACEOF
 
1305
 
 
1306
  cat <<\_ACEOF
 
1307
 
 
1308
X features:
 
1309
  --x-includes=DIR    X include files are in DIR
 
1310
  --x-libraries=DIR   X library files are in DIR
 
1311
 
 
1312
System types:
 
1313
  --build=BUILD     configure for building on BUILD [guessed]
 
1314
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1315
_ACEOF
 
1316
fi
 
1317
 
 
1318
if test -n "$ac_init_help"; then
 
1319
 
 
1320
  cat <<\_ACEOF
 
1321
 
 
1322
Optional Features:
 
1323
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1324
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1325
  --enable-release        set the compiler flags to -O6
 
1326
  --enable-debug          set the compiler flags to -g
 
1327
  --enable-install=user   for debugging, install as non-root user
 
1328
  --enable-syslog         log messages via syslog()
 
1329
  --enable-tcpwrappers    use the libwrap.a library
 
1330
  --disable-largefile     omit support for large files
 
1331
 
 
1332
Optional Packages:
 
1333
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1334
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1335
  --with-x                use the X Window System
 
1336
 
 
1337
Some influential environment variables:
 
1338
  CC          C compiler command
 
1339
  CFLAGS      C compiler flags
 
1340
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1341
              nonstandard directory <lib dir>
 
1342
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1343
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1344
              you have headers in a nonstandard directory <include dir>
 
1345
  PKG_CONFIG  path to pkg-config utility
 
1346
  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
 
1347
  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
 
1348
  CPP         C preprocessor
 
1349
  XMKMF       Path to xmkmf, Makefile generator for X Window System
 
1350
 
 
1351
Use these variables to override the choices made by `configure' or to help
 
1352
it to find libraries and programs with nonstandard names/locations.
 
1353
 
 
1354
_ACEOF
 
1355
ac_status=$?
 
1356
fi
 
1357
 
 
1358
if test "$ac_init_help" = "recursive"; then
 
1359
  # If there are subdirs, report their specific --help.
 
1360
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1361
    test -d "$ac_dir" || continue
 
1362
    ac_builddir=.
 
1363
 
 
1364
case "$ac_dir" in
 
1365
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1366
*)
 
1367
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1368
  # A ".." for each directory in $ac_dir_suffix.
 
1369
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1370
  case $ac_top_builddir_sub in
 
1371
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1372
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1373
  esac ;;
 
1374
esac
 
1375
ac_abs_top_builddir=$ac_pwd
 
1376
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1377
# for backward compatibility:
 
1378
ac_top_builddir=$ac_top_build_prefix
 
1379
 
 
1380
case $srcdir in
 
1381
  .)  # We are building in place.
 
1382
    ac_srcdir=.
 
1383
    ac_top_srcdir=$ac_top_builddir_sub
 
1384
    ac_abs_top_srcdir=$ac_pwd ;;
 
1385
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1386
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1387
    ac_top_srcdir=$srcdir
 
1388
    ac_abs_top_srcdir=$srcdir ;;
 
1389
  *) # Relative name.
 
1390
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1391
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1392
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1393
esac
 
1394
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1395
 
 
1396
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1397
    # Check for guested configure.
 
1398
    if test -f "$ac_srcdir/configure.gnu"; then
 
1399
      echo &&
 
1400
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1401
    elif test -f "$ac_srcdir/configure"; then
 
1402
      echo &&
 
1403
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1404
    else
 
1405
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1406
    fi || ac_status=$?
 
1407
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1408
  done
 
1409
fi
 
1410
 
 
1411
test -n "$ac_init_help" && exit $ac_status
 
1412
if $ac_init_version; then
 
1413
  cat <<\_ACEOF
 
1414
configure
 
1415
generated by GNU Autoconf 2.61
 
1416
 
 
1417
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1418
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1419
This configure script is free software; the Free Software Foundation
 
1420
gives unlimited permission to copy, distribute and modify it.
 
1421
_ACEOF
 
1422
  exit
 
1423
fi
 
1424
cat >config.log <<_ACEOF
 
1425
This file contains any messages produced by compilers while
 
1426
running configure, to aid debugging if configure makes a mistake.
 
1427
 
 
1428
It was created by $as_me, which was
 
1429
generated by GNU Autoconf 2.61.  Invocation command line was
 
1430
 
 
1431
  $ $0 $@
 
1432
 
 
1433
_ACEOF
 
1434
exec 5>>config.log
 
1435
{
 
1436
cat <<_ASUNAME
 
1437
## --------- ##
 
1438
## Platform. ##
 
1439
## --------- ##
 
1440
 
 
1441
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1442
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1443
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1444
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1445
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1446
 
 
1447
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1448
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1449
 
 
1450
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1451
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1452
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1453
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1454
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1455
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1456
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1457
 
 
1458
_ASUNAME
 
1459
 
 
1460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1461
for as_dir in $PATH
 
1462
do
 
1463
  IFS=$as_save_IFS
 
1464
  test -z "$as_dir" && as_dir=.
 
1465
  echo "PATH: $as_dir"
 
1466
done
 
1467
IFS=$as_save_IFS
 
1468
 
 
1469
} >&5
 
1470
 
 
1471
cat >&5 <<_ACEOF
 
1472
 
 
1473
 
 
1474
## ----------- ##
 
1475
## Core tests. ##
 
1476
## ----------- ##
 
1477
 
 
1478
_ACEOF
 
1479
 
 
1480
 
 
1481
# Keep a trace of the command line.
 
1482
# Strip out --no-create and --no-recursion so they do not pile up.
 
1483
# Strip out --silent because we don't want to record it for future runs.
 
1484
# Also quote any args containing shell meta-characters.
 
1485
# Make two passes to allow for proper duplicate-argument suppression.
 
1486
ac_configure_args=
 
1487
ac_configure_args0=
 
1488
ac_configure_args1=
 
1489
ac_must_keep_next=false
 
1490
for ac_pass in 1 2
 
1491
do
 
1492
  for ac_arg
 
1493
  do
 
1494
    case $ac_arg in
 
1495
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1496
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1497
    | -silent | --silent | --silen | --sile | --sil)
 
1498
      continue ;;
 
1499
    *\'*)
 
1500
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1501
    esac
 
1502
    case $ac_pass in
 
1503
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1504
    2)
 
1505
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1506
      if test $ac_must_keep_next = true; then
 
1507
        ac_must_keep_next=false # Got value, back to normal.
 
1508
      else
 
1509
        case $ac_arg in
 
1510
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1511
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1512
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1513
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1514
            case "$ac_configure_args0 " in
 
1515
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1516
            esac
 
1517
            ;;
 
1518
          -* ) ac_must_keep_next=true ;;
 
1519
        esac
 
1520
      fi
 
1521
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1522
      ;;
 
1523
    esac
 
1524
  done
 
1525
done
 
1526
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1527
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1528
 
 
1529
# When interrupted or exit'd, cleanup temporary files, and complete
 
1530
# config.log.  We remove comments because anyway the quotes in there
 
1531
# would cause problems or look ugly.
 
1532
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1533
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1534
trap 'exit_status=$?
 
1535
  # Save into config.log some information that might help in debugging.
 
1536
  {
 
1537
    echo
 
1538
 
 
1539
    cat <<\_ASBOX
 
1540
## ---------------- ##
 
1541
## Cache variables. ##
 
1542
## ---------------- ##
 
1543
_ASBOX
 
1544
    echo
 
1545
    # The following way of writing the cache mishandles newlines in values,
 
1546
(
 
1547
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1548
    eval ac_val=\$$ac_var
 
1549
    case $ac_val in #(
 
1550
    *${as_nl}*)
 
1551
      case $ac_var in #(
 
1552
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1553
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1554
      esac
 
1555
      case $ac_var in #(
 
1556
      _ | IFS | as_nl) ;; #(
 
1557
      *) $as_unset $ac_var ;;
 
1558
      esac ;;
 
1559
    esac
 
1560
  done
 
1561
  (set) 2>&1 |
 
1562
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1563
    *${as_nl}ac_space=\ *)
 
1564
      sed -n \
 
1565
        "s/'\''/'\''\\\\'\'''\''/g;
 
1566
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1567
      ;; #(
 
1568
    *)
 
1569
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1570
      ;;
 
1571
    esac |
 
1572
    sort
 
1573
)
 
1574
    echo
 
1575
 
 
1576
    cat <<\_ASBOX
 
1577
## ----------------- ##
 
1578
## Output variables. ##
 
1579
## ----------------- ##
 
1580
_ASBOX
 
1581
    echo
 
1582
    for ac_var in $ac_subst_vars
 
1583
    do
 
1584
      eval ac_val=\$$ac_var
 
1585
      case $ac_val in
 
1586
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1587
      esac
 
1588
      echo "$ac_var='\''$ac_val'\''"
 
1589
    done | sort
 
1590
    echo
 
1591
 
 
1592
    if test -n "$ac_subst_files"; then
 
1593
      cat <<\_ASBOX
 
1594
## ------------------- ##
 
1595
## File substitutions. ##
 
1596
## ------------------- ##
 
1597
_ASBOX
 
1598
      echo
 
1599
      for ac_var in $ac_subst_files
 
1600
      do
 
1601
        eval ac_val=\$$ac_var
 
1602
        case $ac_val in
 
1603
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1604
        esac
 
1605
        echo "$ac_var='\''$ac_val'\''"
 
1606
      done | sort
 
1607
      echo
 
1608
    fi
 
1609
 
 
1610
    if test -s confdefs.h; then
 
1611
      cat <<\_ASBOX
 
1612
## ----------- ##
 
1613
## confdefs.h. ##
 
1614
## ----------- ##
 
1615
_ASBOX
 
1616
      echo
 
1617
      cat confdefs.h
 
1618
      echo
 
1619
    fi
 
1620
    test "$ac_signal" != 0 &&
 
1621
      echo "$as_me: caught signal $ac_signal"
 
1622
    echo "$as_me: exit $exit_status"
 
1623
  } >&5
 
1624
  rm -f core *.core core.conftest.* &&
 
1625
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1626
    exit $exit_status
 
1627
' 0
 
1628
for ac_signal in 1 2 13 15; do
 
1629
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1630
done
 
1631
ac_signal=0
 
1632
 
 
1633
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1634
rm -f -r conftest* confdefs.h
 
1635
 
 
1636
# Predefined preprocessor variables.
 
1637
 
 
1638
cat >>confdefs.h <<_ACEOF
 
1639
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1640
_ACEOF
 
1641
 
 
1642
 
 
1643
cat >>confdefs.h <<_ACEOF
 
1644
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1645
_ACEOF
 
1646
 
 
1647
 
 
1648
cat >>confdefs.h <<_ACEOF
 
1649
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1650
_ACEOF
 
1651
 
 
1652
 
 
1653
cat >>confdefs.h <<_ACEOF
 
1654
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1655
_ACEOF
 
1656
 
 
1657
 
 
1658
cat >>confdefs.h <<_ACEOF
 
1659
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1660
_ACEOF
 
1661
 
 
1662
 
 
1663
# Let the site file select an alternate cache file if it wants to.
492
1664
# Prefer explicitly selected file to automatically selected ones.
493
 
if test -z "$CONFIG_SITE"; then
494
 
  if test "x$prefix" != xNONE; then
495
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496
 
  else
497
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498
 
  fi
 
1665
if test -n "$CONFIG_SITE"; then
 
1666
  set x "$CONFIG_SITE"
 
1667
elif test "x$prefix" != xNONE; then
 
1668
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1669
else
 
1670
  set x "$ac_default_prefix/share/config.site" \
 
1671
        "$ac_default_prefix/etc/config.site"
499
1672
fi
500
 
for ac_site_file in $CONFIG_SITE; do
 
1673
shift
 
1674
for ac_site_file
 
1675
do
501
1676
  if test -r "$ac_site_file"; then
502
 
    echo "loading site script $ac_site_file"
 
1677
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1678
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1679
    sed 's/^/| /' "$ac_site_file" >&5
503
1680
    . "$ac_site_file"
504
1681
  fi
505
1682
done
506
1683
 
507
1684
if test -r "$cache_file"; then
508
 
  echo "loading cache $cache_file"
509
 
  . $cache_file
 
1685
  # Some versions of bash will fail to source /dev/null (special
 
1686
  # files actually), so we avoid doing that.
 
1687
  if test -f "$cache_file"; then
 
1688
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1689
echo "$as_me: loading cache $cache_file" >&6;}
 
1690
    case $cache_file in
 
1691
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1692
      *)                      . "./$cache_file";;
 
1693
    esac
 
1694
  fi
510
1695
else
511
 
  echo "creating cache $cache_file"
512
 
  > $cache_file
513
 
fi
 
1696
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1697
echo "$as_me: creating cache $cache_file" >&6;}
 
1698
  >$cache_file
 
1699
fi
 
1700
 
 
1701
# Check that the precious variables saved in the cache have kept the same
 
1702
# value.
 
1703
ac_cache_corrupted=false
 
1704
for ac_var in $ac_precious_vars; do
 
1705
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1706
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1707
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1708
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1709
  case $ac_old_set,$ac_new_set in
 
1710
    set,)
 
1711
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1712
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1713
      ac_cache_corrupted=: ;;
 
1714
    ,set)
 
1715
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1716
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1717
      ac_cache_corrupted=: ;;
 
1718
    ,);;
 
1719
    *)
 
1720
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1721
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1722
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1723
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1724
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1725
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1726
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1727
        ac_cache_corrupted=:
 
1728
      fi;;
 
1729
  esac
 
1730
  # Pass precious variables to config.status.
 
1731
  if test "$ac_new_set" = set; then
 
1732
    case $ac_new_val in
 
1733
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1734
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1735
    esac
 
1736
    case " $ac_configure_args " in
 
1737
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1738
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1739
    esac
 
1740
  fi
 
1741
done
 
1742
if $ac_cache_corrupted; then
 
1743
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1744
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1745
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1746
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1747
   { (exit 1); exit 1; }; }
 
1748
fi
 
1749
 
 
1750
 
 
1751
 
 
1752
 
 
1753
 
 
1754
 
 
1755
 
 
1756
 
 
1757
 
 
1758
 
 
1759
 
 
1760
 
 
1761
 
 
1762
 
 
1763
 
 
1764
 
514
1765
 
515
1766
ac_ext=c
516
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517
1767
ac_cpp='$CPP $CPPFLAGS'
518
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520
 
cross_compiling=$ac_cv_prog_cc_cross
521
 
 
522
 
ac_exeext=
523
 
ac_objext=o
524
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527
 
    ac_n= ac_c='
528
 
' ac_t='        '
529
 
  else
530
 
    ac_n=-n ac_c= ac_t=
531
 
  fi
532
 
else
533
 
  ac_n= ac_c='\c' ac_t=
534
 
fi
535
 
 
536
 
 
537
 
# From configure.in Revision: 1008 
538
 
NEED_OPENVASLIBS_VERSION=1.0.2
539
 
NEED_OPENVASLIBNASL_VERSION=1.0.1
 
1768
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1769
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1770
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1771
 
 
1772
 
 
1773
 
 
1774
 
 
1775
NEED_OPENVASLIBS_VERSION=2.0.0
 
1776
NEED_OPENVASLIBNASL_VERSION=2.0.0
540
1777
 
541
1778
save_IFS="${IFS}"
542
1779
IFS=.
544
1781
IFS="${save_IFS}"
545
1782
OPENVASD_DATE=\"`date '+%b %d, %Y'`\"
546
1783
expr 0 + $OPENVASD_MAJOR + $OPENVASD_MINOR + $OPENVASD_PATCH + 0 >/dev/null ||
547
 
{ echo "configure: error:  *** Panic: Corrupt version file" 1>&2; exit 1; }
 
1784
{ { echo "$as_me:$LINENO: error:  *** Panic: Corrupt version file" >&5
 
1785
echo "$as_me: error:  *** Panic: Corrupt version file" >&2;}
 
1786
   { (exit 1); exit 1; }; }
548
1787
version=$OPENVASD_MAJOR.$OPENVASD_MINOR.$OPENVASD_PATCH
549
1788
 
550
1789
test "x$prefix" != "xNONE" || prefix=/usr/local
551
1790
 
552
1791
 
 
1792
ac_config_headers="$ac_config_headers include/config.h"
553
1793
 
554
1794
 
555
1795
ac_aux_dir=
556
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
557
 
  if test -f $ac_dir/install-sh; then
 
1796
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1797
  if test -f "$ac_dir/install-sh"; then
558
1798
    ac_aux_dir=$ac_dir
559
1799
    ac_install_sh="$ac_aux_dir/install-sh -c"
560
1800
    break
561
 
  elif test -f $ac_dir/install.sh; then
 
1801
  elif test -f "$ac_dir/install.sh"; then
562
1802
    ac_aux_dir=$ac_dir
563
1803
    ac_install_sh="$ac_aux_dir/install.sh -c"
564
1804
    break
 
1805
  elif test -f "$ac_dir/shtool"; then
 
1806
    ac_aux_dir=$ac_dir
 
1807
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1808
    break
565
1809
  fi
566
1810
done
567
1811
if test -z "$ac_aux_dir"; then
568
 
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
1812
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
1813
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1814
   { (exit 1); exit 1; }; }
569
1815
fi
570
 
ac_config_guess=$ac_aux_dir/config.guess
571
 
ac_config_sub=$ac_aux_dir/config.sub
572
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
1816
 
 
1817
# These three variables are undocumented and unsupported,
 
1818
# and are intended to be withdrawn in a future Autoconf release.
 
1819
# They can cause serious problems if a builder's source tree is in a directory
 
1820
# whose full name contains unusual characters.
 
1821
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1822
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1823
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
573
1824
 
574
1825
 
575
1826
# Make sure we can run config.sub.
576
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
577
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
578
 
fi
579
 
 
580
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
581
 
echo "configure:582: checking host system type" >&5
582
 
 
583
 
host_alias=$host
584
 
case "$host_alias" in
585
 
NONE)
586
 
  case $nonopt in
587
 
  NONE)
588
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
589
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
590
 
    fi ;;
591
 
  *) host_alias=$nonopt ;;
592
 
  esac ;;
593
 
esac
594
 
 
595
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
596
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
597
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
598
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
599
 
echo "$ac_t""$host" 1>&6
600
 
 
601
 
ac_ext=c
602
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
603
 
ac_cpp='$CPP $CPPFLAGS'
604
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
605
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
606
 
cross_compiling=$ac_cv_prog_cc_cross
607
 
 
608
 
 
609
 
# Extract the first word of "gcc", so it can be a program name with args.
 
1827
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
1828
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
1829
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
1830
   { (exit 1); exit 1; }; }
 
1831
 
 
1832
{ echo "$as_me:$LINENO: checking build system type" >&5
 
1833
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
1834
if test "${ac_cv_build+set}" = set; then
 
1835
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1836
else
 
1837
  ac_build_alias=$build_alias
 
1838
test "x$ac_build_alias" = x &&
 
1839
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
1840
test "x$ac_build_alias" = x &&
 
1841
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1842
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1843
   { (exit 1); exit 1; }; }
 
1844
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
1845
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
1846
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
1847
   { (exit 1); exit 1; }; }
 
1848
 
 
1849
fi
 
1850
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1851
echo "${ECHO_T}$ac_cv_build" >&6; }
 
1852
case $ac_cv_build in
 
1853
*-*-*) ;;
 
1854
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
1855
echo "$as_me: error: invalid value of canonical build" >&2;}
 
1856
   { (exit 1); exit 1; }; };;
 
1857
esac
 
1858
build=$ac_cv_build
 
1859
ac_save_IFS=$IFS; IFS='-'
 
1860
set x $ac_cv_build
 
1861
shift
 
1862
build_cpu=$1
 
1863
build_vendor=$2
 
1864
shift; shift
 
1865
# Remember, the first character of IFS is used to create $*,
 
1866
# except with old shells:
 
1867
build_os=$*
 
1868
IFS=$ac_save_IFS
 
1869
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
1870
 
 
1871
 
 
1872
{ echo "$as_me:$LINENO: checking host system type" >&5
 
1873
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
1874
if test "${ac_cv_host+set}" = set; then
 
1875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1876
else
 
1877
  if test "x$host_alias" = x; then
 
1878
  ac_cv_host=$ac_cv_build
 
1879
else
 
1880
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
1881
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
1882
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
1883
   { (exit 1); exit 1; }; }
 
1884
fi
 
1885
 
 
1886
fi
 
1887
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1888
echo "${ECHO_T}$ac_cv_host" >&6; }
 
1889
case $ac_cv_host in
 
1890
*-*-*) ;;
 
1891
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
1892
echo "$as_me: error: invalid value of canonical host" >&2;}
 
1893
   { (exit 1); exit 1; }; };;
 
1894
esac
 
1895
host=$ac_cv_host
 
1896
ac_save_IFS=$IFS; IFS='-'
 
1897
set x $ac_cv_host
 
1898
shift
 
1899
host_cpu=$1
 
1900
host_vendor=$2
 
1901
shift; shift
 
1902
# Remember, the first character of IFS is used to create $*,
 
1903
# except with old shells:
 
1904
host_os=$*
 
1905
IFS=$ac_save_IFS
 
1906
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
1907
 
 
1908
 
 
1909
ac_ext=c
 
1910
ac_cpp='$CPP $CPPFLAGS'
 
1911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1914
 
 
1915
 
 
1916
ac_ext=c
 
1917
ac_cpp='$CPP $CPPFLAGS'
 
1918
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1919
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1920
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1921
if test -n "$ac_tool_prefix"; then
 
1922
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1923
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1924
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1925
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1926
if test "${ac_cv_prog_CC+set}" = set; then
 
1927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1928
else
 
1929
  if test -n "$CC"; then
 
1930
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1931
else
 
1932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1933
for as_dir in $PATH
 
1934
do
 
1935
  IFS=$as_save_IFS
 
1936
  test -z "$as_dir" && as_dir=.
 
1937
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1938
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1939
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1940
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1941
    break 2
 
1942
  fi
 
1943
done
 
1944
done
 
1945
IFS=$as_save_IFS
 
1946
 
 
1947
fi
 
1948
fi
 
1949
CC=$ac_cv_prog_CC
 
1950
if test -n "$CC"; then
 
1951
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1952
echo "${ECHO_T}$CC" >&6; }
 
1953
else
 
1954
  { echo "$as_me:$LINENO: result: no" >&5
 
1955
echo "${ECHO_T}no" >&6; }
 
1956
fi
 
1957
 
 
1958
 
 
1959
fi
 
1960
if test -z "$ac_cv_prog_CC"; then
 
1961
  ac_ct_CC=$CC
 
1962
  # Extract the first word of "gcc", so it can be a program name with args.
610
1963
set dummy gcc; ac_word=$2
611
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
612
 
echo "configure:613: checking for $ac_word" >&5
613
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
614
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1964
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1965
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1966
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1968
else
 
1969
  if test -n "$ac_ct_CC"; then
 
1970
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1971
else
 
1972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1973
for as_dir in $PATH
 
1974
do
 
1975
  IFS=$as_save_IFS
 
1976
  test -z "$as_dir" && as_dir=.
 
1977
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1978
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1979
    ac_cv_prog_ac_ct_CC="gcc"
 
1980
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1981
    break 2
 
1982
  fi
 
1983
done
 
1984
done
 
1985
IFS=$as_save_IFS
 
1986
 
 
1987
fi
 
1988
fi
 
1989
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1990
if test -n "$ac_ct_CC"; then
 
1991
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1992
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
1993
else
 
1994
  { echo "$as_me:$LINENO: result: no" >&5
 
1995
echo "${ECHO_T}no" >&6; }
 
1996
fi
 
1997
 
 
1998
  if test "x$ac_ct_CC" = x; then
 
1999
    CC=""
 
2000
  else
 
2001
    case $cross_compiling:$ac_tool_warned in
 
2002
yes:)
 
2003
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2004
whose name does not start with the host triplet.  If you think this
 
2005
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2006
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2007
whose name does not start with the host triplet.  If you think this
 
2008
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2009
ac_tool_warned=yes ;;
 
2010
esac
 
2011
    CC=$ac_ct_CC
 
2012
  fi
 
2013
else
 
2014
  CC="$ac_cv_prog_CC"
 
2015
fi
 
2016
 
 
2017
if test -z "$CC"; then
 
2018
          if test -n "$ac_tool_prefix"; then
 
2019
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2020
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2021
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2023
if test "${ac_cv_prog_CC+set}" = set; then
 
2024
  echo $ECHO_N "(cached) $ECHO_C" >&6
615
2025
else
616
2026
  if test -n "$CC"; then
617
2027
  ac_cv_prog_CC="$CC" # Let the user override the test.
618
2028
else
619
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
620
 
  ac_dummy="$PATH"
621
 
  for ac_dir in $ac_dummy; do
622
 
    test -z "$ac_dir" && ac_dir=.
623
 
    if test -f $ac_dir/$ac_word; then
624
 
      ac_cv_prog_CC="gcc"
625
 
      break
626
 
    fi
627
 
  done
628
 
  IFS="$ac_save_ifs"
629
 
fi
630
 
fi
631
 
CC="$ac_cv_prog_CC"
 
2029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2030
for as_dir in $PATH
 
2031
do
 
2032
  IFS=$as_save_IFS
 
2033
  test -z "$as_dir" && as_dir=.
 
2034
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2035
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2036
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2037
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2038
    break 2
 
2039
  fi
 
2040
done
 
2041
done
 
2042
IFS=$as_save_IFS
 
2043
 
 
2044
fi
 
2045
fi
 
2046
CC=$ac_cv_prog_CC
632
2047
if test -n "$CC"; then
633
 
  echo "$ac_t""$CC" 1>&6
 
2048
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2049
echo "${ECHO_T}$CC" >&6; }
634
2050
else
635
 
  echo "$ac_t""no" 1>&6
636
 
fi
637
 
 
 
2051
  { echo "$as_me:$LINENO: result: no" >&5
 
2052
echo "${ECHO_T}no" >&6; }
 
2053
fi
 
2054
 
 
2055
 
 
2056
  fi
 
2057
fi
638
2058
if test -z "$CC"; then
639
2059
  # Extract the first word of "cc", so it can be a program name with args.
640
2060
set dummy cc; ac_word=$2
641
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
642
 
echo "configure:643: checking for $ac_word" >&5
643
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
644
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2061
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2062
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2063
if test "${ac_cv_prog_CC+set}" = set; then
 
2064
  echo $ECHO_N "(cached) $ECHO_C" >&6
645
2065
else
646
2066
  if test -n "$CC"; then
647
2067
  ac_cv_prog_CC="$CC" # Let the user override the test.
648
2068
else
649
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
650
2069
  ac_prog_rejected=no
651
 
  ac_dummy="$PATH"
652
 
  for ac_dir in $ac_dummy; do
653
 
    test -z "$ac_dir" && ac_dir=.
654
 
    if test -f $ac_dir/$ac_word; then
655
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
656
 
        ac_prog_rejected=yes
657
 
        continue
658
 
      fi
659
 
      ac_cv_prog_CC="cc"
660
 
      break
661
 
    fi
662
 
  done
663
 
  IFS="$ac_save_ifs"
 
2070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2071
for as_dir in $PATH
 
2072
do
 
2073
  IFS=$as_save_IFS
 
2074
  test -z "$as_dir" && as_dir=.
 
2075
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2076
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2077
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2078
       ac_prog_rejected=yes
 
2079
       continue
 
2080
     fi
 
2081
    ac_cv_prog_CC="cc"
 
2082
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2083
    break 2
 
2084
  fi
 
2085
done
 
2086
done
 
2087
IFS=$as_save_IFS
 
2088
 
664
2089
if test $ac_prog_rejected = yes; then
665
2090
  # We found a bogon in the path, so make sure we never use it.
666
2091
  set dummy $ac_cv_prog_CC
667
2092
  shift
668
 
  if test $# -gt 0; then
 
2093
  if test $# != 0; then
669
2094
    # We chose a different compiler from the bogus one.
670
2095
    # However, it has the same basename, so the bogon will be chosen
671
2096
    # first if we set CC to just the basename; use the full file name.
672
2097
    shift
673
 
    set dummy "$ac_dir/$ac_word" "$@"
674
 
    shift
675
 
    ac_cv_prog_CC="$@"
 
2098
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
676
2099
  fi
677
2100
fi
678
2101
fi
679
2102
fi
680
 
CC="$ac_cv_prog_CC"
 
2103
CC=$ac_cv_prog_CC
681
2104
if test -n "$CC"; then
682
 
  echo "$ac_t""$CC" 1>&6
 
2105
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2106
echo "${ECHO_T}$CC" >&6; }
683
2107
else
684
 
  echo "$ac_t""no" 1>&6
685
 
fi
686
 
 
687
 
  if test -z "$CC"; then
688
 
    case "`uname -s`" in
689
 
    *win32* | *WIN32*)
690
 
      # Extract the first word of "cl", so it can be a program name with args.
691
 
set dummy cl; ac_word=$2
692
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693
 
echo "configure:694: checking for $ac_word" >&5
694
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
695
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2108
  { echo "$as_me:$LINENO: result: no" >&5
 
2109
echo "${ECHO_T}no" >&6; }
 
2110
fi
 
2111
 
 
2112
 
 
2113
fi
 
2114
if test -z "$CC"; then
 
2115
  if test -n "$ac_tool_prefix"; then
 
2116
  for ac_prog in cl.exe
 
2117
  do
 
2118
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2119
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2120
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2122
if test "${ac_cv_prog_CC+set}" = set; then
 
2123
  echo $ECHO_N "(cached) $ECHO_C" >&6
696
2124
else
697
2125
  if test -n "$CC"; then
698
2126
  ac_cv_prog_CC="$CC" # Let the user override the test.
699
2127
else
700
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
701
 
  ac_dummy="$PATH"
702
 
  for ac_dir in $ac_dummy; do
703
 
    test -z "$ac_dir" && ac_dir=.
704
 
    if test -f $ac_dir/$ac_word; then
705
 
      ac_cv_prog_CC="cl"
706
 
      break
 
2128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2129
for as_dir in $PATH
 
2130
do
 
2131
  IFS=$as_save_IFS
 
2132
  test -z "$as_dir" && as_dir=.
 
2133
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2134
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2135
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2136
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2137
    break 2
 
2138
  fi
 
2139
done
 
2140
done
 
2141
IFS=$as_save_IFS
 
2142
 
 
2143
fi
 
2144
fi
 
2145
CC=$ac_cv_prog_CC
 
2146
if test -n "$CC"; then
 
2147
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2148
echo "${ECHO_T}$CC" >&6; }
 
2149
else
 
2150
  { echo "$as_me:$LINENO: result: no" >&5
 
2151
echo "${ECHO_T}no" >&6; }
 
2152
fi
 
2153
 
 
2154
 
 
2155
    test -n "$CC" && break
 
2156
  done
 
2157
fi
 
2158
if test -z "$CC"; then
 
2159
  ac_ct_CC=$CC
 
2160
  for ac_prog in cl.exe
 
2161
do
 
2162
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2163
set dummy $ac_prog; ac_word=$2
 
2164
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2165
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2166
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2167
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2168
else
 
2169
  if test -n "$ac_ct_CC"; then
 
2170
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2171
else
 
2172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2173
for as_dir in $PATH
 
2174
do
 
2175
  IFS=$as_save_IFS
 
2176
  test -z "$as_dir" && as_dir=.
 
2177
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2178
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2179
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2180
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2181
    break 2
 
2182
  fi
 
2183
done
 
2184
done
 
2185
IFS=$as_save_IFS
 
2186
 
 
2187
fi
 
2188
fi
 
2189
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2190
if test -n "$ac_ct_CC"; then
 
2191
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2192
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2193
else
 
2194
  { echo "$as_me:$LINENO: result: no" >&5
 
2195
echo "${ECHO_T}no" >&6; }
 
2196
fi
 
2197
 
 
2198
 
 
2199
  test -n "$ac_ct_CC" && break
 
2200
done
 
2201
 
 
2202
  if test "x$ac_ct_CC" = x; then
 
2203
    CC=""
 
2204
  else
 
2205
    case $cross_compiling:$ac_tool_warned in
 
2206
yes:)
 
2207
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2208
whose name does not start with the host triplet.  If you think this
 
2209
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2210
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2211
whose name does not start with the host triplet.  If you think this
 
2212
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2213
ac_tool_warned=yes ;;
 
2214
esac
 
2215
    CC=$ac_ct_CC
 
2216
  fi
 
2217
fi
 
2218
 
 
2219
fi
 
2220
 
 
2221
 
 
2222
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2223
See \`config.log' for more details." >&5
 
2224
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2225
See \`config.log' for more details." >&2;}
 
2226
   { (exit 1); exit 1; }; }
 
2227
 
 
2228
# Provide some information about the compiler.
 
2229
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2230
ac_compiler=`set X $ac_compile; echo $2`
 
2231
{ (ac_try="$ac_compiler --version >&5"
 
2232
case "(($ac_try" in
 
2233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2234
  *) ac_try_echo=$ac_try;;
 
2235
esac
 
2236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2237
  (eval "$ac_compiler --version >&5") 2>&5
 
2238
  ac_status=$?
 
2239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2240
  (exit $ac_status); }
 
2241
{ (ac_try="$ac_compiler -v >&5"
 
2242
case "(($ac_try" in
 
2243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2244
  *) ac_try_echo=$ac_try;;
 
2245
esac
 
2246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2247
  (eval "$ac_compiler -v >&5") 2>&5
 
2248
  ac_status=$?
 
2249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2250
  (exit $ac_status); }
 
2251
{ (ac_try="$ac_compiler -V >&5"
 
2252
case "(($ac_try" in
 
2253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2254
  *) ac_try_echo=$ac_try;;
 
2255
esac
 
2256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2257
  (eval "$ac_compiler -V >&5") 2>&5
 
2258
  ac_status=$?
 
2259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2260
  (exit $ac_status); }
 
2261
 
 
2262
cat >conftest.$ac_ext <<_ACEOF
 
2263
/* confdefs.h.  */
 
2264
_ACEOF
 
2265
cat confdefs.h >>conftest.$ac_ext
 
2266
cat >>conftest.$ac_ext <<_ACEOF
 
2267
/* end confdefs.h.  */
 
2268
 
 
2269
int
 
2270
main ()
 
2271
{
 
2272
 
 
2273
  ;
 
2274
  return 0;
 
2275
}
 
2276
_ACEOF
 
2277
ac_clean_files_save=$ac_clean_files
 
2278
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2279
# Try to create an executable without -o first, disregard a.out.
 
2280
# It will help us diagnose broken compilers, and finding out an intuition
 
2281
# of exeext.
 
2282
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2283
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2284
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2285
#
 
2286
# List of possible output files, starting from the most likely.
 
2287
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2288
# only as a last resort.  b.out is created by i960 compilers.
 
2289
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2290
#
 
2291
# The IRIX 6 linker writes into existing files which may not be
 
2292
# executable, retaining their permissions.  Remove them first so a
 
2293
# subsequent execution test works.
 
2294
ac_rmfiles=
 
2295
for ac_file in $ac_files
 
2296
do
 
2297
  case $ac_file in
 
2298
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2299
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2300
  esac
 
2301
done
 
2302
rm -f $ac_rmfiles
 
2303
 
 
2304
if { (ac_try="$ac_link_default"
 
2305
case "(($ac_try" in
 
2306
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2307
  *) ac_try_echo=$ac_try;;
 
2308
esac
 
2309
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2310
  (eval "$ac_link_default") 2>&5
 
2311
  ac_status=$?
 
2312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2313
  (exit $ac_status); }; then
 
2314
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2315
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2316
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2317
# so that the user can short-circuit this test for compilers unknown to
 
2318
# Autoconf.
 
2319
for ac_file in $ac_files ''
 
2320
do
 
2321
  test -f "$ac_file" || continue
 
2322
  case $ac_file in
 
2323
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2324
        ;;
 
2325
    [ab].out )
 
2326
        # We found the default executable, but exeext='' is most
 
2327
        # certainly right.
 
2328
        break;;
 
2329
    *.* )
 
2330
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2331
        then :; else
 
2332
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2333
        fi
 
2334
        # We set ac_cv_exeext here because the later test for it is not
 
2335
        # safe: cross compilers may not add the suffix if given an `-o'
 
2336
        # argument, so we may need to know it at that point already.
 
2337
        # Even if this section looks crufty: it has the advantage of
 
2338
        # actually working.
 
2339
        break;;
 
2340
    * )
 
2341
        break;;
 
2342
  esac
 
2343
done
 
2344
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2345
 
 
2346
else
 
2347
  ac_file=''
 
2348
fi
 
2349
 
 
2350
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2351
echo "${ECHO_T}$ac_file" >&6; }
 
2352
if test -z "$ac_file"; then
 
2353
  echo "$as_me: failed program was:" >&5
 
2354
sed 's/^/| /' conftest.$ac_ext >&5
 
2355
 
 
2356
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2357
See \`config.log' for more details." >&5
 
2358
echo "$as_me: error: C compiler cannot create executables
 
2359
See \`config.log' for more details." >&2;}
 
2360
   { (exit 77); exit 77; }; }
 
2361
fi
 
2362
 
 
2363
ac_exeext=$ac_cv_exeext
 
2364
 
 
2365
# Check that the compiler produces executables we can run.  If not, either
 
2366
# the compiler is broken, or we cross compile.
 
2367
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2368
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2369
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2370
# If not cross compiling, check that we can run a simple program.
 
2371
if test "$cross_compiling" != yes; then
 
2372
  if { ac_try='./$ac_file'
 
2373
  { (case "(($ac_try" in
 
2374
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2375
  *) ac_try_echo=$ac_try;;
 
2376
esac
 
2377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2378
  (eval "$ac_try") 2>&5
 
2379
  ac_status=$?
 
2380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2381
  (exit $ac_status); }; }; then
 
2382
    cross_compiling=no
 
2383
  else
 
2384
    if test "$cross_compiling" = maybe; then
 
2385
        cross_compiling=yes
 
2386
    else
 
2387
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2388
If you meant to cross compile, use \`--host'.
 
2389
See \`config.log' for more details." >&5
 
2390
echo "$as_me: error: cannot run C compiled programs.
 
2391
If you meant to cross compile, use \`--host'.
 
2392
See \`config.log' for more details." >&2;}
 
2393
   { (exit 1); exit 1; }; }
707
2394
    fi
708
 
  done
709
 
  IFS="$ac_save_ifs"
710
 
fi
711
 
fi
712
 
CC="$ac_cv_prog_CC"
713
 
if test -n "$CC"; then
714
 
  echo "$ac_t""$CC" 1>&6
715
 
else
716
 
  echo "$ac_t""no" 1>&6
717
 
fi
718
 
 ;;
719
 
    esac
720
 
  fi
721
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
722
 
fi
723
 
 
724
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
725
 
echo "configure:726: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
726
 
 
727
 
ac_ext=c
728
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
729
 
ac_cpp='$CPP $CPPFLAGS'
730
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
731
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
732
 
cross_compiling=$ac_cv_prog_cc_cross
733
 
 
734
 
cat > conftest.$ac_ext << EOF
735
 
 
736
 
#line 737 "configure"
737
 
#include "confdefs.h"
738
 
 
739
 
main(){return(0);}
740
 
EOF
741
 
if { (eval echo configure:742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
742
 
  ac_cv_prog_cc_works=yes
743
 
  # If we can't run a trivial program, we are probably using a cross compiler.
744
 
  if (./conftest; exit) 2>/dev/null; then
745
 
    ac_cv_prog_cc_cross=no
746
 
  else
747
 
    ac_cv_prog_cc_cross=yes
748
 
  fi
749
 
else
750
 
  echo "configure: failed program was:" >&5
751
 
  cat conftest.$ac_ext >&5
752
 
  ac_cv_prog_cc_works=no
753
 
fi
754
 
rm -fr conftest*
755
 
ac_ext=c
756
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
757
 
ac_cpp='$CPP $CPPFLAGS'
758
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
759
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
760
 
cross_compiling=$ac_cv_prog_cc_cross
761
 
 
762
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
763
 
if test $ac_cv_prog_cc_works = no; then
764
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
765
 
fi
766
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
767
 
echo "configure:768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
768
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
769
 
cross_compiling=$ac_cv_prog_cc_cross
770
 
 
771
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
772
 
echo "configure:773: checking whether we are using GNU C" >&5
773
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
774
 
  echo $ac_n "(cached) $ac_c" 1>&6
775
 
else
776
 
  cat > conftest.c <<EOF
777
 
#ifdef __GNUC__
778
 
  yes;
 
2395
  fi
 
2396
fi
 
2397
{ echo "$as_me:$LINENO: result: yes" >&5
 
2398
echo "${ECHO_T}yes" >&6; }
 
2399
 
 
2400
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2401
ac_clean_files=$ac_clean_files_save
 
2402
# Check that the compiler produces executables we can run.  If not, either
 
2403
# the compiler is broken, or we cross compile.
 
2404
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2405
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2406
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2407
echo "${ECHO_T}$cross_compiling" >&6; }
 
2408
 
 
2409
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2410
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2411
if { (ac_try="$ac_link"
 
2412
case "(($ac_try" in
 
2413
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2414
  *) ac_try_echo=$ac_try;;
 
2415
esac
 
2416
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2417
  (eval "$ac_link") 2>&5
 
2418
  ac_status=$?
 
2419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2420
  (exit $ac_status); }; then
 
2421
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2422
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2423
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2424
# `rm'.
 
2425
for ac_file in conftest.exe conftest conftest.*; do
 
2426
  test -f "$ac_file" || continue
 
2427
  case $ac_file in
 
2428
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2429
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2430
          break;;
 
2431
    * ) break;;
 
2432
  esac
 
2433
done
 
2434
else
 
2435
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2436
See \`config.log' for more details." >&5
 
2437
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2438
See \`config.log' for more details." >&2;}
 
2439
   { (exit 1); exit 1; }; }
 
2440
fi
 
2441
 
 
2442
rm -f conftest$ac_cv_exeext
 
2443
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2444
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2445
 
 
2446
rm -f conftest.$ac_ext
 
2447
EXEEXT=$ac_cv_exeext
 
2448
ac_exeext=$EXEEXT
 
2449
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2450
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2451
if test "${ac_cv_objext+set}" = set; then
 
2452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2453
else
 
2454
  cat >conftest.$ac_ext <<_ACEOF
 
2455
/* confdefs.h.  */
 
2456
_ACEOF
 
2457
cat confdefs.h >>conftest.$ac_ext
 
2458
cat >>conftest.$ac_ext <<_ACEOF
 
2459
/* end confdefs.h.  */
 
2460
 
 
2461
int
 
2462
main ()
 
2463
{
 
2464
 
 
2465
  ;
 
2466
  return 0;
 
2467
}
 
2468
_ACEOF
 
2469
rm -f conftest.o conftest.obj
 
2470
if { (ac_try="$ac_compile"
 
2471
case "(($ac_try" in
 
2472
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2473
  *) ac_try_echo=$ac_try;;
 
2474
esac
 
2475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2476
  (eval "$ac_compile") 2>&5
 
2477
  ac_status=$?
 
2478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2479
  (exit $ac_status); }; then
 
2480
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2481
  test -f "$ac_file" || continue;
 
2482
  case $ac_file in
 
2483
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2484
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2485
       break;;
 
2486
  esac
 
2487
done
 
2488
else
 
2489
  echo "$as_me: failed program was:" >&5
 
2490
sed 's/^/| /' conftest.$ac_ext >&5
 
2491
 
 
2492
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2493
See \`config.log' for more details." >&5
 
2494
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2495
See \`config.log' for more details." >&2;}
 
2496
   { (exit 1); exit 1; }; }
 
2497
fi
 
2498
 
 
2499
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2500
fi
 
2501
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2502
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2503
OBJEXT=$ac_cv_objext
 
2504
ac_objext=$OBJEXT
 
2505
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2506
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
2507
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2509
else
 
2510
  cat >conftest.$ac_ext <<_ACEOF
 
2511
/* confdefs.h.  */
 
2512
_ACEOF
 
2513
cat confdefs.h >>conftest.$ac_ext
 
2514
cat >>conftest.$ac_ext <<_ACEOF
 
2515
/* end confdefs.h.  */
 
2516
 
 
2517
int
 
2518
main ()
 
2519
{
 
2520
#ifndef __GNUC__
 
2521
       choke me
779
2522
#endif
780
 
EOF
781
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
782
 
  ac_cv_prog_gcc=yes
783
 
else
784
 
  ac_cv_prog_gcc=no
785
 
fi
786
 
fi
787
 
 
788
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
789
 
 
790
 
if test $ac_cv_prog_gcc = yes; then
791
 
  GCC=yes
792
 
else
793
 
  GCC=
794
 
fi
795
 
 
796
 
ac_test_CFLAGS="${CFLAGS+set}"
797
 
ac_save_CFLAGS="$CFLAGS"
798
 
CFLAGS=
799
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
800
 
echo "configure:801: checking whether ${CC-cc} accepts -g" >&5
801
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
802
 
  echo $ac_n "(cached) $ac_c" 1>&6
803
 
else
804
 
  echo 'void f(){}' > conftest.c
805
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
806
 
  ac_cv_prog_cc_g=yes
807
 
else
808
 
  ac_cv_prog_cc_g=no
809
 
fi
810
 
rm -f conftest*
811
 
 
812
 
fi
813
 
 
814
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
2523
 
 
2524
  ;
 
2525
  return 0;
 
2526
}
 
2527
_ACEOF
 
2528
rm -f conftest.$ac_objext
 
2529
if { (ac_try="$ac_compile"
 
2530
case "(($ac_try" in
 
2531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2532
  *) ac_try_echo=$ac_try;;
 
2533
esac
 
2534
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2535
  (eval "$ac_compile") 2>conftest.er1
 
2536
  ac_status=$?
 
2537
  grep -v '^ *+' conftest.er1 >conftest.err
 
2538
  rm -f conftest.er1
 
2539
  cat conftest.err >&5
 
2540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2541
  (exit $ac_status); } && {
 
2542
         test -z "$ac_c_werror_flag" ||
 
2543
         test ! -s conftest.err
 
2544
       } && test -s conftest.$ac_objext; then
 
2545
  ac_compiler_gnu=yes
 
2546
else
 
2547
  echo "$as_me: failed program was:" >&5
 
2548
sed 's/^/| /' conftest.$ac_ext >&5
 
2549
 
 
2550
        ac_compiler_gnu=no
 
2551
fi
 
2552
 
 
2553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2554
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2555
 
 
2556
fi
 
2557
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2558
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
2559
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2560
ac_test_CFLAGS=${CFLAGS+set}
 
2561
ac_save_CFLAGS=$CFLAGS
 
2562
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2563
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
2564
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2566
else
 
2567
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2568
   ac_c_werror_flag=yes
 
2569
   ac_cv_prog_cc_g=no
 
2570
   CFLAGS="-g"
 
2571
   cat >conftest.$ac_ext <<_ACEOF
 
2572
/* confdefs.h.  */
 
2573
_ACEOF
 
2574
cat confdefs.h >>conftest.$ac_ext
 
2575
cat >>conftest.$ac_ext <<_ACEOF
 
2576
/* end confdefs.h.  */
 
2577
 
 
2578
int
 
2579
main ()
 
2580
{
 
2581
 
 
2582
  ;
 
2583
  return 0;
 
2584
}
 
2585
_ACEOF
 
2586
rm -f conftest.$ac_objext
 
2587
if { (ac_try="$ac_compile"
 
2588
case "(($ac_try" in
 
2589
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2590
  *) ac_try_echo=$ac_try;;
 
2591
esac
 
2592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2593
  (eval "$ac_compile") 2>conftest.er1
 
2594
  ac_status=$?
 
2595
  grep -v '^ *+' conftest.er1 >conftest.err
 
2596
  rm -f conftest.er1
 
2597
  cat conftest.err >&5
 
2598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2599
  (exit $ac_status); } && {
 
2600
         test -z "$ac_c_werror_flag" ||
 
2601
         test ! -s conftest.err
 
2602
       } && test -s conftest.$ac_objext; then
 
2603
  ac_cv_prog_cc_g=yes
 
2604
else
 
2605
  echo "$as_me: failed program was:" >&5
 
2606
sed 's/^/| /' conftest.$ac_ext >&5
 
2607
 
 
2608
        CFLAGS=""
 
2609
      cat >conftest.$ac_ext <<_ACEOF
 
2610
/* confdefs.h.  */
 
2611
_ACEOF
 
2612
cat confdefs.h >>conftest.$ac_ext
 
2613
cat >>conftest.$ac_ext <<_ACEOF
 
2614
/* end confdefs.h.  */
 
2615
 
 
2616
int
 
2617
main ()
 
2618
{
 
2619
 
 
2620
  ;
 
2621
  return 0;
 
2622
}
 
2623
_ACEOF
 
2624
rm -f conftest.$ac_objext
 
2625
if { (ac_try="$ac_compile"
 
2626
case "(($ac_try" in
 
2627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2628
  *) ac_try_echo=$ac_try;;
 
2629
esac
 
2630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2631
  (eval "$ac_compile") 2>conftest.er1
 
2632
  ac_status=$?
 
2633
  grep -v '^ *+' conftest.er1 >conftest.err
 
2634
  rm -f conftest.er1
 
2635
  cat conftest.err >&5
 
2636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2637
  (exit $ac_status); } && {
 
2638
         test -z "$ac_c_werror_flag" ||
 
2639
         test ! -s conftest.err
 
2640
       } && test -s conftest.$ac_objext; then
 
2641
  :
 
2642
else
 
2643
  echo "$as_me: failed program was:" >&5
 
2644
sed 's/^/| /' conftest.$ac_ext >&5
 
2645
 
 
2646
        ac_c_werror_flag=$ac_save_c_werror_flag
 
2647
         CFLAGS="-g"
 
2648
         cat >conftest.$ac_ext <<_ACEOF
 
2649
/* confdefs.h.  */
 
2650
_ACEOF
 
2651
cat confdefs.h >>conftest.$ac_ext
 
2652
cat >>conftest.$ac_ext <<_ACEOF
 
2653
/* end confdefs.h.  */
 
2654
 
 
2655
int
 
2656
main ()
 
2657
{
 
2658
 
 
2659
  ;
 
2660
  return 0;
 
2661
}
 
2662
_ACEOF
 
2663
rm -f conftest.$ac_objext
 
2664
if { (ac_try="$ac_compile"
 
2665
case "(($ac_try" in
 
2666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2667
  *) ac_try_echo=$ac_try;;
 
2668
esac
 
2669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2670
  (eval "$ac_compile") 2>conftest.er1
 
2671
  ac_status=$?
 
2672
  grep -v '^ *+' conftest.er1 >conftest.err
 
2673
  rm -f conftest.er1
 
2674
  cat conftest.err >&5
 
2675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2676
  (exit $ac_status); } && {
 
2677
         test -z "$ac_c_werror_flag" ||
 
2678
         test ! -s conftest.err
 
2679
       } && test -s conftest.$ac_objext; then
 
2680
  ac_cv_prog_cc_g=yes
 
2681
else
 
2682
  echo "$as_me: failed program was:" >&5
 
2683
sed 's/^/| /' conftest.$ac_ext >&5
 
2684
 
 
2685
 
 
2686
fi
 
2687
 
 
2688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2689
fi
 
2690
 
 
2691
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2692
fi
 
2693
 
 
2694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2695
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2696
fi
 
2697
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2698
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
815
2699
if test "$ac_test_CFLAGS" = set; then
816
 
  CFLAGS="$ac_save_CFLAGS"
 
2700
  CFLAGS=$ac_save_CFLAGS
817
2701
elif test $ac_cv_prog_cc_g = yes; then
818
2702
  if test "$GCC" = yes; then
819
2703
    CFLAGS="-g -O2"
827
2711
    CFLAGS=
828
2712
  fi
829
2713
fi
830
 
 
831
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
832
 
echo "configure:833: checking whether ${MAKE-make} sets \${MAKE}" >&5
833
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
834
 
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
835
 
  echo $ac_n "(cached) $ac_c" 1>&6
836
 
else
837
 
  cat > conftestmake <<\EOF
 
2714
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
2715
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
2716
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
2717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2718
else
 
2719
  ac_cv_prog_cc_c89=no
 
2720
ac_save_CC=$CC
 
2721
cat >conftest.$ac_ext <<_ACEOF
 
2722
/* confdefs.h.  */
 
2723
_ACEOF
 
2724
cat confdefs.h >>conftest.$ac_ext
 
2725
cat >>conftest.$ac_ext <<_ACEOF
 
2726
/* end confdefs.h.  */
 
2727
#include <stdarg.h>
 
2728
#include <stdio.h>
 
2729
#include <sys/types.h>
 
2730
#include <sys/stat.h>
 
2731
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2732
struct buf { int x; };
 
2733
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2734
static char *e (p, i)
 
2735
     char **p;
 
2736
     int i;
 
2737
{
 
2738
  return p[i];
 
2739
}
 
2740
static char *f (char * (*g) (char **, int), char **p, ...)
 
2741
{
 
2742
  char *s;
 
2743
  va_list v;
 
2744
  va_start (v,p);
 
2745
  s = g (p, va_arg (v,int));
 
2746
  va_end (v);
 
2747
  return s;
 
2748
}
 
2749
 
 
2750
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2751
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2752
   These don't provoke an error unfortunately, instead are silently treated
 
2753
   as 'x'.  The following induces an error, until -std is added to get
 
2754
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2755
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2756
   that's true only with -std.  */
 
2757
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2758
 
 
2759
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2760
   inside strings and character constants.  */
 
2761
#define FOO(x) 'x'
 
2762
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2763
 
 
2764
int test (int i, double x);
 
2765
struct s1 {int (*f) (int a);};
 
2766
struct s2 {int (*f) (double a);};
 
2767
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2768
int argc;
 
2769
char **argv;
 
2770
int
 
2771
main ()
 
2772
{
 
2773
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2774
  ;
 
2775
  return 0;
 
2776
}
 
2777
_ACEOF
 
2778
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2779
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2780
do
 
2781
  CC="$ac_save_CC $ac_arg"
 
2782
  rm -f conftest.$ac_objext
 
2783
if { (ac_try="$ac_compile"
 
2784
case "(($ac_try" in
 
2785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2786
  *) ac_try_echo=$ac_try;;
 
2787
esac
 
2788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2789
  (eval "$ac_compile") 2>conftest.er1
 
2790
  ac_status=$?
 
2791
  grep -v '^ *+' conftest.er1 >conftest.err
 
2792
  rm -f conftest.er1
 
2793
  cat conftest.err >&5
 
2794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2795
  (exit $ac_status); } && {
 
2796
         test -z "$ac_c_werror_flag" ||
 
2797
         test ! -s conftest.err
 
2798
       } && test -s conftest.$ac_objext; then
 
2799
  ac_cv_prog_cc_c89=$ac_arg
 
2800
else
 
2801
  echo "$as_me: failed program was:" >&5
 
2802
sed 's/^/| /' conftest.$ac_ext >&5
 
2803
 
 
2804
 
 
2805
fi
 
2806
 
 
2807
rm -f core conftest.err conftest.$ac_objext
 
2808
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2809
done
 
2810
rm -f conftest.$ac_ext
 
2811
CC=$ac_save_CC
 
2812
 
 
2813
fi
 
2814
# AC_CACHE_VAL
 
2815
case "x$ac_cv_prog_cc_c89" in
 
2816
  x)
 
2817
    { echo "$as_me:$LINENO: result: none needed" >&5
 
2818
echo "${ECHO_T}none needed" >&6; } ;;
 
2819
  xno)
 
2820
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
2821
echo "${ECHO_T}unsupported" >&6; } ;;
 
2822
  *)
 
2823
    CC="$CC $ac_cv_prog_cc_c89"
 
2824
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
2825
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
2826
esac
 
2827
 
 
2828
 
 
2829
ac_ext=c
 
2830
ac_cpp='$CPP $CPPFLAGS'
 
2831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2834
 
 
2835
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2836
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2837
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2838
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2840
else
 
2841
  cat >conftest.make <<\_ACEOF
 
2842
SHELL = /bin/sh
838
2843
all:
839
 
        @echo 'ac_maketemp="${MAKE}"'
840
 
EOF
 
2844
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2845
_ACEOF
841
2846
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
842
 
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
843
 
if test -n "$ac_maketemp"; then
844
 
  eval ac_cv_prog_make_${ac_make}_set=yes
845
 
else
846
 
  eval ac_cv_prog_make_${ac_make}_set=no
847
 
fi
848
 
rm -f conftestmake
849
 
fi
850
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
851
 
  echo "$ac_t""yes" 1>&6
 
2847
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2848
  *@@@%%%=?*=@@@%%%*)
 
2849
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2850
  *)
 
2851
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2852
esac
 
2853
rm -f conftest.make
 
2854
fi
 
2855
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2856
  { echo "$as_me:$LINENO: result: yes" >&5
 
2857
echo "${ECHO_T}yes" >&6; }
852
2858
  SET_MAKE=
853
2859
else
854
 
  echo "$ac_t""no" 1>&6
 
2860
  { echo "$as_me:$LINENO: result: no" >&5
 
2861
echo "${ECHO_T}no" >&6; }
855
2862
  SET_MAKE="MAKE=${MAKE-make}"
856
2863
fi
857
2864
 
862
2869
# SunOS /usr/etc/install
863
2870
# IRIX /sbin/install
864
2871
# AIX /bin/install
 
2872
# AmigaOS /C/install, which installs bootblocks on floppy discs
865
2873
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
866
2874
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
867
2875
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2876
# OS/2's system install, which has a completely different semantic
868
2877
# ./install, which can be erroneously created by make from ./install.sh.
869
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
870
 
echo "configure:871: checking for a BSD compatible install" >&5
 
2878
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2879
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
871
2880
if test -z "$INSTALL"; then
872
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
873
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2881
if test "${ac_cv_path_install+set}" = set; then
 
2882
  echo $ECHO_N "(cached) $ECHO_C" >&6
874
2883
else
875
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
876
 
  for ac_dir in $PATH; do
877
 
    # Account for people who put trailing slashes in PATH elements.
878
 
    case "$ac_dir/" in
879
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
880
 
    *)
881
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
882
 
      # Don't use installbsd from OSF since it installs stuff as root
883
 
      # by default.
884
 
      for ac_prog in ginstall scoinst install; do
885
 
        if test -f $ac_dir/$ac_prog; then
 
2884
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2885
for as_dir in $PATH
 
2886
do
 
2887
  IFS=$as_save_IFS
 
2888
  test -z "$as_dir" && as_dir=.
 
2889
  # Account for people who put trailing slashes in PATH elements.
 
2890
case $as_dir/ in
 
2891
  ./ | .// | /cC/* | \
 
2892
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2893
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2894
  /usr/ucb/* ) ;;
 
2895
  *)
 
2896
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2897
    # Don't use installbsd from OSF since it installs stuff as root
 
2898
    # by default.
 
2899
    for ac_prog in ginstall scoinst install; do
 
2900
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2901
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
886
2902
          if test $ac_prog = install &&
887
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
2903
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
888
2904
            # AIX install.  It has an incompatible calling convention.
889
2905
            :
 
2906
          elif test $ac_prog = install &&
 
2907
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2908
            # program-specific install script used by HP pwplus--don't use.
 
2909
            :
890
2910
          else
891
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
892
 
            break 2
 
2911
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2912
            break 3
893
2913
          fi
894
2914
        fi
895
2915
      done
896
 
      ;;
897
 
    esac
898
 
  done
899
 
  IFS="$ac_save_IFS"
 
2916
    done
 
2917
    ;;
 
2918
esac
 
2919
done
 
2920
IFS=$as_save_IFS
 
2921
 
900
2922
 
901
2923
fi
902
2924
  if test "${ac_cv_path_install+set}" = set; then
903
 
    INSTALL="$ac_cv_path_install"
 
2925
    INSTALL=$ac_cv_path_install
904
2926
  else
905
 
    # As a last resort, use the slow shell script.  We don't cache a
906
 
    # path for INSTALL within a source directory, because that will
 
2927
    # As a last resort, use the slow shell script.  Don't cache a
 
2928
    # value for INSTALL within a source directory, because that will
907
2929
    # break other packages using the cache if that directory is
908
 
    # removed, or if the path is relative.
909
 
    INSTALL="$ac_install_sh"
 
2930
    # removed, or if the value is a relative name.
 
2931
    INSTALL=$ac_install_sh
910
2932
  fi
911
2933
fi
912
 
echo "$ac_t""$INSTALL" 1>&6
 
2934
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2935
echo "${ECHO_T}$INSTALL" >&6; }
913
2936
 
914
2937
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
915
2938
# It thinks the first close brace ends the variable substitution.
916
2939
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
917
2940
 
918
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
2941
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
919
2942
 
920
2943
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
921
2944
 
930
2953
 
931
2954
 
932
2955
XPATH="$prefix/bin:$PATH"
933
 
        
934
 
 
935
 
 
936
 
# Check whether --enable-release or --disable-release was given.
 
2956
 
 
2957
 
 
2958
 
 
2959
# Check whether --enable-release was given.
937
2960
if test "${enable_release+set}" = set; then
938
 
  enableval="$enable_release"
939
 
  CFLAGS="-O6"
 
2961
  enableval=$enable_release; CFLAGS="-O6"
940
2962
fi
941
2963
 
942
2964
 
943
 
# Check whether --enable-debug or --disable-debug was given.
 
2965
# Check whether --enable-debug was given.
944
2966
if test "${enable_debug+set}" = set; then
945
 
  enableval="$enable_debug"
946
 
  
 
2967
  enableval=$enable_debug;
947
2968
        CFLAGS="-g"; debug_flags="-DDEBUG"
948
2969
fi
949
2970
 
950
 
              
951
 
# Check whether --enable-install or --disable-install was given.
 
2971
 
 
2972
# Check whether --enable-install was given.
952
2973
if test "${enable_install+set}" = set; then
953
 
  enableval="$enable_install"
954
 
  installuser=$enable_install
 
2974
  enableval=$enable_install; installuser=$enable_install
955
2975
fi
956
2976
 
957
2977
: ${installuser:=root}
958
2978
 
959
 
# Check whether --enable-syslog or --disable-syslog was given.
 
2979
# Check whether --enable-syslog was given.
960
2980
if test "${enable_syslog+set}" = set; then
961
 
  enableval="$enable_syslog"
962
 
  cat >> confdefs.h <<\EOF
 
2981
  enableval=$enable_syslog; cat >>confdefs.h <<\_ACEOF
963
2982
#define USE_SYSLOG 1
964
 
EOF
 
2983
_ACEOF
965
2984
 
966
2985
fi
967
2986
 
968
2987
 
969
 
# Check whether --enable-tcpwrappers or --disable-tcpwrappers was given.
 
2988
# Check whether --enable-tcpwrappers was given.
970
2989
if test "${enable_tcpwrappers+set}" = set; then
971
 
  enableval="$enable_tcpwrappers"
972
 
  test "$enable_tcpwrappers" = "yes" && libwrap="-lwrap"
 
2990
  enableval=$enable_tcpwrappers; test "$enable_tcpwrappers" = "yes" && libwrap="-lwrap"
973
2991
fi
974
2992
 
975
 
        
976
 
        
 
2993
 
 
2994
 
977
2995
 
978
2996
 
979
2997
 
980
2998
# Extract the first word of "libopenvas-config", so it can be a program name with args.
981
2999
set dummy libopenvas-config; ac_word=$2
982
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983
 
echo "configure:984: checking for $ac_word" >&5
984
 
if eval "test \"`echo '$''{'ac_cv_path_LIBOPENVASCONFIG'+set}'`\" = set"; then
985
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3000
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3002
if test "${ac_cv_path_LIBOPENVASCONFIG+set}" = set; then
 
3003
  echo $ECHO_N "(cached) $ECHO_C" >&6
986
3004
else
987
 
  case "$LIBOPENVASCONFIG" in
988
 
  /*)
 
3005
  case $LIBOPENVASCONFIG in
 
3006
  [\\/]* | ?:[\\/]*)
989
3007
  ac_cv_path_LIBOPENVASCONFIG="$LIBOPENVASCONFIG" # Let the user override the test with a path.
990
3008
  ;;
991
 
  ?:/*)                  
992
 
  ac_cv_path_LIBOPENVASCONFIG="$LIBOPENVASCONFIG" # Let the user override the test with a dos path.
993
 
  ;;
994
3009
  *)
995
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
996
 
  ac_dummy="$XPATH"
997
 
  for ac_dir in $ac_dummy; do 
998
 
    test -z "$ac_dir" && ac_dir=.
999
 
    if test -f $ac_dir/$ac_word; then
1000
 
      ac_cv_path_LIBOPENVASCONFIG="$ac_dir/$ac_word"
1001
 
      break
1002
 
    fi
1003
 
  done
1004
 
  IFS="$ac_save_ifs"
 
3010
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3011
for as_dir in $XPATH
 
3012
do
 
3013
  IFS=$as_save_IFS
 
3014
  test -z "$as_dir" && as_dir=.
 
3015
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3016
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3017
    ac_cv_path_LIBOPENVASCONFIG="$as_dir/$ac_word$ac_exec_ext"
 
3018
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3019
    break 2
 
3020
  fi
 
3021
done
 
3022
done
 
3023
IFS=$as_save_IFS
 
3024
 
1005
3025
  ;;
1006
3026
esac
1007
3027
fi
1008
 
LIBOPENVASCONFIG="$ac_cv_path_LIBOPENVASCONFIG"
 
3028
LIBOPENVASCONFIG=$ac_cv_path_LIBOPENVASCONFIG
1009
3029
if test -n "$LIBOPENVASCONFIG"; then
1010
 
  echo "$ac_t""$LIBOPENVASCONFIG" 1>&6
 
3030
  { echo "$as_me:$LINENO: result: $LIBOPENVASCONFIG" >&5
 
3031
echo "${ECHO_T}$LIBOPENVASCONFIG" >&6; }
1011
3032
else
1012
 
  echo "$ac_t""no" 1>&6
 
3033
  { echo "$as_me:$LINENO: result: no" >&5
 
3034
echo "${ECHO_T}no" >&6; }
1013
3035
fi
1014
3036
 
1015
3037
 
1016
 
test "x$LIBOPENVASCONFIG" = x && { echo "configure: error: ""
1017
 
""
1018
 
"*** openvas-libraries is not installed ! You need to install it before you"
1019
 
"compile openvas-server."" 1>&2; exit 1; }
 
3038
 
 
3039
test "x$LIBOPENVASCONFIG" = x && { { echo "$as_me:$LINENO: error: \"\"
 
3040
\"\"
 
3041
\"*** openvas-libraries is not installed ! You need to install it before you\"
 
3042
\"compile openvas-server.\"" >&5
 
3043
echo "$as_me: error: \"\"
 
3044
\"\"
 
3045
\"*** openvas-libraries is not installed ! You need to install it before you\"
 
3046
\"compile openvas-server.\"" >&2;}
 
3047
   { (exit 1); exit 1; }; }
1020
3048
 
1021
3049
OPENVASLIBS_VERSION=`$LIBOPENVASCONFIG --version`
1022
3050
 
1051
3079
  fi
1052
3080
fi
1053
3081
if test $ok = no; then
1054
 
{ echo "configure: error: openvas-libraries $OPENVASLIBS_VERSION too old.
1055
 
Minimum required is $NEED_OPENVASLIBS_VERSION .
1056
 
" 1>&2; exit 1; }
 
3082
{ { echo "$as_me:$LINENO: error: openvas-libraries $OPENVASLIBS_VERSION too old.
 
3083
Minimum required is $NEED_OPENVASLIBS_VERSION .
 
3084
" >&5
 
3085
echo "$as_me: error: openvas-libraries $OPENVASLIBS_VERSION too old.
 
3086
Minimum required is $NEED_OPENVASLIBS_VERSION .
 
3087
" >&2;}
 
3088
   { (exit 1); exit 1; }; }
1057
3089
fi
1058
3090
 
1059
3091
 
1060
3092
# Extract the first word of "openvas-libnasl-config", so it can be a program name with args.
1061
3093
set dummy openvas-libnasl-config; ac_word=$2
1062
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063
 
echo "configure:1064: checking for $ac_word" >&5
1064
 
if eval "test \"`echo '$''{'ac_cv_path_OPENVASLIBNASLCONFIG'+set}'`\" = set"; then
1065
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3094
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3095
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3096
if test "${ac_cv_path_OPENVASLIBNASLCONFIG+set}" = set; then
 
3097
  echo $ECHO_N "(cached) $ECHO_C" >&6
1066
3098
else
1067
 
  case "$OPENVASLIBNASLCONFIG" in
1068
 
  /*)
 
3099
  case $OPENVASLIBNASLCONFIG in
 
3100
  [\\/]* | ?:[\\/]*)
1069
3101
  ac_cv_path_OPENVASLIBNASLCONFIG="$OPENVASLIBNASLCONFIG" # Let the user override the test with a path.
1070
3102
  ;;
1071
 
  ?:/*)                  
1072
 
  ac_cv_path_OPENVASLIBNASLCONFIG="$OPENVASLIBNASLCONFIG" # Let the user override the test with a dos path.
1073
 
  ;;
1074
3103
  *)
1075
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1076
 
  ac_dummy="$XPATH"
1077
 
  for ac_dir in $ac_dummy; do 
1078
 
    test -z "$ac_dir" && ac_dir=.
1079
 
    if test -f $ac_dir/$ac_word; then
1080
 
      ac_cv_path_OPENVASLIBNASLCONFIG="$ac_dir/$ac_word"
1081
 
      break
1082
 
    fi
1083
 
  done
1084
 
  IFS="$ac_save_ifs"
 
3104
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3105
for as_dir in $XPATH
 
3106
do
 
3107
  IFS=$as_save_IFS
 
3108
  test -z "$as_dir" && as_dir=.
 
3109
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3110
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3111
    ac_cv_path_OPENVASLIBNASLCONFIG="$as_dir/$ac_word$ac_exec_ext"
 
3112
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3113
    break 2
 
3114
  fi
 
3115
done
 
3116
done
 
3117
IFS=$as_save_IFS
 
3118
 
1085
3119
  ;;
1086
3120
esac
1087
3121
fi
1088
 
OPENVASLIBNASLCONFIG="$ac_cv_path_OPENVASLIBNASLCONFIG"
 
3122
OPENVASLIBNASLCONFIG=$ac_cv_path_OPENVASLIBNASLCONFIG
1089
3123
if test -n "$OPENVASLIBNASLCONFIG"; then
1090
 
  echo "$ac_t""$OPENVASLIBNASLCONFIG" 1>&6
 
3124
  { echo "$as_me:$LINENO: result: $OPENVASLIBNASLCONFIG" >&5
 
3125
echo "${ECHO_T}$OPENVASLIBNASLCONFIG" >&6; }
1091
3126
else
1092
 
  echo "$ac_t""no" 1>&6
 
3127
  { echo "$as_me:$LINENO: result: no" >&5
 
3128
echo "${ECHO_T}no" >&6; }
1093
3129
fi
1094
3130
 
1095
3131
 
1096
 
test "x$OPENVASLIBNASLCONFIG" = x &&  { echo "configure: error: ""
1097
 
""
1098
 
"*** openvas-libnasl is not installed ! You need to install it before you "
1099
 
"compile openvas-server."" 1>&2; exit 1; }
 
3132
 
 
3133
test "x$OPENVASLIBNASLCONFIG" = x &&  { { echo "$as_me:$LINENO: error: \"\"
 
3134
\"\"
 
3135
\"*** openvas-libnasl is not installed ! You need to install it before you \"
 
3136
\"compile openvas-server.\"" >&5
 
3137
echo "$as_me: error: \"\"
 
3138
\"\"
 
3139
\"*** openvas-libnasl is not installed ! You need to install it before you \"
 
3140
\"compile openvas-server.\"" >&2;}
 
3141
   { (exit 1); exit 1; }; }
1100
3142
 
1101
3143
OPENVASLIBNASL_VERSION=`$OPENVASLIBNASLCONFIG --version`
1102
3144
 
1131
3173
  fi
1132
3174
fi
1133
3175
if test $ok = no; then
1134
 
{ echo "configure: error: openvas-libnasl $OPENVASLIBNASL_VERSION too old.
1135
 
Minimum required is $NEED_OPENVASLIBNASL_VERSION .
1136
 
" 1>&2; exit 1; }
1137
 
fi
 
3176
{ { echo "$as_me:$LINENO: error: openvas-libnasl $OPENVASLIBNASL_VERSION too old.
 
3177
Minimum required is $NEED_OPENVASLIBNASL_VERSION .
 
3178
" >&5
 
3179
echo "$as_me: error: openvas-libnasl $OPENVASLIBNASL_VERSION too old.
 
3180
Minimum required is $NEED_OPENVASLIBNASL_VERSION .
 
3181
" >&2;}
 
3182
   { (exit 1); exit 1; }; }
 
3183
fi
 
3184
 
 
3185
 
 
3186
 
 
3187
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
3188
        if test -n "$ac_tool_prefix"; then
 
3189
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
3190
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
3191
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3192
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3193
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
3194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3195
else
 
3196
  case $PKG_CONFIG in
 
3197
  [\\/]* | ?:[\\/]*)
 
3198
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
3199
  ;;
 
3200
  *)
 
3201
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3202
for as_dir in $PATH
 
3203
do
 
3204
  IFS=$as_save_IFS
 
3205
  test -z "$as_dir" && as_dir=.
 
3206
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3207
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3208
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
3209
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3210
    break 2
 
3211
  fi
 
3212
done
 
3213
done
 
3214
IFS=$as_save_IFS
 
3215
 
 
3216
  ;;
 
3217
esac
 
3218
fi
 
3219
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
3220
if test -n "$PKG_CONFIG"; then
 
3221
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
3222
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
3223
else
 
3224
  { echo "$as_me:$LINENO: result: no" >&5
 
3225
echo "${ECHO_T}no" >&6; }
 
3226
fi
 
3227
 
 
3228
 
 
3229
fi
 
3230
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
3231
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
3232
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
3233
set dummy pkg-config; ac_word=$2
 
3234
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3235
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3236
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
3237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3238
else
 
3239
  case $ac_pt_PKG_CONFIG in
 
3240
  [\\/]* | ?:[\\/]*)
 
3241
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
3242
  ;;
 
3243
  *)
 
3244
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3245
for as_dir in $PATH
 
3246
do
 
3247
  IFS=$as_save_IFS
 
3248
  test -z "$as_dir" && as_dir=.
 
3249
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3250
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3251
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
3252
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3253
    break 2
 
3254
  fi
 
3255
done
 
3256
done
 
3257
IFS=$as_save_IFS
 
3258
 
 
3259
  ;;
 
3260
esac
 
3261
fi
 
3262
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
3263
if test -n "$ac_pt_PKG_CONFIG"; then
 
3264
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
3265
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
3266
else
 
3267
  { echo "$as_me:$LINENO: result: no" >&5
 
3268
echo "${ECHO_T}no" >&6; }
 
3269
fi
 
3270
 
 
3271
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
3272
    PKG_CONFIG=""
 
3273
  else
 
3274
    case $cross_compiling:$ac_tool_warned in
 
3275
yes:)
 
3276
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3277
whose name does not start with the host triplet.  If you think this
 
3278
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3279
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3280
whose name does not start with the host triplet.  If you think this
 
3281
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3282
ac_tool_warned=yes ;;
 
3283
esac
 
3284
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
3285
  fi
 
3286
else
 
3287
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
3288
fi
 
3289
 
 
3290
fi
 
3291
if test -n "$PKG_CONFIG"; then
 
3292
        _pkg_min_version=0.9.0
 
3293
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
3294
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
3295
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
3296
                { echo "$as_me:$LINENO: result: yes" >&5
 
3297
echo "${ECHO_T}yes" >&6; }
 
3298
        else
 
3299
                { echo "$as_me:$LINENO: result: no" >&5
 
3300
echo "${ECHO_T}no" >&6; }
 
3301
                PKG_CONFIG=""
 
3302
        fi
 
3303
 
 
3304
fi
 
3305
 
 
3306
pkg_failed=no
 
3307
{ echo "$as_me:$LINENO: checking for GLIB" >&5
 
3308
echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
 
3309
 
 
3310
if test -n "$PKG_CONFIG"; then
 
3311
    if test -n "$GLIB_CFLAGS"; then
 
3312
        pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
 
3313
    else
 
3314
        if test -n "$PKG_CONFIG" && \
 
3315
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6.0\"") >&5
 
3316
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6.0") 2>&5
 
3317
  ac_status=$?
 
3318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3319
  (exit $ac_status); }; then
 
3320
  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.6.0" 2>/dev/null`
 
3321
else
 
3322
  pkg_failed=yes
 
3323
fi
 
3324
    fi
 
3325
else
 
3326
        pkg_failed=untried
 
3327
fi
 
3328
if test -n "$PKG_CONFIG"; then
 
3329
    if test -n "$GLIB_LIBS"; then
 
3330
        pkg_cv_GLIB_LIBS="$GLIB_LIBS"
 
3331
    else
 
3332
        if test -n "$PKG_CONFIG" && \
 
3333
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6.0\"") >&5
 
3334
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6.0") 2>&5
 
3335
  ac_status=$?
 
3336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3337
  (exit $ac_status); }; then
 
3338
  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.6.0" 2>/dev/null`
 
3339
else
 
3340
  pkg_failed=yes
 
3341
fi
 
3342
    fi
 
3343
else
 
3344
        pkg_failed=untried
 
3345
fi
 
3346
 
 
3347
 
 
3348
 
 
3349
if test $pkg_failed = yes; then
 
3350
 
 
3351
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
3352
        _pkg_short_errors_supported=yes
 
3353
else
 
3354
        _pkg_short_errors_supported=no
 
3355
fi
 
3356
        if test $_pkg_short_errors_supported = yes; then
 
3357
                GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.6.0"`
 
3358
        else
 
3359
                GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.6.0"`
 
3360
        fi
 
3361
        # Put the nasty error message in config.log where it belongs
 
3362
        echo "$GLIB_PKG_ERRORS" >&5
 
3363
 
 
3364
        { echo "$as_me:$LINENO: result: no" >&5
 
3365
echo "${ECHO_T}no" >&6; }
 
3366
                { { echo "$as_me:$LINENO: error: \"glib >= 2.6.0 not found\"" >&5
 
3367
echo "$as_me: error: \"glib >= 2.6.0 not found\"" >&2;}
 
3368
   { (exit 1); exit 1; }; }
 
3369
elif test $pkg_failed = untried; then
 
3370
        { { echo "$as_me:$LINENO: error: \"glib >= 2.6.0 not found\"" >&5
 
3371
echo "$as_me: error: \"glib >= 2.6.0 not found\"" >&2;}
 
3372
   { (exit 1); exit 1; }; }
 
3373
else
 
3374
        GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
 
3375
        GLIB_LIBS=$pkg_cv_GLIB_LIBS
 
3376
        { echo "$as_me:$LINENO: result: yes" >&5
 
3377
echo "${ECHO_T}yes" >&6; }
 
3378
        HAVE_GLIB="yes"
 
3379
fi
 
3380
 
 
3381
 
1138
3382
 
1139
3383
OVSCFLAGS="`$LIBOPENVASCONFIG --cflags`"
1140
3384
NASLCFLAGS="`$OPENVASLIBNASLCONFIG --cflags`"
1146
3390
saveCFLAGS="$CFLAGS"
1147
3391
CFLAGS="$CFLAGS $OVSCFLAGS $NASLCFLAGS"
1148
3392
 
1149
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1150
 
echo "configure:1151: checking how to run the C preprocessor" >&5
 
3393
 
 
3394
ac_ext=c
 
3395
ac_cpp='$CPP $CPPFLAGS'
 
3396
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3397
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3398
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3399
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3400
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1151
3401
# On Suns, sometimes $CPP names a directory.
1152
3402
if test -n "$CPP" && test -d "$CPP"; then
1153
3403
  CPP=
1154
3404
fi
1155
3405
if test -z "$CPP"; then
1156
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1157
 
  echo $ac_n "(cached) $ac_c" 1>&6
1158
 
else
1159
 
    # This must be in double quotes, not single quotes, because CPP may get
1160
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1161
 
  CPP="${CC-cc} -E"
1162
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
1163
 
  # not just through cpp.
1164
 
  cat > conftest.$ac_ext <<EOF
1165
 
#line 1166 "configure"
1166
 
#include "confdefs.h"
1167
 
#include <assert.h>
1168
 
Syntax Error
1169
 
EOF
1170
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1171
 
{ (eval echo configure:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1172
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1173
 
if test -z "$ac_err"; then
1174
 
  :
1175
 
else
1176
 
  echo "$ac_err" >&5
1177
 
  echo "configure: failed program was:" >&5
1178
 
  cat conftest.$ac_ext >&5
1179
 
  rm -rf conftest*
1180
 
  CPP="${CC-cc} -E -traditional-cpp"
1181
 
  cat > conftest.$ac_ext <<EOF
1182
 
#line 1183 "configure"
1183
 
#include "confdefs.h"
1184
 
#include <assert.h>
1185
 
Syntax Error
1186
 
EOF
1187
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1188
 
{ (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1189
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1190
 
if test -z "$ac_err"; then
1191
 
  :
1192
 
else
1193
 
  echo "$ac_err" >&5
1194
 
  echo "configure: failed program was:" >&5
1195
 
  cat conftest.$ac_ext >&5
1196
 
  rm -rf conftest*
1197
 
  CPP="${CC-cc} -nologo -E"
1198
 
  cat > conftest.$ac_ext <<EOF
1199
 
#line 1200 "configure"
1200
 
#include "confdefs.h"
1201
 
#include <assert.h>
1202
 
Syntax Error
1203
 
EOF
1204
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1205
 
{ (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1206
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1207
 
if test -z "$ac_err"; then
1208
 
  :
1209
 
else
1210
 
  echo "$ac_err" >&5
1211
 
  echo "configure: failed program was:" >&5
1212
 
  cat conftest.$ac_ext >&5
1213
 
  rm -rf conftest*
1214
 
  CPP=/lib/cpp
1215
 
fi
1216
 
rm -f conftest*
1217
 
fi
1218
 
rm -f conftest*
1219
 
fi
1220
 
rm -f conftest*
1221
 
  ac_cv_prog_CPP="$CPP"
1222
 
fi
1223
 
  CPP="$ac_cv_prog_CPP"
1224
 
else
1225
 
  ac_cv_prog_CPP="$CPP"
1226
 
fi
1227
 
echo "$ac_t""$CPP" 1>&6
1228
 
 
1229
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1230
 
echo "configure:1231: checking for ANSI C header files" >&5
1231
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1232
 
  echo $ac_n "(cached) $ac_c" 1>&6
1233
 
else
1234
 
  cat > conftest.$ac_ext <<EOF
1235
 
#line 1236 "configure"
1236
 
#include "confdefs.h"
 
3406
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3408
else
 
3409
      # Double quotes because CPP needs to be expanded
 
3410
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3411
    do
 
3412
      ac_preproc_ok=false
 
3413
for ac_c_preproc_warn_flag in '' yes
 
3414
do
 
3415
  # Use a header file that comes with gcc, so configuring glibc
 
3416
  # with a fresh cross-compiler works.
 
3417
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3418
  # <limits.h> exists even on freestanding compilers.
 
3419
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3420
  # not just through cpp. "Syntax error" is here to catch this case.
 
3421
  cat >conftest.$ac_ext <<_ACEOF
 
3422
/* confdefs.h.  */
 
3423
_ACEOF
 
3424
cat confdefs.h >>conftest.$ac_ext
 
3425
cat >>conftest.$ac_ext <<_ACEOF
 
3426
/* end confdefs.h.  */
 
3427
#ifdef __STDC__
 
3428
# include <limits.h>
 
3429
#else
 
3430
# include <assert.h>
 
3431
#endif
 
3432
                     Syntax error
 
3433
_ACEOF
 
3434
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3435
case "(($ac_try" in
 
3436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3437
  *) ac_try_echo=$ac_try;;
 
3438
esac
 
3439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3440
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3441
  ac_status=$?
 
3442
  grep -v '^ *+' conftest.er1 >conftest.err
 
3443
  rm -f conftest.er1
 
3444
  cat conftest.err >&5
 
3445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3446
  (exit $ac_status); } >/dev/null && {
 
3447
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3448
         test ! -s conftest.err
 
3449
       }; then
 
3450
  :
 
3451
else
 
3452
  echo "$as_me: failed program was:" >&5
 
3453
sed 's/^/| /' conftest.$ac_ext >&5
 
3454
 
 
3455
  # Broken: fails on valid input.
 
3456
continue
 
3457
fi
 
3458
 
 
3459
rm -f conftest.err conftest.$ac_ext
 
3460
 
 
3461
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3462
  # can be detected and how.
 
3463
  cat >conftest.$ac_ext <<_ACEOF
 
3464
/* confdefs.h.  */
 
3465
_ACEOF
 
3466
cat confdefs.h >>conftest.$ac_ext
 
3467
cat >>conftest.$ac_ext <<_ACEOF
 
3468
/* end confdefs.h.  */
 
3469
#include <ac_nonexistent.h>
 
3470
_ACEOF
 
3471
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3472
case "(($ac_try" in
 
3473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3474
  *) ac_try_echo=$ac_try;;
 
3475
esac
 
3476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3477
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3478
  ac_status=$?
 
3479
  grep -v '^ *+' conftest.er1 >conftest.err
 
3480
  rm -f conftest.er1
 
3481
  cat conftest.err >&5
 
3482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3483
  (exit $ac_status); } >/dev/null && {
 
3484
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3485
         test ! -s conftest.err
 
3486
       }; then
 
3487
  # Broken: success on invalid input.
 
3488
continue
 
3489
else
 
3490
  echo "$as_me: failed program was:" >&5
 
3491
sed 's/^/| /' conftest.$ac_ext >&5
 
3492
 
 
3493
  # Passes both tests.
 
3494
ac_preproc_ok=:
 
3495
break
 
3496
fi
 
3497
 
 
3498
rm -f conftest.err conftest.$ac_ext
 
3499
 
 
3500
done
 
3501
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3502
rm -f conftest.err conftest.$ac_ext
 
3503
if $ac_preproc_ok; then
 
3504
  break
 
3505
fi
 
3506
 
 
3507
    done
 
3508
    ac_cv_prog_CPP=$CPP
 
3509
 
 
3510
fi
 
3511
  CPP=$ac_cv_prog_CPP
 
3512
else
 
3513
  ac_cv_prog_CPP=$CPP
 
3514
fi
 
3515
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
3516
echo "${ECHO_T}$CPP" >&6; }
 
3517
ac_preproc_ok=false
 
3518
for ac_c_preproc_warn_flag in '' yes
 
3519
do
 
3520
  # Use a header file that comes with gcc, so configuring glibc
 
3521
  # with a fresh cross-compiler works.
 
3522
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3523
  # <limits.h> exists even on freestanding compilers.
 
3524
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3525
  # not just through cpp. "Syntax error" is here to catch this case.
 
3526
  cat >conftest.$ac_ext <<_ACEOF
 
3527
/* confdefs.h.  */
 
3528
_ACEOF
 
3529
cat confdefs.h >>conftest.$ac_ext
 
3530
cat >>conftest.$ac_ext <<_ACEOF
 
3531
/* end confdefs.h.  */
 
3532
#ifdef __STDC__
 
3533
# include <limits.h>
 
3534
#else
 
3535
# include <assert.h>
 
3536
#endif
 
3537
                     Syntax error
 
3538
_ACEOF
 
3539
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3540
case "(($ac_try" in
 
3541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3542
  *) ac_try_echo=$ac_try;;
 
3543
esac
 
3544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3545
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3546
  ac_status=$?
 
3547
  grep -v '^ *+' conftest.er1 >conftest.err
 
3548
  rm -f conftest.er1
 
3549
  cat conftest.err >&5
 
3550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3551
  (exit $ac_status); } >/dev/null && {
 
3552
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3553
         test ! -s conftest.err
 
3554
       }; then
 
3555
  :
 
3556
else
 
3557
  echo "$as_me: failed program was:" >&5
 
3558
sed 's/^/| /' conftest.$ac_ext >&5
 
3559
 
 
3560
  # Broken: fails on valid input.
 
3561
continue
 
3562
fi
 
3563
 
 
3564
rm -f conftest.err conftest.$ac_ext
 
3565
 
 
3566
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3567
  # can be detected and how.
 
3568
  cat >conftest.$ac_ext <<_ACEOF
 
3569
/* confdefs.h.  */
 
3570
_ACEOF
 
3571
cat confdefs.h >>conftest.$ac_ext
 
3572
cat >>conftest.$ac_ext <<_ACEOF
 
3573
/* end confdefs.h.  */
 
3574
#include <ac_nonexistent.h>
 
3575
_ACEOF
 
3576
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3577
case "(($ac_try" in
 
3578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3579
  *) ac_try_echo=$ac_try;;
 
3580
esac
 
3581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3582
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3583
  ac_status=$?
 
3584
  grep -v '^ *+' conftest.er1 >conftest.err
 
3585
  rm -f conftest.er1
 
3586
  cat conftest.err >&5
 
3587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3588
  (exit $ac_status); } >/dev/null && {
 
3589
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3590
         test ! -s conftest.err
 
3591
       }; then
 
3592
  # Broken: success on invalid input.
 
3593
continue
 
3594
else
 
3595
  echo "$as_me: failed program was:" >&5
 
3596
sed 's/^/| /' conftest.$ac_ext >&5
 
3597
 
 
3598
  # Passes both tests.
 
3599
ac_preproc_ok=:
 
3600
break
 
3601
fi
 
3602
 
 
3603
rm -f conftest.err conftest.$ac_ext
 
3604
 
 
3605
done
 
3606
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3607
rm -f conftest.err conftest.$ac_ext
 
3608
if $ac_preproc_ok; then
 
3609
  :
 
3610
else
 
3611
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3612
See \`config.log' for more details." >&5
 
3613
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3614
See \`config.log' for more details." >&2;}
 
3615
   { (exit 1); exit 1; }; }
 
3616
fi
 
3617
 
 
3618
ac_ext=c
 
3619
ac_cpp='$CPP $CPPFLAGS'
 
3620
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3621
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3622
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3623
 
 
3624
 
 
3625
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3626
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3627
if test "${ac_cv_path_GREP+set}" = set; then
 
3628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3629
else
 
3630
  # Extract the first word of "grep ggrep" to use in msg output
 
3631
if test -z "$GREP"; then
 
3632
set dummy grep ggrep; ac_prog_name=$2
 
3633
if test "${ac_cv_path_GREP+set}" = set; then
 
3634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3635
else
 
3636
  ac_path_GREP_found=false
 
3637
# Loop through the user's path and test for each of PROGNAME-LIST
 
3638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3639
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3640
do
 
3641
  IFS=$as_save_IFS
 
3642
  test -z "$as_dir" && as_dir=.
 
3643
  for ac_prog in grep ggrep; do
 
3644
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3645
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3646
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3647
    # Check for GNU ac_path_GREP and select it if it is found.
 
3648
  # Check for GNU $ac_path_GREP
 
3649
case `"$ac_path_GREP" --version 2>&1` in
 
3650
*GNU*)
 
3651
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3652
*)
 
3653
  ac_count=0
 
3654
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3655
  while :
 
3656
  do
 
3657
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3658
    mv "conftest.tmp" "conftest.in"
 
3659
    cp "conftest.in" "conftest.nl"
 
3660
    echo 'GREP' >> "conftest.nl"
 
3661
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3662
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3663
    ac_count=`expr $ac_count + 1`
 
3664
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3665
      # Best one so far, save it but keep looking for a better one
 
3666
      ac_cv_path_GREP="$ac_path_GREP"
 
3667
      ac_path_GREP_max=$ac_count
 
3668
    fi
 
3669
    # 10*(2^10) chars as input seems more than enough
 
3670
    test $ac_count -gt 10 && break
 
3671
  done
 
3672
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3673
esac
 
3674
 
 
3675
 
 
3676
    $ac_path_GREP_found && break 3
 
3677
  done
 
3678
done
 
3679
 
 
3680
done
 
3681
IFS=$as_save_IFS
 
3682
 
 
3683
 
 
3684
fi
 
3685
 
 
3686
GREP="$ac_cv_path_GREP"
 
3687
if test -z "$GREP"; then
 
3688
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3689
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3690
   { (exit 1); exit 1; }; }
 
3691
fi
 
3692
 
 
3693
else
 
3694
  ac_cv_path_GREP=$GREP
 
3695
fi
 
3696
 
 
3697
 
 
3698
fi
 
3699
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3700
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3701
 GREP="$ac_cv_path_GREP"
 
3702
 
 
3703
 
 
3704
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3705
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3706
if test "${ac_cv_path_EGREP+set}" = set; then
 
3707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3708
else
 
3709
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3710
   then ac_cv_path_EGREP="$GREP -E"
 
3711
   else
 
3712
     # Extract the first word of "egrep" to use in msg output
 
3713
if test -z "$EGREP"; then
 
3714
set dummy egrep; ac_prog_name=$2
 
3715
if test "${ac_cv_path_EGREP+set}" = set; then
 
3716
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3717
else
 
3718
  ac_path_EGREP_found=false
 
3719
# Loop through the user's path and test for each of PROGNAME-LIST
 
3720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3721
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3722
do
 
3723
  IFS=$as_save_IFS
 
3724
  test -z "$as_dir" && as_dir=.
 
3725
  for ac_prog in egrep; do
 
3726
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3727
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3728
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3729
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3730
  # Check for GNU $ac_path_EGREP
 
3731
case `"$ac_path_EGREP" --version 2>&1` in
 
3732
*GNU*)
 
3733
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3734
*)
 
3735
  ac_count=0
 
3736
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3737
  while :
 
3738
  do
 
3739
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3740
    mv "conftest.tmp" "conftest.in"
 
3741
    cp "conftest.in" "conftest.nl"
 
3742
    echo 'EGREP' >> "conftest.nl"
 
3743
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3744
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3745
    ac_count=`expr $ac_count + 1`
 
3746
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3747
      # Best one so far, save it but keep looking for a better one
 
3748
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3749
      ac_path_EGREP_max=$ac_count
 
3750
    fi
 
3751
    # 10*(2^10) chars as input seems more than enough
 
3752
    test $ac_count -gt 10 && break
 
3753
  done
 
3754
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3755
esac
 
3756
 
 
3757
 
 
3758
    $ac_path_EGREP_found && break 3
 
3759
  done
 
3760
done
 
3761
 
 
3762
done
 
3763
IFS=$as_save_IFS
 
3764
 
 
3765
 
 
3766
fi
 
3767
 
 
3768
EGREP="$ac_cv_path_EGREP"
 
3769
if test -z "$EGREP"; then
 
3770
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3771
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3772
   { (exit 1); exit 1; }; }
 
3773
fi
 
3774
 
 
3775
else
 
3776
  ac_cv_path_EGREP=$EGREP
 
3777
fi
 
3778
 
 
3779
 
 
3780
   fi
 
3781
fi
 
3782
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3783
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3784
 EGREP="$ac_cv_path_EGREP"
 
3785
 
 
3786
 
 
3787
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3788
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
3789
if test "${ac_cv_header_stdc+set}" = set; then
 
3790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3791
else
 
3792
  cat >conftest.$ac_ext <<_ACEOF
 
3793
/* confdefs.h.  */
 
3794
_ACEOF
 
3795
cat confdefs.h >>conftest.$ac_ext
 
3796
cat >>conftest.$ac_ext <<_ACEOF
 
3797
/* end confdefs.h.  */
1237
3798
#include <stdlib.h>
1238
3799
#include <stdarg.h>
1239
3800
#include <string.h>
1240
3801
#include <float.h>
1241
 
EOF
1242
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1243
 
{ (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1244
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1245
 
if test -z "$ac_err"; then
1246
 
  rm -rf conftest*
 
3802
 
 
3803
int
 
3804
main ()
 
3805
{
 
3806
 
 
3807
  ;
 
3808
  return 0;
 
3809
}
 
3810
_ACEOF
 
3811
rm -f conftest.$ac_objext
 
3812
if { (ac_try="$ac_compile"
 
3813
case "(($ac_try" in
 
3814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3815
  *) ac_try_echo=$ac_try;;
 
3816
esac
 
3817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3818
  (eval "$ac_compile") 2>conftest.er1
 
3819
  ac_status=$?
 
3820
  grep -v '^ *+' conftest.er1 >conftest.err
 
3821
  rm -f conftest.er1
 
3822
  cat conftest.err >&5
 
3823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3824
  (exit $ac_status); } && {
 
3825
         test -z "$ac_c_werror_flag" ||
 
3826
         test ! -s conftest.err
 
3827
       } && test -s conftest.$ac_objext; then
1247
3828
  ac_cv_header_stdc=yes
1248
3829
else
1249
 
  echo "$ac_err" >&5
1250
 
  echo "configure: failed program was:" >&5
1251
 
  cat conftest.$ac_ext >&5
1252
 
  rm -rf conftest*
1253
 
  ac_cv_header_stdc=no
 
3830
  echo "$as_me: failed program was:" >&5
 
3831
sed 's/^/| /' conftest.$ac_ext >&5
 
3832
 
 
3833
        ac_cv_header_stdc=no
1254
3834
fi
1255
 
rm -f conftest*
 
3835
 
 
3836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1256
3837
 
1257
3838
if test $ac_cv_header_stdc = yes; then
1258
3839
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1259
 
cat > conftest.$ac_ext <<EOF
1260
 
#line 1261 "configure"
1261
 
#include "confdefs.h"
 
3840
  cat >conftest.$ac_ext <<_ACEOF
 
3841
/* confdefs.h.  */
 
3842
_ACEOF
 
3843
cat confdefs.h >>conftest.$ac_ext
 
3844
cat >>conftest.$ac_ext <<_ACEOF
 
3845
/* end confdefs.h.  */
1262
3846
#include <string.h>
1263
 
EOF
 
3847
 
 
3848
_ACEOF
1264
3849
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1265
 
  egrep "memchr" >/dev/null 2>&1; then
 
3850
  $EGREP "memchr" >/dev/null 2>&1; then
1266
3851
  :
1267
3852
else
1268
 
  rm -rf conftest*
1269
3853
  ac_cv_header_stdc=no
1270
3854
fi
1271
3855
rm -f conftest*
1274
3858
 
1275
3859
if test $ac_cv_header_stdc = yes; then
1276
3860
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1277
 
cat > conftest.$ac_ext <<EOF
1278
 
#line 1279 "configure"
1279
 
#include "confdefs.h"
 
3861
  cat >conftest.$ac_ext <<_ACEOF
 
3862
/* confdefs.h.  */
 
3863
_ACEOF
 
3864
cat confdefs.h >>conftest.$ac_ext
 
3865
cat >>conftest.$ac_ext <<_ACEOF
 
3866
/* end confdefs.h.  */
1280
3867
#include <stdlib.h>
1281
 
EOF
 
3868
 
 
3869
_ACEOF
1282
3870
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1283
 
  egrep "free" >/dev/null 2>&1; then
 
3871
  $EGREP "free" >/dev/null 2>&1; then
1284
3872
  :
1285
3873
else
1286
 
  rm -rf conftest*
1287
3874
  ac_cv_header_stdc=no
1288
3875
fi
1289
3876
rm -f conftest*
1292
3879
 
1293
3880
if test $ac_cv_header_stdc = yes; then
1294
3881
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1295
 
if test "$cross_compiling" = yes; then
 
3882
  if test "$cross_compiling" = yes; then
1296
3883
  :
1297
3884
else
1298
 
  cat > conftest.$ac_ext <<EOF
1299
 
#line 1300 "configure"
1300
 
#include "confdefs.h"
 
3885
  cat >conftest.$ac_ext <<_ACEOF
 
3886
/* confdefs.h.  */
 
3887
_ACEOF
 
3888
cat confdefs.h >>conftest.$ac_ext
 
3889
cat >>conftest.$ac_ext <<_ACEOF
 
3890
/* end confdefs.h.  */
1301
3891
#include <ctype.h>
1302
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1303
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3892
#include <stdlib.h>
 
3893
#if ((' ' & 0x0FF) == 0x020)
 
3894
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3895
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3896
#else
 
3897
# define ISLOWER(c) \
 
3898
                   (('a' <= (c) && (c) <= 'i') \
 
3899
                     || ('j' <= (c) && (c) <= 'r') \
 
3900
                     || ('s' <= (c) && (c) <= 'z'))
 
3901
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3902
#endif
 
3903
 
1304
3904
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1305
 
int main () { int i; for (i = 0; i < 256; i++)
1306
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1307
 
exit (0); }
1308
 
 
1309
 
EOF
1310
 
if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1311
 
then
 
3905
int
 
3906
main ()
 
3907
{
 
3908
  int i;
 
3909
  for (i = 0; i < 256; i++)
 
3910
    if (XOR (islower (i), ISLOWER (i))
 
3911
        || toupper (i) != TOUPPER (i))
 
3912
      return 2;
 
3913
  return 0;
 
3914
}
 
3915
_ACEOF
 
3916
rm -f conftest$ac_exeext
 
3917
if { (ac_try="$ac_link"
 
3918
case "(($ac_try" in
 
3919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3920
  *) ac_try_echo=$ac_try;;
 
3921
esac
 
3922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3923
  (eval "$ac_link") 2>&5
 
3924
  ac_status=$?
 
3925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3926
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3927
  { (case "(($ac_try" in
 
3928
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3929
  *) ac_try_echo=$ac_try;;
 
3930
esac
 
3931
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3932
  (eval "$ac_try") 2>&5
 
3933
  ac_status=$?
 
3934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3935
  (exit $ac_status); }; }; then
1312
3936
  :
1313
3937
else
1314
 
  echo "configure: failed program was:" >&5
1315
 
  cat conftest.$ac_ext >&5
1316
 
  rm -fr conftest*
1317
 
  ac_cv_header_stdc=no
1318
 
fi
1319
 
rm -fr conftest*
1320
 
fi
1321
 
 
1322
 
fi
1323
 
fi
1324
 
 
1325
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
3938
  echo "$as_me: program exited with status $ac_status" >&5
 
3939
echo "$as_me: failed program was:" >&5
 
3940
sed 's/^/| /' conftest.$ac_ext >&5
 
3941
 
 
3942
( exit $ac_status )
 
3943
ac_cv_header_stdc=no
 
3944
fi
 
3945
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3946
fi
 
3947
 
 
3948
 
 
3949
fi
 
3950
fi
 
3951
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3952
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1326
3953
if test $ac_cv_header_stdc = yes; then
1327
 
  cat >> confdefs.h <<\EOF
 
3954
 
 
3955
cat >>confdefs.h <<\_ACEOF
1328
3956
#define STDC_HEADERS 1
1329
 
EOF
 
3957
_ACEOF
1330
3958
 
1331
3959
fi
1332
3960
 
1333
 
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1334
 
echo "configure:1335: checking for sys/wait.h that is POSIX.1 compatible" >&5
1335
 
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1336
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3961
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
3962
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
 
3963
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
3964
  echo $ECHO_N "(cached) $ECHO_C" >&6
1337
3965
else
1338
 
  cat > conftest.$ac_ext <<EOF
1339
 
#line 1340 "configure"
1340
 
#include "confdefs.h"
 
3966
  cat >conftest.$ac_ext <<_ACEOF
 
3967
/* confdefs.h.  */
 
3968
_ACEOF
 
3969
cat confdefs.h >>conftest.$ac_ext
 
3970
cat >>conftest.$ac_ext <<_ACEOF
 
3971
/* end confdefs.h.  */
1341
3972
#include <sys/types.h>
1342
3973
#include <sys/wait.h>
1343
3974
#ifndef WEXITSTATUS
1344
 
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
3975
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
1345
3976
#endif
1346
3977
#ifndef WIFEXITED
1347
 
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
3978
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1348
3979
#endif
1349
 
int main() {
1350
 
int s;
1351
 
wait (&s);
1352
 
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1353
 
; return 0; }
1354
 
EOF
1355
 
if { (eval echo configure:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1356
 
  rm -rf conftest*
 
3980
 
 
3981
int
 
3982
main ()
 
3983
{
 
3984
  int s;
 
3985
  wait (&s);
 
3986
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
3987
  ;
 
3988
  return 0;
 
3989
}
 
3990
_ACEOF
 
3991
rm -f conftest.$ac_objext
 
3992
if { (ac_try="$ac_compile"
 
3993
case "(($ac_try" in
 
3994
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3995
  *) ac_try_echo=$ac_try;;
 
3996
esac
 
3997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3998
  (eval "$ac_compile") 2>conftest.er1
 
3999
  ac_status=$?
 
4000
  grep -v '^ *+' conftest.er1 >conftest.err
 
4001
  rm -f conftest.er1
 
4002
  cat conftest.err >&5
 
4003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4004
  (exit $ac_status); } && {
 
4005
         test -z "$ac_c_werror_flag" ||
 
4006
         test ! -s conftest.err
 
4007
       } && test -s conftest.$ac_objext; then
1357
4008
  ac_cv_header_sys_wait_h=yes
1358
4009
else
1359
 
  echo "configure: failed program was:" >&5
1360
 
  cat conftest.$ac_ext >&5
1361
 
  rm -rf conftest*
1362
 
  ac_cv_header_sys_wait_h=no
1363
 
fi
1364
 
rm -f conftest*
1365
 
fi
1366
 
 
1367
 
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
 
4010
  echo "$as_me: failed program was:" >&5
 
4011
sed 's/^/| /' conftest.$ac_ext >&5
 
4012
 
 
4013
        ac_cv_header_sys_wait_h=no
 
4014
fi
 
4015
 
 
4016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4017
fi
 
4018
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
4019
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
1368
4020
if test $ac_cv_header_sys_wait_h = yes; then
1369
 
  cat >> confdefs.h <<\EOF
 
4021
 
 
4022
cat >>confdefs.h <<\_ACEOF
1370
4023
#define HAVE_SYS_WAIT_H 1
1371
 
EOF
 
4024
_ACEOF
1372
4025
 
1373
4026
fi
1374
4027
 
1375
 
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1376
 
echo "configure:1377: checking whether time.h and sys/time.h may both be included" >&5
1377
 
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1378
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4028
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
4029
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
4030
if test "${ac_cv_header_time+set}" = set; then
 
4031
  echo $ECHO_N "(cached) $ECHO_C" >&6
1379
4032
else
1380
 
  cat > conftest.$ac_ext <<EOF
1381
 
#line 1382 "configure"
1382
 
#include "confdefs.h"
 
4033
  cat >conftest.$ac_ext <<_ACEOF
 
4034
/* confdefs.h.  */
 
4035
_ACEOF
 
4036
cat confdefs.h >>conftest.$ac_ext
 
4037
cat >>conftest.$ac_ext <<_ACEOF
 
4038
/* end confdefs.h.  */
1383
4039
#include <sys/types.h>
1384
4040
#include <sys/time.h>
1385
4041
#include <time.h>
1386
 
int main() {
1387
 
struct tm *tp;
1388
 
; return 0; }
1389
 
EOF
1390
 
if { (eval echo configure:1391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1391
 
  rm -rf conftest*
 
4042
 
 
4043
int
 
4044
main ()
 
4045
{
 
4046
if ((struct tm *) 0)
 
4047
return 0;
 
4048
  ;
 
4049
  return 0;
 
4050
}
 
4051
_ACEOF
 
4052
rm -f conftest.$ac_objext
 
4053
if { (ac_try="$ac_compile"
 
4054
case "(($ac_try" in
 
4055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4056
  *) ac_try_echo=$ac_try;;
 
4057
esac
 
4058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4059
  (eval "$ac_compile") 2>conftest.er1
 
4060
  ac_status=$?
 
4061
  grep -v '^ *+' conftest.er1 >conftest.err
 
4062
  rm -f conftest.er1
 
4063
  cat conftest.err >&5
 
4064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4065
  (exit $ac_status); } && {
 
4066
         test -z "$ac_c_werror_flag" ||
 
4067
         test ! -s conftest.err
 
4068
       } && test -s conftest.$ac_objext; then
1392
4069
  ac_cv_header_time=yes
1393
4070
else
1394
 
  echo "configure: failed program was:" >&5
1395
 
  cat conftest.$ac_ext >&5
1396
 
  rm -rf conftest*
1397
 
  ac_cv_header_time=no
1398
 
fi
1399
 
rm -f conftest*
1400
 
fi
1401
 
 
1402
 
echo "$ac_t""$ac_cv_header_time" 1>&6
 
4071
  echo "$as_me: failed program was:" >&5
 
4072
sed 's/^/| /' conftest.$ac_ext >&5
 
4073
 
 
4074
        ac_cv_header_time=no
 
4075
fi
 
4076
 
 
4077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4078
fi
 
4079
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
4080
echo "${ECHO_T}$ac_cv_header_time" >&6; }
1403
4081
if test $ac_cv_header_time = yes; then
1404
 
  cat >> confdefs.h <<\EOF
 
4082
 
 
4083
cat >>confdefs.h <<\_ACEOF
1405
4084
#define TIME_WITH_SYS_TIME 1
1406
 
EOF
 
4085
_ACEOF
1407
4086
 
1408
4087
fi
1409
4088
 
 
4089
 
 
4090
 
 
4091
 
 
4092
 
 
4093
 
1410
4094
ac_header_dirent=no
1411
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1412
 
do
1413
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1414
 
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1415
 
echo "configure:1416: checking for $ac_hdr that defines DIR" >&5
1416
 
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1417
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4095
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
4096
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
4097
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
4098
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
 
4099
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4100
  echo $ECHO_N "(cached) $ECHO_C" >&6
1418
4101
else
1419
 
  cat > conftest.$ac_ext <<EOF
1420
 
#line 1421 "configure"
1421
 
#include "confdefs.h"
 
4102
  cat >conftest.$ac_ext <<_ACEOF
 
4103
/* confdefs.h.  */
 
4104
_ACEOF
 
4105
cat confdefs.h >>conftest.$ac_ext
 
4106
cat >>conftest.$ac_ext <<_ACEOF
 
4107
/* end confdefs.h.  */
1422
4108
#include <sys/types.h>
1423
4109
#include <$ac_hdr>
1424
 
int main() {
1425
 
DIR *dirp = 0;
1426
 
; return 0; }
1427
 
EOF
1428
 
if { (eval echo configure:1429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1429
 
  rm -rf conftest*
1430
 
  eval "ac_cv_header_dirent_$ac_safe=yes"
1431
 
else
1432
 
  echo "configure: failed program was:" >&5
1433
 
  cat conftest.$ac_ext >&5
1434
 
  rm -rf conftest*
1435
 
  eval "ac_cv_header_dirent_$ac_safe=no"
1436
 
fi
1437
 
rm -f conftest*
1438
 
fi
1439
 
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1440
 
  echo "$ac_t""yes" 1>&6
1441
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1442
 
  cat >> confdefs.h <<EOF
1443
 
#define $ac_tr_hdr 1
1444
 
EOF
1445
 
 ac_header_dirent=$ac_hdr; break
1446
 
else
1447
 
  echo "$ac_t""no" 1>&6
1448
 
fi
 
4110
 
 
4111
int
 
4112
main ()
 
4113
{
 
4114
if ((DIR *) 0)
 
4115
return 0;
 
4116
  ;
 
4117
  return 0;
 
4118
}
 
4119
_ACEOF
 
4120
rm -f conftest.$ac_objext
 
4121
if { (ac_try="$ac_compile"
 
4122
case "(($ac_try" in
 
4123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4124
  *) ac_try_echo=$ac_try;;
 
4125
esac
 
4126
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4127
  (eval "$ac_compile") 2>conftest.er1
 
4128
  ac_status=$?
 
4129
  grep -v '^ *+' conftest.er1 >conftest.err
 
4130
  rm -f conftest.er1
 
4131
  cat conftest.err >&5
 
4132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4133
  (exit $ac_status); } && {
 
4134
         test -z "$ac_c_werror_flag" ||
 
4135
         test ! -s conftest.err
 
4136
       } && test -s conftest.$ac_objext; then
 
4137
  eval "$as_ac_Header=yes"
 
4138
else
 
4139
  echo "$as_me: failed program was:" >&5
 
4140
sed 's/^/| /' conftest.$ac_ext >&5
 
4141
 
 
4142
        eval "$as_ac_Header=no"
 
4143
fi
 
4144
 
 
4145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4146
fi
 
4147
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4148
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4149
echo "${ECHO_T}$ac_res" >&6; }
 
4150
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4151
  cat >>confdefs.h <<_ACEOF
 
4152
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
4153
_ACEOF
 
4154
 
 
4155
ac_header_dirent=$ac_hdr; break
 
4156
fi
 
4157
 
1449
4158
done
1450
4159
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1451
4160
if test $ac_header_dirent = dirent.h; then
1452
 
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1453
 
echo "configure:1454: checking for opendir in -ldir" >&5
1454
 
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1455
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1456
 
  echo $ac_n "(cached) $ac_c" 1>&6
1457
 
else
1458
 
  ac_save_LIBS="$LIBS"
1459
 
LIBS="-ldir  $LIBS"
1460
 
cat > conftest.$ac_ext <<EOF
1461
 
#line 1462 "configure"
1462
 
#include "confdefs.h"
1463
 
/* Override any gcc2 internal prototype to avoid an error.  */
1464
 
/* We use char because int might match the return type of a gcc2
1465
 
    builtin and then its argument prototype would still apply.  */
1466
 
char opendir();
1467
 
 
1468
 
int main() {
1469
 
opendir()
1470
 
; return 0; }
1471
 
EOF
1472
 
if { (eval echo configure:1473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1473
 
  rm -rf conftest*
1474
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1475
 
else
1476
 
  echo "configure: failed program was:" >&5
1477
 
  cat conftest.$ac_ext >&5
1478
 
  rm -rf conftest*
1479
 
  eval "ac_cv_lib_$ac_lib_var=no"
1480
 
fi
1481
 
rm -f conftest*
1482
 
LIBS="$ac_save_LIBS"
1483
 
 
1484
 
fi
1485
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1486
 
  echo "$ac_t""yes" 1>&6
1487
 
  LIBS="$LIBS -ldir"
1488
 
else
1489
 
  echo "$ac_t""no" 1>&6
1490
 
fi
1491
 
 
1492
 
else
1493
 
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1494
 
echo "configure:1495: checking for opendir in -lx" >&5
1495
 
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1496
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1497
 
  echo $ac_n "(cached) $ac_c" 1>&6
1498
 
else
1499
 
  ac_save_LIBS="$LIBS"
1500
 
LIBS="-lx  $LIBS"
1501
 
cat > conftest.$ac_ext <<EOF
1502
 
#line 1503 "configure"
1503
 
#include "confdefs.h"
1504
 
/* Override any gcc2 internal prototype to avoid an error.  */
1505
 
/* We use char because int might match the return type of a gcc2
1506
 
    builtin and then its argument prototype would still apply.  */
1507
 
char opendir();
1508
 
 
1509
 
int main() {
1510
 
opendir()
1511
 
; return 0; }
1512
 
EOF
1513
 
if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1514
 
  rm -rf conftest*
1515
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1516
 
else
1517
 
  echo "configure: failed program was:" >&5
1518
 
  cat conftest.$ac_ext >&5
1519
 
  rm -rf conftest*
1520
 
  eval "ac_cv_lib_$ac_lib_var=no"
1521
 
fi
1522
 
rm -f conftest*
1523
 
LIBS="$ac_save_LIBS"
1524
 
 
1525
 
fi
1526
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1527
 
  echo "$ac_t""yes" 1>&6
1528
 
  LIBS="$LIBS -lx"
1529
 
else
1530
 
  echo "$ac_t""no" 1>&6
1531
 
fi
1532
 
 
1533
 
fi
1534
 
 
1535
 
for ac_hdr in unistd.h getopt.h string.h strings.h sys/sockio.h sys/socketio.h
1536
 
do
1537
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1538
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1539
 
echo "configure:1540: checking for $ac_hdr" >&5
1540
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1541
 
  echo $ac_n "(cached) $ac_c" 1>&6
1542
 
else
1543
 
  cat > conftest.$ac_ext <<EOF
1544
 
#line 1545 "configure"
1545
 
#include "confdefs.h"
1546
 
#include <$ac_hdr>
1547
 
EOF
1548
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1549
 
{ (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1550
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1551
 
if test -z "$ac_err"; then
1552
 
  rm -rf conftest*
1553
 
  eval "ac_cv_header_$ac_safe=yes"
1554
 
else
1555
 
  echo "$ac_err" >&5
1556
 
  echo "configure: failed program was:" >&5
1557
 
  cat conftest.$ac_ext >&5
1558
 
  rm -rf conftest*
1559
 
  eval "ac_cv_header_$ac_safe=no"
1560
 
fi
1561
 
rm -f conftest*
1562
 
fi
1563
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1564
 
  echo "$ac_t""yes" 1>&6
1565
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1566
 
  cat >> confdefs.h <<EOF
1567
 
#define $ac_tr_hdr 1
1568
 
EOF
1569
 
 
1570
 
else
1571
 
  echo "$ac_t""no" 1>&6
1572
 
fi
1573
 
done
1574
 
 
1575
 
for ac_hdr in sys/param.h netinet/tcpip.h netinet/in_systm.h
1576
 
do
1577
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1578
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1579
 
echo "configure:1580: checking for $ac_hdr" >&5
1580
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1581
 
  echo $ac_n "(cached) $ac_c" 1>&6
1582
 
else
1583
 
  cat > conftest.$ac_ext <<EOF
1584
 
#line 1585 "configure"
1585
 
#include "confdefs.h"
1586
 
#include <$ac_hdr>
1587
 
EOF
1588
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1589
 
{ (eval echo configure:1590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1590
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1591
 
if test -z "$ac_err"; then
1592
 
  rm -rf conftest*
1593
 
  eval "ac_cv_header_$ac_safe=yes"
1594
 
else
1595
 
  echo "$ac_err" >&5
1596
 
  echo "configure: failed program was:" >&5
1597
 
  cat conftest.$ac_ext >&5
1598
 
  rm -rf conftest*
1599
 
  eval "ac_cv_header_$ac_safe=no"
1600
 
fi
1601
 
rm -f conftest*
1602
 
fi
1603
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1604
 
  echo "$ac_t""yes" 1>&6
1605
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1606
 
  cat >> confdefs.h <<EOF
1607
 
#define $ac_tr_hdr 1
1608
 
EOF
1609
 
 
1610
 
else
1611
 
  echo "$ac_t""no" 1>&6
1612
 
fi
1613
 
done
1614
 
 
1615
 
for ac_hdr in netinet/ip_udp.h netinet/protocols.h sys/ioctl.h netinet/ip_icmp.h
1616
 
do
1617
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1618
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1619
 
echo "configure:1620: checking for $ac_hdr" >&5
1620
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1621
 
  echo $ac_n "(cached) $ac_c" 1>&6
1622
 
else
1623
 
  cat > conftest.$ac_ext <<EOF
1624
 
#line 1625 "configure"
1625
 
#include "confdefs.h"
1626
 
#include <$ac_hdr>
1627
 
EOF
1628
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1629
 
{ (eval echo configure:1630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1630
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1631
 
if test -z "$ac_err"; then
1632
 
  rm -rf conftest*
1633
 
  eval "ac_cv_header_$ac_safe=yes"
1634
 
else
1635
 
  echo "$ac_err" >&5
1636
 
  echo "configure: failed program was:" >&5
1637
 
  cat conftest.$ac_ext >&5
1638
 
  rm -rf conftest*
1639
 
  eval "ac_cv_header_$ac_safe=no"
1640
 
fi
1641
 
rm -f conftest*
1642
 
fi
1643
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1644
 
  echo "$ac_t""yes" 1>&6
1645
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1646
 
  cat >> confdefs.h <<EOF
1647
 
#define $ac_tr_hdr 1
1648
 
EOF
1649
 
 
1650
 
else
1651
 
  echo "$ac_t""no" 1>&6
1652
 
fi
1653
 
done
1654
 
 
1655
 
for ac_hdr in rpc/rpc.h netinet/udp.h dlfcn.h sys/un.h memory.h ctype.h errno.h
1656
 
do
1657
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1658
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1659
 
echo "configure:1660: checking for $ac_hdr" >&5
1660
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1661
 
  echo $ac_n "(cached) $ac_c" 1>&6
1662
 
else
1663
 
  cat > conftest.$ac_ext <<EOF
1664
 
#line 1665 "configure"
1665
 
#include "confdefs.h"
1666
 
#include <$ac_hdr>
1667
 
EOF
1668
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1669
 
{ (eval echo configure:1670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1670
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1671
 
if test -z "$ac_err"; then
1672
 
  rm -rf conftest*
1673
 
  eval "ac_cv_header_$ac_safe=yes"
1674
 
else
1675
 
  echo "$ac_err" >&5
1676
 
  echo "configure: failed program was:" >&5
1677
 
  cat conftest.$ac_ext >&5
1678
 
  rm -rf conftest*
1679
 
  eval "ac_cv_header_$ac_safe=no"
1680
 
fi
1681
 
rm -f conftest*
1682
 
fi
1683
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1684
 
  echo "$ac_t""yes" 1>&6
1685
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1686
 
  cat >> confdefs.h <<EOF
1687
 
#define $ac_tr_hdr 1
1688
 
EOF
1689
 
 
1690
 
else
1691
 
  echo "$ac_t""no" 1>&6
1692
 
fi
1693
 
done
1694
 
 
1695
 
for ac_hdr in sys/types.h stdlib.h stdio.h sys/filio.h pwd.h
1696
 
do
1697
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1698
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1699
 
echo "configure:1700: checking for $ac_hdr" >&5
1700
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1701
 
  echo $ac_n "(cached) $ac_c" 1>&6
1702
 
else
1703
 
  cat > conftest.$ac_ext <<EOF
1704
 
#line 1705 "configure"
1705
 
#include "confdefs.h"
1706
 
#include <$ac_hdr>
1707
 
EOF
1708
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1709
 
{ (eval echo configure:1710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1710
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1711
 
if test -z "$ac_err"; then
1712
 
  rm -rf conftest*
1713
 
  eval "ac_cv_header_$ac_safe=yes"
1714
 
else
1715
 
  echo "$ac_err" >&5
1716
 
  echo "configure: failed program was:" >&5
1717
 
  cat conftest.$ac_ext >&5
1718
 
  rm -rf conftest*
1719
 
  eval "ac_cv_header_$ac_safe=no"
1720
 
fi
1721
 
rm -f conftest*
1722
 
fi
1723
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1724
 
  echo "$ac_t""yes" 1>&6
1725
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1726
 
  cat >> confdefs.h <<EOF
1727
 
#define $ac_tr_hdr 1
1728
 
EOF
1729
 
 
1730
 
else
1731
 
  echo "$ac_t""no" 1>&6
1732
 
fi
1733
 
done
1734
 
 
1735
 
for ac_hdr in assert.h netdb.h netinet/in.h arpa/inet.h
1736
 
do
1737
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1738
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1739
 
echo "configure:1740: checking for $ac_hdr" >&5
1740
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1741
 
  echo $ac_n "(cached) $ac_c" 1>&6
1742
 
else
1743
 
  cat > conftest.$ac_ext <<EOF
1744
 
#line 1745 "configure"
1745
 
#include "confdefs.h"
1746
 
#include <$ac_hdr>
1747
 
EOF
1748
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1749
 
{ (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1750
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1751
 
if test -z "$ac_err"; then
1752
 
  rm -rf conftest*
1753
 
  eval "ac_cv_header_$ac_safe=yes"
1754
 
else
1755
 
  echo "$ac_err" >&5
1756
 
  echo "configure: failed program was:" >&5
1757
 
  cat conftest.$ac_ext >&5
1758
 
  rm -rf conftest*
1759
 
  eval "ac_cv_header_$ac_safe=no"
1760
 
fi
1761
 
rm -f conftest*
1762
 
fi
1763
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1764
 
  echo "$ac_t""yes" 1>&6
1765
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1766
 
  cat >> confdefs.h <<EOF
1767
 
#define $ac_tr_hdr 1
1768
 
EOF
1769
 
 
1770
 
else
1771
 
  echo "$ac_t""no" 1>&6
1772
 
fi
1773
 
done
1774
 
 
1775
 
for ac_hdr in poll.h sys/poll.h netinet/ip_tcp.h fcntl.h signal.h limits.h
1776
 
do
1777
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1778
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1779
 
echo "configure:1780: checking for $ac_hdr" >&5
1780
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1781
 
  echo $ac_n "(cached) $ac_c" 1>&6
1782
 
else
1783
 
  cat > conftest.$ac_ext <<EOF
1784
 
#line 1785 "configure"
1785
 
#include "confdefs.h"
1786
 
#include <$ac_hdr>
1787
 
EOF
1788
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1789
 
{ (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1790
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1791
 
if test -z "$ac_err"; then
1792
 
  rm -rf conftest*
1793
 
  eval "ac_cv_header_$ac_safe=yes"
1794
 
else
1795
 
  echo "$ac_err" >&5
1796
 
  echo "configure: failed program was:" >&5
1797
 
  cat conftest.$ac_ext >&5
1798
 
  rm -rf conftest*
1799
 
  eval "ac_cv_header_$ac_safe=no"
1800
 
fi
1801
 
rm -f conftest*
1802
 
fi
1803
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1804
 
  echo "$ac_t""yes" 1>&6
1805
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1806
 
  cat >> confdefs.h <<EOF
1807
 
#define $ac_tr_hdr 1
1808
 
EOF
1809
 
 
1810
 
else
1811
 
  echo "$ac_t""no" 1>&6
1812
 
fi
1813
 
done
1814
 
 
1815
 
for ac_hdr in sys/stat.h stat.h net/if.h sys/mman.h sys/resource.h dl.h
1816
 
do
1817
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1818
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1819
 
echo "configure:1820: checking for $ac_hdr" >&5
1820
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1821
 
  echo $ac_n "(cached) $ac_c" 1>&6
1822
 
else
1823
 
  cat > conftest.$ac_ext <<EOF
1824
 
#line 1825 "configure"
1825
 
#include "confdefs.h"
1826
 
#include <$ac_hdr>
1827
 
EOF
1828
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1829
 
{ (eval echo configure:1830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1830
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1831
 
if test -z "$ac_err"; then
1832
 
  rm -rf conftest*
1833
 
  eval "ac_cv_header_$ac_safe=yes"
1834
 
else
1835
 
  echo "$ac_err" >&5
1836
 
  echo "configure: failed program was:" >&5
1837
 
  cat conftest.$ac_ext >&5
1838
 
  rm -rf conftest*
1839
 
  eval "ac_cv_header_$ac_safe=no"
1840
 
fi
1841
 
rm -f conftest*
1842
 
fi
1843
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1844
 
  echo "$ac_t""yes" 1>&6
1845
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1846
 
  cat >> confdefs.h <<EOF
1847
 
#define $ac_tr_hdr 1
1848
 
EOF
1849
 
 
1850
 
else
1851
 
  echo "$ac_t""no" 1>&6
1852
 
fi
1853
 
done
1854
 
 
1855
 
for ac_hdr in pty.h termio.h termios.h sgtty.h libutil.h setjmp.h values.h
1856
 
do
1857
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1858
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1859
 
echo "configure:1860: checking for $ac_hdr" >&5
1860
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1861
 
  echo $ac_n "(cached) $ac_c" 1>&6
1862
 
else
1863
 
  cat > conftest.$ac_ext <<EOF
1864
 
#line 1865 "configure"
1865
 
#include "confdefs.h"
1866
 
#include <$ac_hdr>
1867
 
EOF
1868
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869
 
{ (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871
 
if test -z "$ac_err"; then
1872
 
  rm -rf conftest*
1873
 
  eval "ac_cv_header_$ac_safe=yes"
1874
 
else
1875
 
  echo "$ac_err" >&5
1876
 
  echo "configure: failed program was:" >&5
1877
 
  cat conftest.$ac_ext >&5
1878
 
  rm -rf conftest*
1879
 
  eval "ac_cv_header_$ac_safe=no"
1880
 
fi
1881
 
rm -f conftest*
1882
 
fi
1883
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1884
 
  echo "$ac_t""yes" 1>&6
1885
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1886
 
  cat >> confdefs.h <<EOF
1887
 
#define $ac_tr_hdr 1
1888
 
EOF
1889
 
 
1890
 
else
1891
 
  echo "$ac_t""no" 1>&6
1892
 
fi
 
4161
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
4162
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
4163
if test "${ac_cv_search_opendir+set}" = set; then
 
4164
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4165
else
 
4166
  ac_func_search_save_LIBS=$LIBS
 
4167
cat >conftest.$ac_ext <<_ACEOF
 
4168
/* confdefs.h.  */
 
4169
_ACEOF
 
4170
cat confdefs.h >>conftest.$ac_ext
 
4171
cat >>conftest.$ac_ext <<_ACEOF
 
4172
/* end confdefs.h.  */
 
4173
 
 
4174
/* Override any GCC internal prototype to avoid an error.
 
4175
   Use char because int might match the return type of a GCC
 
4176
   builtin and then its argument prototype would still apply.  */
 
4177
#ifdef __cplusplus
 
4178
extern "C"
 
4179
#endif
 
4180
char opendir ();
 
4181
int
 
4182
main ()
 
4183
{
 
4184
return opendir ();
 
4185
  ;
 
4186
  return 0;
 
4187
}
 
4188
_ACEOF
 
4189
for ac_lib in '' dir; do
 
4190
  if test -z "$ac_lib"; then
 
4191
    ac_res="none required"
 
4192
  else
 
4193
    ac_res=-l$ac_lib
 
4194
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4195
  fi
 
4196
  rm -f conftest.$ac_objext conftest$ac_exeext
 
4197
if { (ac_try="$ac_link"
 
4198
case "(($ac_try" in
 
4199
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4200
  *) ac_try_echo=$ac_try;;
 
4201
esac
 
4202
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4203
  (eval "$ac_link") 2>conftest.er1
 
4204
  ac_status=$?
 
4205
  grep -v '^ *+' conftest.er1 >conftest.err
 
4206
  rm -f conftest.er1
 
4207
  cat conftest.err >&5
 
4208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4209
  (exit $ac_status); } && {
 
4210
         test -z "$ac_c_werror_flag" ||
 
4211
         test ! -s conftest.err
 
4212
       } && test -s conftest$ac_exeext &&
 
4213
       $as_test_x conftest$ac_exeext; then
 
4214
  ac_cv_search_opendir=$ac_res
 
4215
else
 
4216
  echo "$as_me: failed program was:" >&5
 
4217
sed 's/^/| /' conftest.$ac_ext >&5
 
4218
 
 
4219
 
 
4220
fi
 
4221
 
 
4222
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4223
      conftest$ac_exeext
 
4224
  if test "${ac_cv_search_opendir+set}" = set; then
 
4225
  break
 
4226
fi
 
4227
done
 
4228
if test "${ac_cv_search_opendir+set}" = set; then
 
4229
  :
 
4230
else
 
4231
  ac_cv_search_opendir=no
 
4232
fi
 
4233
rm conftest.$ac_ext
 
4234
LIBS=$ac_func_search_save_LIBS
 
4235
fi
 
4236
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
4237
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
4238
ac_res=$ac_cv_search_opendir
 
4239
if test "$ac_res" != no; then
 
4240
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
4241
 
 
4242
fi
 
4243
 
 
4244
else
 
4245
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
4246
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
4247
if test "${ac_cv_search_opendir+set}" = set; then
 
4248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4249
else
 
4250
  ac_func_search_save_LIBS=$LIBS
 
4251
cat >conftest.$ac_ext <<_ACEOF
 
4252
/* confdefs.h.  */
 
4253
_ACEOF
 
4254
cat confdefs.h >>conftest.$ac_ext
 
4255
cat >>conftest.$ac_ext <<_ACEOF
 
4256
/* end confdefs.h.  */
 
4257
 
 
4258
/* Override any GCC internal prototype to avoid an error.
 
4259
   Use char because int might match the return type of a GCC
 
4260
   builtin and then its argument prototype would still apply.  */
 
4261
#ifdef __cplusplus
 
4262
extern "C"
 
4263
#endif
 
4264
char opendir ();
 
4265
int
 
4266
main ()
 
4267
{
 
4268
return opendir ();
 
4269
  ;
 
4270
  return 0;
 
4271
}
 
4272
_ACEOF
 
4273
for ac_lib in '' x; do
 
4274
  if test -z "$ac_lib"; then
 
4275
    ac_res="none required"
 
4276
  else
 
4277
    ac_res=-l$ac_lib
 
4278
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4279
  fi
 
4280
  rm -f conftest.$ac_objext conftest$ac_exeext
 
4281
if { (ac_try="$ac_link"
 
4282
case "(($ac_try" in
 
4283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4284
  *) ac_try_echo=$ac_try;;
 
4285
esac
 
4286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4287
  (eval "$ac_link") 2>conftest.er1
 
4288
  ac_status=$?
 
4289
  grep -v '^ *+' conftest.er1 >conftest.err
 
4290
  rm -f conftest.er1
 
4291
  cat conftest.err >&5
 
4292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4293
  (exit $ac_status); } && {
 
4294
         test -z "$ac_c_werror_flag" ||
 
4295
         test ! -s conftest.err
 
4296
       } && test -s conftest$ac_exeext &&
 
4297
       $as_test_x conftest$ac_exeext; then
 
4298
  ac_cv_search_opendir=$ac_res
 
4299
else
 
4300
  echo "$as_me: failed program was:" >&5
 
4301
sed 's/^/| /' conftest.$ac_ext >&5
 
4302
 
 
4303
 
 
4304
fi
 
4305
 
 
4306
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4307
      conftest$ac_exeext
 
4308
  if test "${ac_cv_search_opendir+set}" = set; then
 
4309
  break
 
4310
fi
 
4311
done
 
4312
if test "${ac_cv_search_opendir+set}" = set; then
 
4313
  :
 
4314
else
 
4315
  ac_cv_search_opendir=no
 
4316
fi
 
4317
rm conftest.$ac_ext
 
4318
LIBS=$ac_func_search_save_LIBS
 
4319
fi
 
4320
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
4321
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
4322
ac_res=$ac_cv_search_opendir
 
4323
if test "$ac_res" != no; then
 
4324
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
4325
 
 
4326
fi
 
4327
 
 
4328
fi
 
4329
 
 
4330
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4331
 
 
4332
 
 
4333
 
 
4334
 
 
4335
 
 
4336
 
 
4337
 
 
4338
 
 
4339
 
 
4340
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4341
                  inttypes.h stdint.h unistd.h
 
4342
do
 
4343
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4344
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4345
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4346
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4348
else
 
4349
  cat >conftest.$ac_ext <<_ACEOF
 
4350
/* confdefs.h.  */
 
4351
_ACEOF
 
4352
cat confdefs.h >>conftest.$ac_ext
 
4353
cat >>conftest.$ac_ext <<_ACEOF
 
4354
/* end confdefs.h.  */
 
4355
$ac_includes_default
 
4356
 
 
4357
#include <$ac_header>
 
4358
_ACEOF
 
4359
rm -f conftest.$ac_objext
 
4360
if { (ac_try="$ac_compile"
 
4361
case "(($ac_try" in
 
4362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4363
  *) ac_try_echo=$ac_try;;
 
4364
esac
 
4365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4366
  (eval "$ac_compile") 2>conftest.er1
 
4367
  ac_status=$?
 
4368
  grep -v '^ *+' conftest.er1 >conftest.err
 
4369
  rm -f conftest.er1
 
4370
  cat conftest.err >&5
 
4371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4372
  (exit $ac_status); } && {
 
4373
         test -z "$ac_c_werror_flag" ||
 
4374
         test ! -s conftest.err
 
4375
       } && test -s conftest.$ac_objext; then
 
4376
  eval "$as_ac_Header=yes"
 
4377
else
 
4378
  echo "$as_me: failed program was:" >&5
 
4379
sed 's/^/| /' conftest.$ac_ext >&5
 
4380
 
 
4381
        eval "$as_ac_Header=no"
 
4382
fi
 
4383
 
 
4384
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4385
fi
 
4386
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4387
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4388
echo "${ECHO_T}$ac_res" >&6; }
 
4389
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4390
  cat >>confdefs.h <<_ACEOF
 
4391
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4392
_ACEOF
 
4393
 
 
4394
fi
 
4395
 
 
4396
done
 
4397
 
 
4398
 
 
4399
 
 
4400
 
 
4401
 
 
4402
 
 
4403
 
 
4404
for ac_header in unistd.h string.h strings.h sys/sockio.h sys/socketio.h
 
4405
do
 
4406
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4407
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4408
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4409
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4410
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4412
fi
 
4413
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4414
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4415
echo "${ECHO_T}$ac_res" >&6; }
 
4416
else
 
4417
  # Is the header compilable?
 
4418
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4419
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4420
cat >conftest.$ac_ext <<_ACEOF
 
4421
/* confdefs.h.  */
 
4422
_ACEOF
 
4423
cat confdefs.h >>conftest.$ac_ext
 
4424
cat >>conftest.$ac_ext <<_ACEOF
 
4425
/* end confdefs.h.  */
 
4426
$ac_includes_default
 
4427
#include <$ac_header>
 
4428
_ACEOF
 
4429
rm -f conftest.$ac_objext
 
4430
if { (ac_try="$ac_compile"
 
4431
case "(($ac_try" in
 
4432
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4433
  *) ac_try_echo=$ac_try;;
 
4434
esac
 
4435
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4436
  (eval "$ac_compile") 2>conftest.er1
 
4437
  ac_status=$?
 
4438
  grep -v '^ *+' conftest.er1 >conftest.err
 
4439
  rm -f conftest.er1
 
4440
  cat conftest.err >&5
 
4441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4442
  (exit $ac_status); } && {
 
4443
         test -z "$ac_c_werror_flag" ||
 
4444
         test ! -s conftest.err
 
4445
       } && test -s conftest.$ac_objext; then
 
4446
  ac_header_compiler=yes
 
4447
else
 
4448
  echo "$as_me: failed program was:" >&5
 
4449
sed 's/^/| /' conftest.$ac_ext >&5
 
4450
 
 
4451
        ac_header_compiler=no
 
4452
fi
 
4453
 
 
4454
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4455
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4456
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4457
 
 
4458
# Is the header present?
 
4459
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4460
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
4461
cat >conftest.$ac_ext <<_ACEOF
 
4462
/* confdefs.h.  */
 
4463
_ACEOF
 
4464
cat confdefs.h >>conftest.$ac_ext
 
4465
cat >>conftest.$ac_ext <<_ACEOF
 
4466
/* end confdefs.h.  */
 
4467
#include <$ac_header>
 
4468
_ACEOF
 
4469
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4470
case "(($ac_try" in
 
4471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4472
  *) ac_try_echo=$ac_try;;
 
4473
esac
 
4474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4475
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4476
  ac_status=$?
 
4477
  grep -v '^ *+' conftest.er1 >conftest.err
 
4478
  rm -f conftest.er1
 
4479
  cat conftest.err >&5
 
4480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4481
  (exit $ac_status); } >/dev/null && {
 
4482
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4483
         test ! -s conftest.err
 
4484
       }; then
 
4485
  ac_header_preproc=yes
 
4486
else
 
4487
  echo "$as_me: failed program was:" >&5
 
4488
sed 's/^/| /' conftest.$ac_ext >&5
 
4489
 
 
4490
  ac_header_preproc=no
 
4491
fi
 
4492
 
 
4493
rm -f conftest.err conftest.$ac_ext
 
4494
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4495
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4496
 
 
4497
# So?  What about this header?
 
4498
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4499
  yes:no: )
 
4500
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4501
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4502
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4503
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4504
    ac_header_preproc=yes
 
4505
    ;;
 
4506
  no:yes:* )
 
4507
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4508
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4509
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4510
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4511
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4512
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4513
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4514
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4515
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4516
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4517
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4518
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4519
 
 
4520
    ;;
 
4521
esac
 
4522
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4523
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4524
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4526
else
 
4527
  eval "$as_ac_Header=\$ac_header_preproc"
 
4528
fi
 
4529
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4530
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4531
echo "${ECHO_T}$ac_res" >&6; }
 
4532
 
 
4533
fi
 
4534
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4535
  cat >>confdefs.h <<_ACEOF
 
4536
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4537
_ACEOF
 
4538
 
 
4539
fi
 
4540
 
 
4541
done
 
4542
 
 
4543
 
 
4544
 
 
4545
 
 
4546
for ac_header in sys/param.h netinet/tcpip.h netinet/in_systm.h
 
4547
do
 
4548
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4549
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4550
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4551
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4552
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4554
fi
 
4555
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4556
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4557
echo "${ECHO_T}$ac_res" >&6; }
 
4558
else
 
4559
  # Is the header compilable?
 
4560
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4561
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4562
cat >conftest.$ac_ext <<_ACEOF
 
4563
/* confdefs.h.  */
 
4564
_ACEOF
 
4565
cat confdefs.h >>conftest.$ac_ext
 
4566
cat >>conftest.$ac_ext <<_ACEOF
 
4567
/* end confdefs.h.  */
 
4568
$ac_includes_default
 
4569
#include <$ac_header>
 
4570
_ACEOF
 
4571
rm -f conftest.$ac_objext
 
4572
if { (ac_try="$ac_compile"
 
4573
case "(($ac_try" in
 
4574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4575
  *) ac_try_echo=$ac_try;;
 
4576
esac
 
4577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4578
  (eval "$ac_compile") 2>conftest.er1
 
4579
  ac_status=$?
 
4580
  grep -v '^ *+' conftest.er1 >conftest.err
 
4581
  rm -f conftest.er1
 
4582
  cat conftest.err >&5
 
4583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4584
  (exit $ac_status); } && {
 
4585
         test -z "$ac_c_werror_flag" ||
 
4586
         test ! -s conftest.err
 
4587
       } && test -s conftest.$ac_objext; then
 
4588
  ac_header_compiler=yes
 
4589
else
 
4590
  echo "$as_me: failed program was:" >&5
 
4591
sed 's/^/| /' conftest.$ac_ext >&5
 
4592
 
 
4593
        ac_header_compiler=no
 
4594
fi
 
4595
 
 
4596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4597
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4598
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4599
 
 
4600
# Is the header present?
 
4601
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4602
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
4603
cat >conftest.$ac_ext <<_ACEOF
 
4604
/* confdefs.h.  */
 
4605
_ACEOF
 
4606
cat confdefs.h >>conftest.$ac_ext
 
4607
cat >>conftest.$ac_ext <<_ACEOF
 
4608
/* end confdefs.h.  */
 
4609
#include <$ac_header>
 
4610
_ACEOF
 
4611
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4612
case "(($ac_try" in
 
4613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4614
  *) ac_try_echo=$ac_try;;
 
4615
esac
 
4616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4617
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4618
  ac_status=$?
 
4619
  grep -v '^ *+' conftest.er1 >conftest.err
 
4620
  rm -f conftest.er1
 
4621
  cat conftest.err >&5
 
4622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4623
  (exit $ac_status); } >/dev/null && {
 
4624
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4625
         test ! -s conftest.err
 
4626
       }; then
 
4627
  ac_header_preproc=yes
 
4628
else
 
4629
  echo "$as_me: failed program was:" >&5
 
4630
sed 's/^/| /' conftest.$ac_ext >&5
 
4631
 
 
4632
  ac_header_preproc=no
 
4633
fi
 
4634
 
 
4635
rm -f conftest.err conftest.$ac_ext
 
4636
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4637
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4638
 
 
4639
# So?  What about this header?
 
4640
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4641
  yes:no: )
 
4642
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4643
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4644
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4645
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4646
    ac_header_preproc=yes
 
4647
    ;;
 
4648
  no:yes:* )
 
4649
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4650
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4651
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4652
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4653
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4654
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4655
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4656
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4657
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4658
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4659
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4660
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4661
 
 
4662
    ;;
 
4663
esac
 
4664
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4665
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4666
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4668
else
 
4669
  eval "$as_ac_Header=\$ac_header_preproc"
 
4670
fi
 
4671
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4672
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4673
echo "${ECHO_T}$ac_res" >&6; }
 
4674
 
 
4675
fi
 
4676
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4677
  cat >>confdefs.h <<_ACEOF
 
4678
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4679
_ACEOF
 
4680
 
 
4681
fi
 
4682
 
 
4683
done
 
4684
 
 
4685
 
 
4686
 
 
4687
 
 
4688
 
 
4689
for ac_header in netinet/ip_udp.h netinet/protocols.h sys/ioctl.h netinet/ip_icmp.h
 
4690
do
 
4691
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4692
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4693
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4694
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4695
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4696
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4697
fi
 
4698
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4699
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4700
echo "${ECHO_T}$ac_res" >&6; }
 
4701
else
 
4702
  # Is the header compilable?
 
4703
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4704
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4705
cat >conftest.$ac_ext <<_ACEOF
 
4706
/* confdefs.h.  */
 
4707
_ACEOF
 
4708
cat confdefs.h >>conftest.$ac_ext
 
4709
cat >>conftest.$ac_ext <<_ACEOF
 
4710
/* end confdefs.h.  */
 
4711
$ac_includes_default
 
4712
#include <$ac_header>
 
4713
_ACEOF
 
4714
rm -f conftest.$ac_objext
 
4715
if { (ac_try="$ac_compile"
 
4716
case "(($ac_try" in
 
4717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4718
  *) ac_try_echo=$ac_try;;
 
4719
esac
 
4720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4721
  (eval "$ac_compile") 2>conftest.er1
 
4722
  ac_status=$?
 
4723
  grep -v '^ *+' conftest.er1 >conftest.err
 
4724
  rm -f conftest.er1
 
4725
  cat conftest.err >&5
 
4726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4727
  (exit $ac_status); } && {
 
4728
         test -z "$ac_c_werror_flag" ||
 
4729
         test ! -s conftest.err
 
4730
       } && test -s conftest.$ac_objext; then
 
4731
  ac_header_compiler=yes
 
4732
else
 
4733
  echo "$as_me: failed program was:" >&5
 
4734
sed 's/^/| /' conftest.$ac_ext >&5
 
4735
 
 
4736
        ac_header_compiler=no
 
4737
fi
 
4738
 
 
4739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4740
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4741
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4742
 
 
4743
# Is the header present?
 
4744
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4745
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
4746
cat >conftest.$ac_ext <<_ACEOF
 
4747
/* confdefs.h.  */
 
4748
_ACEOF
 
4749
cat confdefs.h >>conftest.$ac_ext
 
4750
cat >>conftest.$ac_ext <<_ACEOF
 
4751
/* end confdefs.h.  */
 
4752
#include <$ac_header>
 
4753
_ACEOF
 
4754
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4755
case "(($ac_try" in
 
4756
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4757
  *) ac_try_echo=$ac_try;;
 
4758
esac
 
4759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4760
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4761
  ac_status=$?
 
4762
  grep -v '^ *+' conftest.er1 >conftest.err
 
4763
  rm -f conftest.er1
 
4764
  cat conftest.err >&5
 
4765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4766
  (exit $ac_status); } >/dev/null && {
 
4767
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4768
         test ! -s conftest.err
 
4769
       }; then
 
4770
  ac_header_preproc=yes
 
4771
else
 
4772
  echo "$as_me: failed program was:" >&5
 
4773
sed 's/^/| /' conftest.$ac_ext >&5
 
4774
 
 
4775
  ac_header_preproc=no
 
4776
fi
 
4777
 
 
4778
rm -f conftest.err conftest.$ac_ext
 
4779
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4780
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4781
 
 
4782
# So?  What about this header?
 
4783
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4784
  yes:no: )
 
4785
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4786
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4787
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4788
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4789
    ac_header_preproc=yes
 
4790
    ;;
 
4791
  no:yes:* )
 
4792
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4793
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4794
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4795
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4796
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4797
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4798
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4799
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4800
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4801
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4802
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4803
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4804
 
 
4805
    ;;
 
4806
esac
 
4807
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4808
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4809
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4811
else
 
4812
  eval "$as_ac_Header=\$ac_header_preproc"
 
4813
fi
 
4814
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4815
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4816
echo "${ECHO_T}$ac_res" >&6; }
 
4817
 
 
4818
fi
 
4819
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4820
  cat >>confdefs.h <<_ACEOF
 
4821
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4822
_ACEOF
 
4823
 
 
4824
fi
 
4825
 
 
4826
done
 
4827
 
 
4828
 
 
4829
 
 
4830
 
 
4831
 
 
4832
 
 
4833
 
 
4834
 
 
4835
for ac_header in rpc/rpc.h netinet/udp.h dlfcn.h sys/un.h memory.h ctype.h errno.h
 
4836
do
 
4837
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4838
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4839
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4840
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4841
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4843
fi
 
4844
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4845
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4846
echo "${ECHO_T}$ac_res" >&6; }
 
4847
else
 
4848
  # Is the header compilable?
 
4849
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4850
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4851
cat >conftest.$ac_ext <<_ACEOF
 
4852
/* confdefs.h.  */
 
4853
_ACEOF
 
4854
cat confdefs.h >>conftest.$ac_ext
 
4855
cat >>conftest.$ac_ext <<_ACEOF
 
4856
/* end confdefs.h.  */
 
4857
$ac_includes_default
 
4858
#include <$ac_header>
 
4859
_ACEOF
 
4860
rm -f conftest.$ac_objext
 
4861
if { (ac_try="$ac_compile"
 
4862
case "(($ac_try" in
 
4863
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4864
  *) ac_try_echo=$ac_try;;
 
4865
esac
 
4866
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4867
  (eval "$ac_compile") 2>conftest.er1
 
4868
  ac_status=$?
 
4869
  grep -v '^ *+' conftest.er1 >conftest.err
 
4870
  rm -f conftest.er1
 
4871
  cat conftest.err >&5
 
4872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4873
  (exit $ac_status); } && {
 
4874
         test -z "$ac_c_werror_flag" ||
 
4875
         test ! -s conftest.err
 
4876
       } && test -s conftest.$ac_objext; then
 
4877
  ac_header_compiler=yes
 
4878
else
 
4879
  echo "$as_me: failed program was:" >&5
 
4880
sed 's/^/| /' conftest.$ac_ext >&5
 
4881
 
 
4882
        ac_header_compiler=no
 
4883
fi
 
4884
 
 
4885
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4886
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4887
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4888
 
 
4889
# Is the header present?
 
4890
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4891
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
4892
cat >conftest.$ac_ext <<_ACEOF
 
4893
/* confdefs.h.  */
 
4894
_ACEOF
 
4895
cat confdefs.h >>conftest.$ac_ext
 
4896
cat >>conftest.$ac_ext <<_ACEOF
 
4897
/* end confdefs.h.  */
 
4898
#include <$ac_header>
 
4899
_ACEOF
 
4900
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4901
case "(($ac_try" in
 
4902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4903
  *) ac_try_echo=$ac_try;;
 
4904
esac
 
4905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4906
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4907
  ac_status=$?
 
4908
  grep -v '^ *+' conftest.er1 >conftest.err
 
4909
  rm -f conftest.er1
 
4910
  cat conftest.err >&5
 
4911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4912
  (exit $ac_status); } >/dev/null && {
 
4913
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4914
         test ! -s conftest.err
 
4915
       }; then
 
4916
  ac_header_preproc=yes
 
4917
else
 
4918
  echo "$as_me: failed program was:" >&5
 
4919
sed 's/^/| /' conftest.$ac_ext >&5
 
4920
 
 
4921
  ac_header_preproc=no
 
4922
fi
 
4923
 
 
4924
rm -f conftest.err conftest.$ac_ext
 
4925
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4926
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4927
 
 
4928
# So?  What about this header?
 
4929
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4930
  yes:no: )
 
4931
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4932
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4933
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4934
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4935
    ac_header_preproc=yes
 
4936
    ;;
 
4937
  no:yes:* )
 
4938
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4939
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4940
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4941
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4942
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4943
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4944
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4945
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4946
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4947
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4948
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4949
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4950
 
 
4951
    ;;
 
4952
esac
 
4953
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4954
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4955
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4957
else
 
4958
  eval "$as_ac_Header=\$ac_header_preproc"
 
4959
fi
 
4960
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4961
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4962
echo "${ECHO_T}$ac_res" >&6; }
 
4963
 
 
4964
fi
 
4965
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4966
  cat >>confdefs.h <<_ACEOF
 
4967
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4968
_ACEOF
 
4969
 
 
4970
fi
 
4971
 
 
4972
done
 
4973
 
 
4974
 
 
4975
 
 
4976
 
 
4977
 
 
4978
 
 
4979
for ac_header in sys/types.h stdlib.h stdio.h sys/filio.h pwd.h
 
4980
do
 
4981
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4982
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4983
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4984
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4985
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4987
fi
 
4988
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4989
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4990
echo "${ECHO_T}$ac_res" >&6; }
 
4991
else
 
4992
  # Is the header compilable?
 
4993
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4994
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4995
cat >conftest.$ac_ext <<_ACEOF
 
4996
/* confdefs.h.  */
 
4997
_ACEOF
 
4998
cat confdefs.h >>conftest.$ac_ext
 
4999
cat >>conftest.$ac_ext <<_ACEOF
 
5000
/* end confdefs.h.  */
 
5001
$ac_includes_default
 
5002
#include <$ac_header>
 
5003
_ACEOF
 
5004
rm -f conftest.$ac_objext
 
5005
if { (ac_try="$ac_compile"
 
5006
case "(($ac_try" in
 
5007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5008
  *) ac_try_echo=$ac_try;;
 
5009
esac
 
5010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5011
  (eval "$ac_compile") 2>conftest.er1
 
5012
  ac_status=$?
 
5013
  grep -v '^ *+' conftest.er1 >conftest.err
 
5014
  rm -f conftest.er1
 
5015
  cat conftest.err >&5
 
5016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5017
  (exit $ac_status); } && {
 
5018
         test -z "$ac_c_werror_flag" ||
 
5019
         test ! -s conftest.err
 
5020
       } && test -s conftest.$ac_objext; then
 
5021
  ac_header_compiler=yes
 
5022
else
 
5023
  echo "$as_me: failed program was:" >&5
 
5024
sed 's/^/| /' conftest.$ac_ext >&5
 
5025
 
 
5026
        ac_header_compiler=no
 
5027
fi
 
5028
 
 
5029
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5030
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5031
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5032
 
 
5033
# Is the header present?
 
5034
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5035
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5036
cat >conftest.$ac_ext <<_ACEOF
 
5037
/* confdefs.h.  */
 
5038
_ACEOF
 
5039
cat confdefs.h >>conftest.$ac_ext
 
5040
cat >>conftest.$ac_ext <<_ACEOF
 
5041
/* end confdefs.h.  */
 
5042
#include <$ac_header>
 
5043
_ACEOF
 
5044
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5045
case "(($ac_try" in
 
5046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5047
  *) ac_try_echo=$ac_try;;
 
5048
esac
 
5049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5050
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5051
  ac_status=$?
 
5052
  grep -v '^ *+' conftest.er1 >conftest.err
 
5053
  rm -f conftest.er1
 
5054
  cat conftest.err >&5
 
5055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5056
  (exit $ac_status); } >/dev/null && {
 
5057
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5058
         test ! -s conftest.err
 
5059
       }; then
 
5060
  ac_header_preproc=yes
 
5061
else
 
5062
  echo "$as_me: failed program was:" >&5
 
5063
sed 's/^/| /' conftest.$ac_ext >&5
 
5064
 
 
5065
  ac_header_preproc=no
 
5066
fi
 
5067
 
 
5068
rm -f conftest.err conftest.$ac_ext
 
5069
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5070
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5071
 
 
5072
# So?  What about this header?
 
5073
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5074
  yes:no: )
 
5075
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5076
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5077
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5078
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5079
    ac_header_preproc=yes
 
5080
    ;;
 
5081
  no:yes:* )
 
5082
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5083
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5084
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5085
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5086
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5087
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5088
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5089
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5090
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5091
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5092
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5093
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5094
 
 
5095
    ;;
 
5096
esac
 
5097
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5098
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5099
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5100
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5101
else
 
5102
  eval "$as_ac_Header=\$ac_header_preproc"
 
5103
fi
 
5104
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5105
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5106
echo "${ECHO_T}$ac_res" >&6; }
 
5107
 
 
5108
fi
 
5109
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5110
  cat >>confdefs.h <<_ACEOF
 
5111
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5112
_ACEOF
 
5113
 
 
5114
fi
 
5115
 
 
5116
done
 
5117
 
 
5118
 
 
5119
 
 
5120
 
 
5121
 
 
5122
for ac_header in assert.h netdb.h netinet/in.h arpa/inet.h
 
5123
do
 
5124
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5125
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5126
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5127
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5128
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5130
fi
 
5131
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5132
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5133
echo "${ECHO_T}$ac_res" >&6; }
 
5134
else
 
5135
  # Is the header compilable?
 
5136
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5137
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5138
cat >conftest.$ac_ext <<_ACEOF
 
5139
/* confdefs.h.  */
 
5140
_ACEOF
 
5141
cat confdefs.h >>conftest.$ac_ext
 
5142
cat >>conftest.$ac_ext <<_ACEOF
 
5143
/* end confdefs.h.  */
 
5144
$ac_includes_default
 
5145
#include <$ac_header>
 
5146
_ACEOF
 
5147
rm -f conftest.$ac_objext
 
5148
if { (ac_try="$ac_compile"
 
5149
case "(($ac_try" in
 
5150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5151
  *) ac_try_echo=$ac_try;;
 
5152
esac
 
5153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5154
  (eval "$ac_compile") 2>conftest.er1
 
5155
  ac_status=$?
 
5156
  grep -v '^ *+' conftest.er1 >conftest.err
 
5157
  rm -f conftest.er1
 
5158
  cat conftest.err >&5
 
5159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5160
  (exit $ac_status); } && {
 
5161
         test -z "$ac_c_werror_flag" ||
 
5162
         test ! -s conftest.err
 
5163
       } && test -s conftest.$ac_objext; then
 
5164
  ac_header_compiler=yes
 
5165
else
 
5166
  echo "$as_me: failed program was:" >&5
 
5167
sed 's/^/| /' conftest.$ac_ext >&5
 
5168
 
 
5169
        ac_header_compiler=no
 
5170
fi
 
5171
 
 
5172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5173
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5174
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5175
 
 
5176
# Is the header present?
 
5177
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5178
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5179
cat >conftest.$ac_ext <<_ACEOF
 
5180
/* confdefs.h.  */
 
5181
_ACEOF
 
5182
cat confdefs.h >>conftest.$ac_ext
 
5183
cat >>conftest.$ac_ext <<_ACEOF
 
5184
/* end confdefs.h.  */
 
5185
#include <$ac_header>
 
5186
_ACEOF
 
5187
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5188
case "(($ac_try" in
 
5189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5190
  *) ac_try_echo=$ac_try;;
 
5191
esac
 
5192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5193
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5194
  ac_status=$?
 
5195
  grep -v '^ *+' conftest.er1 >conftest.err
 
5196
  rm -f conftest.er1
 
5197
  cat conftest.err >&5
 
5198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5199
  (exit $ac_status); } >/dev/null && {
 
5200
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5201
         test ! -s conftest.err
 
5202
       }; then
 
5203
  ac_header_preproc=yes
 
5204
else
 
5205
  echo "$as_me: failed program was:" >&5
 
5206
sed 's/^/| /' conftest.$ac_ext >&5
 
5207
 
 
5208
  ac_header_preproc=no
 
5209
fi
 
5210
 
 
5211
rm -f conftest.err conftest.$ac_ext
 
5212
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5213
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5214
 
 
5215
# So?  What about this header?
 
5216
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5217
  yes:no: )
 
5218
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5219
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5220
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5221
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5222
    ac_header_preproc=yes
 
5223
    ;;
 
5224
  no:yes:* )
 
5225
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5226
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5227
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5228
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5229
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5230
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5231
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5232
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5233
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5234
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5235
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5236
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5237
 
 
5238
    ;;
 
5239
esac
 
5240
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5241
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5242
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5243
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5244
else
 
5245
  eval "$as_ac_Header=\$ac_header_preproc"
 
5246
fi
 
5247
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5248
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5249
echo "${ECHO_T}$ac_res" >&6; }
 
5250
 
 
5251
fi
 
5252
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5253
  cat >>confdefs.h <<_ACEOF
 
5254
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5255
_ACEOF
 
5256
 
 
5257
fi
 
5258
 
 
5259
done
 
5260
 
 
5261
 
 
5262
 
 
5263
 
 
5264
 
 
5265
 
 
5266
 
 
5267
for ac_header in poll.h sys/poll.h netinet/ip_tcp.h fcntl.h signal.h limits.h
 
5268
do
 
5269
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5270
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5271
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5272
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5273
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5275
fi
 
5276
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5277
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5278
echo "${ECHO_T}$ac_res" >&6; }
 
5279
else
 
5280
  # Is the header compilable?
 
5281
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5282
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5283
cat >conftest.$ac_ext <<_ACEOF
 
5284
/* confdefs.h.  */
 
5285
_ACEOF
 
5286
cat confdefs.h >>conftest.$ac_ext
 
5287
cat >>conftest.$ac_ext <<_ACEOF
 
5288
/* end confdefs.h.  */
 
5289
$ac_includes_default
 
5290
#include <$ac_header>
 
5291
_ACEOF
 
5292
rm -f conftest.$ac_objext
 
5293
if { (ac_try="$ac_compile"
 
5294
case "(($ac_try" in
 
5295
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5296
  *) ac_try_echo=$ac_try;;
 
5297
esac
 
5298
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5299
  (eval "$ac_compile") 2>conftest.er1
 
5300
  ac_status=$?
 
5301
  grep -v '^ *+' conftest.er1 >conftest.err
 
5302
  rm -f conftest.er1
 
5303
  cat conftest.err >&5
 
5304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5305
  (exit $ac_status); } && {
 
5306
         test -z "$ac_c_werror_flag" ||
 
5307
         test ! -s conftest.err
 
5308
       } && test -s conftest.$ac_objext; then
 
5309
  ac_header_compiler=yes
 
5310
else
 
5311
  echo "$as_me: failed program was:" >&5
 
5312
sed 's/^/| /' conftest.$ac_ext >&5
 
5313
 
 
5314
        ac_header_compiler=no
 
5315
fi
 
5316
 
 
5317
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5318
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5319
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5320
 
 
5321
# Is the header present?
 
5322
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5323
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5324
cat >conftest.$ac_ext <<_ACEOF
 
5325
/* confdefs.h.  */
 
5326
_ACEOF
 
5327
cat confdefs.h >>conftest.$ac_ext
 
5328
cat >>conftest.$ac_ext <<_ACEOF
 
5329
/* end confdefs.h.  */
 
5330
#include <$ac_header>
 
5331
_ACEOF
 
5332
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5333
case "(($ac_try" in
 
5334
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5335
  *) ac_try_echo=$ac_try;;
 
5336
esac
 
5337
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5338
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5339
  ac_status=$?
 
5340
  grep -v '^ *+' conftest.er1 >conftest.err
 
5341
  rm -f conftest.er1
 
5342
  cat conftest.err >&5
 
5343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5344
  (exit $ac_status); } >/dev/null && {
 
5345
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5346
         test ! -s conftest.err
 
5347
       }; then
 
5348
  ac_header_preproc=yes
 
5349
else
 
5350
  echo "$as_me: failed program was:" >&5
 
5351
sed 's/^/| /' conftest.$ac_ext >&5
 
5352
 
 
5353
  ac_header_preproc=no
 
5354
fi
 
5355
 
 
5356
rm -f conftest.err conftest.$ac_ext
 
5357
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5358
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5359
 
 
5360
# So?  What about this header?
 
5361
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5362
  yes:no: )
 
5363
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5364
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5365
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5366
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5367
    ac_header_preproc=yes
 
5368
    ;;
 
5369
  no:yes:* )
 
5370
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5371
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5372
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5373
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5374
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5375
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5376
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5377
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5378
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5379
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5380
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5381
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5382
 
 
5383
    ;;
 
5384
esac
 
5385
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5386
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5387
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5389
else
 
5390
  eval "$as_ac_Header=\$ac_header_preproc"
 
5391
fi
 
5392
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5393
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5394
echo "${ECHO_T}$ac_res" >&6; }
 
5395
 
 
5396
fi
 
5397
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5398
  cat >>confdefs.h <<_ACEOF
 
5399
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5400
_ACEOF
 
5401
 
 
5402
fi
 
5403
 
 
5404
done
 
5405
 
 
5406
 
 
5407
 
 
5408
 
 
5409
 
 
5410
 
 
5411
 
 
5412
for ac_header in sys/stat.h stat.h net/if.h sys/mman.h sys/resource.h dl.h
 
5413
do
 
5414
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5415
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5416
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5417
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5418
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5420
fi
 
5421
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5422
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5423
echo "${ECHO_T}$ac_res" >&6; }
 
5424
else
 
5425
  # Is the header compilable?
 
5426
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5427
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5428
cat >conftest.$ac_ext <<_ACEOF
 
5429
/* confdefs.h.  */
 
5430
_ACEOF
 
5431
cat confdefs.h >>conftest.$ac_ext
 
5432
cat >>conftest.$ac_ext <<_ACEOF
 
5433
/* end confdefs.h.  */
 
5434
$ac_includes_default
 
5435
#include <$ac_header>
 
5436
_ACEOF
 
5437
rm -f conftest.$ac_objext
 
5438
if { (ac_try="$ac_compile"
 
5439
case "(($ac_try" in
 
5440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5441
  *) ac_try_echo=$ac_try;;
 
5442
esac
 
5443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5444
  (eval "$ac_compile") 2>conftest.er1
 
5445
  ac_status=$?
 
5446
  grep -v '^ *+' conftest.er1 >conftest.err
 
5447
  rm -f conftest.er1
 
5448
  cat conftest.err >&5
 
5449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5450
  (exit $ac_status); } && {
 
5451
         test -z "$ac_c_werror_flag" ||
 
5452
         test ! -s conftest.err
 
5453
       } && test -s conftest.$ac_objext; then
 
5454
  ac_header_compiler=yes
 
5455
else
 
5456
  echo "$as_me: failed program was:" >&5
 
5457
sed 's/^/| /' conftest.$ac_ext >&5
 
5458
 
 
5459
        ac_header_compiler=no
 
5460
fi
 
5461
 
 
5462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5463
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5464
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5465
 
 
5466
# Is the header present?
 
5467
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5468
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5469
cat >conftest.$ac_ext <<_ACEOF
 
5470
/* confdefs.h.  */
 
5471
_ACEOF
 
5472
cat confdefs.h >>conftest.$ac_ext
 
5473
cat >>conftest.$ac_ext <<_ACEOF
 
5474
/* end confdefs.h.  */
 
5475
#include <$ac_header>
 
5476
_ACEOF
 
5477
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5478
case "(($ac_try" in
 
5479
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5480
  *) ac_try_echo=$ac_try;;
 
5481
esac
 
5482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5483
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5484
  ac_status=$?
 
5485
  grep -v '^ *+' conftest.er1 >conftest.err
 
5486
  rm -f conftest.er1
 
5487
  cat conftest.err >&5
 
5488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5489
  (exit $ac_status); } >/dev/null && {
 
5490
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5491
         test ! -s conftest.err
 
5492
       }; then
 
5493
  ac_header_preproc=yes
 
5494
else
 
5495
  echo "$as_me: failed program was:" >&5
 
5496
sed 's/^/| /' conftest.$ac_ext >&5
 
5497
 
 
5498
  ac_header_preproc=no
 
5499
fi
 
5500
 
 
5501
rm -f conftest.err conftest.$ac_ext
 
5502
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5503
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5504
 
 
5505
# So?  What about this header?
 
5506
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5507
  yes:no: )
 
5508
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5509
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5510
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5511
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5512
    ac_header_preproc=yes
 
5513
    ;;
 
5514
  no:yes:* )
 
5515
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5516
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5517
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5518
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5519
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5520
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5521
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5522
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5523
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5524
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5525
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5526
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5527
 
 
5528
    ;;
 
5529
esac
 
5530
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5531
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5532
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5534
else
 
5535
  eval "$as_ac_Header=\$ac_header_preproc"
 
5536
fi
 
5537
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5538
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5539
echo "${ECHO_T}$ac_res" >&6; }
 
5540
 
 
5541
fi
 
5542
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5543
  cat >>confdefs.h <<_ACEOF
 
5544
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5545
_ACEOF
 
5546
 
 
5547
fi
 
5548
 
 
5549
done
 
5550
 
 
5551
 
 
5552
 
 
5553
 
 
5554
 
 
5555
 
 
5556
 
 
5557
 
 
5558
for ac_header in pty.h termio.h termios.h sgtty.h libutil.h setjmp.h values.h
 
5559
do
 
5560
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5561
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5562
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5563
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5564
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5566
fi
 
5567
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5568
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5569
echo "${ECHO_T}$ac_res" >&6; }
 
5570
else
 
5571
  # Is the header compilable?
 
5572
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5573
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5574
cat >conftest.$ac_ext <<_ACEOF
 
5575
/* confdefs.h.  */
 
5576
_ACEOF
 
5577
cat confdefs.h >>conftest.$ac_ext
 
5578
cat >>conftest.$ac_ext <<_ACEOF
 
5579
/* end confdefs.h.  */
 
5580
$ac_includes_default
 
5581
#include <$ac_header>
 
5582
_ACEOF
 
5583
rm -f conftest.$ac_objext
 
5584
if { (ac_try="$ac_compile"
 
5585
case "(($ac_try" in
 
5586
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5587
  *) ac_try_echo=$ac_try;;
 
5588
esac
 
5589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5590
  (eval "$ac_compile") 2>conftest.er1
 
5591
  ac_status=$?
 
5592
  grep -v '^ *+' conftest.er1 >conftest.err
 
5593
  rm -f conftest.er1
 
5594
  cat conftest.err >&5
 
5595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5596
  (exit $ac_status); } && {
 
5597
         test -z "$ac_c_werror_flag" ||
 
5598
         test ! -s conftest.err
 
5599
       } && test -s conftest.$ac_objext; then
 
5600
  ac_header_compiler=yes
 
5601
else
 
5602
  echo "$as_me: failed program was:" >&5
 
5603
sed 's/^/| /' conftest.$ac_ext >&5
 
5604
 
 
5605
        ac_header_compiler=no
 
5606
fi
 
5607
 
 
5608
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5609
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5610
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5611
 
 
5612
# Is the header present?
 
5613
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5614
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5615
cat >conftest.$ac_ext <<_ACEOF
 
5616
/* confdefs.h.  */
 
5617
_ACEOF
 
5618
cat confdefs.h >>conftest.$ac_ext
 
5619
cat >>conftest.$ac_ext <<_ACEOF
 
5620
/* end confdefs.h.  */
 
5621
#include <$ac_header>
 
5622
_ACEOF
 
5623
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5624
case "(($ac_try" in
 
5625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5626
  *) ac_try_echo=$ac_try;;
 
5627
esac
 
5628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5629
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5630
  ac_status=$?
 
5631
  grep -v '^ *+' conftest.er1 >conftest.err
 
5632
  rm -f conftest.er1
 
5633
  cat conftest.err >&5
 
5634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5635
  (exit $ac_status); } >/dev/null && {
 
5636
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5637
         test ! -s conftest.err
 
5638
       }; then
 
5639
  ac_header_preproc=yes
 
5640
else
 
5641
  echo "$as_me: failed program was:" >&5
 
5642
sed 's/^/| /' conftest.$ac_ext >&5
 
5643
 
 
5644
  ac_header_preproc=no
 
5645
fi
 
5646
 
 
5647
rm -f conftest.err conftest.$ac_ext
 
5648
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5649
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5650
 
 
5651
# So?  What about this header?
 
5652
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5653
  yes:no: )
 
5654
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5655
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5656
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5657
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5658
    ac_header_preproc=yes
 
5659
    ;;
 
5660
  no:yes:* )
 
5661
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5662
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5663
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5664
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5665
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5666
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5667
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5668
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5669
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5670
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5671
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5672
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5673
 
 
5674
    ;;
 
5675
esac
 
5676
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5677
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5678
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5680
else
 
5681
  eval "$as_ac_Header=\$ac_header_preproc"
 
5682
fi
 
5683
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5684
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5685
echo "${ECHO_T}$ac_res" >&6; }
 
5686
 
 
5687
fi
 
5688
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5689
  cat >>confdefs.h <<_ACEOF
 
5690
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5691
_ACEOF
 
5692
 
 
5693
fi
 
5694
 
1893
5695
done
1894
5696
 
1895
5697
 
1896
5698
 
1897
5699
case "$host" in
1898
5700
 *-irix*)
1899
 
    cat >> confdefs.h <<\EOF
 
5701
    cat >>confdefs.h <<\_ACEOF
1900
5702
#define HAVE_SYS_SOCKET_H 1
1901
 
EOF
 
5703
_ACEOF
1902
5704
 
1903
 
    cat >> confdefs.h <<\EOF
 
5705
    cat >>confdefs.h <<\_ACEOF
1904
5706
#define HAVE_NETINET_IP_H 1
1905
 
EOF
 
5707
_ACEOF
1906
5708
 
1907
 
    cat >> confdefs.h <<\EOF
 
5709
    cat >>confdefs.h <<\_ACEOF
1908
5710
#define HAVE_NETINET_TCP_H 1
1909
 
EOF
 
5711
_ACEOF
1910
5712
 
1911
5713
    ;;
1912
5714
 *)
1913
 
    for ac_hdr in sys/socket.h netinet/ip.h netinet/tcp.h
 
5715
 
 
5716
 
 
5717
 
 
5718
for ac_header in sys/socket.h netinet/ip.h netinet/tcp.h
1914
5719
do
1915
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1916
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1917
 
echo "configure:1918: checking for $ac_hdr" >&5
1918
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1919
 
  echo $ac_n "(cached) $ac_c" 1>&6
1920
 
else
1921
 
  cat > conftest.$ac_ext <<EOF
1922
 
#line 1923 "configure"
1923
 
#include "confdefs.h"
1924
 
#include <$ac_hdr>
1925
 
EOF
1926
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927
 
{ (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929
 
if test -z "$ac_err"; then
1930
 
  rm -rf conftest*
1931
 
  eval "ac_cv_header_$ac_safe=yes"
1932
 
else
1933
 
  echo "$ac_err" >&5
1934
 
  echo "configure: failed program was:" >&5
1935
 
  cat conftest.$ac_ext >&5
1936
 
  rm -rf conftest*
1937
 
  eval "ac_cv_header_$ac_safe=no"
1938
 
fi
1939
 
rm -f conftest*
1940
 
fi
1941
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1942
 
  echo "$ac_t""yes" 1>&6
1943
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1944
 
  cat >> confdefs.h <<EOF
1945
 
#define $ac_tr_hdr 1
1946
 
EOF
1947
 
 
1948
 
else
1949
 
  echo "$ac_t""no" 1>&6
1950
 
fi
 
5720
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5721
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5722
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5723
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5724
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5726
fi
 
5727
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5728
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5729
echo "${ECHO_T}$ac_res" >&6; }
 
5730
else
 
5731
  # Is the header compilable?
 
5732
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5733
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5734
cat >conftest.$ac_ext <<_ACEOF
 
5735
/* confdefs.h.  */
 
5736
_ACEOF
 
5737
cat confdefs.h >>conftest.$ac_ext
 
5738
cat >>conftest.$ac_ext <<_ACEOF
 
5739
/* end confdefs.h.  */
 
5740
$ac_includes_default
 
5741
#include <$ac_header>
 
5742
_ACEOF
 
5743
rm -f conftest.$ac_objext
 
5744
if { (ac_try="$ac_compile"
 
5745
case "(($ac_try" in
 
5746
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5747
  *) ac_try_echo=$ac_try;;
 
5748
esac
 
5749
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5750
  (eval "$ac_compile") 2>conftest.er1
 
5751
  ac_status=$?
 
5752
  grep -v '^ *+' conftest.er1 >conftest.err
 
5753
  rm -f conftest.er1
 
5754
  cat conftest.err >&5
 
5755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5756
  (exit $ac_status); } && {
 
5757
         test -z "$ac_c_werror_flag" ||
 
5758
         test ! -s conftest.err
 
5759
       } && test -s conftest.$ac_objext; then
 
5760
  ac_header_compiler=yes
 
5761
else
 
5762
  echo "$as_me: failed program was:" >&5
 
5763
sed 's/^/| /' conftest.$ac_ext >&5
 
5764
 
 
5765
        ac_header_compiler=no
 
5766
fi
 
5767
 
 
5768
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5769
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5770
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5771
 
 
5772
# Is the header present?
 
5773
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5774
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5775
cat >conftest.$ac_ext <<_ACEOF
 
5776
/* confdefs.h.  */
 
5777
_ACEOF
 
5778
cat confdefs.h >>conftest.$ac_ext
 
5779
cat >>conftest.$ac_ext <<_ACEOF
 
5780
/* end confdefs.h.  */
 
5781
#include <$ac_header>
 
5782
_ACEOF
 
5783
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5784
case "(($ac_try" in
 
5785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5786
  *) ac_try_echo=$ac_try;;
 
5787
esac
 
5788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5789
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5790
  ac_status=$?
 
5791
  grep -v '^ *+' conftest.er1 >conftest.err
 
5792
  rm -f conftest.er1
 
5793
  cat conftest.err >&5
 
5794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5795
  (exit $ac_status); } >/dev/null && {
 
5796
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5797
         test ! -s conftest.err
 
5798
       }; then
 
5799
  ac_header_preproc=yes
 
5800
else
 
5801
  echo "$as_me: failed program was:" >&5
 
5802
sed 's/^/| /' conftest.$ac_ext >&5
 
5803
 
 
5804
  ac_header_preproc=no
 
5805
fi
 
5806
 
 
5807
rm -f conftest.err conftest.$ac_ext
 
5808
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5809
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5810
 
 
5811
# So?  What about this header?
 
5812
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5813
  yes:no: )
 
5814
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5815
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5816
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5817
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5818
    ac_header_preproc=yes
 
5819
    ;;
 
5820
  no:yes:* )
 
5821
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5822
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5823
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5824
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5825
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5826
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5827
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5828
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5829
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5830
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5831
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5832
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5833
 
 
5834
    ;;
 
5835
esac
 
5836
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5837
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5838
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5840
else
 
5841
  eval "$as_ac_Header=\$ac_header_preproc"
 
5842
fi
 
5843
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5844
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5845
echo "${ECHO_T}$ac_res" >&6; }
 
5846
 
 
5847
fi
 
5848
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5849
  cat >>confdefs.h <<_ACEOF
 
5850
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5851
_ACEOF
 
5852
 
 
5853
fi
 
5854
 
1951
5855
done
1952
5856
 
1953
5857
    ;;
1956
5860
 
1957
5861
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1958
5862
# for constant arguments.  Useless!
1959
 
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1960
 
echo "configure:1961: checking for working alloca.h" >&5
1961
 
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1962
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
5863
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
5864
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
 
5865
if test "${ac_cv_working_alloca_h+set}" = set; then
 
5866
  echo $ECHO_N "(cached) $ECHO_C" >&6
1963
5867
else
1964
 
  cat > conftest.$ac_ext <<EOF
1965
 
#line 1966 "configure"
1966
 
#include "confdefs.h"
 
5868
  cat >conftest.$ac_ext <<_ACEOF
 
5869
/* confdefs.h.  */
 
5870
_ACEOF
 
5871
cat confdefs.h >>conftest.$ac_ext
 
5872
cat >>conftest.$ac_ext <<_ACEOF
 
5873
/* end confdefs.h.  */
1967
5874
#include <alloca.h>
1968
 
int main() {
1969
 
char *p = alloca(2 * sizeof(int));
1970
 
; return 0; }
1971
 
EOF
1972
 
if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1973
 
  rm -rf conftest*
1974
 
  ac_cv_header_alloca_h=yes
 
5875
int
 
5876
main ()
 
5877
{
 
5878
char *p = (char *) alloca (2 * sizeof (int));
 
5879
                          if (p) return 0;
 
5880
  ;
 
5881
  return 0;
 
5882
}
 
5883
_ACEOF
 
5884
rm -f conftest.$ac_objext conftest$ac_exeext
 
5885
if { (ac_try="$ac_link"
 
5886
case "(($ac_try" in
 
5887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5888
  *) ac_try_echo=$ac_try;;
 
5889
esac
 
5890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5891
  (eval "$ac_link") 2>conftest.er1
 
5892
  ac_status=$?
 
5893
  grep -v '^ *+' conftest.er1 >conftest.err
 
5894
  rm -f conftest.er1
 
5895
  cat conftest.err >&5
 
5896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5897
  (exit $ac_status); } && {
 
5898
         test -z "$ac_c_werror_flag" ||
 
5899
         test ! -s conftest.err
 
5900
       } && test -s conftest$ac_exeext &&
 
5901
       $as_test_x conftest$ac_exeext; then
 
5902
  ac_cv_working_alloca_h=yes
1975
5903
else
1976
 
  echo "configure: failed program was:" >&5
1977
 
  cat conftest.$ac_ext >&5
1978
 
  rm -rf conftest*
1979
 
  ac_cv_header_alloca_h=no
1980
 
fi
1981
 
rm -f conftest*
1982
 
fi
1983
 
 
1984
 
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1985
 
if test $ac_cv_header_alloca_h = yes; then
1986
 
  cat >> confdefs.h <<\EOF
 
5904
  echo "$as_me: failed program was:" >&5
 
5905
sed 's/^/| /' conftest.$ac_ext >&5
 
5906
 
 
5907
        ac_cv_working_alloca_h=no
 
5908
fi
 
5909
 
 
5910
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5911
      conftest$ac_exeext conftest.$ac_ext
 
5912
fi
 
5913
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
5914
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
 
5915
if test $ac_cv_working_alloca_h = yes; then
 
5916
 
 
5917
cat >>confdefs.h <<\_ACEOF
1987
5918
#define HAVE_ALLOCA_H 1
1988
 
EOF
 
5919
_ACEOF
1989
5920
 
1990
5921
fi
1991
5922
 
1992
 
echo $ac_n "checking for alloca""... $ac_c" 1>&6
1993
 
echo "configure:1994: checking for alloca" >&5
1994
 
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1995
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
5923
{ echo "$as_me:$LINENO: checking for alloca" >&5
 
5924
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
 
5925
if test "${ac_cv_func_alloca_works+set}" = set; then
 
5926
  echo $ECHO_N "(cached) $ECHO_C" >&6
1996
5927
else
1997
 
  cat > conftest.$ac_ext <<EOF
1998
 
#line 1999 "configure"
1999
 
#include "confdefs.h"
2000
 
 
 
5928
  cat >conftest.$ac_ext <<_ACEOF
 
5929
/* confdefs.h.  */
 
5930
_ACEOF
 
5931
cat confdefs.h >>conftest.$ac_ext
 
5932
cat >>conftest.$ac_ext <<_ACEOF
 
5933
/* end confdefs.h.  */
2001
5934
#ifdef __GNUC__
2002
5935
# define alloca __builtin_alloca
2003
5936
#else
2005
5938
#  include <malloc.h>
2006
5939
#  define alloca _alloca
2007
5940
# else
2008
 
#  if HAVE_ALLOCA_H
 
5941
#  ifdef HAVE_ALLOCA_H
2009
5942
#   include <alloca.h>
2010
5943
#  else
2011
5944
#   ifdef _AIX
2019
5952
# endif
2020
5953
#endif
2021
5954
 
2022
 
int main() {
2023
 
char *p = (char *) alloca(1);
2024
 
; return 0; }
2025
 
EOF
2026
 
if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2027
 
  rm -rf conftest*
 
5955
int
 
5956
main ()
 
5957
{
 
5958
char *p = (char *) alloca (1);
 
5959
                                    if (p) return 0;
 
5960
  ;
 
5961
  return 0;
 
5962
}
 
5963
_ACEOF
 
5964
rm -f conftest.$ac_objext conftest$ac_exeext
 
5965
if { (ac_try="$ac_link"
 
5966
case "(($ac_try" in
 
5967
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5968
  *) ac_try_echo=$ac_try;;
 
5969
esac
 
5970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5971
  (eval "$ac_link") 2>conftest.er1
 
5972
  ac_status=$?
 
5973
  grep -v '^ *+' conftest.er1 >conftest.err
 
5974
  rm -f conftest.er1
 
5975
  cat conftest.err >&5
 
5976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5977
  (exit $ac_status); } && {
 
5978
         test -z "$ac_c_werror_flag" ||
 
5979
         test ! -s conftest.err
 
5980
       } && test -s conftest$ac_exeext &&
 
5981
       $as_test_x conftest$ac_exeext; then
2028
5982
  ac_cv_func_alloca_works=yes
2029
5983
else
2030
 
  echo "configure: failed program was:" >&5
2031
 
  cat conftest.$ac_ext >&5
2032
 
  rm -rf conftest*
2033
 
  ac_cv_func_alloca_works=no
2034
 
fi
2035
 
rm -f conftest*
2036
 
fi
2037
 
 
2038
 
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
 
5984
  echo "$as_me: failed program was:" >&5
 
5985
sed 's/^/| /' conftest.$ac_ext >&5
 
5986
 
 
5987
        ac_cv_func_alloca_works=no
 
5988
fi
 
5989
 
 
5990
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5991
      conftest$ac_exeext conftest.$ac_ext
 
5992
fi
 
5993
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
5994
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
 
5995
 
2039
5996
if test $ac_cv_func_alloca_works = yes; then
2040
 
  cat >> confdefs.h <<\EOF
 
5997
 
 
5998
cat >>confdefs.h <<\_ACEOF
2041
5999
#define HAVE_ALLOCA 1
2042
 
EOF
2043
 
 
2044
 
fi
2045
 
 
2046
 
if test $ac_cv_func_alloca_works = no; then
 
6000
_ACEOF
 
6001
 
 
6002
else
2047
6003
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2048
 
  # that cause trouble.  Some versions do not even contain alloca or
2049
 
  # contain a buggy version.  If you still want to use their alloca,
2050
 
  # use ar to extract alloca.o from them instead of compiling alloca.c.
2051
 
  ALLOCA=alloca.${ac_objext}
2052
 
  cat >> confdefs.h <<\EOF
 
6004
# that cause trouble.  Some versions do not even contain alloca or
 
6005
# contain a buggy version.  If you still want to use their alloca,
 
6006
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
6007
 
 
6008
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
6009
 
 
6010
cat >>confdefs.h <<\_ACEOF
2053
6011
#define C_ALLOCA 1
2054
 
EOF
2055
 
 
2056
 
 
2057
 
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2058
 
echo "configure:2059: checking whether alloca needs Cray hooks" >&5
2059
 
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2060
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6012
_ACEOF
 
6013
 
 
6014
 
 
6015
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
6016
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
 
6017
if test "${ac_cv_os_cray+set}" = set; then
 
6018
  echo $ECHO_N "(cached) $ECHO_C" >&6
2061
6019
else
2062
 
  cat > conftest.$ac_ext <<EOF
2063
 
#line 2064 "configure"
2064
 
#include "confdefs.h"
2065
 
#if defined(CRAY) && ! defined(CRAY2)
 
6020
  cat >conftest.$ac_ext <<_ACEOF
 
6021
/* confdefs.h.  */
 
6022
_ACEOF
 
6023
cat confdefs.h >>conftest.$ac_ext
 
6024
cat >>conftest.$ac_ext <<_ACEOF
 
6025
/* end confdefs.h.  */
 
6026
#if defined CRAY && ! defined CRAY2
2066
6027
webecray
2067
6028
#else
2068
6029
wenotbecray
2069
6030
#endif
2070
6031
 
2071
 
EOF
 
6032
_ACEOF
2072
6033
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2073
 
  egrep "webecray" >/dev/null 2>&1; then
2074
 
  rm -rf conftest*
 
6034
  $EGREP "webecray" >/dev/null 2>&1; then
2075
6035
  ac_cv_os_cray=yes
2076
6036
else
2077
 
  rm -rf conftest*
2078
6037
  ac_cv_os_cray=no
2079
6038
fi
2080
6039
rm -f conftest*
2081
6040
 
2082
6041
fi
2083
 
 
2084
 
echo "$ac_t""$ac_cv_os_cray" 1>&6
 
6042
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
6043
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
2085
6044
if test $ac_cv_os_cray = yes; then
2086
 
for ac_func in _getb67 GETB67 getb67; do
2087
 
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2088
 
echo "configure:2089: checking for $ac_func" >&5
2089
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2090
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6045
  for ac_func in _getb67 GETB67 getb67; do
 
6046
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6047
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6048
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6049
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6050
  echo $ECHO_N "(cached) $ECHO_C" >&6
2091
6051
else
2092
 
  cat > conftest.$ac_ext <<EOF
2093
 
#line 2094 "configure"
2094
 
#include "confdefs.h"
 
6052
  cat >conftest.$ac_ext <<_ACEOF
 
6053
/* confdefs.h.  */
 
6054
_ACEOF
 
6055
cat confdefs.h >>conftest.$ac_ext
 
6056
cat >>conftest.$ac_ext <<_ACEOF
 
6057
/* end confdefs.h.  */
 
6058
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6059
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6060
#define $ac_func innocuous_$ac_func
 
6061
 
2095
6062
/* System header to define __stub macros and hopefully few prototypes,
2096
 
    which can conflict with char $ac_func(); below.  */
2097
 
#include <assert.h>
2098
 
/* Override any gcc2 internal prototype to avoid an error.  */
2099
 
/* We use char because int might match the return type of a gcc2
2100
 
    builtin and then its argument prototype would still apply.  */
2101
 
char $ac_func();
2102
 
 
2103
 
int main() {
2104
 
 
 
6063
    which can conflict with char $ac_func (); below.
 
6064
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6065
    <limits.h> exists even on freestanding compilers.  */
 
6066
 
 
6067
#ifdef __STDC__
 
6068
# include <limits.h>
 
6069
#else
 
6070
# include <assert.h>
 
6071
#endif
 
6072
 
 
6073
#undef $ac_func
 
6074
 
 
6075
/* Override any GCC internal prototype to avoid an error.
 
6076
   Use char because int might match the return type of a GCC
 
6077
   builtin and then its argument prototype would still apply.  */
 
6078
#ifdef __cplusplus
 
6079
extern "C"
 
6080
#endif
 
6081
char $ac_func ();
2105
6082
/* The GNU C library defines this for functions which it implements
2106
6083
    to always fail with ENOSYS.  Some functions are actually named
2107
6084
    something starting with __ and the normal name is an alias.  */
2108
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6085
#if defined __stub_$ac_func || defined __stub___$ac_func
2109
6086
choke me
2110
 
#else
2111
 
$ac_func();
2112
6087
#endif
2113
6088
 
2114
 
; return 0; }
2115
 
EOF
2116
 
if { (eval echo configure:2117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2117
 
  rm -rf conftest*
2118
 
  eval "ac_cv_func_$ac_func=yes"
 
6089
int
 
6090
main ()
 
6091
{
 
6092
return $ac_func ();
 
6093
  ;
 
6094
  return 0;
 
6095
}
 
6096
_ACEOF
 
6097
rm -f conftest.$ac_objext conftest$ac_exeext
 
6098
if { (ac_try="$ac_link"
 
6099
case "(($ac_try" in
 
6100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6101
  *) ac_try_echo=$ac_try;;
 
6102
esac
 
6103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6104
  (eval "$ac_link") 2>conftest.er1
 
6105
  ac_status=$?
 
6106
  grep -v '^ *+' conftest.er1 >conftest.err
 
6107
  rm -f conftest.er1
 
6108
  cat conftest.err >&5
 
6109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6110
  (exit $ac_status); } && {
 
6111
         test -z "$ac_c_werror_flag" ||
 
6112
         test ! -s conftest.err
 
6113
       } && test -s conftest$ac_exeext &&
 
6114
       $as_test_x conftest$ac_exeext; then
 
6115
  eval "$as_ac_var=yes"
2119
6116
else
2120
 
  echo "configure: failed program was:" >&5
2121
 
  cat conftest.$ac_ext >&5
2122
 
  rm -rf conftest*
2123
 
  eval "ac_cv_func_$ac_func=no"
2124
 
fi
2125
 
rm -f conftest*
2126
 
fi
2127
 
 
2128
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2129
 
  echo "$ac_t""yes" 1>&6
2130
 
  cat >> confdefs.h <<EOF
 
6117
  echo "$as_me: failed program was:" >&5
 
6118
sed 's/^/| /' conftest.$ac_ext >&5
 
6119
 
 
6120
        eval "$as_ac_var=no"
 
6121
fi
 
6122
 
 
6123
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6124
      conftest$ac_exeext conftest.$ac_ext
 
6125
fi
 
6126
ac_res=`eval echo '${'$as_ac_var'}'`
 
6127
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6128
echo "${ECHO_T}$ac_res" >&6; }
 
6129
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6130
 
 
6131
cat >>confdefs.h <<_ACEOF
2131
6132
#define CRAY_STACKSEG_END $ac_func
2132
 
EOF
2133
 
 
2134
 
  break
2135
 
else
2136
 
  echo "$ac_t""no" 1>&6
2137
 
fi
2138
 
 
2139
 
done
2140
 
fi
2141
 
 
2142
 
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2143
 
echo "configure:2144: checking stack direction for C alloca" >&5
2144
 
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2145
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6133
_ACEOF
 
6134
 
 
6135
    break
 
6136
fi
 
6137
 
 
6138
  done
 
6139
fi
 
6140
 
 
6141
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
6142
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
 
6143
if test "${ac_cv_c_stack_direction+set}" = set; then
 
6144
  echo $ECHO_N "(cached) $ECHO_C" >&6
2146
6145
else
2147
6146
  if test "$cross_compiling" = yes; then
2148
6147
  ac_cv_c_stack_direction=0
2149
6148
else
2150
 
  cat > conftest.$ac_ext <<EOF
2151
 
#line 2152 "configure"
2152
 
#include "confdefs.h"
 
6149
  cat >conftest.$ac_ext <<_ACEOF
 
6150
/* confdefs.h.  */
 
6151
_ACEOF
 
6152
cat confdefs.h >>conftest.$ac_ext
 
6153
cat >>conftest.$ac_ext <<_ACEOF
 
6154
/* end confdefs.h.  */
 
6155
$ac_includes_default
 
6156
int
2153
6157
find_stack_direction ()
2154
6158
{
2155
6159
  static char *addr = 0;
2162
6166
  else
2163
6167
    return (&dummy > addr) ? 1 : -1;
2164
6168
}
 
6169
 
 
6170
int
2165
6171
main ()
2166
6172
{
2167
 
  exit (find_stack_direction() < 0);
 
6173
  return find_stack_direction () < 0;
2168
6174
}
2169
 
EOF
2170
 
if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2171
 
then
 
6175
_ACEOF
 
6176
rm -f conftest$ac_exeext
 
6177
if { (ac_try="$ac_link"
 
6178
case "(($ac_try" in
 
6179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6180
  *) ac_try_echo=$ac_try;;
 
6181
esac
 
6182
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6183
  (eval "$ac_link") 2>&5
 
6184
  ac_status=$?
 
6185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6186
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6187
  { (case "(($ac_try" in
 
6188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6189
  *) ac_try_echo=$ac_try;;
 
6190
esac
 
6191
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6192
  (eval "$ac_try") 2>&5
 
6193
  ac_status=$?
 
6194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6195
  (exit $ac_status); }; }; then
2172
6196
  ac_cv_c_stack_direction=1
2173
6197
else
2174
 
  echo "configure: failed program was:" >&5
2175
 
  cat conftest.$ac_ext >&5
2176
 
  rm -fr conftest*
2177
 
  ac_cv_c_stack_direction=-1
2178
 
fi
2179
 
rm -fr conftest*
2180
 
fi
2181
 
 
2182
 
fi
2183
 
 
2184
 
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2185
 
cat >> confdefs.h <<EOF
 
6198
  echo "$as_me: program exited with status $ac_status" >&5
 
6199
echo "$as_me: failed program was:" >&5
 
6200
sed 's/^/| /' conftest.$ac_ext >&5
 
6201
 
 
6202
( exit $ac_status )
 
6203
ac_cv_c_stack_direction=-1
 
6204
fi
 
6205
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6206
fi
 
6207
 
 
6208
 
 
6209
fi
 
6210
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
6211
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
 
6212
 
 
6213
cat >>confdefs.h <<_ACEOF
2186
6214
#define STACK_DIRECTION $ac_cv_c_stack_direction
2187
 
EOF
 
6215
_ACEOF
 
6216
 
2188
6217
 
2189
6218
fi
2190
6219
 
2191
 
echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
2192
 
echo "configure:2193: checking for wait3 that fills in rusage" >&5
2193
 
if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
2194
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6220
{ echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5
 
6221
echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6; }
 
6222
if test "${ac_cv_func_wait3_rusage+set}" = set; then
 
6223
  echo $ECHO_N "(cached) $ECHO_C" >&6
2195
6224
else
2196
6225
  if test "$cross_compiling" = yes; then
2197
6226
  ac_cv_func_wait3_rusage=no
2198
6227
else
2199
 
  cat > conftest.$ac_ext <<EOF
2200
 
#line 2201 "configure"
2201
 
#include "confdefs.h"
2202
 
#include <sys/types.h>
 
6228
  cat >conftest.$ac_ext <<_ACEOF
 
6229
/* confdefs.h.  */
 
6230
_ACEOF
 
6231
cat confdefs.h >>conftest.$ac_ext
 
6232
cat >>conftest.$ac_ext <<_ACEOF
 
6233
/* end confdefs.h.  */
 
6234
$ac_includes_default
2203
6235
#include <sys/time.h>
2204
6236
#include <sys/resource.h>
2205
 
#include <stdio.h>
 
6237
#include <sys/wait.h>
2206
6238
/* HP-UX has wait3 but does not fill in rusage at all.  */
2207
 
main() {
 
6239
int
 
6240
main ()
 
6241
{
2208
6242
  struct rusage r;
2209
6243
  int i;
2210
6244
  /* Use a field that we can force nonzero --
2215
6249
  r.ru_stime.tv_sec = 0;
2216
6250
  r.ru_stime.tv_usec = 0;
2217
6251
  r.ru_majflt = r.ru_minflt = 0;
2218
 
  switch (fork()) {
2219
 
  case 0: /* Child.  */
2220
 
    sleep(1); /* Give up the CPU.  */
2221
 
    _exit(0);
2222
 
  case -1: _exit(0); /* What can we do?  */
2223
 
  default: /* Parent.  */
2224
 
    wait3(&i, 0, &r);
2225
 
    sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines.  */
2226
 
    exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2227
 
         && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2228
 
  }
 
6252
  switch (fork ())
 
6253
    {
 
6254
    case 0: /* Child.  */
 
6255
      sleep(1); /* Give up the CPU.  */
 
6256
      _exit(0);
 
6257
      break;
 
6258
    case -1: /* What can we do?  */
 
6259
      _exit(0);
 
6260
      break;
 
6261
    default: /* Parent.  */
 
6262
      wait3(&i, 0, &r);
 
6263
      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
 
6264
      sleep(2);
 
6265
      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
 
6266
              && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
 
6267
    }
2229
6268
}
2230
 
EOF
2231
 
if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2232
 
then
 
6269
_ACEOF
 
6270
rm -f conftest$ac_exeext
 
6271
if { (ac_try="$ac_link"
 
6272
case "(($ac_try" in
 
6273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6274
  *) ac_try_echo=$ac_try;;
 
6275
esac
 
6276
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6277
  (eval "$ac_link") 2>&5
 
6278
  ac_status=$?
 
6279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6280
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6281
  { (case "(($ac_try" in
 
6282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6283
  *) ac_try_echo=$ac_try;;
 
6284
esac
 
6285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6286
  (eval "$ac_try") 2>&5
 
6287
  ac_status=$?
 
6288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6289
  (exit $ac_status); }; }; then
2233
6290
  ac_cv_func_wait3_rusage=yes
2234
6291
else
2235
 
  echo "configure: failed program was:" >&5
2236
 
  cat conftest.$ac_ext >&5
2237
 
  rm -fr conftest*
2238
 
  ac_cv_func_wait3_rusage=no
2239
 
fi
2240
 
rm -fr conftest*
2241
 
fi
2242
 
 
2243
 
fi
2244
 
 
2245
 
echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
 
6292
  echo "$as_me: program exited with status $ac_status" >&5
 
6293
echo "$as_me: failed program was:" >&5
 
6294
sed 's/^/| /' conftest.$ac_ext >&5
 
6295
 
 
6296
( exit $ac_status )
 
6297
ac_cv_func_wait3_rusage=no
 
6298
fi
 
6299
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6300
fi
 
6301
 
 
6302
 
 
6303
fi
 
6304
{ echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5
 
6305
echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6; }
2246
6306
if test $ac_cv_func_wait3_rusage = yes; then
2247
 
  cat >> confdefs.h <<\EOF
 
6307
 
 
6308
cat >>confdefs.h <<\_ACEOF
2248
6309
#define HAVE_WAIT3 1
2249
 
EOF
 
6310
_ACEOF
2250
6311
 
2251
6312
fi
2252
6313
 
 
6314
 
 
6315
 
 
6316
 
 
6317
 
2253
6318
for ac_func in waitpid wait4 mmap atexit
2254
6319
do
2255
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2256
 
echo "configure:2257: checking for $ac_func" >&5
2257
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2258
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6320
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6321
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6322
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6323
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6324
  echo $ECHO_N "(cached) $ECHO_C" >&6
2259
6325
else
2260
 
  cat > conftest.$ac_ext <<EOF
2261
 
#line 2262 "configure"
2262
 
#include "confdefs.h"
 
6326
  cat >conftest.$ac_ext <<_ACEOF
 
6327
/* confdefs.h.  */
 
6328
_ACEOF
 
6329
cat confdefs.h >>conftest.$ac_ext
 
6330
cat >>conftest.$ac_ext <<_ACEOF
 
6331
/* end confdefs.h.  */
 
6332
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6333
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6334
#define $ac_func innocuous_$ac_func
 
6335
 
2263
6336
/* System header to define __stub macros and hopefully few prototypes,
2264
 
    which can conflict with char $ac_func(); below.  */
2265
 
#include <assert.h>
2266
 
/* Override any gcc2 internal prototype to avoid an error.  */
2267
 
/* We use char because int might match the return type of a gcc2
2268
 
    builtin and then its argument prototype would still apply.  */
2269
 
char $ac_func();
2270
 
 
2271
 
int main() {
2272
 
 
 
6337
    which can conflict with char $ac_func (); below.
 
6338
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6339
    <limits.h> exists even on freestanding compilers.  */
 
6340
 
 
6341
#ifdef __STDC__
 
6342
# include <limits.h>
 
6343
#else
 
6344
# include <assert.h>
 
6345
#endif
 
6346
 
 
6347
#undef $ac_func
 
6348
 
 
6349
/* Override any GCC internal prototype to avoid an error.
 
6350
   Use char because int might match the return type of a GCC
 
6351
   builtin and then its argument prototype would still apply.  */
 
6352
#ifdef __cplusplus
 
6353
extern "C"
 
6354
#endif
 
6355
char $ac_func ();
2273
6356
/* The GNU C library defines this for functions which it implements
2274
6357
    to always fail with ENOSYS.  Some functions are actually named
2275
6358
    something starting with __ and the normal name is an alias.  */
2276
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6359
#if defined __stub_$ac_func || defined __stub___$ac_func
2277
6360
choke me
2278
 
#else
2279
 
$ac_func();
2280
6361
#endif
2281
6362
 
2282
 
; return 0; }
2283
 
EOF
2284
 
if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2285
 
  rm -rf conftest*
2286
 
  eval "ac_cv_func_$ac_func=yes"
2287
 
else
2288
 
  echo "configure: failed program was:" >&5
2289
 
  cat conftest.$ac_ext >&5
2290
 
  rm -rf conftest*
2291
 
  eval "ac_cv_func_$ac_func=no"
2292
 
fi
2293
 
rm -f conftest*
2294
 
fi
2295
 
 
2296
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2297
 
  echo "$ac_t""yes" 1>&6
2298
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2299
 
  cat >> confdefs.h <<EOF
2300
 
#define $ac_tr_func 1
2301
 
EOF
2302
 
 
2303
 
else
2304
 
  echo "$ac_t""no" 1>&6
 
6363
int
 
6364
main ()
 
6365
{
 
6366
return $ac_func ();
 
6367
  ;
 
6368
  return 0;
 
6369
}
 
6370
_ACEOF
 
6371
rm -f conftest.$ac_objext conftest$ac_exeext
 
6372
if { (ac_try="$ac_link"
 
6373
case "(($ac_try" in
 
6374
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6375
  *) ac_try_echo=$ac_try;;
 
6376
esac
 
6377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6378
  (eval "$ac_link") 2>conftest.er1
 
6379
  ac_status=$?
 
6380
  grep -v '^ *+' conftest.er1 >conftest.err
 
6381
  rm -f conftest.er1
 
6382
  cat conftest.err >&5
 
6383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6384
  (exit $ac_status); } && {
 
6385
         test -z "$ac_c_werror_flag" ||
 
6386
         test ! -s conftest.err
 
6387
       } && test -s conftest$ac_exeext &&
 
6388
       $as_test_x conftest$ac_exeext; then
 
6389
  eval "$as_ac_var=yes"
 
6390
else
 
6391
  echo "$as_me: failed program was:" >&5
 
6392
sed 's/^/| /' conftest.$ac_ext >&5
 
6393
 
 
6394
        eval "$as_ac_var=no"
 
6395
fi
 
6396
 
 
6397
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6398
      conftest$ac_exeext conftest.$ac_ext
 
6399
fi
 
6400
ac_res=`eval echo '${'$as_ac_var'}'`
 
6401
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6402
echo "${ECHO_T}$ac_res" >&6; }
 
6403
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6404
  cat >>confdefs.h <<_ACEOF
 
6405
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6406
_ACEOF
 
6407
 
2305
6408
fi
2306
6409
done
2307
6410
 
 
6411
 
 
6412
 
 
6413
 
 
6414
 
 
6415
 
 
6416
 
2308
6417
for ac_func in lstat memmove gettimeofday gethrtime getrusage rand
2309
6418
do
2310
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2311
 
echo "configure:2312: checking for $ac_func" >&5
2312
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2313
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6419
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6420
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6421
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6422
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6423
  echo $ECHO_N "(cached) $ECHO_C" >&6
2314
6424
else
2315
 
  cat > conftest.$ac_ext <<EOF
2316
 
#line 2317 "configure"
2317
 
#include "confdefs.h"
 
6425
  cat >conftest.$ac_ext <<_ACEOF
 
6426
/* confdefs.h.  */
 
6427
_ACEOF
 
6428
cat confdefs.h >>conftest.$ac_ext
 
6429
cat >>conftest.$ac_ext <<_ACEOF
 
6430
/* end confdefs.h.  */
 
6431
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6432
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6433
#define $ac_func innocuous_$ac_func
 
6434
 
2318
6435
/* System header to define __stub macros and hopefully few prototypes,
2319
 
    which can conflict with char $ac_func(); below.  */
2320
 
#include <assert.h>
2321
 
/* Override any gcc2 internal prototype to avoid an error.  */
2322
 
/* We use char because int might match the return type of a gcc2
2323
 
    builtin and then its argument prototype would still apply.  */
2324
 
char $ac_func();
2325
 
 
2326
 
int main() {
2327
 
 
 
6436
    which can conflict with char $ac_func (); below.
 
6437
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6438
    <limits.h> exists even on freestanding compilers.  */
 
6439
 
 
6440
#ifdef __STDC__
 
6441
# include <limits.h>
 
6442
#else
 
6443
# include <assert.h>
 
6444
#endif
 
6445
 
 
6446
#undef $ac_func
 
6447
 
 
6448
/* Override any GCC internal prototype to avoid an error.
 
6449
   Use char because int might match the return type of a GCC
 
6450
   builtin and then its argument prototype would still apply.  */
 
6451
#ifdef __cplusplus
 
6452
extern "C"
 
6453
#endif
 
6454
char $ac_func ();
2328
6455
/* The GNU C library defines this for functions which it implements
2329
6456
    to always fail with ENOSYS.  Some functions are actually named
2330
6457
    something starting with __ and the normal name is an alias.  */
2331
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6458
#if defined __stub_$ac_func || defined __stub___$ac_func
2332
6459
choke me
2333
 
#else
2334
 
$ac_func();
2335
6460
#endif
2336
6461
 
2337
 
; return 0; }
2338
 
EOF
2339
 
if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2340
 
  rm -rf conftest*
2341
 
  eval "ac_cv_func_$ac_func=yes"
2342
 
else
2343
 
  echo "configure: failed program was:" >&5
2344
 
  cat conftest.$ac_ext >&5
2345
 
  rm -rf conftest*
2346
 
  eval "ac_cv_func_$ac_func=no"
2347
 
fi
2348
 
rm -f conftest*
2349
 
fi
2350
 
 
2351
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2352
 
  echo "$ac_t""yes" 1>&6
2353
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2354
 
  cat >> confdefs.h <<EOF
2355
 
#define $ac_tr_func 1
2356
 
EOF
2357
 
 
2358
 
else
2359
 
  echo "$ac_t""no" 1>&6
 
6462
int
 
6463
main ()
 
6464
{
 
6465
return $ac_func ();
 
6466
  ;
 
6467
  return 0;
 
6468
}
 
6469
_ACEOF
 
6470
rm -f conftest.$ac_objext conftest$ac_exeext
 
6471
if { (ac_try="$ac_link"
 
6472
case "(($ac_try" in
 
6473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6474
  *) ac_try_echo=$ac_try;;
 
6475
esac
 
6476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6477
  (eval "$ac_link") 2>conftest.er1
 
6478
  ac_status=$?
 
6479
  grep -v '^ *+' conftest.er1 >conftest.err
 
6480
  rm -f conftest.er1
 
6481
  cat conftest.err >&5
 
6482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6483
  (exit $ac_status); } && {
 
6484
         test -z "$ac_c_werror_flag" ||
 
6485
         test ! -s conftest.err
 
6486
       } && test -s conftest$ac_exeext &&
 
6487
       $as_test_x conftest$ac_exeext; then
 
6488
  eval "$as_ac_var=yes"
 
6489
else
 
6490
  echo "$as_me: failed program was:" >&5
 
6491
sed 's/^/| /' conftest.$ac_ext >&5
 
6492
 
 
6493
        eval "$as_ac_var=no"
 
6494
fi
 
6495
 
 
6496
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6497
      conftest$ac_exeext conftest.$ac_ext
 
6498
fi
 
6499
ac_res=`eval echo '${'$as_ac_var'}'`
 
6500
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6501
echo "${ECHO_T}$ac_res" >&6; }
 
6502
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6503
  cat >>confdefs.h <<_ACEOF
 
6504
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6505
_ACEOF
 
6506
 
2360
6507
fi
2361
6508
done
2362
6509
 
 
6510
 
 
6511
 
 
6512
 
 
6513
 
2363
6514
for ac_func in strchr memcpy select poll
2364
6515
do
2365
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2366
 
echo "configure:2367: checking for $ac_func" >&5
2367
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2368
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6516
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6517
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6518
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6519
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6520
  echo $ECHO_N "(cached) $ECHO_C" >&6
2369
6521
else
2370
 
  cat > conftest.$ac_ext <<EOF
2371
 
#line 2372 "configure"
2372
 
#include "confdefs.h"
 
6522
  cat >conftest.$ac_ext <<_ACEOF
 
6523
/* confdefs.h.  */
 
6524
_ACEOF
 
6525
cat confdefs.h >>conftest.$ac_ext
 
6526
cat >>conftest.$ac_ext <<_ACEOF
 
6527
/* end confdefs.h.  */
 
6528
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6529
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6530
#define $ac_func innocuous_$ac_func
 
6531
 
2373
6532
/* System header to define __stub macros and hopefully few prototypes,
2374
 
    which can conflict with char $ac_func(); below.  */
2375
 
#include <assert.h>
2376
 
/* Override any gcc2 internal prototype to avoid an error.  */
2377
 
/* We use char because int might match the return type of a gcc2
2378
 
    builtin and then its argument prototype would still apply.  */
2379
 
char $ac_func();
2380
 
 
2381
 
int main() {
2382
 
 
 
6533
    which can conflict with char $ac_func (); below.
 
6534
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6535
    <limits.h> exists even on freestanding compilers.  */
 
6536
 
 
6537
#ifdef __STDC__
 
6538
# include <limits.h>
 
6539
#else
 
6540
# include <assert.h>
 
6541
#endif
 
6542
 
 
6543
#undef $ac_func
 
6544
 
 
6545
/* Override any GCC internal prototype to avoid an error.
 
6546
   Use char because int might match the return type of a GCC
 
6547
   builtin and then its argument prototype would still apply.  */
 
6548
#ifdef __cplusplus
 
6549
extern "C"
 
6550
#endif
 
6551
char $ac_func ();
2383
6552
/* The GNU C library defines this for functions which it implements
2384
6553
    to always fail with ENOSYS.  Some functions are actually named
2385
6554
    something starting with __ and the normal name is an alias.  */
2386
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6555
#if defined __stub_$ac_func || defined __stub___$ac_func
2387
6556
choke me
2388
 
#else
2389
 
$ac_func();
2390
6557
#endif
2391
6558
 
2392
 
; return 0; }
2393
 
EOF
2394
 
if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2395
 
  rm -rf conftest*
2396
 
  eval "ac_cv_func_$ac_func=yes"
2397
 
else
2398
 
  echo "configure: failed program was:" >&5
2399
 
  cat conftest.$ac_ext >&5
2400
 
  rm -rf conftest*
2401
 
  eval "ac_cv_func_$ac_func=no"
2402
 
fi
2403
 
rm -f conftest*
2404
 
fi
2405
 
 
2406
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2407
 
  echo "$ac_t""yes" 1>&6
2408
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2409
 
  cat >> confdefs.h <<EOF
2410
 
#define $ac_tr_func 1
2411
 
EOF
2412
 
 
2413
 
else
2414
 
  echo "$ac_t""no" 1>&6
 
6559
int
 
6560
main ()
 
6561
{
 
6562
return $ac_func ();
 
6563
  ;
 
6564
  return 0;
 
6565
}
 
6566
_ACEOF
 
6567
rm -f conftest.$ac_objext conftest$ac_exeext
 
6568
if { (ac_try="$ac_link"
 
6569
case "(($ac_try" in
 
6570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6571
  *) ac_try_echo=$ac_try;;
 
6572
esac
 
6573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6574
  (eval "$ac_link") 2>conftest.er1
 
6575
  ac_status=$?
 
6576
  grep -v '^ *+' conftest.er1 >conftest.err
 
6577
  rm -f conftest.er1
 
6578
  cat conftest.err >&5
 
6579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6580
  (exit $ac_status); } && {
 
6581
         test -z "$ac_c_werror_flag" ||
 
6582
         test ! -s conftest.err
 
6583
       } && test -s conftest$ac_exeext &&
 
6584
       $as_test_x conftest$ac_exeext; then
 
6585
  eval "$as_ac_var=yes"
 
6586
else
 
6587
  echo "$as_me: failed program was:" >&5
 
6588
sed 's/^/| /' conftest.$ac_ext >&5
 
6589
 
 
6590
        eval "$as_ac_var=no"
 
6591
fi
 
6592
 
 
6593
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6594
      conftest$ac_exeext conftest.$ac_ext
 
6595
fi
 
6596
ac_res=`eval echo '${'$as_ac_var'}'`
 
6597
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6598
echo "${ECHO_T}$ac_res" >&6; }
 
6599
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6600
  cat >>confdefs.h <<_ACEOF
 
6601
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6602
_ACEOF
 
6603
 
2415
6604
fi
2416
6605
done
2417
6606
 
2418
 
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
2419
 
echo "configure:2420: checking for vsnprintf" >&5
2420
 
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
2421
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6607
{ echo "$as_me:$LINENO: checking for vsnprintf" >&5
 
6608
echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
 
6609
if test "${ac_cv_func_vsnprintf+set}" = set; then
 
6610
  echo $ECHO_N "(cached) $ECHO_C" >&6
2422
6611
else
2423
 
  cat > conftest.$ac_ext <<EOF
2424
 
#line 2425 "configure"
2425
 
#include "confdefs.h"
 
6612
  cat >conftest.$ac_ext <<_ACEOF
 
6613
/* confdefs.h.  */
 
6614
_ACEOF
 
6615
cat confdefs.h >>conftest.$ac_ext
 
6616
cat >>conftest.$ac_ext <<_ACEOF
 
6617
/* end confdefs.h.  */
 
6618
/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
 
6619
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6620
#define vsnprintf innocuous_vsnprintf
 
6621
 
2426
6622
/* System header to define __stub macros and hopefully few prototypes,
2427
 
    which can conflict with char vsnprintf(); below.  */
2428
 
#include <assert.h>
2429
 
/* Override any gcc2 internal prototype to avoid an error.  */
2430
 
/* We use char because int might match the return type of a gcc2
2431
 
    builtin and then its argument prototype would still apply.  */
2432
 
char vsnprintf();
2433
 
 
2434
 
int main() {
2435
 
 
 
6623
    which can conflict with char vsnprintf (); below.
 
6624
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6625
    <limits.h> exists even on freestanding compilers.  */
 
6626
 
 
6627
#ifdef __STDC__
 
6628
# include <limits.h>
 
6629
#else
 
6630
# include <assert.h>
 
6631
#endif
 
6632
 
 
6633
#undef vsnprintf
 
6634
 
 
6635
/* Override any GCC internal prototype to avoid an error.
 
6636
   Use char because int might match the return type of a GCC
 
6637
   builtin and then its argument prototype would still apply.  */
 
6638
#ifdef __cplusplus
 
6639
extern "C"
 
6640
#endif
 
6641
char vsnprintf ();
2436
6642
/* The GNU C library defines this for functions which it implements
2437
6643
    to always fail with ENOSYS.  Some functions are actually named
2438
6644
    something starting with __ and the normal name is an alias.  */
2439
 
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
 
6645
#if defined __stub_vsnprintf || defined __stub___vsnprintf
2440
6646
choke me
2441
 
#else
2442
 
vsnprintf();
2443
6647
#endif
2444
6648
 
2445
 
; return 0; }
2446
 
EOF
2447
 
if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2448
 
  rm -rf conftest*
2449
 
  eval "ac_cv_func_vsnprintf=yes"
 
6649
int
 
6650
main ()
 
6651
{
 
6652
return vsnprintf ();
 
6653
  ;
 
6654
  return 0;
 
6655
}
 
6656
_ACEOF
 
6657
rm -f conftest.$ac_objext conftest$ac_exeext
 
6658
if { (ac_try="$ac_link"
 
6659
case "(($ac_try" in
 
6660
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6661
  *) ac_try_echo=$ac_try;;
 
6662
esac
 
6663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6664
  (eval "$ac_link") 2>conftest.er1
 
6665
  ac_status=$?
 
6666
  grep -v '^ *+' conftest.er1 >conftest.err
 
6667
  rm -f conftest.er1
 
6668
  cat conftest.err >&5
 
6669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6670
  (exit $ac_status); } && {
 
6671
         test -z "$ac_c_werror_flag" ||
 
6672
         test ! -s conftest.err
 
6673
       } && test -s conftest$ac_exeext &&
 
6674
       $as_test_x conftest$ac_exeext; then
 
6675
  ac_cv_func_vsnprintf=yes
2450
6676
else
2451
 
  echo "configure: failed program was:" >&5
2452
 
  cat conftest.$ac_ext >&5
2453
 
  rm -rf conftest*
2454
 
  eval "ac_cv_func_vsnprintf=no"
2455
 
fi
2456
 
rm -f conftest*
2457
 
fi
2458
 
 
2459
 
if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
2460
 
  echo "$ac_t""yes" 1>&6
2461
 
  cat >> confdefs.h <<\EOF
 
6677
  echo "$as_me: failed program was:" >&5
 
6678
sed 's/^/| /' conftest.$ac_ext >&5
 
6679
 
 
6680
        ac_cv_func_vsnprintf=no
 
6681
fi
 
6682
 
 
6683
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6684
      conftest$ac_exeext conftest.$ac_ext
 
6685
fi
 
6686
{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
 
6687
echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
 
6688
if test $ac_cv_func_vsnprintf = yes; then
 
6689
  cat >>confdefs.h <<\_ACEOF
2462
6690
#define HAVE_VSNPRINTF 1
2463
 
EOF
 
6691
_ACEOF
2464
6692
 
2465
 
else
2466
 
  echo "$ac_t""no" 1>&6
2467
6693
fi
2468
6694
 
 
6695
 
 
6696
 
 
6697
 
 
6698
 
 
6699
 
2469
6700
for ac_func in bzero bcopy setsid rint mkstemp
2470
6701
do
2471
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2472
 
echo "configure:2473: checking for $ac_func" >&5
2473
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2474
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6702
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6703
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6704
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6705
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6706
  echo $ECHO_N "(cached) $ECHO_C" >&6
2475
6707
else
2476
 
  cat > conftest.$ac_ext <<EOF
2477
 
#line 2478 "configure"
2478
 
#include "confdefs.h"
 
6708
  cat >conftest.$ac_ext <<_ACEOF
 
6709
/* confdefs.h.  */
 
6710
_ACEOF
 
6711
cat confdefs.h >>conftest.$ac_ext
 
6712
cat >>conftest.$ac_ext <<_ACEOF
 
6713
/* end confdefs.h.  */
 
6714
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6715
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6716
#define $ac_func innocuous_$ac_func
 
6717
 
2479
6718
/* System header to define __stub macros and hopefully few prototypes,
2480
 
    which can conflict with char $ac_func(); below.  */
2481
 
#include <assert.h>
2482
 
/* Override any gcc2 internal prototype to avoid an error.  */
2483
 
/* We use char because int might match the return type of a gcc2
2484
 
    builtin and then its argument prototype would still apply.  */
2485
 
char $ac_func();
2486
 
 
2487
 
int main() {
2488
 
 
 
6719
    which can conflict with char $ac_func (); below.
 
6720
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6721
    <limits.h> exists even on freestanding compilers.  */
 
6722
 
 
6723
#ifdef __STDC__
 
6724
# include <limits.h>
 
6725
#else
 
6726
# include <assert.h>
 
6727
#endif
 
6728
 
 
6729
#undef $ac_func
 
6730
 
 
6731
/* Override any GCC internal prototype to avoid an error.
 
6732
   Use char because int might match the return type of a GCC
 
6733
   builtin and then its argument prototype would still apply.  */
 
6734
#ifdef __cplusplus
 
6735
extern "C"
 
6736
#endif
 
6737
char $ac_func ();
2489
6738
/* The GNU C library defines this for functions which it implements
2490
6739
    to always fail with ENOSYS.  Some functions are actually named
2491
6740
    something starting with __ and the normal name is an alias.  */
2492
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6741
#if defined __stub_$ac_func || defined __stub___$ac_func
2493
6742
choke me
2494
 
#else
2495
 
$ac_func();
2496
6743
#endif
2497
6744
 
2498
 
; return 0; }
2499
 
EOF
2500
 
if { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2501
 
  rm -rf conftest*
2502
 
  eval "ac_cv_func_$ac_func=yes"
2503
 
else
2504
 
  echo "configure: failed program was:" >&5
2505
 
  cat conftest.$ac_ext >&5
2506
 
  rm -rf conftest*
2507
 
  eval "ac_cv_func_$ac_func=no"
2508
 
fi
2509
 
rm -f conftest*
2510
 
fi
2511
 
 
2512
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2513
 
  echo "$ac_t""yes" 1>&6
2514
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2515
 
  cat >> confdefs.h <<EOF
2516
 
#define $ac_tr_func 1
2517
 
EOF
2518
 
 
2519
 
else
2520
 
  echo "$ac_t""no" 1>&6
 
6745
int
 
6746
main ()
 
6747
{
 
6748
return $ac_func ();
 
6749
  ;
 
6750
  return 0;
 
6751
}
 
6752
_ACEOF
 
6753
rm -f conftest.$ac_objext conftest$ac_exeext
 
6754
if { (ac_try="$ac_link"
 
6755
case "(($ac_try" in
 
6756
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6757
  *) ac_try_echo=$ac_try;;
 
6758
esac
 
6759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6760
  (eval "$ac_link") 2>conftest.er1
 
6761
  ac_status=$?
 
6762
  grep -v '^ *+' conftest.er1 >conftest.err
 
6763
  rm -f conftest.er1
 
6764
  cat conftest.err >&5
 
6765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6766
  (exit $ac_status); } && {
 
6767
         test -z "$ac_c_werror_flag" ||
 
6768
         test ! -s conftest.err
 
6769
       } && test -s conftest$ac_exeext &&
 
6770
       $as_test_x conftest$ac_exeext; then
 
6771
  eval "$as_ac_var=yes"
 
6772
else
 
6773
  echo "$as_me: failed program was:" >&5
 
6774
sed 's/^/| /' conftest.$ac_ext >&5
 
6775
 
 
6776
        eval "$as_ac_var=no"
 
6777
fi
 
6778
 
 
6779
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6780
      conftest$ac_exeext conftest.$ac_ext
 
6781
fi
 
6782
ac_res=`eval echo '${'$as_ac_var'}'`
 
6783
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6784
echo "${ECHO_T}$ac_res" >&6; }
 
6785
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6786
  cat >>confdefs.h <<_ACEOF
 
6787
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6788
_ACEOF
 
6789
 
2521
6790
fi
2522
6791
done
2523
6792
 
 
6793
 
 
6794
 
 
6795
 
 
6796
 
2524
6797
for ac_func in addr2ascii inet_neta setproctitle _exit
2525
6798
do
2526
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2527
 
echo "configure:2528: checking for $ac_func" >&5
2528
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2529
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6799
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6800
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6801
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6802
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6803
  echo $ECHO_N "(cached) $ECHO_C" >&6
2530
6804
else
2531
 
  cat > conftest.$ac_ext <<EOF
2532
 
#line 2533 "configure"
2533
 
#include "confdefs.h"
 
6805
  cat >conftest.$ac_ext <<_ACEOF
 
6806
/* confdefs.h.  */
 
6807
_ACEOF
 
6808
cat confdefs.h >>conftest.$ac_ext
 
6809
cat >>conftest.$ac_ext <<_ACEOF
 
6810
/* end confdefs.h.  */
 
6811
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6812
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6813
#define $ac_func innocuous_$ac_func
 
6814
 
2534
6815
/* System header to define __stub macros and hopefully few prototypes,
2535
 
    which can conflict with char $ac_func(); below.  */
2536
 
#include <assert.h>
2537
 
/* Override any gcc2 internal prototype to avoid an error.  */
2538
 
/* We use char because int might match the return type of a gcc2
2539
 
    builtin and then its argument prototype would still apply.  */
2540
 
char $ac_func();
2541
 
 
2542
 
int main() {
2543
 
 
 
6816
    which can conflict with char $ac_func (); below.
 
6817
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6818
    <limits.h> exists even on freestanding compilers.  */
 
6819
 
 
6820
#ifdef __STDC__
 
6821
# include <limits.h>
 
6822
#else
 
6823
# include <assert.h>
 
6824
#endif
 
6825
 
 
6826
#undef $ac_func
 
6827
 
 
6828
/* Override any GCC internal prototype to avoid an error.
 
6829
   Use char because int might match the return type of a GCC
 
6830
   builtin and then its argument prototype would still apply.  */
 
6831
#ifdef __cplusplus
 
6832
extern "C"
 
6833
#endif
 
6834
char $ac_func ();
2544
6835
/* The GNU C library defines this for functions which it implements
2545
6836
    to always fail with ENOSYS.  Some functions are actually named
2546
6837
    something starting with __ and the normal name is an alias.  */
2547
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6838
#if defined __stub_$ac_func || defined __stub___$ac_func
2548
6839
choke me
2549
 
#else
2550
 
$ac_func();
2551
6840
#endif
2552
6841
 
2553
 
; return 0; }
2554
 
EOF
2555
 
if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2556
 
  rm -rf conftest*
2557
 
  eval "ac_cv_func_$ac_func=yes"
2558
 
else
2559
 
  echo "configure: failed program was:" >&5
2560
 
  cat conftest.$ac_ext >&5
2561
 
  rm -rf conftest*
2562
 
  eval "ac_cv_func_$ac_func=no"
2563
 
fi
2564
 
rm -f conftest*
2565
 
fi
2566
 
 
2567
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2568
 
  echo "$ac_t""yes" 1>&6
2569
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2570
 
  cat >> confdefs.h <<EOF
2571
 
#define $ac_tr_func 1
2572
 
EOF
2573
 
 
2574
 
else
2575
 
  echo "$ac_t""no" 1>&6
 
6842
int
 
6843
main ()
 
6844
{
 
6845
return $ac_func ();
 
6846
  ;
 
6847
  return 0;
 
6848
}
 
6849
_ACEOF
 
6850
rm -f conftest.$ac_objext conftest$ac_exeext
 
6851
if { (ac_try="$ac_link"
 
6852
case "(($ac_try" in
 
6853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6854
  *) ac_try_echo=$ac_try;;
 
6855
esac
 
6856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6857
  (eval "$ac_link") 2>conftest.er1
 
6858
  ac_status=$?
 
6859
  grep -v '^ *+' conftest.er1 >conftest.err
 
6860
  rm -f conftest.er1
 
6861
  cat conftest.err >&5
 
6862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6863
  (exit $ac_status); } && {
 
6864
         test -z "$ac_c_werror_flag" ||
 
6865
         test ! -s conftest.err
 
6866
       } && test -s conftest$ac_exeext &&
 
6867
       $as_test_x conftest$ac_exeext; then
 
6868
  eval "$as_ac_var=yes"
 
6869
else
 
6870
  echo "$as_me: failed program was:" >&5
 
6871
sed 's/^/| /' conftest.$ac_ext >&5
 
6872
 
 
6873
        eval "$as_ac_var=no"
 
6874
fi
 
6875
 
 
6876
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6877
      conftest$ac_exeext conftest.$ac_ext
 
6878
fi
 
6879
ac_res=`eval echo '${'$as_ac_var'}'`
 
6880
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6881
echo "${ECHO_T}$ac_res" >&6; }
 
6882
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6883
  cat >>confdefs.h <<_ACEOF
 
6884
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6885
_ACEOF
 
6886
 
2576
6887
fi
2577
6888
done
2578
6889
 
2579
6890
 
2580
 
echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
2581
 
echo "configure:2582: checking size of unsigned int" >&5
2582
 
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
2583
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6891
{ echo "$as_me:$LINENO: checking for unsigned int" >&5
 
6892
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
 
6893
if test "${ac_cv_type_unsigned_int+set}" = set; then
 
6894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6895
else
 
6896
  cat >conftest.$ac_ext <<_ACEOF
 
6897
/* confdefs.h.  */
 
6898
_ACEOF
 
6899
cat confdefs.h >>conftest.$ac_ext
 
6900
cat >>conftest.$ac_ext <<_ACEOF
 
6901
/* end confdefs.h.  */
 
6902
$ac_includes_default
 
6903
typedef unsigned int ac__type_new_;
 
6904
int
 
6905
main ()
 
6906
{
 
6907
if ((ac__type_new_ *) 0)
 
6908
  return 0;
 
6909
if (sizeof (ac__type_new_))
 
6910
  return 0;
 
6911
  ;
 
6912
  return 0;
 
6913
}
 
6914
_ACEOF
 
6915
rm -f conftest.$ac_objext
 
6916
if { (ac_try="$ac_compile"
 
6917
case "(($ac_try" in
 
6918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6919
  *) ac_try_echo=$ac_try;;
 
6920
esac
 
6921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6922
  (eval "$ac_compile") 2>conftest.er1
 
6923
  ac_status=$?
 
6924
  grep -v '^ *+' conftest.er1 >conftest.err
 
6925
  rm -f conftest.er1
 
6926
  cat conftest.err >&5
 
6927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6928
  (exit $ac_status); } && {
 
6929
         test -z "$ac_c_werror_flag" ||
 
6930
         test ! -s conftest.err
 
6931
       } && test -s conftest.$ac_objext; then
 
6932
  ac_cv_type_unsigned_int=yes
 
6933
else
 
6934
  echo "$as_me: failed program was:" >&5
 
6935
sed 's/^/| /' conftest.$ac_ext >&5
 
6936
 
 
6937
        ac_cv_type_unsigned_int=no
 
6938
fi
 
6939
 
 
6940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6941
fi
 
6942
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
 
6943
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
 
6944
 
 
6945
# The cast to long int works around a bug in the HP C Compiler
 
6946
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
6947
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
6948
# This bug is HP SR number 8606223364.
 
6949
{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
 
6950
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
 
6951
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
 
6952
  echo $ECHO_N "(cached) $ECHO_C" >&6
2584
6953
else
2585
6954
  if test "$cross_compiling" = yes; then
2586
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2587
 
else
2588
 
  cat > conftest.$ac_ext <<EOF
2589
 
#line 2590 "configure"
2590
 
#include "confdefs.h"
 
6955
  # Depending upon the size, compute the lo and hi bounds.
 
6956
cat >conftest.$ac_ext <<_ACEOF
 
6957
/* confdefs.h.  */
 
6958
_ACEOF
 
6959
cat confdefs.h >>conftest.$ac_ext
 
6960
cat >>conftest.$ac_ext <<_ACEOF
 
6961
/* end confdefs.h.  */
 
6962
$ac_includes_default
 
6963
   typedef unsigned int ac__type_sizeof_;
 
6964
int
 
6965
main ()
 
6966
{
 
6967
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
6968
test_array [0] = 0
 
6969
 
 
6970
  ;
 
6971
  return 0;
 
6972
}
 
6973
_ACEOF
 
6974
rm -f conftest.$ac_objext
 
6975
if { (ac_try="$ac_compile"
 
6976
case "(($ac_try" in
 
6977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6978
  *) ac_try_echo=$ac_try;;
 
6979
esac
 
6980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6981
  (eval "$ac_compile") 2>conftest.er1
 
6982
  ac_status=$?
 
6983
  grep -v '^ *+' conftest.er1 >conftest.err
 
6984
  rm -f conftest.er1
 
6985
  cat conftest.err >&5
 
6986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6987
  (exit $ac_status); } && {
 
6988
         test -z "$ac_c_werror_flag" ||
 
6989
         test ! -s conftest.err
 
6990
       } && test -s conftest.$ac_objext; then
 
6991
  ac_lo=0 ac_mid=0
 
6992
  while :; do
 
6993
    cat >conftest.$ac_ext <<_ACEOF
 
6994
/* confdefs.h.  */
 
6995
_ACEOF
 
6996
cat confdefs.h >>conftest.$ac_ext
 
6997
cat >>conftest.$ac_ext <<_ACEOF
 
6998
/* end confdefs.h.  */
 
6999
$ac_includes_default
 
7000
   typedef unsigned int ac__type_sizeof_;
 
7001
int
 
7002
main ()
 
7003
{
 
7004
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7005
test_array [0] = 0
 
7006
 
 
7007
  ;
 
7008
  return 0;
 
7009
}
 
7010
_ACEOF
 
7011
rm -f conftest.$ac_objext
 
7012
if { (ac_try="$ac_compile"
 
7013
case "(($ac_try" in
 
7014
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7015
  *) ac_try_echo=$ac_try;;
 
7016
esac
 
7017
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7018
  (eval "$ac_compile") 2>conftest.er1
 
7019
  ac_status=$?
 
7020
  grep -v '^ *+' conftest.er1 >conftest.err
 
7021
  rm -f conftest.er1
 
7022
  cat conftest.err >&5
 
7023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7024
  (exit $ac_status); } && {
 
7025
         test -z "$ac_c_werror_flag" ||
 
7026
         test ! -s conftest.err
 
7027
       } && test -s conftest.$ac_objext; then
 
7028
  ac_hi=$ac_mid; break
 
7029
else
 
7030
  echo "$as_me: failed program was:" >&5
 
7031
sed 's/^/| /' conftest.$ac_ext >&5
 
7032
 
 
7033
        ac_lo=`expr $ac_mid + 1`
 
7034
                        if test $ac_lo -le $ac_mid; then
 
7035
                          ac_lo= ac_hi=
 
7036
                          break
 
7037
                        fi
 
7038
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
7039
fi
 
7040
 
 
7041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7042
  done
 
7043
else
 
7044
  echo "$as_me: failed program was:" >&5
 
7045
sed 's/^/| /' conftest.$ac_ext >&5
 
7046
 
 
7047
        cat >conftest.$ac_ext <<_ACEOF
 
7048
/* confdefs.h.  */
 
7049
_ACEOF
 
7050
cat confdefs.h >>conftest.$ac_ext
 
7051
cat >>conftest.$ac_ext <<_ACEOF
 
7052
/* end confdefs.h.  */
 
7053
$ac_includes_default
 
7054
   typedef unsigned int ac__type_sizeof_;
 
7055
int
 
7056
main ()
 
7057
{
 
7058
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
7059
test_array [0] = 0
 
7060
 
 
7061
  ;
 
7062
  return 0;
 
7063
}
 
7064
_ACEOF
 
7065
rm -f conftest.$ac_objext
 
7066
if { (ac_try="$ac_compile"
 
7067
case "(($ac_try" in
 
7068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7069
  *) ac_try_echo=$ac_try;;
 
7070
esac
 
7071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7072
  (eval "$ac_compile") 2>conftest.er1
 
7073
  ac_status=$?
 
7074
  grep -v '^ *+' conftest.er1 >conftest.err
 
7075
  rm -f conftest.er1
 
7076
  cat conftest.err >&5
 
7077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7078
  (exit $ac_status); } && {
 
7079
         test -z "$ac_c_werror_flag" ||
 
7080
         test ! -s conftest.err
 
7081
       } && test -s conftest.$ac_objext; then
 
7082
  ac_hi=-1 ac_mid=-1
 
7083
  while :; do
 
7084
    cat >conftest.$ac_ext <<_ACEOF
 
7085
/* confdefs.h.  */
 
7086
_ACEOF
 
7087
cat confdefs.h >>conftest.$ac_ext
 
7088
cat >>conftest.$ac_ext <<_ACEOF
 
7089
/* end confdefs.h.  */
 
7090
$ac_includes_default
 
7091
   typedef unsigned int ac__type_sizeof_;
 
7092
int
 
7093
main ()
 
7094
{
 
7095
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
7096
test_array [0] = 0
 
7097
 
 
7098
  ;
 
7099
  return 0;
 
7100
}
 
7101
_ACEOF
 
7102
rm -f conftest.$ac_objext
 
7103
if { (ac_try="$ac_compile"
 
7104
case "(($ac_try" in
 
7105
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7106
  *) ac_try_echo=$ac_try;;
 
7107
esac
 
7108
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7109
  (eval "$ac_compile") 2>conftest.er1
 
7110
  ac_status=$?
 
7111
  grep -v '^ *+' conftest.er1 >conftest.err
 
7112
  rm -f conftest.er1
 
7113
  cat conftest.err >&5
 
7114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7115
  (exit $ac_status); } && {
 
7116
         test -z "$ac_c_werror_flag" ||
 
7117
         test ! -s conftest.err
 
7118
       } && test -s conftest.$ac_objext; then
 
7119
  ac_lo=$ac_mid; break
 
7120
else
 
7121
  echo "$as_me: failed program was:" >&5
 
7122
sed 's/^/| /' conftest.$ac_ext >&5
 
7123
 
 
7124
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
7125
                        if test $ac_mid -le $ac_hi; then
 
7126
                          ac_lo= ac_hi=
 
7127
                          break
 
7128
                        fi
 
7129
                        ac_mid=`expr 2 '*' $ac_mid`
 
7130
fi
 
7131
 
 
7132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7133
  done
 
7134
else
 
7135
  echo "$as_me: failed program was:" >&5
 
7136
sed 's/^/| /' conftest.$ac_ext >&5
 
7137
 
 
7138
        ac_lo= ac_hi=
 
7139
fi
 
7140
 
 
7141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7142
fi
 
7143
 
 
7144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7145
# Binary search between lo and hi bounds.
 
7146
while test "x$ac_lo" != "x$ac_hi"; do
 
7147
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7148
  cat >conftest.$ac_ext <<_ACEOF
 
7149
/* confdefs.h.  */
 
7150
_ACEOF
 
7151
cat confdefs.h >>conftest.$ac_ext
 
7152
cat >>conftest.$ac_ext <<_ACEOF
 
7153
/* end confdefs.h.  */
 
7154
$ac_includes_default
 
7155
   typedef unsigned int ac__type_sizeof_;
 
7156
int
 
7157
main ()
 
7158
{
 
7159
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7160
test_array [0] = 0
 
7161
 
 
7162
  ;
 
7163
  return 0;
 
7164
}
 
7165
_ACEOF
 
7166
rm -f conftest.$ac_objext
 
7167
if { (ac_try="$ac_compile"
 
7168
case "(($ac_try" in
 
7169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7170
  *) ac_try_echo=$ac_try;;
 
7171
esac
 
7172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7173
  (eval "$ac_compile") 2>conftest.er1
 
7174
  ac_status=$?
 
7175
  grep -v '^ *+' conftest.er1 >conftest.err
 
7176
  rm -f conftest.er1
 
7177
  cat conftest.err >&5
 
7178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7179
  (exit $ac_status); } && {
 
7180
         test -z "$ac_c_werror_flag" ||
 
7181
         test ! -s conftest.err
 
7182
       } && test -s conftest.$ac_objext; then
 
7183
  ac_hi=$ac_mid
 
7184
else
 
7185
  echo "$as_me: failed program was:" >&5
 
7186
sed 's/^/| /' conftest.$ac_ext >&5
 
7187
 
 
7188
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
7189
fi
 
7190
 
 
7191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7192
done
 
7193
case $ac_lo in
 
7194
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
 
7195
'') if test "$ac_cv_type_unsigned_int" = yes; then
 
7196
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
 
7197
See \`config.log' for more details." >&5
 
7198
echo "$as_me: error: cannot compute sizeof (unsigned int)
 
7199
See \`config.log' for more details." >&2;}
 
7200
   { (exit 77); exit 77; }; }
 
7201
   else
 
7202
     ac_cv_sizeof_unsigned_int=0
 
7203
   fi ;;
 
7204
esac
 
7205
else
 
7206
  cat >conftest.$ac_ext <<_ACEOF
 
7207
/* confdefs.h.  */
 
7208
_ACEOF
 
7209
cat confdefs.h >>conftest.$ac_ext
 
7210
cat >>conftest.$ac_ext <<_ACEOF
 
7211
/* end confdefs.h.  */
 
7212
$ac_includes_default
 
7213
   typedef unsigned int ac__type_sizeof_;
 
7214
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7215
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
2591
7216
#include <stdio.h>
2592
 
#include <sys/types.h>
2593
 
main()
 
7217
#include <stdlib.h>
 
7218
int
 
7219
main ()
2594
7220
{
2595
 
  FILE *f=fopen("conftestval", "w");
2596
 
  if (!f) exit(1);
2597
 
  fprintf(f, "%d\n", sizeof(unsigned int));
2598
 
  exit(0);
 
7221
 
 
7222
  FILE *f = fopen ("conftest.val", "w");
 
7223
  if (! f)
 
7224
    return 1;
 
7225
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
7226
    {
 
7227
      long int i = longval ();
 
7228
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7229
        return 1;
 
7230
      fprintf (f, "%ld\n", i);
 
7231
    }
 
7232
  else
 
7233
    {
 
7234
      unsigned long int i = ulongval ();
 
7235
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7236
        return 1;
 
7237
      fprintf (f, "%lu\n", i);
 
7238
    }
 
7239
  return ferror (f) || fclose (f) != 0;
 
7240
 
 
7241
  ;
 
7242
  return 0;
2599
7243
}
2600
 
EOF
2601
 
if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2602
 
then
2603
 
  ac_cv_sizeof_unsigned_int=`cat conftestval`
 
7244
_ACEOF
 
7245
rm -f conftest$ac_exeext
 
7246
if { (ac_try="$ac_link"
 
7247
case "(($ac_try" in
 
7248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7249
  *) ac_try_echo=$ac_try;;
 
7250
esac
 
7251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7252
  (eval "$ac_link") 2>&5
 
7253
  ac_status=$?
 
7254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7255
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7256
  { (case "(($ac_try" in
 
7257
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7258
  *) ac_try_echo=$ac_try;;
 
7259
esac
 
7260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7261
  (eval "$ac_try") 2>&5
 
7262
  ac_status=$?
 
7263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7264
  (exit $ac_status); }; }; then
 
7265
  ac_cv_sizeof_unsigned_int=`cat conftest.val`
2604
7266
else
2605
 
  echo "configure: failed program was:" >&5
2606
 
  cat conftest.$ac_ext >&5
2607
 
  rm -fr conftest*
2608
 
  ac_cv_sizeof_unsigned_int=0
2609
 
fi
2610
 
rm -fr conftest*
2611
 
fi
2612
 
 
2613
 
fi
2614
 
echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
2615
 
cat >> confdefs.h <<EOF
 
7267
  echo "$as_me: program exited with status $ac_status" >&5
 
7268
echo "$as_me: failed program was:" >&5
 
7269
sed 's/^/| /' conftest.$ac_ext >&5
 
7270
 
 
7271
( exit $ac_status )
 
7272
if test "$ac_cv_type_unsigned_int" = yes; then
 
7273
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
 
7274
See \`config.log' for more details." >&5
 
7275
echo "$as_me: error: cannot compute sizeof (unsigned int)
 
7276
See \`config.log' for more details." >&2;}
 
7277
   { (exit 77); exit 77; }; }
 
7278
   else
 
7279
     ac_cv_sizeof_unsigned_int=0
 
7280
   fi
 
7281
fi
 
7282
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7283
fi
 
7284
rm -f conftest.val
 
7285
fi
 
7286
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
 
7287
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
 
7288
 
 
7289
 
 
7290
 
 
7291
cat >>confdefs.h <<_ACEOF
2616
7292
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
2617
 
EOF
2618
 
 
2619
 
 
2620
 
echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
2621
 
echo "configure:2622: checking size of unsigned long" >&5
2622
 
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
2623
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7293
_ACEOF
 
7294
 
 
7295
 
 
7296
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
 
7297
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
 
7298
if test "${ac_cv_type_unsigned_long+set}" = set; then
 
7299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7300
else
 
7301
  cat >conftest.$ac_ext <<_ACEOF
 
7302
/* confdefs.h.  */
 
7303
_ACEOF
 
7304
cat confdefs.h >>conftest.$ac_ext
 
7305
cat >>conftest.$ac_ext <<_ACEOF
 
7306
/* end confdefs.h.  */
 
7307
$ac_includes_default
 
7308
typedef unsigned long ac__type_new_;
 
7309
int
 
7310
main ()
 
7311
{
 
7312
if ((ac__type_new_ *) 0)
 
7313
  return 0;
 
7314
if (sizeof (ac__type_new_))
 
7315
  return 0;
 
7316
  ;
 
7317
  return 0;
 
7318
}
 
7319
_ACEOF
 
7320
rm -f conftest.$ac_objext
 
7321
if { (ac_try="$ac_compile"
 
7322
case "(($ac_try" in
 
7323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7324
  *) ac_try_echo=$ac_try;;
 
7325
esac
 
7326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7327
  (eval "$ac_compile") 2>conftest.er1
 
7328
  ac_status=$?
 
7329
  grep -v '^ *+' conftest.er1 >conftest.err
 
7330
  rm -f conftest.er1
 
7331
  cat conftest.err >&5
 
7332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7333
  (exit $ac_status); } && {
 
7334
         test -z "$ac_c_werror_flag" ||
 
7335
         test ! -s conftest.err
 
7336
       } && test -s conftest.$ac_objext; then
 
7337
  ac_cv_type_unsigned_long=yes
 
7338
else
 
7339
  echo "$as_me: failed program was:" >&5
 
7340
sed 's/^/| /' conftest.$ac_ext >&5
 
7341
 
 
7342
        ac_cv_type_unsigned_long=no
 
7343
fi
 
7344
 
 
7345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7346
fi
 
7347
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
 
7348
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
 
7349
 
 
7350
# The cast to long int works around a bug in the HP C Compiler
 
7351
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
7352
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
7353
# This bug is HP SR number 8606223364.
 
7354
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
 
7355
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
 
7356
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
 
7357
  echo $ECHO_N "(cached) $ECHO_C" >&6
2624
7358
else
2625
7359
  if test "$cross_compiling" = yes; then
2626
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2627
 
else
2628
 
  cat > conftest.$ac_ext <<EOF
2629
 
#line 2630 "configure"
2630
 
#include "confdefs.h"
 
7360
  # Depending upon the size, compute the lo and hi bounds.
 
7361
cat >conftest.$ac_ext <<_ACEOF
 
7362
/* confdefs.h.  */
 
7363
_ACEOF
 
7364
cat confdefs.h >>conftest.$ac_ext
 
7365
cat >>conftest.$ac_ext <<_ACEOF
 
7366
/* end confdefs.h.  */
 
7367
$ac_includes_default
 
7368
   typedef unsigned long ac__type_sizeof_;
 
7369
int
 
7370
main ()
 
7371
{
 
7372
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
7373
test_array [0] = 0
 
7374
 
 
7375
  ;
 
7376
  return 0;
 
7377
}
 
7378
_ACEOF
 
7379
rm -f conftest.$ac_objext
 
7380
if { (ac_try="$ac_compile"
 
7381
case "(($ac_try" in
 
7382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7383
  *) ac_try_echo=$ac_try;;
 
7384
esac
 
7385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7386
  (eval "$ac_compile") 2>conftest.er1
 
7387
  ac_status=$?
 
7388
  grep -v '^ *+' conftest.er1 >conftest.err
 
7389
  rm -f conftest.er1
 
7390
  cat conftest.err >&5
 
7391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7392
  (exit $ac_status); } && {
 
7393
         test -z "$ac_c_werror_flag" ||
 
7394
         test ! -s conftest.err
 
7395
       } && test -s conftest.$ac_objext; then
 
7396
  ac_lo=0 ac_mid=0
 
7397
  while :; do
 
7398
    cat >conftest.$ac_ext <<_ACEOF
 
7399
/* confdefs.h.  */
 
7400
_ACEOF
 
7401
cat confdefs.h >>conftest.$ac_ext
 
7402
cat >>conftest.$ac_ext <<_ACEOF
 
7403
/* end confdefs.h.  */
 
7404
$ac_includes_default
 
7405
   typedef unsigned long ac__type_sizeof_;
 
7406
int
 
7407
main ()
 
7408
{
 
7409
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7410
test_array [0] = 0
 
7411
 
 
7412
  ;
 
7413
  return 0;
 
7414
}
 
7415
_ACEOF
 
7416
rm -f conftest.$ac_objext
 
7417
if { (ac_try="$ac_compile"
 
7418
case "(($ac_try" in
 
7419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7420
  *) ac_try_echo=$ac_try;;
 
7421
esac
 
7422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7423
  (eval "$ac_compile") 2>conftest.er1
 
7424
  ac_status=$?
 
7425
  grep -v '^ *+' conftest.er1 >conftest.err
 
7426
  rm -f conftest.er1
 
7427
  cat conftest.err >&5
 
7428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7429
  (exit $ac_status); } && {
 
7430
         test -z "$ac_c_werror_flag" ||
 
7431
         test ! -s conftest.err
 
7432
       } && test -s conftest.$ac_objext; then
 
7433
  ac_hi=$ac_mid; break
 
7434
else
 
7435
  echo "$as_me: failed program was:" >&5
 
7436
sed 's/^/| /' conftest.$ac_ext >&5
 
7437
 
 
7438
        ac_lo=`expr $ac_mid + 1`
 
7439
                        if test $ac_lo -le $ac_mid; then
 
7440
                          ac_lo= ac_hi=
 
7441
                          break
 
7442
                        fi
 
7443
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
7444
fi
 
7445
 
 
7446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7447
  done
 
7448
else
 
7449
  echo "$as_me: failed program was:" >&5
 
7450
sed 's/^/| /' conftest.$ac_ext >&5
 
7451
 
 
7452
        cat >conftest.$ac_ext <<_ACEOF
 
7453
/* confdefs.h.  */
 
7454
_ACEOF
 
7455
cat confdefs.h >>conftest.$ac_ext
 
7456
cat >>conftest.$ac_ext <<_ACEOF
 
7457
/* end confdefs.h.  */
 
7458
$ac_includes_default
 
7459
   typedef unsigned long ac__type_sizeof_;
 
7460
int
 
7461
main ()
 
7462
{
 
7463
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
7464
test_array [0] = 0
 
7465
 
 
7466
  ;
 
7467
  return 0;
 
7468
}
 
7469
_ACEOF
 
7470
rm -f conftest.$ac_objext
 
7471
if { (ac_try="$ac_compile"
 
7472
case "(($ac_try" in
 
7473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7474
  *) ac_try_echo=$ac_try;;
 
7475
esac
 
7476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7477
  (eval "$ac_compile") 2>conftest.er1
 
7478
  ac_status=$?
 
7479
  grep -v '^ *+' conftest.er1 >conftest.err
 
7480
  rm -f conftest.er1
 
7481
  cat conftest.err >&5
 
7482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7483
  (exit $ac_status); } && {
 
7484
         test -z "$ac_c_werror_flag" ||
 
7485
         test ! -s conftest.err
 
7486
       } && test -s conftest.$ac_objext; then
 
7487
  ac_hi=-1 ac_mid=-1
 
7488
  while :; do
 
7489
    cat >conftest.$ac_ext <<_ACEOF
 
7490
/* confdefs.h.  */
 
7491
_ACEOF
 
7492
cat confdefs.h >>conftest.$ac_ext
 
7493
cat >>conftest.$ac_ext <<_ACEOF
 
7494
/* end confdefs.h.  */
 
7495
$ac_includes_default
 
7496
   typedef unsigned long ac__type_sizeof_;
 
7497
int
 
7498
main ()
 
7499
{
 
7500
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
7501
test_array [0] = 0
 
7502
 
 
7503
  ;
 
7504
  return 0;
 
7505
}
 
7506
_ACEOF
 
7507
rm -f conftest.$ac_objext
 
7508
if { (ac_try="$ac_compile"
 
7509
case "(($ac_try" in
 
7510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7511
  *) ac_try_echo=$ac_try;;
 
7512
esac
 
7513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7514
  (eval "$ac_compile") 2>conftest.er1
 
7515
  ac_status=$?
 
7516
  grep -v '^ *+' conftest.er1 >conftest.err
 
7517
  rm -f conftest.er1
 
7518
  cat conftest.err >&5
 
7519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7520
  (exit $ac_status); } && {
 
7521
         test -z "$ac_c_werror_flag" ||
 
7522
         test ! -s conftest.err
 
7523
       } && test -s conftest.$ac_objext; then
 
7524
  ac_lo=$ac_mid; break
 
7525
else
 
7526
  echo "$as_me: failed program was:" >&5
 
7527
sed 's/^/| /' conftest.$ac_ext >&5
 
7528
 
 
7529
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
7530
                        if test $ac_mid -le $ac_hi; then
 
7531
                          ac_lo= ac_hi=
 
7532
                          break
 
7533
                        fi
 
7534
                        ac_mid=`expr 2 '*' $ac_mid`
 
7535
fi
 
7536
 
 
7537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7538
  done
 
7539
else
 
7540
  echo "$as_me: failed program was:" >&5
 
7541
sed 's/^/| /' conftest.$ac_ext >&5
 
7542
 
 
7543
        ac_lo= ac_hi=
 
7544
fi
 
7545
 
 
7546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7547
fi
 
7548
 
 
7549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7550
# Binary search between lo and hi bounds.
 
7551
while test "x$ac_lo" != "x$ac_hi"; do
 
7552
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7553
  cat >conftest.$ac_ext <<_ACEOF
 
7554
/* confdefs.h.  */
 
7555
_ACEOF
 
7556
cat confdefs.h >>conftest.$ac_ext
 
7557
cat >>conftest.$ac_ext <<_ACEOF
 
7558
/* end confdefs.h.  */
 
7559
$ac_includes_default
 
7560
   typedef unsigned long ac__type_sizeof_;
 
7561
int
 
7562
main ()
 
7563
{
 
7564
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7565
test_array [0] = 0
 
7566
 
 
7567
  ;
 
7568
  return 0;
 
7569
}
 
7570
_ACEOF
 
7571
rm -f conftest.$ac_objext
 
7572
if { (ac_try="$ac_compile"
 
7573
case "(($ac_try" in
 
7574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7575
  *) ac_try_echo=$ac_try;;
 
7576
esac
 
7577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7578
  (eval "$ac_compile") 2>conftest.er1
 
7579
  ac_status=$?
 
7580
  grep -v '^ *+' conftest.er1 >conftest.err
 
7581
  rm -f conftest.er1
 
7582
  cat conftest.err >&5
 
7583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7584
  (exit $ac_status); } && {
 
7585
         test -z "$ac_c_werror_flag" ||
 
7586
         test ! -s conftest.err
 
7587
       } && test -s conftest.$ac_objext; then
 
7588
  ac_hi=$ac_mid
 
7589
else
 
7590
  echo "$as_me: failed program was:" >&5
 
7591
sed 's/^/| /' conftest.$ac_ext >&5
 
7592
 
 
7593
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
7594
fi
 
7595
 
 
7596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7597
done
 
7598
case $ac_lo in
 
7599
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
 
7600
'') if test "$ac_cv_type_unsigned_long" = yes; then
 
7601
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
 
7602
See \`config.log' for more details." >&5
 
7603
echo "$as_me: error: cannot compute sizeof (unsigned long)
 
7604
See \`config.log' for more details." >&2;}
 
7605
   { (exit 77); exit 77; }; }
 
7606
   else
 
7607
     ac_cv_sizeof_unsigned_long=0
 
7608
   fi ;;
 
7609
esac
 
7610
else
 
7611
  cat >conftest.$ac_ext <<_ACEOF
 
7612
/* confdefs.h.  */
 
7613
_ACEOF
 
7614
cat confdefs.h >>conftest.$ac_ext
 
7615
cat >>conftest.$ac_ext <<_ACEOF
 
7616
/* end confdefs.h.  */
 
7617
$ac_includes_default
 
7618
   typedef unsigned long ac__type_sizeof_;
 
7619
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7620
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
2631
7621
#include <stdio.h>
2632
 
#include <sys/types.h>
2633
 
main()
 
7622
#include <stdlib.h>
 
7623
int
 
7624
main ()
2634
7625
{
2635
 
  FILE *f=fopen("conftestval", "w");
2636
 
  if (!f) exit(1);
2637
 
  fprintf(f, "%d\n", sizeof(unsigned long));
2638
 
  exit(0);
 
7626
 
 
7627
  FILE *f = fopen ("conftest.val", "w");
 
7628
  if (! f)
 
7629
    return 1;
 
7630
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
7631
    {
 
7632
      long int i = longval ();
 
7633
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7634
        return 1;
 
7635
      fprintf (f, "%ld\n", i);
 
7636
    }
 
7637
  else
 
7638
    {
 
7639
      unsigned long int i = ulongval ();
 
7640
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7641
        return 1;
 
7642
      fprintf (f, "%lu\n", i);
 
7643
    }
 
7644
  return ferror (f) || fclose (f) != 0;
 
7645
 
 
7646
  ;
 
7647
  return 0;
2639
7648
}
2640
 
EOF
2641
 
if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2642
 
then
2643
 
  ac_cv_sizeof_unsigned_long=`cat conftestval`
 
7649
_ACEOF
 
7650
rm -f conftest$ac_exeext
 
7651
if { (ac_try="$ac_link"
 
7652
case "(($ac_try" in
 
7653
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7654
  *) ac_try_echo=$ac_try;;
 
7655
esac
 
7656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7657
  (eval "$ac_link") 2>&5
 
7658
  ac_status=$?
 
7659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7660
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7661
  { (case "(($ac_try" in
 
7662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7663
  *) ac_try_echo=$ac_try;;
 
7664
esac
 
7665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7666
  (eval "$ac_try") 2>&5
 
7667
  ac_status=$?
 
7668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7669
  (exit $ac_status); }; }; then
 
7670
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
2644
7671
else
2645
 
  echo "configure: failed program was:" >&5
2646
 
  cat conftest.$ac_ext >&5
2647
 
  rm -fr conftest*
2648
 
  ac_cv_sizeof_unsigned_long=0
2649
 
fi
2650
 
rm -fr conftest*
2651
 
fi
2652
 
 
2653
 
fi
2654
 
echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
2655
 
cat >> confdefs.h <<EOF
 
7672
  echo "$as_me: program exited with status $ac_status" >&5
 
7673
echo "$as_me: failed program was:" >&5
 
7674
sed 's/^/| /' conftest.$ac_ext >&5
 
7675
 
 
7676
( exit $ac_status )
 
7677
if test "$ac_cv_type_unsigned_long" = yes; then
 
7678
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
 
7679
See \`config.log' for more details." >&5
 
7680
echo "$as_me: error: cannot compute sizeof (unsigned long)
 
7681
See \`config.log' for more details." >&2;}
 
7682
   { (exit 77); exit 77; }; }
 
7683
   else
 
7684
     ac_cv_sizeof_unsigned_long=0
 
7685
   fi
 
7686
fi
 
7687
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7688
fi
 
7689
rm -f conftest.val
 
7690
fi
 
7691
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
 
7692
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
 
7693
 
 
7694
 
 
7695
 
 
7696
cat >>confdefs.h <<_ACEOF
2656
7697
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
2657
 
EOF
2658
 
 
2659
 
 
2660
 
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2661
 
echo "configure:2662: checking whether byte ordering is bigendian" >&5
2662
 
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2663
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7698
_ACEOF
 
7699
 
 
7700
 
 
7701
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
7702
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
7703
if test "${ac_cv_c_bigendian+set}" = set; then
 
7704
  echo $ECHO_N "(cached) $ECHO_C" >&6
2664
7705
else
2665
 
  ac_cv_c_bigendian=unknown
2666
 
# See if sys/param.h defines the BYTE_ORDER macro.
2667
 
cat > conftest.$ac_ext <<EOF
2668
 
#line 2669 "configure"
2669
 
#include "confdefs.h"
 
7706
  # See if sys/param.h defines the BYTE_ORDER macro.
 
7707
cat >conftest.$ac_ext <<_ACEOF
 
7708
/* confdefs.h.  */
 
7709
_ACEOF
 
7710
cat confdefs.h >>conftest.$ac_ext
 
7711
cat >>conftest.$ac_ext <<_ACEOF
 
7712
/* end confdefs.h.  */
2670
7713
#include <sys/types.h>
2671
7714
#include <sys/param.h>
2672
 
int main() {
2673
7715
 
2674
 
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
7716
int
 
7717
main ()
 
7718
{
 
7719
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
7720
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
2675
7721
 bogus endian macros
2676
7722
#endif
2677
 
; return 0; }
2678
 
EOF
2679
 
if { (eval echo configure:2680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2680
 
  rm -rf conftest*
 
7723
 
 
7724
  ;
 
7725
  return 0;
 
7726
}
 
7727
_ACEOF
 
7728
rm -f conftest.$ac_objext
 
7729
if { (ac_try="$ac_compile"
 
7730
case "(($ac_try" in
 
7731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7732
  *) ac_try_echo=$ac_try;;
 
7733
esac
 
7734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7735
  (eval "$ac_compile") 2>conftest.er1
 
7736
  ac_status=$?
 
7737
  grep -v '^ *+' conftest.er1 >conftest.err
 
7738
  rm -f conftest.er1
 
7739
  cat conftest.err >&5
 
7740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7741
  (exit $ac_status); } && {
 
7742
         test -z "$ac_c_werror_flag" ||
 
7743
         test ! -s conftest.err
 
7744
       } && test -s conftest.$ac_objext; then
2681
7745
  # It does; now see whether it defined to BIG_ENDIAN or not.
2682
 
cat > conftest.$ac_ext <<EOF
2683
 
#line 2684 "configure"
2684
 
#include "confdefs.h"
 
7746
cat >conftest.$ac_ext <<_ACEOF
 
7747
/* confdefs.h.  */
 
7748
_ACEOF
 
7749
cat confdefs.h >>conftest.$ac_ext
 
7750
cat >>conftest.$ac_ext <<_ACEOF
 
7751
/* end confdefs.h.  */
2685
7752
#include <sys/types.h>
2686
7753
#include <sys/param.h>
2687
 
int main() {
2688
7754
 
 
7755
int
 
7756
main ()
 
7757
{
2689
7758
#if BYTE_ORDER != BIG_ENDIAN
2690
7759
 not big endian
2691
7760
#endif
2692
 
; return 0; }
2693
 
EOF
2694
 
if { (eval echo configure:2695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2695
 
  rm -rf conftest*
 
7761
 
 
7762
  ;
 
7763
  return 0;
 
7764
}
 
7765
_ACEOF
 
7766
rm -f conftest.$ac_objext
 
7767
if { (ac_try="$ac_compile"
 
7768
case "(($ac_try" in
 
7769
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7770
  *) ac_try_echo=$ac_try;;
 
7771
esac
 
7772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7773
  (eval "$ac_compile") 2>conftest.er1
 
7774
  ac_status=$?
 
7775
  grep -v '^ *+' conftest.er1 >conftest.err
 
7776
  rm -f conftest.er1
 
7777
  cat conftest.err >&5
 
7778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7779
  (exit $ac_status); } && {
 
7780
         test -z "$ac_c_werror_flag" ||
 
7781
         test ! -s conftest.err
 
7782
       } && test -s conftest.$ac_objext; then
2696
7783
  ac_cv_c_bigendian=yes
2697
7784
else
2698
 
  echo "configure: failed program was:" >&5
2699
 
  cat conftest.$ac_ext >&5
2700
 
  rm -rf conftest*
2701
 
  ac_cv_c_bigendian=no
 
7785
  echo "$as_me: failed program was:" >&5
 
7786
sed 's/^/| /' conftest.$ac_ext >&5
 
7787
 
 
7788
        ac_cv_c_bigendian=no
2702
7789
fi
2703
 
rm -f conftest*
 
7790
 
 
7791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704
7792
else
2705
 
  echo "configure: failed program was:" >&5
2706
 
  cat conftest.$ac_ext >&5
2707
 
fi
2708
 
rm -f conftest*
2709
 
if test $ac_cv_c_bigendian = unknown; then
 
7793
  echo "$as_me: failed program was:" >&5
 
7794
sed 's/^/| /' conftest.$ac_ext >&5
 
7795
 
 
7796
        # It does not; compile a test program.
2710
7797
if test "$cross_compiling" = yes; then
2711
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2712
 
else
2713
 
  cat > conftest.$ac_ext <<EOF
2714
 
#line 2715 "configure"
2715
 
#include "confdefs.h"
2716
 
main () {
 
7798
  # try to guess the endianness by grepping values into an object file
 
7799
  ac_cv_c_bigendian=unknown
 
7800
  cat >conftest.$ac_ext <<_ACEOF
 
7801
/* confdefs.h.  */
 
7802
_ACEOF
 
7803
cat confdefs.h >>conftest.$ac_ext
 
7804
cat >>conftest.$ac_ext <<_ACEOF
 
7805
/* end confdefs.h.  */
 
7806
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
7807
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
7808
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
7809
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
7810
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
7811
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
7812
int
 
7813
main ()
 
7814
{
 
7815
 _ascii (); _ebcdic ();
 
7816
  ;
 
7817
  return 0;
 
7818
}
 
7819
_ACEOF
 
7820
rm -f conftest.$ac_objext
 
7821
if { (ac_try="$ac_compile"
 
7822
case "(($ac_try" in
 
7823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7824
  *) ac_try_echo=$ac_try;;
 
7825
esac
 
7826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7827
  (eval "$ac_compile") 2>conftest.er1
 
7828
  ac_status=$?
 
7829
  grep -v '^ *+' conftest.er1 >conftest.err
 
7830
  rm -f conftest.er1
 
7831
  cat conftest.err >&5
 
7832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7833
  (exit $ac_status); } && {
 
7834
         test -z "$ac_c_werror_flag" ||
 
7835
         test ! -s conftest.err
 
7836
       } && test -s conftest.$ac_objext; then
 
7837
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
7838
  ac_cv_c_bigendian=yes
 
7839
fi
 
7840
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
7841
  if test "$ac_cv_c_bigendian" = unknown; then
 
7842
    ac_cv_c_bigendian=no
 
7843
  else
 
7844
    # finding both strings is unlikely to happen, but who knows?
 
7845
    ac_cv_c_bigendian=unknown
 
7846
  fi
 
7847
fi
 
7848
else
 
7849
  echo "$as_me: failed program was:" >&5
 
7850
sed 's/^/| /' conftest.$ac_ext >&5
 
7851
 
 
7852
 
 
7853
fi
 
7854
 
 
7855
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7856
else
 
7857
  cat >conftest.$ac_ext <<_ACEOF
 
7858
/* confdefs.h.  */
 
7859
_ACEOF
 
7860
cat confdefs.h >>conftest.$ac_ext
 
7861
cat >>conftest.$ac_ext <<_ACEOF
 
7862
/* end confdefs.h.  */
 
7863
$ac_includes_default
 
7864
int
 
7865
main ()
 
7866
{
 
7867
 
2717
7868
  /* Are we little or big endian?  From Harbison&Steele.  */
2718
7869
  union
2719
7870
  {
2720
 
    long l;
2721
 
    char c[sizeof (long)];
 
7871
    long int l;
 
7872
    char c[sizeof (long int)];
2722
7873
  } u;
2723
7874
  u.l = 1;
2724
 
  exit (u.c[sizeof (long) - 1] == 1);
 
7875
  return u.c[sizeof (long int) - 1] == 1;
 
7876
 
 
7877
  ;
 
7878
  return 0;
2725
7879
}
2726
 
EOF
2727
 
if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2728
 
then
 
7880
_ACEOF
 
7881
rm -f conftest$ac_exeext
 
7882
if { (ac_try="$ac_link"
 
7883
case "(($ac_try" in
 
7884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7885
  *) ac_try_echo=$ac_try;;
 
7886
esac
 
7887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7888
  (eval "$ac_link") 2>&5
 
7889
  ac_status=$?
 
7890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7891
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7892
  { (case "(($ac_try" in
 
7893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7894
  *) ac_try_echo=$ac_try;;
 
7895
esac
 
7896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7897
  (eval "$ac_try") 2>&5
 
7898
  ac_status=$?
 
7899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7900
  (exit $ac_status); }; }; then
2729
7901
  ac_cv_c_bigendian=no
2730
7902
else
2731
 
  echo "configure: failed program was:" >&5
2732
 
  cat conftest.$ac_ext >&5
2733
 
  rm -fr conftest*
2734
 
  ac_cv_c_bigendian=yes
2735
 
fi
2736
 
rm -fr conftest*
2737
 
fi
2738
 
 
2739
 
fi
2740
 
fi
2741
 
 
2742
 
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2743
 
if test $ac_cv_c_bigendian = yes; then
2744
 
  cat >> confdefs.h <<\EOF
 
7903
  echo "$as_me: program exited with status $ac_status" >&5
 
7904
echo "$as_me: failed program was:" >&5
 
7905
sed 's/^/| /' conftest.$ac_ext >&5
 
7906
 
 
7907
( exit $ac_status )
 
7908
ac_cv_c_bigendian=yes
 
7909
fi
 
7910
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7911
fi
 
7912
 
 
7913
 
 
7914
fi
 
7915
 
 
7916
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7917
fi
 
7918
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
7919
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
7920
case $ac_cv_c_bigendian in
 
7921
  yes)
 
7922
 
 
7923
cat >>confdefs.h <<\_ACEOF
2745
7924
#define WORDS_BIGENDIAN 1
2746
 
EOF
2747
 
 
2748
 
fi
2749
 
 
2750
 
echo $ac_n "checking for time_t""... $ac_c" 1>&6
2751
 
echo "configure:2752: checking for time_t" >&5
2752
 
if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
2753
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7925
_ACEOF
 
7926
 ;;
 
7927
  no)
 
7928
     ;;
 
7929
  *)
 
7930
    { { echo "$as_me:$LINENO: error: unknown endianness
 
7931
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
7932
echo "$as_me: error: unknown endianness
 
7933
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
7934
   { (exit 1); exit 1; }; } ;;
 
7935
esac
 
7936
 
 
7937
{ echo "$as_me:$LINENO: checking for time_t" >&5
 
7938
echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
 
7939
if test "${ac_cv_type_time_t+set}" = set; then
 
7940
  echo $ECHO_N "(cached) $ECHO_C" >&6
2754
7941
else
2755
 
  cat > conftest.$ac_ext <<EOF
2756
 
#line 2757 "configure"
2757
 
#include "confdefs.h"
2758
 
#include <sys/types.h>
2759
 
#if STDC_HEADERS
2760
 
#include <stdlib.h>
2761
 
#include <stddef.h>
2762
 
#endif
2763
 
EOF
2764
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2765
 
  egrep "(^|[^a-zA-Z_0-9])time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2766
 
  rm -rf conftest*
 
7942
  cat >conftest.$ac_ext <<_ACEOF
 
7943
/* confdefs.h.  */
 
7944
_ACEOF
 
7945
cat confdefs.h >>conftest.$ac_ext
 
7946
cat >>conftest.$ac_ext <<_ACEOF
 
7947
/* end confdefs.h.  */
 
7948
$ac_includes_default
 
7949
typedef time_t ac__type_new_;
 
7950
int
 
7951
main ()
 
7952
{
 
7953
if ((ac__type_new_ *) 0)
 
7954
  return 0;
 
7955
if (sizeof (ac__type_new_))
 
7956
  return 0;
 
7957
  ;
 
7958
  return 0;
 
7959
}
 
7960
_ACEOF
 
7961
rm -f conftest.$ac_objext
 
7962
if { (ac_try="$ac_compile"
 
7963
case "(($ac_try" in
 
7964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7965
  *) ac_try_echo=$ac_try;;
 
7966
esac
 
7967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7968
  (eval "$ac_compile") 2>conftest.er1
 
7969
  ac_status=$?
 
7970
  grep -v '^ *+' conftest.er1 >conftest.err
 
7971
  rm -f conftest.er1
 
7972
  cat conftest.err >&5
 
7973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7974
  (exit $ac_status); } && {
 
7975
         test -z "$ac_c_werror_flag" ||
 
7976
         test ! -s conftest.err
 
7977
       } && test -s conftest.$ac_objext; then
2767
7978
  ac_cv_type_time_t=yes
2768
7979
else
2769
 
  rm -rf conftest*
2770
 
  ac_cv_type_time_t=no
2771
 
fi
2772
 
rm -f conftest*
2773
 
 
2774
 
fi
2775
 
echo "$ac_t""$ac_cv_type_time_t" 1>&6
2776
 
if test $ac_cv_type_time_t = no; then
2777
 
  cat >> confdefs.h <<\EOF
 
7980
  echo "$as_me: failed program was:" >&5
 
7981
sed 's/^/| /' conftest.$ac_ext >&5
 
7982
 
 
7983
        ac_cv_type_time_t=no
 
7984
fi
 
7985
 
 
7986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7987
fi
 
7988
{ echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
 
7989
echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
 
7990
if test $ac_cv_type_time_t = yes; then
 
7991
  :
 
7992
else
 
7993
 
 
7994
cat >>confdefs.h <<_ACEOF
2778
7995
#define time_t int
2779
 
EOF
 
7996
_ACEOF
2780
7997
 
2781
7998
fi
2782
7999
 
2783
 
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2784
 
echo "configure:2785: checking for pid_t" >&5
2785
 
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2786
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8000
{ echo "$as_me:$LINENO: checking for pid_t" >&5
 
8001
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 
8002
if test "${ac_cv_type_pid_t+set}" = set; then
 
8003
  echo $ECHO_N "(cached) $ECHO_C" >&6
2787
8004
else
2788
 
  cat > conftest.$ac_ext <<EOF
2789
 
#line 2790 "configure"
2790
 
#include "confdefs.h"
2791
 
#include <sys/types.h>
2792
 
#if STDC_HEADERS
2793
 
#include <stdlib.h>
2794
 
#include <stddef.h>
2795
 
#endif
2796
 
EOF
2797
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2798
 
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2799
 
  rm -rf conftest*
 
8005
  cat >conftest.$ac_ext <<_ACEOF
 
8006
/* confdefs.h.  */
 
8007
_ACEOF
 
8008
cat confdefs.h >>conftest.$ac_ext
 
8009
cat >>conftest.$ac_ext <<_ACEOF
 
8010
/* end confdefs.h.  */
 
8011
$ac_includes_default
 
8012
typedef pid_t ac__type_new_;
 
8013
int
 
8014
main ()
 
8015
{
 
8016
if ((ac__type_new_ *) 0)
 
8017
  return 0;
 
8018
if (sizeof (ac__type_new_))
 
8019
  return 0;
 
8020
  ;
 
8021
  return 0;
 
8022
}
 
8023
_ACEOF
 
8024
rm -f conftest.$ac_objext
 
8025
if { (ac_try="$ac_compile"
 
8026
case "(($ac_try" in
 
8027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8028
  *) ac_try_echo=$ac_try;;
 
8029
esac
 
8030
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8031
  (eval "$ac_compile") 2>conftest.er1
 
8032
  ac_status=$?
 
8033
  grep -v '^ *+' conftest.er1 >conftest.err
 
8034
  rm -f conftest.er1
 
8035
  cat conftest.err >&5
 
8036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8037
  (exit $ac_status); } && {
 
8038
         test -z "$ac_c_werror_flag" ||
 
8039
         test ! -s conftest.err
 
8040
       } && test -s conftest.$ac_objext; then
2800
8041
  ac_cv_type_pid_t=yes
2801
8042
else
2802
 
  rm -rf conftest*
2803
 
  ac_cv_type_pid_t=no
2804
 
fi
2805
 
rm -f conftest*
2806
 
 
2807
 
fi
2808
 
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2809
 
if test $ac_cv_type_pid_t = no; then
2810
 
  cat >> confdefs.h <<\EOF
 
8043
  echo "$as_me: failed program was:" >&5
 
8044
sed 's/^/| /' conftest.$ac_ext >&5
 
8045
 
 
8046
        ac_cv_type_pid_t=no
 
8047
fi
 
8048
 
 
8049
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8050
fi
 
8051
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
8052
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
 
8053
if test $ac_cv_type_pid_t = yes; then
 
8054
  :
 
8055
else
 
8056
 
 
8057
cat >>confdefs.h <<_ACEOF
2811
8058
#define pid_t int
2812
 
EOF
 
8059
_ACEOF
2813
8060
 
2814
8061
fi
2815
8062
 
2816
 
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2817
 
echo "configure:2818: checking for size_t" >&5
2818
 
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2819
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8063
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
8064
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
8065
if test "${ac_cv_type_size_t+set}" = set; then
 
8066
  echo $ECHO_N "(cached) $ECHO_C" >&6
2820
8067
else
2821
 
  cat > conftest.$ac_ext <<EOF
2822
 
#line 2823 "configure"
2823
 
#include "confdefs.h"
2824
 
#include <sys/types.h>
2825
 
#if STDC_HEADERS
2826
 
#include <stdlib.h>
2827
 
#include <stddef.h>
2828
 
#endif
2829
 
EOF
2830
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2831
 
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2832
 
  rm -rf conftest*
 
8068
  cat >conftest.$ac_ext <<_ACEOF
 
8069
/* confdefs.h.  */
 
8070
_ACEOF
 
8071
cat confdefs.h >>conftest.$ac_ext
 
8072
cat >>conftest.$ac_ext <<_ACEOF
 
8073
/* end confdefs.h.  */
 
8074
$ac_includes_default
 
8075
typedef size_t ac__type_new_;
 
8076
int
 
8077
main ()
 
8078
{
 
8079
if ((ac__type_new_ *) 0)
 
8080
  return 0;
 
8081
if (sizeof (ac__type_new_))
 
8082
  return 0;
 
8083
  ;
 
8084
  return 0;
 
8085
}
 
8086
_ACEOF
 
8087
rm -f conftest.$ac_objext
 
8088
if { (ac_try="$ac_compile"
 
8089
case "(($ac_try" in
 
8090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8091
  *) ac_try_echo=$ac_try;;
 
8092
esac
 
8093
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8094
  (eval "$ac_compile") 2>conftest.er1
 
8095
  ac_status=$?
 
8096
  grep -v '^ *+' conftest.er1 >conftest.err
 
8097
  rm -f conftest.er1
 
8098
  cat conftest.err >&5
 
8099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8100
  (exit $ac_status); } && {
 
8101
         test -z "$ac_c_werror_flag" ||
 
8102
         test ! -s conftest.err
 
8103
       } && test -s conftest.$ac_objext; then
2833
8104
  ac_cv_type_size_t=yes
2834
8105
else
2835
 
  rm -rf conftest*
2836
 
  ac_cv_type_size_t=no
2837
 
fi
2838
 
rm -f conftest*
2839
 
 
2840
 
fi
2841
 
echo "$ac_t""$ac_cv_type_size_t" 1>&6
2842
 
if test $ac_cv_type_size_t = no; then
2843
 
  cat >> confdefs.h <<\EOF
2844
 
#define size_t unsigned
2845
 
EOF
2846
 
 
2847
 
fi
2848
 
 
2849
 
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2850
 
echo "configure:2851: checking for uid_t in sys/types.h" >&5
2851
 
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2852
 
  echo $ac_n "(cached) $ac_c" 1>&6
2853
 
else
2854
 
  cat > conftest.$ac_ext <<EOF
2855
 
#line 2856 "configure"
2856
 
#include "confdefs.h"
 
8106
  echo "$as_me: failed program was:" >&5
 
8107
sed 's/^/| /' conftest.$ac_ext >&5
 
8108
 
 
8109
        ac_cv_type_size_t=no
 
8110
fi
 
8111
 
 
8112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8113
fi
 
8114
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
8115
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
8116
if test $ac_cv_type_size_t = yes; then
 
8117
  :
 
8118
else
 
8119
 
 
8120
cat >>confdefs.h <<_ACEOF
 
8121
#define size_t unsigned int
 
8122
_ACEOF
 
8123
 
 
8124
fi
 
8125
 
 
8126
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
 
8127
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
 
8128
if test "${ac_cv_type_uid_t+set}" = set; then
 
8129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8130
else
 
8131
  cat >conftest.$ac_ext <<_ACEOF
 
8132
/* confdefs.h.  */
 
8133
_ACEOF
 
8134
cat confdefs.h >>conftest.$ac_ext
 
8135
cat >>conftest.$ac_ext <<_ACEOF
 
8136
/* end confdefs.h.  */
2857
8137
#include <sys/types.h>
2858
 
EOF
 
8138
 
 
8139
_ACEOF
2859
8140
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2860
 
  egrep "uid_t" >/dev/null 2>&1; then
2861
 
  rm -rf conftest*
 
8141
  $EGREP "uid_t" >/dev/null 2>&1; then
2862
8142
  ac_cv_type_uid_t=yes
2863
8143
else
2864
 
  rm -rf conftest*
2865
8144
  ac_cv_type_uid_t=no
2866
8145
fi
2867
8146
rm -f conftest*
2868
8147
 
2869
8148
fi
2870
 
 
2871
 
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
 
8149
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
 
8150
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
2872
8151
if test $ac_cv_type_uid_t = no; then
2873
 
  cat >> confdefs.h <<\EOF
 
8152
 
 
8153
cat >>confdefs.h <<\_ACEOF
2874
8154
#define uid_t int
2875
 
EOF
2876
 
 
2877
 
  cat >> confdefs.h <<\EOF
 
8155
_ACEOF
 
8156
 
 
8157
 
 
8158
cat >>confdefs.h <<\_ACEOF
2878
8159
#define gid_t int
2879
 
EOF
2880
 
 
2881
 
fi
2882
 
 
2883
 
 
2884
 
echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2885
 
echo "configure:2886: checking for struct timeval" >&5
2886
 
cat > conftest.$ac_ext <<EOF
2887
 
#line 2888 "configure"
2888
 
#include "confdefs.h"
 
8160
_ACEOF
 
8161
 
 
8162
fi
 
8163
 
 
8164
 
 
8165
# Check whether --enable-largefile was given.
 
8166
if test "${enable_largefile+set}" = set; then
 
8167
  enableval=$enable_largefile;
 
8168
fi
 
8169
 
 
8170
if test "$enable_largefile" != no; then
 
8171
 
 
8172
  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
 
8173
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
 
8174
if test "${ac_cv_sys_largefile_CC+set}" = set; then
 
8175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8176
else
 
8177
  ac_cv_sys_largefile_CC=no
 
8178
     if test "$GCC" != yes; then
 
8179
       ac_save_CC=$CC
 
8180
       while :; do
 
8181
         # IRIX 6.2 and later do not support large files by default,
 
8182
         # so use the C compiler's -n32 option if that helps.
 
8183
         cat >conftest.$ac_ext <<_ACEOF
 
8184
/* confdefs.h.  */
 
8185
_ACEOF
 
8186
cat confdefs.h >>conftest.$ac_ext
 
8187
cat >>conftest.$ac_ext <<_ACEOF
 
8188
/* end confdefs.h.  */
 
8189
#include <sys/types.h>
 
8190
 /* Check that off_t can represent 2**63 - 1 correctly.
 
8191
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
8192
    since some C++ compilers masquerading as C compilers
 
8193
    incorrectly reject 9223372036854775807.  */
 
8194
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
8195
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
8196
                       && LARGE_OFF_T % 2147483647 == 1)
 
8197
                      ? 1 : -1];
 
8198
int
 
8199
main ()
 
8200
{
 
8201
 
 
8202
  ;
 
8203
  return 0;
 
8204
}
 
8205
_ACEOF
 
8206
         rm -f conftest.$ac_objext
 
8207
if { (ac_try="$ac_compile"
 
8208
case "(($ac_try" in
 
8209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8210
  *) ac_try_echo=$ac_try;;
 
8211
esac
 
8212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8213
  (eval "$ac_compile") 2>conftest.er1
 
8214
  ac_status=$?
 
8215
  grep -v '^ *+' conftest.er1 >conftest.err
 
8216
  rm -f conftest.er1
 
8217
  cat conftest.err >&5
 
8218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8219
  (exit $ac_status); } && {
 
8220
         test -z "$ac_c_werror_flag" ||
 
8221
         test ! -s conftest.err
 
8222
       } && test -s conftest.$ac_objext; then
 
8223
  break
 
8224
else
 
8225
  echo "$as_me: failed program was:" >&5
 
8226
sed 's/^/| /' conftest.$ac_ext >&5
 
8227
 
 
8228
 
 
8229
fi
 
8230
 
 
8231
rm -f core conftest.err conftest.$ac_objext
 
8232
         CC="$CC -n32"
 
8233
         rm -f conftest.$ac_objext
 
8234
if { (ac_try="$ac_compile"
 
8235
case "(($ac_try" in
 
8236
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8237
  *) ac_try_echo=$ac_try;;
 
8238
esac
 
8239
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8240
  (eval "$ac_compile") 2>conftest.er1
 
8241
  ac_status=$?
 
8242
  grep -v '^ *+' conftest.er1 >conftest.err
 
8243
  rm -f conftest.er1
 
8244
  cat conftest.err >&5
 
8245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8246
  (exit $ac_status); } && {
 
8247
         test -z "$ac_c_werror_flag" ||
 
8248
         test ! -s conftest.err
 
8249
       } && test -s conftest.$ac_objext; then
 
8250
  ac_cv_sys_largefile_CC=' -n32'; break
 
8251
else
 
8252
  echo "$as_me: failed program was:" >&5
 
8253
sed 's/^/| /' conftest.$ac_ext >&5
 
8254
 
 
8255
 
 
8256
fi
 
8257
 
 
8258
rm -f core conftest.err conftest.$ac_objext
 
8259
         break
 
8260
       done
 
8261
       CC=$ac_save_CC
 
8262
       rm -f conftest.$ac_ext
 
8263
    fi
 
8264
fi
 
8265
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
 
8266
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
 
8267
  if test "$ac_cv_sys_largefile_CC" != no; then
 
8268
    CC=$CC$ac_cv_sys_largefile_CC
 
8269
  fi
 
8270
 
 
8271
  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
8272
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
 
8273
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
8274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8275
else
 
8276
  while :; do
 
8277
  cat >conftest.$ac_ext <<_ACEOF
 
8278
/* confdefs.h.  */
 
8279
_ACEOF
 
8280
cat confdefs.h >>conftest.$ac_ext
 
8281
cat >>conftest.$ac_ext <<_ACEOF
 
8282
/* end confdefs.h.  */
 
8283
#include <sys/types.h>
 
8284
 /* Check that off_t can represent 2**63 - 1 correctly.
 
8285
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
8286
    since some C++ compilers masquerading as C compilers
 
8287
    incorrectly reject 9223372036854775807.  */
 
8288
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
8289
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
8290
                       && LARGE_OFF_T % 2147483647 == 1)
 
8291
                      ? 1 : -1];
 
8292
int
 
8293
main ()
 
8294
{
 
8295
 
 
8296
  ;
 
8297
  return 0;
 
8298
}
 
8299
_ACEOF
 
8300
rm -f conftest.$ac_objext
 
8301
if { (ac_try="$ac_compile"
 
8302
case "(($ac_try" in
 
8303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8304
  *) ac_try_echo=$ac_try;;
 
8305
esac
 
8306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8307
  (eval "$ac_compile") 2>conftest.er1
 
8308
  ac_status=$?
 
8309
  grep -v '^ *+' conftest.er1 >conftest.err
 
8310
  rm -f conftest.er1
 
8311
  cat conftest.err >&5
 
8312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8313
  (exit $ac_status); } && {
 
8314
         test -z "$ac_c_werror_flag" ||
 
8315
         test ! -s conftest.err
 
8316
       } && test -s conftest.$ac_objext; then
 
8317
  ac_cv_sys_file_offset_bits=no; break
 
8318
else
 
8319
  echo "$as_me: failed program was:" >&5
 
8320
sed 's/^/| /' conftest.$ac_ext >&5
 
8321
 
 
8322
 
 
8323
fi
 
8324
 
 
8325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8326
  cat >conftest.$ac_ext <<_ACEOF
 
8327
/* confdefs.h.  */
 
8328
_ACEOF
 
8329
cat confdefs.h >>conftest.$ac_ext
 
8330
cat >>conftest.$ac_ext <<_ACEOF
 
8331
/* end confdefs.h.  */
 
8332
#define _FILE_OFFSET_BITS 64
 
8333
#include <sys/types.h>
 
8334
 /* Check that off_t can represent 2**63 - 1 correctly.
 
8335
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
8336
    since some C++ compilers masquerading as C compilers
 
8337
    incorrectly reject 9223372036854775807.  */
 
8338
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
8339
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
8340
                       && LARGE_OFF_T % 2147483647 == 1)
 
8341
                      ? 1 : -1];
 
8342
int
 
8343
main ()
 
8344
{
 
8345
 
 
8346
  ;
 
8347
  return 0;
 
8348
}
 
8349
_ACEOF
 
8350
rm -f conftest.$ac_objext
 
8351
if { (ac_try="$ac_compile"
 
8352
case "(($ac_try" in
 
8353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8354
  *) ac_try_echo=$ac_try;;
 
8355
esac
 
8356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8357
  (eval "$ac_compile") 2>conftest.er1
 
8358
  ac_status=$?
 
8359
  grep -v '^ *+' conftest.er1 >conftest.err
 
8360
  rm -f conftest.er1
 
8361
  cat conftest.err >&5
 
8362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8363
  (exit $ac_status); } && {
 
8364
         test -z "$ac_c_werror_flag" ||
 
8365
         test ! -s conftest.err
 
8366
       } && test -s conftest.$ac_objext; then
 
8367
  ac_cv_sys_file_offset_bits=64; break
 
8368
else
 
8369
  echo "$as_me: failed program was:" >&5
 
8370
sed 's/^/| /' conftest.$ac_ext >&5
 
8371
 
 
8372
 
 
8373
fi
 
8374
 
 
8375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8376
  ac_cv_sys_file_offset_bits=unknown
 
8377
  break
 
8378
done
 
8379
fi
 
8380
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
8381
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
 
8382
case $ac_cv_sys_file_offset_bits in #(
 
8383
  no | unknown) ;;
 
8384
  *)
 
8385
cat >>confdefs.h <<_ACEOF
 
8386
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
8387
_ACEOF
 
8388
;;
 
8389
esac
 
8390
rm -f conftest*
 
8391
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
8392
    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
 
8393
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
 
8394
if test "${ac_cv_sys_large_files+set}" = set; then
 
8395
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8396
else
 
8397
  while :; do
 
8398
  cat >conftest.$ac_ext <<_ACEOF
 
8399
/* confdefs.h.  */
 
8400
_ACEOF
 
8401
cat confdefs.h >>conftest.$ac_ext
 
8402
cat >>conftest.$ac_ext <<_ACEOF
 
8403
/* end confdefs.h.  */
 
8404
#include <sys/types.h>
 
8405
 /* Check that off_t can represent 2**63 - 1 correctly.
 
8406
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
8407
    since some C++ compilers masquerading as C compilers
 
8408
    incorrectly reject 9223372036854775807.  */
 
8409
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
8410
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
8411
                       && LARGE_OFF_T % 2147483647 == 1)
 
8412
                      ? 1 : -1];
 
8413
int
 
8414
main ()
 
8415
{
 
8416
 
 
8417
  ;
 
8418
  return 0;
 
8419
}
 
8420
_ACEOF
 
8421
rm -f conftest.$ac_objext
 
8422
if { (ac_try="$ac_compile"
 
8423
case "(($ac_try" in
 
8424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8425
  *) ac_try_echo=$ac_try;;
 
8426
esac
 
8427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8428
  (eval "$ac_compile") 2>conftest.er1
 
8429
  ac_status=$?
 
8430
  grep -v '^ *+' conftest.er1 >conftest.err
 
8431
  rm -f conftest.er1
 
8432
  cat conftest.err >&5
 
8433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8434
  (exit $ac_status); } && {
 
8435
         test -z "$ac_c_werror_flag" ||
 
8436
         test ! -s conftest.err
 
8437
       } && test -s conftest.$ac_objext; then
 
8438
  ac_cv_sys_large_files=no; break
 
8439
else
 
8440
  echo "$as_me: failed program was:" >&5
 
8441
sed 's/^/| /' conftest.$ac_ext >&5
 
8442
 
 
8443
 
 
8444
fi
 
8445
 
 
8446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8447
  cat >conftest.$ac_ext <<_ACEOF
 
8448
/* confdefs.h.  */
 
8449
_ACEOF
 
8450
cat confdefs.h >>conftest.$ac_ext
 
8451
cat >>conftest.$ac_ext <<_ACEOF
 
8452
/* end confdefs.h.  */
 
8453
#define _LARGE_FILES 1
 
8454
#include <sys/types.h>
 
8455
 /* Check that off_t can represent 2**63 - 1 correctly.
 
8456
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
8457
    since some C++ compilers masquerading as C compilers
 
8458
    incorrectly reject 9223372036854775807.  */
 
8459
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
8460
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
8461
                       && LARGE_OFF_T % 2147483647 == 1)
 
8462
                      ? 1 : -1];
 
8463
int
 
8464
main ()
 
8465
{
 
8466
 
 
8467
  ;
 
8468
  return 0;
 
8469
}
 
8470
_ACEOF
 
8471
rm -f conftest.$ac_objext
 
8472
if { (ac_try="$ac_compile"
 
8473
case "(($ac_try" in
 
8474
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8475
  *) ac_try_echo=$ac_try;;
 
8476
esac
 
8477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8478
  (eval "$ac_compile") 2>conftest.er1
 
8479
  ac_status=$?
 
8480
  grep -v '^ *+' conftest.er1 >conftest.err
 
8481
  rm -f conftest.er1
 
8482
  cat conftest.err >&5
 
8483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8484
  (exit $ac_status); } && {
 
8485
         test -z "$ac_c_werror_flag" ||
 
8486
         test ! -s conftest.err
 
8487
       } && test -s conftest.$ac_objext; then
 
8488
  ac_cv_sys_large_files=1; break
 
8489
else
 
8490
  echo "$as_me: failed program was:" >&5
 
8491
sed 's/^/| /' conftest.$ac_ext >&5
 
8492
 
 
8493
 
 
8494
fi
 
8495
 
 
8496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8497
  ac_cv_sys_large_files=unknown
 
8498
  break
 
8499
done
 
8500
fi
 
8501
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
8502
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
 
8503
case $ac_cv_sys_large_files in #(
 
8504
  no | unknown) ;;
 
8505
  *)
 
8506
cat >>confdefs.h <<_ACEOF
 
8507
#define _LARGE_FILES $ac_cv_sys_large_files
 
8508
_ACEOF
 
8509
;;
 
8510
esac
 
8511
rm -f conftest*
 
8512
  fi
 
8513
fi
 
8514
 
 
8515
{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
 
8516
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
 
8517
if test "${ac_cv_sys_largefile_source+set}" = set; then
 
8518
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8519
else
 
8520
  while :; do
 
8521
  cat >conftest.$ac_ext <<_ACEOF
 
8522
/* confdefs.h.  */
 
8523
_ACEOF
 
8524
cat confdefs.h >>conftest.$ac_ext
 
8525
cat >>conftest.$ac_ext <<_ACEOF
 
8526
/* end confdefs.h.  */
 
8527
#include <sys/types.h> /* for off_t */
 
8528
     #include <stdio.h>
 
8529
int
 
8530
main ()
 
8531
{
 
8532
int (*fp) (FILE *, off_t, int) = fseeko;
 
8533
     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
 
8534
  ;
 
8535
  return 0;
 
8536
}
 
8537
_ACEOF
 
8538
rm -f conftest.$ac_objext conftest$ac_exeext
 
8539
if { (ac_try="$ac_link"
 
8540
case "(($ac_try" in
 
8541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8542
  *) ac_try_echo=$ac_try;;
 
8543
esac
 
8544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8545
  (eval "$ac_link") 2>conftest.er1
 
8546
  ac_status=$?
 
8547
  grep -v '^ *+' conftest.er1 >conftest.err
 
8548
  rm -f conftest.er1
 
8549
  cat conftest.err >&5
 
8550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8551
  (exit $ac_status); } && {
 
8552
         test -z "$ac_c_werror_flag" ||
 
8553
         test ! -s conftest.err
 
8554
       } && test -s conftest$ac_exeext &&
 
8555
       $as_test_x conftest$ac_exeext; then
 
8556
  ac_cv_sys_largefile_source=no; break
 
8557
else
 
8558
  echo "$as_me: failed program was:" >&5
 
8559
sed 's/^/| /' conftest.$ac_ext >&5
 
8560
 
 
8561
 
 
8562
fi
 
8563
 
 
8564
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8565
      conftest$ac_exeext conftest.$ac_ext
 
8566
  cat >conftest.$ac_ext <<_ACEOF
 
8567
/* confdefs.h.  */
 
8568
_ACEOF
 
8569
cat confdefs.h >>conftest.$ac_ext
 
8570
cat >>conftest.$ac_ext <<_ACEOF
 
8571
/* end confdefs.h.  */
 
8572
#define _LARGEFILE_SOURCE 1
 
8573
#include <sys/types.h> /* for off_t */
 
8574
     #include <stdio.h>
 
8575
int
 
8576
main ()
 
8577
{
 
8578
int (*fp) (FILE *, off_t, int) = fseeko;
 
8579
     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
 
8580
  ;
 
8581
  return 0;
 
8582
}
 
8583
_ACEOF
 
8584
rm -f conftest.$ac_objext conftest$ac_exeext
 
8585
if { (ac_try="$ac_link"
 
8586
case "(($ac_try" in
 
8587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8588
  *) ac_try_echo=$ac_try;;
 
8589
esac
 
8590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8591
  (eval "$ac_link") 2>conftest.er1
 
8592
  ac_status=$?
 
8593
  grep -v '^ *+' conftest.er1 >conftest.err
 
8594
  rm -f conftest.er1
 
8595
  cat conftest.err >&5
 
8596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8597
  (exit $ac_status); } && {
 
8598
         test -z "$ac_c_werror_flag" ||
 
8599
         test ! -s conftest.err
 
8600
       } && test -s conftest$ac_exeext &&
 
8601
       $as_test_x conftest$ac_exeext; then
 
8602
  ac_cv_sys_largefile_source=1; break
 
8603
else
 
8604
  echo "$as_me: failed program was:" >&5
 
8605
sed 's/^/| /' conftest.$ac_ext >&5
 
8606
 
 
8607
 
 
8608
fi
 
8609
 
 
8610
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8611
      conftest$ac_exeext conftest.$ac_ext
 
8612
  ac_cv_sys_largefile_source=unknown
 
8613
  break
 
8614
done
 
8615
fi
 
8616
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
 
8617
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
 
8618
case $ac_cv_sys_largefile_source in #(
 
8619
  no | unknown) ;;
 
8620
  *)
 
8621
cat >>confdefs.h <<_ACEOF
 
8622
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
 
8623
_ACEOF
 
8624
;;
 
8625
esac
 
8626
rm -f conftest*
 
8627
 
 
8628
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
 
8629
# in glibc 2.1.3, but that breaks too many other things.
 
8630
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
 
8631
if test $ac_cv_sys_largefile_source != unknown; then
 
8632
 
 
8633
cat >>confdefs.h <<\_ACEOF
 
8634
#define HAVE_FSEEKO 1
 
8635
_ACEOF
 
8636
 
 
8637
fi
 
8638
 
 
8639
{ echo "$as_me:$LINENO: checking for off_t" >&5
 
8640
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
 
8641
if test "${ac_cv_type_off_t+set}" = set; then
 
8642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8643
else
 
8644
  cat >conftest.$ac_ext <<_ACEOF
 
8645
/* confdefs.h.  */
 
8646
_ACEOF
 
8647
cat confdefs.h >>conftest.$ac_ext
 
8648
cat >>conftest.$ac_ext <<_ACEOF
 
8649
/* end confdefs.h.  */
 
8650
$ac_includes_default
 
8651
typedef off_t ac__type_new_;
 
8652
int
 
8653
main ()
 
8654
{
 
8655
if ((ac__type_new_ *) 0)
 
8656
  return 0;
 
8657
if (sizeof (ac__type_new_))
 
8658
  return 0;
 
8659
  ;
 
8660
  return 0;
 
8661
}
 
8662
_ACEOF
 
8663
rm -f conftest.$ac_objext
 
8664
if { (ac_try="$ac_compile"
 
8665
case "(($ac_try" in
 
8666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8667
  *) ac_try_echo=$ac_try;;
 
8668
esac
 
8669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8670
  (eval "$ac_compile") 2>conftest.er1
 
8671
  ac_status=$?
 
8672
  grep -v '^ *+' conftest.er1 >conftest.err
 
8673
  rm -f conftest.er1
 
8674
  cat conftest.err >&5
 
8675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8676
  (exit $ac_status); } && {
 
8677
         test -z "$ac_c_werror_flag" ||
 
8678
         test ! -s conftest.err
 
8679
       } && test -s conftest.$ac_objext; then
 
8680
  ac_cv_type_off_t=yes
 
8681
else
 
8682
  echo "$as_me: failed program was:" >&5
 
8683
sed 's/^/| /' conftest.$ac_ext >&5
 
8684
 
 
8685
        ac_cv_type_off_t=no
 
8686
fi
 
8687
 
 
8688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8689
fi
 
8690
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
8691
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
 
8692
if test $ac_cv_type_off_t = yes; then
 
8693
  :
 
8694
else
 
8695
 
 
8696
cat >>confdefs.h <<_ACEOF
 
8697
#define off_t long int
 
8698
_ACEOF
 
8699
 
 
8700
fi
 
8701
 
 
8702
 
 
8703
{ echo "$as_me:$LINENO: checking for struct timeval" >&5
 
8704
echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
 
8705
cat >conftest.$ac_ext <<_ACEOF
 
8706
/* confdefs.h.  */
 
8707
_ACEOF
 
8708
cat confdefs.h >>conftest.$ac_ext
 
8709
cat >>conftest.$ac_ext <<_ACEOF
 
8710
/* end confdefs.h.  */
2889
8711
#ifdef TIME_WITH_SYS_TIME
2890
8712
#include <sys/time.h>
2891
8713
#include <time.h>
2896
8718
#include <time.h>
2897
8719
#endif
2898
8720
#endif
2899
 
int main() {
 
8721
int
 
8722
main ()
 
8723
{
2900
8724
static struct timeval x; x.tv_sec = x.tv_usec;
2901
 
; return 0; }
2902
 
EOF
2903
 
if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2904
 
  rm -rf conftest*
2905
 
  echo "$ac_t""yes" 1>&6
 
8725
  ;
 
8726
  return 0;
 
8727
}
 
8728
_ACEOF
 
8729
rm -f conftest.$ac_objext
 
8730
if { (ac_try="$ac_compile"
 
8731
case "(($ac_try" in
 
8732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8733
  *) ac_try_echo=$ac_try;;
 
8734
esac
 
8735
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8736
  (eval "$ac_compile") 2>conftest.er1
 
8737
  ac_status=$?
 
8738
  grep -v '^ *+' conftest.er1 >conftest.err
 
8739
  rm -f conftest.er1
 
8740
  cat conftest.err >&5
 
8741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8742
  (exit $ac_status); } && {
 
8743
         test -z "$ac_c_werror_flag" ||
 
8744
         test ! -s conftest.err
 
8745
       } && test -s conftest.$ac_objext; then
 
8746
  { echo "$as_me:$LINENO: result: yes" >&5
 
8747
echo "${ECHO_T}yes" >&6; }
2906
8748
   HAVE_TIMEVAL=yes
2907
 
   cat >> confdefs.h <<\EOF
 
8749
   cat >>confdefs.h <<\_ACEOF
2908
8750
#define HAVE_TIMEVAL 1
2909
 
EOF
 
8751
_ACEOF
2910
8752
 
2911
8753
else
2912
 
  echo "configure: failed program was:" >&5
2913
 
  cat conftest.$ac_ext >&5
2914
 
  rm -rf conftest*
2915
 
  echo "$ac_t""no" 1>&6
 
8754
  echo "$as_me: failed program was:" >&5
 
8755
sed 's/^/| /' conftest.$ac_ext >&5
 
8756
 
 
8757
        { echo "$as_me:$LINENO: result: no" >&5
 
8758
echo "${ECHO_T}no" >&6; }
2916
8759
   HAVE_TIMEVAL=no
2917
8760
fi
2918
 
rm -f conftest*
 
8761
 
 
8762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919
8763
 
2920
8764
 
2921
8765
if test "x$HAVE_TIMEVAL" = xyes; then
2922
 
echo $ac_n "checking whether gettimeofday can't accept two arguments""... $ac_c" 1>&6
2923
 
echo "configure:2924: checking whether gettimeofday can't accept two arguments" >&5
2924
 
cat > conftest.$ac_ext <<EOF
2925
 
#line 2926 "configure"
2926
 
#include "confdefs.h"
 
8766
{ echo "$as_me:$LINENO: checking whether gettimeofday can't accept two arguments" >&5
 
8767
echo $ECHO_N "checking whether gettimeofday can't accept two arguments... $ECHO_C" >&6; }
 
8768
cat >conftest.$ac_ext <<_ACEOF
 
8769
/* confdefs.h.  */
 
8770
_ACEOF
 
8771
cat confdefs.h >>conftest.$ac_ext
 
8772
cat >>conftest.$ac_ext <<_ACEOF
 
8773
/* end confdefs.h.  */
2927
8774
 
2928
8775
#ifdef TIME_WITH_SYS_TIME
2929
8776
#include <sys/time.h>
2935
8782
#include <time.h>
2936
8783
#endif
2937
8784
#endif
2938
 
  
2939
 
int main() {
 
8785
 
 
8786
int
 
8787
main ()
 
8788
{
2940
8789
 
2941
8790
  struct timeval time;
2942
8791
  struct timezone dummy;
2943
8792
  gettimeofday (&time, &dummy);
2944
8793
 
2945
 
; return 0; }
2946
 
EOF
2947
 
if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2948
 
  rm -rf conftest*
2949
 
  echo "$ac_t""no" 1>&6
 
8794
  ;
 
8795
  return 0;
 
8796
}
 
8797
_ACEOF
 
8798
rm -f conftest.$ac_objext conftest$ac_exeext
 
8799
if { (ac_try="$ac_link"
 
8800
case "(($ac_try" in
 
8801
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8802
  *) ac_try_echo=$ac_try;;
 
8803
esac
 
8804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8805
  (eval "$ac_link") 2>conftest.er1
 
8806
  ac_status=$?
 
8807
  grep -v '^ *+' conftest.er1 >conftest.err
 
8808
  rm -f conftest.er1
 
8809
  cat conftest.err >&5
 
8810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8811
  (exit $ac_status); } && {
 
8812
         test -z "$ac_c_werror_flag" ||
 
8813
         test ! -s conftest.err
 
8814
       } && test -s conftest$ac_exeext &&
 
8815
       $as_test_x conftest$ac_exeext; then
 
8816
  { echo "$as_me:$LINENO: result: no" >&5
 
8817
echo "${ECHO_T}no" >&6; }
2950
8818
else
2951
 
  echo "configure: failed program was:" >&5
2952
 
  cat conftest.$ac_ext >&5
2953
 
  rm -rf conftest*
2954
 
  echo "$ac_t""yes" 1>&6
2955
 
   cat >> confdefs.h <<\EOF
 
8819
  echo "$as_me: failed program was:" >&5
 
8820
sed 's/^/| /' conftest.$ac_ext >&5
 
8821
 
 
8822
        { echo "$as_me:$LINENO: result: yes" >&5
 
8823
echo "${ECHO_T}yes" >&6; }
 
8824
   cat >>confdefs.h <<\_ACEOF
2956
8825
#define GETTIMEOFDAY_ONE_ARGUMENT 1
2957
 
EOF
 
8826
_ACEOF
2958
8827
 
2959
8828
fi
2960
 
rm -f conftest*
 
8829
 
 
8830
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8831
      conftest$ac_exeext conftest.$ac_ext
2961
8832
fi
2962
8833
 
2963
8834
 
2965
8836
#
2966
8837
# RedHat 8.0 ships with a broken regexp library (Nessus bug#90)
2967
8838
#
2968
 
test -f /etc/redhat-release && 
 
8839
test -f /etc/redhat-release &&
2969
8840
{
2970
8841
 cat /etc/redhat-release | egrep "(8\.0|9)" >/dev/null && BROKEN_REGEXP=y
2971
8842
 }
2972
 
 
 
8843
 
2973
8844
 
2974
8845
test -z "$BROKEN_REGEXP" &&
2975
8846
{
2976
 
echo $ac_n "checking for a working regexp implementation""... $ac_c" 1>&6
2977
 
echo "configure:2978: checking for a working regexp implementation" >&5
 
8847
{ echo "$as_me:$LINENO: checking for a working regexp implementation" >&5
 
8848
echo $ECHO_N "checking for a working regexp implementation... $ECHO_C" >&6; }
2978
8849
if test "$cross_compiling" = yes; then
2979
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
 
8850
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
8851
See \`config.log' for more details." >&5
 
8852
echo "$as_me: error: cannot run test program while cross compiling
 
8853
See \`config.log' for more details." >&2;}
 
8854
   { (exit 1); exit 1; }; }
2980
8855
else
2981
 
  cat > conftest.$ac_ext <<EOF
2982
 
#line 2983 "configure"
2983
 
#include "confdefs.h"
 
8856
  cat >conftest.$ac_ext <<_ACEOF
 
8857
/* confdefs.h.  */
 
8858
_ACEOF
 
8859
cat confdefs.h >>conftest.$ac_ext
 
8860
cat >>conftest.$ac_ext <<_ACEOF
 
8861
/* end confdefs.h.  */
2984
8862
 
2985
8863
#include <stdio.h>
2986
8864
#include <stdlib.h>
2992
8870
  char fastmap[1 << 8];
2993
8871
  struct re_pattern_buffer pb;
2994
8872
  struct re_registers regs;
2995
 
 
 
8873
 
2996
8874
  pb.allocated = 8;
2997
8875
  pb.buffer = malloc(8);
2998
8876
  pb.fastmap = fastmap;
3000
8878
  re_set_syntax(RE_SYNTAX_POSIX_EGREP);
3001
8879
  re_compile_pattern(".*openvas.*", strlen(".*openvas.*"), &pb);
3002
8880
  re_compile_fastmap(&pb);
3003
 
  return re_search(&pb, 
 
8881
  return re_search(&pb,
3004
8882
                "i use openvas everyday",
3005
8883
                strlen("i use openvas everyday"),
3006
 
                0, 
 
8884
                0,
3007
8885
                strlen("i use openvas everyday"),
3008
8886
                &regs);
3009
8887
}
3010
8888
 
3011
 
EOF
3012
 
if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3013
 
then
3014
 
  echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
 
8889
_ACEOF
 
8890
rm -f conftest$ac_exeext
 
8891
if { (ac_try="$ac_link"
 
8892
case "(($ac_try" in
 
8893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8894
  *) ac_try_echo=$ac_try;;
 
8895
esac
 
8896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8897
  (eval "$ac_link") 2>&5
 
8898
  ac_status=$?
 
8899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8900
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8901
  { (case "(($ac_try" in
 
8902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8903
  *) ac_try_echo=$ac_try;;
 
8904
esac
 
8905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8906
  (eval "$ac_try") 2>&5
 
8907
  ac_status=$?
 
8908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8909
  (exit $ac_status); }; }; then
 
8910
  { echo "$as_me:$LINENO: result: yes" >&5
 
8911
echo "${ECHO_T}yes" >&6; };cat >>confdefs.h <<\_ACEOF
3015
8912
#define HAVE_REGEX_SUPPORT 1
3016
 
EOF
 
8913
_ACEOF
3017
8914
 
3018
8915
else
3019
 
  echo "configure: failed program was:" >&5
3020
 
  cat conftest.$ac_ext >&5
3021
 
  rm -fr conftest*
3022
 
  echo "$ac_t""no" 1>&6
3023
 
fi
3024
 
rm -fr conftest*
3025
 
fi
 
8916
  echo "$as_me: program exited with status $ac_status" >&5
 
8917
echo "$as_me: failed program was:" >&5
 
8918
sed 's/^/| /' conftest.$ac_ext >&5
 
8919
 
 
8920
( exit $ac_status )
 
8921
{ echo "$as_me:$LINENO: result: no" >&5
 
8922
echo "${ECHO_T}no" >&6; }
 
8923
fi
 
8924
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8925
fi
 
8926
 
3026
8927
 
3027
8928
}
3028
8929
 
3029
 
echo $ac_n "checking struct ip contains ip_csum""... $ac_c" 1>&6
3030
 
echo "configure:3031: checking struct ip contains ip_csum" >&5
3031
 
cat > conftest.$ac_ext <<EOF
3032
 
#line 3033 "configure"
3033
 
#include "confdefs.h"
 
8930
{ echo "$as_me:$LINENO: checking struct ip contains ip_csum" >&5
 
8931
echo $ECHO_N "checking struct ip contains ip_csum... $ECHO_C" >&6; }
 
8932
cat >conftest.$ac_ext <<_ACEOF
 
8933
/* confdefs.h.  */
 
8934
_ACEOF
 
8935
cat confdefs.h >>conftest.$ac_ext
 
8936
cat >>conftest.$ac_ext <<_ACEOF
 
8937
/* end confdefs.h.  */
3034
8938
#ifdef __linux__
3035
8939
#define __BSD_SOURCE
3036
8940
#define _BSD_SOURCE
3037
8941
#define __FAVOR_BSD
3038
8942
#endif
3039
 
#include <sys/types.h> 
 
8943
#include <sys/types.h>
3040
8944
#include <netinet/in.h>
3041
8945
#include <netinet/in_systm.h>
3042
8946
#include <netinet/ip.h>
3043
 
int main() {
 
8947
int
 
8948
main ()
 
8949
{
3044
8950
 
3045
8951
struct ip ip;
3046
8952
ip.ip_csum = 0;
3047
8953
 
3048
 
; return 0; }
3049
 
EOF
3050
 
if { (eval echo configure:3051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3051
 
  rm -rf conftest*
3052
 
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
8954
  ;
 
8955
  return 0;
 
8956
}
 
8957
_ACEOF
 
8958
rm -f conftest.$ac_objext
 
8959
if { (ac_try="$ac_compile"
 
8960
case "(($ac_try" in
 
8961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8962
  *) ac_try_echo=$ac_try;;
 
8963
esac
 
8964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8965
  (eval "$ac_compile") 2>conftest.er1
 
8966
  ac_status=$?
 
8967
  grep -v '^ *+' conftest.er1 >conftest.err
 
8968
  rm -f conftest.er1
 
8969
  cat conftest.err >&5
 
8970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8971
  (exit $ac_status); } && {
 
8972
         test -z "$ac_c_werror_flag" ||
 
8973
         test ! -s conftest.err
 
8974
       } && test -s conftest.$ac_objext; then
 
8975
  { echo "$as_me:$LINENO: result: yes" >&5
 
8976
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
3053
8977
#define HAVE_STRUCT_IP_CSUM 1
3054
 
EOF
 
8978
_ACEOF
3055
8979
 
3056
8980
else
3057
 
  echo "configure: failed program was:" >&5
3058
 
  cat conftest.$ac_ext >&5
3059
 
  rm -rf conftest*
3060
 
  echo "$ac_t""no" 1>&6;
 
8981
  echo "$as_me: failed program was:" >&5
 
8982
sed 's/^/| /' conftest.$ac_ext >&5
 
8983
 
 
8984
        { echo "$as_me:$LINENO: result: no" >&5
 
8985
echo "${ECHO_T}no" >&6; };
3061
8986
fi
3062
 
rm -f conftest*
3063
 
 
3064
 
echo $ac_n "checking struct ip""... $ac_c" 1>&6
3065
 
echo "configure:3066: checking struct ip" >&5 
3066
 
cat > conftest.$ac_ext <<EOF
3067
 
#line 3068 "configure"
3068
 
#include "confdefs.h"
 
8987
 
 
8988
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8989
 
 
8990
{ echo "$as_me:$LINENO: checking struct ip" >&5
 
8991
echo $ECHO_N "checking struct ip... $ECHO_C" >&6; }
 
8992
cat >conftest.$ac_ext <<_ACEOF
 
8993
/* confdefs.h.  */
 
8994
_ACEOF
 
8995
cat confdefs.h >>conftest.$ac_ext
 
8996
cat >>conftest.$ac_ext <<_ACEOF
 
8997
/* end confdefs.h.  */
3069
8998
#include <sys/types.h>
3070
8999
#include <netinet/in.h>
3071
9000
#include <netinet/in_systm.h>
3072
9001
#include <netinet/ip.h>
3073
 
int main() {
 
9002
int
 
9003
main ()
 
9004
{
3074
9005
struct ip ip;
3075
 
; return 0; }
3076
 
EOF
3077
 
if { (eval echo configure:3078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3078
 
  rm -rf conftest*
3079
 
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
9006
  ;
 
9007
  return 0;
 
9008
}
 
9009
_ACEOF
 
9010
rm -f conftest.$ac_objext
 
9011
if { (ac_try="$ac_compile"
 
9012
case "(($ac_try" in
 
9013
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9014
  *) ac_try_echo=$ac_try;;
 
9015
esac
 
9016
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9017
  (eval "$ac_compile") 2>conftest.er1
 
9018
  ac_status=$?
 
9019
  grep -v '^ *+' conftest.er1 >conftest.err
 
9020
  rm -f conftest.er1
 
9021
  cat conftest.err >&5
 
9022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9023
  (exit $ac_status); } && {
 
9024
         test -z "$ac_c_werror_flag" ||
 
9025
         test ! -s conftest.err
 
9026
       } && test -s conftest.$ac_objext; then
 
9027
  { echo "$as_me:$LINENO: result: yes" >&5
 
9028
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
3080
9029
#define HAVE_STRUCT_IP 1
3081
 
EOF
 
9030
_ACEOF
3082
9031
 
3083
9032
else
3084
 
  echo "configure: failed program was:" >&5
3085
 
  cat conftest.$ac_ext >&5
3086
 
  rm -rf conftest*
3087
 
  echo "$ac_t""no" 1>&6
 
9033
  echo "$as_me: failed program was:" >&5
 
9034
sed 's/^/| /' conftest.$ac_ext >&5
 
9035
 
 
9036
        { echo "$as_me:$LINENO: result: no" >&5
 
9037
echo "${ECHO_T}no" >&6; }
3088
9038
fi
3089
 
rm -f conftest*
3090
 
 
3091
 
echo $ac_n "checking struct icmp""... $ac_c" 1>&6
3092
 
echo "configure:3093: checking struct icmp" >&5
3093
 
cat > conftest.$ac_ext <<EOF
3094
 
#line 3095 "configure"
3095
 
#include "confdefs.h"
 
9039
 
 
9040
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9041
 
 
9042
{ echo "$as_me:$LINENO: checking struct icmp" >&5
 
9043
echo $ECHO_N "checking struct icmp... $ECHO_C" >&6; }
 
9044
cat >conftest.$ac_ext <<_ACEOF
 
9045
/* confdefs.h.  */
 
9046
_ACEOF
 
9047
cat confdefs.h >>conftest.$ac_ext
 
9048
cat >>conftest.$ac_ext <<_ACEOF
 
9049
/* end confdefs.h.  */
3096
9050
#include <sys/types.h>
3097
9051
#include <netinet/in.h>
3098
9052
#include <netinet/in_systm.h>
3099
9053
#include <netinet/ip.h>
3100
9054
#include <netinet/ip_icmp.h>
3101
 
int main() {
 
9055
int
 
9056
main ()
 
9057
{
3102
9058
struct icmp icmp;
3103
 
; return 0; }
3104
 
EOF
3105
 
if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3106
 
  rm -rf conftest*
3107
 
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
9059
  ;
 
9060
  return 0;
 
9061
}
 
9062
_ACEOF
 
9063
rm -f conftest.$ac_objext
 
9064
if { (ac_try="$ac_compile"
 
9065
case "(($ac_try" in
 
9066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9067
  *) ac_try_echo=$ac_try;;
 
9068
esac
 
9069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9070
  (eval "$ac_compile") 2>conftest.er1
 
9071
  ac_status=$?
 
9072
  grep -v '^ *+' conftest.er1 >conftest.err
 
9073
  rm -f conftest.er1
 
9074
  cat conftest.err >&5
 
9075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9076
  (exit $ac_status); } && {
 
9077
         test -z "$ac_c_werror_flag" ||
 
9078
         test ! -s conftest.err
 
9079
       } && test -s conftest.$ac_objext; then
 
9080
  { echo "$as_me:$LINENO: result: yes" >&5
 
9081
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
3108
9082
#define HAVE_STRUCT_ICMP 1
3109
 
EOF
 
9083
_ACEOF
3110
9084
 
3111
9085
else
3112
 
  echo "configure: failed program was:" >&5
3113
 
  cat conftest.$ac_ext >&5
3114
 
  rm -rf conftest*
3115
 
  echo "$ac_t""no" 1>&6
 
9086
  echo "$as_me: failed program was:" >&5
 
9087
sed 's/^/| /' conftest.$ac_ext >&5
 
9088
 
 
9089
        { echo "$as_me:$LINENO: result: no" >&5
 
9090
echo "${ECHO_T}no" >&6; }
3116
9091
fi
3117
 
rm -f conftest*
3118
 
 
3119
 
echo $ac_n "checking struct udphdr""... $ac_c" 1>&6
3120
 
echo "configure:3121: checking struct udphdr" >&5
3121
 
cat > conftest.$ac_ext <<EOF
3122
 
#line 3123 "configure"
3123
 
#include "confdefs.h"
 
9092
 
 
9093
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9094
 
 
9095
{ echo "$as_me:$LINENO: checking struct udphdr" >&5
 
9096
echo $ECHO_N "checking struct udphdr... $ECHO_C" >&6; }
 
9097
cat >conftest.$ac_ext <<_ACEOF
 
9098
/* confdefs.h.  */
 
9099
_ACEOF
 
9100
cat confdefs.h >>conftest.$ac_ext
 
9101
cat >>conftest.$ac_ext <<_ACEOF
 
9102
/* end confdefs.h.  */
3124
9103
#include <sys/types.h>
3125
9104
#include <netinet/in.h>
3126
9105
#include <netinet/in_systm.h>
3127
9106
#include <netinet/ip.h>
3128
9107
#include <netinet/udp.h>
3129
 
int main() {
 
9108
int
 
9109
main ()
 
9110
{
3130
9111
struct udphdr udp;
3131
 
; return 0; }
3132
 
EOF
3133
 
if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3134
 
  rm -rf conftest*
3135
 
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
9112
  ;
 
9113
  return 0;
 
9114
}
 
9115
_ACEOF
 
9116
rm -f conftest.$ac_objext
 
9117
if { (ac_try="$ac_compile"
 
9118
case "(($ac_try" in
 
9119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9120
  *) ac_try_echo=$ac_try;;
 
9121
esac
 
9122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9123
  (eval "$ac_compile") 2>conftest.er1
 
9124
  ac_status=$?
 
9125
  grep -v '^ *+' conftest.er1 >conftest.err
 
9126
  rm -f conftest.er1
 
9127
  cat conftest.err >&5
 
9128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9129
  (exit $ac_status); } && {
 
9130
         test -z "$ac_c_werror_flag" ||
 
9131
         test ! -s conftest.err
 
9132
       } && test -s conftest.$ac_objext; then
 
9133
  { echo "$as_me:$LINENO: result: yes" >&5
 
9134
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
3136
9135
#define HAVE_STRUCT_UDPHDR 1
3137
 
EOF
 
9136
_ACEOF
3138
9137
 
3139
9138
else
3140
 
  echo "configure: failed program was:" >&5
3141
 
  cat conftest.$ac_ext >&5
3142
 
  rm -rf conftest*
3143
 
  echo "$ac_t""no" 1>&6
 
9139
  echo "$as_me: failed program was:" >&5
 
9140
sed 's/^/| /' conftest.$ac_ext >&5
 
9141
 
 
9142
        { echo "$as_me:$LINENO: result: no" >&5
 
9143
echo "${ECHO_T}no" >&6; }
3144
9144
fi
3145
 
rm -f conftest*
3146
 
 
3147
 
echo $ac_n "checking BSD struct udphdr""... $ac_c" 1>&6
3148
 
echo "configure:3149: checking BSD struct udphdr" >&5
3149
 
cat > conftest.$ac_ext <<EOF
3150
 
#line 3151 "configure"
3151
 
#include "confdefs.h"
 
9145
 
 
9146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9147
 
 
9148
{ echo "$as_me:$LINENO: checking BSD struct udphdr" >&5
 
9149
echo $ECHO_N "checking BSD struct udphdr... $ECHO_C" >&6; }
 
9150
cat >conftest.$ac_ext <<_ACEOF
 
9151
/* confdefs.h.  */
 
9152
_ACEOF
 
9153
cat confdefs.h >>conftest.$ac_ext
 
9154
cat >>conftest.$ac_ext <<_ACEOF
 
9155
/* end confdefs.h.  */
3152
9156
#ifdef __linux__
3153
9157
#define __BSD_SOURCE
3154
9158
#define _BSD_SOURCE
3159
9163
#include <netinet/in_systm.h>
3160
9164
#include <netinet/ip.h>
3161
9165
#include <netinet/udp.h>
3162
 
int main() {
 
9166
int
 
9167
main ()
 
9168
{
3163
9169
struct udphdr udp;udp.uh_dport = 0;
3164
 
; return 0; }
3165
 
EOF
3166
 
if { (eval echo configure:3167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3167
 
  rm -rf conftest*
3168
 
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
9170
  ;
 
9171
  return 0;
 
9172
}
 
9173
_ACEOF
 
9174
rm -f conftest.$ac_objext
 
9175
if { (ac_try="$ac_compile"
 
9176
case "(($ac_try" in
 
9177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9178
  *) ac_try_echo=$ac_try;;
 
9179
esac
 
9180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9181
  (eval "$ac_compile") 2>conftest.er1
 
9182
  ac_status=$?
 
9183
  grep -v '^ *+' conftest.er1 >conftest.err
 
9184
  rm -f conftest.er1
 
9185
  cat conftest.err >&5
 
9186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9187
  (exit $ac_status); } && {
 
9188
         test -z "$ac_c_werror_flag" ||
 
9189
         test ! -s conftest.err
 
9190
       } && test -s conftest.$ac_objext; then
 
9191
  { echo "$as_me:$LINENO: result: yes" >&5
 
9192
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
3169
9193
#define HAVE_BSD_STRUCT_UDPHDR 1
3170
 
EOF
 
9194
_ACEOF
3171
9195
 
3172
9196
else
3173
 
  echo "configure: failed program was:" >&5
3174
 
  cat conftest.$ac_ext >&5
3175
 
  rm -rf conftest*
3176
 
  echo "$ac_t""no" 1>&6
 
9197
  echo "$as_me: failed program was:" >&5
 
9198
sed 's/^/| /' conftest.$ac_ext >&5
 
9199
 
 
9200
        { echo "$as_me:$LINENO: result: no" >&5
 
9201
echo "${ECHO_T}no" >&6; }
3177
9202
fi
3178
 
rm -f conftest*
3179
 
 
3180
 
 
3181
 
echo $ac_n "checking struct tcphdr""... $ac_c" 1>&6
3182
 
echo "configure:3183: checking struct tcphdr" >&5
3183
 
cat > conftest.$ac_ext <<EOF
3184
 
#line 3185 "configure"
3185
 
#include "confdefs.h"
 
9203
 
 
9204
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9205
 
 
9206
 
 
9207
{ echo "$as_me:$LINENO: checking struct tcphdr" >&5
 
9208
echo $ECHO_N "checking struct tcphdr... $ECHO_C" >&6; }
 
9209
cat >conftest.$ac_ext <<_ACEOF
 
9210
/* confdefs.h.  */
 
9211
_ACEOF
 
9212
cat confdefs.h >>conftest.$ac_ext
 
9213
cat >>conftest.$ac_ext <<_ACEOF
 
9214
/* end confdefs.h.  */
3186
9215
#include <sys/types.h>
3187
9216
#include <netinet/in.h>
3188
9217
#include <netinet/in_systm.h>
3189
9218
#include <netinet/ip.h>
3190
9219
#include <netinet/tcp.h>
3191
 
int main() {
 
9220
int
 
9221
main ()
 
9222
{
3192
9223
struct tcphdr tcp;
3193
 
; return 0; }
3194
 
EOF
3195
 
if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196
 
  rm -rf conftest*
3197
 
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
9224
  ;
 
9225
  return 0;
 
9226
}
 
9227
_ACEOF
 
9228
rm -f conftest.$ac_objext
 
9229
if { (ac_try="$ac_compile"
 
9230
case "(($ac_try" in
 
9231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9232
  *) ac_try_echo=$ac_try;;
 
9233
esac
 
9234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9235
  (eval "$ac_compile") 2>conftest.er1
 
9236
  ac_status=$?
 
9237
  grep -v '^ *+' conftest.er1 >conftest.err
 
9238
  rm -f conftest.er1
 
9239
  cat conftest.err >&5
 
9240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9241
  (exit $ac_status); } && {
 
9242
         test -z "$ac_c_werror_flag" ||
 
9243
         test ! -s conftest.err
 
9244
       } && test -s conftest.$ac_objext; then
 
9245
  { echo "$as_me:$LINENO: result: yes" >&5
 
9246
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
3198
9247
#define HAVE_STRUCT_TCPHDR 1
3199
 
EOF
 
9248
_ACEOF
3200
9249
 
3201
9250
else
3202
 
  echo "configure: failed program was:" >&5
3203
 
  cat conftest.$ac_ext >&5
3204
 
  rm -rf conftest*
3205
 
  echo "$ac_t""no" 1>&6
 
9251
  echo "$as_me: failed program was:" >&5
 
9252
sed 's/^/| /' conftest.$ac_ext >&5
 
9253
 
 
9254
        { echo "$as_me:$LINENO: result: no" >&5
 
9255
echo "${ECHO_T}no" >&6; }
3206
9256
fi
3207
 
rm -f conftest*
3208
 
 
3209
 
echo $ac_n "checking struct tcphdr has th_off""... $ac_c" 1>&6
3210
 
echo "configure:3211: checking struct tcphdr has th_off" >&5
3211
 
cat > conftest.$ac_ext <<EOF
3212
 
#line 3213 "configure"
3213
 
#include "confdefs.h"
 
9257
 
 
9258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9259
 
 
9260
{ echo "$as_me:$LINENO: checking struct tcphdr has th_off" >&5
 
9261
echo $ECHO_N "checking struct tcphdr has th_off... $ECHO_C" >&6; }
 
9262
cat >conftest.$ac_ext <<_ACEOF
 
9263
/* confdefs.h.  */
 
9264
_ACEOF
 
9265
cat confdefs.h >>conftest.$ac_ext
 
9266
cat >>conftest.$ac_ext <<_ACEOF
 
9267
/* end confdefs.h.  */
3214
9268
#include <sys/types.h>
3215
9269
#ifdef __linux__
3216
9270
#define __FAVOR_BSD
3219
9273
#include <netinet/in_systm.h>
3220
9274
#include <netinet/ip.h>
3221
9275
#include <netinet/tcp.h>
3222
 
int main() {
 
9276
int
 
9277
main ()
 
9278
{
3223
9279
struct tcphdr tcp;tcp.th_off = 0;
3224
 
; return 0; }
3225
 
EOF
3226
 
if { (eval echo configure:3227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3227
 
  rm -rf conftest*
3228
 
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
9280
  ;
 
9281
  return 0;
 
9282
}
 
9283
_ACEOF
 
9284
rm -f conftest.$ac_objext
 
9285
if { (ac_try="$ac_compile"
 
9286
case "(($ac_try" in
 
9287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9288
  *) ac_try_echo=$ac_try;;
 
9289
esac
 
9290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9291
  (eval "$ac_compile") 2>conftest.er1
 
9292
  ac_status=$?
 
9293
  grep -v '^ *+' conftest.er1 >conftest.err
 
9294
  rm -f conftest.er1
 
9295
  cat conftest.err >&5
 
9296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9297
  (exit $ac_status); } && {
 
9298
         test -z "$ac_c_werror_flag" ||
 
9299
         test ! -s conftest.err
 
9300
       } && test -s conftest.$ac_objext; then
 
9301
  { echo "$as_me:$LINENO: result: yes" >&5
 
9302
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
3229
9303
#define HAVE_TCPHDR_TH_OFF 1
3230
 
EOF
 
9304
_ACEOF
3231
9305
 
3232
9306
else
3233
 
  echo "configure: failed program was:" >&5
3234
 
  cat conftest.$ac_ext >&5
3235
 
  rm -rf conftest*
3236
 
  echo "$ac_t""no" 1>&6
 
9307
  echo "$as_me: failed program was:" >&5
 
9308
sed 's/^/| /' conftest.$ac_ext >&5
 
9309
 
 
9310
        { echo "$as_me:$LINENO: result: no" >&5
 
9311
echo "${ECHO_T}no" >&6; }
3237
9312
fi
3238
 
rm -f conftest*
3239
 
 
3240
 
echo $ac_n "checking struct tcphdr has th_x2_off""... $ac_c" 1>&6
3241
 
echo "configure:3242: checking struct tcphdr has th_x2_off" >&5
3242
 
cat > conftest.$ac_ext <<EOF
3243
 
#line 3244 "configure"
3244
 
#include "confdefs.h"
 
9313
 
 
9314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9315
 
 
9316
{ echo "$as_me:$LINENO: checking struct tcphdr has th_x2_off" >&5
 
9317
echo $ECHO_N "checking struct tcphdr has th_x2_off... $ECHO_C" >&6; }
 
9318
cat >conftest.$ac_ext <<_ACEOF
 
9319
/* confdefs.h.  */
 
9320
_ACEOF
 
9321
cat confdefs.h >>conftest.$ac_ext
 
9322
cat >>conftest.$ac_ext <<_ACEOF
 
9323
/* end confdefs.h.  */
3245
9324
#include <sys/types.h>
3246
9325
#ifdef __linux__
3247
9326
#define __FAVOR_BSD
3250
9329
#include <netinet/in_systm.h>
3251
9330
#include <netinet/ip.h>
3252
9331
#include <netinet/tcp.h>
3253
 
int main() {
 
9332
int
 
9333
main ()
 
9334
{
3254
9335
struct tcphdr tcp;tcp.th_x2_off = 0;
3255
 
; return 0; }
3256
 
EOF
3257
 
if { (eval echo configure:3258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258
 
  rm -rf conftest*
3259
 
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
9336
  ;
 
9337
  return 0;
 
9338
}
 
9339
_ACEOF
 
9340
rm -f conftest.$ac_objext
 
9341
if { (ac_try="$ac_compile"
 
9342
case "(($ac_try" in
 
9343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9344
  *) ac_try_echo=$ac_try;;
 
9345
esac
 
9346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9347
  (eval "$ac_compile") 2>conftest.er1
 
9348
  ac_status=$?
 
9349
  grep -v '^ *+' conftest.er1 >conftest.err
 
9350
  rm -f conftest.er1
 
9351
  cat conftest.err >&5
 
9352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9353
  (exit $ac_status); } && {
 
9354
         test -z "$ac_c_werror_flag" ||
 
9355
         test ! -s conftest.err
 
9356
       } && test -s conftest.$ac_objext; then
 
9357
  { echo "$as_me:$LINENO: result: yes" >&5
 
9358
echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
3260
9359
#define HAVE_TCPHDR_TH_X2_OFF 1
3261
 
EOF
 
9360
_ACEOF
3262
9361
 
3263
9362
else
3264
 
  echo "configure: failed program was:" >&5
3265
 
  cat conftest.$ac_ext >&5
3266
 
  rm -rf conftest*
3267
 
  echo "$ac_t""no" 1>&6
 
9363
  echo "$as_me: failed program was:" >&5
 
9364
sed 's/^/| /' conftest.$ac_ext >&5
 
9365
 
 
9366
        { echo "$as_me:$LINENO: result: no" >&5
 
9367
echo "${ECHO_T}no" >&6; }
3268
9368
fi
3269
 
rm -f conftest*
3270
 
 
3271
 
 
3272
 
 
3273
 
# If we find X, set shell vars x_includes and x_libraries to the
3274
 
# paths, otherwise set no_x=yes.
3275
 
# Uses ac_ vars as temps to allow command line to override cache and checks.
3276
 
# --without-x overrides everything else, but does not touch the cache.
3277
 
echo $ac_n "checking for X""... $ac_c" 1>&6
3278
 
echo "configure:3279: checking for X" >&5
3279
 
 
3280
 
# Check whether --with-x or --without-x was given.
 
9369
 
 
9370
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9371
 
 
9372
 
 
9373
 
 
9374
{ echo "$as_me:$LINENO: checking for X" >&5
 
9375
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
 
9376
 
 
9377
 
 
9378
# Check whether --with-x was given.
3281
9379
if test "${with_x+set}" = set; then
3282
 
  withval="$with_x"
3283
 
  :
 
9380
  withval=$with_x;
3284
9381
fi
3285
9382
 
3286
9383
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3288
9385
  # The user explicitly disabled X.
3289
9386
  have_x=disabled
3290
9387
else
3291
 
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3292
 
    # Both variables are already set.
3293
 
    have_x=yes
3294
 
  else
3295
 
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3296
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9388
  case $x_includes,$x_libraries in #(
 
9389
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
 
9390
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
 
9391
   { (exit 1); exit 1; }; };; #(
 
9392
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
 
9393
  echo $ECHO_N "(cached) $ECHO_C" >&6
3297
9394
else
3298
9395
  # One or both of the vars are not set, and there is no cached value.
3299
 
ac_x_includes=NO ac_x_libraries=NO
3300
 
rm -fr conftestdir
3301
 
if mkdir conftestdir; then
3302
 
  cd conftestdir
3303
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3304
 
  cat > Imakefile <<'EOF'
3305
 
acfindx:
3306
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3307
 
EOF
3308
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
9396
ac_x_includes=no ac_x_libraries=no
 
9397
rm -f -r conftest.dir
 
9398
if mkdir conftest.dir; then
 
9399
  cd conftest.dir
 
9400
  cat >Imakefile <<'_ACEOF'
 
9401
incroot:
 
9402
        @echo incroot='${INCROOT}'
 
9403
usrlibdir:
 
9404
        @echo usrlibdir='${USRLIBDIR}'
 
9405
libdir:
 
9406
        @echo libdir='${LIBDIR}'
 
9407
_ACEOF
 
9408
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3309
9409
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3310
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
9410
    for ac_var in incroot usrlibdir libdir; do
 
9411
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 
9412
    done
3311
9413
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3312
9414
    for ac_extension in a so sl; do
3313
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3314
 
        test -f $ac_im_libdir/libX11.$ac_extension; then
3315
 
        ac_im_usrlibdir=$ac_im_libdir; break
 
9415
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 
9416
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
 
9417
        ac_im_usrlibdir=$ac_im_libdir; break
3316
9418
      fi
3317
9419
    done
3318
9420
    # Screen out bogus values from the imake configuration.  They are
3319
9421
    # bogus both because they are the default anyway, and because
3320
9422
    # using them would break gcc on systems where it needs fixed includes.
3321
 
    case "$ac_im_incroot" in
3322
 
        /usr/include) ;;
3323
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
 
9423
    case $ac_im_incroot in
 
9424
        /usr/include) ac_x_includes= ;;
 
9425
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3324
9426
    esac
3325
 
    case "$ac_im_usrlibdir" in
 
9427
    case $ac_im_usrlibdir in
3326
9428
        /usr/lib | /lib) ;;
3327
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
 
9429
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3328
9430
    esac
3329
9431
  fi
3330
9432
  cd ..
3331
 
  rm -fr conftestdir
 
9433
  rm -f -r conftest.dir
3332
9434
fi
3333
9435
 
3334
 
if test "$ac_x_includes" = NO; then
3335
 
  # Guess where to find include files, by looking for this one X11 .h file.
3336
 
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3337
 
 
 
9436
# Standard set of common directories for X headers.
 
9437
# Check X11 before X11Rn because it is often a symlink to the current release.
 
9438
ac_x_header_dirs='
 
9439
/usr/X11/include
 
9440
/usr/X11R6/include
 
9441
/usr/X11R5/include
 
9442
/usr/X11R4/include
 
9443
 
 
9444
/usr/include/X11
 
9445
/usr/include/X11R6
 
9446
/usr/include/X11R5
 
9447
/usr/include/X11R4
 
9448
 
 
9449
/usr/local/X11/include
 
9450
/usr/local/X11R6/include
 
9451
/usr/local/X11R5/include
 
9452
/usr/local/X11R4/include
 
9453
 
 
9454
/usr/local/include/X11
 
9455
/usr/local/include/X11R6
 
9456
/usr/local/include/X11R5
 
9457
/usr/local/include/X11R4
 
9458
 
 
9459
/usr/X386/include
 
9460
/usr/x386/include
 
9461
/usr/XFree86/include/X11
 
9462
 
 
9463
/usr/include
 
9464
/usr/local/include
 
9465
/usr/unsupported/include
 
9466
/usr/athena/include
 
9467
/usr/local/x11r5/include
 
9468
/usr/lpp/Xamples/include
 
9469
 
 
9470
/usr/openwin/include
 
9471
/usr/openwin/share/include'
 
9472
 
 
9473
if test "$ac_x_includes" = no; then
 
9474
  # Guess where to find include files, by looking for Xlib.h.
3338
9475
  # First, try using that file with no special directory specified.
3339
 
cat > conftest.$ac_ext <<EOF
3340
 
#line 3341 "configure"
3341
 
#include "confdefs.h"
3342
 
#include <$x_direct_test_include>
3343
 
EOF
3344
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3345
 
{ (eval echo configure:3346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3346
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3347
 
if test -z "$ac_err"; then
3348
 
  rm -rf conftest*
 
9476
  cat >conftest.$ac_ext <<_ACEOF
 
9477
/* confdefs.h.  */
 
9478
_ACEOF
 
9479
cat confdefs.h >>conftest.$ac_ext
 
9480
cat >>conftest.$ac_ext <<_ACEOF
 
9481
/* end confdefs.h.  */
 
9482
#include <X11/Xlib.h>
 
9483
_ACEOF
 
9484
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
9485
case "(($ac_try" in
 
9486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9487
  *) ac_try_echo=$ac_try;;
 
9488
esac
 
9489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9490
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
9491
  ac_status=$?
 
9492
  grep -v '^ *+' conftest.er1 >conftest.err
 
9493
  rm -f conftest.er1
 
9494
  cat conftest.err >&5
 
9495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9496
  (exit $ac_status); } >/dev/null && {
 
9497
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
9498
         test ! -s conftest.err
 
9499
       }; then
3349
9500
  # We can compile using X headers with no special include directory.
3350
9501
ac_x_includes=
3351
9502
else
3352
 
  echo "$ac_err" >&5
3353
 
  echo "configure: failed program was:" >&5
3354
 
  cat conftest.$ac_ext >&5
3355
 
  rm -rf conftest*
3356
 
  # Look for the header file in a standard set of common directories.
3357
 
# Check X11 before X11Rn because it is often a symlink to the current release.
3358
 
  for ac_dir in               \
3359
 
    /usr/X11/include          \
3360
 
    /usr/X11R6/include        \
3361
 
    /usr/X11R5/include        \
3362
 
    /usr/X11R4/include        \
3363
 
                              \
3364
 
    /usr/include/X11          \
3365
 
    /usr/include/X11R6        \
3366
 
    /usr/include/X11R5        \
3367
 
    /usr/include/X11R4        \
3368
 
                              \
3369
 
    /usr/local/X11/include    \
3370
 
    /usr/local/X11R6/include  \
3371
 
    /usr/local/X11R5/include  \
3372
 
    /usr/local/X11R4/include  \
3373
 
                              \
3374
 
    /usr/local/include/X11    \
3375
 
    /usr/local/include/X11R6  \
3376
 
    /usr/local/include/X11R5  \
3377
 
    /usr/local/include/X11R4  \
3378
 
                              \
3379
 
    /usr/X386/include         \
3380
 
    /usr/x386/include         \
3381
 
    /usr/XFree86/include/X11  \
3382
 
                              \
3383
 
    /usr/include              \
3384
 
    /usr/local/include        \
3385
 
    /usr/unsupported/include  \
3386
 
    /usr/athena/include       \
3387
 
    /usr/local/x11r5/include  \
3388
 
    /usr/lpp/Xamples/include  \
3389
 
                              \
3390
 
    /usr/openwin/include      \
3391
 
    /usr/openwin/share/include \
3392
 
    ; \
3393
 
  do
3394
 
    if test -r "$ac_dir/$x_direct_test_include"; then
3395
 
      ac_x_includes=$ac_dir
3396
 
      break
3397
 
    fi
3398
 
  done
 
9503
  echo "$as_me: failed program was:" >&5
 
9504
sed 's/^/| /' conftest.$ac_ext >&5
 
9505
 
 
9506
  for ac_dir in $ac_x_header_dirs; do
 
9507
  if test -r "$ac_dir/X11/Xlib.h"; then
 
9508
    ac_x_includes=$ac_dir
 
9509
    break
 
9510
  fi
 
9511
done
3399
9512
fi
3400
 
rm -f conftest*
3401
 
fi # $ac_x_includes = NO
3402
 
 
3403
 
if test "$ac_x_libraries" = NO; then
 
9513
 
 
9514
rm -f conftest.err conftest.$ac_ext
 
9515
fi # $ac_x_includes = no
 
9516
 
 
9517
if test "$ac_x_libraries" = no; then
3404
9518
  # Check for the libraries.
3405
 
 
3406
 
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
3407
 
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3408
 
 
3409
9519
  # See if we find them without any special options.
3410
9520
  # Don't add to $LIBS permanently.
3411
 
  ac_save_LIBS="$LIBS"
3412
 
  LIBS="-l$x_direct_test_library $LIBS"
3413
 
cat > conftest.$ac_ext <<EOF
3414
 
#line 3415 "configure"
3415
 
#include "confdefs.h"
3416
 
 
3417
 
int main() {
3418
 
${x_direct_test_function}()
3419
 
; return 0; }
3420
 
EOF
3421
 
if { (eval echo configure:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3422
 
  rm -rf conftest*
3423
 
  LIBS="$ac_save_LIBS"
 
9521
  ac_save_LIBS=$LIBS
 
9522
  LIBS="-lX11 $LIBS"
 
9523
  cat >conftest.$ac_ext <<_ACEOF
 
9524
/* confdefs.h.  */
 
9525
_ACEOF
 
9526
cat confdefs.h >>conftest.$ac_ext
 
9527
cat >>conftest.$ac_ext <<_ACEOF
 
9528
/* end confdefs.h.  */
 
9529
#include <X11/Xlib.h>
 
9530
int
 
9531
main ()
 
9532
{
 
9533
XrmInitialize ()
 
9534
  ;
 
9535
  return 0;
 
9536
}
 
9537
_ACEOF
 
9538
rm -f conftest.$ac_objext conftest$ac_exeext
 
9539
if { (ac_try="$ac_link"
 
9540
case "(($ac_try" in
 
9541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9542
  *) ac_try_echo=$ac_try;;
 
9543
esac
 
9544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9545
  (eval "$ac_link") 2>conftest.er1
 
9546
  ac_status=$?
 
9547
  grep -v '^ *+' conftest.er1 >conftest.err
 
9548
  rm -f conftest.er1
 
9549
  cat conftest.err >&5
 
9550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9551
  (exit $ac_status); } && {
 
9552
         test -z "$ac_c_werror_flag" ||
 
9553
         test ! -s conftest.err
 
9554
       } && test -s conftest$ac_exeext &&
 
9555
       $as_test_x conftest$ac_exeext; then
 
9556
  LIBS=$ac_save_LIBS
3424
9557
# We can link X programs with no special library path.
3425
9558
ac_x_libraries=
3426
9559
else
3427
 
  echo "configure: failed program was:" >&5
3428
 
  cat conftest.$ac_ext >&5
3429
 
  rm -rf conftest*
3430
 
  LIBS="$ac_save_LIBS"
3431
 
# First see if replacing the include by lib works.
3432
 
# Check X11 before X11Rn because it is often a symlink to the current release.
3433
 
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3434
 
    /usr/X11/lib          \
3435
 
    /usr/X11R6/lib        \
3436
 
    /usr/X11R5/lib        \
3437
 
    /usr/X11R4/lib        \
3438
 
                          \
3439
 
    /usr/lib/X11          \
3440
 
    /usr/lib/X11R6        \
3441
 
    /usr/lib/X11R5        \
3442
 
    /usr/lib/X11R4        \
3443
 
                          \
3444
 
    /usr/local/X11/lib    \
3445
 
    /usr/local/X11R6/lib  \
3446
 
    /usr/local/X11R5/lib  \
3447
 
    /usr/local/X11R4/lib  \
3448
 
                          \
3449
 
    /usr/local/lib/X11    \
3450
 
    /usr/local/lib/X11R6  \
3451
 
    /usr/local/lib/X11R5  \
3452
 
    /usr/local/lib/X11R4  \
3453
 
                          \
3454
 
    /usr/X386/lib         \
3455
 
    /usr/x386/lib         \
3456
 
    /usr/XFree86/lib/X11  \
3457
 
                          \
3458
 
    /usr/lib              \
3459
 
    /usr/local/lib        \
3460
 
    /usr/unsupported/lib  \
3461
 
    /usr/athena/lib       \
3462
 
    /usr/local/x11r5/lib  \
3463
 
    /usr/lpp/Xamples/lib  \
3464
 
    /lib/usr/lib/X11      \
3465
 
                          \
3466
 
    /usr/openwin/lib      \
3467
 
    /usr/openwin/share/lib \
3468
 
    ; \
 
9560
  echo "$as_me: failed program was:" >&5
 
9561
sed 's/^/| /' conftest.$ac_ext >&5
 
9562
 
 
9563
        LIBS=$ac_save_LIBS
 
9564
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3469
9565
do
 
9566
  # Don't even attempt the hair of trying to link an X program!
3470
9567
  for ac_extension in a so sl; do
3471
 
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
 
9568
    if test -r "$ac_dir/libX11.$ac_extension"; then
3472
9569
      ac_x_libraries=$ac_dir
3473
9570
      break 2
3474
9571
    fi
3475
9572
  done
3476
9573
done
3477
9574
fi
3478
 
rm -f conftest*
3479
 
fi # $ac_x_libraries = NO
3480
 
 
3481
 
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3482
 
  # Didn't find X anywhere.  Cache the known absence of X.
3483
 
  ac_cv_have_x="have_x=no"
3484
 
else
3485
 
  # Record where we found X for the cache.
3486
 
  ac_cv_have_x="have_x=yes \
3487
 
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3488
 
fi
3489
 
fi
3490
 
  fi
 
9575
 
 
9576
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9577
      conftest$ac_exeext conftest.$ac_ext
 
9578
fi # $ac_x_libraries = no
 
9579
 
 
9580
case $ac_x_includes,$ac_x_libraries in #(
 
9581
  no,* | *,no | *\'*)
 
9582
    # Didn't find X, or a directory has "'" in its name.
 
9583
    ac_cv_have_x="have_x=no";; #(
 
9584
  *)
 
9585
    # Record where we found X for the cache.
 
9586
    ac_cv_have_x="have_x=yes\
 
9587
        ac_x_includes='$ac_x_includes'\
 
9588
        ac_x_libraries='$ac_x_libraries'"
 
9589
esac
 
9590
fi
 
9591
;; #(
 
9592
    *) have_x=yes;;
 
9593
  esac
3491
9594
  eval "$ac_cv_have_x"
3492
9595
fi # $with_x != no
3493
9596
 
3494
9597
if test "$have_x" != yes; then
3495
 
  echo "$ac_t""$have_x" 1>&6
 
9598
  { echo "$as_me:$LINENO: result: $have_x" >&5
 
9599
echo "${ECHO_T}$have_x" >&6; }
3496
9600
  no_x=yes
3497
9601
else
3498
9602
  # If each of the values was on the command line, it overrides each guess.
3499
9603
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3500
9604
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3501
9605
  # Update the cache value to reflect the command line values.
3502
 
  ac_cv_have_x="have_x=yes \
3503
 
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3504
 
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
 
9606
  ac_cv_have_x="have_x=yes\
 
9607
        ac_x_includes='$x_includes'\
 
9608
        ac_x_libraries='$x_libraries'"
 
9609
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
9610
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3505
9611
fi
3506
9612
 
3507
9613
if test "$no_x" = yes; then
3508
9614
  # Not all programs may use this symbol, but it does not hurt to define it.
3509
 
  cat >> confdefs.h <<\EOF
 
9615
 
 
9616
cat >>confdefs.h <<\_ACEOF
3510
9617
#define X_DISPLAY_MISSING 1
3511
 
EOF
 
9618
_ACEOF
3512
9619
 
3513
9620
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3514
9621
else
3521
9628
    X_LIBS="$X_LIBS -L$x_libraries"
3522
9629
    # For Solaris; some versions of Sun CC require a space after -R and
3523
9630
    # others require no space.  Words are not sufficient . . . .
3524
 
    case "`(uname -sr) 2>/dev/null`" in
3525
 
    "SunOS 5"*)
3526
 
      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3527
 
echo "configure:3528: checking whether -R must be followed by a space" >&5
3528
 
      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3529
 
      cat > conftest.$ac_ext <<EOF
3530
 
#line 3531 "configure"
3531
 
#include "confdefs.h"
3532
 
 
3533
 
int main() {
3534
 
 
3535
 
; return 0; }
3536
 
EOF
3537
 
if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3538
 
  rm -rf conftest*
3539
 
  ac_R_nospace=yes
 
9631
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
9632
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
 
9633
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
9634
    ac_xsave_c_werror_flag=$ac_c_werror_flag
 
9635
    ac_c_werror_flag=yes
 
9636
    cat >conftest.$ac_ext <<_ACEOF
 
9637
/* confdefs.h.  */
 
9638
_ACEOF
 
9639
cat confdefs.h >>conftest.$ac_ext
 
9640
cat >>conftest.$ac_ext <<_ACEOF
 
9641
/* end confdefs.h.  */
 
9642
 
 
9643
int
 
9644
main ()
 
9645
{
 
9646
 
 
9647
  ;
 
9648
  return 0;
 
9649
}
 
9650
_ACEOF
 
9651
rm -f conftest.$ac_objext conftest$ac_exeext
 
9652
if { (ac_try="$ac_link"
 
9653
case "(($ac_try" in
 
9654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9655
  *) ac_try_echo=$ac_try;;
 
9656
esac
 
9657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9658
  (eval "$ac_link") 2>conftest.er1
 
9659
  ac_status=$?
 
9660
  grep -v '^ *+' conftest.er1 >conftest.err
 
9661
  rm -f conftest.er1
 
9662
  cat conftest.err >&5
 
9663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9664
  (exit $ac_status); } && {
 
9665
         test -z "$ac_c_werror_flag" ||
 
9666
         test ! -s conftest.err
 
9667
       } && test -s conftest$ac_exeext &&
 
9668
       $as_test_x conftest$ac_exeext; then
 
9669
  { echo "$as_me:$LINENO: result: no" >&5
 
9670
echo "${ECHO_T}no" >&6; }
 
9671
       X_LIBS="$X_LIBS -R$x_libraries"
3540
9672
else
3541
 
  echo "configure: failed program was:" >&5
3542
 
  cat conftest.$ac_ext >&5
3543
 
  rm -rf conftest*
3544
 
  ac_R_nospace=no
3545
 
fi
3546
 
rm -f conftest*
3547
 
      if test $ac_R_nospace = yes; then
3548
 
        echo "$ac_t""no" 1>&6
3549
 
        X_LIBS="$X_LIBS -R$x_libraries"
3550
 
      else
 
9673
  echo "$as_me: failed program was:" >&5
 
9674
sed 's/^/| /' conftest.$ac_ext >&5
 
9675
 
3551
9676
        LIBS="$ac_xsave_LIBS -R $x_libraries"
3552
 
        cat > conftest.$ac_ext <<EOF
3553
 
#line 3554 "configure"
3554
 
#include "confdefs.h"
3555
 
 
3556
 
int main() {
3557
 
 
3558
 
; return 0; }
3559
 
EOF
3560
 
if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3561
 
  rm -rf conftest*
3562
 
  ac_R_space=yes
3563
 
else
3564
 
  echo "configure: failed program was:" >&5
3565
 
  cat conftest.$ac_ext >&5
3566
 
  rm -rf conftest*
3567
 
  ac_R_space=no
3568
 
fi
3569
 
rm -f conftest*
3570
 
        if test $ac_R_space = yes; then
3571
 
          echo "$ac_t""yes" 1>&6
 
9677
       cat >conftest.$ac_ext <<_ACEOF
 
9678
/* confdefs.h.  */
 
9679
_ACEOF
 
9680
cat confdefs.h >>conftest.$ac_ext
 
9681
cat >>conftest.$ac_ext <<_ACEOF
 
9682
/* end confdefs.h.  */
 
9683
 
 
9684
int
 
9685
main ()
 
9686
{
 
9687
 
 
9688
  ;
 
9689
  return 0;
 
9690
}
 
9691
_ACEOF
 
9692
rm -f conftest.$ac_objext conftest$ac_exeext
 
9693
if { (ac_try="$ac_link"
 
9694
case "(($ac_try" in
 
9695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9696
  *) ac_try_echo=$ac_try;;
 
9697
esac
 
9698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9699
  (eval "$ac_link") 2>conftest.er1
 
9700
  ac_status=$?
 
9701
  grep -v '^ *+' conftest.er1 >conftest.err
 
9702
  rm -f conftest.er1
 
9703
  cat conftest.err >&5
 
9704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9705
  (exit $ac_status); } && {
 
9706
         test -z "$ac_c_werror_flag" ||
 
9707
         test ! -s conftest.err
 
9708
       } && test -s conftest$ac_exeext &&
 
9709
       $as_test_x conftest$ac_exeext; then
 
9710
  { echo "$as_me:$LINENO: result: yes" >&5
 
9711
echo "${ECHO_T}yes" >&6; }
3572
9712
          X_LIBS="$X_LIBS -R $x_libraries"
3573
 
        else
3574
 
          echo "$ac_t""neither works" 1>&6
3575
 
        fi
3576
 
      fi
3577
 
      LIBS="$ac_xsave_LIBS"
3578
 
    esac
 
9713
else
 
9714
  echo "$as_me: failed program was:" >&5
 
9715
sed 's/^/| /' conftest.$ac_ext >&5
 
9716
 
 
9717
        { echo "$as_me:$LINENO: result: neither works" >&5
 
9718
echo "${ECHO_T}neither works" >&6; }
 
9719
fi
 
9720
 
 
9721
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9722
      conftest$ac_exeext conftest.$ac_ext
 
9723
fi
 
9724
 
 
9725
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9726
      conftest$ac_exeext conftest.$ac_ext
 
9727
    ac_c_werror_flag=$ac_xsave_c_werror_flag
 
9728
    LIBS=$ac_xsave_LIBS
3579
9729
  fi
3580
9730
 
3581
9731
  # Check for system-dependent libraries X programs must link with.
3585
9735
  if test "$ISC" = yes; then
3586
9736
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3587
9737
  else
3588
 
    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3589
 
    # libraries were built with DECnet support.  And karl@cs.umb.edu says
 
9738
    # Martyn Johnson says this is needed for Ultrix, if the X
 
9739
    # libraries were built with DECnet support.  And Karl Berry says
3590
9740
    # the Alpha needs dnet_stub (dnet does not exist).
3591
 
    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3592
 
echo "configure:3593: checking for dnet_ntoa in -ldnet" >&5
3593
 
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3594
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3595
 
  echo $ac_n "(cached) $ac_c" 1>&6
3596
 
else
3597
 
  ac_save_LIBS="$LIBS"
 
9741
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
9742
    cat >conftest.$ac_ext <<_ACEOF
 
9743
/* confdefs.h.  */
 
9744
_ACEOF
 
9745
cat confdefs.h >>conftest.$ac_ext
 
9746
cat >>conftest.$ac_ext <<_ACEOF
 
9747
/* end confdefs.h.  */
 
9748
 
 
9749
/* Override any GCC internal prototype to avoid an error.
 
9750
   Use char because int might match the return type of a GCC
 
9751
   builtin and then its argument prototype would still apply.  */
 
9752
#ifdef __cplusplus
 
9753
extern "C"
 
9754
#endif
 
9755
char XOpenDisplay ();
 
9756
int
 
9757
main ()
 
9758
{
 
9759
return XOpenDisplay ();
 
9760
  ;
 
9761
  return 0;
 
9762
}
 
9763
_ACEOF
 
9764
rm -f conftest.$ac_objext conftest$ac_exeext
 
9765
if { (ac_try="$ac_link"
 
9766
case "(($ac_try" in
 
9767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9768
  *) ac_try_echo=$ac_try;;
 
9769
esac
 
9770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9771
  (eval "$ac_link") 2>conftest.er1
 
9772
  ac_status=$?
 
9773
  grep -v '^ *+' conftest.er1 >conftest.err
 
9774
  rm -f conftest.er1
 
9775
  cat conftest.err >&5
 
9776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9777
  (exit $ac_status); } && {
 
9778
         test -z "$ac_c_werror_flag" ||
 
9779
         test ! -s conftest.err
 
9780
       } && test -s conftest$ac_exeext &&
 
9781
       $as_test_x conftest$ac_exeext; then
 
9782
  :
 
9783
else
 
9784
  echo "$as_me: failed program was:" >&5
 
9785
sed 's/^/| /' conftest.$ac_ext >&5
 
9786
 
 
9787
        { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
9788
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
 
9789
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
9790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9791
else
 
9792
  ac_check_lib_save_LIBS=$LIBS
3598
9793
LIBS="-ldnet  $LIBS"
3599
 
cat > conftest.$ac_ext <<EOF
3600
 
#line 3601 "configure"
3601
 
#include "confdefs.h"
3602
 
/* Override any gcc2 internal prototype to avoid an error.  */
3603
 
/* We use char because int might match the return type of a gcc2
3604
 
    builtin and then its argument prototype would still apply.  */
3605
 
char dnet_ntoa();
 
9794
cat >conftest.$ac_ext <<_ACEOF
 
9795
/* confdefs.h.  */
 
9796
_ACEOF
 
9797
cat confdefs.h >>conftest.$ac_ext
 
9798
cat >>conftest.$ac_ext <<_ACEOF
 
9799
/* end confdefs.h.  */
3606
9800
 
3607
 
int main() {
3608
 
dnet_ntoa()
3609
 
; return 0; }
3610
 
EOF
3611
 
if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3612
 
  rm -rf conftest*
3613
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
9801
/* Override any GCC internal prototype to avoid an error.
 
9802
   Use char because int might match the return type of a GCC
 
9803
   builtin and then its argument prototype would still apply.  */
 
9804
#ifdef __cplusplus
 
9805
extern "C"
 
9806
#endif
 
9807
char dnet_ntoa ();
 
9808
int
 
9809
main ()
 
9810
{
 
9811
return dnet_ntoa ();
 
9812
  ;
 
9813
  return 0;
 
9814
}
 
9815
_ACEOF
 
9816
rm -f conftest.$ac_objext conftest$ac_exeext
 
9817
if { (ac_try="$ac_link"
 
9818
case "(($ac_try" in
 
9819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9820
  *) ac_try_echo=$ac_try;;
 
9821
esac
 
9822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9823
  (eval "$ac_link") 2>conftest.er1
 
9824
  ac_status=$?
 
9825
  grep -v '^ *+' conftest.er1 >conftest.err
 
9826
  rm -f conftest.er1
 
9827
  cat conftest.err >&5
 
9828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9829
  (exit $ac_status); } && {
 
9830
         test -z "$ac_c_werror_flag" ||
 
9831
         test ! -s conftest.err
 
9832
       } && test -s conftest$ac_exeext &&
 
9833
       $as_test_x conftest$ac_exeext; then
 
9834
  ac_cv_lib_dnet_dnet_ntoa=yes
3614
9835
else
3615
 
  echo "configure: failed program was:" >&5
3616
 
  cat conftest.$ac_ext >&5
3617
 
  rm -rf conftest*
3618
 
  eval "ac_cv_lib_$ac_lib_var=no"
3619
 
fi
3620
 
rm -f conftest*
3621
 
LIBS="$ac_save_LIBS"
3622
 
 
3623
 
fi
3624
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3625
 
  echo "$ac_t""yes" 1>&6
 
9836
  echo "$as_me: failed program was:" >&5
 
9837
sed 's/^/| /' conftest.$ac_ext >&5
 
9838
 
 
9839
        ac_cv_lib_dnet_dnet_ntoa=no
 
9840
fi
 
9841
 
 
9842
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9843
      conftest$ac_exeext conftest.$ac_ext
 
9844
LIBS=$ac_check_lib_save_LIBS
 
9845
fi
 
9846
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
9847
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
 
9848
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3626
9849
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3627
 
else
3628
 
  echo "$ac_t""no" 1>&6
3629
9850
fi
3630
9851
 
3631
9852
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3632
 
      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3633
 
echo "configure:3634: checking for dnet_ntoa in -ldnet_stub" >&5
3634
 
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3635
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9853
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
9854
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
 
9855
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
9856
  echo $ECHO_N "(cached) $ECHO_C" >&6
3637
9857
else
3638
 
  ac_save_LIBS="$LIBS"
 
9858
  ac_check_lib_save_LIBS=$LIBS
3639
9859
LIBS="-ldnet_stub  $LIBS"
3640
 
cat > conftest.$ac_ext <<EOF
3641
 
#line 3642 "configure"
3642
 
#include "confdefs.h"
3643
 
/* Override any gcc2 internal prototype to avoid an error.  */
3644
 
/* We use char because int might match the return type of a gcc2
3645
 
    builtin and then its argument prototype would still apply.  */
3646
 
char dnet_ntoa();
 
9860
cat >conftest.$ac_ext <<_ACEOF
 
9861
/* confdefs.h.  */
 
9862
_ACEOF
 
9863
cat confdefs.h >>conftest.$ac_ext
 
9864
cat >>conftest.$ac_ext <<_ACEOF
 
9865
/* end confdefs.h.  */
3647
9866
 
3648
 
int main() {
3649
 
dnet_ntoa()
3650
 
; return 0; }
3651
 
EOF
3652
 
if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3653
 
  rm -rf conftest*
3654
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
9867
/* Override any GCC internal prototype to avoid an error.
 
9868
   Use char because int might match the return type of a GCC
 
9869
   builtin and then its argument prototype would still apply.  */
 
9870
#ifdef __cplusplus
 
9871
extern "C"
 
9872
#endif
 
9873
char dnet_ntoa ();
 
9874
int
 
9875
main ()
 
9876
{
 
9877
return dnet_ntoa ();
 
9878
  ;
 
9879
  return 0;
 
9880
}
 
9881
_ACEOF
 
9882
rm -f conftest.$ac_objext conftest$ac_exeext
 
9883
if { (ac_try="$ac_link"
 
9884
case "(($ac_try" in
 
9885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9886
  *) ac_try_echo=$ac_try;;
 
9887
esac
 
9888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9889
  (eval "$ac_link") 2>conftest.er1
 
9890
  ac_status=$?
 
9891
  grep -v '^ *+' conftest.er1 >conftest.err
 
9892
  rm -f conftest.er1
 
9893
  cat conftest.err >&5
 
9894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9895
  (exit $ac_status); } && {
 
9896
         test -z "$ac_c_werror_flag" ||
 
9897
         test ! -s conftest.err
 
9898
       } && test -s conftest$ac_exeext &&
 
9899
       $as_test_x conftest$ac_exeext; then
 
9900
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
3655
9901
else
3656
 
  echo "configure: failed program was:" >&5
3657
 
  cat conftest.$ac_ext >&5
3658
 
  rm -rf conftest*
3659
 
  eval "ac_cv_lib_$ac_lib_var=no"
3660
 
fi
3661
 
rm -f conftest*
3662
 
LIBS="$ac_save_LIBS"
3663
 
 
3664
 
fi
3665
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666
 
  echo "$ac_t""yes" 1>&6
 
9902
  echo "$as_me: failed program was:" >&5
 
9903
sed 's/^/| /' conftest.$ac_ext >&5
 
9904
 
 
9905
        ac_cv_lib_dnet_stub_dnet_ntoa=no
 
9906
fi
 
9907
 
 
9908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9909
      conftest$ac_exeext conftest.$ac_ext
 
9910
LIBS=$ac_check_lib_save_LIBS
 
9911
fi
 
9912
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
9913
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
 
9914
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3667
9915
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3668
 
else
3669
 
  echo "$ac_t""no" 1>&6
3670
9916
fi
3671
9917
 
3672
9918
    fi
 
9919
fi
 
9920
 
 
9921
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9922
      conftest$ac_exeext conftest.$ac_ext
 
9923
    LIBS="$ac_xsave_LIBS"
3673
9924
 
3674
9925
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3675
9926
    # to get the SysV transport functions.
3676
 
    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
 
9927
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3677
9928
    # needs -lnsl.
3678
9929
    # The nsl library prevents programs from opening the X display
3679
 
    # on Irix 5.2, according to dickey@clark.net.
3680
 
    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3681
 
echo "configure:3682: checking for gethostbyname" >&5
3682
 
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3683
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9930
    # on Irix 5.2, according to T.E. Dickey.
 
9931
    # The functions gethostbyname, getservbyname, and inet_addr are
 
9932
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
9933
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
9934
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
 
9935
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
9936
  echo $ECHO_N "(cached) $ECHO_C" >&6
3684
9937
else
3685
 
  cat > conftest.$ac_ext <<EOF
3686
 
#line 3687 "configure"
3687
 
#include "confdefs.h"
 
9938
  cat >conftest.$ac_ext <<_ACEOF
 
9939
/* confdefs.h.  */
 
9940
_ACEOF
 
9941
cat confdefs.h >>conftest.$ac_ext
 
9942
cat >>conftest.$ac_ext <<_ACEOF
 
9943
/* end confdefs.h.  */
 
9944
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
9945
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9946
#define gethostbyname innocuous_gethostbyname
 
9947
 
3688
9948
/* System header to define __stub macros and hopefully few prototypes,
3689
 
    which can conflict with char gethostbyname(); below.  */
3690
 
#include <assert.h>
3691
 
/* Override any gcc2 internal prototype to avoid an error.  */
3692
 
/* We use char because int might match the return type of a gcc2
3693
 
    builtin and then its argument prototype would still apply.  */
3694
 
char gethostbyname();
3695
 
 
3696
 
int main() {
3697
 
 
 
9949
    which can conflict with char gethostbyname (); below.
 
9950
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9951
    <limits.h> exists even on freestanding compilers.  */
 
9952
 
 
9953
#ifdef __STDC__
 
9954
# include <limits.h>
 
9955
#else
 
9956
# include <assert.h>
 
9957
#endif
 
9958
 
 
9959
#undef gethostbyname
 
9960
 
 
9961
/* Override any GCC internal prototype to avoid an error.
 
9962
   Use char because int might match the return type of a GCC
 
9963
   builtin and then its argument prototype would still apply.  */
 
9964
#ifdef __cplusplus
 
9965
extern "C"
 
9966
#endif
 
9967
char gethostbyname ();
3698
9968
/* The GNU C library defines this for functions which it implements
3699
9969
    to always fail with ENOSYS.  Some functions are actually named
3700
9970
    something starting with __ and the normal name is an alias.  */
3701
 
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
9971
#if defined __stub_gethostbyname || defined __stub___gethostbyname
3702
9972
choke me
3703
 
#else
3704
 
gethostbyname();
3705
9973
#endif
3706
9974
 
3707
 
; return 0; }
3708
 
EOF
3709
 
if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3710
 
  rm -rf conftest*
3711
 
  eval "ac_cv_func_gethostbyname=yes"
3712
 
else
3713
 
  echo "configure: failed program was:" >&5
3714
 
  cat conftest.$ac_ext >&5
3715
 
  rm -rf conftest*
3716
 
  eval "ac_cv_func_gethostbyname=no"
3717
 
fi
3718
 
rm -f conftest*
3719
 
fi
3720
 
 
3721
 
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3722
 
  echo "$ac_t""yes" 1>&6
3723
 
  :
3724
 
else
3725
 
  echo "$ac_t""no" 1>&6
3726
 
fi
 
9975
int
 
9976
main ()
 
9977
{
 
9978
return gethostbyname ();
 
9979
  ;
 
9980
  return 0;
 
9981
}
 
9982
_ACEOF
 
9983
rm -f conftest.$ac_objext conftest$ac_exeext
 
9984
if { (ac_try="$ac_link"
 
9985
case "(($ac_try" in
 
9986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9987
  *) ac_try_echo=$ac_try;;
 
9988
esac
 
9989
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9990
  (eval "$ac_link") 2>conftest.er1
 
9991
  ac_status=$?
 
9992
  grep -v '^ *+' conftest.er1 >conftest.err
 
9993
  rm -f conftest.er1
 
9994
  cat conftest.err >&5
 
9995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9996
  (exit $ac_status); } && {
 
9997
         test -z "$ac_c_werror_flag" ||
 
9998
         test ! -s conftest.err
 
9999
       } && test -s conftest$ac_exeext &&
 
10000
       $as_test_x conftest$ac_exeext; then
 
10001
  ac_cv_func_gethostbyname=yes
 
10002
else
 
10003
  echo "$as_me: failed program was:" >&5
 
10004
sed 's/^/| /' conftest.$ac_ext >&5
 
10005
 
 
10006
        ac_cv_func_gethostbyname=no
 
10007
fi
 
10008
 
 
10009
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10010
      conftest$ac_exeext conftest.$ac_ext
 
10011
fi
 
10012
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
10013
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
3727
10014
 
3728
10015
    if test $ac_cv_func_gethostbyname = no; then
3729
 
      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3730
 
echo "configure:3731: checking for gethostbyname in -lnsl" >&5
3731
 
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3732
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3733
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10016
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
10017
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
 
10018
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
10019
  echo $ECHO_N "(cached) $ECHO_C" >&6
3734
10020
else
3735
 
  ac_save_LIBS="$LIBS"
 
10021
  ac_check_lib_save_LIBS=$LIBS
3736
10022
LIBS="-lnsl  $LIBS"
3737
 
cat > conftest.$ac_ext <<EOF
3738
 
#line 3739 "configure"
3739
 
#include "confdefs.h"
3740
 
/* Override any gcc2 internal prototype to avoid an error.  */
3741
 
/* We use char because int might match the return type of a gcc2
3742
 
    builtin and then its argument prototype would still apply.  */
3743
 
char gethostbyname();
 
10023
cat >conftest.$ac_ext <<_ACEOF
 
10024
/* confdefs.h.  */
 
10025
_ACEOF
 
10026
cat confdefs.h >>conftest.$ac_ext
 
10027
cat >>conftest.$ac_ext <<_ACEOF
 
10028
/* end confdefs.h.  */
3744
10029
 
3745
 
int main() {
3746
 
gethostbyname()
3747
 
; return 0; }
3748
 
EOF
3749
 
if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3750
 
  rm -rf conftest*
3751
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
10030
/* Override any GCC internal prototype to avoid an error.
 
10031
   Use char because int might match the return type of a GCC
 
10032
   builtin and then its argument prototype would still apply.  */
 
10033
#ifdef __cplusplus
 
10034
extern "C"
 
10035
#endif
 
10036
char gethostbyname ();
 
10037
int
 
10038
main ()
 
10039
{
 
10040
return gethostbyname ();
 
10041
  ;
 
10042
  return 0;
 
10043
}
 
10044
_ACEOF
 
10045
rm -f conftest.$ac_objext conftest$ac_exeext
 
10046
if { (ac_try="$ac_link"
 
10047
case "(($ac_try" in
 
10048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10049
  *) ac_try_echo=$ac_try;;
 
10050
esac
 
10051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10052
  (eval "$ac_link") 2>conftest.er1
 
10053
  ac_status=$?
 
10054
  grep -v '^ *+' conftest.er1 >conftest.err
 
10055
  rm -f conftest.er1
 
10056
  cat conftest.err >&5
 
10057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10058
  (exit $ac_status); } && {
 
10059
         test -z "$ac_c_werror_flag" ||
 
10060
         test ! -s conftest.err
 
10061
       } && test -s conftest$ac_exeext &&
 
10062
       $as_test_x conftest$ac_exeext; then
 
10063
  ac_cv_lib_nsl_gethostbyname=yes
3752
10064
else
3753
 
  echo "configure: failed program was:" >&5
3754
 
  cat conftest.$ac_ext >&5
3755
 
  rm -rf conftest*
3756
 
  eval "ac_cv_lib_$ac_lib_var=no"
3757
 
fi
3758
 
rm -f conftest*
3759
 
LIBS="$ac_save_LIBS"
3760
 
 
3761
 
fi
3762
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3763
 
  echo "$ac_t""yes" 1>&6
 
10065
  echo "$as_me: failed program was:" >&5
 
10066
sed 's/^/| /' conftest.$ac_ext >&5
 
10067
 
 
10068
        ac_cv_lib_nsl_gethostbyname=no
 
10069
fi
 
10070
 
 
10071
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10072
      conftest$ac_exeext conftest.$ac_ext
 
10073
LIBS=$ac_check_lib_save_LIBS
 
10074
fi
 
10075
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
10076
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
 
10077
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3764
10078
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3765
 
else
3766
 
  echo "$ac_t""no" 1>&6
3767
 
fi
3768
 
 
 
10079
fi
 
10080
 
 
10081
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
10082
        { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
10083
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
 
10084
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
10085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10086
else
 
10087
  ac_check_lib_save_LIBS=$LIBS
 
10088
LIBS="-lbsd  $LIBS"
 
10089
cat >conftest.$ac_ext <<_ACEOF
 
10090
/* confdefs.h.  */
 
10091
_ACEOF
 
10092
cat confdefs.h >>conftest.$ac_ext
 
10093
cat >>conftest.$ac_ext <<_ACEOF
 
10094
/* end confdefs.h.  */
 
10095
 
 
10096
/* Override any GCC internal prototype to avoid an error.
 
10097
   Use char because int might match the return type of a GCC
 
10098
   builtin and then its argument prototype would still apply.  */
 
10099
#ifdef __cplusplus
 
10100
extern "C"
 
10101
#endif
 
10102
char gethostbyname ();
 
10103
int
 
10104
main ()
 
10105
{
 
10106
return gethostbyname ();
 
10107
  ;
 
10108
  return 0;
 
10109
}
 
10110
_ACEOF
 
10111
rm -f conftest.$ac_objext conftest$ac_exeext
 
10112
if { (ac_try="$ac_link"
 
10113
case "(($ac_try" in
 
10114
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10115
  *) ac_try_echo=$ac_try;;
 
10116
esac
 
10117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10118
  (eval "$ac_link") 2>conftest.er1
 
10119
  ac_status=$?
 
10120
  grep -v '^ *+' conftest.er1 >conftest.err
 
10121
  rm -f conftest.er1
 
10122
  cat conftest.err >&5
 
10123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10124
  (exit $ac_status); } && {
 
10125
         test -z "$ac_c_werror_flag" ||
 
10126
         test ! -s conftest.err
 
10127
       } && test -s conftest$ac_exeext &&
 
10128
       $as_test_x conftest$ac_exeext; then
 
10129
  ac_cv_lib_bsd_gethostbyname=yes
 
10130
else
 
10131
  echo "$as_me: failed program was:" >&5
 
10132
sed 's/^/| /' conftest.$ac_ext >&5
 
10133
 
 
10134
        ac_cv_lib_bsd_gethostbyname=no
 
10135
fi
 
10136
 
 
10137
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10138
      conftest$ac_exeext conftest.$ac_ext
 
10139
LIBS=$ac_check_lib_save_LIBS
 
10140
fi
 
10141
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
10142
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
 
10143
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
10144
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
10145
fi
 
10146
 
 
10147
      fi
3769
10148
    fi
3770
10149
 
3771
10150
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
3772
10151
    # socket/setsockopt and other routines are undefined under SCO ODT
3773
10152
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3774
 
    # on later versions), says simon@lia.di.epfl.ch: it contains
3775
 
    # gethostby* variants that don't use the nameserver (or something).
3776
 
    # -lsocket must be given before -lnsl if both are needed.
3777
 
    # We assume that if connect needs -lnsl, so does gethostbyname.
3778
 
    echo $ac_n "checking for connect""... $ac_c" 1>&6
3779
 
echo "configure:3780: checking for connect" >&5
3780
 
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3781
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10153
    # on later versions), says Simon Leinen: it contains gethostby*
 
10154
    # variants that don't use the name server (or something).  -lsocket
 
10155
    # must be given before -lnsl if both are needed.  We assume that
 
10156
    # if connect needs -lnsl, so does gethostbyname.
 
10157
    { echo "$as_me:$LINENO: checking for connect" >&5
 
10158
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
 
10159
if test "${ac_cv_func_connect+set}" = set; then
 
10160
  echo $ECHO_N "(cached) $ECHO_C" >&6
3782
10161
else
3783
 
  cat > conftest.$ac_ext <<EOF
3784
 
#line 3785 "configure"
3785
 
#include "confdefs.h"
 
10162
  cat >conftest.$ac_ext <<_ACEOF
 
10163
/* confdefs.h.  */
 
10164
_ACEOF
 
10165
cat confdefs.h >>conftest.$ac_ext
 
10166
cat >>conftest.$ac_ext <<_ACEOF
 
10167
/* end confdefs.h.  */
 
10168
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
10169
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10170
#define connect innocuous_connect
 
10171
 
3786
10172
/* System header to define __stub macros and hopefully few prototypes,
3787
 
    which can conflict with char connect(); below.  */
3788
 
#include <assert.h>
3789
 
/* Override any gcc2 internal prototype to avoid an error.  */
3790
 
/* We use char because int might match the return type of a gcc2
3791
 
    builtin and then its argument prototype would still apply.  */
3792
 
char connect();
3793
 
 
3794
 
int main() {
3795
 
 
 
10173
    which can conflict with char connect (); below.
 
10174
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10175
    <limits.h> exists even on freestanding compilers.  */
 
10176
 
 
10177
#ifdef __STDC__
 
10178
# include <limits.h>
 
10179
#else
 
10180
# include <assert.h>
 
10181
#endif
 
10182
 
 
10183
#undef connect
 
10184
 
 
10185
/* Override any GCC internal prototype to avoid an error.
 
10186
   Use char because int might match the return type of a GCC
 
10187
   builtin and then its argument prototype would still apply.  */
 
10188
#ifdef __cplusplus
 
10189
extern "C"
 
10190
#endif
 
10191
char connect ();
3796
10192
/* The GNU C library defines this for functions which it implements
3797
10193
    to always fail with ENOSYS.  Some functions are actually named
3798
10194
    something starting with __ and the normal name is an alias.  */
3799
 
#if defined (__stub_connect) || defined (__stub___connect)
 
10195
#if defined __stub_connect || defined __stub___connect
3800
10196
choke me
3801
 
#else
3802
 
connect();
3803
10197
#endif
3804
10198
 
3805
 
; return 0; }
3806
 
EOF
3807
 
if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3808
 
  rm -rf conftest*
3809
 
  eval "ac_cv_func_connect=yes"
3810
 
else
3811
 
  echo "configure: failed program was:" >&5
3812
 
  cat conftest.$ac_ext >&5
3813
 
  rm -rf conftest*
3814
 
  eval "ac_cv_func_connect=no"
3815
 
fi
3816
 
rm -f conftest*
3817
 
fi
3818
 
 
3819
 
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3820
 
  echo "$ac_t""yes" 1>&6
3821
 
  :
3822
 
else
3823
 
  echo "$ac_t""no" 1>&6
3824
 
fi
 
10199
int
 
10200
main ()
 
10201
{
 
10202
return connect ();
 
10203
  ;
 
10204
  return 0;
 
10205
}
 
10206
_ACEOF
 
10207
rm -f conftest.$ac_objext conftest$ac_exeext
 
10208
if { (ac_try="$ac_link"
 
10209
case "(($ac_try" in
 
10210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10211
  *) ac_try_echo=$ac_try;;
 
10212
esac
 
10213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10214
  (eval "$ac_link") 2>conftest.er1
 
10215
  ac_status=$?
 
10216
  grep -v '^ *+' conftest.er1 >conftest.err
 
10217
  rm -f conftest.er1
 
10218
  cat conftest.err >&5
 
10219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10220
  (exit $ac_status); } && {
 
10221
         test -z "$ac_c_werror_flag" ||
 
10222
         test ! -s conftest.err
 
10223
       } && test -s conftest$ac_exeext &&
 
10224
       $as_test_x conftest$ac_exeext; then
 
10225
  ac_cv_func_connect=yes
 
10226
else
 
10227
  echo "$as_me: failed program was:" >&5
 
10228
sed 's/^/| /' conftest.$ac_ext >&5
 
10229
 
 
10230
        ac_cv_func_connect=no
 
10231
fi
 
10232
 
 
10233
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10234
      conftest$ac_exeext conftest.$ac_ext
 
10235
fi
 
10236
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
10237
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
3825
10238
 
3826
10239
    if test $ac_cv_func_connect = no; then
3827
 
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3828
 
echo "configure:3829: checking for connect in -lsocket" >&5
3829
 
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3830
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3831
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10240
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
10241
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
 
10242
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
10243
  echo $ECHO_N "(cached) $ECHO_C" >&6
3832
10244
else
3833
 
  ac_save_LIBS="$LIBS"
 
10245
  ac_check_lib_save_LIBS=$LIBS
3834
10246
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3835
 
cat > conftest.$ac_ext <<EOF
3836
 
#line 3837 "configure"
3837
 
#include "confdefs.h"
3838
 
/* Override any gcc2 internal prototype to avoid an error.  */
3839
 
/* We use char because int might match the return type of a gcc2
3840
 
    builtin and then its argument prototype would still apply.  */
3841
 
char connect();
 
10247
cat >conftest.$ac_ext <<_ACEOF
 
10248
/* confdefs.h.  */
 
10249
_ACEOF
 
10250
cat confdefs.h >>conftest.$ac_ext
 
10251
cat >>conftest.$ac_ext <<_ACEOF
 
10252
/* end confdefs.h.  */
3842
10253
 
3843
 
int main() {
3844
 
connect()
3845
 
; return 0; }
3846
 
EOF
3847
 
if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3848
 
  rm -rf conftest*
3849
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
10254
/* Override any GCC internal prototype to avoid an error.
 
10255
   Use char because int might match the return type of a GCC
 
10256
   builtin and then its argument prototype would still apply.  */
 
10257
#ifdef __cplusplus
 
10258
extern "C"
 
10259
#endif
 
10260
char connect ();
 
10261
int
 
10262
main ()
 
10263
{
 
10264
return connect ();
 
10265
  ;
 
10266
  return 0;
 
10267
}
 
10268
_ACEOF
 
10269
rm -f conftest.$ac_objext conftest$ac_exeext
 
10270
if { (ac_try="$ac_link"
 
10271
case "(($ac_try" in
 
10272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10273
  *) ac_try_echo=$ac_try;;
 
10274
esac
 
10275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10276
  (eval "$ac_link") 2>conftest.er1
 
10277
  ac_status=$?
 
10278
  grep -v '^ *+' conftest.er1 >conftest.err
 
10279
  rm -f conftest.er1
 
10280
  cat conftest.err >&5
 
10281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10282
  (exit $ac_status); } && {
 
10283
         test -z "$ac_c_werror_flag" ||
 
10284
         test ! -s conftest.err
 
10285
       } && test -s conftest$ac_exeext &&
 
10286
       $as_test_x conftest$ac_exeext; then
 
10287
  ac_cv_lib_socket_connect=yes
3850
10288
else
3851
 
  echo "configure: failed program was:" >&5
3852
 
  cat conftest.$ac_ext >&5
3853
 
  rm -rf conftest*
3854
 
  eval "ac_cv_lib_$ac_lib_var=no"
3855
 
fi
3856
 
rm -f conftest*
3857
 
LIBS="$ac_save_LIBS"
3858
 
 
3859
 
fi
3860
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3861
 
  echo "$ac_t""yes" 1>&6
 
10289
  echo "$as_me: failed program was:" >&5
 
10290
sed 's/^/| /' conftest.$ac_ext >&5
 
10291
 
 
10292
        ac_cv_lib_socket_connect=no
 
10293
fi
 
10294
 
 
10295
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10296
      conftest$ac_exeext conftest.$ac_ext
 
10297
LIBS=$ac_check_lib_save_LIBS
 
10298
fi
 
10299
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
10300
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
 
10301
if test $ac_cv_lib_socket_connect = yes; then
3862
10302
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3863
 
else
3864
 
  echo "$ac_t""no" 1>&6
3865
10303
fi
3866
10304
 
3867
10305
    fi
3868
10306
 
3869
 
    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3870
 
    echo $ac_n "checking for remove""... $ac_c" 1>&6
3871
 
echo "configure:3872: checking for remove" >&5
3872
 
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3873
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10307
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
10308
    { echo "$as_me:$LINENO: checking for remove" >&5
 
10309
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
 
10310
if test "${ac_cv_func_remove+set}" = set; then
 
10311
  echo $ECHO_N "(cached) $ECHO_C" >&6
3874
10312
else
3875
 
  cat > conftest.$ac_ext <<EOF
3876
 
#line 3877 "configure"
3877
 
#include "confdefs.h"
 
10313
  cat >conftest.$ac_ext <<_ACEOF
 
10314
/* confdefs.h.  */
 
10315
_ACEOF
 
10316
cat confdefs.h >>conftest.$ac_ext
 
10317
cat >>conftest.$ac_ext <<_ACEOF
 
10318
/* end confdefs.h.  */
 
10319
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
10320
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10321
#define remove innocuous_remove
 
10322
 
3878
10323
/* System header to define __stub macros and hopefully few prototypes,
3879
 
    which can conflict with char remove(); below.  */
3880
 
#include <assert.h>
3881
 
/* Override any gcc2 internal prototype to avoid an error.  */
3882
 
/* We use char because int might match the return type of a gcc2
3883
 
    builtin and then its argument prototype would still apply.  */
3884
 
char remove();
3885
 
 
3886
 
int main() {
3887
 
 
 
10324
    which can conflict with char remove (); below.
 
10325
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10326
    <limits.h> exists even on freestanding compilers.  */
 
10327
 
 
10328
#ifdef __STDC__
 
10329
# include <limits.h>
 
10330
#else
 
10331
# include <assert.h>
 
10332
#endif
 
10333
 
 
10334
#undef remove
 
10335
 
 
10336
/* Override any GCC internal prototype to avoid an error.
 
10337
   Use char because int might match the return type of a GCC
 
10338
   builtin and then its argument prototype would still apply.  */
 
10339
#ifdef __cplusplus
 
10340
extern "C"
 
10341
#endif
 
10342
char remove ();
3888
10343
/* The GNU C library defines this for functions which it implements
3889
10344
    to always fail with ENOSYS.  Some functions are actually named
3890
10345
    something starting with __ and the normal name is an alias.  */
3891
 
#if defined (__stub_remove) || defined (__stub___remove)
 
10346
#if defined __stub_remove || defined __stub___remove
3892
10347
choke me
3893
 
#else
3894
 
remove();
3895
10348
#endif
3896
10349
 
3897
 
; return 0; }
3898
 
EOF
3899
 
if { (eval echo configure:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3900
 
  rm -rf conftest*
3901
 
  eval "ac_cv_func_remove=yes"
3902
 
else
3903
 
  echo "configure: failed program was:" >&5
3904
 
  cat conftest.$ac_ext >&5
3905
 
  rm -rf conftest*
3906
 
  eval "ac_cv_func_remove=no"
3907
 
fi
3908
 
rm -f conftest*
3909
 
fi
3910
 
 
3911
 
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3912
 
  echo "$ac_t""yes" 1>&6
3913
 
  :
3914
 
else
3915
 
  echo "$ac_t""no" 1>&6
3916
 
fi
 
10350
int
 
10351
main ()
 
10352
{
 
10353
return remove ();
 
10354
  ;
 
10355
  return 0;
 
10356
}
 
10357
_ACEOF
 
10358
rm -f conftest.$ac_objext conftest$ac_exeext
 
10359
if { (ac_try="$ac_link"
 
10360
case "(($ac_try" in
 
10361
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10362
  *) ac_try_echo=$ac_try;;
 
10363
esac
 
10364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10365
  (eval "$ac_link") 2>conftest.er1
 
10366
  ac_status=$?
 
10367
  grep -v '^ *+' conftest.er1 >conftest.err
 
10368
  rm -f conftest.er1
 
10369
  cat conftest.err >&5
 
10370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10371
  (exit $ac_status); } && {
 
10372
         test -z "$ac_c_werror_flag" ||
 
10373
         test ! -s conftest.err
 
10374
       } && test -s conftest$ac_exeext &&
 
10375
       $as_test_x conftest$ac_exeext; then
 
10376
  ac_cv_func_remove=yes
 
10377
else
 
10378
  echo "$as_me: failed program was:" >&5
 
10379
sed 's/^/| /' conftest.$ac_ext >&5
 
10380
 
 
10381
        ac_cv_func_remove=no
 
10382
fi
 
10383
 
 
10384
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10385
      conftest$ac_exeext conftest.$ac_ext
 
10386
fi
 
10387
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
10388
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
3917
10389
 
3918
10390
    if test $ac_cv_func_remove = no; then
3919
 
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3920
 
echo "configure:3921: checking for remove in -lposix" >&5
3921
 
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3922
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3923
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10391
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
10392
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
 
10393
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
10394
  echo $ECHO_N "(cached) $ECHO_C" >&6
3924
10395
else
3925
 
  ac_save_LIBS="$LIBS"
 
10396
  ac_check_lib_save_LIBS=$LIBS
3926
10397
LIBS="-lposix  $LIBS"
3927
 
cat > conftest.$ac_ext <<EOF
3928
 
#line 3929 "configure"
3929
 
#include "confdefs.h"
3930
 
/* Override any gcc2 internal prototype to avoid an error.  */
3931
 
/* We use char because int might match the return type of a gcc2
3932
 
    builtin and then its argument prototype would still apply.  */
3933
 
char remove();
 
10398
cat >conftest.$ac_ext <<_ACEOF
 
10399
/* confdefs.h.  */
 
10400
_ACEOF
 
10401
cat confdefs.h >>conftest.$ac_ext
 
10402
cat >>conftest.$ac_ext <<_ACEOF
 
10403
/* end confdefs.h.  */
3934
10404
 
3935
 
int main() {
3936
 
remove()
3937
 
; return 0; }
3938
 
EOF
3939
 
if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3940
 
  rm -rf conftest*
3941
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
10405
/* Override any GCC internal prototype to avoid an error.
 
10406
   Use char because int might match the return type of a GCC
 
10407
   builtin and then its argument prototype would still apply.  */
 
10408
#ifdef __cplusplus
 
10409
extern "C"
 
10410
#endif
 
10411
char remove ();
 
10412
int
 
10413
main ()
 
10414
{
 
10415
return remove ();
 
10416
  ;
 
10417
  return 0;
 
10418
}
 
10419
_ACEOF
 
10420
rm -f conftest.$ac_objext conftest$ac_exeext
 
10421
if { (ac_try="$ac_link"
 
10422
case "(($ac_try" in
 
10423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10424
  *) ac_try_echo=$ac_try;;
 
10425
esac
 
10426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10427
  (eval "$ac_link") 2>conftest.er1
 
10428
  ac_status=$?
 
10429
  grep -v '^ *+' conftest.er1 >conftest.err
 
10430
  rm -f conftest.er1
 
10431
  cat conftest.err >&5
 
10432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10433
  (exit $ac_status); } && {
 
10434
         test -z "$ac_c_werror_flag" ||
 
10435
         test ! -s conftest.err
 
10436
       } && test -s conftest$ac_exeext &&
 
10437
       $as_test_x conftest$ac_exeext; then
 
10438
  ac_cv_lib_posix_remove=yes
3942
10439
else
3943
 
  echo "configure: failed program was:" >&5
3944
 
  cat conftest.$ac_ext >&5
3945
 
  rm -rf conftest*
3946
 
  eval "ac_cv_lib_$ac_lib_var=no"
3947
 
fi
3948
 
rm -f conftest*
3949
 
LIBS="$ac_save_LIBS"
3950
 
 
3951
 
fi
3952
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3953
 
  echo "$ac_t""yes" 1>&6
 
10440
  echo "$as_me: failed program was:" >&5
 
10441
sed 's/^/| /' conftest.$ac_ext >&5
 
10442
 
 
10443
        ac_cv_lib_posix_remove=no
 
10444
fi
 
10445
 
 
10446
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10447
      conftest$ac_exeext conftest.$ac_ext
 
10448
LIBS=$ac_check_lib_save_LIBS
 
10449
fi
 
10450
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
10451
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
 
10452
if test $ac_cv_lib_posix_remove = yes; then
3954
10453
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3955
 
else
3956
 
  echo "$ac_t""no" 1>&6
3957
10454
fi
3958
10455
 
3959
10456
    fi
3960
10457
 
3961
10458
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3962
 
    echo $ac_n "checking for shmat""... $ac_c" 1>&6
3963
 
echo "configure:3964: checking for shmat" >&5
3964
 
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3965
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10459
    { echo "$as_me:$LINENO: checking for shmat" >&5
 
10460
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
 
10461
if test "${ac_cv_func_shmat+set}" = set; then
 
10462
  echo $ECHO_N "(cached) $ECHO_C" >&6
3966
10463
else
3967
 
  cat > conftest.$ac_ext <<EOF
3968
 
#line 3969 "configure"
3969
 
#include "confdefs.h"
 
10464
  cat >conftest.$ac_ext <<_ACEOF
 
10465
/* confdefs.h.  */
 
10466
_ACEOF
 
10467
cat confdefs.h >>conftest.$ac_ext
 
10468
cat >>conftest.$ac_ext <<_ACEOF
 
10469
/* end confdefs.h.  */
 
10470
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
10471
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10472
#define shmat innocuous_shmat
 
10473
 
3970
10474
/* System header to define __stub macros and hopefully few prototypes,
3971
 
    which can conflict with char shmat(); below.  */
3972
 
#include <assert.h>
3973
 
/* Override any gcc2 internal prototype to avoid an error.  */
3974
 
/* We use char because int might match the return type of a gcc2
3975
 
    builtin and then its argument prototype would still apply.  */
3976
 
char shmat();
3977
 
 
3978
 
int main() {
3979
 
 
 
10475
    which can conflict with char shmat (); below.
 
10476
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10477
    <limits.h> exists even on freestanding compilers.  */
 
10478
 
 
10479
#ifdef __STDC__
 
10480
# include <limits.h>
 
10481
#else
 
10482
# include <assert.h>
 
10483
#endif
 
10484
 
 
10485
#undef shmat
 
10486
 
 
10487
/* Override any GCC internal prototype to avoid an error.
 
10488
   Use char because int might match the return type of a GCC
 
10489
   builtin and then its argument prototype would still apply.  */
 
10490
#ifdef __cplusplus
 
10491
extern "C"
 
10492
#endif
 
10493
char shmat ();
3980
10494
/* The GNU C library defines this for functions which it implements
3981
10495
    to always fail with ENOSYS.  Some functions are actually named
3982
10496
    something starting with __ and the normal name is an alias.  */
3983
 
#if defined (__stub_shmat) || defined (__stub___shmat)
 
10497
#if defined __stub_shmat || defined __stub___shmat
3984
10498
choke me
3985
 
#else
3986
 
shmat();
3987
10499
#endif
3988
10500
 
3989
 
; return 0; }
3990
 
EOF
3991
 
if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3992
 
  rm -rf conftest*
3993
 
  eval "ac_cv_func_shmat=yes"
3994
 
else
3995
 
  echo "configure: failed program was:" >&5
3996
 
  cat conftest.$ac_ext >&5
3997
 
  rm -rf conftest*
3998
 
  eval "ac_cv_func_shmat=no"
3999
 
fi
4000
 
rm -f conftest*
4001
 
fi
4002
 
 
4003
 
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4004
 
  echo "$ac_t""yes" 1>&6
4005
 
  :
4006
 
else
4007
 
  echo "$ac_t""no" 1>&6
4008
 
fi
 
10501
int
 
10502
main ()
 
10503
{
 
10504
return shmat ();
 
10505
  ;
 
10506
  return 0;
 
10507
}
 
10508
_ACEOF
 
10509
rm -f conftest.$ac_objext conftest$ac_exeext
 
10510
if { (ac_try="$ac_link"
 
10511
case "(($ac_try" in
 
10512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10513
  *) ac_try_echo=$ac_try;;
 
10514
esac
 
10515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10516
  (eval "$ac_link") 2>conftest.er1
 
10517
  ac_status=$?
 
10518
  grep -v '^ *+' conftest.er1 >conftest.err
 
10519
  rm -f conftest.er1
 
10520
  cat conftest.err >&5
 
10521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10522
  (exit $ac_status); } && {
 
10523
         test -z "$ac_c_werror_flag" ||
 
10524
         test ! -s conftest.err
 
10525
       } && test -s conftest$ac_exeext &&
 
10526
       $as_test_x conftest$ac_exeext; then
 
10527
  ac_cv_func_shmat=yes
 
10528
else
 
10529
  echo "$as_me: failed program was:" >&5
 
10530
sed 's/^/| /' conftest.$ac_ext >&5
 
10531
 
 
10532
        ac_cv_func_shmat=no
 
10533
fi
 
10534
 
 
10535
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10536
      conftest$ac_exeext conftest.$ac_ext
 
10537
fi
 
10538
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
10539
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4009
10540
 
4010
10541
    if test $ac_cv_func_shmat = no; then
4011
 
      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4012
 
echo "configure:4013: checking for shmat in -lipc" >&5
4013
 
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4014
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4015
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10542
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
10543
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
 
10544
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
10545
  echo $ECHO_N "(cached) $ECHO_C" >&6
4016
10546
else
4017
 
  ac_save_LIBS="$LIBS"
 
10547
  ac_check_lib_save_LIBS=$LIBS
4018
10548
LIBS="-lipc  $LIBS"
4019
 
cat > conftest.$ac_ext <<EOF
4020
 
#line 4021 "configure"
4021
 
#include "confdefs.h"
4022
 
/* Override any gcc2 internal prototype to avoid an error.  */
4023
 
/* We use char because int might match the return type of a gcc2
4024
 
    builtin and then its argument prototype would still apply.  */
4025
 
char shmat();
 
10549
cat >conftest.$ac_ext <<_ACEOF
 
10550
/* confdefs.h.  */
 
10551
_ACEOF
 
10552
cat confdefs.h >>conftest.$ac_ext
 
10553
cat >>conftest.$ac_ext <<_ACEOF
 
10554
/* end confdefs.h.  */
4026
10555
 
4027
 
int main() {
4028
 
shmat()
4029
 
; return 0; }
4030
 
EOF
4031
 
if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4032
 
  rm -rf conftest*
4033
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
10556
/* Override any GCC internal prototype to avoid an error.
 
10557
   Use char because int might match the return type of a GCC
 
10558
   builtin and then its argument prototype would still apply.  */
 
10559
#ifdef __cplusplus
 
10560
extern "C"
 
10561
#endif
 
10562
char shmat ();
 
10563
int
 
10564
main ()
 
10565
{
 
10566
return shmat ();
 
10567
  ;
 
10568
  return 0;
 
10569
}
 
10570
_ACEOF
 
10571
rm -f conftest.$ac_objext conftest$ac_exeext
 
10572
if { (ac_try="$ac_link"
 
10573
case "(($ac_try" in
 
10574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10575
  *) ac_try_echo=$ac_try;;
 
10576
esac
 
10577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10578
  (eval "$ac_link") 2>conftest.er1
 
10579
  ac_status=$?
 
10580
  grep -v '^ *+' conftest.er1 >conftest.err
 
10581
  rm -f conftest.er1
 
10582
  cat conftest.err >&5
 
10583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10584
  (exit $ac_status); } && {
 
10585
         test -z "$ac_c_werror_flag" ||
 
10586
         test ! -s conftest.err
 
10587
       } && test -s conftest$ac_exeext &&
 
10588
       $as_test_x conftest$ac_exeext; then
 
10589
  ac_cv_lib_ipc_shmat=yes
4034
10590
else
4035
 
  echo "configure: failed program was:" >&5
4036
 
  cat conftest.$ac_ext >&5
4037
 
  rm -rf conftest*
4038
 
  eval "ac_cv_lib_$ac_lib_var=no"
4039
 
fi
4040
 
rm -f conftest*
4041
 
LIBS="$ac_save_LIBS"
4042
 
 
4043
 
fi
4044
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4045
 
  echo "$ac_t""yes" 1>&6
 
10591
  echo "$as_me: failed program was:" >&5
 
10592
sed 's/^/| /' conftest.$ac_ext >&5
 
10593
 
 
10594
        ac_cv_lib_ipc_shmat=no
 
10595
fi
 
10596
 
 
10597
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10598
      conftest$ac_exeext conftest.$ac_ext
 
10599
LIBS=$ac_check_lib_save_LIBS
 
10600
fi
 
10601
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
10602
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
 
10603
if test $ac_cv_lib_ipc_shmat = yes; then
4046
10604
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4047
 
else
4048
 
  echo "$ac_t""no" 1>&6
4049
10605
fi
4050
10606
 
4051
10607
    fi
4052
10608
  fi
4053
10609
 
4054
10610
  # Check for libraries that X11R6 Xt/Xaw programs need.
4055
 
  ac_save_LDFLAGS="$LDFLAGS"
 
10611
  ac_save_LDFLAGS=$LDFLAGS
4056
10612
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4057
10613
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4058
10614
  # check for ICE first), but we must link in the order -lSM -lICE or
4059
10615
  # we get undefined symbols.  So assume we have SM if we have ICE.
4060
10616
  # These have to be linked with before -lX11, unlike the other
4061
10617
  # libraries we check for below, so use a different variable.
4062
 
  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4063
 
  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4064
 
echo "configure:4065: checking for IceConnectionNumber in -lICE" >&5
4065
 
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4066
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4067
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10618
  # John Interrante, Karl Berry
 
10619
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
10620
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
 
10621
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
10622
  echo $ECHO_N "(cached) $ECHO_C" >&6
4068
10623
else
4069
 
  ac_save_LIBS="$LIBS"
 
10624
  ac_check_lib_save_LIBS=$LIBS
4070
10625
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4071
 
cat > conftest.$ac_ext <<EOF
4072
 
#line 4073 "configure"
4073
 
#include "confdefs.h"
4074
 
/* Override any gcc2 internal prototype to avoid an error.  */
4075
 
/* We use char because int might match the return type of a gcc2
4076
 
    builtin and then its argument prototype would still apply.  */
4077
 
char IceConnectionNumber();
 
10626
cat >conftest.$ac_ext <<_ACEOF
 
10627
/* confdefs.h.  */
 
10628
_ACEOF
 
10629
cat confdefs.h >>conftest.$ac_ext
 
10630
cat >>conftest.$ac_ext <<_ACEOF
 
10631
/* end confdefs.h.  */
4078
10632
 
4079
 
int main() {
4080
 
IceConnectionNumber()
4081
 
; return 0; }
4082
 
EOF
4083
 
if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4084
 
  rm -rf conftest*
4085
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
10633
/* Override any GCC internal prototype to avoid an error.
 
10634
   Use char because int might match the return type of a GCC
 
10635
   builtin and then its argument prototype would still apply.  */
 
10636
#ifdef __cplusplus
 
10637
extern "C"
 
10638
#endif
 
10639
char IceConnectionNumber ();
 
10640
int
 
10641
main ()
 
10642
{
 
10643
return IceConnectionNumber ();
 
10644
  ;
 
10645
  return 0;
 
10646
}
 
10647
_ACEOF
 
10648
rm -f conftest.$ac_objext conftest$ac_exeext
 
10649
if { (ac_try="$ac_link"
 
10650
case "(($ac_try" in
 
10651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10652
  *) ac_try_echo=$ac_try;;
 
10653
esac
 
10654
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10655
  (eval "$ac_link") 2>conftest.er1
 
10656
  ac_status=$?
 
10657
  grep -v '^ *+' conftest.er1 >conftest.err
 
10658
  rm -f conftest.er1
 
10659
  cat conftest.err >&5
 
10660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10661
  (exit $ac_status); } && {
 
10662
         test -z "$ac_c_werror_flag" ||
 
10663
         test ! -s conftest.err
 
10664
       } && test -s conftest$ac_exeext &&
 
10665
       $as_test_x conftest$ac_exeext; then
 
10666
  ac_cv_lib_ICE_IceConnectionNumber=yes
4086
10667
else
4087
 
  echo "configure: failed program was:" >&5
4088
 
  cat conftest.$ac_ext >&5
4089
 
  rm -rf conftest*
4090
 
  eval "ac_cv_lib_$ac_lib_var=no"
4091
 
fi
4092
 
rm -f conftest*
4093
 
LIBS="$ac_save_LIBS"
4094
 
 
4095
 
fi
4096
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4097
 
  echo "$ac_t""yes" 1>&6
 
10668
  echo "$as_me: failed program was:" >&5
 
10669
sed 's/^/| /' conftest.$ac_ext >&5
 
10670
 
 
10671
        ac_cv_lib_ICE_IceConnectionNumber=no
 
10672
fi
 
10673
 
 
10674
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10675
      conftest$ac_exeext conftest.$ac_ext
 
10676
LIBS=$ac_check_lib_save_LIBS
 
10677
fi
 
10678
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
10679
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
 
10680
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4098
10681
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4099
 
else
4100
 
  echo "$ac_t""no" 1>&6
4101
 
fi
4102
 
 
4103
 
  LDFLAGS="$ac_save_LDFLAGS"
4104
 
 
4105
 
fi
4106
 
 
4107
 
PWDD=`pwd`      
4108
 
echo $ac_n "checking for long file names""... $ac_c" 1>&6
4109
 
echo "configure:4110: checking for long file names" >&5
4110
 
if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4111
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10682
fi
 
10683
 
 
10684
  LDFLAGS=$ac_save_LDFLAGS
 
10685
 
 
10686
fi
 
10687
 
 
10688
PWDD=`pwd`
 
10689
{ echo "$as_me:$LINENO: checking for long file names" >&5
 
10690
echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
 
10691
if test "${ac_cv_sys_long_file_names+set}" = set; then
 
10692
  echo $ECHO_N "(cached) $ECHO_C" >&6
4112
10693
else
4113
10694
  ac_cv_sys_long_file_names=yes
4114
10695
# Test for long file names in all the places we know might matter:
4115
10696
#      .                the current directory, where building will happen
4116
10697
#      $prefix/lib      where we will be installing things
4117
10698
#      $exec_prefix/lib likewise
4118
 
# eval it to expand exec_prefix.
4119
10699
#      $TMPDIR          if set, where it might want to write temporary files
4120
 
# if $TMPDIR is not set:
4121
10700
#      /tmp             where it might want to write temporary files
4122
10701
#      /var/tmp         likewise
4123
10702
#      /usr/tmp         likewise
4124
 
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4125
 
  ac_tmpdirs="$TMPDIR"
4126
 
else
4127
 
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4128
 
fi
4129
 
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4130
 
  test -d $ac_dir || continue
4131
 
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
4132
 
  (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4133
 
  (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4134
 
  val=`cat $ac_dir/conftest9012345 2>/dev/null`
4135
 
  if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
 
10703
for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
 
10704
  # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
 
10705
  # in the usual case where exec_prefix is '${prefix}'.
 
10706
  case $ac_dir in #(
 
10707
    . | /* | ?:[\\/]*) ;; #(
 
10708
    *) continue;;
 
10709
  esac
 
10710
  test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
 
10711
  ac_xdir=$ac_dir/cf$$
 
10712
  (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
 
10713
  ac_tf1=$ac_xdir/conftest9012345
 
10714
  ac_tf2=$ac_xdir/conftest9012346
 
10715
  touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
4136
10716
    ac_cv_sys_long_file_names=no
4137
 
    rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4138
 
    break
4139
 
  fi
4140
 
  rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
 
10717
  rm -f -r "$ac_xdir" 2>/dev/null
 
10718
  test $ac_cv_sys_long_file_names = no && break
4141
10719
done
4142
10720
fi
4143
 
 
4144
 
echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
 
10721
{ echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
 
10722
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
4145
10723
if test $ac_cv_sys_long_file_names = yes; then
4146
 
  cat >> confdefs.h <<\EOF
 
10724
 
 
10725
cat >>confdefs.h <<\_ACEOF
4147
10726
#define HAVE_LONG_FILE_NAMES 1
4148
 
EOF
 
10727
_ACEOF
4149
10728
 
4150
10729
fi
4151
10730
 
4152
10731
 
4153
 
echo $ac_n "checking for -lrpcsvc""... $ac_c" 1>&6
4154
 
echo "configure:4155: checking for -lrpcsvc" >&5
4155
 
if eval "test \"`echo '$''{'ac_cv_lib_rpcsvc'+set}'`\" = set"; then
4156
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10732
{ echo "$as_me:$LINENO: checking for main in -lrpcsvc" >&5
 
10733
echo $ECHO_N "checking for main in -lrpcsvc... $ECHO_C" >&6; }
 
10734
if test "${ac_cv_lib_rpcsvc_main+set}" = set; then
 
10735
  echo $ECHO_N "(cached) $ECHO_C" >&6
4157
10736
else
4158
 
  ac_save_LIBS="$LIBS"
 
10737
  ac_check_lib_save_LIBS=$LIBS
4159
10738
LIBS="-lrpcsvc  $LIBS"
4160
 
cat > conftest.$ac_ext <<EOF
4161
 
#line 4162 "configure"
4162
 
#include "confdefs.h"
4163
 
 
4164
 
int main() {
4165
 
main()
4166
 
; return 0; }
4167
 
EOF
4168
 
if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4169
 
  rm -rf conftest*
4170
 
  ac_cv_lib_rpcsvc=yes
 
10739
cat >conftest.$ac_ext <<_ACEOF
 
10740
/* confdefs.h.  */
 
10741
_ACEOF
 
10742
cat confdefs.h >>conftest.$ac_ext
 
10743
cat >>conftest.$ac_ext <<_ACEOF
 
10744
/* end confdefs.h.  */
 
10745
 
 
10746
 
 
10747
int
 
10748
main ()
 
10749
{
 
10750
return main ();
 
10751
  ;
 
10752
  return 0;
 
10753
}
 
10754
_ACEOF
 
10755
rm -f conftest.$ac_objext conftest$ac_exeext
 
10756
if { (ac_try="$ac_link"
 
10757
case "(($ac_try" in
 
10758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10759
  *) ac_try_echo=$ac_try;;
 
10760
esac
 
10761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10762
  (eval "$ac_link") 2>conftest.er1
 
10763
  ac_status=$?
 
10764
  grep -v '^ *+' conftest.er1 >conftest.err
 
10765
  rm -f conftest.er1
 
10766
  cat conftest.err >&5
 
10767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10768
  (exit $ac_status); } && {
 
10769
         test -z "$ac_c_werror_flag" ||
 
10770
         test ! -s conftest.err
 
10771
       } && test -s conftest$ac_exeext &&
 
10772
       $as_test_x conftest$ac_exeext; then
 
10773
  ac_cv_lib_rpcsvc_main=yes
4171
10774
else
4172
 
  echo "configure: failed program was:" >&5
4173
 
  cat conftest.$ac_ext >&5
4174
 
  rm -rf conftest*
4175
 
  ac_cv_lib_rpcsvc=no
4176
 
fi
4177
 
rm -f conftest*
4178
 
LIBS="$ac_save_LIBS"
4179
 
 
4180
 
fi
4181
 
echo "$ac_t""$ac_cv_lib_rpcsvc" 1>&6
4182
 
if test "$ac_cv_lib_rpcsvc" = yes; then
 
10775
  echo "$as_me: failed program was:" >&5
 
10776
sed 's/^/| /' conftest.$ac_ext >&5
 
10777
 
 
10778
        ac_cv_lib_rpcsvc_main=no
 
10779
fi
 
10780
 
 
10781
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10782
      conftest$ac_exeext conftest.$ac_ext
 
10783
LIBS=$ac_check_lib_save_LIBS
 
10784
fi
 
10785
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsvc_main" >&5
 
10786
echo "${ECHO_T}$ac_cv_lib_rpcsvc_main" >&6; }
 
10787
if test $ac_cv_lib_rpcsvc_main = yes; then
4183
10788
  rpcsvc_lib="-lrpcsvc"
4184
10789
fi
4185
 
   
4186
 
echo $ac_n "checking for xdr_mon in -lrpcsvc""... $ac_c" 1>&6
4187
 
echo "configure:4188: checking for xdr_mon in -lrpcsvc" >&5
4188
 
ac_lib_var=`echo rpcsvc'_'xdr_mon | sed 'y%./+-%__p_%'`
4189
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4190
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10790
ac_cv_lib_rpcsvc=ac_cv_lib_rpcsvc_main
 
10791
 
 
10792
{ echo "$as_me:$LINENO: checking for xdr_mon in -lrpcsvc" >&5
 
10793
echo $ECHO_N "checking for xdr_mon in -lrpcsvc... $ECHO_C" >&6; }
 
10794
if test "${ac_cv_lib_rpcsvc_xdr_mon+set}" = set; then
 
10795
  echo $ECHO_N "(cached) $ECHO_C" >&6
4191
10796
else
4192
 
  ac_save_LIBS="$LIBS"
 
10797
  ac_check_lib_save_LIBS=$LIBS
4193
10798
LIBS="-lrpcsvc  $LIBS"
4194
 
cat > conftest.$ac_ext <<EOF
4195
 
#line 4196 "configure"
4196
 
#include "confdefs.h"
4197
 
/* Override any gcc2 internal prototype to avoid an error.  */
4198
 
/* We use char because int might match the return type of a gcc2
4199
 
    builtin and then its argument prototype would still apply.  */
4200
 
char xdr_mon();
 
10799
cat >conftest.$ac_ext <<_ACEOF
 
10800
/* confdefs.h.  */
 
10801
_ACEOF
 
10802
cat confdefs.h >>conftest.$ac_ext
 
10803
cat >>conftest.$ac_ext <<_ACEOF
 
10804
/* end confdefs.h.  */
4201
10805
 
4202
 
int main() {
4203
 
xdr_mon()
4204
 
; return 0; }
4205
 
EOF
4206
 
if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4207
 
  rm -rf conftest*
4208
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
10806
/* Override any GCC internal prototype to avoid an error.
 
10807
   Use char because int might match the return type of a GCC
 
10808
   builtin and then its argument prototype would still apply.  */
 
10809
#ifdef __cplusplus
 
10810
extern "C"
 
10811
#endif
 
10812
char xdr_mon ();
 
10813
int
 
10814
main ()
 
10815
{
 
10816
return xdr_mon ();
 
10817
  ;
 
10818
  return 0;
 
10819
}
 
10820
_ACEOF
 
10821
rm -f conftest.$ac_objext conftest$ac_exeext
 
10822
if { (ac_try="$ac_link"
 
10823
case "(($ac_try" in
 
10824
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10825
  *) ac_try_echo=$ac_try;;
 
10826
esac
 
10827
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10828
  (eval "$ac_link") 2>conftest.er1
 
10829
  ac_status=$?
 
10830
  grep -v '^ *+' conftest.er1 >conftest.err
 
10831
  rm -f conftest.er1
 
10832
  cat conftest.err >&5
 
10833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10834
  (exit $ac_status); } && {
 
10835
         test -z "$ac_c_werror_flag" ||
 
10836
         test ! -s conftest.err
 
10837
       } && test -s conftest$ac_exeext &&
 
10838
       $as_test_x conftest$ac_exeext; then
 
10839
  ac_cv_lib_rpcsvc_xdr_mon=yes
4209
10840
else
4210
 
  echo "configure: failed program was:" >&5
4211
 
  cat conftest.$ac_ext >&5
4212
 
  rm -rf conftest*
4213
 
  eval "ac_cv_lib_$ac_lib_var=no"
4214
 
fi
4215
 
rm -f conftest*
4216
 
LIBS="$ac_save_LIBS"
4217
 
 
4218
 
fi
4219
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4220
 
  echo "$ac_t""yes" 1>&6
4221
 
  cat >> confdefs.h <<\EOF
 
10841
  echo "$as_me: failed program was:" >&5
 
10842
sed 's/^/| /' conftest.$ac_ext >&5
 
10843
 
 
10844
        ac_cv_lib_rpcsvc_xdr_mon=no
 
10845
fi
 
10846
 
 
10847
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10848
      conftest$ac_exeext conftest.$ac_ext
 
10849
LIBS=$ac_check_lib_save_LIBS
 
10850
fi
 
10851
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsvc_xdr_mon" >&5
 
10852
echo "${ECHO_T}$ac_cv_lib_rpcsvc_xdr_mon" >&6; }
 
10853
if test $ac_cv_lib_rpcsvc_xdr_mon = yes; then
 
10854
  cat >>confdefs.h <<\_ACEOF
4222
10855
#define HAVE_XDR_MON 1
4223
 
EOF
 
10856
_ACEOF
4224
10857
 
4225
 
else
4226
 
  echo "$ac_t""no" 1>&6
4227
10858
fi
4228
10859
 
4229
10860
 
4230
10861
 
4231
 
echo $ac_n "checking for lfind in -lcompat""... $ac_c" 1>&6
4232
 
echo "configure:4233: checking for lfind in -lcompat" >&5
4233
 
ac_lib_var=`echo compat'_'lfind | sed 'y%./+-%__p_%'`
4234
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4235
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10862
{ echo "$as_me:$LINENO: checking for lfind in -lcompat" >&5
 
10863
echo $ECHO_N "checking for lfind in -lcompat... $ECHO_C" >&6; }
 
10864
if test "${ac_cv_lib_compat_lfind+set}" = set; then
 
10865
  echo $ECHO_N "(cached) $ECHO_C" >&6
4236
10866
else
4237
 
  ac_save_LIBS="$LIBS"
 
10867
  ac_check_lib_save_LIBS=$LIBS
4238
10868
LIBS="-lcompat  $LIBS"
4239
 
cat > conftest.$ac_ext <<EOF
4240
 
#line 4241 "configure"
4241
 
#include "confdefs.h"
4242
 
/* Override any gcc2 internal prototype to avoid an error.  */
4243
 
/* We use char because int might match the return type of a gcc2
4244
 
    builtin and then its argument prototype would still apply.  */
4245
 
char lfind();
 
10869
cat >conftest.$ac_ext <<_ACEOF
 
10870
/* confdefs.h.  */
 
10871
_ACEOF
 
10872
cat confdefs.h >>conftest.$ac_ext
 
10873
cat >>conftest.$ac_ext <<_ACEOF
 
10874
/* end confdefs.h.  */
4246
10875
 
4247
 
int main() {
4248
 
lfind()
4249
 
; return 0; }
4250
 
EOF
4251
 
if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4252
 
  rm -rf conftest*
4253
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
10876
/* Override any GCC internal prototype to avoid an error.
 
10877
   Use char because int might match the return type of a GCC
 
10878
   builtin and then its argument prototype would still apply.  */
 
10879
#ifdef __cplusplus
 
10880
extern "C"
 
10881
#endif
 
10882
char lfind ();
 
10883
int
 
10884
main ()
 
10885
{
 
10886
return lfind ();
 
10887
  ;
 
10888
  return 0;
 
10889
}
 
10890
_ACEOF
 
10891
rm -f conftest.$ac_objext conftest$ac_exeext
 
10892
if { (ac_try="$ac_link"
 
10893
case "(($ac_try" in
 
10894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10895
  *) ac_try_echo=$ac_try;;
 
10896
esac
 
10897
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10898
  (eval "$ac_link") 2>conftest.er1
 
10899
  ac_status=$?
 
10900
  grep -v '^ *+' conftest.er1 >conftest.err
 
10901
  rm -f conftest.er1
 
10902
  cat conftest.err >&5
 
10903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10904
  (exit $ac_status); } && {
 
10905
         test -z "$ac_c_werror_flag" ||
 
10906
         test ! -s conftest.err
 
10907
       } && test -s conftest$ac_exeext &&
 
10908
       $as_test_x conftest$ac_exeext; then
 
10909
  ac_cv_lib_compat_lfind=yes
4254
10910
else
4255
 
  echo "configure: failed program was:" >&5
4256
 
  cat conftest.$ac_ext >&5
4257
 
  rm -rf conftest*
4258
 
  eval "ac_cv_lib_$ac_lib_var=no"
4259
 
fi
4260
 
rm -f conftest*
4261
 
LIBS="$ac_save_LIBS"
4262
 
 
4263
 
fi
4264
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4265
 
  echo "$ac_t""yes" 1>&6
 
10911
  echo "$as_me: failed program was:" >&5
 
10912
sed 's/^/| /' conftest.$ac_ext >&5
 
10913
 
 
10914
        ac_cv_lib_compat_lfind=no
 
10915
fi
 
10916
 
 
10917
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10918
      conftest$ac_exeext conftest.$ac_ext
 
10919
LIBS=$ac_check_lib_save_LIBS
 
10920
fi
 
10921
{ echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lfind" >&5
 
10922
echo "${ECHO_T}$ac_cv_lib_compat_lfind" >&6; }
 
10923
if test $ac_cv_lib_compat_lfind = yes; then
4266
10924
  compat_lib="-lcompat"
4267
 
else
4268
 
  echo "$ac_t""no" 1>&6
4269
10925
fi
4270
10926
 
4271
10927
 
4272
10928
 
4273
10929
 
4274
 
test -n "$resolv_lib" && (echo $ac_n "checking for inet_neta in -lresolv""... $ac_c" 1>&6
4275
 
echo "configure:4276: checking for inet_neta in -lresolv" >&5
4276
 
ac_lib_var=`echo resolv'_'inet_neta | sed 'y%./+-%__p_%'`
4277
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4278
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10930
test -n "$resolv_lib" && ({ echo "$as_me:$LINENO: checking for inet_neta in -lresolv" >&5
 
10931
echo $ECHO_N "checking for inet_neta in -lresolv... $ECHO_C" >&6; }
 
10932
if test "${ac_cv_lib_resolv_inet_neta+set}" = set; then
 
10933
  echo $ECHO_N "(cached) $ECHO_C" >&6
4279
10934
else
4280
 
  ac_save_LIBS="$LIBS"
 
10935
  ac_check_lib_save_LIBS=$LIBS
4281
10936
LIBS="-lresolv  $LIBS"
4282
 
cat > conftest.$ac_ext <<EOF
4283
 
#line 4284 "configure"
4284
 
#include "confdefs.h"
4285
 
/* Override any gcc2 internal prototype to avoid an error.  */
4286
 
/* We use char because int might match the return type of a gcc2
4287
 
    builtin and then its argument prototype would still apply.  */
4288
 
char inet_neta();
 
10937
cat >conftest.$ac_ext <<_ACEOF
 
10938
/* confdefs.h.  */
 
10939
_ACEOF
 
10940
cat confdefs.h >>conftest.$ac_ext
 
10941
cat >>conftest.$ac_ext <<_ACEOF
 
10942
/* end confdefs.h.  */
4289
10943
 
4290
 
int main() {
4291
 
inet_neta()
4292
 
; return 0; }
4293
 
EOF
4294
 
if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4295
 
  rm -rf conftest*
4296
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
10944
/* Override any GCC internal prototype to avoid an error.
 
10945
   Use char because int might match the return type of a GCC
 
10946
   builtin and then its argument prototype would still apply.  */
 
10947
#ifdef __cplusplus
 
10948
extern "C"
 
10949
#endif
 
10950
char inet_neta ();
 
10951
int
 
10952
main ()
 
10953
{
 
10954
return inet_neta ();
 
10955
  ;
 
10956
  return 0;
 
10957
}
 
10958
_ACEOF
 
10959
rm -f conftest.$ac_objext conftest$ac_exeext
 
10960
if { (ac_try="$ac_link"
 
10961
case "(($ac_try" in
 
10962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10963
  *) ac_try_echo=$ac_try;;
 
10964
esac
 
10965
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10966
  (eval "$ac_link") 2>conftest.er1
 
10967
  ac_status=$?
 
10968
  grep -v '^ *+' conftest.er1 >conftest.err
 
10969
  rm -f conftest.er1
 
10970
  cat conftest.err >&5
 
10971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10972
  (exit $ac_status); } && {
 
10973
         test -z "$ac_c_werror_flag" ||
 
10974
         test ! -s conftest.err
 
10975
       } && test -s conftest$ac_exeext &&
 
10976
       $as_test_x conftest$ac_exeext; then
 
10977
  ac_cv_lib_resolv_inet_neta=yes
4297
10978
else
4298
 
  echo "configure: failed program was:" >&5
4299
 
  cat conftest.$ac_ext >&5
4300
 
  rm -rf conftest*
4301
 
  eval "ac_cv_lib_$ac_lib_var=no"
4302
 
fi
4303
 
rm -f conftest*
4304
 
LIBS="$ac_save_LIBS"
4305
 
 
4306
 
fi
4307
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4308
 
  echo "$ac_t""yes" 1>&6
4309
 
  cat >> confdefs.h <<\EOF
 
10979
  echo "$as_me: failed program was:" >&5
 
10980
sed 's/^/| /' conftest.$ac_ext >&5
 
10981
 
 
10982
        ac_cv_lib_resolv_inet_neta=no
 
10983
fi
 
10984
 
 
10985
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10986
      conftest$ac_exeext conftest.$ac_ext
 
10987
LIBS=$ac_check_lib_save_LIBS
 
10988
fi
 
10989
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_neta" >&5
 
10990
echo "${ECHO_T}$ac_cv_lib_resolv_inet_neta" >&6; }
 
10991
if test $ac_cv_lib_resolv_inet_neta = yes; then
 
10992
  cat >>confdefs.h <<\_ACEOF
4310
10993
#define HAVE_INET_NETA 1
4311
 
EOF
 
10994
_ACEOF
4312
10995
 
4313
 
else
4314
 
  echo "$ac_t""no" 1>&6
4315
10996
fi
4316
10997
)
4317
10998
 
4318
10999
 
4319
11000
test -n "$libwrap" && {
4320
 
        echo $ac_n "checking for -lwrap""... $ac_c" 1>&6
4321
 
echo "configure:4322: checking for -lwrap" >&5
4322
 
if eval "test \"`echo '$''{'ac_cv_lib_wrap'+set}'`\" = set"; then
4323
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11001
 
 
11002
{ echo "$as_me:$LINENO: checking for main in -lwrap" >&5
 
11003
echo $ECHO_N "checking for main in -lwrap... $ECHO_C" >&6; }
 
11004
if test "${ac_cv_lib_wrap_main+set}" = set; then
 
11005
  echo $ECHO_N "(cached) $ECHO_C" >&6
4324
11006
else
4325
 
  ac_save_LIBS="$LIBS"
 
11007
  ac_check_lib_save_LIBS=$LIBS
4326
11008
LIBS="-lwrap  $LIBS"
4327
 
cat > conftest.$ac_ext <<EOF
4328
 
#line 4329 "configure"
4329
 
#include "confdefs.h"
4330
 
 
4331
 
int main() {
4332
 
main()
4333
 
; return 0; }
4334
 
EOF
4335
 
if { (eval echo configure:4336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4336
 
  rm -rf conftest*
4337
 
  ac_cv_lib_wrap=yes
 
11009
cat >conftest.$ac_ext <<_ACEOF
 
11010
/* confdefs.h.  */
 
11011
_ACEOF
 
11012
cat confdefs.h >>conftest.$ac_ext
 
11013
cat >>conftest.$ac_ext <<_ACEOF
 
11014
/* end confdefs.h.  */
 
11015
 
 
11016
 
 
11017
int
 
11018
main ()
 
11019
{
 
11020
return main ();
 
11021
  ;
 
11022
  return 0;
 
11023
}
 
11024
_ACEOF
 
11025
rm -f conftest.$ac_objext conftest$ac_exeext
 
11026
if { (ac_try="$ac_link"
 
11027
case "(($ac_try" in
 
11028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11029
  *) ac_try_echo=$ac_try;;
 
11030
esac
 
11031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11032
  (eval "$ac_link") 2>conftest.er1
 
11033
  ac_status=$?
 
11034
  grep -v '^ *+' conftest.er1 >conftest.err
 
11035
  rm -f conftest.er1
 
11036
  cat conftest.err >&5
 
11037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11038
  (exit $ac_status); } && {
 
11039
         test -z "$ac_c_werror_flag" ||
 
11040
         test ! -s conftest.err
 
11041
       } && test -s conftest$ac_exeext &&
 
11042
       $as_test_x conftest$ac_exeext; then
 
11043
  ac_cv_lib_wrap_main=yes
4338
11044
else
4339
 
  echo "configure: failed program was:" >&5
4340
 
  cat conftest.$ac_ext >&5
4341
 
  rm -rf conftest*
4342
 
  ac_cv_lib_wrap=no
4343
 
fi
4344
 
rm -f conftest*
4345
 
LIBS="$ac_save_LIBS"
4346
 
 
4347
 
fi
4348
 
echo "$ac_t""$ac_cv_lib_wrap" 1>&6
4349
 
if test "$ac_cv_lib_wrap" = yes; then
4350
 
  cat >> confdefs.h <<\EOF
 
11045
  echo "$as_me: failed program was:" >&5
 
11046
sed 's/^/| /' conftest.$ac_ext >&5
 
11047
 
 
11048
        ac_cv_lib_wrap_main=no
 
11049
fi
 
11050
 
 
11051
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11052
      conftest$ac_exeext conftest.$ac_ext
 
11053
LIBS=$ac_check_lib_save_LIBS
 
11054
fi
 
11055
{ echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_main" >&5
 
11056
echo "${ECHO_T}$ac_cv_lib_wrap_main" >&6; }
 
11057
if test $ac_cv_lib_wrap_main = yes; then
 
11058
  cat >>confdefs.h <<_ACEOF
4351
11059
#define HAVE_LIBWRAP 1
4352
 
EOF
 
11060
_ACEOF
4353
11061
 
4354
11062
  LIBS="-lwrap $LIBS"
4355
11063
 
4356
11064
else
4357
 
  { echo "configure: error: "The switch --enable-tcpwrappers has been set but your system lacks libwrap !"" 1>&2; exit 1; }
4358
 
fi
4359
 
 
4360
 
        ac_safe=`echo "tcpd.h" | sed 'y%./+-%__p_%'`
4361
 
echo $ac_n "checking for tcpd.h""... $ac_c" 1>&6
4362
 
echo "configure:4363: checking for tcpd.h" >&5
4363
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4364
 
  echo $ac_n "(cached) $ac_c" 1>&6
4365
 
else
4366
 
  cat > conftest.$ac_ext <<EOF
4367
 
#line 4368 "configure"
4368
 
#include "confdefs.h"
4369
 
#include <tcpd.h>
4370
 
EOF
4371
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4372
 
{ (eval echo configure:4373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4373
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4374
 
if test -z "$ac_err"; then
4375
 
  rm -rf conftest*
4376
 
  eval "ac_cv_header_$ac_safe=yes"
4377
 
else
4378
 
  echo "$ac_err" >&5
4379
 
  echo "configure: failed program was:" >&5
4380
 
  cat conftest.$ac_ext >&5
4381
 
  rm -rf conftest*
4382
 
  eval "ac_cv_header_$ac_safe=no"
4383
 
fi
4384
 
rm -f conftest*
4385
 
fi
4386
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4387
 
  echo "$ac_t""yes" 1>&6
 
11065
  { { echo "$as_me:$LINENO: error: \"The switch --enable-tcpwrappers has been set but your system lacks libwrap !\"" >&5
 
11066
echo "$as_me: error: \"The switch --enable-tcpwrappers has been set but your system lacks libwrap !\"" >&2;}
 
11067
   { (exit 1); exit 1; }; }
 
11068
fi
 
11069
ac_cv_lib_wrap=ac_cv_lib_wrap_main
 
11070
 
 
11071
        if test "${ac_cv_header_tcpd_h+set}" = set; then
 
11072
  { echo "$as_me:$LINENO: checking for tcpd.h" >&5
 
11073
echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6; }
 
11074
if test "${ac_cv_header_tcpd_h+set}" = set; then
 
11075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11076
fi
 
11077
{ echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
 
11078
echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6; }
 
11079
else
 
11080
  # Is the header compilable?
 
11081
{ echo "$as_me:$LINENO: checking tcpd.h usability" >&5
 
11082
echo $ECHO_N "checking tcpd.h usability... $ECHO_C" >&6; }
 
11083
cat >conftest.$ac_ext <<_ACEOF
 
11084
/* confdefs.h.  */
 
11085
_ACEOF
 
11086
cat confdefs.h >>conftest.$ac_ext
 
11087
cat >>conftest.$ac_ext <<_ACEOF
 
11088
/* end confdefs.h.  */
 
11089
$ac_includes_default
 
11090
#include <tcpd.h>
 
11091
_ACEOF
 
11092
rm -f conftest.$ac_objext
 
11093
if { (ac_try="$ac_compile"
 
11094
case "(($ac_try" in
 
11095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11096
  *) ac_try_echo=$ac_try;;
 
11097
esac
 
11098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11099
  (eval "$ac_compile") 2>conftest.er1
 
11100
  ac_status=$?
 
11101
  grep -v '^ *+' conftest.er1 >conftest.err
 
11102
  rm -f conftest.er1
 
11103
  cat conftest.err >&5
 
11104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11105
  (exit $ac_status); } && {
 
11106
         test -z "$ac_c_werror_flag" ||
 
11107
         test ! -s conftest.err
 
11108
       } && test -s conftest.$ac_objext; then
 
11109
  ac_header_compiler=yes
 
11110
else
 
11111
  echo "$as_me: failed program was:" >&5
 
11112
sed 's/^/| /' conftest.$ac_ext >&5
 
11113
 
 
11114
        ac_header_compiler=no
 
11115
fi
 
11116
 
 
11117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11118
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11119
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
11120
 
 
11121
# Is the header present?
 
11122
{ echo "$as_me:$LINENO: checking tcpd.h presence" >&5
 
11123
echo $ECHO_N "checking tcpd.h presence... $ECHO_C" >&6; }
 
11124
cat >conftest.$ac_ext <<_ACEOF
 
11125
/* confdefs.h.  */
 
11126
_ACEOF
 
11127
cat confdefs.h >>conftest.$ac_ext
 
11128
cat >>conftest.$ac_ext <<_ACEOF
 
11129
/* end confdefs.h.  */
 
11130
#include <tcpd.h>
 
11131
_ACEOF
 
11132
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
11133
case "(($ac_try" in
 
11134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11135
  *) ac_try_echo=$ac_try;;
 
11136
esac
 
11137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11138
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
11139
  ac_status=$?
 
11140
  grep -v '^ *+' conftest.er1 >conftest.err
 
11141
  rm -f conftest.er1
 
11142
  cat conftest.err >&5
 
11143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11144
  (exit $ac_status); } >/dev/null && {
 
11145
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
11146
         test ! -s conftest.err
 
11147
       }; then
 
11148
  ac_header_preproc=yes
 
11149
else
 
11150
  echo "$as_me: failed program was:" >&5
 
11151
sed 's/^/| /' conftest.$ac_ext >&5
 
11152
 
 
11153
  ac_header_preproc=no
 
11154
fi
 
11155
 
 
11156
rm -f conftest.err conftest.$ac_ext
 
11157
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11158
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
11159
 
 
11160
# So?  What about this header?
 
11161
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11162
  yes:no: )
 
11163
    { echo "$as_me:$LINENO: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
11164
echo "$as_me: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11165
    { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the compiler's result" >&5
 
11166
echo "$as_me: WARNING: tcpd.h: proceeding with the compiler's result" >&2;}
 
11167
    ac_header_preproc=yes
 
11168
    ;;
 
11169
  no:yes:* )
 
11170
    { echo "$as_me:$LINENO: WARNING: tcpd.h: present but cannot be compiled" >&5
 
11171
echo "$as_me: WARNING: tcpd.h: present but cannot be compiled" >&2;}
 
11172
    { echo "$as_me:$LINENO: WARNING: tcpd.h:     check for missing prerequisite headers?" >&5
 
11173
echo "$as_me: WARNING: tcpd.h:     check for missing prerequisite headers?" >&2;}
 
11174
    { echo "$as_me:$LINENO: WARNING: tcpd.h: see the Autoconf documentation" >&5
 
11175
echo "$as_me: WARNING: tcpd.h: see the Autoconf documentation" >&2;}
 
11176
    { echo "$as_me:$LINENO: WARNING: tcpd.h:     section \"Present But Cannot Be Compiled\"" >&5
 
11177
echo "$as_me: WARNING: tcpd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11178
    { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the preprocessor's result" >&5
 
11179
echo "$as_me: WARNING: tcpd.h: proceeding with the preprocessor's result" >&2;}
 
11180
    { echo "$as_me:$LINENO: WARNING: tcpd.h: in the future, the compiler will take precedence" >&5
 
11181
echo "$as_me: WARNING: tcpd.h: in the future, the compiler will take precedence" >&2;}
 
11182
 
 
11183
    ;;
 
11184
esac
 
11185
{ echo "$as_me:$LINENO: checking for tcpd.h" >&5
 
11186
echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6; }
 
11187
if test "${ac_cv_header_tcpd_h+set}" = set; then
 
11188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11189
else
 
11190
  ac_cv_header_tcpd_h=$ac_header_preproc
 
11191
fi
 
11192
{ echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
 
11193
echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6; }
 
11194
 
 
11195
fi
 
11196
if test $ac_cv_header_tcpd_h = yes; then
4388
11197
  :
4389
11198
else
4390
 
  echo "$ac_t""no" 1>&6
4391
 
{ echo "configure: error: "The switch --enable-tcpwrappers has been set but your system lacks tcpd.h !"" 1>&2; exit 1; }
 
11199
  { { echo "$as_me:$LINENO: error: \"The switch --enable-tcpwrappers has been set but your system lacks tcpd.h !\"" >&5
 
11200
echo "$as_me: error: \"The switch --enable-tcpwrappers has been set but your system lacks tcpd.h !\"" >&2;}
 
11201
   { (exit 1); exit 1; }; }
4392
11202
fi
4393
11203
 
 
11204
 
4394
11205
        uselibwrap="-DUSE_LIBWRAP"
4395
11206
        }
4396
 
echo $ac_n "checking for inet_aton in -lc""... $ac_c" 1>&6
4397
 
echo "configure:4398: checking for inet_aton in -lc" >&5
4398
 
ac_lib_var=`echo c'_'inet_aton | sed 'y%./+-%__p_%'`
4399
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4400
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11207
{ echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
 
11208
echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
 
11209
if test "${ac_cv_lib_c_inet_aton+set}" = set; then
 
11210
  echo $ECHO_N "(cached) $ECHO_C" >&6
4401
11211
else
4402
 
  ac_save_LIBS="$LIBS"
 
11212
  ac_check_lib_save_LIBS=$LIBS
4403
11213
LIBS="-lc  $LIBS"
4404
 
cat > conftest.$ac_ext <<EOF
4405
 
#line 4406 "configure"
4406
 
#include "confdefs.h"
4407
 
/* Override any gcc2 internal prototype to avoid an error.  */
4408
 
/* We use char because int might match the return type of a gcc2
4409
 
    builtin and then its argument prototype would still apply.  */
4410
 
char inet_aton();
 
11214
cat >conftest.$ac_ext <<_ACEOF
 
11215
/* confdefs.h.  */
 
11216
_ACEOF
 
11217
cat confdefs.h >>conftest.$ac_ext
 
11218
cat >>conftest.$ac_ext <<_ACEOF
 
11219
/* end confdefs.h.  */
4411
11220
 
4412
 
int main() {
4413
 
inet_aton()
4414
 
; return 0; }
4415
 
EOF
4416
 
if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4417
 
  rm -rf conftest*
4418
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
11221
/* Override any GCC internal prototype to avoid an error.
 
11222
   Use char because int might match the return type of a GCC
 
11223
   builtin and then its argument prototype would still apply.  */
 
11224
#ifdef __cplusplus
 
11225
extern "C"
 
11226
#endif
 
11227
char inet_aton ();
 
11228
int
 
11229
main ()
 
11230
{
 
11231
return inet_aton ();
 
11232
  ;
 
11233
  return 0;
 
11234
}
 
11235
_ACEOF
 
11236
rm -f conftest.$ac_objext conftest$ac_exeext
 
11237
if { (ac_try="$ac_link"
 
11238
case "(($ac_try" in
 
11239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11240
  *) ac_try_echo=$ac_try;;
 
11241
esac
 
11242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11243
  (eval "$ac_link") 2>conftest.er1
 
11244
  ac_status=$?
 
11245
  grep -v '^ *+' conftest.er1 >conftest.err
 
11246
  rm -f conftest.er1
 
11247
  cat conftest.err >&5
 
11248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11249
  (exit $ac_status); } && {
 
11250
         test -z "$ac_c_werror_flag" ||
 
11251
         test ! -s conftest.err
 
11252
       } && test -s conftest$ac_exeext &&
 
11253
       $as_test_x conftest$ac_exeext; then
 
11254
  ac_cv_lib_c_inet_aton=yes
4419
11255
else
4420
 
  echo "configure: failed program was:" >&5
4421
 
  cat conftest.$ac_ext >&5
4422
 
  rm -rf conftest*
4423
 
  eval "ac_cv_lib_$ac_lib_var=no"
4424
 
fi
4425
 
rm -f conftest*
4426
 
LIBS="$ac_save_LIBS"
4427
 
 
4428
 
fi
4429
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4430
 
  echo "$ac_t""yes" 1>&6
4431
 
  cat >> confdefs.h <<\EOF
 
11256
  echo "$as_me: failed program was:" >&5
 
11257
sed 's/^/| /' conftest.$ac_ext >&5
 
11258
 
 
11259
        ac_cv_lib_c_inet_aton=no
 
11260
fi
 
11261
 
 
11262
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11263
      conftest$ac_exeext conftest.$ac_ext
 
11264
LIBS=$ac_check_lib_save_LIBS
 
11265
fi
 
11266
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
 
11267
echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
 
11268
if test $ac_cv_lib_c_inet_aton = yes; then
 
11269
  cat >>confdefs.h <<\_ACEOF
4432
11270
#define HAVE_INET_ATON 1
4433
 
EOF
 
11271
_ACEOF
4434
11272
 
4435
 
else
4436
 
  echo "$ac_t""no" 1>&6
4437
11273
fi
4438
11274
 
4439
 
echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4440
 
echo "configure:4441: checking for inet_aton in -lresolv" >&5
4441
 
ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
4442
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4443
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11275
{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
 
11276
echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
 
11277
if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
 
11278
  echo $ECHO_N "(cached) $ECHO_C" >&6
4444
11279
else
4445
 
  ac_save_LIBS="$LIBS"
 
11280
  ac_check_lib_save_LIBS=$LIBS
4446
11281
LIBS="-lresolv  $LIBS"
4447
 
cat > conftest.$ac_ext <<EOF
4448
 
#line 4449 "configure"
4449
 
#include "confdefs.h"
4450
 
/* Override any gcc2 internal prototype to avoid an error.  */
4451
 
/* We use char because int might match the return type of a gcc2
4452
 
    builtin and then its argument prototype would still apply.  */
4453
 
char inet_aton();
 
11282
cat >conftest.$ac_ext <<_ACEOF
 
11283
/* confdefs.h.  */
 
11284
_ACEOF
 
11285
cat confdefs.h >>conftest.$ac_ext
 
11286
cat >>conftest.$ac_ext <<_ACEOF
 
11287
/* end confdefs.h.  */
4454
11288
 
4455
 
int main() {
4456
 
inet_aton()
4457
 
; return 0; }
4458
 
EOF
4459
 
if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4460
 
  rm -rf conftest*
4461
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
11289
/* Override any GCC internal prototype to avoid an error.
 
11290
   Use char because int might match the return type of a GCC
 
11291
   builtin and then its argument prototype would still apply.  */
 
11292
#ifdef __cplusplus
 
11293
extern "C"
 
11294
#endif
 
11295
char inet_aton ();
 
11296
int
 
11297
main ()
 
11298
{
 
11299
return inet_aton ();
 
11300
  ;
 
11301
  return 0;
 
11302
}
 
11303
_ACEOF
 
11304
rm -f conftest.$ac_objext conftest$ac_exeext
 
11305
if { (ac_try="$ac_link"
 
11306
case "(($ac_try" in
 
11307
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11308
  *) ac_try_echo=$ac_try;;
 
11309
esac
 
11310
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11311
  (eval "$ac_link") 2>conftest.er1
 
11312
  ac_status=$?
 
11313
  grep -v '^ *+' conftest.er1 >conftest.err
 
11314
  rm -f conftest.er1
 
11315
  cat conftest.err >&5
 
11316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11317
  (exit $ac_status); } && {
 
11318
         test -z "$ac_c_werror_flag" ||
 
11319
         test ! -s conftest.err
 
11320
       } && test -s conftest$ac_exeext &&
 
11321
       $as_test_x conftest$ac_exeext; then
 
11322
  ac_cv_lib_resolv_inet_aton=yes
4462
11323
else
4463
 
  echo "configure: failed program was:" >&5
4464
 
  cat conftest.$ac_ext >&5
4465
 
  rm -rf conftest*
4466
 
  eval "ac_cv_lib_$ac_lib_var=no"
4467
 
fi
4468
 
rm -f conftest*
4469
 
LIBS="$ac_save_LIBS"
4470
 
 
4471
 
fi
4472
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4473
 
  echo "$ac_t""yes" 1>&6
4474
 
  cat >> confdefs.h <<\EOF
 
11324
  echo "$as_me: failed program was:" >&5
 
11325
sed 's/^/| /' conftest.$ac_ext >&5
 
11326
 
 
11327
        ac_cv_lib_resolv_inet_aton=no
 
11328
fi
 
11329
 
 
11330
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11331
      conftest$ac_exeext conftest.$ac_ext
 
11332
LIBS=$ac_check_lib_save_LIBS
 
11333
fi
 
11334
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
 
11335
echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
 
11336
if test $ac_cv_lib_resolv_inet_aton = yes; then
 
11337
  cat >>confdefs.h <<\_ACEOF
4475
11338
#define HAVE_INET_ATON 1
4476
 
EOF
 
11339
_ACEOF
4477
11340
 
4478
 
else
4479
 
  echo "$ac_t""no" 1>&6
4480
11341
fi
4481
11342
 
4482
11343
 
4483
 
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4484
 
echo "configure:4485: checking for dlopen in -ldl" >&5
4485
 
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4486
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4487
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11344
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11345
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
11346
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11347
  echo $ECHO_N "(cached) $ECHO_C" >&6
4488
11348
else
4489
 
  ac_save_LIBS="$LIBS"
 
11349
  ac_check_lib_save_LIBS=$LIBS
4490
11350
LIBS="-ldl  $LIBS"
4491
 
cat > conftest.$ac_ext <<EOF
4492
 
#line 4493 "configure"
4493
 
#include "confdefs.h"
4494
 
/* Override any gcc2 internal prototype to avoid an error.  */
4495
 
/* We use char because int might match the return type of a gcc2
4496
 
    builtin and then its argument prototype would still apply.  */
4497
 
char dlopen();
 
11351
cat >conftest.$ac_ext <<_ACEOF
 
11352
/* confdefs.h.  */
 
11353
_ACEOF
 
11354
cat confdefs.h >>conftest.$ac_ext
 
11355
cat >>conftest.$ac_ext <<_ACEOF
 
11356
/* end confdefs.h.  */
4498
11357
 
4499
 
int main() {
4500
 
dlopen()
4501
 
; return 0; }
4502
 
EOF
4503
 
if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4504
 
  rm -rf conftest*
4505
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
11358
/* Override any GCC internal prototype to avoid an error.
 
11359
   Use char because int might match the return type of a GCC
 
11360
   builtin and then its argument prototype would still apply.  */
 
11361
#ifdef __cplusplus
 
11362
extern "C"
 
11363
#endif
 
11364
char dlopen ();
 
11365
int
 
11366
main ()
 
11367
{
 
11368
return dlopen ();
 
11369
  ;
 
11370
  return 0;
 
11371
}
 
11372
_ACEOF
 
11373
rm -f conftest.$ac_objext conftest$ac_exeext
 
11374
if { (ac_try="$ac_link"
 
11375
case "(($ac_try" in
 
11376
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11377
  *) ac_try_echo=$ac_try;;
 
11378
esac
 
11379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11380
  (eval "$ac_link") 2>conftest.er1
 
11381
  ac_status=$?
 
11382
  grep -v '^ *+' conftest.er1 >conftest.err
 
11383
  rm -f conftest.er1
 
11384
  cat conftest.err >&5
 
11385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11386
  (exit $ac_status); } && {
 
11387
         test -z "$ac_c_werror_flag" ||
 
11388
         test ! -s conftest.err
 
11389
       } && test -s conftest$ac_exeext &&
 
11390
       $as_test_x conftest$ac_exeext; then
 
11391
  ac_cv_lib_dl_dlopen=yes
4506
11392
else
4507
 
  echo "configure: failed program was:" >&5
4508
 
  cat conftest.$ac_ext >&5
4509
 
  rm -rf conftest*
4510
 
  eval "ac_cv_lib_$ac_lib_var=no"
4511
 
fi
4512
 
rm -f conftest*
4513
 
LIBS="$ac_save_LIBS"
4514
 
 
4515
 
fi
4516
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4517
 
  echo "$ac_t""yes" 1>&6
4518
 
  dl_lib="-ldl" ; cat >> confdefs.h <<\EOF
 
11393
  echo "$as_me: failed program was:" >&5
 
11394
sed 's/^/| /' conftest.$ac_ext >&5
 
11395
 
 
11396
        ac_cv_lib_dl_dlopen=no
 
11397
fi
 
11398
 
 
11399
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11400
      conftest$ac_exeext conftest.$ac_ext
 
11401
LIBS=$ac_check_lib_save_LIBS
 
11402
fi
 
11403
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11404
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
11405
if test $ac_cv_lib_dl_dlopen = yes; then
 
11406
  dl_lib="-ldl" ; cat >>confdefs.h <<\_ACEOF
4519
11407
#define HAVE_DL_LIB 1
4520
 
EOF
 
11408
_ACEOF
4521
11409
 
4522
 
else
4523
 
  echo "$ac_t""no" 1>&6
4524
11410
fi
4525
11411
 
 
11412
 
4526
11413
for ac_func in shl_load
4527
11414
do
4528
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4529
 
echo "configure:4530: checking for $ac_func" >&5
4530
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4531
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11415
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11416
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11417
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11418
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11419
  echo $ECHO_N "(cached) $ECHO_C" >&6
4532
11420
else
4533
 
  cat > conftest.$ac_ext <<EOF
4534
 
#line 4535 "configure"
4535
 
#include "confdefs.h"
 
11421
  cat >conftest.$ac_ext <<_ACEOF
 
11422
/* confdefs.h.  */
 
11423
_ACEOF
 
11424
cat confdefs.h >>conftest.$ac_ext
 
11425
cat >>conftest.$ac_ext <<_ACEOF
 
11426
/* end confdefs.h.  */
 
11427
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11428
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11429
#define $ac_func innocuous_$ac_func
 
11430
 
4536
11431
/* System header to define __stub macros and hopefully few prototypes,
4537
 
    which can conflict with char $ac_func(); below.  */
4538
 
#include <assert.h>
4539
 
/* Override any gcc2 internal prototype to avoid an error.  */
4540
 
/* We use char because int might match the return type of a gcc2
4541
 
    builtin and then its argument prototype would still apply.  */
4542
 
char $ac_func();
4543
 
 
4544
 
int main() {
4545
 
 
 
11432
    which can conflict with char $ac_func (); below.
 
11433
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11434
    <limits.h> exists even on freestanding compilers.  */
 
11435
 
 
11436
#ifdef __STDC__
 
11437
# include <limits.h>
 
11438
#else
 
11439
# include <assert.h>
 
11440
#endif
 
11441
 
 
11442
#undef $ac_func
 
11443
 
 
11444
/* Override any GCC internal prototype to avoid an error.
 
11445
   Use char because int might match the return type of a GCC
 
11446
   builtin and then its argument prototype would still apply.  */
 
11447
#ifdef __cplusplus
 
11448
extern "C"
 
11449
#endif
 
11450
char $ac_func ();
4546
11451
/* The GNU C library defines this for functions which it implements
4547
11452
    to always fail with ENOSYS.  Some functions are actually named
4548
11453
    something starting with __ and the normal name is an alias.  */
4549
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11454
#if defined __stub_$ac_func || defined __stub___$ac_func
4550
11455
choke me
4551
 
#else
4552
 
$ac_func();
4553
11456
#endif
4554
11457
 
4555
 
; return 0; }
4556
 
EOF
4557
 
if { (eval echo configure:4558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4558
 
  rm -rf conftest*
4559
 
  eval "ac_cv_func_$ac_func=yes"
4560
 
else
4561
 
  echo "configure: failed program was:" >&5
4562
 
  cat conftest.$ac_ext >&5
4563
 
  rm -rf conftest*
4564
 
  eval "ac_cv_func_$ac_func=no"
4565
 
fi
4566
 
rm -f conftest*
4567
 
fi
4568
 
 
4569
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4570
 
  echo "$ac_t""yes" 1>&6
4571
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4572
 
  cat >> confdefs.h <<EOF
4573
 
#define $ac_tr_func 1
4574
 
EOF
4575
 
 
4576
 
else
4577
 
  echo "$ac_t""no" 1>&6
 
11458
int
 
11459
main ()
 
11460
{
 
11461
return $ac_func ();
 
11462
  ;
 
11463
  return 0;
 
11464
}
 
11465
_ACEOF
 
11466
rm -f conftest.$ac_objext conftest$ac_exeext
 
11467
if { (ac_try="$ac_link"
 
11468
case "(($ac_try" in
 
11469
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11470
  *) ac_try_echo=$ac_try;;
 
11471
esac
 
11472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11473
  (eval "$ac_link") 2>conftest.er1
 
11474
  ac_status=$?
 
11475
  grep -v '^ *+' conftest.er1 >conftest.err
 
11476
  rm -f conftest.er1
 
11477
  cat conftest.err >&5
 
11478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11479
  (exit $ac_status); } && {
 
11480
         test -z "$ac_c_werror_flag" ||
 
11481
         test ! -s conftest.err
 
11482
       } && test -s conftest$ac_exeext &&
 
11483
       $as_test_x conftest$ac_exeext; then
 
11484
  eval "$as_ac_var=yes"
 
11485
else
 
11486
  echo "$as_me: failed program was:" >&5
 
11487
sed 's/^/| /' conftest.$ac_ext >&5
 
11488
 
 
11489
        eval "$as_ac_var=no"
 
11490
fi
 
11491
 
 
11492
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11493
      conftest$ac_exeext conftest.$ac_ext
 
11494
fi
 
11495
ac_res=`eval echo '${'$as_ac_var'}'`
 
11496
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11497
echo "${ECHO_T}$ac_res" >&6; }
 
11498
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11499
  cat >>confdefs.h <<_ACEOF
 
11500
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11501
_ACEOF
 
11502
 
4578
11503
fi
4579
11504
done
4580
11505
 
 
11506
 
4581
11507
for ac_func in NSCreateObjectFileImageFromFile
4582
11508
do
4583
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4584
 
echo "configure:4585: checking for $ac_func" >&5
4585
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4586
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11509
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11510
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11511
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11512
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11513
  echo $ECHO_N "(cached) $ECHO_C" >&6
4587
11514
else
4588
 
  cat > conftest.$ac_ext <<EOF
4589
 
#line 4590 "configure"
4590
 
#include "confdefs.h"
 
11515
  cat >conftest.$ac_ext <<_ACEOF
 
11516
/* confdefs.h.  */
 
11517
_ACEOF
 
11518
cat confdefs.h >>conftest.$ac_ext
 
11519
cat >>conftest.$ac_ext <<_ACEOF
 
11520
/* end confdefs.h.  */
 
11521
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11522
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11523
#define $ac_func innocuous_$ac_func
 
11524
 
4591
11525
/* System header to define __stub macros and hopefully few prototypes,
4592
 
    which can conflict with char $ac_func(); below.  */
4593
 
#include <assert.h>
4594
 
/* Override any gcc2 internal prototype to avoid an error.  */
4595
 
/* We use char because int might match the return type of a gcc2
4596
 
    builtin and then its argument prototype would still apply.  */
4597
 
char $ac_func();
4598
 
 
4599
 
int main() {
4600
 
 
 
11526
    which can conflict with char $ac_func (); below.
 
11527
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11528
    <limits.h> exists even on freestanding compilers.  */
 
11529
 
 
11530
#ifdef __STDC__
 
11531
# include <limits.h>
 
11532
#else
 
11533
# include <assert.h>
 
11534
#endif
 
11535
 
 
11536
#undef $ac_func
 
11537
 
 
11538
/* Override any GCC internal prototype to avoid an error.
 
11539
   Use char because int might match the return type of a GCC
 
11540
   builtin and then its argument prototype would still apply.  */
 
11541
#ifdef __cplusplus
 
11542
extern "C"
 
11543
#endif
 
11544
char $ac_func ();
4601
11545
/* The GNU C library defines this for functions which it implements
4602
11546
    to always fail with ENOSYS.  Some functions are actually named
4603
11547
    something starting with __ and the normal name is an alias.  */
4604
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11548
#if defined __stub_$ac_func || defined __stub___$ac_func
4605
11549
choke me
4606
 
#else
4607
 
$ac_func();
4608
11550
#endif
4609
11551
 
4610
 
; return 0; }
4611
 
EOF
4612
 
if { (eval echo configure:4613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4613
 
  rm -rf conftest*
4614
 
  eval "ac_cv_func_$ac_func=yes"
4615
 
else
4616
 
  echo "configure: failed program was:" >&5
4617
 
  cat conftest.$ac_ext >&5
4618
 
  rm -rf conftest*
4619
 
  eval "ac_cv_func_$ac_func=no"
4620
 
fi
4621
 
rm -f conftest*
4622
 
fi
4623
 
 
4624
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4625
 
  echo "$ac_t""yes" 1>&6
4626
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4627
 
  cat >> confdefs.h <<EOF
4628
 
#define $ac_tr_func 1
4629
 
EOF
4630
 
 
4631
 
else
4632
 
  echo "$ac_t""no" 1>&6
 
11552
int
 
11553
main ()
 
11554
{
 
11555
return $ac_func ();
 
11556
  ;
 
11557
  return 0;
 
11558
}
 
11559
_ACEOF
 
11560
rm -f conftest.$ac_objext conftest$ac_exeext
 
11561
if { (ac_try="$ac_link"
 
11562
case "(($ac_try" in
 
11563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11564
  *) ac_try_echo=$ac_try;;
 
11565
esac
 
11566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11567
  (eval "$ac_link") 2>conftest.er1
 
11568
  ac_status=$?
 
11569
  grep -v '^ *+' conftest.er1 >conftest.err
 
11570
  rm -f conftest.er1
 
11571
  cat conftest.err >&5
 
11572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11573
  (exit $ac_status); } && {
 
11574
         test -z "$ac_c_werror_flag" ||
 
11575
         test ! -s conftest.err
 
11576
       } && test -s conftest$ac_exeext &&
 
11577
       $as_test_x conftest$ac_exeext; then
 
11578
  eval "$as_ac_var=yes"
 
11579
else
 
11580
  echo "$as_me: failed program was:" >&5
 
11581
sed 's/^/| /' conftest.$ac_ext >&5
 
11582
 
 
11583
        eval "$as_ac_var=no"
 
11584
fi
 
11585
 
 
11586
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11587
      conftest$ac_exeext conftest.$ac_ext
 
11588
fi
 
11589
ac_res=`eval echo '${'$as_ac_var'}'`
 
11590
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11591
echo "${ECHO_T}$ac_res" >&6; }
 
11592
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11593
  cat >>confdefs.h <<_ACEOF
 
11594
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11595
_ACEOF
 
11596
 
4633
11597
fi
4634
11598
done
4635
11599
 
4636
11600
 
4637
11601
LIBS=`$LIBOPENVASCONFIG --libs`
4638
11602
 
4639
 
echo $ac_n "checking for nessuslib_pthreads_enabled in -lnessus""... $ac_c" 1>&6
4640
 
echo "configure:4641: checking for nessuslib_pthreads_enabled in -lnessus" >&5
4641
 
ac_lib_var=`echo nessus'_'nessuslib_pthreads_enabled | sed 'y%./+-%__p_%'`
4642
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4643
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11603
{ echo "$as_me:$LINENO: checking for nessuslib_pthreads_enabled in -lnessus" >&5
 
11604
echo $ECHO_N "checking for nessuslib_pthreads_enabled in -lnessus... $ECHO_C" >&6; }
 
11605
if test "${ac_cv_lib_nessus_nessuslib_pthreads_enabled+set}" = set; then
 
11606
  echo $ECHO_N "(cached) $ECHO_C" >&6
4644
11607
else
4645
 
  ac_save_LIBS="$LIBS"
 
11608
  ac_check_lib_save_LIBS=$LIBS
4646
11609
LIBS="-lnessus  $LIBS"
4647
 
cat > conftest.$ac_ext <<EOF
4648
 
#line 4649 "configure"
4649
 
#include "confdefs.h"
4650
 
/* Override any gcc2 internal prototype to avoid an error.  */
4651
 
/* We use char because int might match the return type of a gcc2
4652
 
    builtin and then its argument prototype would still apply.  */
4653
 
char nessuslib_pthreads_enabled();
 
11610
cat >conftest.$ac_ext <<_ACEOF
 
11611
/* confdefs.h.  */
 
11612
_ACEOF
 
11613
cat confdefs.h >>conftest.$ac_ext
 
11614
cat >>conftest.$ac_ext <<_ACEOF
 
11615
/* end confdefs.h.  */
4654
11616
 
4655
 
int main() {
4656
 
nessuslib_pthreads_enabled()
4657
 
; return 0; }
4658
 
EOF
4659
 
if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660
 
  rm -rf conftest*
4661
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
11617
/* Override any GCC internal prototype to avoid an error.
 
11618
   Use char because int might match the return type of a GCC
 
11619
   builtin and then its argument prototype would still apply.  */
 
11620
#ifdef __cplusplus
 
11621
extern "C"
 
11622
#endif
 
11623
char nessuslib_pthreads_enabled ();
 
11624
int
 
11625
main ()
 
11626
{
 
11627
return nessuslib_pthreads_enabled ();
 
11628
  ;
 
11629
  return 0;
 
11630
}
 
11631
_ACEOF
 
11632
rm -f conftest.$ac_objext conftest$ac_exeext
 
11633
if { (ac_try="$ac_link"
 
11634
case "(($ac_try" in
 
11635
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11636
  *) ac_try_echo=$ac_try;;
 
11637
esac
 
11638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11639
  (eval "$ac_link") 2>conftest.er1
 
11640
  ac_status=$?
 
11641
  grep -v '^ *+' conftest.er1 >conftest.err
 
11642
  rm -f conftest.er1
 
11643
  cat conftest.err >&5
 
11644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11645
  (exit $ac_status); } && {
 
11646
         test -z "$ac_c_werror_flag" ||
 
11647
         test ! -s conftest.err
 
11648
       } && test -s conftest$ac_exeext &&
 
11649
       $as_test_x conftest$ac_exeext; then
 
11650
  ac_cv_lib_nessus_nessuslib_pthreads_enabled=yes
4662
11651
else
4663
 
  echo "configure: failed program was:" >&5
4664
 
  cat conftest.$ac_ext >&5
4665
 
  rm -rf conftest*
4666
 
  eval "ac_cv_lib_$ac_lib_var=no"
4667
 
fi
4668
 
rm -f conftest*
4669
 
LIBS="$ac_save_LIBS"
4670
 
 
4671
 
fi
4672
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4673
 
  echo "$ac_t""yes" 1>&6
 
11652
  echo "$as_me: failed program was:" >&5
 
11653
sed 's/^/| /' conftest.$ac_ext >&5
 
11654
 
 
11655
        ac_cv_lib_nessus_nessuslib_pthreads_enabled=no
 
11656
fi
 
11657
 
 
11658
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11659
      conftest$ac_exeext conftest.$ac_ext
 
11660
LIBS=$ac_check_lib_save_LIBS
 
11661
fi
 
11662
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nessus_nessuslib_pthreads_enabled" >&5
 
11663
echo "${ECHO_T}$ac_cv_lib_nessus_nessuslib_pthreads_enabled" >&6; }
 
11664
if test $ac_cv_lib_nessus_nessuslib_pthreads_enabled = yes; then
4674
11665
  use_pthreads="-DUSE_PTHREADS -DTHREADS -D_REENTRANT"
4675
 
else
4676
 
  echo "$ac_t""no" 1>&6
4677
11666
fi
4678
11667
 
4679
11668
 
4680
11669
test "$use_pthreads" && {
4681
 
        for ac_hdr in pthread.h
 
11670
 
 
11671
for ac_header in pthread.h
4682
11672
do
4683
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4684
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4685
 
echo "configure:4686: checking for $ac_hdr" >&5
4686
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4687
 
  echo $ac_n "(cached) $ac_c" 1>&6
4688
 
else
4689
 
  cat > conftest.$ac_ext <<EOF
4690
 
#line 4691 "configure"
4691
 
#include "confdefs.h"
4692
 
#include <$ac_hdr>
4693
 
EOF
4694
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4695
 
{ (eval echo configure:4696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4696
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4697
 
if test -z "$ac_err"; then
4698
 
  rm -rf conftest*
4699
 
  eval "ac_cv_header_$ac_safe=yes"
4700
 
else
4701
 
  echo "$ac_err" >&5
4702
 
  echo "configure: failed program was:" >&5
4703
 
  cat conftest.$ac_ext >&5
4704
 
  rm -rf conftest*
4705
 
  eval "ac_cv_header_$ac_safe=no"
4706
 
fi
4707
 
rm -f conftest*
4708
 
fi
4709
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4710
 
  echo "$ac_t""yes" 1>&6
4711
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4712
 
  cat >> confdefs.h <<EOF
4713
 
#define $ac_tr_hdr 1
4714
 
EOF
4715
 
 
4716
 
else
4717
 
  echo "$ac_t""no" 1>&6
4718
 
fi
 
11673
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11674
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11675
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11676
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
11677
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11679
fi
 
11680
ac_res=`eval echo '${'$as_ac_Header'}'`
 
11681
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11682
echo "${ECHO_T}$ac_res" >&6; }
 
11683
else
 
11684
  # Is the header compilable?
 
11685
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11686
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
11687
cat >conftest.$ac_ext <<_ACEOF
 
11688
/* confdefs.h.  */
 
11689
_ACEOF
 
11690
cat confdefs.h >>conftest.$ac_ext
 
11691
cat >>conftest.$ac_ext <<_ACEOF
 
11692
/* end confdefs.h.  */
 
11693
$ac_includes_default
 
11694
#include <$ac_header>
 
11695
_ACEOF
 
11696
rm -f conftest.$ac_objext
 
11697
if { (ac_try="$ac_compile"
 
11698
case "(($ac_try" in
 
11699
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11700
  *) ac_try_echo=$ac_try;;
 
11701
esac
 
11702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11703
  (eval "$ac_compile") 2>conftest.er1
 
11704
  ac_status=$?
 
11705
  grep -v '^ *+' conftest.er1 >conftest.err
 
11706
  rm -f conftest.er1
 
11707
  cat conftest.err >&5
 
11708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11709
  (exit $ac_status); } && {
 
11710
         test -z "$ac_c_werror_flag" ||
 
11711
         test ! -s conftest.err
 
11712
       } && test -s conftest.$ac_objext; then
 
11713
  ac_header_compiler=yes
 
11714
else
 
11715
  echo "$as_me: failed program was:" >&5
 
11716
sed 's/^/| /' conftest.$ac_ext >&5
 
11717
 
 
11718
        ac_header_compiler=no
 
11719
fi
 
11720
 
 
11721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11722
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11723
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
11724
 
 
11725
# Is the header present?
 
11726
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11727
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
11728
cat >conftest.$ac_ext <<_ACEOF
 
11729
/* confdefs.h.  */
 
11730
_ACEOF
 
11731
cat confdefs.h >>conftest.$ac_ext
 
11732
cat >>conftest.$ac_ext <<_ACEOF
 
11733
/* end confdefs.h.  */
 
11734
#include <$ac_header>
 
11735
_ACEOF
 
11736
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
11737
case "(($ac_try" in
 
11738
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11739
  *) ac_try_echo=$ac_try;;
 
11740
esac
 
11741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11742
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
11743
  ac_status=$?
 
11744
  grep -v '^ *+' conftest.er1 >conftest.err
 
11745
  rm -f conftest.er1
 
11746
  cat conftest.err >&5
 
11747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11748
  (exit $ac_status); } >/dev/null && {
 
11749
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
11750
         test ! -s conftest.err
 
11751
       }; then
 
11752
  ac_header_preproc=yes
 
11753
else
 
11754
  echo "$as_me: failed program was:" >&5
 
11755
sed 's/^/| /' conftest.$ac_ext >&5
 
11756
 
 
11757
  ac_header_preproc=no
 
11758
fi
 
11759
 
 
11760
rm -f conftest.err conftest.$ac_ext
 
11761
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11762
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
11763
 
 
11764
# So?  What about this header?
 
11765
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11766
  yes:no: )
 
11767
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11768
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11769
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11770
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11771
    ac_header_preproc=yes
 
11772
    ;;
 
11773
  no:yes:* )
 
11774
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11775
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11776
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11777
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11778
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11779
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11780
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11781
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11782
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11783
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11784
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11785
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11786
 
 
11787
    ;;
 
11788
esac
 
11789
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11790
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
11791
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11792
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11793
else
 
11794
  eval "$as_ac_Header=\$ac_header_preproc"
 
11795
fi
 
11796
ac_res=`eval echo '${'$as_ac_Header'}'`
 
11797
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11798
echo "${ECHO_T}$ac_res" >&6; }
 
11799
 
 
11800
fi
 
11801
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11802
  cat >>confdefs.h <<_ACEOF
 
11803
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11804
_ACEOF
 
11805
 
 
11806
fi
 
11807
 
4719
11808
done
4720
11809
 
4721
 
                echo $ac_n "checking if we have a broken pthread_cleanup_push""... $ac_c" 1>&6
4722
 
echo "configure:4723: checking if we have a broken pthread_cleanup_push" >&5
4723
 
        cat > conftest.$ac_ext <<EOF
4724
 
#line 4725 "configure"
4725
 
#include "confdefs.h"
 
11810
                { echo "$as_me:$LINENO: checking if we have a broken pthread_cleanup_push" >&5
 
11811
echo $ECHO_N "checking if we have a broken pthread_cleanup_push... $ECHO_C" >&6; }
 
11812
        cat >conftest.$ac_ext <<_ACEOF
 
11813
/* confdefs.h.  */
 
11814
_ACEOF
 
11815
cat confdefs.h >>conftest.$ac_ext
 
11816
cat >>conftest.$ac_ext <<_ACEOF
 
11817
/* end confdefs.h.  */
4726
11818
#include <pthread.h>
4727
 
        
4728
 
int main() {
 
11819
 
 
11820
int
 
11821
main ()
 
11822
{
4729
11823
void main(){pthread_cleanup_push(NULL,NULL);}
4730
 
; return 0; }
4731
 
EOF
4732
 
if { (eval echo configure:4733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4733
 
  rm -rf conftest*
4734
 
  echo "$ac_t""no" 1>&6
 
11824
  ;
 
11825
  return 0;
 
11826
}
 
11827
_ACEOF
 
11828
rm -f conftest.$ac_objext
 
11829
if { (ac_try="$ac_compile"
 
11830
case "(($ac_try" in
 
11831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11832
  *) ac_try_echo=$ac_try;;
 
11833
esac
 
11834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11835
  (eval "$ac_compile") 2>conftest.er1
 
11836
  ac_status=$?
 
11837
  grep -v '^ *+' conftest.er1 >conftest.err
 
11838
  rm -f conftest.er1
 
11839
  cat conftest.err >&5
 
11840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11841
  (exit $ac_status); } && {
 
11842
         test -z "$ac_c_werror_flag" ||
 
11843
         test ! -s conftest.err
 
11844
       } && test -s conftest.$ac_objext; then
 
11845
  { echo "$as_me:$LINENO: result: no" >&5
 
11846
echo "${ECHO_T}no" >&6; }
4735
11847
else
4736
 
  echo "configure: failed program was:" >&5
4737
 
  cat conftest.$ac_ext >&5
4738
 
  rm -rf conftest*
4739
 
  echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
 
11848
  echo "$as_me: failed program was:" >&5
 
11849
sed 's/^/| /' conftest.$ac_ext >&5
 
11850
 
 
11851
        { echo "$as_me:$LINENO: result: yes" >&5
 
11852
echo "${ECHO_T}yes" >&6; };cat >>confdefs.h <<\_ACEOF
4740
11853
#define BROKEN_PTHREAD_CLEANUP_PUSH 1
4741
 
EOF
 
11854
_ACEOF
4742
11855
 
4743
11856
fi
4744
 
rm -f conftest*
4745
 
 
4746
 
        
4747
 
        echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4748
 
echo "configure:4749: checking for pthread_create in -lpthread" >&5
4749
 
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4750
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4751
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11857
 
 
11858
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11859
 
 
11860
 
 
11861
        { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
11862
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
 
11863
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
11864
  echo $ECHO_N "(cached) $ECHO_C" >&6
4752
11865
else
4753
 
  ac_save_LIBS="$LIBS"
 
11866
  ac_check_lib_save_LIBS=$LIBS
4754
11867
LIBS="-lpthread  $LIBS"
4755
 
cat > conftest.$ac_ext <<EOF
4756
 
#line 4757 "configure"
4757
 
#include "confdefs.h"
4758
 
/* Override any gcc2 internal prototype to avoid an error.  */
4759
 
/* We use char because int might match the return type of a gcc2
4760
 
    builtin and then its argument prototype would still apply.  */
4761
 
char pthread_create();
 
11868
cat >conftest.$ac_ext <<_ACEOF
 
11869
/* confdefs.h.  */
 
11870
_ACEOF
 
11871
cat confdefs.h >>conftest.$ac_ext
 
11872
cat >>conftest.$ac_ext <<_ACEOF
 
11873
/* end confdefs.h.  */
4762
11874
 
4763
 
int main() {
4764
 
pthread_create()
4765
 
; return 0; }
4766
 
EOF
4767
 
if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4768
 
  rm -rf conftest*
4769
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
11875
/* Override any GCC internal prototype to avoid an error.
 
11876
   Use char because int might match the return type of a GCC
 
11877
   builtin and then its argument prototype would still apply.  */
 
11878
#ifdef __cplusplus
 
11879
extern "C"
 
11880
#endif
 
11881
char pthread_create ();
 
11882
int
 
11883
main ()
 
11884
{
 
11885
return pthread_create ();
 
11886
  ;
 
11887
  return 0;
 
11888
}
 
11889
_ACEOF
 
11890
rm -f conftest.$ac_objext conftest$ac_exeext
 
11891
if { (ac_try="$ac_link"
 
11892
case "(($ac_try" in
 
11893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11894
  *) ac_try_echo=$ac_try;;
 
11895
esac
 
11896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11897
  (eval "$ac_link") 2>conftest.er1
 
11898
  ac_status=$?
 
11899
  grep -v '^ *+' conftest.er1 >conftest.err
 
11900
  rm -f conftest.er1
 
11901
  cat conftest.err >&5
 
11902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11903
  (exit $ac_status); } && {
 
11904
         test -z "$ac_c_werror_flag" ||
 
11905
         test ! -s conftest.err
 
11906
       } && test -s conftest$ac_exeext &&
 
11907
       $as_test_x conftest$ac_exeext; then
 
11908
  ac_cv_lib_pthread_pthread_create=yes
4770
11909
else
4771
 
  echo "configure: failed program was:" >&5
4772
 
  cat conftest.$ac_ext >&5
4773
 
  rm -rf conftest*
4774
 
  eval "ac_cv_lib_$ac_lib_var=no"
4775
 
fi
4776
 
rm -f conftest*
4777
 
LIBS="$ac_save_LIBS"
4778
 
 
4779
 
fi
4780
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4781
 
  echo "$ac_t""yes" 1>&6
 
11910
  echo "$as_me: failed program was:" >&5
 
11911
sed 's/^/| /' conftest.$ac_ext >&5
 
11912
 
 
11913
        ac_cv_lib_pthread_pthread_create=no
 
11914
fi
 
11915
 
 
11916
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11917
      conftest$ac_exeext conftest.$ac_ext
 
11918
LIBS=$ac_check_lib_save_LIBS
 
11919
fi
 
11920
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
11921
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
 
11922
if test $ac_cv_lib_pthread_pthread_create = yes; then
4782
11923
  pthread_lib="-lpthread"
4783
 
else
4784
 
  echo "$ac_t""no" 1>&6
4785
 
fi
4786
 
 
4787
 
        echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6
4788
 
echo "configure:4789: checking for gethostbyname_r in -lc_r" >&5
4789
 
ac_lib_var=`echo c_r'_'gethostbyname_r | sed 'y%./+-%__p_%'`
4790
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4791
 
  echo $ac_n "(cached) $ac_c" 1>&6
4792
 
else
4793
 
  ac_save_LIBS="$LIBS"
4794
 
LIBS="-lc_r  $LIBS"
4795
 
cat > conftest.$ac_ext <<EOF
4796
 
#line 4797 "configure"
4797
 
#include "confdefs.h"
4798
 
/* Override any gcc2 internal prototype to avoid an error.  */
4799
 
/* We use char because int might match the return type of a gcc2
4800
 
    builtin and then its argument prototype would still apply.  */
4801
 
char gethostbyname_r();
4802
 
 
4803
 
int main() {
4804
 
gethostbyname_r()
4805
 
; return 0; }
4806
 
EOF
4807
 
if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4808
 
  rm -rf conftest*
4809
 
  eval "ac_cv_lib_$ac_lib_var=yes"
4810
 
else
4811
 
  echo "configure: failed program was:" >&5
4812
 
  cat conftest.$ac_ext >&5
4813
 
  rm -rf conftest*
4814
 
  eval "ac_cv_lib_$ac_lib_var=no"
4815
 
fi
4816
 
rm -f conftest*
4817
 
LIBS="$ac_save_LIBS"
4818
 
 
4819
 
fi
4820
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4821
 
  echo "$ac_t""yes" 1>&6
4822
 
  c_r_lib="-lc_r"
4823
 
else
4824
 
  echo "$ac_t""no" 1>&6
4825
 
fi
4826
 
 
4827
 
        echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4828
 
echo "configure:4829: checking for pthread_create in -lc_r" >&5
4829
 
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4830
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4831
 
  echo $ac_n "(cached) $ac_c" 1>&6
4832
 
else
4833
 
  ac_save_LIBS="$LIBS"
4834
 
LIBS="-lc_r  $LIBS"
4835
 
cat > conftest.$ac_ext <<EOF
4836
 
#line 4837 "configure"
4837
 
#include "confdefs.h"
4838
 
/* Override any gcc2 internal prototype to avoid an error.  */
4839
 
/* We use char because int might match the return type of a gcc2
4840
 
    builtin and then its argument prototype would still apply.  */
4841
 
char pthread_create();
4842
 
 
4843
 
int main() {
4844
 
pthread_create()
4845
 
; return 0; }
4846
 
EOF
4847
 
if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4848
 
  rm -rf conftest*
4849
 
  eval "ac_cv_lib_$ac_lib_var=yes"
4850
 
else
4851
 
  echo "configure: failed program was:" >&5
4852
 
  cat conftest.$ac_ext >&5
4853
 
  rm -rf conftest*
4854
 
  eval "ac_cv_lib_$ac_lib_var=no"
4855
 
fi
4856
 
rm -f conftest*
4857
 
LIBS="$ac_save_LIBS"
4858
 
 
4859
 
fi
4860
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4861
 
  echo "$ac_t""yes" 1>&6
4862
 
  c_r_lib="-lc_r"
4863
 
else
4864
 
  echo "$ac_t""no" 1>&6
4865
 
fi
4866
 
 
4867
 
        echo $ac_n "checking for gethostbyname_r in -lc""... $ac_c" 1>&6
4868
 
echo "configure:4869: checking for gethostbyname_r in -lc" >&5
4869
 
ac_lib_var=`echo c'_'gethostbyname_r | sed 'y%./+-%__p_%'`
4870
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4871
 
  echo $ac_n "(cached) $ac_c" 1>&6
4872
 
else
4873
 
  ac_save_LIBS="$LIBS"
 
11924
fi
 
11925
 
 
11926
        { echo "$as_me:$LINENO: checking for gethostbyname_r in -lc_r" >&5
 
11927
echo $ECHO_N "checking for gethostbyname_r in -lc_r... $ECHO_C" >&6; }
 
11928
if test "${ac_cv_lib_c_r_gethostbyname_r+set}" = set; then
 
11929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11930
else
 
11931
  ac_check_lib_save_LIBS=$LIBS
 
11932
LIBS="-lc_r  $LIBS"
 
11933
cat >conftest.$ac_ext <<_ACEOF
 
11934
/* confdefs.h.  */
 
11935
_ACEOF
 
11936
cat confdefs.h >>conftest.$ac_ext
 
11937
cat >>conftest.$ac_ext <<_ACEOF
 
11938
/* end confdefs.h.  */
 
11939
 
 
11940
/* Override any GCC internal prototype to avoid an error.
 
11941
   Use char because int might match the return type of a GCC
 
11942
   builtin and then its argument prototype would still apply.  */
 
11943
#ifdef __cplusplus
 
11944
extern "C"
 
11945
#endif
 
11946
char gethostbyname_r ();
 
11947
int
 
11948
main ()
 
11949
{
 
11950
return gethostbyname_r ();
 
11951
  ;
 
11952
  return 0;
 
11953
}
 
11954
_ACEOF
 
11955
rm -f conftest.$ac_objext conftest$ac_exeext
 
11956
if { (ac_try="$ac_link"
 
11957
case "(($ac_try" in
 
11958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11959
  *) ac_try_echo=$ac_try;;
 
11960
esac
 
11961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11962
  (eval "$ac_link") 2>conftest.er1
 
11963
  ac_status=$?
 
11964
  grep -v '^ *+' conftest.er1 >conftest.err
 
11965
  rm -f conftest.er1
 
11966
  cat conftest.err >&5
 
11967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11968
  (exit $ac_status); } && {
 
11969
         test -z "$ac_c_werror_flag" ||
 
11970
         test ! -s conftest.err
 
11971
       } && test -s conftest$ac_exeext &&
 
11972
       $as_test_x conftest$ac_exeext; then
 
11973
  ac_cv_lib_c_r_gethostbyname_r=yes
 
11974
else
 
11975
  echo "$as_me: failed program was:" >&5
 
11976
sed 's/^/| /' conftest.$ac_ext >&5
 
11977
 
 
11978
        ac_cv_lib_c_r_gethostbyname_r=no
 
11979
fi
 
11980
 
 
11981
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11982
      conftest$ac_exeext conftest.$ac_ext
 
11983
LIBS=$ac_check_lib_save_LIBS
 
11984
fi
 
11985
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyname_r" >&5
 
11986
echo "${ECHO_T}$ac_cv_lib_c_r_gethostbyname_r" >&6; }
 
11987
if test $ac_cv_lib_c_r_gethostbyname_r = yes; then
 
11988
  c_r_lib="-lc_r"
 
11989
fi
 
11990
 
 
11991
        { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
 
11992
echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
 
11993
if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
 
11994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11995
else
 
11996
  ac_check_lib_save_LIBS=$LIBS
 
11997
LIBS="-lc_r  $LIBS"
 
11998
cat >conftest.$ac_ext <<_ACEOF
 
11999
/* confdefs.h.  */
 
12000
_ACEOF
 
12001
cat confdefs.h >>conftest.$ac_ext
 
12002
cat >>conftest.$ac_ext <<_ACEOF
 
12003
/* end confdefs.h.  */
 
12004
 
 
12005
/* Override any GCC internal prototype to avoid an error.
 
12006
   Use char because int might match the return type of a GCC
 
12007
   builtin and then its argument prototype would still apply.  */
 
12008
#ifdef __cplusplus
 
12009
extern "C"
 
12010
#endif
 
12011
char pthread_create ();
 
12012
int
 
12013
main ()
 
12014
{
 
12015
return pthread_create ();
 
12016
  ;
 
12017
  return 0;
 
12018
}
 
12019
_ACEOF
 
12020
rm -f conftest.$ac_objext conftest$ac_exeext
 
12021
if { (ac_try="$ac_link"
 
12022
case "(($ac_try" in
 
12023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12024
  *) ac_try_echo=$ac_try;;
 
12025
esac
 
12026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12027
  (eval "$ac_link") 2>conftest.er1
 
12028
  ac_status=$?
 
12029
  grep -v '^ *+' conftest.er1 >conftest.err
 
12030
  rm -f conftest.er1
 
12031
  cat conftest.err >&5
 
12032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12033
  (exit $ac_status); } && {
 
12034
         test -z "$ac_c_werror_flag" ||
 
12035
         test ! -s conftest.err
 
12036
       } && test -s conftest$ac_exeext &&
 
12037
       $as_test_x conftest$ac_exeext; then
 
12038
  ac_cv_lib_c_r_pthread_create=yes
 
12039
else
 
12040
  echo "$as_me: failed program was:" >&5
 
12041
sed 's/^/| /' conftest.$ac_ext >&5
 
12042
 
 
12043
        ac_cv_lib_c_r_pthread_create=no
 
12044
fi
 
12045
 
 
12046
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12047
      conftest$ac_exeext conftest.$ac_ext
 
12048
LIBS=$ac_check_lib_save_LIBS
 
12049
fi
 
12050
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
 
12051
echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
 
12052
if test $ac_cv_lib_c_r_pthread_create = yes; then
 
12053
  c_r_lib="-lc_r"
 
12054
fi
 
12055
 
 
12056
        { echo "$as_me:$LINENO: checking for gethostbyname_r in -lc" >&5
 
12057
echo $ECHO_N "checking for gethostbyname_r in -lc... $ECHO_C" >&6; }
 
12058
if test "${ac_cv_lib_c_gethostbyname_r+set}" = set; then
 
12059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12060
else
 
12061
  ac_check_lib_save_LIBS=$LIBS
4874
12062
LIBS="-lc  $LIBS"
4875
 
cat > conftest.$ac_ext <<EOF
4876
 
#line 4877 "configure"
4877
 
#include "confdefs.h"
4878
 
/* Override any gcc2 internal prototype to avoid an error.  */
4879
 
/* We use char because int might match the return type of a gcc2
4880
 
    builtin and then its argument prototype would still apply.  */
4881
 
char gethostbyname_r();
 
12063
cat >conftest.$ac_ext <<_ACEOF
 
12064
/* confdefs.h.  */
 
12065
_ACEOF
 
12066
cat confdefs.h >>conftest.$ac_ext
 
12067
cat >>conftest.$ac_ext <<_ACEOF
 
12068
/* end confdefs.h.  */
4882
12069
 
4883
 
int main() {
4884
 
gethostbyname_r()
4885
 
; return 0; }
4886
 
EOF
4887
 
if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4888
 
  rm -rf conftest*
4889
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
12070
/* Override any GCC internal prototype to avoid an error.
 
12071
   Use char because int might match the return type of a GCC
 
12072
   builtin and then its argument prototype would still apply.  */
 
12073
#ifdef __cplusplus
 
12074
extern "C"
 
12075
#endif
 
12076
char gethostbyname_r ();
 
12077
int
 
12078
main ()
 
12079
{
 
12080
return gethostbyname_r ();
 
12081
  ;
 
12082
  return 0;
 
12083
}
 
12084
_ACEOF
 
12085
rm -f conftest.$ac_objext conftest$ac_exeext
 
12086
if { (ac_try="$ac_link"
 
12087
case "(($ac_try" in
 
12088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12089
  *) ac_try_echo=$ac_try;;
 
12090
esac
 
12091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12092
  (eval "$ac_link") 2>conftest.er1
 
12093
  ac_status=$?
 
12094
  grep -v '^ *+' conftest.er1 >conftest.err
 
12095
  rm -f conftest.er1
 
12096
  cat conftest.err >&5
 
12097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12098
  (exit $ac_status); } && {
 
12099
         test -z "$ac_c_werror_flag" ||
 
12100
         test ! -s conftest.err
 
12101
       } && test -s conftest$ac_exeext &&
 
12102
       $as_test_x conftest$ac_exeext; then
 
12103
  ac_cv_lib_c_gethostbyname_r=yes
4890
12104
else
4891
 
  echo "configure: failed program was:" >&5
4892
 
  cat conftest.$ac_ext >&5
4893
 
  rm -rf conftest*
4894
 
  eval "ac_cv_lib_$ac_lib_var=no"
4895
 
fi
4896
 
rm -f conftest*
4897
 
LIBS="$ac_save_LIBS"
4898
 
 
4899
 
fi
4900
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4901
 
  echo "$ac_t""yes" 1>&6
4902
 
  cat >> confdefs.h <<\EOF
 
12105
  echo "$as_me: failed program was:" >&5
 
12106
sed 's/^/| /' conftest.$ac_ext >&5
 
12107
 
 
12108
        ac_cv_lib_c_gethostbyname_r=no
 
12109
fi
 
12110
 
 
12111
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12112
      conftest$ac_exeext conftest.$ac_ext
 
12113
LIBS=$ac_check_lib_save_LIBS
 
12114
fi
 
12115
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_gethostbyname_r" >&5
 
12116
echo "${ECHO_T}$ac_cv_lib_c_gethostbyname_r" >&6; }
 
12117
if test $ac_cv_lib_c_gethostbyname_r = yes; then
 
12118
  cat >>confdefs.h <<\_ACEOF
4903
12119
#define HAVE_GETHOSTBYNAME_R 1
4904
 
EOF
 
12120
_ACEOF
4905
12121
 
4906
 
else
4907
 
  echo "$ac_t""no" 1>&6
4908
12122
fi
4909
12123
 
4910
 
        echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6
4911
 
echo "configure:4912: checking for gethostbyname_r in -lc_r" >&5
4912
 
ac_lib_var=`echo c_r'_'gethostbyname_r | sed 'y%./+-%__p_%'`
4913
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4914
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12124
        { echo "$as_me:$LINENO: checking for gethostbyname_r in -lc_r" >&5
 
12125
echo $ECHO_N "checking for gethostbyname_r in -lc_r... $ECHO_C" >&6; }
 
12126
if test "${ac_cv_lib_c_r_gethostbyname_r+set}" = set; then
 
12127
  echo $ECHO_N "(cached) $ECHO_C" >&6
4915
12128
else
4916
 
  ac_save_LIBS="$LIBS"
 
12129
  ac_check_lib_save_LIBS=$LIBS
4917
12130
LIBS="-lc_r  $LIBS"
4918
 
cat > conftest.$ac_ext <<EOF
4919
 
#line 4920 "configure"
4920
 
#include "confdefs.h"
4921
 
/* Override any gcc2 internal prototype to avoid an error.  */
4922
 
/* We use char because int might match the return type of a gcc2
4923
 
    builtin and then its argument prototype would still apply.  */
4924
 
char gethostbyname_r();
 
12131
cat >conftest.$ac_ext <<_ACEOF
 
12132
/* confdefs.h.  */
 
12133
_ACEOF
 
12134
cat confdefs.h >>conftest.$ac_ext
 
12135
cat >>conftest.$ac_ext <<_ACEOF
 
12136
/* end confdefs.h.  */
4925
12137
 
4926
 
int main() {
4927
 
gethostbyname_r()
4928
 
; return 0; }
4929
 
EOF
4930
 
if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931
 
  rm -rf conftest*
4932
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
12138
/* Override any GCC internal prototype to avoid an error.
 
12139
   Use char because int might match the return type of a GCC
 
12140
   builtin and then its argument prototype would still apply.  */
 
12141
#ifdef __cplusplus
 
12142
extern "C"
 
12143
#endif
 
12144
char gethostbyname_r ();
 
12145
int
 
12146
main ()
 
12147
{
 
12148
return gethostbyname_r ();
 
12149
  ;
 
12150
  return 0;
 
12151
}
 
12152
_ACEOF
 
12153
rm -f conftest.$ac_objext conftest$ac_exeext
 
12154
if { (ac_try="$ac_link"
 
12155
case "(($ac_try" in
 
12156
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12157
  *) ac_try_echo=$ac_try;;
 
12158
esac
 
12159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12160
  (eval "$ac_link") 2>conftest.er1
 
12161
  ac_status=$?
 
12162
  grep -v '^ *+' conftest.er1 >conftest.err
 
12163
  rm -f conftest.er1
 
12164
  cat conftest.err >&5
 
12165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12166
  (exit $ac_status); } && {
 
12167
         test -z "$ac_c_werror_flag" ||
 
12168
         test ! -s conftest.err
 
12169
       } && test -s conftest$ac_exeext &&
 
12170
       $as_test_x conftest$ac_exeext; then
 
12171
  ac_cv_lib_c_r_gethostbyname_r=yes
4933
12172
else
4934
 
  echo "configure: failed program was:" >&5
4935
 
  cat conftest.$ac_ext >&5
4936
 
  rm -rf conftest*
4937
 
  eval "ac_cv_lib_$ac_lib_var=no"
4938
 
fi
4939
 
rm -f conftest*
4940
 
LIBS="$ac_save_LIBS"
4941
 
 
4942
 
fi
4943
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4944
 
  echo "$ac_t""yes" 1>&6
4945
 
  cat >> confdefs.h <<\EOF
 
12173
  echo "$as_me: failed program was:" >&5
 
12174
sed 's/^/| /' conftest.$ac_ext >&5
 
12175
 
 
12176
        ac_cv_lib_c_r_gethostbyname_r=no
 
12177
fi
 
12178
 
 
12179
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12180
      conftest$ac_exeext conftest.$ac_ext
 
12181
LIBS=$ac_check_lib_save_LIBS
 
12182
fi
 
12183
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyname_r" >&5
 
12184
echo "${ECHO_T}$ac_cv_lib_c_r_gethostbyname_r" >&6; }
 
12185
if test $ac_cv_lib_c_r_gethostbyname_r = yes; then
 
12186
  cat >>confdefs.h <<\_ACEOF
4946
12187
#define HAVE_GETHOSTBYNAME_R 1
4947
 
EOF
 
12188
_ACEOF
4948
12189
 
4949
 
else
4950
 
  echo "$ac_t""no" 1>&6
4951
12190
fi
4952
12191
 
4953
 
        echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
4954
 
echo "configure:4955: checking for gethostbyname_r in -lnsl" >&5
4955
 
ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
4956
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4957
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12192
        { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
 
12193
echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
 
12194
if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
 
12195
  echo $ECHO_N "(cached) $ECHO_C" >&6
4958
12196
else
4959
 
  ac_save_LIBS="$LIBS"
 
12197
  ac_check_lib_save_LIBS=$LIBS
4960
12198
LIBS="-lnsl  $LIBS"
4961
 
cat > conftest.$ac_ext <<EOF
4962
 
#line 4963 "configure"
4963
 
#include "confdefs.h"
4964
 
/* Override any gcc2 internal prototype to avoid an error.  */
4965
 
/* We use char because int might match the return type of a gcc2
4966
 
    builtin and then its argument prototype would still apply.  */
4967
 
char gethostbyname_r();
 
12199
cat >conftest.$ac_ext <<_ACEOF
 
12200
/* confdefs.h.  */
 
12201
_ACEOF
 
12202
cat confdefs.h >>conftest.$ac_ext
 
12203
cat >>conftest.$ac_ext <<_ACEOF
 
12204
/* end confdefs.h.  */
4968
12205
 
4969
 
int main() {
4970
 
gethostbyname_r()
4971
 
; return 0; }
4972
 
EOF
4973
 
if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4974
 
  rm -rf conftest*
4975
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
12206
/* Override any GCC internal prototype to avoid an error.
 
12207
   Use char because int might match the return type of a GCC
 
12208
   builtin and then its argument prototype would still apply.  */
 
12209
#ifdef __cplusplus
 
12210
extern "C"
 
12211
#endif
 
12212
char gethostbyname_r ();
 
12213
int
 
12214
main ()
 
12215
{
 
12216
return gethostbyname_r ();
 
12217
  ;
 
12218
  return 0;
 
12219
}
 
12220
_ACEOF
 
12221
rm -f conftest.$ac_objext conftest$ac_exeext
 
12222
if { (ac_try="$ac_link"
 
12223
case "(($ac_try" in
 
12224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12225
  *) ac_try_echo=$ac_try;;
 
12226
esac
 
12227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12228
  (eval "$ac_link") 2>conftest.er1
 
12229
  ac_status=$?
 
12230
  grep -v '^ *+' conftest.er1 >conftest.err
 
12231
  rm -f conftest.er1
 
12232
  cat conftest.err >&5
 
12233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12234
  (exit $ac_status); } && {
 
12235
         test -z "$ac_c_werror_flag" ||
 
12236
         test ! -s conftest.err
 
12237
       } && test -s conftest$ac_exeext &&
 
12238
       $as_test_x conftest$ac_exeext; then
 
12239
  ac_cv_lib_nsl_gethostbyname_r=yes
4976
12240
else
4977
 
  echo "configure: failed program was:" >&5
4978
 
  cat conftest.$ac_ext >&5
4979
 
  rm -rf conftest*
4980
 
  eval "ac_cv_lib_$ac_lib_var=no"
4981
 
fi
4982
 
rm -f conftest*
4983
 
LIBS="$ac_save_LIBS"
4984
 
 
4985
 
fi
4986
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4987
 
  echo "$ac_t""yes" 1>&6
4988
 
  cat >> confdefs.h <<\EOF
 
12241
  echo "$as_me: failed program was:" >&5
 
12242
sed 's/^/| /' conftest.$ac_ext >&5
 
12243
 
 
12244
        ac_cv_lib_nsl_gethostbyname_r=no
 
12245
fi
 
12246
 
 
12247
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12248
      conftest$ac_exeext conftest.$ac_ext
 
12249
LIBS=$ac_check_lib_save_LIBS
 
12250
fi
 
12251
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
 
12252
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
 
12253
if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
 
12254
  cat >>confdefs.h <<\_ACEOF
4989
12255
#define HAVE_GETHOSTBYNAME_R 1
4990
 
EOF
 
12256
_ACEOF
4991
12257
 
4992
 
else
4993
 
  echo "$ac_t""no" 1>&6
4994
12258
fi
4995
12259
 
4996
 
        echo $ac_n "checking for pthread_cancel in -lpthread""... $ac_c" 1>&6
4997
 
echo "configure:4998: checking for pthread_cancel in -lpthread" >&5
4998
 
ac_lib_var=`echo pthread'_'pthread_cancel | sed 'y%./+-%__p_%'`
4999
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5000
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12260
        { echo "$as_me:$LINENO: checking for pthread_cancel in -lpthread" >&5
 
12261
echo $ECHO_N "checking for pthread_cancel in -lpthread... $ECHO_C" >&6; }
 
12262
if test "${ac_cv_lib_pthread_pthread_cancel+set}" = set; then
 
12263
  echo $ECHO_N "(cached) $ECHO_C" >&6
5001
12264
else
5002
 
  ac_save_LIBS="$LIBS"
 
12265
  ac_check_lib_save_LIBS=$LIBS
5003
12266
LIBS="-lpthread  $LIBS"
5004
 
cat > conftest.$ac_ext <<EOF
5005
 
#line 5006 "configure"
5006
 
#include "confdefs.h"
5007
 
/* Override any gcc2 internal prototype to avoid an error.  */
5008
 
/* We use char because int might match the return type of a gcc2
5009
 
    builtin and then its argument prototype would still apply.  */
5010
 
char pthread_cancel();
 
12267
cat >conftest.$ac_ext <<_ACEOF
 
12268
/* confdefs.h.  */
 
12269
_ACEOF
 
12270
cat confdefs.h >>conftest.$ac_ext
 
12271
cat >>conftest.$ac_ext <<_ACEOF
 
12272
/* end confdefs.h.  */
5011
12273
 
5012
 
int main() {
5013
 
pthread_cancel()
5014
 
; return 0; }
5015
 
EOF
5016
 
if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5017
 
  rm -rf conftest*
5018
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
12274
/* Override any GCC internal prototype to avoid an error.
 
12275
   Use char because int might match the return type of a GCC
 
12276
   builtin and then its argument prototype would still apply.  */
 
12277
#ifdef __cplusplus
 
12278
extern "C"
 
12279
#endif
 
12280
char pthread_cancel ();
 
12281
int
 
12282
main ()
 
12283
{
 
12284
return pthread_cancel ();
 
12285
  ;
 
12286
  return 0;
 
12287
}
 
12288
_ACEOF
 
12289
rm -f conftest.$ac_objext conftest$ac_exeext
 
12290
if { (ac_try="$ac_link"
 
12291
case "(($ac_try" in
 
12292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12293
  *) ac_try_echo=$ac_try;;
 
12294
esac
 
12295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12296
  (eval "$ac_link") 2>conftest.er1
 
12297
  ac_status=$?
 
12298
  grep -v '^ *+' conftest.er1 >conftest.err
 
12299
  rm -f conftest.er1
 
12300
  cat conftest.err >&5
 
12301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12302
  (exit $ac_status); } && {
 
12303
         test -z "$ac_c_werror_flag" ||
 
12304
         test ! -s conftest.err
 
12305
       } && test -s conftest$ac_exeext &&
 
12306
       $as_test_x conftest$ac_exeext; then
 
12307
  ac_cv_lib_pthread_pthread_cancel=yes
5019
12308
else
5020
 
  echo "configure: failed program was:" >&5
5021
 
  cat conftest.$ac_ext >&5
5022
 
  rm -rf conftest*
5023
 
  eval "ac_cv_lib_$ac_lib_var=no"
5024
 
fi
5025
 
rm -f conftest*
5026
 
LIBS="$ac_save_LIBS"
5027
 
 
5028
 
fi
5029
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5030
 
  echo "$ac_t""yes" 1>&6
5031
 
  cat >> confdefs.h <<\EOF
 
12309
  echo "$as_me: failed program was:" >&5
 
12310
sed 's/^/| /' conftest.$ac_ext >&5
 
12311
 
 
12312
        ac_cv_lib_pthread_pthread_cancel=no
 
12313
fi
 
12314
 
 
12315
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12316
      conftest$ac_exeext conftest.$ac_ext
 
12317
LIBS=$ac_check_lib_save_LIBS
 
12318
fi
 
12319
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_cancel" >&5
 
12320
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_cancel" >&6; }
 
12321
if test $ac_cv_lib_pthread_pthread_cancel = yes; then
 
12322
  cat >>confdefs.h <<\_ACEOF
5032
12323
#define HAVE_PTHREAD_CANCEL 1
5033
 
EOF
 
12324
_ACEOF
5034
12325
 
5035
 
else
5036
 
  echo "$ac_t""no" 1>&6
5037
12326
fi
5038
12327
 
5039
 
        echo $ac_n "checking for pthread_cancel in -lc_r""... $ac_c" 1>&6
5040
 
echo "configure:5041: checking for pthread_cancel in -lc_r" >&5
5041
 
ac_lib_var=`echo c_r'_'pthread_cancel | sed 'y%./+-%__p_%'`
5042
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5043
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12328
        { echo "$as_me:$LINENO: checking for pthread_cancel in -lc_r" >&5
 
12329
echo $ECHO_N "checking for pthread_cancel in -lc_r... $ECHO_C" >&6; }
 
12330
if test "${ac_cv_lib_c_r_pthread_cancel+set}" = set; then
 
12331
  echo $ECHO_N "(cached) $ECHO_C" >&6
5044
12332
else
5045
 
  ac_save_LIBS="$LIBS"
 
12333
  ac_check_lib_save_LIBS=$LIBS
5046
12334
LIBS="-lc_r  $LIBS"
5047
 
cat > conftest.$ac_ext <<EOF
5048
 
#line 5049 "configure"
5049
 
#include "confdefs.h"
5050
 
/* Override any gcc2 internal prototype to avoid an error.  */
5051
 
/* We use char because int might match the return type of a gcc2
5052
 
    builtin and then its argument prototype would still apply.  */
5053
 
char pthread_cancel();
 
12335
cat >conftest.$ac_ext <<_ACEOF
 
12336
/* confdefs.h.  */
 
12337
_ACEOF
 
12338
cat confdefs.h >>conftest.$ac_ext
 
12339
cat >>conftest.$ac_ext <<_ACEOF
 
12340
/* end confdefs.h.  */
5054
12341
 
5055
 
int main() {
5056
 
pthread_cancel()
5057
 
; return 0; }
5058
 
EOF
5059
 
if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5060
 
  rm -rf conftest*
5061
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
12342
/* Override any GCC internal prototype to avoid an error.
 
12343
   Use char because int might match the return type of a GCC
 
12344
   builtin and then its argument prototype would still apply.  */
 
12345
#ifdef __cplusplus
 
12346
extern "C"
 
12347
#endif
 
12348
char pthread_cancel ();
 
12349
int
 
12350
main ()
 
12351
{
 
12352
return pthread_cancel ();
 
12353
  ;
 
12354
  return 0;
 
12355
}
 
12356
_ACEOF
 
12357
rm -f conftest.$ac_objext conftest$ac_exeext
 
12358
if { (ac_try="$ac_link"
 
12359
case "(($ac_try" in
 
12360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12361
  *) ac_try_echo=$ac_try;;
 
12362
esac
 
12363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12364
  (eval "$ac_link") 2>conftest.er1
 
12365
  ac_status=$?
 
12366
  grep -v '^ *+' conftest.er1 >conftest.err
 
12367
  rm -f conftest.er1
 
12368
  cat conftest.err >&5
 
12369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12370
  (exit $ac_status); } && {
 
12371
         test -z "$ac_c_werror_flag" ||
 
12372
         test ! -s conftest.err
 
12373
       } && test -s conftest$ac_exeext &&
 
12374
       $as_test_x conftest$ac_exeext; then
 
12375
  ac_cv_lib_c_r_pthread_cancel=yes
5062
12376
else
5063
 
  echo "configure: failed program was:" >&5
5064
 
  cat conftest.$ac_ext >&5
5065
 
  rm -rf conftest*
5066
 
  eval "ac_cv_lib_$ac_lib_var=no"
5067
 
fi
5068
 
rm -f conftest*
5069
 
LIBS="$ac_save_LIBS"
5070
 
 
5071
 
fi
5072
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5073
 
  echo "$ac_t""yes" 1>&6
5074
 
  cat >> confdefs.h <<\EOF
 
12377
  echo "$as_me: failed program was:" >&5
 
12378
sed 's/^/| /' conftest.$ac_ext >&5
 
12379
 
 
12380
        ac_cv_lib_c_r_pthread_cancel=no
 
12381
fi
 
12382
 
 
12383
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12384
      conftest$ac_exeext conftest.$ac_ext
 
12385
LIBS=$ac_check_lib_save_LIBS
 
12386
fi
 
12387
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_cancel" >&5
 
12388
echo "${ECHO_T}$ac_cv_lib_c_r_pthread_cancel" >&6; }
 
12389
if test $ac_cv_lib_c_r_pthread_cancel = yes; then
 
12390
  cat >>confdefs.h <<\_ACEOF
5075
12391
#define HAVE_PTHREAD_CANCEL 1
5076
 
EOF
 
12392
_ACEOF
5077
12393
 
5078
 
else
5079
 
  echo "$ac_t""no" 1>&6
5080
12394
fi
5081
12395
 
5082
 
        echo $ac_n "checking whether gethostbyname_r takes 5 args""... $ac_c" 1>&6
5083
 
echo "configure:5084: checking whether gethostbyname_r takes 5 args" >&5
5084
 
        cat > conftest.$ac_ext <<EOF
5085
 
#line 5086 "configure"
5086
 
#include "confdefs.h"
 
12396
        { echo "$as_me:$LINENO: checking whether gethostbyname_r takes 5 args" >&5
 
12397
echo $ECHO_N "checking whether gethostbyname_r takes 5 args... $ECHO_C" >&6; }
 
12398
        cat >conftest.$ac_ext <<_ACEOF
 
12399
/* confdefs.h.  */
 
12400
_ACEOF
 
12401
cat confdefs.h >>conftest.$ac_ext
 
12402
cat >>conftest.$ac_ext <<_ACEOF
 
12403
/* end confdefs.h.  */
5087
12404
 
5088
12405
#define THREADS 1
5089
12406
#define _REENTRANT 1
5090
12407
#include <sys/types.h>
5091
12408
#include <netdb.h>
5092
 
int main() {
 
12409
int
 
12410
main ()
 
12411
{
5093
12412
 
5094
12413
 const char * name;
5095
12414
 struct hostent * result;
5096
12415
 char * buffer;
5097
12416
 int buflen;
5098
12417
 int h_errnop;
5099
 
 
 
12418
 
5100
12419
 gethostbyname_r(name, result, buffer, buflen, h_errnop);
5101
12420
 
5102
12421
 
5103
 
; return 0; }
5104
 
EOF
5105
 
if { (eval echo configure:5106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5106
 
  rm -rf conftest*
 
12422
  ;
 
12423
  return 0;
 
12424
}
 
12425
_ACEOF
 
12426
rm -f conftest.$ac_objext
 
12427
if { (ac_try="$ac_compile"
 
12428
case "(($ac_try" in
 
12429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12430
  *) ac_try_echo=$ac_try;;
 
12431
esac
 
12432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12433
  (eval "$ac_compile") 2>conftest.er1
 
12434
  ac_status=$?
 
12435
  grep -v '^ *+' conftest.er1 >conftest.err
 
12436
  rm -f conftest.er1
 
12437
  cat conftest.err >&5
 
12438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12439
  (exit $ac_status); } && {
 
12440
         test -z "$ac_c_werror_flag" ||
 
12441
         test ! -s conftest.err
 
12442
       } && test -s conftest.$ac_objext; then
5107
12443
  solaris_gethostbyname_r=yes
5108
12444
else
5109
 
  echo "configure: failed program was:" >&5
5110
 
  cat conftest.$ac_ext >&5
 
12445
  echo "$as_me: failed program was:" >&5
 
12446
sed 's/^/| /' conftest.$ac_ext >&5
 
12447
 
 
12448
 
5111
12449
fi
5112
 
rm -f conftest*
5113
 
 
5114
 
        test "x$solaris_gethostbyname_r" = "x" && echo "$ac_t""no" 1>&6
5115
 
        test "x$solaris_gethostbyname_r" = "x" || echo "$ac_t""yes" 1>&6
5116
 
        test "x$solaris_gethostbyname_r" = "xyes" && cat >> confdefs.h <<\EOF
 
12450
 
 
12451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12452
 
 
12453
        test "x$solaris_gethostbyname_r" = "x" && { echo "$as_me:$LINENO: result: no" >&5
 
12454
echo "${ECHO_T}no" >&6; }
 
12455
        test "x$solaris_gethostbyname_r" = "x" || { echo "$as_me:$LINENO: result: yes" >&5
 
12456
echo "${ECHO_T}yes" >&6; }
 
12457
        test "x$solaris_gethostbyname_r" = "xyes" && cat >>confdefs.h <<\_ACEOF
5117
12458
#define HAVE_SOLARIS_GETHOSTBYNAME_R 1
5118
 
EOF
5119
 
 
5120
 
 
5121
 
        echo $ac_n "checking whether gethostbyaddr_r takes 5 args""... $ac_c" 1>&6
5122
 
echo "configure:5123: checking whether gethostbyaddr_r takes 5 args" >&5
5123
 
        cat > conftest.$ac_ext <<EOF
5124
 
#line 5125 "configure"
5125
 
#include "confdefs.h"
 
12459
_ACEOF
 
12460
 
 
12461
 
 
12462
        { echo "$as_me:$LINENO: checking whether gethostbyaddr_r takes 5 args" >&5
 
12463
echo $ECHO_N "checking whether gethostbyaddr_r takes 5 args... $ECHO_C" >&6; }
 
12464
        cat >conftest.$ac_ext <<_ACEOF
 
12465
/* confdefs.h.  */
 
12466
_ACEOF
 
12467
cat confdefs.h >>conftest.$ac_ext
 
12468
cat >>conftest.$ac_ext <<_ACEOF
 
12469
/* end confdefs.h.  */
5126
12470
 
5127
12471
#define THREADS 1
5128
12472
#define _REENTRANT 1
5129
12473
#include <sys/types.h>
5130
12474
#include <netdb.h>
5131
 
int main() {
 
12475
int
 
12476
main ()
 
12477
{
5132
12478
 
5133
12479
 const char * addr;
5134
12480
 int length;
5137
12483
 char * buffer;
5138
12484
 int buflen;
5139
12485
 int * h_errnop;
5140
 
 
 
12486
 
5141
12487
 gethostbyaddr_r(addr, length, type, result, buffer, buflen, h_errnop);
5142
12488
 
5143
 
; return 0; }
5144
 
EOF
5145
 
if { (eval echo configure:5146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5146
 
  rm -rf conftest*
 
12489
  ;
 
12490
  return 0;
 
12491
}
 
12492
_ACEOF
 
12493
rm -f conftest.$ac_objext
 
12494
if { (ac_try="$ac_compile"
 
12495
case "(($ac_try" in
 
12496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12497
  *) ac_try_echo=$ac_try;;
 
12498
esac
 
12499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12500
  (eval "$ac_compile") 2>conftest.er1
 
12501
  ac_status=$?
 
12502
  grep -v '^ *+' conftest.er1 >conftest.err
 
12503
  rm -f conftest.er1
 
12504
  cat conftest.err >&5
 
12505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12506
  (exit $ac_status); } && {
 
12507
         test -z "$ac_c_werror_flag" ||
 
12508
         test ! -s conftest.err
 
12509
       } && test -s conftest.$ac_objext; then
5147
12510
  solaris_gethostbyaddr_r=yes
5148
12511
else
5149
 
  echo "configure: failed program was:" >&5
5150
 
  cat conftest.$ac_ext >&5
 
12512
  echo "$as_me: failed program was:" >&5
 
12513
sed 's/^/| /' conftest.$ac_ext >&5
 
12514
 
 
12515
 
5151
12516
fi
5152
 
rm -f conftest*
5153
 
 
5154
 
        test "x$solaris_gethostbyaddr_r" = "x" && echo "$ac_t""no" 1>&6
5155
 
        test "x$solaris_gethostbyaddr_r" = "x" || echo "$ac_t""yes" 1>&6
5156
 
 
5157
 
        test "x$solaris_gethostbyaddr_r" = "xyes" && cat >> confdefs.h <<\EOF
 
12517
 
 
12518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12519
 
 
12520
        test "x$solaris_gethostbyaddr_r" = "x" && { echo "$as_me:$LINENO: result: no" >&5
 
12521
echo "${ECHO_T}no" >&6; }
 
12522
        test "x$solaris_gethostbyaddr_r" = "x" || { echo "$as_me:$LINENO: result: yes" >&5
 
12523
echo "${ECHO_T}yes" >&6; }
 
12524
 
 
12525
        test "x$solaris_gethostbyaddr_r" = "xyes" && cat >>confdefs.h <<\_ACEOF
5158
12526
#define HAVE_SOLARIS_GETHOSTBYADDR_R 1
5159
 
EOF
 
12527
_ACEOF
5160
12528
 
5161
12529
 
5162
12530
}
5170
12538
 
5171
12539
 
5172
12540
 
5173
 
echo $ac_n "checking if sockaddr{} has sa_len member""... $ac_c" 1>&6
5174
 
echo "configure:5175: checking if sockaddr{} has sa_len member" >&5
5175
 
if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
5176
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12541
{ echo "$as_me:$LINENO: checking if sockaddr{} has sa_len member" >&5
 
12542
echo $ECHO_N "checking if sockaddr{} has sa_len member... $ECHO_C" >&6; }
 
12543
if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
 
12544
  echo $ECHO_N "(cached) $ECHO_C" >&6
5177
12545
else
5178
 
  cat > conftest.$ac_ext <<EOF
5179
 
#line 5180 "configure"
5180
 
#include "confdefs.h"
 
12546
  cat >conftest.$ac_ext <<_ACEOF
 
12547
/* confdefs.h.  */
 
12548
_ACEOF
 
12549
cat confdefs.h >>conftest.$ac_ext
 
12550
cat >>conftest.$ac_ext <<_ACEOF
 
12551
/* end confdefs.h.  */
5181
12552
 
5182
12553
#               include <sys/types.h>
5183
12554
#               include <sys/socket.h>
5184
 
int main() {
 
12555
int
 
12556
main ()
 
12557
{
5185
12558
unsigned int i = sizeof(((struct sockaddr *)0)->sa_len)
5186
 
; return 0; }
5187
 
EOF
5188
 
if { (eval echo configure:5189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5189
 
  rm -rf conftest*
 
12559
  ;
 
12560
  return 0;
 
12561
}
 
12562
_ACEOF
 
12563
rm -f conftest.$ac_objext
 
12564
if { (ac_try="$ac_compile"
 
12565
case "(($ac_try" in
 
12566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12567
  *) ac_try_echo=$ac_try;;
 
12568
esac
 
12569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12570
  (eval "$ac_compile") 2>conftest.er1
 
12571
  ac_status=$?
 
12572
  grep -v '^ *+' conftest.er1 >conftest.err
 
12573
  rm -f conftest.er1
 
12574
  cat conftest.err >&5
 
12575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12576
  (exit $ac_status); } && {
 
12577
         test -z "$ac_c_werror_flag" ||
 
12578
         test ! -s conftest.err
 
12579
       } && test -s conftest.$ac_objext; then
5190
12580
  ac_cv_sockaddr_has_sa_len=yes
5191
12581
else
5192
 
  echo "configure: failed program was:" >&5
5193
 
  cat conftest.$ac_ext >&5
5194
 
  rm -rf conftest*
5195
 
  ac_cv_sockaddr_has_sa_len=no
5196
 
fi
5197
 
rm -f conftest*
5198
 
fi
5199
 
 
5200
 
echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
 
12582
  echo "$as_me: failed program was:" >&5
 
12583
sed 's/^/| /' conftest.$ac_ext >&5
 
12584
 
 
12585
        ac_cv_sockaddr_has_sa_len=no
 
12586
fi
 
12587
 
 
12588
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12589
fi
 
12590
{ echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
 
12591
echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
5201
12592
if test $ac_cv_sockaddr_has_sa_len = yes ; then
5202
 
        cat >> confdefs.h <<\EOF
 
12593
        cat >>confdefs.h <<\_ACEOF
5203
12594
#define HAVE_SOCKADDR_SA_LEN 1
5204
 
EOF
 
12595
_ACEOF
5205
12596
 
5206
12597
fi
5207
12598
 
5209
12600
 
5210
12601
case "$host" in
5211
12602
    *-freebsd*|*-bsdi*|*-netbsd*)
5212
 
    cat >> confdefs.h <<\EOF
 
12603
    cat >>confdefs.h <<\_ACEOF
5213
12604
#define BSD_BYTE_ORDERING 1
5214
 
EOF
 
12605
_ACEOF
5215
12606
 
5216
12607
esac
5217
12608
 
5219
12610
 
5220
12611
case "$host" in
5221
12612
  *-netbsd*)
5222
 
    cat >> confdefs.h <<\EOF
 
12613
    cat >>confdefs.h <<\_ACEOF
5223
12614
#define NETBSD 1
5224
 
EOF
 
12615
_ACEOF
5225
12616
 
5226
12617
    ;;
5227
12618
  *-openbsd*)
5228
 
    cat >> confdefs.h <<\EOF
 
12619
    cat >>confdefs.h <<\_ACEOF
5229
12620
#define OPENBSD 1
5230
 
EOF
 
12621
_ACEOF
5231
12622
 
5232
12623
    ;;
5233
12624
  *-sgi-irix5*)
5234
 
    cat >> confdefs.h <<\EOF
 
12625
    cat >>confdefs.h <<\_ACEOF
5235
12626
#define IRIX 1
5236
 
EOF
 
12627
_ACEOF
5237
12628
 
5238
12629
    no_libsocket=yes
5239
12630
    no_libnsl=yes
5242
12633
    fi
5243
12634
    ;;
5244
12635
  *-sgi-irix6*)
5245
 
    cat >> confdefs.h <<\EOF
 
12636
    cat >>confdefs.h <<\_ACEOF
5246
12637
#define IRIX 1
5247
 
EOF
 
12638
_ACEOF
5248
12639
 
5249
12640
    no_libsocket=yes
5250
12641
    no_libnsl=yes
5252
12643
      sgi_cc=yes
5253
12644
    fi
5254
12645
    ;;
5255
 
  *-solaris2.0*)  
5256
 
    cat >> confdefs.h <<\EOF
 
12646
  *-solaris2.0*)
 
12647
    cat >>confdefs.h <<\_ACEOF
5257
12648
#define STUPID_SOLARIS_CHECKSUM_BUG 1
5258
 
EOF
 
12649
_ACEOF
5259
12650
 
5260
 
    cat >> confdefs.h <<\EOF
 
12651
    cat >>confdefs.h <<\_ACEOF
5261
12652
#define SOLARIS 1
5262
 
EOF
 
12653
_ACEOF
5263
12654
 
5264
12655
    ;;
5265
12656
  *-solaris2.1*)
5266
 
    cat >> confdefs.h <<\EOF
 
12657
    cat >>confdefs.h <<\_ACEOF
5267
12658
#define STUPID_SOLARIS_CHECKSUM_BUG 1
5268
 
EOF
 
12659
_ACEOF
5269
12660
 
5270
 
    cat >> confdefs.h <<\EOF
 
12661
    cat >>confdefs.h <<\_ACEOF
5271
12662
#define SOLARIS 1
5272
 
EOF
 
12663
_ACEOF
5273
12664
 
5274
12665
    ;;
5275
12666
  *-solaris2.2*)
5276
 
    cat >> confdefs.h <<\EOF
 
12667
    cat >>confdefs.h <<\_ACEOF
5277
12668
#define STUPID_SOLARIS_CHECKSUM_BUG 1
5278
 
EOF
 
12669
_ACEOF
5279
12670
 
5280
 
    cat >> confdefs.h <<\EOF
 
12671
    cat >>confdefs.h <<\_ACEOF
5281
12672
#define SOLARIS 1
5282
 
EOF
 
12673
_ACEOF
5283
12674
 
5284
12675
    ;;
5285
12676
  *-solaris2.3*)
5286
 
    cat >> confdefs.h <<\EOF
 
12677
    cat >>confdefs.h <<\_ACEOF
5287
12678
#define STUPID_SOLARIS_CHECKSUM_BUG 1
5288
 
EOF
 
12679
_ACEOF
5289
12680
 
5290
 
    cat >> confdefs.h <<\EOF
 
12681
    cat >>confdefs.h <<\_ACEOF
5291
12682
#define SOLARIS 1
5292
 
EOF
 
12683
_ACEOF
5293
12684
 
5294
12685
    ;;
5295
12686
  *-solaris2.4*)
5296
 
    cat >> confdefs.h <<\EOF
 
12687
    cat >>confdefs.h <<\_ACEOF
5297
12688
#define STUPID_SOLARIS_CHECKSUM_BUG 1
5298
 
EOF
 
12689
_ACEOF
5299
12690
 
5300
 
    cat >> confdefs.h <<\EOF
 
12691
    cat >>confdefs.h <<\_ACEOF
5301
12692
#define SOLARIS 1
5302
 
EOF
 
12693
_ACEOF
5303
12694
 
5304
12695
    ;;
5305
12696
  *-solaris2.5.1)
5306
 
    cat >> confdefs.h <<\EOF
 
12697
    cat >>confdefs.h <<\_ACEOF
5307
12698
#define STUPID_SOLARIS_CHECKSUM_BUG 1
5308
 
EOF
 
12699
_ACEOF
5309
12700
 
5310
 
    cat >> confdefs.h <<\EOF
 
12701
    cat >>confdefs.h <<\_ACEOF
5311
12702
#define SOLARIS 1
5312
 
EOF
 
12703
_ACEOF
5313
12704
 
5314
12705
    ;;
5315
12706
  *-solaris*)
5316
 
    cat >> confdefs.h <<\EOF
 
12707
    cat >>confdefs.h <<\_ACEOF
5317
12708
#define SOLARIS 1
5318
 
EOF
 
12709
_ACEOF
5319
12710
 
5320
12711
    ;;
5321
12712
  *-sunos4*)
5322
 
    cat >> confdefs.h <<\EOF
 
12713
    cat >>confdefs.h <<\_ACEOF
5323
12714
#define SUNOS 1
5324
 
EOF
 
12715
_ACEOF
5325
12716
 
5326
 
    cat >> confdefs.h <<\EOF
 
12717
    cat >>confdefs.h <<\_ACEOF
5327
12718
#define SPRINTF_RETURNS_STRING 1
5328
 
EOF
 
12719
_ACEOF
5329
12720
 
5330
12721
    no_libnsl=yes
5331
12722
    no_libsocket=yes
5332
12723
    ;;
5333
12724
  *-linux*)
5334
12725
    linux=yes
5335
 
    cat >> confdefs.h <<\EOF
 
12726
    cat >>confdefs.h <<\_ACEOF
5336
12727
#define LINUX 1
5337
 
EOF
 
12728
_ACEOF
5338
12729
 
5339
 
    cat >> confdefs.h <<\EOF
 
12730
    cat >>confdefs.h <<\_ACEOF
5340
12731
#define PCAP_TIMEOUT_IGNORED 1
5341
 
EOF
 
12732
_ACEOF
5342
12733
  # libpcap doesn't even LOOK at
5343
12734
                                     # the timeout you give it under Linux
5344
12735
    ;;
5345
12736
  *-freebsd*)
5346
 
    cat >> confdefs.h <<\EOF
 
12737
    cat >>confdefs.h <<\_ACEOF
5347
12738
#define FREEBSD 1
5348
 
EOF
 
12739
_ACEOF
5349
12740
 
5350
12741
    ;;
5351
12742
  *-bsdi*)
5352
 
    cat >> confdefs.h <<\EOF
 
12743
    cat >>confdefs.h <<\_ACEOF
5353
12744
#define BSDI 1
5354
 
EOF
 
12745
_ACEOF
5355
12746
 
5356
12747
    ;;
5357
12748
esac
5358
12749
 
5359
12750
 
5360
12751
 
5361
 
echo $ac_n "checking whether struct sigaction has sa_restorer""... $ac_c" 1>&6
5362
 
echo "configure:5363: checking whether struct sigaction has sa_restorer" >&5
5363
 
        cat > conftest.$ac_ext <<EOF
5364
 
#line 5365 "configure"
5365
 
#include "confdefs.h"
 
12752
{ echo "$as_me:$LINENO: checking whether struct sigaction has sa_restorer" >&5
 
12753
echo $ECHO_N "checking whether struct sigaction has sa_restorer... $ECHO_C" >&6; }
 
12754
        cat >conftest.$ac_ext <<_ACEOF
 
12755
/* confdefs.h.  */
 
12756
_ACEOF
 
12757
cat confdefs.h >>conftest.$ac_ext
 
12758
cat >>conftest.$ac_ext <<_ACEOF
 
12759
/* end confdefs.h.  */
5366
12760
 
5367
12761
#include <signal.h>
5368
 
int main() {
 
12762
int
 
12763
main ()
 
12764
{
5369
12765
 
5370
12766
 struct sigaction sa;
5371
 
 
 
12767
 
5372
12768
 sa.sa_restorer = 0;
5373
12769
 
5374
12770
 
5375
 
; return 0; }
5376
 
EOF
5377
 
if { (eval echo configure:5378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5378
 
  rm -rf conftest*
 
12771
  ;
 
12772
  return 0;
 
12773
}
 
12774
_ACEOF
 
12775
rm -f conftest.$ac_objext
 
12776
if { (ac_try="$ac_compile"
 
12777
case "(($ac_try" in
 
12778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12779
  *) ac_try_echo=$ac_try;;
 
12780
esac
 
12781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12782
  (eval "$ac_compile") 2>conftest.er1
 
12783
  ac_status=$?
 
12784
  grep -v '^ *+' conftest.er1 >conftest.err
 
12785
  rm -f conftest.er1
 
12786
  cat conftest.err >&5
 
12787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12788
  (exit $ac_status); } && {
 
12789
         test -z "$ac_c_werror_flag" ||
 
12790
         test ! -s conftest.err
 
12791
       } && test -s conftest.$ac_objext; then
5379
12792
  signal_sa_restorer=yes
5380
12793
else
5381
 
  echo "configure: failed program was:" >&5
5382
 
  cat conftest.$ac_ext >&5
 
12794
  echo "$as_me: failed program was:" >&5
 
12795
sed 's/^/| /' conftest.$ac_ext >&5
 
12796
 
 
12797
 
5383
12798
fi
5384
 
rm -f conftest*
5385
 
 
5386
 
        test "x$signal_sa_restorer" = "x" && echo "$ac_t""no" 1>&6
5387
 
        test "x$signal_sa_restorer" = "x" || echo "$ac_t""yes" 1>&6
5388
 
        test "x$signal_sa_restorer" = "xyes" && cat >> confdefs.h <<\EOF
 
12799
 
 
12800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12801
 
 
12802
        test "x$signal_sa_restorer" = "x" && { echo "$as_me:$LINENO: result: no" >&5
 
12803
echo "${ECHO_T}no" >&6; }
 
12804
        test "x$signal_sa_restorer" = "x" || { echo "$as_me:$LINENO: result: yes" >&5
 
12805
echo "${ECHO_T}yes" >&6; }
 
12806
        test "x$signal_sa_restorer" = "xyes" && cat >>confdefs.h <<\_ACEOF
5389
12807
#define HAVE_SIGNAL_SA_RESTORER 1
5390
 
EOF
5391
 
 
5392
 
 
5393
 
        
 
12808
_ACEOF
 
12809
 
 
12810
 
 
12811
 
5394
12812
 
5395
12813
 
5396
12814
lang=$enable_language
5410
12828
OPENVASD_PLUGINS='${OPENVASD_LIBDIR}/plugins'
5411
12829
OPENVASD_REPORTS='${OPENVASD_LOGDIR}/reports'
5412
12830
 
5413
 
 
 
12831
 
5414
12832
# The following directories are now passed into the compile
5415
12833
# by the makefile instead of setting at the time configure is run.
5416
 
# Thus we only need to set these once and all the quoting and 
 
12834
# Thus we only need to set these once and all the quoting and
5417
12835
# everything works okay.
5418
12836
#
5419
12837
#AC_DEFINE_UNQUOTED(OPENVASD_CONFDIR,   "${sysconfdir}")
5425
12843
man_openvas_1=doc/openvas.1
5426
12844
man_openvasd_8=doc/openvasd.8
5427
12845
 
5428
 
cat >> confdefs.h <<EOF
 
12846
cat >>confdefs.h <<_ACEOF
5429
12847
#define OPENVASD_LANGUAGE "${lang}"
5430
 
EOF
 
12848
_ACEOF
5431
12849
 
5432
12850
 
5433
12851
# Extract the first word of "ar", so it can be a program name with args.
5434
12852
set dummy ar; ac_word=$2
5435
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5436
 
echo "configure:5437: checking for $ac_word" >&5
5437
 
if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
5438
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12853
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12854
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
12855
if test "${ac_cv_path_AR+set}" = set; then
 
12856
  echo $ECHO_N "(cached) $ECHO_C" >&6
5439
12857
else
5440
 
  case "$AR" in
5441
 
  /*)
 
12858
  case $AR in
 
12859
  [\\/]* | ?:[\\/]*)
5442
12860
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
5443
12861
  ;;
5444
 
  ?:/*)                  
5445
 
  ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
5446
 
  ;;
5447
12862
  *)
5448
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5449
 
  ac_dummy="$PATH"
5450
 
  for ac_dir in $ac_dummy; do 
5451
 
    test -z "$ac_dir" && ac_dir=.
5452
 
    if test -f $ac_dir/$ac_word; then
5453
 
      ac_cv_path_AR="$ac_dir/$ac_word"
5454
 
      break
5455
 
    fi
5456
 
  done
5457
 
  IFS="$ac_save_ifs"
 
12863
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12864
for as_dir in $PATH
 
12865
do
 
12866
  IFS=$as_save_IFS
 
12867
  test -z "$as_dir" && as_dir=.
 
12868
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12869
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12870
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
 
12871
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12872
    break 2
 
12873
  fi
 
12874
done
 
12875
done
 
12876
IFS=$as_save_IFS
 
12877
 
5458
12878
  ;;
5459
12879
esac
5460
12880
fi
5461
 
AR="$ac_cv_path_AR"
 
12881
AR=$ac_cv_path_AR
5462
12882
if test -n "$AR"; then
5463
 
  echo "$ac_t""$AR" 1>&6
 
12883
  { echo "$as_me:$LINENO: result: $AR" >&5
 
12884
echo "${ECHO_T}$AR" >&6; }
5464
12885
else
5465
 
  echo "$ac_t""no" 1>&6
 
12886
  { echo "$as_me:$LINENO: result: no" >&5
 
12887
echo "${ECHO_T}no" >&6; }
5466
12888
fi
5467
12889
 
5468
12890
 
5518
12940
 
5519
12941
 
5520
12942
 
5521
 
trap '' 1 2 15
5522
 
cat > confcache <<\EOF
 
12943
 
 
12944
ac_config_files="$ac_config_files openvas.tmpl include/corevers.h openvas-adduser openvas-rmuser openvas-mkcert openvas-mkcert-client openvasd-config"
 
12945
 
 
12946
cat >confcache <<\_ACEOF
5523
12947
# This file is a shell script that caches the results of configure
5524
12948
# tests run on this system so they can be shared between configure
5525
 
# scripts and configure runs.  It is not useful on other systems.
5526
 
# If it contains results you don't want to keep, you may remove or edit it.
5527
 
#
5528
 
# By default, configure uses ./config.cache as the cache file,
5529
 
# creating it if it does not exist already.  You can give configure
5530
 
# the --cache-file=FILE option to use a different cache file; that is
5531
 
# what configure does when it calls configure scripts in
5532
 
# subdirectories, so they share the cache.
5533
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
5534
 
# config.status only pays attention to the cache file if you give it the
5535
 
# --recheck option to rerun configure.
5536
 
#
5537
 
EOF
 
12949
# scripts and configure runs, see configure's option --config-cache.
 
12950
# It is not useful on other systems.  If it contains results you don't
 
12951
# want to keep, you may remove or edit it.
 
12952
#
 
12953
# config.status only pays attention to the cache file if you give it
 
12954
# the --recheck option to rerun configure.
 
12955
#
 
12956
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
12957
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
12958
# following values.
 
12959
 
 
12960
_ACEOF
 
12961
 
5538
12962
# The following way of writing the cache mishandles newlines in values,
5539
12963
# but we know of no workaround that is simple, portable, and efficient.
5540
 
# So, don't put newlines in cache variables' values.
 
12964
# So, we kill variables containing newlines.
5541
12965
# Ultrix sh set writes to stderr and can't be redirected directly,
5542
12966
# and sets the high bit in the cache file unless we assign to the vars.
5543
 
(set) 2>&1 |
5544
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
5545
 
  *ac_space=\ *)
5546
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
5547
 
    # turns \\\\ into \\, and sed turns \\ into \).
5548
 
    sed -n \
5549
 
      -e "s/'/'\\\\''/g" \
5550
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5551
 
    ;;
5552
 
  *)
5553
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
5554
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5555
 
    ;;
5556
 
  esac >> confcache
5557
 
if cmp -s $cache_file confcache; then
5558
 
  :
5559
 
else
5560
 
  if test -w $cache_file; then
5561
 
    echo "updating cache $cache_file"
5562
 
    cat confcache > $cache_file
 
12967
(
 
12968
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
12969
    eval ac_val=\$$ac_var
 
12970
    case $ac_val in #(
 
12971
    *${as_nl}*)
 
12972
      case $ac_var in #(
 
12973
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
12974
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
12975
      esac
 
12976
      case $ac_var in #(
 
12977
      _ | IFS | as_nl) ;; #(
 
12978
      *) $as_unset $ac_var ;;
 
12979
      esac ;;
 
12980
    esac
 
12981
  done
 
12982
 
 
12983
  (set) 2>&1 |
 
12984
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
12985
    *${as_nl}ac_space=\ *)
 
12986
      # `set' does not quote correctly, so add quotes (double-quote
 
12987
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
12988
      sed -n \
 
12989
        "s/'/'\\\\''/g;
 
12990
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
12991
      ;; #(
 
12992
    *)
 
12993
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
12994
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
12995
      ;;
 
12996
    esac |
 
12997
    sort
 
12998
) |
 
12999
  sed '
 
13000
     /^ac_cv_env_/b end
 
13001
     t clear
 
13002
     :clear
 
13003
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13004
     t end
 
13005
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13006
     :end' >>confcache
 
13007
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13008
  if test -w "$cache_file"; then
 
13009
    test "x$cache_file" != "x/dev/null" &&
 
13010
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
13011
echo "$as_me: updating cache $cache_file" >&6;}
 
13012
    cat confcache >$cache_file
5563
13013
  else
5564
 
    echo "not updating unwritable cache $cache_file"
 
13014
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
13015
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5565
13016
  fi
5566
13017
fi
5567
13018
rm -f confcache
5568
13019
 
5569
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5570
 
 
5571
13020
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5572
13021
# Let make expand exec_prefix.
5573
13022
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5574
13023
 
5575
 
# Any assignment to VPATH causes Sun make to only execute
5576
 
# the first set of double-colon rules, so remove it if not needed.
5577
 
# If there is a colon in the path, we need to keep it.
5578
 
if test "x$srcdir" = x.; then
5579
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
5580
 
fi
5581
 
 
5582
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5583
 
 
5584
13024
DEFS=-DHAVE_CONFIG_H
5585
13025
 
5586
 
# Without the "./", some shells look in PATH for config.status.
 
13026
ac_libobjs=
 
13027
ac_ltlibobjs=
 
13028
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
13029
  # 1. Remove the extension, and $U if already installed.
 
13030
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13031
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
13032
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13033
  #    will be set to the directory where LIBOBJS objects are built.
 
13034
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13035
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
13036
done
 
13037
LIBOBJS=$ac_libobjs
 
13038
 
 
13039
LTLIBOBJS=$ac_ltlibobjs
 
13040
 
 
13041
 
 
13042
 
5587
13043
: ${CONFIG_STATUS=./config.status}
5588
 
 
5589
 
echo creating $CONFIG_STATUS
5590
 
rm -f $CONFIG_STATUS
5591
 
cat > $CONFIG_STATUS <<EOF
5592
 
#! /bin/sh
5593
 
# Generated automatically by configure.
 
13044
ac_clean_files_save=$ac_clean_files
 
13045
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13046
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
13047
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13048
cat >$CONFIG_STATUS <<_ACEOF
 
13049
#! $SHELL
 
13050
# Generated by $as_me.
5594
13051
# Run this file to recreate the current configuration.
5595
 
# This directory was configured as follows,
5596
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5597
 
#
5598
 
# $0 $ac_configure_args
5599
 
#
5600
13052
# Compiler output produced by configure, useful for debugging
5601
 
# configure, is in ./config.log if it exists.
5602
 
 
5603
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5604
 
for ac_option
5605
 
do
5606
 
  case "\$ac_option" in
 
13053
# configure, is in config.log if it exists.
 
13054
 
 
13055
debug=false
 
13056
ac_cs_recheck=false
 
13057
ac_cs_silent=false
 
13058
SHELL=\${CONFIG_SHELL-$SHELL}
 
13059
_ACEOF
 
13060
 
 
13061
cat >>$CONFIG_STATUS <<\_ACEOF
 
13062
## --------------------- ##
 
13063
## M4sh Initialization.  ##
 
13064
## --------------------- ##
 
13065
 
 
13066
# Be more Bourne compatible
 
13067
DUALCASE=1; export DUALCASE # for MKS sh
 
13068
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
13069
  emulate sh
 
13070
  NULLCMD=:
 
13071
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
13072
  # is contrary to our usage.  Disable this feature.
 
13073
  alias -g '${1+"$@"}'='"$@"'
 
13074
  setopt NO_GLOB_SUBST
 
13075
else
 
13076
  case `(set -o) 2>/dev/null` in
 
13077
  *posix*) set -o posix ;;
 
13078
esac
 
13079
 
 
13080
fi
 
13081
 
 
13082
 
 
13083
 
 
13084
 
 
13085
# PATH needs CR
 
13086
# Avoid depending upon Character Ranges.
 
13087
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13088
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13089
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13090
as_cr_digits='0123456789'
 
13091
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13092
 
 
13093
# The user is always right.
 
13094
if test "${PATH_SEPARATOR+set}" != set; then
 
13095
  echo "#! /bin/sh" >conf$$.sh
 
13096
  echo  "exit 0"   >>conf$$.sh
 
13097
  chmod +x conf$$.sh
 
13098
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
13099
    PATH_SEPARATOR=';'
 
13100
  else
 
13101
    PATH_SEPARATOR=:
 
13102
  fi
 
13103
  rm -f conf$$.sh
 
13104
fi
 
13105
 
 
13106
# Support unset when possible.
 
13107
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
13108
  as_unset=unset
 
13109
else
 
13110
  as_unset=false
 
13111
fi
 
13112
 
 
13113
 
 
13114
# IFS
 
13115
# We need space, tab and new line, in precisely that order.  Quoting is
 
13116
# there to prevent editors from complaining about space-tab.
 
13117
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13118
# splitting by setting IFS to empty value.)
 
13119
as_nl='
 
13120
'
 
13121
IFS=" ""        $as_nl"
 
13122
 
 
13123
# Find who we are.  Look in the path if we contain no directory separator.
 
13124
case $0 in
 
13125
  *[\\/]* ) as_myself=$0 ;;
 
13126
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13127
for as_dir in $PATH
 
13128
do
 
13129
  IFS=$as_save_IFS
 
13130
  test -z "$as_dir" && as_dir=.
 
13131
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13132
done
 
13133
IFS=$as_save_IFS
 
13134
 
 
13135
     ;;
 
13136
esac
 
13137
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13138
# in which case we are not to be found in the path.
 
13139
if test "x$as_myself" = x; then
 
13140
  as_myself=$0
 
13141
fi
 
13142
if test ! -f "$as_myself"; then
 
13143
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13144
  { (exit 1); exit 1; }
 
13145
fi
 
13146
 
 
13147
# Work around bugs in pre-3.0 UWIN ksh.
 
13148
for as_var in ENV MAIL MAILPATH
 
13149
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
13150
done
 
13151
PS1='$ '
 
13152
PS2='> '
 
13153
PS4='+ '
 
13154
 
 
13155
# NLS nuisances.
 
13156
for as_var in \
 
13157
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
13158
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
13159
  LC_TELEPHONE LC_TIME
 
13160
do
 
13161
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
13162
    eval $as_var=C; export $as_var
 
13163
  else
 
13164
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
13165
  fi
 
13166
done
 
13167
 
 
13168
# Required to use basename.
 
13169
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13170
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13171
  as_expr=expr
 
13172
else
 
13173
  as_expr=false
 
13174
fi
 
13175
 
 
13176
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
13177
  as_basename=basename
 
13178
else
 
13179
  as_basename=false
 
13180
fi
 
13181
 
 
13182
 
 
13183
# Name of the executable.
 
13184
as_me=`$as_basename -- "$0" ||
 
13185
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13186
         X"$0" : 'X\(//\)$' \| \
 
13187
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
13188
echo X/"$0" |
 
13189
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13190
            s//\1/
 
13191
            q
 
13192
          }
 
13193
          /^X\/\(\/\/\)$/{
 
13194
            s//\1/
 
13195
            q
 
13196
          }
 
13197
          /^X\/\(\/\).*/{
 
13198
            s//\1/
 
13199
            q
 
13200
          }
 
13201
          s/.*/./; q'`
 
13202
 
 
13203
# CDPATH.
 
13204
$as_unset CDPATH
 
13205
 
 
13206
 
 
13207
 
 
13208
  as_lineno_1=$LINENO
 
13209
  as_lineno_2=$LINENO
 
13210
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
13211
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
13212
 
 
13213
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
13214
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
13215
  # line-number line after each line using $LINENO; the second 'sed'
 
13216
  # does the real work.  The second script uses 'N' to pair each
 
13217
  # line-number line with the line containing $LINENO, and appends
 
13218
  # trailing '-' during substitution so that $LINENO is not a special
 
13219
  # case at line end.
 
13220
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
13221
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
13222
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
13223
  sed -n '
 
13224
    p
 
13225
    /[$]LINENO/=
 
13226
  ' <$as_myself |
 
13227
    sed '
 
13228
      s/[$]LINENO.*/&-/
 
13229
      t lineno
 
13230
      b
 
13231
      :lineno
 
13232
      N
 
13233
      :loop
 
13234
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
13235
      t loop
 
13236
      s/-\n.*//
 
13237
    ' >$as_me.lineno &&
 
13238
  chmod +x "$as_me.lineno" ||
 
13239
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
13240
   { (exit 1); exit 1; }; }
 
13241
 
 
13242
  # Don't try to exec as it changes $[0], causing all sort of problems
 
13243
  # (the dirname of $[0] is not the place where we might find the
 
13244
  # original and so on.  Autoconf is especially sensitive to this).
 
13245
  . "./$as_me.lineno"
 
13246
  # Exit status is that of the last command.
 
13247
  exit
 
13248
}
 
13249
 
 
13250
 
 
13251
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13252
  as_dirname=dirname
 
13253
else
 
13254
  as_dirname=false
 
13255
fi
 
13256
 
 
13257
ECHO_C= ECHO_N= ECHO_T=
 
13258
case `echo -n x` in
 
13259
-n*)
 
13260
  case `echo 'x\c'` in
 
13261
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
13262
  *)   ECHO_C='\c';;
 
13263
  esac;;
 
13264
*)
 
13265
  ECHO_N='-n';;
 
13266
esac
 
13267
 
 
13268
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13269
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13270
  as_expr=expr
 
13271
else
 
13272
  as_expr=false
 
13273
fi
 
13274
 
 
13275
rm -f conf$$ conf$$.exe conf$$.file
 
13276
if test -d conf$$.dir; then
 
13277
  rm -f conf$$.dir/conf$$.file
 
13278
else
 
13279
  rm -f conf$$.dir
 
13280
  mkdir conf$$.dir
 
13281
fi
 
13282
echo >conf$$.file
 
13283
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13284
  as_ln_s='ln -s'
 
13285
  # ... but there are two gotchas:
 
13286
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13287
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13288
  # In both cases, we have to default to `cp -p'.
 
13289
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13290
    as_ln_s='cp -p'
 
13291
elif ln conf$$.file conf$$ 2>/dev/null; then
 
13292
  as_ln_s=ln
 
13293
else
 
13294
  as_ln_s='cp -p'
 
13295
fi
 
13296
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
13297
rmdir conf$$.dir 2>/dev/null
 
13298
 
 
13299
if mkdir -p . 2>/dev/null; then
 
13300
  as_mkdir_p=:
 
13301
else
 
13302
  test -d ./-p && rmdir ./-p
 
13303
  as_mkdir_p=false
 
13304
fi
 
13305
 
 
13306
if test -x / >/dev/null 2>&1; then
 
13307
  as_test_x='test -x'
 
13308
else
 
13309
  if ls -dL / >/dev/null 2>&1; then
 
13310
    as_ls_L_option=L
 
13311
  else
 
13312
    as_ls_L_option=
 
13313
  fi
 
13314
  as_test_x='
 
13315
    eval sh -c '\''
 
13316
      if test -d "$1"; then
 
13317
        test -d "$1/.";
 
13318
      else
 
13319
        case $1 in
 
13320
        -*)set "./$1";;
 
13321
        esac;
 
13322
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
13323
        ???[sx]*):;;*)false;;esac;fi
 
13324
    '\'' sh
 
13325
  '
 
13326
fi
 
13327
as_executable_p=$as_test_x
 
13328
 
 
13329
# Sed expression to map a string onto a valid CPP name.
 
13330
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
13331
 
 
13332
# Sed expression to map a string onto a valid variable name.
 
13333
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
13334
 
 
13335
 
 
13336
exec 6>&1
 
13337
 
 
13338
# Save the log message, to keep $[0] and so on meaningful, and to
 
13339
# report actual input values of CONFIG_FILES etc. instead of their
 
13340
# values after options handling.
 
13341
ac_log="
 
13342
This file was extended by $as_me, which was
 
13343
generated by GNU Autoconf 2.61.  Invocation command line was
 
13344
 
 
13345
  CONFIG_FILES    = $CONFIG_FILES
 
13346
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
13347
  CONFIG_LINKS    = $CONFIG_LINKS
 
13348
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
13349
  $ $0 $@
 
13350
 
 
13351
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
13352
"
 
13353
 
 
13354
_ACEOF
 
13355
 
 
13356
cat >>$CONFIG_STATUS <<_ACEOF
 
13357
# Files that config.status was made for.
 
13358
config_files="$ac_config_files"
 
13359
config_headers="$ac_config_headers"
 
13360
 
 
13361
_ACEOF
 
13362
 
 
13363
cat >>$CONFIG_STATUS <<\_ACEOF
 
13364
ac_cs_usage="\
 
13365
\`$as_me' instantiates files from templates according to the
 
13366
current configuration.
 
13367
 
 
13368
Usage: $0 [OPTIONS] [FILE]...
 
13369
 
 
13370
  -h, --help       print this help, then exit
 
13371
  -V, --version    print version number and configuration settings, then exit
 
13372
  -q, --quiet      do not print progress messages
 
13373
  -d, --debug      don't remove temporary files
 
13374
      --recheck    update $as_me by reconfiguring in the same conditions
 
13375
  --file=FILE[:TEMPLATE]
 
13376
                   instantiate the configuration file FILE
 
13377
  --header=FILE[:TEMPLATE]
 
13378
                   instantiate the configuration header FILE
 
13379
 
 
13380
Configuration files:
 
13381
$config_files
 
13382
 
 
13383
Configuration headers:
 
13384
$config_headers
 
13385
 
 
13386
Report bugs to <bug-autoconf@gnu.org>."
 
13387
 
 
13388
_ACEOF
 
13389
cat >>$CONFIG_STATUS <<_ACEOF
 
13390
ac_cs_version="\\
 
13391
config.status
 
13392
configured by $0, generated by GNU Autoconf 2.61,
 
13393
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
13394
 
 
13395
Copyright (C) 2006 Free Software Foundation, Inc.
 
13396
This config.status script is free software; the Free Software Foundation
 
13397
gives unlimited permission to copy, distribute and modify it."
 
13398
 
 
13399
ac_pwd='$ac_pwd'
 
13400
srcdir='$srcdir'
 
13401
INSTALL='$INSTALL'
 
13402
_ACEOF
 
13403
 
 
13404
cat >>$CONFIG_STATUS <<\_ACEOF
 
13405
# If no file are specified by the user, then we need to provide default
 
13406
# value.  By we need to know if files were specified by the user.
 
13407
ac_need_defaults=:
 
13408
while test $# != 0
 
13409
do
 
13410
  case $1 in
 
13411
  --*=*)
 
13412
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13413
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
13414
    ac_shift=:
 
13415
    ;;
 
13416
  *)
 
13417
    ac_option=$1
 
13418
    ac_optarg=$2
 
13419
    ac_shift=shift
 
13420
    ;;
 
13421
  esac
 
13422
 
 
13423
  case $ac_option in
 
13424
  # Handling of the options.
5607
13425
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5608
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5609
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5610
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5611
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
5612
 
    exit 0 ;;
5613
 
  -help | --help | --hel | --he | --h)
5614
 
    echo "\$ac_cs_usage"; exit 0 ;;
5615
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
5616
 
  esac
5617
 
done
5618
 
 
5619
 
ac_given_srcdir=$srcdir
5620
 
ac_given_INSTALL="$INSTALL"
5621
 
 
5622
 
trap 'rm -fr `echo "openvas.tmpl include/corevers.h openvas-adduser openvas-rmuser openvas-mkcert openvas-mkcert-client openvasd-config include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5623
 
EOF
5624
 
cat >> $CONFIG_STATUS <<EOF
5625
 
 
5626
 
# Protect against being on the right side of a sed subst in config.status.
5627
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5628
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5629
 
$ac_vpsub
 
13426
    ac_cs_recheck=: ;;
 
13427
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
13428
    echo "$ac_cs_version"; exit ;;
 
13429
  --debug | --debu | --deb | --de | --d | -d )
 
13430
    debug=: ;;
 
13431
  --file | --fil | --fi | --f )
 
13432
    $ac_shift
 
13433
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
13434
    ac_need_defaults=false;;
 
13435
  --header | --heade | --head | --hea )
 
13436
    $ac_shift
 
13437
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
13438
    ac_need_defaults=false;;
 
13439
  --he | --h)
 
13440
    # Conflict between --help and --header
 
13441
    { echo "$as_me: error: ambiguous option: $1
 
13442
Try \`$0 --help' for more information." >&2
 
13443
   { (exit 1); exit 1; }; };;
 
13444
  --help | --hel | -h )
 
13445
    echo "$ac_cs_usage"; exit ;;
 
13446
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
13447
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
13448
    ac_cs_silent=: ;;
 
13449
 
 
13450
  # This is an error.
 
13451
  -*) { echo "$as_me: error: unrecognized option: $1
 
13452
Try \`$0 --help' for more information." >&2
 
13453
   { (exit 1); exit 1; }; } ;;
 
13454
 
 
13455
  *) ac_config_targets="$ac_config_targets $1"
 
13456
     ac_need_defaults=false ;;
 
13457
 
 
13458
  esac
 
13459
  shift
 
13460
done
 
13461
 
 
13462
ac_configure_extra_args=
 
13463
 
 
13464
if $ac_cs_silent; then
 
13465
  exec 6>/dev/null
 
13466
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
13467
fi
 
13468
 
 
13469
_ACEOF
 
13470
cat >>$CONFIG_STATUS <<_ACEOF
 
13471
if \$ac_cs_recheck; then
 
13472
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
13473
  CONFIG_SHELL=$SHELL
 
13474
  export CONFIG_SHELL
 
13475
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
13476
fi
 
13477
 
 
13478
_ACEOF
 
13479
cat >>$CONFIG_STATUS <<\_ACEOF
 
13480
exec 5>>config.log
 
13481
{
 
13482
  echo
 
13483
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
13484
## Running $as_me. ##
 
13485
_ASBOX
 
13486
  echo "$ac_log"
 
13487
} >&5
 
13488
 
 
13489
_ACEOF
 
13490
cat >>$CONFIG_STATUS <<_ACEOF
 
13491
_ACEOF
 
13492
 
 
13493
cat >>$CONFIG_STATUS <<\_ACEOF
 
13494
 
 
13495
# Handling of arguments.
 
13496
for ac_config_target in $ac_config_targets
 
13497
do
 
13498
  case $ac_config_target in
 
13499
    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
 
13500
    "openvas.tmpl") CONFIG_FILES="$CONFIG_FILES openvas.tmpl" ;;
 
13501
    "include/corevers.h") CONFIG_FILES="$CONFIG_FILES include/corevers.h" ;;
 
13502
    "openvas-adduser") CONFIG_FILES="$CONFIG_FILES openvas-adduser" ;;
 
13503
    "openvas-rmuser") CONFIG_FILES="$CONFIG_FILES openvas-rmuser" ;;
 
13504
    "openvas-mkcert") CONFIG_FILES="$CONFIG_FILES openvas-mkcert" ;;
 
13505
    "openvas-mkcert-client") CONFIG_FILES="$CONFIG_FILES openvas-mkcert-client" ;;
 
13506
    "openvasd-config") CONFIG_FILES="$CONFIG_FILES openvasd-config" ;;
 
13507
 
 
13508
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
13509
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
13510
   { (exit 1); exit 1; }; };;
 
13511
  esac
 
13512
done
 
13513
 
 
13514
 
 
13515
# If the user did not use the arguments to specify the items to instantiate,
 
13516
# then the envvar interface is used.  Set only those that are not.
 
13517
# We use the long form for the default assignment because of an extremely
 
13518
# bizarre bug on SunOS 4.1.3.
 
13519
if $ac_need_defaults; then
 
13520
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
13521
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
13522
fi
 
13523
 
 
13524
# Have a temporary directory for convenience.  Make it in the build tree
 
13525
# simply because there is no reason against having it here, and in addition,
 
13526
# creating and moving files from /tmp can sometimes cause problems.
 
13527
# Hook for its removal unless debugging.
 
13528
# Note that there is a small window in which the directory will not be cleaned:
 
13529
# after its creation but before its name has been assigned to `$tmp'.
 
13530
$debug ||
 
13531
{
 
13532
  tmp=
 
13533
  trap 'exit_status=$?
 
13534
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
13535
' 0
 
13536
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
13537
}
 
13538
# Create a (secure) tmp directory for tmp files.
 
13539
 
 
13540
{
 
13541
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
13542
  test -n "$tmp" && test -d "$tmp"
 
13543
}  ||
 
13544
{
 
13545
  tmp=./conf$$-$RANDOM
 
13546
  (umask 077 && mkdir "$tmp")
 
13547
} ||
 
13548
{
 
13549
   echo "$me: cannot create a temporary directory in ." >&2
 
13550
   { (exit 1); exit 1; }
 
13551
}
 
13552
 
 
13553
#
 
13554
# Set up the sed scripts for CONFIG_FILES section.
 
13555
#
 
13556
 
 
13557
# No need to generate the scripts if there are no CONFIG_FILES.
 
13558
# This happens for instance when ./config.status config.h
 
13559
if test -n "$CONFIG_FILES"; then
 
13560
 
 
13561
_ACEOF
 
13562
 
 
13563
 
 
13564
 
 
13565
ac_delim='%!_!# '
 
13566
for ac_last_try in false false false false false :; do
 
13567
  cat >conf$$subs.sed <<_ACEOF
 
13568
SHELL!$SHELL$ac_delim
 
13569
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
13570
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
13571
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
13572
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
13573
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
13574
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
13575
exec_prefix!$exec_prefix$ac_delim
 
13576
prefix!$prefix$ac_delim
 
13577
program_transform_name!$program_transform_name$ac_delim
 
13578
bindir!$bindir$ac_delim
 
13579
sbindir!$sbindir$ac_delim
 
13580
libexecdir!$libexecdir$ac_delim
 
13581
datarootdir!$datarootdir$ac_delim
 
13582
datadir!$datadir$ac_delim
 
13583
sysconfdir!$sysconfdir$ac_delim
 
13584
sharedstatedir!$sharedstatedir$ac_delim
 
13585
localstatedir!$localstatedir$ac_delim
 
13586
includedir!$includedir$ac_delim
 
13587
oldincludedir!$oldincludedir$ac_delim
 
13588
docdir!$docdir$ac_delim
 
13589
infodir!$infodir$ac_delim
 
13590
htmldir!$htmldir$ac_delim
 
13591
dvidir!$dvidir$ac_delim
 
13592
pdfdir!$pdfdir$ac_delim
 
13593
psdir!$psdir$ac_delim
 
13594
libdir!$libdir$ac_delim
 
13595
localedir!$localedir$ac_delim
 
13596
mandir!$mandir$ac_delim
 
13597
DEFS!$DEFS$ac_delim
 
13598
ECHO_C!$ECHO_C$ac_delim
 
13599
ECHO_N!$ECHO_N$ac_delim
 
13600
ECHO_T!$ECHO_T$ac_delim
 
13601
LIBS!$LIBS$ac_delim
 
13602
build_alias!$build_alias$ac_delim
 
13603
host_alias!$host_alias$ac_delim
 
13604
target_alias!$target_alias$ac_delim
 
13605
build!$build$ac_delim
 
13606
build_cpu!$build_cpu$ac_delim
 
13607
build_vendor!$build_vendor$ac_delim
 
13608
build_os!$build_os$ac_delim
 
13609
host!$host$ac_delim
 
13610
host_cpu!$host_cpu$ac_delim
 
13611
host_vendor!$host_vendor$ac_delim
 
13612
host_os!$host_os$ac_delim
 
13613
CC!$CC$ac_delim
 
13614
CFLAGS!$CFLAGS$ac_delim
 
13615
LDFLAGS!$LDFLAGS$ac_delim
 
13616
CPPFLAGS!$CPPFLAGS$ac_delim
 
13617
ac_ct_CC!$ac_ct_CC$ac_delim
 
13618
EXEEXT!$EXEEXT$ac_delim
 
13619
OBJEXT!$OBJEXT$ac_delim
 
13620
SET_MAKE!$SET_MAKE$ac_delim
 
13621
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
13622
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
13623
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
13624
LIBOPENVASCONFIG!$LIBOPENVASCONFIG$ac_delim
 
13625
OPENVASLIBNASLCONFIG!$OPENVASLIBNASLCONFIG$ac_delim
 
13626
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
13627
GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
 
13628
GLIB_LIBS!$GLIB_LIBS$ac_delim
 
13629
CPP!$CPP$ac_delim
 
13630
GREP!$GREP$ac_delim
 
13631
EGREP!$EGREP$ac_delim
 
13632
ALLOCA!$ALLOCA$ac_delim
 
13633
XMKMF!$XMKMF$ac_delim
 
13634
X_CFLAGS!$X_CFLAGS$ac_delim
 
13635
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
 
13636
X_LIBS!$X_LIBS$ac_delim
 
13637
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
 
13638
AR!$AR$ac_delim
 
13639
PWD!$PWD$ac_delim
 
13640
PWDD!$PWDD$ac_delim
 
13641
OVSCFLAGS!$OVSCFLAGS$ac_delim
 
13642
NASLCFLAGS!$NASLCFLAGS$ac_delim
 
13643
CWALL!$CWALL$ac_delim
 
13644
version!$version$ac_delim
 
13645
OPENVASD_MAJOR!$OPENVASD_MAJOR$ac_delim
 
13646
OPENVASD_MINOR!$OPENVASD_MINOR$ac_delim
 
13647
OPENVASD_PATCH!$OPENVASD_PATCH$ac_delim
 
13648
OPENVASD_RC!$OPENVASD_RC$ac_delim
 
13649
OPENVASD_DATE!$OPENVASD_DATE$ac_delim
 
13650
OVS_COMPILER!$OVS_COMPILER$ac_delim
 
13651
OVS_OS_NAME!$OVS_OS_NAME$ac_delim
 
13652
OVS_OS_VERSION!$OVS_OS_VERSION$ac_delim
 
13653
OPENVASD_CONFDIR!$OPENVASD_CONFDIR$ac_delim
 
13654
OPENVASD_STATEDIR!$OPENVASD_STATEDIR$ac_delim
 
13655
OPENVASD_PIDDIR!$OPENVASD_PIDDIR$ac_delim
 
13656
OPENVASD_SHAREDSTATEDIR!$OPENVASD_SHAREDSTATEDIR$ac_delim
 
13657
OPENVASD_DATADIR!$OPENVASD_DATADIR$ac_delim
 
13658
OPENVASD_LIBDIR!$OPENVASD_LIBDIR$ac_delim
 
13659
OPENVASD_PLUGINS!$OPENVASD_PLUGINS$ac_delim
 
13660
OPENVASD_LOGDIR!$OPENVASD_LOGDIR$ac_delim
 
13661
OPENVASD_REPORTS!$OPENVASD_REPORTS$ac_delim
 
13662
INSTALL_DIR!$INSTALL_DIR$ac_delim
 
13663
INSTALL!$INSTALL$ac_delim
 
13664
RUN_LIBS!$RUN_LIBS$ac_delim
 
13665
_ACEOF
 
13666
 
 
13667
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
13668
    break
 
13669
  elif $ac_last_try; then
 
13670
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
13671
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
13672
   { (exit 1); exit 1; }; }
 
13673
  else
 
13674
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
13675
  fi
 
13676
done
 
13677
 
 
13678
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
13679
if test -n "$ac_eof"; then
 
13680
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
13681
  ac_eof=`expr $ac_eof + 1`
 
13682
fi
 
13683
 
 
13684
cat >>$CONFIG_STATUS <<_ACEOF
 
13685
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
13686
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
13687
_ACEOF
 
13688
sed '
 
13689
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
13690
s/^/s,@/; s/!/@,|#_!!_#|/
 
13691
:n
 
13692
t n
 
13693
s/'"$ac_delim"'$/,g/; t
 
13694
s/$/\\/; p
 
13695
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
13696
' >>$CONFIG_STATUS <conf$$subs.sed
 
13697
rm -f conf$$subs.sed
 
13698
cat >>$CONFIG_STATUS <<_ACEOF
 
13699
CEOF$ac_eof
 
13700
_ACEOF
 
13701
 
 
13702
 
 
13703
ac_delim='%!_!# '
 
13704
for ac_last_try in false false false false false :; do
 
13705
  cat >conf$$subs.sed <<_ACEOF
 
13706
resolv_lib!$resolv_lib$ac_delim
 
13707
socket_lib!$socket_lib$ac_delim
 
13708
nsl_lib!$nsl_lib$ac_delim
 
13709
ssl_lib!$ssl_lib$ac_delim
 
13710
pthread_lib!$pthread_lib$ac_delim
 
13711
debug_flags!$debug_flags$ac_delim
 
13712
man_openvas_1!$man_openvas_1$ac_delim
 
13713
man_openvasd_8!$man_openvasd_8$ac_delim
 
13714
dl_lib!$dl_lib$ac_delim
 
13715
libwrap!$libwrap$ac_delim
 
13716
uselibwrap!$uselibwrap$ac_delim
 
13717
use_pthreads!$use_pthreads$ac_delim
 
13718
rpcsvc_lib!$rpcsvc_lib$ac_delim
 
13719
compat_lib!$compat_lib$ac_delim
 
13720
c_r_lib!$c_r_lib$ac_delim
 
13721
ac_configure_args!$ac_configure_args$ac_delim
 
13722
egdpath!$egdpath$ac_delim
 
13723
installuser!$installuser$ac_delim
 
13724
LIBOBJS!$LIBOBJS$ac_delim
 
13725
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
13726
_ACEOF
 
13727
 
 
13728
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
 
13729
    break
 
13730
  elif $ac_last_try; then
 
13731
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
13732
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
13733
   { (exit 1); exit 1; }; }
 
13734
  else
 
13735
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
13736
  fi
 
13737
done
 
13738
 
 
13739
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
13740
if test -n "$ac_eof"; then
 
13741
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
13742
  ac_eof=`expr $ac_eof + 1`
 
13743
fi
 
13744
 
 
13745
cat >>$CONFIG_STATUS <<_ACEOF
 
13746
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
13747
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
13748
_ACEOF
 
13749
sed '
 
13750
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
13751
s/^/s,@/; s/!/@,|#_!!_#|/
 
13752
:n
 
13753
t n
 
13754
s/'"$ac_delim"'$/,g/; t
 
13755
s/$/\\/; p
 
13756
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
13757
' >>$CONFIG_STATUS <conf$$subs.sed
 
13758
rm -f conf$$subs.sed
 
13759
cat >>$CONFIG_STATUS <<_ACEOF
 
13760
:end
 
13761
s/|#_!!_#|//g
 
13762
CEOF$ac_eof
 
13763
_ACEOF
 
13764
 
 
13765
 
 
13766
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
13767
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
13768
# trailing colons and then remove the whole line if VPATH becomes empty
 
13769
# (actually we leave an empty line to preserve line numbers).
 
13770
if test "x$srcdir" = x.; then
 
13771
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
13772
s/:*\$(srcdir):*/:/
 
13773
s/:*\${srcdir}:*/:/
 
13774
s/:*@srcdir@:*/:/
 
13775
s/^\([^=]*=[     ]*\):*/\1/
 
13776
s/:*$//
 
13777
s/^[^=]*=[       ]*$//
 
13778
}'
 
13779
fi
 
13780
 
 
13781
cat >>$CONFIG_STATUS <<\_ACEOF
 
13782
fi # test -n "$CONFIG_FILES"
 
13783
 
 
13784
 
 
13785
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
 
13786
do
 
13787
  case $ac_tag in
 
13788
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
13789
  esac
 
13790
  case $ac_mode$ac_tag in
 
13791
  :[FHL]*:*);;
 
13792
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
13793
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
13794
   { (exit 1); exit 1; }; };;
 
13795
  :[FH]-) ac_tag=-:-;;
 
13796
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
13797
  esac
 
13798
  ac_save_IFS=$IFS
 
13799
  IFS=:
 
13800
  set x $ac_tag
 
13801
  IFS=$ac_save_IFS
 
13802
  shift
 
13803
  ac_file=$1
 
13804
  shift
 
13805
 
 
13806
  case $ac_mode in
 
13807
  :L) ac_source=$1;;
 
13808
  :[FH])
 
13809
    ac_file_inputs=
 
13810
    for ac_f
 
13811
    do
 
13812
      case $ac_f in
 
13813
      -) ac_f="$tmp/stdin";;
 
13814
      *) # Look for the file first in the build tree, then in the source tree
 
13815
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
13816
         # because $ac_f cannot contain `:'.
 
13817
         test -f "$ac_f" ||
 
13818
           case $ac_f in
 
13819
           [\\/$]*) false;;
 
13820
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
13821
           esac ||
 
13822
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
13823
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
13824
   { (exit 1); exit 1; }; };;
 
13825
      esac
 
13826
      ac_file_inputs="$ac_file_inputs $ac_f"
 
13827
    done
 
13828
 
 
13829
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
13830
    # use $as_me), people would be surprised to read:
 
13831
    #    /* config.h.  Generated by config.status.  */
 
13832
    configure_input="Generated from "`IFS=:
 
13833
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
13834
    if test x"$ac_file" != x-; then
 
13835
      configure_input="$ac_file.  $configure_input"
 
13836
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
13837
echo "$as_me: creating $ac_file" >&6;}
 
13838
    fi
 
13839
 
 
13840
    case $ac_tag in
 
13841
    *:-:* | *:-) cat >"$tmp/stdin";;
 
13842
    esac
 
13843
    ;;
 
13844
  esac
 
13845
 
 
13846
  ac_dir=`$as_dirname -- "$ac_file" ||
 
13847
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13848
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
13849
         X"$ac_file" : 'X\(//\)$' \| \
 
13850
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
13851
echo X"$ac_file" |
 
13852
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13853
            s//\1/
 
13854
            q
 
13855
          }
 
13856
          /^X\(\/\/\)[^/].*/{
 
13857
            s//\1/
 
13858
            q
 
13859
          }
 
13860
          /^X\(\/\/\)$/{
 
13861
            s//\1/
 
13862
            q
 
13863
          }
 
13864
          /^X\(\/\).*/{
 
13865
            s//\1/
 
13866
            q
 
13867
          }
 
13868
          s/.*/./; q'`
 
13869
  { as_dir="$ac_dir"
 
13870
  case $as_dir in #(
 
13871
  -*) as_dir=./$as_dir;;
 
13872
  esac
 
13873
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
13874
    as_dirs=
 
13875
    while :; do
 
13876
      case $as_dir in #(
 
13877
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
13878
      *) as_qdir=$as_dir;;
 
13879
      esac
 
13880
      as_dirs="'$as_qdir' $as_dirs"
 
13881
      as_dir=`$as_dirname -- "$as_dir" ||
 
13882
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13883
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
13884
         X"$as_dir" : 'X\(//\)$' \| \
 
13885
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
13886
echo X"$as_dir" |
 
13887
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13888
            s//\1/
 
13889
            q
 
13890
          }
 
13891
          /^X\(\/\/\)[^/].*/{
 
13892
            s//\1/
 
13893
            q
 
13894
          }
 
13895
          /^X\(\/\/\)$/{
 
13896
            s//\1/
 
13897
            q
 
13898
          }
 
13899
          /^X\(\/\).*/{
 
13900
            s//\1/
 
13901
            q
 
13902
          }
 
13903
          s/.*/./; q'`
 
13904
      test -d "$as_dir" && break
 
13905
    done
 
13906
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
13907
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
13908
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
13909
   { (exit 1); exit 1; }; }; }
 
13910
  ac_builddir=.
 
13911
 
 
13912
case "$ac_dir" in
 
13913
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
13914
*)
 
13915
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
13916
  # A ".." for each directory in $ac_dir_suffix.
 
13917
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
13918
  case $ac_top_builddir_sub in
 
13919
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
13920
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
13921
  esac ;;
 
13922
esac
 
13923
ac_abs_top_builddir=$ac_pwd
 
13924
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
13925
# for backward compatibility:
 
13926
ac_top_builddir=$ac_top_build_prefix
 
13927
 
 
13928
case $srcdir in
 
13929
  .)  # We are building in place.
 
13930
    ac_srcdir=.
 
13931
    ac_top_srcdir=$ac_top_builddir_sub
 
13932
    ac_abs_top_srcdir=$ac_pwd ;;
 
13933
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
13934
    ac_srcdir=$srcdir$ac_dir_suffix;
 
13935
    ac_top_srcdir=$srcdir
 
13936
    ac_abs_top_srcdir=$srcdir ;;
 
13937
  *) # Relative name.
 
13938
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
13939
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
13940
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
13941
esac
 
13942
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
13943
 
 
13944
 
 
13945
  case $ac_mode in
 
13946
  :F)
 
13947
  #
 
13948
  # CONFIG_FILE
 
13949
  #
 
13950
 
 
13951
  case $INSTALL in
 
13952
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
13953
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
13954
  esac
 
13955
_ACEOF
 
13956
 
 
13957
cat >>$CONFIG_STATUS <<\_ACEOF
 
13958
# If the template does not know about datarootdir, expand it.
 
13959
# FIXME: This hack should be removed a few years after 2.60.
 
13960
ac_datarootdir_hack=; ac_datarootdir_seen=
 
13961
 
 
13962
case `sed -n '/datarootdir/ {
 
13963
  p
 
13964
  q
 
13965
}
 
13966
/@datadir@/p
 
13967
/@docdir@/p
 
13968
/@infodir@/p
 
13969
/@localedir@/p
 
13970
/@mandir@/p
 
13971
' $ac_file_inputs` in
 
13972
*datarootdir*) ac_datarootdir_seen=yes;;
 
13973
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
13974
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
13975
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
13976
_ACEOF
 
13977
cat >>$CONFIG_STATUS <<_ACEOF
 
13978
  ac_datarootdir_hack='
 
13979
  s&@datadir@&$datadir&g
 
13980
  s&@docdir@&$docdir&g
 
13981
  s&@infodir@&$infodir&g
 
13982
  s&@localedir@&$localedir&g
 
13983
  s&@mandir@&$mandir&g
 
13984
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
13985
esac
 
13986
_ACEOF
 
13987
 
 
13988
# Neutralize VPATH when `$srcdir' = `.'.
 
13989
# Shell code in configure.ac might set extrasub.
 
13990
# FIXME: do we really want to maintain this feature?
 
13991
cat >>$CONFIG_STATUS <<_ACEOF
 
13992
  sed "$ac_vpsub
5630
13993
$extrasub
5631
 
s%@SHELL@%$SHELL%g
5632
 
s%@CFLAGS@%$CFLAGS%g
5633
 
s%@CPPFLAGS@%$CPPFLAGS%g
5634
 
s%@CXXFLAGS@%$CXXFLAGS%g
5635
 
s%@FFLAGS@%$FFLAGS%g
5636
 
s%@DEFS@%$DEFS%g
5637
 
s%@LDFLAGS@%$LDFLAGS%g
5638
 
s%@LIBS@%$LIBS%g
5639
 
s%@exec_prefix@%$exec_prefix%g
5640
 
s%@prefix@%$prefix%g
5641
 
s%@program_transform_name@%$program_transform_name%g
5642
 
s%@bindir@%$bindir%g
5643
 
s%@sbindir@%$sbindir%g
5644
 
s%@libexecdir@%$libexecdir%g
5645
 
s%@datadir@%$datadir%g
5646
 
s%@sysconfdir@%$sysconfdir%g
5647
 
s%@sharedstatedir@%$sharedstatedir%g
5648
 
s%@localstatedir@%$localstatedir%g
5649
 
s%@libdir@%$libdir%g
5650
 
s%@includedir@%$includedir%g
5651
 
s%@oldincludedir@%$oldincludedir%g
5652
 
s%@infodir@%$infodir%g
5653
 
s%@mandir@%$mandir%g
5654
 
s%@host@%$host%g
5655
 
s%@host_alias@%$host_alias%g
5656
 
s%@host_cpu@%$host_cpu%g
5657
 
s%@host_vendor@%$host_vendor%g
5658
 
s%@host_os@%$host_os%g
5659
 
s%@CC@%$CC%g
5660
 
s%@SET_MAKE@%$SET_MAKE%g
5661
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5662
 
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5663
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
5664
 
s%@LIBOPENVASCONFIG@%$LIBOPENVASCONFIG%g
5665
 
s%@OPENVASLIBNASLCONFIG@%$OPENVASLIBNASLCONFIG%g
5666
 
s%@CPP@%$CPP%g
5667
 
s%@ALLOCA@%$ALLOCA%g
5668
 
s%@X_CFLAGS@%$X_CFLAGS%g
5669
 
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5670
 
s%@X_LIBS@%$X_LIBS%g
5671
 
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5672
 
s%@AR@%$AR%g
5673
 
s%@PWD@%$PWD%g
5674
 
s%@PWDD@%$PWDD%g
5675
 
s%@OVSCFLAGS@%$OVSCFLAGS%g
5676
 
s%@NASLCFLAGS@%$NASLCFLAGS%g
5677
 
s%@CWALL@%$CWALL%g
5678
 
s%@version@%$version%g
5679
 
s%@OPENVASD_MAJOR@%$OPENVASD_MAJOR%g
5680
 
s%@OPENVASD_MINOR@%$OPENVASD_MINOR%g
5681
 
s%@OPENVASD_PATCH@%$OPENVASD_PATCH%g
5682
 
s%@OPENVASD_RC@%$OPENVASD_RC%g
5683
 
s%@OPENVASD_DATE@%$OPENVASD_DATE%g
5684
 
s%@OVS_COMPILER@%$OVS_COMPILER%g
5685
 
s%@OVS_OS_NAME@%$OVS_OS_NAME%g
5686
 
s%@OVS_OS_VERSION@%$OVS_OS_VERSION%g
5687
 
s%@OPENVASD_CONFDIR@%$OPENVASD_CONFDIR%g
5688
 
s%@OPENVASD_STATEDIR@%$OPENVASD_STATEDIR%g
5689
 
s%@OPENVASD_PIDDIR@%$OPENVASD_PIDDIR%g
5690
 
s%@OPENVASD_SHAREDSTATEDIR@%$OPENVASD_SHAREDSTATEDIR%g
5691
 
s%@OPENVASD_DATADIR@%$OPENVASD_DATADIR%g
5692
 
s%@OPENVASD_LIBDIR@%$OPENVASD_LIBDIR%g
5693
 
s%@OPENVASD_PLUGINS@%$OPENVASD_PLUGINS%g
5694
 
s%@OPENVASD_LOGDIR@%$OPENVASD_LOGDIR%g
5695
 
s%@OPENVASD_REPORTS@%$OPENVASD_REPORTS%g
5696
 
s%@INSTALL_DIR@%$INSTALL_DIR%g
5697
 
s%@INSTALL@%$INSTALL%g
5698
 
s%@RUN_LIBS@%$RUN_LIBS%g
5699
 
s%@resolv_lib@%$resolv_lib%g
5700
 
s%@socket_lib@%$socket_lib%g
5701
 
s%@nsl_lib@%$nsl_lib%g
5702
 
s%@ssl_lib@%$ssl_lib%g
5703
 
s%@pthread_lib@%$pthread_lib%g
5704
 
s%@debug_flags@%$debug_flags%g
5705
 
s%@man_openvas_1@%$man_openvas_1%g
5706
 
s%@man_openvasd_8@%$man_openvasd_8%g
5707
 
s%@dl_lib@%$dl_lib%g
5708
 
s%@libwrap@%$libwrap%g
5709
 
s%@uselibwrap@%$uselibwrap%g
5710
 
s%@use_pthreads@%$use_pthreads%g
5711
 
s%@rpcsvc_lib@%$rpcsvc_lib%g
5712
 
s%@compat_lib@%$compat_lib%g
5713
 
s%@c_r_lib@%$c_r_lib%g
5714
 
s%@ac_configure_args@%$ac_configure_args%g
5715
 
s%@egdpath@%$egdpath%g
5716
 
s%@installuser@%$installuser%g
5717
 
 
5718
 
CEOF
5719
 
EOF
5720
 
 
5721
 
cat >> $CONFIG_STATUS <<\EOF
5722
 
 
5723
 
# Split the substitutions into bite-sized pieces for seds with
5724
 
# small command number limits, like on Digital OSF/1 and HP-UX.
5725
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5726
 
ac_file=1 # Number of current file.
5727
 
ac_beg=1 # First line for current file.
5728
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
5729
 
ac_more_lines=:
5730
 
ac_sed_cmds=""
5731
 
while $ac_more_lines; do
5732
 
  if test $ac_beg -gt 1; then
5733
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5734
 
  else
5735
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5736
 
  fi
5737
 
  if test ! -s conftest.s$ac_file; then
5738
 
    ac_more_lines=false
5739
 
    rm -f conftest.s$ac_file
5740
 
  else
5741
 
    if test -z "$ac_sed_cmds"; then
5742
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
5743
 
    else
5744
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5745
 
    fi
5746
 
    ac_file=`expr $ac_file + 1`
5747
 
    ac_beg=$ac_end
5748
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
5749
 
  fi
5750
 
done
5751
 
if test -z "$ac_sed_cmds"; then
5752
 
  ac_sed_cmds=cat
5753
 
fi
5754
 
EOF
5755
 
 
5756
 
cat >> $CONFIG_STATUS <<EOF
5757
 
 
5758
 
CONFIG_FILES=\${CONFIG_FILES-"openvas.tmpl include/corevers.h openvas-adduser openvas-rmuser openvas-mkcert openvas-mkcert-client openvasd-config"}
5759
 
EOF
5760
 
cat >> $CONFIG_STATUS <<\EOF
5761
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5762
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5763
 
  case "$ac_file" in
5764
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5765
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5766
 
  *) ac_file_in="${ac_file}.in" ;;
5767
 
  esac
5768
 
 
5769
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5770
 
 
5771
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
5772
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5773
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5774
 
    # The file is in a subdirectory.
5775
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
5776
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5777
 
    # A "../" for each directory in $ac_dir_suffix.
5778
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5779
 
  else
5780
 
    ac_dir_suffix= ac_dots=
5781
 
  fi
5782
 
 
5783
 
  case "$ac_given_srcdir" in
5784
 
  .)  srcdir=.
5785
 
      if test -z "$ac_dots"; then top_srcdir=.
5786
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5787
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5788
 
  *) # Relative path.
5789
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5790
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
5791
 
  esac
5792
 
 
5793
 
  case "$ac_given_INSTALL" in
5794
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
5795
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5796
 
  esac
5797
 
 
5798
 
  echo creating "$ac_file"
5799
 
  rm -f "$ac_file"
5800
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5801
 
  case "$ac_file" in
5802
 
  *Makefile*) ac_comsub="1i\\
5803
 
# $configure_input" ;;
5804
 
  *) ac_comsub= ;;
5805
 
  esac
5806
 
 
5807
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5808
 
  sed -e "$ac_comsub
5809
 
s%@configure_input@%$configure_input%g
5810
 
s%@srcdir@%$srcdir%g
5811
 
s%@top_srcdir@%$top_srcdir%g
5812
 
s%@INSTALL@%$INSTALL%g
5813
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5814
 
fi; done
5815
 
rm -f conftest.s*
5816
 
 
5817
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5818
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5819
 
#
5820
 
# ac_d sets the value in "#define NAME VALUE" lines.
5821
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5822
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
5823
 
ac_dC='\3'
5824
 
ac_dD='%g'
5825
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5826
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5827
 
ac_uB='\([      ]\)%\1#\2define\3'
5828
 
ac_uC=' '
5829
 
ac_uD='\4%g'
5830
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5831
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5832
 
ac_eB='$%\1#\2define\3'
5833
 
ac_eC=' '
5834
 
ac_eD='%g'
5835
 
 
5836
 
if test "${CONFIG_HEADERS+set}" != set; then
5837
 
EOF
5838
 
cat >> $CONFIG_STATUS <<EOF
5839
 
  CONFIG_HEADERS="include/config.h"
5840
 
EOF
5841
 
cat >> $CONFIG_STATUS <<\EOF
5842
 
fi
5843
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5844
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5845
 
  case "$ac_file" in
5846
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5847
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5848
 
  *) ac_file_in="${ac_file}.in" ;;
5849
 
  esac
5850
 
 
5851
 
  echo creating $ac_file
5852
 
 
5853
 
  rm -f conftest.frag conftest.in conftest.out
5854
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5855
 
  cat $ac_file_inputs > conftest.in
5856
 
 
5857
 
EOF
5858
 
 
5859
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
5860
 
# the proper values into config.h.in to produce config.h.  And first:
5861
 
# Protect against being on the right side of a sed subst in config.status.
5862
 
# Protect against being in an unquoted here document in config.status.
5863
 
rm -f conftest.vals
5864
 
cat > conftest.hdr <<\EOF
5865
 
s/[\\&%]/\\&/g
5866
 
s%[\\$`]%\\&%g
5867
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5868
 
s%ac_d%ac_u%gp
5869
 
s%ac_u%ac_e%gp
5870
 
EOF
5871
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
5872
 
rm -f conftest.hdr
5873
 
 
5874
 
# This sed command replaces #undef with comments.  This is necessary, for
 
13994
_ACEOF
 
13995
cat >>$CONFIG_STATUS <<\_ACEOF
 
13996
:t
 
13997
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
13998
s&@configure_input@&$configure_input&;t t
 
13999
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14000
s&@srcdir@&$ac_srcdir&;t t
 
14001
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
14002
s&@top_srcdir@&$ac_top_srcdir&;t t
 
14003
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
14004
s&@builddir@&$ac_builddir&;t t
 
14005
s&@abs_builddir@&$ac_abs_builddir&;t t
 
14006
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
14007
s&@INSTALL@&$ac_INSTALL&;t t
 
14008
$ac_datarootdir_hack
 
14009
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
14010
 
 
14011
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
14012
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
14013
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
14014
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14015
which seems to be undefined.  Please make sure it is defined." >&5
 
14016
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14017
which seems to be undefined.  Please make sure it is defined." >&2;}
 
14018
 
 
14019
  rm -f "$tmp/stdin"
 
14020
  case $ac_file in
 
14021
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
14022
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
14023
  esac
 
14024
 ;;
 
14025
  :H)
 
14026
  #
 
14027
  # CONFIG_HEADER
 
14028
  #
 
14029
_ACEOF
 
14030
 
 
14031
# Transform confdefs.h into a sed script `conftest.defines', that
 
14032
# substitutes the proper values into config.h.in to produce config.h.
 
14033
rm -f conftest.defines conftest.tail
 
14034
# First, append a space to every undef/define line, to ease matching.
 
14035
echo 's/$/ /' >conftest.defines
 
14036
# Then, protect against being on the right side of a sed subst, or in
 
14037
# an unquoted here document, in config.status.  If some macros were
 
14038
# called several times there might be several #defines for the same
 
14039
# symbol, which is useless.  But do not sort them, since the last
 
14040
# AC_DEFINE must be honored.
 
14041
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14042
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
14043
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
14044
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
14045
# just an empty string.
 
14046
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
14047
ac_dB='\\)[      (].*,\\1define\\2'
 
14048
ac_dC=' '
 
14049
ac_dD=' ,'
 
14050
 
 
14051
uniq confdefs.h |
 
14052
  sed -n '
 
14053
        t rset
 
14054
        :rset
 
14055
        s/^[     ]*#[    ]*define[       ][      ]*//
 
14056
        t ok
 
14057
        d
 
14058
        :ok
 
14059
        s/[\\&,]/\\&/g
 
14060
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
14061
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
14062
  ' >>conftest.defines
 
14063
 
 
14064
# Remove the space that was appended to ease matching.
 
14065
# Then replace #undef with comments.  This is necessary, for
5875
14066
# example, in the case of _POSIX_SOURCE, which is predefined and required
5876
14067
# on some systems where configure will not decide to define it.
5877
 
cat >> conftest.vals <<\EOF
5878
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5879
 
EOF
5880
 
 
5881
 
# Break up conftest.vals because some shells have a limit on
5882
 
# the size of here documents, and old seds have small limits too.
5883
 
 
5884
 
rm -f conftest.tail
 
14068
# (The regexp can be short, since the line contains either #define or #undef.)
 
14069
echo 's/ $//
 
14070
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
14071
 
 
14072
# Break up conftest.defines:
 
14073
ac_max_sed_lines=50
 
14074
 
 
14075
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
14076
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
14077
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
14078
# et cetera.
 
14079
ac_in='$ac_file_inputs'
 
14080
ac_out='"$tmp/out1"'
 
14081
ac_nxt='"$tmp/out2"'
 
14082
 
5885
14083
while :
5886
14084
do
5887
 
  ac_lines=`grep -c . conftest.vals`
5888
 
  # grep -c gives empty output for an empty file on some AIX systems.
5889
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5890
 
  # Write a limited-size here document to conftest.frag.
5891
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5892
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
14085
  # Write a here document:
 
14086
    cat >>$CONFIG_STATUS <<_ACEOF
 
14087
    # First, check the format of the line:
 
14088
    cat >"\$tmp/defines.sed" <<\\CEOF
 
14089
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
14090
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
14091
b
 
14092
:def
 
14093
_ACEOF
 
14094
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5893
14095
  echo 'CEOF
5894
 
  sed -f conftest.frag conftest.in > conftest.out
5895
 
  rm -f conftest.in
5896
 
  mv conftest.out conftest.in
5897
 
' >> $CONFIG_STATUS
5898
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5899
 
  rm -f conftest.vals
5900
 
  mv conftest.tail conftest.vals
 
14096
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
14097
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
14098
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
14099
  grep . conftest.tail >/dev/null || break
 
14100
  rm -f conftest.defines
 
14101
  mv conftest.tail conftest.defines
5901
14102
done
5902
 
rm -f conftest.vals
 
14103
rm -f conftest.defines conftest.tail
5903
14104
 
5904
 
cat >> $CONFIG_STATUS <<\EOF
5905
 
  rm -f conftest.frag conftest.h
5906
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
5907
 
  cat conftest.in >> conftest.h
5908
 
  rm -f conftest.in
5909
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
5910
 
    echo "$ac_file is unchanged"
5911
 
    rm -f conftest.h
 
14105
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
14106
cat >>$CONFIG_STATUS <<\_ACEOF
 
14107
  if test x"$ac_file" != x-; then
 
14108
    echo "/* $configure_input  */" >"$tmp/config.h"
 
14109
    cat "$ac_result" >>"$tmp/config.h"
 
14110
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
14111
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
14112
echo "$as_me: $ac_file is unchanged" >&6;}
 
14113
    else
 
14114
      rm -f $ac_file
 
14115
      mv "$tmp/config.h" $ac_file
 
14116
    fi
5912
14117
  else
5913
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
5914
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5915
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5916
 
      # The file is in a subdirectory.
5917
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
5918
 
    fi
5919
 
    rm -f $ac_file
5920
 
    mv conftest.h $ac_file
 
14118
    echo "/* $configure_input  */"
 
14119
    cat "$ac_result"
5921
14120
  fi
5922
 
fi; done
5923
 
 
5924
 
EOF
5925
 
cat >> $CONFIG_STATUS <<EOF
5926
 
 
5927
 
EOF
5928
 
cat >> $CONFIG_STATUS <<\EOF
5929
 
 
5930
 
exit 0
5931
 
EOF
 
14121
  rm -f "$tmp/out12"
 
14122
 ;;
 
14123
 
 
14124
 
 
14125
  esac
 
14126
 
 
14127
done # for ac_tag
 
14128
 
 
14129
 
 
14130
{ (exit 0); exit 0; }
 
14131
_ACEOF
5932
14132
chmod +x $CONFIG_STATUS
5933
 
rm -fr confdefs* $ac_clean_files
5934
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
14133
ac_clean_files=$ac_clean_files_save
 
14134
 
 
14135
 
 
14136
# configure is writing to config.log, and then calls config.status.
 
14137
# config.status does its own redirection, appending to config.log.
 
14138
# Unfortunately, on DOS this fails, as config.log is still kept open
 
14139
# by configure, so config.status won't be able to write to it; its
 
14140
# output is simply discarded.  So we exec the FD to /dev/null,
 
14141
# effectively closing config.log, so it can be properly (re)opened and
 
14142
# appended to by config.status.  When coming back to configure, we
 
14143
# need to make the FD available again.
 
14144
if test "$no_create" != yes; then
 
14145
  ac_cs_success=:
 
14146
  ac_config_status_args=
 
14147
  test "$silent" = yes &&
 
14148
    ac_config_status_args="$ac_config_status_args --quiet"
 
14149
  exec 5>/dev/null
 
14150
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
14151
  exec 5>>config.log
 
14152
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
14153
  # would make configure fail if this is the last instruction.
 
14154
  $ac_cs_success || { (exit 1); exit 1; }
 
14155
fi
5935
14156
 
5936
14157
 
5937
14158