~psusi/ubuntu/precise/dmraid/fix-gpt

« back to all changes in this revision

Viewing changes to 1.0.0.rc14/configure

  • Committer: Bazaar Package Importer
  • Author(s): Giuseppe Iuculano, 6af052c
  • Date: 2009-03-25 22:34:59 UTC
  • mfrom: (2.1.9 sid)
  • mto: (2.4.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20090325223459-y54f0rmxem7htn6r
Tags: 1.0.0.rc15-6
[6af052c] Remove 15_isw_incorrect_status_fix.patch, it causes a
segfault. (Closes: #521104)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59.
4
 
#
5
 
# Copyright (C) 2003 Free Software Foundation, Inc.
6
 
# This configure script is free software; the Free Software Foundation
7
 
# gives unlimited permission to copy, distribute and modify it.
8
 
## --------------------- ##
9
 
## M4sh Initialization.  ##
10
 
## --------------------- ##
11
 
 
12
 
# Be Bourne compatible
13
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
 
  emulate sh
15
 
  NULLCMD=:
16
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
 
  # is contrary to our usage.  Disable this feature.
18
 
  alias -g '${1+"$@"}'='"$@"'
19
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
 
  set -o posix
21
 
fi
22
 
DUALCASE=1; export DUALCASE # for MKS sh
23
 
 
24
 
# Support unset when possible.
25
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
 
  as_unset=unset
27
 
else
28
 
  as_unset=false
29
 
fi
30
 
 
31
 
 
32
 
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
34
 
PS1='$ '
35
 
PS2='> '
36
 
PS4='+ '
37
 
 
38
 
# NLS nuisances.
39
 
for as_var in \
40
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
 
  LC_TELEPHONE LC_TIME
43
 
do
44
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
 
    eval $as_var=C; export $as_var
46
 
  else
47
 
    $as_unset $as_var
48
 
  fi
49
 
done
50
 
 
51
 
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
53
 
  as_expr=expr
54
 
else
55
 
  as_expr=false
56
 
fi
57
 
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
 
  as_basename=basename
60
 
else
61
 
  as_basename=false
62
 
fi
63
 
 
64
 
 
65
 
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
67
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
 
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
71
 
echo X/"$0" |
72
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
 
          /^X\/\(\/\).*/{ s//\1/; q; }
75
 
          s/.*/./; q'`
76
 
 
77
 
 
78
 
# PATH needs CR, and LINENO needs CR and PATH.
79
 
# Avoid depending upon Character Ranges.
80
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
 
as_cr_digits='0123456789'
84
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
 
86
 
# The user is always right.
87
 
if test "${PATH_SEPARATOR+set}" != set; then
88
 
  echo "#! /bin/sh" >conf$$.sh
89
 
  echo  "exit 0"   >>conf$$.sh
90
 
  chmod +x conf$$.sh
91
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
 
    PATH_SEPARATOR=';'
93
 
  else
94
 
    PATH_SEPARATOR=:
95
 
  fi
96
 
  rm -f conf$$.sh
97
 
fi
98
 
 
99
 
 
100
 
  as_lineno_1=$LINENO
101
 
  as_lineno_2=$LINENO
102
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
 
  # Find who we are.  Look in the path if we contain no path at all
106
 
  # relative or not.
107
 
  case $0 in
108
 
    *[\\/]* ) as_myself=$0 ;;
109
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
 
for as_dir in $PATH
111
 
do
112
 
  IFS=$as_save_IFS
113
 
  test -z "$as_dir" && as_dir=.
114
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
 
done
116
 
 
117
 
       ;;
118
 
  esac
119
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
 
  # in which case we are not to be found in the path.
121
 
  if test "x$as_myself" = x; then
122
 
    as_myself=$0
123
 
  fi
124
 
  if test ! -f "$as_myself"; then
125
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
 
   { (exit 1); exit 1; }; }
127
 
  fi
128
 
  case $CONFIG_SHELL in
129
 
  '')
130
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
 
do
133
 
  IFS=$as_save_IFS
134
 
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
137
 
         /*)
138
 
           if ("$as_dir/$as_base" -c '
139
 
  as_lineno_1=$LINENO
140
 
  as_lineno_2=$LINENO
141
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
 
             CONFIG_SHELL=$as_dir/$as_base
147
 
             export CONFIG_SHELL
148
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
 
           fi;;
150
 
         esac
151
 
       done
152
 
done
153
 
;;
154
 
  esac
155
 
 
156
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
 
  # line-number line before each line; the second 'sed' does the real
159
 
  # work.  The second script uses 'N' to pair each line-number line
160
 
  # with the numbered line, and appends trailing '-' during
161
 
  # substitution so that $LINENO is not a special case at line end.
162
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
 
  sed '=' <$as_myself |
165
 
    sed '
166
 
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
 
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
173
 
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
175
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
 
   { (exit 1); exit 1; }; }
177
 
 
178
 
  # Don't try to exec as it changes $[0], causing all sort of problems
179
 
  # (the dirname of $[0] is not the place where we might find the
180
 
  # original and so on.  Autoconf is especially sensible to this).
181
 
  . ./$as_me.lineno
182
 
  # Exit status is that of the last command.
183
 
  exit
184
 
}
185
 
 
186
 
 
187
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
 
  *c*,-n*) ECHO_N= ECHO_C='
189
 
' ECHO_T='      ' ;;
190
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
 
esac
193
 
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
195
 
  as_expr=expr
196
 
else
197
 
  as_expr=false
198
 
fi
199
 
 
200
 
rm -f conf$$ conf$$.exe conf$$.file
201
 
echo >conf$$.file
202
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
 
  # We could just check for DJGPP; but this test a) works b) is more generic
204
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
 
  if test -f conf$$.exe; then
206
 
    # Don't use ln at all; we don't have any links
207
 
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
 
  fi
211
 
elif ln conf$$.file conf$$ 2>/dev/null; then
212
 
  as_ln_s=ln
213
 
else
214
 
  as_ln_s='cp -p'
215
 
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
217
 
 
218
 
if mkdir -p . 2>/dev/null; then
219
 
  as_mkdir_p=:
220
 
else
221
 
  test -d ./-p && rmdir ./-p
222
 
  as_mkdir_p=false
223
 
fi
224
 
 
225
 
as_executable_p="test -f"
226
 
 
227
 
# Sed expression to map a string onto a valid CPP name.
228
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
 
230
 
# Sed expression to map a string onto a valid variable name.
231
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
 
233
 
 
234
 
# IFS
235
 
# We need space, tab and new line, in precisely that order.
236
 
as_nl='
237
 
'
238
 
IFS="   $as_nl"
239
 
 
240
 
# CDPATH.
241
 
$as_unset CDPATH
242
 
 
243
 
 
244
 
# Name of the host.
245
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
 
# so uname gets run too.
247
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
 
 
249
 
exec 6>&1
250
 
 
251
 
#
252
 
# Initializations.
253
 
#
254
 
ac_default_prefix=/usr/local
255
 
ac_config_libobj_dir=.
256
 
cross_compiling=no
257
 
subdirs=
258
 
MFLAGS=
259
 
MAKEFLAGS=
260
 
SHELL=${CONFIG_SHELL-/bin/sh}
261
 
 
262
 
# Maximum number of lines to put in a shell here document.
263
 
# This variable seems obsolete.  It should probably be removed, and
264
 
# only ac_max_sed_lines should be used.
265
 
: ${ac_max_here_lines=38}
266
 
 
267
 
# Identity of this package.
268
 
PACKAGE_NAME=
269
 
PACKAGE_TARNAME=
270
 
PACKAGE_VERSION=
271
 
PACKAGE_STRING=
272
 
PACKAGE_BUGREPORT=
273
 
 
274
 
ac_unique_file="lib/device/dev-io.h"
275
 
# Factoring default headers for most tests.
276
 
ac_includes_default="\
277
 
#include <stdio.h>
278
 
#if HAVE_SYS_TYPES_H
279
 
# include <sys/types.h>
280
 
#endif
281
 
#if HAVE_SYS_STAT_H
282
 
# include <sys/stat.h>
283
 
#endif
284
 
#if STDC_HEADERS
285
 
# include <stdlib.h>
286
 
# include <stddef.h>
287
 
#else
288
 
# if HAVE_STDLIB_H
289
 
#  include <stdlib.h>
290
 
# endif
291
 
#endif
292
 
#if HAVE_STRING_H
293
 
# if !STDC_HEADERS && HAVE_MEMORY_H
294
 
#  include <memory.h>
295
 
# endif
296
 
# include <string.h>
297
 
#endif
298
 
#if HAVE_STRINGS_H
299
 
# include <strings.h>
300
 
#endif
301
 
#if HAVE_INTTYPES_H
302
 
# include <inttypes.h>
303
 
#else
304
 
# if HAVE_STDINT_H
305
 
#  include <stdint.h>
306
 
# endif
307
 
#endif
308
 
#if HAVE_UNISTD_H
309
 
# include <unistd.h>
310
 
#endif"
311
 
 
312
 
ac_default_prefix=/usr
313
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB KLCC KLIBC KLIBC_PREFIX KLIBC_BIN_DIR KLIBC_SBIN_DIR KLIBC_LIB_DIR KLIBC_INCLUDE_DIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CLDFLAGS DEBUG DEBUG_MALLOC DMRAID_TEST DMRAID_VERSION DMRAID_LIB_VERSION DIETLIBC GROUP JOBS LD_DEPS FLAVOUR LIBSELINUX LIBSEPOL LIB_SO OWNER SOFLAG STATIC_LINK LIBOBJS LTLIBOBJS'
314
 
ac_subst_files=''
315
 
 
316
 
# Initialize some variables set by options.
317
 
ac_init_help=
318
 
ac_init_version=false
319
 
# The variables have the same names as the options, with
320
 
# dashes changed to underlines.
321
 
cache_file=/dev/null
322
 
exec_prefix=NONE
323
 
no_create=
324
 
no_recursion=
325
 
prefix=NONE
326
 
program_prefix=NONE
327
 
program_suffix=NONE
328
 
program_transform_name=s,x,x,
329
 
silent=
330
 
site=
331
 
srcdir=
332
 
verbose=
333
 
x_includes=NONE
334
 
x_libraries=NONE
335
 
 
336
 
# Installation directory options.
337
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
338
 
# and all the variables that are supposed to be based on exec_prefix
339
 
# by default will actually change.
340
 
# Use braces instead of parens because sh, perl, etc. also accept them.
341
 
bindir='${exec_prefix}/bin'
342
 
sbindir='${exec_prefix}/sbin'
343
 
libexecdir='${exec_prefix}/libexec'
344
 
datadir='${prefix}/share'
345
 
sysconfdir='${prefix}/etc'
346
 
sharedstatedir='${prefix}/com'
347
 
localstatedir='${prefix}/var'
348
 
libdir='${exec_prefix}/lib'
349
 
includedir='${prefix}/include'
350
 
oldincludedir='/usr/include'
351
 
infodir='${prefix}/info'
352
 
mandir='${prefix}/man'
353
 
 
354
 
ac_prev=
355
 
for ac_option
356
 
do
357
 
  # If the previous option needs an argument, assign it.
358
 
  if test -n "$ac_prev"; then
359
 
    eval "$ac_prev=\$ac_option"
360
 
    ac_prev=
361
 
    continue
362
 
  fi
363
 
 
364
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
 
 
366
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
367
 
 
368
 
  case $ac_option in
369
 
 
370
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371
 
    ac_prev=bindir ;;
372
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373
 
    bindir=$ac_optarg ;;
374
 
 
375
 
  -build | --build | --buil | --bui | --bu)
376
 
    ac_prev=build_alias ;;
377
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378
 
    build_alias=$ac_optarg ;;
379
 
 
380
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
381
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382
 
    ac_prev=cache_file ;;
383
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385
 
    cache_file=$ac_optarg ;;
386
 
 
387
 
  --config-cache | -C)
388
 
    cache_file=config.cache ;;
389
 
 
390
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
 
    ac_prev=datadir ;;
392
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
 
  | --da=*)
394
 
    datadir=$ac_optarg ;;
395
 
 
396
 
  -disable-* | --disable-*)
397
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398
 
    # Reject names that are not valid shell variable names.
399
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401
 
   { (exit 1); exit 1; }; }
402
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403
 
    eval "enable_$ac_feature=no" ;;
404
 
 
405
 
  -enable-* | --enable-*)
406
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407
 
    # Reject names that are not valid shell variable names.
408
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410
 
   { (exit 1); exit 1; }; }
411
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
 
    case $ac_option in
413
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414
 
      *) ac_optarg=yes ;;
415
 
    esac
416
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
417
 
 
418
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420
 
  | --exec | --exe | --ex)
421
 
    ac_prev=exec_prefix ;;
422
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424
 
  | --exec=* | --exe=* | --ex=*)
425
 
    exec_prefix=$ac_optarg ;;
426
 
 
427
 
  -gas | --gas | --ga | --g)
428
 
    # Obsolete; use --with-gas.
429
 
    with_gas=yes ;;
430
 
 
431
 
  -help | --help | --hel | --he | -h)
432
 
    ac_init_help=long ;;
433
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434
 
    ac_init_help=recursive ;;
435
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436
 
    ac_init_help=short ;;
437
 
 
438
 
  -host | --host | --hos | --ho)
439
 
    ac_prev=host_alias ;;
440
 
  -host=* | --host=* | --hos=* | --ho=*)
441
 
    host_alias=$ac_optarg ;;
442
 
 
443
 
  -includedir | --includedir | --includedi | --included | --include \
444
 
  | --includ | --inclu | --incl | --inc)
445
 
    ac_prev=includedir ;;
446
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
448
 
    includedir=$ac_optarg ;;
449
 
 
450
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
451
 
    ac_prev=infodir ;;
452
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453
 
    infodir=$ac_optarg ;;
454
 
 
455
 
  -libdir | --libdir | --libdi | --libd)
456
 
    ac_prev=libdir ;;
457
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458
 
    libdir=$ac_optarg ;;
459
 
 
460
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461
 
  | --libexe | --libex | --libe)
462
 
    ac_prev=libexecdir ;;
463
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464
 
  | --libexe=* | --libex=* | --libe=*)
465
 
    libexecdir=$ac_optarg ;;
466
 
 
467
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
468
 
  | --localstate | --localstat | --localsta | --localst \
469
 
  | --locals | --local | --loca | --loc | --lo)
470
 
    ac_prev=localstatedir ;;
471
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474
 
    localstatedir=$ac_optarg ;;
475
 
 
476
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
 
    ac_prev=mandir ;;
478
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479
 
    mandir=$ac_optarg ;;
480
 
 
481
 
  -nfp | --nfp | --nf)
482
 
    # Obsolete; use --without-fp.
483
 
    with_fp=no ;;
484
 
 
485
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486
 
  | --no-cr | --no-c | -n)
487
 
    no_create=yes ;;
488
 
 
489
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491
 
    no_recursion=yes ;;
492
 
 
493
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495
 
  | --oldin | --oldi | --old | --ol | --o)
496
 
    ac_prev=oldincludedir ;;
497
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500
 
    oldincludedir=$ac_optarg ;;
501
 
 
502
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
 
    ac_prev=prefix ;;
504
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505
 
    prefix=$ac_optarg ;;
506
 
 
507
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508
 
  | --program-pre | --program-pr | --program-p)
509
 
    ac_prev=program_prefix ;;
510
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512
 
    program_prefix=$ac_optarg ;;
513
 
 
514
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515
 
  | --program-suf | --program-su | --program-s)
516
 
    ac_prev=program_suffix ;;
517
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519
 
    program_suffix=$ac_optarg ;;
520
 
 
521
 
  -program-transform-name | --program-transform-name \
522
 
  | --program-transform-nam | --program-transform-na \
523
 
  | --program-transform-n | --program-transform- \
524
 
  | --program-transform | --program-transfor \
525
 
  | --program-transfo | --program-transf \
526
 
  | --program-trans | --program-tran \
527
 
  | --progr-tra | --program-tr | --program-t)
528
 
    ac_prev=program_transform_name ;;
529
 
  -program-transform-name=* | --program-transform-name=* \
530
 
  | --program-transform-nam=* | --program-transform-na=* \
531
 
  | --program-transform-n=* | --program-transform-=* \
532
 
  | --program-transform=* | --program-transfor=* \
533
 
  | --program-transfo=* | --program-transf=* \
534
 
  | --program-trans=* | --program-tran=* \
535
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
536
 
    program_transform_name=$ac_optarg ;;
537
 
 
538
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539
 
  | -silent | --silent | --silen | --sile | --sil)
540
 
    silent=yes ;;
541
 
 
542
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543
 
    ac_prev=sbindir ;;
544
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
 
  | --sbi=* | --sb=*)
546
 
    sbindir=$ac_optarg ;;
547
 
 
548
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550
 
  | --sharedst | --shareds | --shared | --share | --shar \
551
 
  | --sha | --sh)
552
 
    ac_prev=sharedstatedir ;;
553
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
 
  | --sha=* | --sh=*)
557
 
    sharedstatedir=$ac_optarg ;;
558
 
 
559
 
  -site | --site | --sit)
560
 
    ac_prev=site ;;
561
 
  -site=* | --site=* | --sit=*)
562
 
    site=$ac_optarg ;;
563
 
 
564
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
 
    ac_prev=srcdir ;;
566
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567
 
    srcdir=$ac_optarg ;;
568
 
 
569
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570
 
  | --syscon | --sysco | --sysc | --sys | --sy)
571
 
    ac_prev=sysconfdir ;;
572
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574
 
    sysconfdir=$ac_optarg ;;
575
 
 
576
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
577
 
    ac_prev=target_alias ;;
578
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579
 
    target_alias=$ac_optarg ;;
580
 
 
581
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582
 
    verbose=yes ;;
583
 
 
584
 
  -version | --version | --versio | --versi | --vers | -V)
585
 
    ac_init_version=: ;;
586
 
 
587
 
  -with-* | --with-*)
588
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589
 
    # Reject names that are not valid shell variable names.
590
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
592
 
   { (exit 1); exit 1; }; }
593
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
594
 
    case $ac_option in
595
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596
 
      *) ac_optarg=yes ;;
597
 
    esac
598
 
    eval "with_$ac_package='$ac_optarg'" ;;
599
 
 
600
 
  -without-* | --without-*)
601
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602
 
    # Reject names that are not valid shell variable names.
603
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
605
 
   { (exit 1); exit 1; }; }
606
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
607
 
    eval "with_$ac_package=no" ;;
608
 
 
609
 
  --x)
610
 
    # Obsolete; use --with-x.
611
 
    with_x=yes ;;
612
 
 
613
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614
 
  | --x-incl | --x-inc | --x-in | --x-i)
615
 
    ac_prev=x_includes ;;
616
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618
 
    x_includes=$ac_optarg ;;
619
 
 
620
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622
 
    ac_prev=x_libraries ;;
623
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625
 
    x_libraries=$ac_optarg ;;
626
 
 
627
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
628
 
Try \`$0 --help' for more information." >&2
629
 
   { (exit 1); exit 1; }; }
630
 
    ;;
631
 
 
632
 
  *=*)
633
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634
 
    # Reject names that are not valid shell variable names.
635
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637
 
   { (exit 1); exit 1; }; }
638
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639
 
    eval "$ac_envvar='$ac_optarg'"
640
 
    export $ac_envvar ;;
641
 
 
642
 
  *)
643
 
    # FIXME: should be removed in autoconf 3.0.
644
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648
 
    ;;
649
 
 
650
 
  esac
651
 
done
652
 
 
653
 
if test -n "$ac_prev"; then
654
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
656
 
   { (exit 1); exit 1; }; }
657
 
fi
658
 
 
659
 
# Be sure to have absolute paths.
660
 
for ac_var in exec_prefix prefix
661
 
do
662
 
  eval ac_val=$`echo $ac_var`
663
 
  case $ac_val in
664
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666
 
   { (exit 1); exit 1; }; };;
667
 
  esac
668
 
done
669
 
 
670
 
# Be sure to have absolute paths.
671
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672
 
              localstatedir libdir includedir oldincludedir infodir mandir
673
 
do
674
 
  eval ac_val=$`echo $ac_var`
675
 
  case $ac_val in
676
 
    [\\/$]* | ?:[\\/]* ) ;;
677
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678
 
   { (exit 1); exit 1; }; };;
679
 
  esac
680
 
done
681
 
 
682
 
# There might be people who depend on the old broken behavior: `$host'
683
 
# used to hold the argument of --host etc.
684
 
# FIXME: To remove some day.
685
 
build=$build_alias
686
 
host=$host_alias
687
 
target=$target_alias
688
 
 
689
 
# FIXME: To remove some day.
690
 
if test "x$host_alias" != x; then
691
 
  if test "x$build_alias" = x; then
692
 
    cross_compiling=maybe
693
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694
 
    If a cross compiler is detected then cross compile mode will be used." >&2
695
 
  elif test "x$build_alias" != "x$host_alias"; then
696
 
    cross_compiling=yes
697
 
  fi
698
 
fi
699
 
 
700
 
ac_tool_prefix=
701
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
 
 
703
 
test "$silent" = yes && exec 6>/dev/null
704
 
 
705
 
 
706
 
# Find the source files, if location was not specified.
707
 
if test -z "$srcdir"; then
708
 
  ac_srcdir_defaulted=yes
709
 
  # Try the directory containing this script, then its parent.
710
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
711
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712
 
         X"$0" : 'X\(//\)[^/]' \| \
713
 
         X"$0" : 'X\(//\)$' \| \
714
 
         X"$0" : 'X\(/\)' \| \
715
 
         .     : '\(.\)' 2>/dev/null ||
716
 
echo X"$0" |
717
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719
 
          /^X\(\/\/\)$/{ s//\1/; q; }
720
 
          /^X\(\/\).*/{ s//\1/; q; }
721
 
          s/.*/./; q'`
722
 
  srcdir=$ac_confdir
723
 
  if test ! -r $srcdir/$ac_unique_file; then
724
 
    srcdir=..
725
 
  fi
726
 
else
727
 
  ac_srcdir_defaulted=no
728
 
fi
729
 
if test ! -r $srcdir/$ac_unique_file; then
730
 
  if test "$ac_srcdir_defaulted" = yes; then
731
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
 
   { (exit 1); exit 1; }; }
733
 
  else
734
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
 
   { (exit 1); exit 1; }; }
736
 
  fi
737
 
fi
738
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
 
   { (exit 1); exit 1; }; }
741
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
 
ac_env_build_alias_set=${build_alias+set}
743
 
ac_env_build_alias_value=$build_alias
744
 
ac_cv_env_build_alias_set=${build_alias+set}
745
 
ac_cv_env_build_alias_value=$build_alias
746
 
ac_env_host_alias_set=${host_alias+set}
747
 
ac_env_host_alias_value=$host_alias
748
 
ac_cv_env_host_alias_set=${host_alias+set}
749
 
ac_cv_env_host_alias_value=$host_alias
750
 
ac_env_target_alias_set=${target_alias+set}
751
 
ac_env_target_alias_value=$target_alias
752
 
ac_cv_env_target_alias_set=${target_alias+set}
753
 
ac_cv_env_target_alias_value=$target_alias
754
 
ac_env_CC_set=${CC+set}
755
 
ac_env_CC_value=$CC
756
 
ac_cv_env_CC_set=${CC+set}
757
 
ac_cv_env_CC_value=$CC
758
 
ac_env_CFLAGS_set=${CFLAGS+set}
759
 
ac_env_CFLAGS_value=$CFLAGS
760
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
761
 
ac_cv_env_CFLAGS_value=$CFLAGS
762
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
 
ac_env_LDFLAGS_value=$LDFLAGS
764
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
 
ac_env_CPPFLAGS_value=$CPPFLAGS
768
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
 
ac_env_CPP_set=${CPP+set}
771
 
ac_env_CPP_value=$CPP
772
 
ac_cv_env_CPP_set=${CPP+set}
773
 
ac_cv_env_CPP_value=$CPP
774
 
 
775
 
#
776
 
# Report the --help message.
777
 
#
778
 
if test "$ac_init_help" = "long"; then
779
 
  # Omit some internal or obsolete options to make the list less imposing.
780
 
  # This message is too long to be a string in the A/UX 3.1 sh.
781
 
  cat <<_ACEOF
782
 
\`configure' configures this package to adapt to many kinds of systems.
783
 
 
784
 
Usage: $0 [OPTION]... [VAR=VALUE]...
785
 
 
786
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
787
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
788
 
 
789
 
Defaults for the options are specified in brackets.
790
 
 
791
 
Configuration:
792
 
  -h, --help              display this help and exit
793
 
      --help=short        display options specific to this package
794
 
      --help=recursive    display the short help of all the included packages
795
 
  -V, --version           display version information and exit
796
 
  -q, --quiet, --silent   do not print \`checking...' messages
797
 
      --cache-file=FILE   cache test results in FILE [disabled]
798
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
799
 
  -n, --no-create         do not create output files
800
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
 
 
802
 
_ACEOF
803
 
 
804
 
  cat <<_ACEOF
805
 
Installation directories:
806
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
807
 
                          [$ac_default_prefix]
808
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809
 
                          [PREFIX]
810
 
 
811
 
By default, \`make install' will install all the files in
812
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814
 
for instance \`--prefix=\$HOME'.
815
 
 
816
 
For better control, use the options below.
817
 
 
818
 
Fine tuning of the installation directories:
819
 
  --bindir=DIR           user executables [EPREFIX/bin]
820
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
822
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
827
 
  --includedir=DIR       C header files [PREFIX/include]
828
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829
 
  --infodir=DIR          info documentation [PREFIX/info]
830
 
  --mandir=DIR           man documentation [PREFIX/man]
831
 
_ACEOF
832
 
 
833
 
  cat <<\_ACEOF
834
 
 
835
 
System types:
836
 
  --build=BUILD     configure for building on BUILD [guessed]
837
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
839
 
_ACEOF
840
 
fi
841
 
 
842
 
if test -n "$ac_init_help"; then
843
 
 
844
 
  cat <<\_ACEOF
845
 
 
846
 
Optional Features:
847
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
848
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
849
 
  --enable-klibc          Use this to link the tools to klibc. Set KLCC to the
850
 
                          absolute file name of klcc if not in the PATH.
851
 
  --enable-debug          Enable debugging
852
 
  --enable-debug_malloc   Enable malloc debugging
853
 
  --enable-dietlibc       Use this to link the tools to dietlibc
854
 
  --enable-jobs=NUM       Number of jobs to run simultaneously
855
 
  --enable-libselinux     Use this to link the tools to libselinux
856
 
  --enable-libsepol       Use this to link the tools to libsepol
857
 
  --enable-mini           Use this to create a minimal binrary suitable
858
 
                          for early boot environments
859
 
  --disable-native_log    Disable native metadata logging. Default is enabled
860
 
  --enable-static_link    Use this to link the tools to the dmraid and devmapper
861
 
                          libraries statically.  Default is dynamic linking
862
 
  --enable-shared_lib     Use this to generate shared libdmraid and link the
863
 
                          tools to it. Default is static libdmraid
864
 
  --disable-testing       Disable testing with mapped devices
865
 
 
866
 
Optional Packages:
867
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
868
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
869
 
  --with-user=USER        Set the owner of installed files
870
 
  --with-group=GROUP      Set the group owner of installed files
871
 
 
872
 
Some influential environment variables:
873
 
  CC          C compiler command
874
 
  CFLAGS      C compiler flags
875
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
876
 
              nonstandard directory <lib dir>
877
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
878
 
              headers in a nonstandard directory <include dir>
879
 
  CPP         C preprocessor
880
 
 
881
 
Use these variables to override the choices made by `configure' or to help
882
 
it to find libraries and programs with nonstandard names/locations.
883
 
 
884
 
_ACEOF
885
 
fi
886
 
 
887
 
if test "$ac_init_help" = "recursive"; then
888
 
  # If there are subdirs, report their specific --help.
889
 
  ac_popdir=`pwd`
890
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891
 
    test -d $ac_dir || continue
892
 
    ac_builddir=.
893
 
 
894
 
if test "$ac_dir" != .; then
895
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896
 
  # A "../" for each directory in $ac_dir_suffix.
897
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898
 
else
899
 
  ac_dir_suffix= ac_top_builddir=
900
 
fi
901
 
 
902
 
case $srcdir in
903
 
  .)  # No --srcdir option.  We are building in place.
904
 
    ac_srcdir=.
905
 
    if test -z "$ac_top_builddir"; then
906
 
       ac_top_srcdir=.
907
 
    else
908
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909
 
    fi ;;
910
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
911
 
    ac_srcdir=$srcdir$ac_dir_suffix;
912
 
    ac_top_srcdir=$srcdir ;;
913
 
  *) # Relative path.
914
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
916
 
esac
917
 
 
918
 
# Do not use `cd foo && pwd` to compute absolute paths, because
919
 
# the directories may not exist.
920
 
case `pwd` in
921
 
.) ac_abs_builddir="$ac_dir";;
922
 
*)
923
 
  case "$ac_dir" in
924
 
  .) ac_abs_builddir=`pwd`;;
925
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
927
 
  esac;;
928
 
esac
929
 
case $ac_abs_builddir in
930
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
931
 
*)
932
 
  case ${ac_top_builddir}. in
933
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
934
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936
 
  esac;;
937
 
esac
938
 
case $ac_abs_builddir in
939
 
.) ac_abs_srcdir=$ac_srcdir;;
940
 
*)
941
 
  case $ac_srcdir in
942
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
943
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945
 
  esac;;
946
 
esac
947
 
case $ac_abs_builddir in
948
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
949
 
*)
950
 
  case $ac_top_srcdir in
951
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
952
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954
 
  esac;;
955
 
esac
956
 
 
957
 
    cd $ac_dir
958
 
    # Check for guested configure; otherwise get Cygnus style configure.
959
 
    if test -f $ac_srcdir/configure.gnu; then
960
 
      echo
961
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
962
 
    elif test -f $ac_srcdir/configure; then
963
 
      echo
964
 
      $SHELL $ac_srcdir/configure  --help=recursive
965
 
    elif test -f $ac_srcdir/configure.ac ||
966
 
           test -f $ac_srcdir/configure.in; then
967
 
      echo
968
 
      $ac_configure --help
969
 
    else
970
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971
 
    fi
972
 
    cd $ac_popdir
973
 
  done
974
 
fi
975
 
 
976
 
test -n "$ac_init_help" && exit 0
977
 
if $ac_init_version; then
978
 
  cat <<\_ACEOF
979
 
 
980
 
Copyright (C) 2003 Free Software Foundation, Inc.
981
 
This configure script is free software; the Free Software Foundation
982
 
gives unlimited permission to copy, distribute and modify it.
983
 
_ACEOF
984
 
  exit 0
985
 
fi
986
 
exec 5>config.log
987
 
cat >&5 <<_ACEOF
988
 
This file contains any messages produced by compilers while
989
 
running configure, to aid debugging if configure makes a mistake.
990
 
 
991
 
It was created by $as_me, which was
992
 
generated by GNU Autoconf 2.59.  Invocation command line was
993
 
 
994
 
  $ $0 $@
995
 
 
996
 
_ACEOF
997
 
{
998
 
cat <<_ASUNAME
999
 
## --------- ##
1000
 
## Platform. ##
1001
 
## --------- ##
1002
 
 
1003
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1004
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1005
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1006
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1007
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1008
 
 
1009
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1010
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1011
 
 
1012
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1013
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1014
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1015
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1016
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1017
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1018
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1019
 
 
1020
 
_ASUNAME
1021
 
 
1022
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023
 
for as_dir in $PATH
1024
 
do
1025
 
  IFS=$as_save_IFS
1026
 
  test -z "$as_dir" && as_dir=.
1027
 
  echo "PATH: $as_dir"
1028
 
done
1029
 
 
1030
 
} >&5
1031
 
 
1032
 
cat >&5 <<_ACEOF
1033
 
 
1034
 
 
1035
 
## ----------- ##
1036
 
## Core tests. ##
1037
 
## ----------- ##
1038
 
 
1039
 
_ACEOF
1040
 
 
1041
 
 
1042
 
# Keep a trace of the command line.
1043
 
# Strip out --no-create and --no-recursion so they do not pile up.
1044
 
# Strip out --silent because we don't want to record it for future runs.
1045
 
# Also quote any args containing shell meta-characters.
1046
 
# Make two passes to allow for proper duplicate-argument suppression.
1047
 
ac_configure_args=
1048
 
ac_configure_args0=
1049
 
ac_configure_args1=
1050
 
ac_sep=
1051
 
ac_must_keep_next=false
1052
 
for ac_pass in 1 2
1053
 
do
1054
 
  for ac_arg
1055
 
  do
1056
 
    case $ac_arg in
1057
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1058
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059
 
    | -silent | --silent | --silen | --sile | --sil)
1060
 
      continue ;;
1061
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063
 
    esac
1064
 
    case $ac_pass in
1065
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1066
 
    2)
1067
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1068
 
      if test $ac_must_keep_next = true; then
1069
 
        ac_must_keep_next=false # Got value, back to normal.
1070
 
      else
1071
 
        case $ac_arg in
1072
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1073
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1074
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1075
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1076
 
            case "$ac_configure_args0 " in
1077
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078
 
            esac
1079
 
            ;;
1080
 
          -* ) ac_must_keep_next=true ;;
1081
 
        esac
1082
 
      fi
1083
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1084
 
      # Get rid of the leading space.
1085
 
      ac_sep=" "
1086
 
      ;;
1087
 
    esac
1088
 
  done
1089
 
done
1090
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1091
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1092
 
 
1093
 
# When interrupted or exit'd, cleanup temporary files, and complete
1094
 
# config.log.  We remove comments because anyway the quotes in there
1095
 
# would cause problems or look ugly.
1096
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1097
 
# such as our DU 5.0 friend, will then `close' the trap.
1098
 
trap 'exit_status=$?
1099
 
  # Save into config.log some information that might help in debugging.
1100
 
  {
1101
 
    echo
1102
 
 
1103
 
    cat <<\_ASBOX
1104
 
## ---------------- ##
1105
 
## Cache variables. ##
1106
 
## ---------------- ##
1107
 
_ASBOX
1108
 
    echo
1109
 
    # The following way of writing the cache mishandles newlines in values,
1110
 
{
1111
 
  (set) 2>&1 |
1112
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113
 
    *ac_space=\ *)
1114
 
      sed -n \
1115
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1116
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117
 
      ;;
1118
 
    *)
1119
 
      sed -n \
1120
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121
 
      ;;
1122
 
    esac;
1123
 
}
1124
 
    echo
1125
 
 
1126
 
    cat <<\_ASBOX
1127
 
## ----------------- ##
1128
 
## Output variables. ##
1129
 
## ----------------- ##
1130
 
_ASBOX
1131
 
    echo
1132
 
    for ac_var in $ac_subst_vars
1133
 
    do
1134
 
      eval ac_val=$`echo $ac_var`
1135
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1136
 
    done | sort
1137
 
    echo
1138
 
 
1139
 
    if test -n "$ac_subst_files"; then
1140
 
      cat <<\_ASBOX
1141
 
## ------------- ##
1142
 
## Output files. ##
1143
 
## ------------- ##
1144
 
_ASBOX
1145
 
      echo
1146
 
      for ac_var in $ac_subst_files
1147
 
      do
1148
 
        eval ac_val=$`echo $ac_var`
1149
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1150
 
      done | sort
1151
 
      echo
1152
 
    fi
1153
 
 
1154
 
    if test -s confdefs.h; then
1155
 
      cat <<\_ASBOX
1156
 
## ----------- ##
1157
 
## confdefs.h. ##
1158
 
## ----------- ##
1159
 
_ASBOX
1160
 
      echo
1161
 
      sed "/^$/d" confdefs.h | sort
1162
 
      echo
1163
 
    fi
1164
 
    test "$ac_signal" != 0 &&
1165
 
      echo "$as_me: caught signal $ac_signal"
1166
 
    echo "$as_me: exit $exit_status"
1167
 
  } >&5
1168
 
  rm -f core *.core &&
1169
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170
 
    exit $exit_status
1171
 
     ' 0
1172
 
for ac_signal in 1 2 13 15; do
1173
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174
 
done
1175
 
ac_signal=0
1176
 
 
1177
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1178
 
rm -rf conftest* confdefs.h
1179
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180
 
echo >confdefs.h
1181
 
 
1182
 
# Predefined preprocessor variables.
1183
 
 
1184
 
cat >>confdefs.h <<_ACEOF
1185
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1186
 
_ACEOF
1187
 
 
1188
 
 
1189
 
cat >>confdefs.h <<_ACEOF
1190
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191
 
_ACEOF
1192
 
 
1193
 
 
1194
 
cat >>confdefs.h <<_ACEOF
1195
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1196
 
_ACEOF
1197
 
 
1198
 
 
1199
 
cat >>confdefs.h <<_ACEOF
1200
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1201
 
_ACEOF
1202
 
 
1203
 
 
1204
 
cat >>confdefs.h <<_ACEOF
1205
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206
 
_ACEOF
1207
 
 
1208
 
 
1209
 
# Let the site file select an alternate cache file if it wants to.
1210
 
# Prefer explicitly selected file to automatically selected ones.
1211
 
if test -z "$CONFIG_SITE"; then
1212
 
  if test "x$prefix" != xNONE; then
1213
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1214
 
  else
1215
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216
 
  fi
1217
 
fi
1218
 
for ac_site_file in $CONFIG_SITE; do
1219
 
  if test -r "$ac_site_file"; then
1220
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1221
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1222
 
    sed 's/^/| /' "$ac_site_file" >&5
1223
 
    . "$ac_site_file"
1224
 
  fi
1225
 
done
1226
 
 
1227
 
if test -r "$cache_file"; then
1228
 
  # Some versions of bash will fail to source /dev/null (special
1229
 
  # files actually), so we avoid doing that.
1230
 
  if test -f "$cache_file"; then
1231
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1232
 
echo "$as_me: loading cache $cache_file" >&6;}
1233
 
    case $cache_file in
1234
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1235
 
      *)                      . ./$cache_file;;
1236
 
    esac
1237
 
  fi
1238
 
else
1239
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1240
 
echo "$as_me: creating cache $cache_file" >&6;}
1241
 
  >$cache_file
1242
 
fi
1243
 
 
1244
 
# Check that the precious variables saved in the cache have kept the same
1245
 
# value.
1246
 
ac_cache_corrupted=false
1247
 
for ac_var in `(set) 2>&1 |
1248
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1249
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1250
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1251
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1252
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1253
 
  case $ac_old_set,$ac_new_set in
1254
 
    set,)
1255
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1256
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1257
 
      ac_cache_corrupted=: ;;
1258
 
    ,set)
1259
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1260
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1261
 
      ac_cache_corrupted=: ;;
1262
 
    ,);;
1263
 
    *)
1264
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1265
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1266
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1267
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1268
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1269
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1270
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1271
 
        ac_cache_corrupted=:
1272
 
      fi;;
1273
 
  esac
1274
 
  # Pass precious variables to config.status.
1275
 
  if test "$ac_new_set" = set; then
1276
 
    case $ac_new_val in
1277
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1280
 
    esac
1281
 
    case " $ac_configure_args " in
1282
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1283
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284
 
    esac
1285
 
  fi
1286
 
done
1287
 
if $ac_cache_corrupted; then
1288
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1289
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1290
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1291
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1292
 
   { (exit 1); exit 1; }; }
1293
 
fi
1294
 
 
1295
 
ac_ext=c
1296
 
ac_cpp='$CPP $CPPFLAGS'
1297
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1298
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1299
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1300
 
 
1301
 
 
1302
 
 
1303
 
 
1304
 
 
1305
 
 
1306
 
 
1307
 
 
1308
 
 
1309
 
 
1310
 
 
1311
 
 
1312
 
 
1313
 
 
1314
 
 
1315
 
 
1316
 
 
1317
 
 
1318
 
 
1319
 
 
1320
 
ac_aux_dir=
1321
 
for ac_dir in autoconf $srcdir/autoconf; do
1322
 
  if test -f $ac_dir/install-sh; then
1323
 
    ac_aux_dir=$ac_dir
1324
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1325
 
    break
1326
 
  elif test -f $ac_dir/install.sh; then
1327
 
    ac_aux_dir=$ac_dir
1328
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1329
 
    break
1330
 
  elif test -f $ac_dir/shtool; then
1331
 
    ac_aux_dir=$ac_dir
1332
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1333
 
    break
1334
 
  fi
1335
 
done
1336
 
if test -z "$ac_aux_dir"; then
1337
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1338
 
echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1339
 
   { (exit 1); exit 1; }; }
1340
 
fi
1341
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344
 
 
1345
 
 
1346
 
# Make sure we can run config.sub.
1347
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1348
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350
 
   { (exit 1); exit 1; }; }
1351
 
 
1352
 
echo "$as_me:$LINENO: checking build system type" >&5
1353
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354
 
if test "${ac_cv_build+set}" = set; then
1355
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1356
 
else
1357
 
  ac_cv_build_alias=$build_alias
1358
 
test -z "$ac_cv_build_alias" &&
1359
 
  ac_cv_build_alias=`$ac_config_guess`
1360
 
test -z "$ac_cv_build_alias" &&
1361
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363
 
   { (exit 1); exit 1; }; }
1364
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367
 
   { (exit 1); exit 1; }; }
1368
 
 
1369
 
fi
1370
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371
 
echo "${ECHO_T}$ac_cv_build" >&6
1372
 
build=$ac_cv_build
1373
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
 
 
1377
 
 
1378
 
echo "$as_me:$LINENO: checking host system type" >&5
1379
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380
 
if test "${ac_cv_host+set}" = set; then
1381
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1382
 
else
1383
 
  ac_cv_host_alias=$host_alias
1384
 
test -z "$ac_cv_host_alias" &&
1385
 
  ac_cv_host_alias=$ac_cv_build_alias
1386
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389
 
   { (exit 1); exit 1; }; }
1390
 
 
1391
 
fi
1392
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393
 
echo "${ECHO_T}$ac_cv_host" >&6
1394
 
host=$ac_cv_host
1395
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398
 
 
1399
 
 
1400
 
echo "$as_me:$LINENO: checking target system type" >&5
1401
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1402
 
if test "${ac_cv_target+set}" = set; then
1403
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1404
 
else
1405
 
  ac_cv_target_alias=$target_alias
1406
 
test "x$ac_cv_target_alias" = "x" &&
1407
 
  ac_cv_target_alias=$ac_cv_host_alias
1408
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1409
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1410
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1411
 
   { (exit 1); exit 1; }; }
1412
 
 
1413
 
fi
1414
 
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1415
 
echo "${ECHO_T}$ac_cv_target" >&6
1416
 
target=$ac_cv_target
1417
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
 
 
1421
 
 
1422
 
# The aliases save the names the user supplied, while $host etc.
1423
 
# will get canonicalized.
1424
 
test -n "$target_alias" &&
1425
 
  test "$program_prefix$program_suffix$program_transform_name" = \
1426
 
    NONENONEs,x,x, &&
1427
 
  program_prefix=${target_alias}-
1428
 
 
1429
 
for ac_prog in gawk mawk nawk awk
1430
 
do
1431
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1432
 
set dummy $ac_prog; ac_word=$2
1433
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1434
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435
 
if test "${ac_cv_prog_AWK+set}" = set; then
1436
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1437
 
else
1438
 
  if test -n "$AWK"; then
1439
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1440
 
else
1441
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442
 
for as_dir in $PATH
1443
 
do
1444
 
  IFS=$as_save_IFS
1445
 
  test -z "$as_dir" && as_dir=.
1446
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1447
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448
 
    ac_cv_prog_AWK="$ac_prog"
1449
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450
 
    break 2
1451
 
  fi
1452
 
done
1453
 
done
1454
 
 
1455
 
fi
1456
 
fi
1457
 
AWK=$ac_cv_prog_AWK
1458
 
if test -n "$AWK"; then
1459
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1460
 
echo "${ECHO_T}$AWK" >&6
1461
 
else
1462
 
  echo "$as_me:$LINENO: result: no" >&5
1463
 
echo "${ECHO_T}no" >&6
1464
 
fi
1465
 
 
1466
 
  test -n "$AWK" && break
1467
 
done
1468
 
 
1469
 
# Find a good install program.  We prefer a C program (faster),
1470
 
# so one script is as good as another.  But avoid the broken or
1471
 
# incompatible versions:
1472
 
# SysV /etc/install, /usr/sbin/install
1473
 
# SunOS /usr/etc/install
1474
 
# IRIX /sbin/install
1475
 
# AIX /bin/install
1476
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
1477
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1478
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1479
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1480
 
# OS/2's system install, which has a completely different semantic
1481
 
# ./install, which can be erroneously created by make from ./install.sh.
1482
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1483
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1484
 
if test -z "$INSTALL"; then
1485
 
if test "${ac_cv_path_install+set}" = set; then
1486
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1487
 
else
1488
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489
 
for as_dir in $PATH
1490
 
do
1491
 
  IFS=$as_save_IFS
1492
 
  test -z "$as_dir" && as_dir=.
1493
 
  # Account for people who put trailing slashes in PATH elements.
1494
 
case $as_dir/ in
1495
 
  ./ | .// | /cC/* | \
1496
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1497
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1498
 
  /usr/ucb/* ) ;;
1499
 
  *)
1500
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
1501
 
    # Don't use installbsd from OSF since it installs stuff as root
1502
 
    # by default.
1503
 
    for ac_prog in ginstall scoinst install; do
1504
 
      for ac_exec_ext in '' $ac_executable_extensions; do
1505
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1506
 
          if test $ac_prog = install &&
1507
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1508
 
            # AIX install.  It has an incompatible calling convention.
1509
 
            :
1510
 
          elif test $ac_prog = install &&
1511
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1512
 
            # program-specific install script used by HP pwplus--don't use.
1513
 
            :
1514
 
          else
1515
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1516
 
            break 3
1517
 
          fi
1518
 
        fi
1519
 
      done
1520
 
    done
1521
 
    ;;
1522
 
esac
1523
 
done
1524
 
 
1525
 
 
1526
 
fi
1527
 
  if test "${ac_cv_path_install+set}" = set; then
1528
 
    INSTALL=$ac_cv_path_install
1529
 
  else
1530
 
    # As a last resort, use the slow shell script.  We don't cache a
1531
 
    # path for INSTALL within a source directory, because that will
1532
 
    # break other packages using the cache if that directory is
1533
 
    # removed, or if the path is relative.
1534
 
    INSTALL=$ac_install_sh
1535
 
  fi
1536
 
fi
1537
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1538
 
echo "${ECHO_T}$INSTALL" >&6
1539
 
 
1540
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1541
 
# It thinks the first close brace ends the variable substitution.
1542
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1543
 
 
1544
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1545
 
 
1546
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1547
 
 
1548
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
1549
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1550
 
LN_S=$as_ln_s
1551
 
if test "$LN_S" = "ln -s"; then
1552
 
  echo "$as_me:$LINENO: result: yes" >&5
1553
 
echo "${ECHO_T}yes" >&6
1554
 
else
1555
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1556
 
echo "${ECHO_T}no, using $LN_S" >&6
1557
 
fi
1558
 
 
1559
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1560
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1561
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1562
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1563
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1564
 
else
1565
 
  cat >conftest.make <<\_ACEOF
1566
 
all:
1567
 
        @echo 'ac_maketemp="$(MAKE)"'
1568
 
_ACEOF
1569
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1570
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1571
 
if test -n "$ac_maketemp"; then
1572
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1573
 
else
1574
 
  eval ac_cv_prog_make_${ac_make}_set=no
1575
 
fi
1576
 
rm -f conftest.make
1577
 
fi
1578
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1579
 
  echo "$as_me:$LINENO: result: yes" >&5
1580
 
echo "${ECHO_T}yes" >&6
1581
 
  SET_MAKE=
1582
 
else
1583
 
  echo "$as_me:$LINENO: result: no" >&5
1584
 
echo "${ECHO_T}no" >&6
1585
 
  SET_MAKE="MAKE=${MAKE-make}"
1586
 
fi
1587
 
 
1588
 
if test -n "$ac_tool_prefix"; then
1589
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1590
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1591
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1592
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
1594
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1595
 
else
1596
 
  if test -n "$RANLIB"; then
1597
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1598
 
else
1599
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600
 
for as_dir in $PATH
1601
 
do
1602
 
  IFS=$as_save_IFS
1603
 
  test -z "$as_dir" && as_dir=.
1604
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1605
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1607
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608
 
    break 2
1609
 
  fi
1610
 
done
1611
 
done
1612
 
 
1613
 
fi
1614
 
fi
1615
 
RANLIB=$ac_cv_prog_RANLIB
1616
 
if test -n "$RANLIB"; then
1617
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
1618
 
echo "${ECHO_T}$RANLIB" >&6
1619
 
else
1620
 
  echo "$as_me:$LINENO: result: no" >&5
1621
 
echo "${ECHO_T}no" >&6
1622
 
fi
1623
 
 
1624
 
fi
1625
 
if test -z "$ac_cv_prog_RANLIB"; then
1626
 
  ac_ct_RANLIB=$RANLIB
1627
 
  # Extract the first word of "ranlib", so it can be a program name with args.
1628
 
set dummy ranlib; ac_word=$2
1629
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1630
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1632
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1633
 
else
1634
 
  if test -n "$ac_ct_RANLIB"; then
1635
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1636
 
else
1637
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638
 
for as_dir in $PATH
1639
 
do
1640
 
  IFS=$as_save_IFS
1641
 
  test -z "$as_dir" && as_dir=.
1642
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1643
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
1645
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646
 
    break 2
1647
 
  fi
1648
 
done
1649
 
done
1650
 
 
1651
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1652
 
fi
1653
 
fi
1654
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1655
 
if test -n "$ac_ct_RANLIB"; then
1656
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1657
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
1658
 
else
1659
 
  echo "$as_me:$LINENO: result: no" >&5
1660
 
echo "${ECHO_T}no" >&6
1661
 
fi
1662
 
 
1663
 
  RANLIB=$ac_ct_RANLIB
1664
 
else
1665
 
  RANLIB="$ac_cv_prog_RANLIB"
1666
 
fi
1667
 
 
1668
 
 
1669
 
 
1670
 
 
1671
 
# Check whether --enable-klibc or --disable-klibc was given.
1672
 
if test "${enable_klibc+set}" = set; then
1673
 
  enableval="$enable_klibc"
1674
 
  KLIBC=$enableval
1675
 
else
1676
 
  KLIBC=no
1677
 
fi;
1678
 
 
1679
 
if test "X$KLIBC" = Xyes; then
1680
 
  # Basic cross compiling support.  I do not think it is wise to use
1681
 
  # AC_CHECK_TOOL, because if we are cross compiling, we do not want
1682
 
  # just 'klcc' to be returned ...
1683
 
  if test "X$cross_compiling" = Xyes; then
1684
 
    for ac_prog in ${host_alias}-klcc
1685
 
do
1686
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1687
 
set dummy $ac_prog; ac_word=$2
1688
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1689
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690
 
if test "${ac_cv_prog_KLCC+set}" = set; then
1691
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1692
 
else
1693
 
  if test -n "$KLCC"; then
1694
 
  ac_cv_prog_KLCC="$KLCC" # Let the user override the test.
1695
 
else
1696
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697
 
for as_dir in $PATH
1698
 
do
1699
 
  IFS=$as_save_IFS
1700
 
  test -z "$as_dir" && as_dir=.
1701
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1702
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703
 
    ac_cv_prog_KLCC="$ac_prog"
1704
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705
 
    break 2
1706
 
  fi
1707
 
done
1708
 
done
1709
 
 
1710
 
fi
1711
 
fi
1712
 
KLCC=$ac_cv_prog_KLCC
1713
 
if test -n "$KLCC"; then
1714
 
  echo "$as_me:$LINENO: result: $KLCC" >&5
1715
 
echo "${ECHO_T}$KLCC" >&6
1716
 
else
1717
 
  echo "$as_me:$LINENO: result: no" >&5
1718
 
echo "${ECHO_T}no" >&6
1719
 
fi
1720
 
 
1721
 
  test -n "$KLCC" && break
1722
 
done
1723
 
test -n "$KLCC" || KLCC="no"
1724
 
 
1725
 
  else
1726
 
    for ac_prog in klcc
1727
 
do
1728
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1729
 
set dummy $ac_prog; ac_word=$2
1730
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1731
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732
 
if test "${ac_cv_prog_KLCC+set}" = set; then
1733
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1734
 
else
1735
 
  if test -n "$KLCC"; then
1736
 
  ac_cv_prog_KLCC="$KLCC" # Let the user override the test.
1737
 
else
1738
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739
 
for as_dir in $PATH
1740
 
do
1741
 
  IFS=$as_save_IFS
1742
 
  test -z "$as_dir" && as_dir=.
1743
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1744
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745
 
    ac_cv_prog_KLCC="$ac_prog"
1746
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747
 
    break 2
1748
 
  fi
1749
 
done
1750
 
done
1751
 
 
1752
 
fi
1753
 
fi
1754
 
KLCC=$ac_cv_prog_KLCC
1755
 
if test -n "$KLCC"; then
1756
 
  echo "$as_me:$LINENO: result: $KLCC" >&5
1757
 
echo "${ECHO_T}$KLCC" >&6
1758
 
else
1759
 
  echo "$as_me:$LINENO: result: no" >&5
1760
 
echo "${ECHO_T}no" >&6
1761
 
fi
1762
 
 
1763
 
  test -n "$KLCC" && break
1764
 
done
1765
 
test -n "$KLCC" || KLCC="no"
1766
 
 
1767
 
  fi
1768
 
  if test "X$KLCC" = Xno; then
1769
 
    { { echo "$as_me:$LINENO: error: cannot find klibc frontend 'klcc'!" >&5
1770
 
echo "$as_me: error: cannot find klibc frontend 'klcc'!" >&2;}
1771
 
   { (exit 1); exit 1; }; }
1772
 
  fi
1773
 
 
1774
 
  CC="$KLCC"
1775
 
  CFLAGS="-Os"
1776
 
  KLIBC_KCROSS="$($KLCC -print-klibc-kcross 2>/dev/null)"
1777
 
  KLIBC_PREFIX="$($KLCC -print-klibc-prefix 2>/dev/null)"
1778
 
  KLIBC_BIN_DIR="$($KLCC -print-klibc-bindir 2>/dev/null)"
1779
 
  KLIBC_SBIN_DIR="${KLIBC_PREFIX}/${KLIBC_KCROSS}sbin"
1780
 
  KLIBC_LIB_DIR="$($KLCC -print-klibc-libdir 2>/dev/null)"
1781
 
  KLIBC_INCLUDE_DIR="$($KLCC -print-klibc-includedir 2>/dev/null)"
1782
 
 
1783
 
  # At least KLIBC_LIB_DIR should be valid, else klibc is too old or
1784
 
  # something went wrong
1785
 
  if test ! -d "$KLIBC_LIB_DIR"; then
1786
 
    { { echo "$as_me:$LINENO: error: your klibc installation is too old or not functional!" >&5
1787
 
echo "$as_me: error: your klibc installation is too old or not functional!" >&2;}
1788
 
   { (exit 1); exit 1; }; }
1789
 
  fi
1790
 
fi
1791
 
 
1792
 
 
1793
 
 
1794
 
 
1795
 
 
1796
 
 
1797
 
 
1798
 
 
1799
 
 
1800
 
ac_ext=c
1801
 
ac_cpp='$CPP $CPPFLAGS'
1802
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
 
if test -n "$ac_tool_prefix"; then
1806
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1807
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1808
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1809
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810
 
if test "${ac_cv_prog_CC+set}" = set; then
1811
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1812
 
else
1813
 
  if test -n "$CC"; then
1814
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1815
 
else
1816
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817
 
for as_dir in $PATH
1818
 
do
1819
 
  IFS=$as_save_IFS
1820
 
  test -z "$as_dir" && as_dir=.
1821
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1822
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1824
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825
 
    break 2
1826
 
  fi
1827
 
done
1828
 
done
1829
 
 
1830
 
fi
1831
 
fi
1832
 
CC=$ac_cv_prog_CC
1833
 
if test -n "$CC"; then
1834
 
  echo "$as_me:$LINENO: result: $CC" >&5
1835
 
echo "${ECHO_T}$CC" >&6
1836
 
else
1837
 
  echo "$as_me:$LINENO: result: no" >&5
1838
 
echo "${ECHO_T}no" >&6
1839
 
fi
1840
 
 
1841
 
fi
1842
 
if test -z "$ac_cv_prog_CC"; then
1843
 
  ac_ct_CC=$CC
1844
 
  # Extract the first word of "gcc", so it can be a program name with args.
1845
 
set dummy gcc; ac_word=$2
1846
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1847
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1850
 
else
1851
 
  if test -n "$ac_ct_CC"; then
1852
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853
 
else
1854
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855
 
for as_dir in $PATH
1856
 
do
1857
 
  IFS=$as_save_IFS
1858
 
  test -z "$as_dir" && as_dir=.
1859
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1860
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861
 
    ac_cv_prog_ac_ct_CC="gcc"
1862
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863
 
    break 2
1864
 
  fi
1865
 
done
1866
 
done
1867
 
 
1868
 
fi
1869
 
fi
1870
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871
 
if test -n "$ac_ct_CC"; then
1872
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873
 
echo "${ECHO_T}$ac_ct_CC" >&6
1874
 
else
1875
 
  echo "$as_me:$LINENO: result: no" >&5
1876
 
echo "${ECHO_T}no" >&6
1877
 
fi
1878
 
 
1879
 
  CC=$ac_ct_CC
1880
 
else
1881
 
  CC="$ac_cv_prog_CC"
1882
 
fi
1883
 
 
1884
 
if test -z "$CC"; then
1885
 
  if test -n "$ac_tool_prefix"; then
1886
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1887
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
1888
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1889
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890
 
if test "${ac_cv_prog_CC+set}" = set; then
1891
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1892
 
else
1893
 
  if test -n "$CC"; then
1894
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1895
 
else
1896
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897
 
for as_dir in $PATH
1898
 
do
1899
 
  IFS=$as_save_IFS
1900
 
  test -z "$as_dir" && as_dir=.
1901
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1902
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1904
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905
 
    break 2
1906
 
  fi
1907
 
done
1908
 
done
1909
 
 
1910
 
fi
1911
 
fi
1912
 
CC=$ac_cv_prog_CC
1913
 
if test -n "$CC"; then
1914
 
  echo "$as_me:$LINENO: result: $CC" >&5
1915
 
echo "${ECHO_T}$CC" >&6
1916
 
else
1917
 
  echo "$as_me:$LINENO: result: no" >&5
1918
 
echo "${ECHO_T}no" >&6
1919
 
fi
1920
 
 
1921
 
fi
1922
 
if test -z "$ac_cv_prog_CC"; then
1923
 
  ac_ct_CC=$CC
1924
 
  # Extract the first word of "cc", so it can be a program name with args.
1925
 
set dummy cc; ac_word=$2
1926
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1927
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1930
 
else
1931
 
  if test -n "$ac_ct_CC"; then
1932
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1933
 
else
1934
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935
 
for as_dir in $PATH
1936
 
do
1937
 
  IFS=$as_save_IFS
1938
 
  test -z "$as_dir" && as_dir=.
1939
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1940
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941
 
    ac_cv_prog_ac_ct_CC="cc"
1942
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943
 
    break 2
1944
 
  fi
1945
 
done
1946
 
done
1947
 
 
1948
 
fi
1949
 
fi
1950
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1951
 
if test -n "$ac_ct_CC"; then
1952
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1953
 
echo "${ECHO_T}$ac_ct_CC" >&6
1954
 
else
1955
 
  echo "$as_me:$LINENO: result: no" >&5
1956
 
echo "${ECHO_T}no" >&6
1957
 
fi
1958
 
 
1959
 
  CC=$ac_ct_CC
1960
 
else
1961
 
  CC="$ac_cv_prog_CC"
1962
 
fi
1963
 
 
1964
 
fi
1965
 
if test -z "$CC"; then
1966
 
  # Extract the first word of "cc", so it can be a program name with args.
1967
 
set dummy cc; ac_word=$2
1968
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1969
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970
 
if test "${ac_cv_prog_CC+set}" = set; then
1971
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1972
 
else
1973
 
  if test -n "$CC"; then
1974
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1975
 
else
1976
 
  ac_prog_rejected=no
1977
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978
 
for as_dir in $PATH
1979
 
do
1980
 
  IFS=$as_save_IFS
1981
 
  test -z "$as_dir" && as_dir=.
1982
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1983
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1985
 
       ac_prog_rejected=yes
1986
 
       continue
1987
 
     fi
1988
 
    ac_cv_prog_CC="cc"
1989
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990
 
    break 2
1991
 
  fi
1992
 
done
1993
 
done
1994
 
 
1995
 
if test $ac_prog_rejected = yes; then
1996
 
  # We found a bogon in the path, so make sure we never use it.
1997
 
  set dummy $ac_cv_prog_CC
1998
 
  shift
1999
 
  if test $# != 0; then
2000
 
    # We chose a different compiler from the bogus one.
2001
 
    # However, it has the same basename, so the bogon will be chosen
2002
 
    # first if we set CC to just the basename; use the full file name.
2003
 
    shift
2004
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2005
 
  fi
2006
 
fi
2007
 
fi
2008
 
fi
2009
 
CC=$ac_cv_prog_CC
2010
 
if test -n "$CC"; then
2011
 
  echo "$as_me:$LINENO: result: $CC" >&5
2012
 
echo "${ECHO_T}$CC" >&6
2013
 
else
2014
 
  echo "$as_me:$LINENO: result: no" >&5
2015
 
echo "${ECHO_T}no" >&6
2016
 
fi
2017
 
 
2018
 
fi
2019
 
if test -z "$CC"; then
2020
 
  if test -n "$ac_tool_prefix"; then
2021
 
  for ac_prog in cl
2022
 
  do
2023
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2026
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027
 
if test "${ac_cv_prog_CC+set}" = set; then
2028
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2029
 
else
2030
 
  if test -n "$CC"; then
2031
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2032
 
else
2033
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034
 
for as_dir in $PATH
2035
 
do
2036
 
  IFS=$as_save_IFS
2037
 
  test -z "$as_dir" && as_dir=.
2038
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2039
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042
 
    break 2
2043
 
  fi
2044
 
done
2045
 
done
2046
 
 
2047
 
fi
2048
 
fi
2049
 
CC=$ac_cv_prog_CC
2050
 
if test -n "$CC"; then
2051
 
  echo "$as_me:$LINENO: result: $CC" >&5
2052
 
echo "${ECHO_T}$CC" >&6
2053
 
else
2054
 
  echo "$as_me:$LINENO: result: no" >&5
2055
 
echo "${ECHO_T}no" >&6
2056
 
fi
2057
 
 
2058
 
    test -n "$CC" && break
2059
 
  done
2060
 
fi
2061
 
if test -z "$CC"; then
2062
 
  ac_ct_CC=$CC
2063
 
  for ac_prog in cl
2064
 
do
2065
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2066
 
set dummy $ac_prog; ac_word=$2
2067
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2068
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2071
 
else
2072
 
  if test -n "$ac_ct_CC"; then
2073
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2074
 
else
2075
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076
 
for as_dir in $PATH
2077
 
do
2078
 
  IFS=$as_save_IFS
2079
 
  test -z "$as_dir" && as_dir=.
2080
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2081
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2083
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084
 
    break 2
2085
 
  fi
2086
 
done
2087
 
done
2088
 
 
2089
 
fi
2090
 
fi
2091
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092
 
if test -n "$ac_ct_CC"; then
2093
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094
 
echo "${ECHO_T}$ac_ct_CC" >&6
2095
 
else
2096
 
  echo "$as_me:$LINENO: result: no" >&5
2097
 
echo "${ECHO_T}no" >&6
2098
 
fi
2099
 
 
2100
 
  test -n "$ac_ct_CC" && break
2101
 
done
2102
 
 
2103
 
  CC=$ac_ct_CC
2104
 
fi
2105
 
 
2106
 
fi
2107
 
 
2108
 
 
2109
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2110
 
See \`config.log' for more details." >&5
2111
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2112
 
See \`config.log' for more details." >&2;}
2113
 
   { (exit 1); exit 1; }; }
2114
 
 
2115
 
# Provide some information about the compiler.
2116
 
echo "$as_me:$LINENO:" \
2117
 
     "checking for C compiler version" >&5
2118
 
ac_compiler=`set X $ac_compile; echo $2`
2119
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2120
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2121
 
  ac_status=$?
2122
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123
 
  (exit $ac_status); }
2124
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2125
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2126
 
  ac_status=$?
2127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128
 
  (exit $ac_status); }
2129
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2130
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2131
 
  ac_status=$?
2132
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133
 
  (exit $ac_status); }
2134
 
 
2135
 
cat >conftest.$ac_ext <<_ACEOF
2136
 
/* confdefs.h.  */
2137
 
_ACEOF
2138
 
cat confdefs.h >>conftest.$ac_ext
2139
 
cat >>conftest.$ac_ext <<_ACEOF
2140
 
/* end confdefs.h.  */
2141
 
 
2142
 
int
2143
 
main ()
2144
 
{
2145
 
 
2146
 
  ;
2147
 
  return 0;
2148
 
}
2149
 
_ACEOF
2150
 
ac_clean_files_save=$ac_clean_files
2151
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2152
 
# Try to create an executable without -o first, disregard a.out.
2153
 
# It will help us diagnose broken compilers, and finding out an intuition
2154
 
# of exeext.
2155
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2156
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2157
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2159
 
  (eval $ac_link_default) 2>&5
2160
 
  ac_status=$?
2161
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162
 
  (exit $ac_status); }; then
2163
 
  # Find the output, starting from the most likely.  This scheme is
2164
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165
 
# resort.
2166
 
 
2167
 
# Be careful to initialize this variable, since it used to be cached.
2168
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2169
 
ac_cv_exeext=
2170
 
# b.out is created by i960 compilers.
2171
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2172
 
do
2173
 
  test -f "$ac_file" || continue
2174
 
  case $ac_file in
2175
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2176
 
        ;;
2177
 
    conftest.$ac_ext )
2178
 
        # This is the source file.
2179
 
        ;;
2180
 
    [ab].out )
2181
 
        # We found the default executable, but exeext='' is most
2182
 
        # certainly right.
2183
 
        break;;
2184
 
    *.* )
2185
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2187
 
        # but it would be cool to find out if it's true.  Does anybody
2188
 
        # maintain Libtool? --akim.
2189
 
        export ac_cv_exeext
2190
 
        break;;
2191
 
    * )
2192
 
        break;;
2193
 
  esac
2194
 
done
2195
 
else
2196
 
  echo "$as_me: failed program was:" >&5
2197
 
sed 's/^/| /' conftest.$ac_ext >&5
2198
 
 
2199
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200
 
See \`config.log' for more details." >&5
2201
 
echo "$as_me: error: C compiler cannot create executables
2202
 
See \`config.log' for more details." >&2;}
2203
 
   { (exit 77); exit 77; }; }
2204
 
fi
2205
 
 
2206
 
ac_exeext=$ac_cv_exeext
2207
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2208
 
echo "${ECHO_T}$ac_file" >&6
2209
 
 
2210
 
# Check the compiler produces executables we can run.  If not, either
2211
 
# the compiler is broken, or we cross compile.
2212
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2214
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215
 
# If not cross compiling, check that we can run a simple program.
2216
 
if test "$cross_compiling" != yes; then
2217
 
  if { ac_try='./$ac_file'
2218
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219
 
  (eval $ac_try) 2>&5
2220
 
  ac_status=$?
2221
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222
 
  (exit $ac_status); }; }; then
2223
 
    cross_compiling=no
2224
 
  else
2225
 
    if test "$cross_compiling" = maybe; then
2226
 
        cross_compiling=yes
2227
 
    else
2228
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2229
 
If you meant to cross compile, use \`--host'.
2230
 
See \`config.log' for more details." >&5
2231
 
echo "$as_me: error: cannot run C compiled programs.
2232
 
If you meant to cross compile, use \`--host'.
2233
 
See \`config.log' for more details." >&2;}
2234
 
   { (exit 1); exit 1; }; }
2235
 
    fi
2236
 
  fi
2237
 
fi
2238
 
echo "$as_me:$LINENO: result: yes" >&5
2239
 
echo "${ECHO_T}yes" >&6
2240
 
 
2241
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242
 
ac_clean_files=$ac_clean_files_save
2243
 
# Check the compiler produces executables we can run.  If not, either
2244
 
# the compiler is broken, or we cross compile.
2245
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2247
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248
 
echo "${ECHO_T}$cross_compiling" >&6
2249
 
 
2250
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2252
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253
 
  (eval $ac_link) 2>&5
2254
 
  ac_status=$?
2255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256
 
  (exit $ac_status); }; then
2257
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2259
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2260
 
# `rm'.
2261
 
for ac_file in conftest.exe conftest conftest.*; do
2262
 
  test -f "$ac_file" || continue
2263
 
  case $ac_file in
2264
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2265
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266
 
          export ac_cv_exeext
2267
 
          break;;
2268
 
    * ) break;;
2269
 
  esac
2270
 
done
2271
 
else
2272
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2273
 
See \`config.log' for more details." >&5
2274
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2275
 
See \`config.log' for more details." >&2;}
2276
 
   { (exit 1); exit 1; }; }
2277
 
fi
2278
 
 
2279
 
rm -f conftest$ac_cv_exeext
2280
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281
 
echo "${ECHO_T}$ac_cv_exeext" >&6
2282
 
 
2283
 
rm -f conftest.$ac_ext
2284
 
EXEEXT=$ac_cv_exeext
2285
 
ac_exeext=$EXEEXT
2286
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288
 
if test "${ac_cv_objext+set}" = set; then
2289
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2290
 
else
2291
 
  cat >conftest.$ac_ext <<_ACEOF
2292
 
/* confdefs.h.  */
2293
 
_ACEOF
2294
 
cat confdefs.h >>conftest.$ac_ext
2295
 
cat >>conftest.$ac_ext <<_ACEOF
2296
 
/* end confdefs.h.  */
2297
 
 
2298
 
int
2299
 
main ()
2300
 
{
2301
 
 
2302
 
  ;
2303
 
  return 0;
2304
 
}
2305
 
_ACEOF
2306
 
rm -f conftest.o conftest.obj
2307
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308
 
  (eval $ac_compile) 2>&5
2309
 
  ac_status=$?
2310
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311
 
  (exit $ac_status); }; then
2312
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2313
 
  case $ac_file in
2314
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2315
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2316
 
       break;;
2317
 
  esac
2318
 
done
2319
 
else
2320
 
  echo "$as_me: failed program was:" >&5
2321
 
sed 's/^/| /' conftest.$ac_ext >&5
2322
 
 
2323
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2324
 
See \`config.log' for more details." >&5
2325
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2326
 
See \`config.log' for more details." >&2;}
2327
 
   { (exit 1); exit 1; }; }
2328
 
fi
2329
 
 
2330
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2331
 
fi
2332
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2333
 
echo "${ECHO_T}$ac_cv_objext" >&6
2334
 
OBJEXT=$ac_cv_objext
2335
 
ac_objext=$OBJEXT
2336
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2337
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2338
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2339
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2340
 
else
2341
 
  cat >conftest.$ac_ext <<_ACEOF
2342
 
/* confdefs.h.  */
2343
 
_ACEOF
2344
 
cat confdefs.h >>conftest.$ac_ext
2345
 
cat >>conftest.$ac_ext <<_ACEOF
2346
 
/* end confdefs.h.  */
2347
 
 
2348
 
int
2349
 
main ()
2350
 
{
2351
 
#ifndef __GNUC__
2352
 
       choke me
2353
 
#endif
2354
 
 
2355
 
  ;
2356
 
  return 0;
2357
 
}
2358
 
_ACEOF
2359
 
rm -f conftest.$ac_objext
2360
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361
 
  (eval $ac_compile) 2>conftest.er1
2362
 
  ac_status=$?
2363
 
  grep -v '^ *+' conftest.er1 >conftest.err
2364
 
  rm -f conftest.er1
2365
 
  cat conftest.err >&5
2366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367
 
  (exit $ac_status); } &&
2368
 
         { ac_try='test -z "$ac_c_werror_flag"
2369
 
                         || test ! -s conftest.err'
2370
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371
 
  (eval $ac_try) 2>&5
2372
 
  ac_status=$?
2373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374
 
  (exit $ac_status); }; } &&
2375
 
         { ac_try='test -s conftest.$ac_objext'
2376
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377
 
  (eval $ac_try) 2>&5
2378
 
  ac_status=$?
2379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380
 
  (exit $ac_status); }; }; then
2381
 
  ac_compiler_gnu=yes
2382
 
else
2383
 
  echo "$as_me: failed program was:" >&5
2384
 
sed 's/^/| /' conftest.$ac_ext >&5
2385
 
 
2386
 
ac_compiler_gnu=no
2387
 
fi
2388
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2390
 
 
2391
 
fi
2392
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2393
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2394
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2395
 
ac_test_CFLAGS=${CFLAGS+set}
2396
 
ac_save_CFLAGS=$CFLAGS
2397
 
CFLAGS="-g"
2398
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2399
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2400
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2401
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2402
 
else
2403
 
  cat >conftest.$ac_ext <<_ACEOF
2404
 
/* confdefs.h.  */
2405
 
_ACEOF
2406
 
cat confdefs.h >>conftest.$ac_ext
2407
 
cat >>conftest.$ac_ext <<_ACEOF
2408
 
/* end confdefs.h.  */
2409
 
 
2410
 
int
2411
 
main ()
2412
 
{
2413
 
 
2414
 
  ;
2415
 
  return 0;
2416
 
}
2417
 
_ACEOF
2418
 
rm -f conftest.$ac_objext
2419
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420
 
  (eval $ac_compile) 2>conftest.er1
2421
 
  ac_status=$?
2422
 
  grep -v '^ *+' conftest.er1 >conftest.err
2423
 
  rm -f conftest.er1
2424
 
  cat conftest.err >&5
2425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426
 
  (exit $ac_status); } &&
2427
 
         { ac_try='test -z "$ac_c_werror_flag"
2428
 
                         || test ! -s conftest.err'
2429
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430
 
  (eval $ac_try) 2>&5
2431
 
  ac_status=$?
2432
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433
 
  (exit $ac_status); }; } &&
2434
 
         { ac_try='test -s conftest.$ac_objext'
2435
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436
 
  (eval $ac_try) 2>&5
2437
 
  ac_status=$?
2438
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439
 
  (exit $ac_status); }; }; then
2440
 
  ac_cv_prog_cc_g=yes
2441
 
else
2442
 
  echo "$as_me: failed program was:" >&5
2443
 
sed 's/^/| /' conftest.$ac_ext >&5
2444
 
 
2445
 
ac_cv_prog_cc_g=no
2446
 
fi
2447
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448
 
fi
2449
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451
 
if test "$ac_test_CFLAGS" = set; then
2452
 
  CFLAGS=$ac_save_CFLAGS
2453
 
elif test $ac_cv_prog_cc_g = yes; then
2454
 
  if test "$GCC" = yes; then
2455
 
    CFLAGS="-g -O2"
2456
 
  else
2457
 
    CFLAGS="-g"
2458
 
  fi
2459
 
else
2460
 
  if test "$GCC" = yes; then
2461
 
    CFLAGS="-O2"
2462
 
  else
2463
 
    CFLAGS=
2464
 
  fi
2465
 
fi
2466
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2470
 
else
2471
 
  ac_cv_prog_cc_stdc=no
2472
 
ac_save_CC=$CC
2473
 
cat >conftest.$ac_ext <<_ACEOF
2474
 
/* confdefs.h.  */
2475
 
_ACEOF
2476
 
cat confdefs.h >>conftest.$ac_ext
2477
 
cat >>conftest.$ac_ext <<_ACEOF
2478
 
/* end confdefs.h.  */
2479
 
#include <stdarg.h>
2480
 
#include <stdio.h>
2481
 
#include <sys/types.h>
2482
 
#include <sys/stat.h>
2483
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2484
 
struct buf { int x; };
2485
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2486
 
static char *e (p, i)
2487
 
     char **p;
2488
 
     int i;
2489
 
{
2490
 
  return p[i];
2491
 
}
2492
 
static char *f (char * (*g) (char **, int), char **p, ...)
2493
 
{
2494
 
  char *s;
2495
 
  va_list v;
2496
 
  va_start (v,p);
2497
 
  s = g (p, va_arg (v,int));
2498
 
  va_end (v);
2499
 
  return s;
2500
 
}
2501
 
 
2502
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2503
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2504
 
   These don't provoke an error unfortunately, instead are silently treated
2505
 
   as 'x'.  The following induces an error, until -std1 is added to get
2506
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2507
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2508
 
   that's true only with -std1.  */
2509
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2510
 
 
2511
 
int test (int i, double x);
2512
 
struct s1 {int (*f) (int a);};
2513
 
struct s2 {int (*f) (double a);};
2514
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2515
 
int argc;
2516
 
char **argv;
2517
 
int
2518
 
main ()
2519
 
{
2520
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2521
 
  ;
2522
 
  return 0;
2523
 
}
2524
 
_ACEOF
2525
 
# Don't try gcc -ansi; that turns off useful extensions and
2526
 
# breaks some systems' header files.
2527
 
# AIX                   -qlanglvl=ansi
2528
 
# Ultrix and OSF/1      -std1
2529
 
# HP-UX 10.20 and later -Ae
2530
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2531
 
# SVR4                  -Xc -D__EXTENSIONS__
2532
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2533
 
do
2534
 
  CC="$ac_save_CC $ac_arg"
2535
 
  rm -f conftest.$ac_objext
2536
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537
 
  (eval $ac_compile) 2>conftest.er1
2538
 
  ac_status=$?
2539
 
  grep -v '^ *+' conftest.er1 >conftest.err
2540
 
  rm -f conftest.er1
2541
 
  cat conftest.err >&5
2542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543
 
  (exit $ac_status); } &&
2544
 
         { ac_try='test -z "$ac_c_werror_flag"
2545
 
                         || test ! -s conftest.err'
2546
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547
 
  (eval $ac_try) 2>&5
2548
 
  ac_status=$?
2549
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550
 
  (exit $ac_status); }; } &&
2551
 
         { ac_try='test -s conftest.$ac_objext'
2552
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553
 
  (eval $ac_try) 2>&5
2554
 
  ac_status=$?
2555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556
 
  (exit $ac_status); }; }; then
2557
 
  ac_cv_prog_cc_stdc=$ac_arg
2558
 
break
2559
 
else
2560
 
  echo "$as_me: failed program was:" >&5
2561
 
sed 's/^/| /' conftest.$ac_ext >&5
2562
 
 
2563
 
fi
2564
 
rm -f conftest.err conftest.$ac_objext
2565
 
done
2566
 
rm -f conftest.$ac_ext conftest.$ac_objext
2567
 
CC=$ac_save_CC
2568
 
 
2569
 
fi
2570
 
 
2571
 
case "x$ac_cv_prog_cc_stdc" in
2572
 
  x|xno)
2573
 
    echo "$as_me:$LINENO: result: none needed" >&5
2574
 
echo "${ECHO_T}none needed" >&6 ;;
2575
 
  *)
2576
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2577
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2578
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2579
 
esac
2580
 
 
2581
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2582
 
# in C++ we need to declare it.  In case someone uses the same compiler
2583
 
# for both compiling C and C++ we need to have the C++ compiler decide
2584
 
# the declaration of exit, since it's the most demanding environment.
2585
 
cat >conftest.$ac_ext <<_ACEOF
2586
 
#ifndef __cplusplus
2587
 
  choke me
2588
 
#endif
2589
 
_ACEOF
2590
 
rm -f conftest.$ac_objext
2591
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592
 
  (eval $ac_compile) 2>conftest.er1
2593
 
  ac_status=$?
2594
 
  grep -v '^ *+' conftest.er1 >conftest.err
2595
 
  rm -f conftest.er1
2596
 
  cat conftest.err >&5
2597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598
 
  (exit $ac_status); } &&
2599
 
         { ac_try='test -z "$ac_c_werror_flag"
2600
 
                         || test ! -s conftest.err'
2601
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602
 
  (eval $ac_try) 2>&5
2603
 
  ac_status=$?
2604
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605
 
  (exit $ac_status); }; } &&
2606
 
         { ac_try='test -s conftest.$ac_objext'
2607
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608
 
  (eval $ac_try) 2>&5
2609
 
  ac_status=$?
2610
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611
 
  (exit $ac_status); }; }; then
2612
 
  for ac_declaration in \
2613
 
   '' \
2614
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2615
 
   'extern "C" void std::exit (int); using std::exit;' \
2616
 
   'extern "C" void exit (int) throw ();' \
2617
 
   'extern "C" void exit (int);' \
2618
 
   'void exit (int);'
2619
 
do
2620
 
  cat >conftest.$ac_ext <<_ACEOF
2621
 
/* confdefs.h.  */
2622
 
_ACEOF
2623
 
cat confdefs.h >>conftest.$ac_ext
2624
 
cat >>conftest.$ac_ext <<_ACEOF
2625
 
/* end confdefs.h.  */
2626
 
$ac_declaration
2627
 
#include <stdlib.h>
2628
 
int
2629
 
main ()
2630
 
{
2631
 
exit (42);
2632
 
  ;
2633
 
  return 0;
2634
 
}
2635
 
_ACEOF
2636
 
rm -f conftest.$ac_objext
2637
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638
 
  (eval $ac_compile) 2>conftest.er1
2639
 
  ac_status=$?
2640
 
  grep -v '^ *+' conftest.er1 >conftest.err
2641
 
  rm -f conftest.er1
2642
 
  cat conftest.err >&5
2643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644
 
  (exit $ac_status); } &&
2645
 
         { ac_try='test -z "$ac_c_werror_flag"
2646
 
                         || test ! -s conftest.err'
2647
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648
 
  (eval $ac_try) 2>&5
2649
 
  ac_status=$?
2650
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651
 
  (exit $ac_status); }; } &&
2652
 
         { ac_try='test -s conftest.$ac_objext'
2653
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654
 
  (eval $ac_try) 2>&5
2655
 
  ac_status=$?
2656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657
 
  (exit $ac_status); }; }; then
2658
 
  :
2659
 
else
2660
 
  echo "$as_me: failed program was:" >&5
2661
 
sed 's/^/| /' conftest.$ac_ext >&5
2662
 
 
2663
 
continue
2664
 
fi
2665
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666
 
  cat >conftest.$ac_ext <<_ACEOF
2667
 
/* confdefs.h.  */
2668
 
_ACEOF
2669
 
cat confdefs.h >>conftest.$ac_ext
2670
 
cat >>conftest.$ac_ext <<_ACEOF
2671
 
/* end confdefs.h.  */
2672
 
$ac_declaration
2673
 
int
2674
 
main ()
2675
 
{
2676
 
exit (42);
2677
 
  ;
2678
 
  return 0;
2679
 
}
2680
 
_ACEOF
2681
 
rm -f conftest.$ac_objext
2682
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683
 
  (eval $ac_compile) 2>conftest.er1
2684
 
  ac_status=$?
2685
 
  grep -v '^ *+' conftest.er1 >conftest.err
2686
 
  rm -f conftest.er1
2687
 
  cat conftest.err >&5
2688
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689
 
  (exit $ac_status); } &&
2690
 
         { ac_try='test -z "$ac_c_werror_flag"
2691
 
                         || test ! -s conftest.err'
2692
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693
 
  (eval $ac_try) 2>&5
2694
 
  ac_status=$?
2695
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696
 
  (exit $ac_status); }; } &&
2697
 
         { ac_try='test -s conftest.$ac_objext'
2698
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699
 
  (eval $ac_try) 2>&5
2700
 
  ac_status=$?
2701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702
 
  (exit $ac_status); }; }; then
2703
 
  break
2704
 
else
2705
 
  echo "$as_me: failed program was:" >&5
2706
 
sed 's/^/| /' conftest.$ac_ext >&5
2707
 
 
2708
 
fi
2709
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710
 
done
2711
 
rm -f conftest*
2712
 
if test -n "$ac_declaration"; then
2713
 
  echo '#ifdef __cplusplus' >>confdefs.h
2714
 
  echo $ac_declaration      >>confdefs.h
2715
 
  echo '#endif'             >>confdefs.h
2716
 
fi
2717
 
 
2718
 
else
2719
 
  echo "$as_me: failed program was:" >&5
2720
 
sed 's/^/| /' conftest.$ac_ext >&5
2721
 
 
2722
 
fi
2723
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724
 
ac_ext=c
2725
 
ac_cpp='$CPP $CPPFLAGS'
2726
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729
 
 
2730
 
 
2731
 
 
2732
 
 
2733
 
 
2734
 
 
2735
 
 
2736
 
 
2737
 
ac_header_dirent=no
2738
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2739
 
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2740
 
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2741
 
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2742
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2743
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2744
 
else
2745
 
  cat >conftest.$ac_ext <<_ACEOF
2746
 
/* confdefs.h.  */
2747
 
_ACEOF
2748
 
cat confdefs.h >>conftest.$ac_ext
2749
 
cat >>conftest.$ac_ext <<_ACEOF
2750
 
/* end confdefs.h.  */
2751
 
#include <sys/types.h>
2752
 
#include <$ac_hdr>
2753
 
 
2754
 
int
2755
 
main ()
2756
 
{
2757
 
if ((DIR *) 0)
2758
 
return 0;
2759
 
  ;
2760
 
  return 0;
2761
 
}
2762
 
_ACEOF
2763
 
rm -f conftest.$ac_objext
2764
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765
 
  (eval $ac_compile) 2>conftest.er1
2766
 
  ac_status=$?
2767
 
  grep -v '^ *+' conftest.er1 >conftest.err
2768
 
  rm -f conftest.er1
2769
 
  cat conftest.err >&5
2770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771
 
  (exit $ac_status); } &&
2772
 
         { ac_try='test -z "$ac_c_werror_flag"
2773
 
                         || test ! -s conftest.err'
2774
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775
 
  (eval $ac_try) 2>&5
2776
 
  ac_status=$?
2777
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778
 
  (exit $ac_status); }; } &&
2779
 
         { ac_try='test -s conftest.$ac_objext'
2780
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781
 
  (eval $ac_try) 2>&5
2782
 
  ac_status=$?
2783
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784
 
  (exit $ac_status); }; }; then
2785
 
  eval "$as_ac_Header=yes"
2786
 
else
2787
 
  echo "$as_me: failed program was:" >&5
2788
 
sed 's/^/| /' conftest.$ac_ext >&5
2789
 
 
2790
 
eval "$as_ac_Header=no"
2791
 
fi
2792
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793
 
fi
2794
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2795
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2796
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2797
 
  cat >>confdefs.h <<_ACEOF
2798
 
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2799
 
_ACEOF
2800
 
 
2801
 
ac_header_dirent=$ac_hdr; break
2802
 
fi
2803
 
 
2804
 
done
2805
 
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2806
 
if test $ac_header_dirent = dirent.h; then
2807
 
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
2808
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2809
 
if test "${ac_cv_search_opendir+set}" = set; then
2810
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2811
 
else
2812
 
  ac_func_search_save_LIBS=$LIBS
2813
 
ac_cv_search_opendir=no
2814
 
cat >conftest.$ac_ext <<_ACEOF
2815
 
/* confdefs.h.  */
2816
 
_ACEOF
2817
 
cat confdefs.h >>conftest.$ac_ext
2818
 
cat >>conftest.$ac_ext <<_ACEOF
2819
 
/* end confdefs.h.  */
2820
 
 
2821
 
/* Override any gcc2 internal prototype to avoid an error.  */
2822
 
#ifdef __cplusplus
2823
 
extern "C"
2824
 
#endif
2825
 
/* We use char because int might match the return type of a gcc2
2826
 
   builtin and then its argument prototype would still apply.  */
2827
 
char opendir ();
2828
 
int
2829
 
main ()
2830
 
{
2831
 
opendir ();
2832
 
  ;
2833
 
  return 0;
2834
 
}
2835
 
_ACEOF
2836
 
rm -f conftest.$ac_objext conftest$ac_exeext
2837
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2838
 
  (eval $ac_link) 2>conftest.er1
2839
 
  ac_status=$?
2840
 
  grep -v '^ *+' conftest.er1 >conftest.err
2841
 
  rm -f conftest.er1
2842
 
  cat conftest.err >&5
2843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844
 
  (exit $ac_status); } &&
2845
 
         { ac_try='test -z "$ac_c_werror_flag"
2846
 
                         || test ! -s conftest.err'
2847
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848
 
  (eval $ac_try) 2>&5
2849
 
  ac_status=$?
2850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851
 
  (exit $ac_status); }; } &&
2852
 
         { ac_try='test -s conftest$ac_exeext'
2853
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854
 
  (eval $ac_try) 2>&5
2855
 
  ac_status=$?
2856
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857
 
  (exit $ac_status); }; }; then
2858
 
  ac_cv_search_opendir="none required"
2859
 
else
2860
 
  echo "$as_me: failed program was:" >&5
2861
 
sed 's/^/| /' conftest.$ac_ext >&5
2862
 
 
2863
 
fi
2864
 
rm -f conftest.err conftest.$ac_objext \
2865
 
      conftest$ac_exeext conftest.$ac_ext
2866
 
if test "$ac_cv_search_opendir" = no; then
2867
 
  for ac_lib in dir; do
2868
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2869
 
    cat >conftest.$ac_ext <<_ACEOF
2870
 
/* confdefs.h.  */
2871
 
_ACEOF
2872
 
cat confdefs.h >>conftest.$ac_ext
2873
 
cat >>conftest.$ac_ext <<_ACEOF
2874
 
/* end confdefs.h.  */
2875
 
 
2876
 
/* Override any gcc2 internal prototype to avoid an error.  */
2877
 
#ifdef __cplusplus
2878
 
extern "C"
2879
 
#endif
2880
 
/* We use char because int might match the return type of a gcc2
2881
 
   builtin and then its argument prototype would still apply.  */
2882
 
char opendir ();
2883
 
int
2884
 
main ()
2885
 
{
2886
 
opendir ();
2887
 
  ;
2888
 
  return 0;
2889
 
}
2890
 
_ACEOF
2891
 
rm -f conftest.$ac_objext conftest$ac_exeext
2892
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2893
 
  (eval $ac_link) 2>conftest.er1
2894
 
  ac_status=$?
2895
 
  grep -v '^ *+' conftest.er1 >conftest.err
2896
 
  rm -f conftest.er1
2897
 
  cat conftest.err >&5
2898
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899
 
  (exit $ac_status); } &&
2900
 
         { ac_try='test -z "$ac_c_werror_flag"
2901
 
                         || test ! -s conftest.err'
2902
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903
 
  (eval $ac_try) 2>&5
2904
 
  ac_status=$?
2905
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906
 
  (exit $ac_status); }; } &&
2907
 
         { ac_try='test -s conftest$ac_exeext'
2908
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909
 
  (eval $ac_try) 2>&5
2910
 
  ac_status=$?
2911
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912
 
  (exit $ac_status); }; }; then
2913
 
  ac_cv_search_opendir="-l$ac_lib"
2914
 
break
2915
 
else
2916
 
  echo "$as_me: failed program was:" >&5
2917
 
sed 's/^/| /' conftest.$ac_ext >&5
2918
 
 
2919
 
fi
2920
 
rm -f conftest.err conftest.$ac_objext \
2921
 
      conftest$ac_exeext conftest.$ac_ext
2922
 
  done
2923
 
fi
2924
 
LIBS=$ac_func_search_save_LIBS
2925
 
fi
2926
 
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2927
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6
2928
 
if test "$ac_cv_search_opendir" != no; then
2929
 
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2930
 
 
2931
 
fi
2932
 
 
2933
 
else
2934
 
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
2935
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2936
 
if test "${ac_cv_search_opendir+set}" = set; then
2937
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2938
 
else
2939
 
  ac_func_search_save_LIBS=$LIBS
2940
 
ac_cv_search_opendir=no
2941
 
cat >conftest.$ac_ext <<_ACEOF
2942
 
/* confdefs.h.  */
2943
 
_ACEOF
2944
 
cat confdefs.h >>conftest.$ac_ext
2945
 
cat >>conftest.$ac_ext <<_ACEOF
2946
 
/* end confdefs.h.  */
2947
 
 
2948
 
/* Override any gcc2 internal prototype to avoid an error.  */
2949
 
#ifdef __cplusplus
2950
 
extern "C"
2951
 
#endif
2952
 
/* We use char because int might match the return type of a gcc2
2953
 
   builtin and then its argument prototype would still apply.  */
2954
 
char opendir ();
2955
 
int
2956
 
main ()
2957
 
{
2958
 
opendir ();
2959
 
  ;
2960
 
  return 0;
2961
 
}
2962
 
_ACEOF
2963
 
rm -f conftest.$ac_objext conftest$ac_exeext
2964
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965
 
  (eval $ac_link) 2>conftest.er1
2966
 
  ac_status=$?
2967
 
  grep -v '^ *+' conftest.er1 >conftest.err
2968
 
  rm -f conftest.er1
2969
 
  cat conftest.err >&5
2970
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971
 
  (exit $ac_status); } &&
2972
 
         { ac_try='test -z "$ac_c_werror_flag"
2973
 
                         || test ! -s conftest.err'
2974
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975
 
  (eval $ac_try) 2>&5
2976
 
  ac_status=$?
2977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978
 
  (exit $ac_status); }; } &&
2979
 
         { ac_try='test -s conftest$ac_exeext'
2980
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981
 
  (eval $ac_try) 2>&5
2982
 
  ac_status=$?
2983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984
 
  (exit $ac_status); }; }; then
2985
 
  ac_cv_search_opendir="none required"
2986
 
else
2987
 
  echo "$as_me: failed program was:" >&5
2988
 
sed 's/^/| /' conftest.$ac_ext >&5
2989
 
 
2990
 
fi
2991
 
rm -f conftest.err conftest.$ac_objext \
2992
 
      conftest$ac_exeext conftest.$ac_ext
2993
 
if test "$ac_cv_search_opendir" = no; then
2994
 
  for ac_lib in x; do
2995
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2996
 
    cat >conftest.$ac_ext <<_ACEOF
2997
 
/* confdefs.h.  */
2998
 
_ACEOF
2999
 
cat confdefs.h >>conftest.$ac_ext
3000
 
cat >>conftest.$ac_ext <<_ACEOF
3001
 
/* end confdefs.h.  */
3002
 
 
3003
 
/* Override any gcc2 internal prototype to avoid an error.  */
3004
 
#ifdef __cplusplus
3005
 
extern "C"
3006
 
#endif
3007
 
/* We use char because int might match the return type of a gcc2
3008
 
   builtin and then its argument prototype would still apply.  */
3009
 
char opendir ();
3010
 
int
3011
 
main ()
3012
 
{
3013
 
opendir ();
3014
 
  ;
3015
 
  return 0;
3016
 
}
3017
 
_ACEOF
3018
 
rm -f conftest.$ac_objext conftest$ac_exeext
3019
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020
 
  (eval $ac_link) 2>conftest.er1
3021
 
  ac_status=$?
3022
 
  grep -v '^ *+' conftest.er1 >conftest.err
3023
 
  rm -f conftest.er1
3024
 
  cat conftest.err >&5
3025
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026
 
  (exit $ac_status); } &&
3027
 
         { ac_try='test -z "$ac_c_werror_flag"
3028
 
                         || test ! -s conftest.err'
3029
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030
 
  (eval $ac_try) 2>&5
3031
 
  ac_status=$?
3032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033
 
  (exit $ac_status); }; } &&
3034
 
         { ac_try='test -s conftest$ac_exeext'
3035
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036
 
  (eval $ac_try) 2>&5
3037
 
  ac_status=$?
3038
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039
 
  (exit $ac_status); }; }; then
3040
 
  ac_cv_search_opendir="-l$ac_lib"
3041
 
break
3042
 
else
3043
 
  echo "$as_me: failed program was:" >&5
3044
 
sed 's/^/| /' conftest.$ac_ext >&5
3045
 
 
3046
 
fi
3047
 
rm -f conftest.err conftest.$ac_objext \
3048
 
      conftest$ac_exeext conftest.$ac_ext
3049
 
  done
3050
 
fi
3051
 
LIBS=$ac_func_search_save_LIBS
3052
 
fi
3053
 
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3054
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6
3055
 
if test "$ac_cv_search_opendir" != no; then
3056
 
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3057
 
 
3058
 
fi
3059
 
 
3060
 
fi
3061
 
 
3062
 
ac_ext=c
3063
 
ac_cpp='$CPP $CPPFLAGS'
3064
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3068
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3069
 
# On Suns, sometimes $CPP names a directory.
3070
 
if test -n "$CPP" && test -d "$CPP"; then
3071
 
  CPP=
3072
 
fi
3073
 
if test -z "$CPP"; then
3074
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3075
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3076
 
else
3077
 
      # Double quotes because CPP needs to be expanded
3078
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3079
 
    do
3080
 
      ac_preproc_ok=false
3081
 
for ac_c_preproc_warn_flag in '' yes
3082
 
do
3083
 
  # Use a header file that comes with gcc, so configuring glibc
3084
 
  # with a fresh cross-compiler works.
3085
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3086
 
  # <limits.h> exists even on freestanding compilers.
3087
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3088
 
  # not just through cpp. "Syntax error" is here to catch this case.
3089
 
  cat >conftest.$ac_ext <<_ACEOF
3090
 
/* confdefs.h.  */
3091
 
_ACEOF
3092
 
cat confdefs.h >>conftest.$ac_ext
3093
 
cat >>conftest.$ac_ext <<_ACEOF
3094
 
/* end confdefs.h.  */
3095
 
#ifdef __STDC__
3096
 
# include <limits.h>
3097
 
#else
3098
 
# include <assert.h>
3099
 
#endif
3100
 
                     Syntax error
3101
 
_ACEOF
3102
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3103
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3104
 
  ac_status=$?
3105
 
  grep -v '^ *+' conftest.er1 >conftest.err
3106
 
  rm -f conftest.er1
3107
 
  cat conftest.err >&5
3108
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109
 
  (exit $ac_status); } >/dev/null; then
3110
 
  if test -s conftest.err; then
3111
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3112
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3113
 
  else
3114
 
    ac_cpp_err=
3115
 
  fi
3116
 
else
3117
 
  ac_cpp_err=yes
3118
 
fi
3119
 
if test -z "$ac_cpp_err"; then
3120
 
  :
3121
 
else
3122
 
  echo "$as_me: failed program was:" >&5
3123
 
sed 's/^/| /' conftest.$ac_ext >&5
3124
 
 
3125
 
  # Broken: fails on valid input.
3126
 
continue
3127
 
fi
3128
 
rm -f conftest.err conftest.$ac_ext
3129
 
 
3130
 
  # OK, works on sane cases.  Now check whether non-existent headers
3131
 
  # can be detected and how.
3132
 
  cat >conftest.$ac_ext <<_ACEOF
3133
 
/* confdefs.h.  */
3134
 
_ACEOF
3135
 
cat confdefs.h >>conftest.$ac_ext
3136
 
cat >>conftest.$ac_ext <<_ACEOF
3137
 
/* end confdefs.h.  */
3138
 
#include <ac_nonexistent.h>
3139
 
_ACEOF
3140
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3141
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142
 
  ac_status=$?
3143
 
  grep -v '^ *+' conftest.er1 >conftest.err
3144
 
  rm -f conftest.er1
3145
 
  cat conftest.err >&5
3146
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147
 
  (exit $ac_status); } >/dev/null; then
3148
 
  if test -s conftest.err; then
3149
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3150
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3151
 
  else
3152
 
    ac_cpp_err=
3153
 
  fi
3154
 
else
3155
 
  ac_cpp_err=yes
3156
 
fi
3157
 
if test -z "$ac_cpp_err"; then
3158
 
  # Broken: success on invalid input.
3159
 
continue
3160
 
else
3161
 
  echo "$as_me: failed program was:" >&5
3162
 
sed 's/^/| /' conftest.$ac_ext >&5
3163
 
 
3164
 
  # Passes both tests.
3165
 
ac_preproc_ok=:
3166
 
break
3167
 
fi
3168
 
rm -f conftest.err conftest.$ac_ext
3169
 
 
3170
 
done
3171
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3172
 
rm -f conftest.err conftest.$ac_ext
3173
 
if $ac_preproc_ok; then
3174
 
  break
3175
 
fi
3176
 
 
3177
 
    done
3178
 
    ac_cv_prog_CPP=$CPP
3179
 
 
3180
 
fi
3181
 
  CPP=$ac_cv_prog_CPP
3182
 
else
3183
 
  ac_cv_prog_CPP=$CPP
3184
 
fi
3185
 
echo "$as_me:$LINENO: result: $CPP" >&5
3186
 
echo "${ECHO_T}$CPP" >&6
3187
 
ac_preproc_ok=false
3188
 
for ac_c_preproc_warn_flag in '' yes
3189
 
do
3190
 
  # Use a header file that comes with gcc, so configuring glibc
3191
 
  # with a fresh cross-compiler works.
3192
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3193
 
  # <limits.h> exists even on freestanding compilers.
3194
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3195
 
  # not just through cpp. "Syntax error" is here to catch this case.
3196
 
  cat >conftest.$ac_ext <<_ACEOF
3197
 
/* confdefs.h.  */
3198
 
_ACEOF
3199
 
cat confdefs.h >>conftest.$ac_ext
3200
 
cat >>conftest.$ac_ext <<_ACEOF
3201
 
/* end confdefs.h.  */
3202
 
#ifdef __STDC__
3203
 
# include <limits.h>
3204
 
#else
3205
 
# include <assert.h>
3206
 
#endif
3207
 
                     Syntax error
3208
 
_ACEOF
3209
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3210
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3211
 
  ac_status=$?
3212
 
  grep -v '^ *+' conftest.er1 >conftest.err
3213
 
  rm -f conftest.er1
3214
 
  cat conftest.err >&5
3215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216
 
  (exit $ac_status); } >/dev/null; then
3217
 
  if test -s conftest.err; then
3218
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3219
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3220
 
  else
3221
 
    ac_cpp_err=
3222
 
  fi
3223
 
else
3224
 
  ac_cpp_err=yes
3225
 
fi
3226
 
if test -z "$ac_cpp_err"; then
3227
 
  :
3228
 
else
3229
 
  echo "$as_me: failed program was:" >&5
3230
 
sed 's/^/| /' conftest.$ac_ext >&5
3231
 
 
3232
 
  # Broken: fails on valid input.
3233
 
continue
3234
 
fi
3235
 
rm -f conftest.err conftest.$ac_ext
3236
 
 
3237
 
  # OK, works on sane cases.  Now check whether non-existent headers
3238
 
  # can be detected and how.
3239
 
  cat >conftest.$ac_ext <<_ACEOF
3240
 
/* confdefs.h.  */
3241
 
_ACEOF
3242
 
cat confdefs.h >>conftest.$ac_ext
3243
 
cat >>conftest.$ac_ext <<_ACEOF
3244
 
/* end confdefs.h.  */
3245
 
#include <ac_nonexistent.h>
3246
 
_ACEOF
3247
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3248
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3249
 
  ac_status=$?
3250
 
  grep -v '^ *+' conftest.er1 >conftest.err
3251
 
  rm -f conftest.er1
3252
 
  cat conftest.err >&5
3253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254
 
  (exit $ac_status); } >/dev/null; then
3255
 
  if test -s conftest.err; then
3256
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3257
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3258
 
  else
3259
 
    ac_cpp_err=
3260
 
  fi
3261
 
else
3262
 
  ac_cpp_err=yes
3263
 
fi
3264
 
if test -z "$ac_cpp_err"; then
3265
 
  # Broken: success on invalid input.
3266
 
continue
3267
 
else
3268
 
  echo "$as_me: failed program was:" >&5
3269
 
sed 's/^/| /' conftest.$ac_ext >&5
3270
 
 
3271
 
  # Passes both tests.
3272
 
ac_preproc_ok=:
3273
 
break
3274
 
fi
3275
 
rm -f conftest.err conftest.$ac_ext
3276
 
 
3277
 
done
3278
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3279
 
rm -f conftest.err conftest.$ac_ext
3280
 
if $ac_preproc_ok; then
3281
 
  :
3282
 
else
3283
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3284
 
See \`config.log' for more details." >&5
3285
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3286
 
See \`config.log' for more details." >&2;}
3287
 
   { (exit 1); exit 1; }; }
3288
 
fi
3289
 
 
3290
 
ac_ext=c
3291
 
ac_cpp='$CPP $CPPFLAGS'
3292
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
 
 
3296
 
 
3297
 
echo "$as_me:$LINENO: checking for egrep" >&5
3298
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3299
 
if test "${ac_cv_prog_egrep+set}" = set; then
3300
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3301
 
else
3302
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3303
 
    then ac_cv_prog_egrep='grep -E'
3304
 
    else ac_cv_prog_egrep='egrep'
3305
 
    fi
3306
 
fi
3307
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3308
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3309
 
 EGREP=$ac_cv_prog_egrep
3310
 
 
3311
 
 
3312
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3313
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3314
 
if test "${ac_cv_header_stdc+set}" = set; then
3315
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3316
 
else
3317
 
  cat >conftest.$ac_ext <<_ACEOF
3318
 
/* confdefs.h.  */
3319
 
_ACEOF
3320
 
cat confdefs.h >>conftest.$ac_ext
3321
 
cat >>conftest.$ac_ext <<_ACEOF
3322
 
/* end confdefs.h.  */
3323
 
#include <stdlib.h>
3324
 
#include <stdarg.h>
3325
 
#include <string.h>
3326
 
#include <float.h>
3327
 
 
3328
 
int
3329
 
main ()
3330
 
{
3331
 
 
3332
 
  ;
3333
 
  return 0;
3334
 
}
3335
 
_ACEOF
3336
 
rm -f conftest.$ac_objext
3337
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338
 
  (eval $ac_compile) 2>conftest.er1
3339
 
  ac_status=$?
3340
 
  grep -v '^ *+' conftest.er1 >conftest.err
3341
 
  rm -f conftest.er1
3342
 
  cat conftest.err >&5
3343
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344
 
  (exit $ac_status); } &&
3345
 
         { ac_try='test -z "$ac_c_werror_flag"
3346
 
                         || test ! -s conftest.err'
3347
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348
 
  (eval $ac_try) 2>&5
3349
 
  ac_status=$?
3350
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351
 
  (exit $ac_status); }; } &&
3352
 
         { ac_try='test -s conftest.$ac_objext'
3353
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354
 
  (eval $ac_try) 2>&5
3355
 
  ac_status=$?
3356
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357
 
  (exit $ac_status); }; }; then
3358
 
  ac_cv_header_stdc=yes
3359
 
else
3360
 
  echo "$as_me: failed program was:" >&5
3361
 
sed 's/^/| /' conftest.$ac_ext >&5
3362
 
 
3363
 
ac_cv_header_stdc=no
3364
 
fi
3365
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3366
 
 
3367
 
if test $ac_cv_header_stdc = yes; then
3368
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3369
 
  cat >conftest.$ac_ext <<_ACEOF
3370
 
/* confdefs.h.  */
3371
 
_ACEOF
3372
 
cat confdefs.h >>conftest.$ac_ext
3373
 
cat >>conftest.$ac_ext <<_ACEOF
3374
 
/* end confdefs.h.  */
3375
 
#include <string.h>
3376
 
 
3377
 
_ACEOF
3378
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379
 
  $EGREP "memchr" >/dev/null 2>&1; then
3380
 
  :
3381
 
else
3382
 
  ac_cv_header_stdc=no
3383
 
fi
3384
 
rm -f conftest*
3385
 
 
3386
 
fi
3387
 
 
3388
 
if test $ac_cv_header_stdc = yes; then
3389
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3390
 
  cat >conftest.$ac_ext <<_ACEOF
3391
 
/* confdefs.h.  */
3392
 
_ACEOF
3393
 
cat confdefs.h >>conftest.$ac_ext
3394
 
cat >>conftest.$ac_ext <<_ACEOF
3395
 
/* end confdefs.h.  */
3396
 
#include <stdlib.h>
3397
 
 
3398
 
_ACEOF
3399
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3400
 
  $EGREP "free" >/dev/null 2>&1; then
3401
 
  :
3402
 
else
3403
 
  ac_cv_header_stdc=no
3404
 
fi
3405
 
rm -f conftest*
3406
 
 
3407
 
fi
3408
 
 
3409
 
if test $ac_cv_header_stdc = yes; then
3410
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3411
 
  if test "$cross_compiling" = yes; then
3412
 
  :
3413
 
else
3414
 
  cat >conftest.$ac_ext <<_ACEOF
3415
 
/* confdefs.h.  */
3416
 
_ACEOF
3417
 
cat confdefs.h >>conftest.$ac_ext
3418
 
cat >>conftest.$ac_ext <<_ACEOF
3419
 
/* end confdefs.h.  */
3420
 
#include <ctype.h>
3421
 
#if ((' ' & 0x0FF) == 0x020)
3422
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3423
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3424
 
#else
3425
 
# define ISLOWER(c) \
3426
 
                   (('a' <= (c) && (c) <= 'i') \
3427
 
                     || ('j' <= (c) && (c) <= 'r') \
3428
 
                     || ('s' <= (c) && (c) <= 'z'))
3429
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3430
 
#endif
3431
 
 
3432
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3433
 
int
3434
 
main ()
3435
 
{
3436
 
  int i;
3437
 
  for (i = 0; i < 256; i++)
3438
 
    if (XOR (islower (i), ISLOWER (i))
3439
 
        || toupper (i) != TOUPPER (i))
3440
 
      exit(2);
3441
 
  exit (0);
3442
 
}
3443
 
_ACEOF
3444
 
rm -f conftest$ac_exeext
3445
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3446
 
  (eval $ac_link) 2>&5
3447
 
  ac_status=$?
3448
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3450
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451
 
  (eval $ac_try) 2>&5
3452
 
  ac_status=$?
3453
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454
 
  (exit $ac_status); }; }; then
3455
 
  :
3456
 
else
3457
 
  echo "$as_me: program exited with status $ac_status" >&5
3458
 
echo "$as_me: failed program was:" >&5
3459
 
sed 's/^/| /' conftest.$ac_ext >&5
3460
 
 
3461
 
( exit $ac_status )
3462
 
ac_cv_header_stdc=no
3463
 
fi
3464
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3465
 
fi
3466
 
fi
3467
 
fi
3468
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3469
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3470
 
if test $ac_cv_header_stdc = yes; then
3471
 
 
3472
 
cat >>confdefs.h <<\_ACEOF
3473
 
#define STDC_HEADERS 1
3474
 
_ACEOF
3475
 
 
3476
 
fi
3477
 
 
3478
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3479
 
 
3480
 
 
3481
 
 
3482
 
 
3483
 
 
3484
 
 
3485
 
 
3486
 
 
3487
 
 
3488
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3489
 
                  inttypes.h stdint.h unistd.h
3490
 
do
3491
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3492
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3493
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3496
 
else
3497
 
  cat >conftest.$ac_ext <<_ACEOF
3498
 
/* confdefs.h.  */
3499
 
_ACEOF
3500
 
cat confdefs.h >>conftest.$ac_ext
3501
 
cat >>conftest.$ac_ext <<_ACEOF
3502
 
/* end confdefs.h.  */
3503
 
$ac_includes_default
3504
 
 
3505
 
#include <$ac_header>
3506
 
_ACEOF
3507
 
rm -f conftest.$ac_objext
3508
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509
 
  (eval $ac_compile) 2>conftest.er1
3510
 
  ac_status=$?
3511
 
  grep -v '^ *+' conftest.er1 >conftest.err
3512
 
  rm -f conftest.er1
3513
 
  cat conftest.err >&5
3514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515
 
  (exit $ac_status); } &&
3516
 
         { ac_try='test -z "$ac_c_werror_flag"
3517
 
                         || test ! -s conftest.err'
3518
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519
 
  (eval $ac_try) 2>&5
3520
 
  ac_status=$?
3521
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522
 
  (exit $ac_status); }; } &&
3523
 
         { ac_try='test -s conftest.$ac_objext'
3524
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525
 
  (eval $ac_try) 2>&5
3526
 
  ac_status=$?
3527
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528
 
  (exit $ac_status); }; }; then
3529
 
  eval "$as_ac_Header=yes"
3530
 
else
3531
 
  echo "$as_me: failed program was:" >&5
3532
 
sed 's/^/| /' conftest.$ac_ext >&5
3533
 
 
3534
 
eval "$as_ac_Header=no"
3535
 
fi
3536
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537
 
fi
3538
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3539
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3540
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3541
 
  cat >>confdefs.h <<_ACEOF
3542
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3543
 
_ACEOF
3544
 
 
3545
 
fi
3546
 
 
3547
 
done
3548
 
 
3549
 
 
3550
 
 
3551
 
 
3552
 
 
3553
 
for ac_header in fcntl.h sys/ioctl.h unistd.h
3554
 
do
3555
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3556
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3557
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3558
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3559
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3560
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3561
 
fi
3562
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3563
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3564
 
else
3565
 
  # Is the header compilable?
3566
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3567
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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
 
$ac_includes_default
3575
 
#include <$ac_header>
3576
 
_ACEOF
3577
 
rm -f conftest.$ac_objext
3578
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579
 
  (eval $ac_compile) 2>conftest.er1
3580
 
  ac_status=$?
3581
 
  grep -v '^ *+' conftest.er1 >conftest.err
3582
 
  rm -f conftest.er1
3583
 
  cat conftest.err >&5
3584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585
 
  (exit $ac_status); } &&
3586
 
         { ac_try='test -z "$ac_c_werror_flag"
3587
 
                         || test ! -s conftest.err'
3588
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589
 
  (eval $ac_try) 2>&5
3590
 
  ac_status=$?
3591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592
 
  (exit $ac_status); }; } &&
3593
 
         { ac_try='test -s conftest.$ac_objext'
3594
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595
 
  (eval $ac_try) 2>&5
3596
 
  ac_status=$?
3597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598
 
  (exit $ac_status); }; }; then
3599
 
  ac_header_compiler=yes
3600
 
else
3601
 
  echo "$as_me: failed program was:" >&5
3602
 
sed 's/^/| /' conftest.$ac_ext >&5
3603
 
 
3604
 
ac_header_compiler=no
3605
 
fi
3606
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3608
 
echo "${ECHO_T}$ac_header_compiler" >&6
3609
 
 
3610
 
# Is the header present?
3611
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3612
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3613
 
cat >conftest.$ac_ext <<_ACEOF
3614
 
/* confdefs.h.  */
3615
 
_ACEOF
3616
 
cat confdefs.h >>conftest.$ac_ext
3617
 
cat >>conftest.$ac_ext <<_ACEOF
3618
 
/* end confdefs.h.  */
3619
 
#include <$ac_header>
3620
 
_ACEOF
3621
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3622
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3623
 
  ac_status=$?
3624
 
  grep -v '^ *+' conftest.er1 >conftest.err
3625
 
  rm -f conftest.er1
3626
 
  cat conftest.err >&5
3627
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628
 
  (exit $ac_status); } >/dev/null; then
3629
 
  if test -s conftest.err; then
3630
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3631
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3632
 
  else
3633
 
    ac_cpp_err=
3634
 
  fi
3635
 
else
3636
 
  ac_cpp_err=yes
3637
 
fi
3638
 
if test -z "$ac_cpp_err"; then
3639
 
  ac_header_preproc=yes
3640
 
else
3641
 
  echo "$as_me: failed program was:" >&5
3642
 
sed 's/^/| /' conftest.$ac_ext >&5
3643
 
 
3644
 
  ac_header_preproc=no
3645
 
fi
3646
 
rm -f conftest.err conftest.$ac_ext
3647
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3648
 
echo "${ECHO_T}$ac_header_preproc" >&6
3649
 
 
3650
 
# So?  What about this header?
3651
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3652
 
  yes:no: )
3653
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3654
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3655
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3656
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3657
 
    ac_header_preproc=yes
3658
 
    ;;
3659
 
  no:yes:* )
3660
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3661
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3662
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3663
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3664
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3665
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3666
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3667
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3668
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3669
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3670
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3671
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3672
 
    (
3673
 
      cat <<\_ASBOX
3674
 
## ------------------------------------------ ##
3675
 
## Report this to the AC_PACKAGE_NAME lists.  ##
3676
 
## ------------------------------------------ ##
3677
 
_ASBOX
3678
 
    ) |
3679
 
      sed "s/^/$as_me: WARNING:     /" >&2
3680
 
    ;;
3681
 
esac
3682
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3683
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3684
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3685
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3686
 
else
3687
 
  eval "$as_ac_Header=\$ac_header_preproc"
3688
 
fi
3689
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3690
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3691
 
 
3692
 
fi
3693
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3694
 
  cat >>confdefs.h <<_ACEOF
3695
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3696
 
_ACEOF
3697
 
 
3698
 
fi
3699
 
 
3700
 
done
3701
 
 
3702
 
if test x$KLIBC != xyes; then
3703
 
 
3704
 
for ac_header in malloc.h
3705
 
do
3706
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3707
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3708
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3709
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3710
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3711
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3712
 
fi
3713
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3714
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3715
 
else
3716
 
  # Is the header compilable?
3717
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3718
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3719
 
cat >conftest.$ac_ext <<_ACEOF
3720
 
/* confdefs.h.  */
3721
 
_ACEOF
3722
 
cat confdefs.h >>conftest.$ac_ext
3723
 
cat >>conftest.$ac_ext <<_ACEOF
3724
 
/* end confdefs.h.  */
3725
 
$ac_includes_default
3726
 
#include <$ac_header>
3727
 
_ACEOF
3728
 
rm -f conftest.$ac_objext
3729
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730
 
  (eval $ac_compile) 2>conftest.er1
3731
 
  ac_status=$?
3732
 
  grep -v '^ *+' conftest.er1 >conftest.err
3733
 
  rm -f conftest.er1
3734
 
  cat conftest.err >&5
3735
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736
 
  (exit $ac_status); } &&
3737
 
         { ac_try='test -z "$ac_c_werror_flag"
3738
 
                         || test ! -s conftest.err'
3739
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740
 
  (eval $ac_try) 2>&5
3741
 
  ac_status=$?
3742
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743
 
  (exit $ac_status); }; } &&
3744
 
         { ac_try='test -s conftest.$ac_objext'
3745
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746
 
  (eval $ac_try) 2>&5
3747
 
  ac_status=$?
3748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749
 
  (exit $ac_status); }; }; then
3750
 
  ac_header_compiler=yes
3751
 
else
3752
 
  echo "$as_me: failed program was:" >&5
3753
 
sed 's/^/| /' conftest.$ac_ext >&5
3754
 
 
3755
 
ac_header_compiler=no
3756
 
fi
3757
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3758
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3759
 
echo "${ECHO_T}$ac_header_compiler" >&6
3760
 
 
3761
 
# Is the header present?
3762
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3763
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3764
 
cat >conftest.$ac_ext <<_ACEOF
3765
 
/* confdefs.h.  */
3766
 
_ACEOF
3767
 
cat confdefs.h >>conftest.$ac_ext
3768
 
cat >>conftest.$ac_ext <<_ACEOF
3769
 
/* end confdefs.h.  */
3770
 
#include <$ac_header>
3771
 
_ACEOF
3772
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3773
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3774
 
  ac_status=$?
3775
 
  grep -v '^ *+' conftest.er1 >conftest.err
3776
 
  rm -f conftest.er1
3777
 
  cat conftest.err >&5
3778
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779
 
  (exit $ac_status); } >/dev/null; then
3780
 
  if test -s conftest.err; then
3781
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3782
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3783
 
  else
3784
 
    ac_cpp_err=
3785
 
  fi
3786
 
else
3787
 
  ac_cpp_err=yes
3788
 
fi
3789
 
if test -z "$ac_cpp_err"; then
3790
 
  ac_header_preproc=yes
3791
 
else
3792
 
  echo "$as_me: failed program was:" >&5
3793
 
sed 's/^/| /' conftest.$ac_ext >&5
3794
 
 
3795
 
  ac_header_preproc=no
3796
 
fi
3797
 
rm -f conftest.err conftest.$ac_ext
3798
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3799
 
echo "${ECHO_T}$ac_header_preproc" >&6
3800
 
 
3801
 
# So?  What about this header?
3802
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3803
 
  yes:no: )
3804
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3805
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3806
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3807
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3808
 
    ac_header_preproc=yes
3809
 
    ;;
3810
 
  no:yes:* )
3811
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3812
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3813
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3814
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3815
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3816
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3817
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3818
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3819
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3820
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3821
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3822
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3823
 
    (
3824
 
      cat <<\_ASBOX
3825
 
## ------------------------------------------ ##
3826
 
## Report this to the AC_PACKAGE_NAME lists.  ##
3827
 
## ------------------------------------------ ##
3828
 
_ASBOX
3829
 
    ) |
3830
 
      sed "s/^/$as_me: WARNING:     /" >&2
3831
 
    ;;
3832
 
esac
3833
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3834
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3835
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3836
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3837
 
else
3838
 
  eval "$as_ac_Header=\$ac_header_preproc"
3839
 
fi
3840
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3841
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3842
 
 
3843
 
fi
3844
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3845
 
  cat >>confdefs.h <<_ACEOF
3846
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3847
 
_ACEOF
3848
 
 
3849
 
fi
3850
 
 
3851
 
done
3852
 
 
3853
 
fi
3854
 
 
3855
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3856
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3857
 
if test "${ac_cv_c_const+set}" = set; then
3858
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3859
 
else
3860
 
  cat >conftest.$ac_ext <<_ACEOF
3861
 
/* confdefs.h.  */
3862
 
_ACEOF
3863
 
cat confdefs.h >>conftest.$ac_ext
3864
 
cat >>conftest.$ac_ext <<_ACEOF
3865
 
/* end confdefs.h.  */
3866
 
 
3867
 
int
3868
 
main ()
3869
 
{
3870
 
/* FIXME: Include the comments suggested by Paul. */
3871
 
#ifndef __cplusplus
3872
 
  /* Ultrix mips cc rejects this.  */
3873
 
  typedef int charset[2];
3874
 
  const charset x;
3875
 
  /* SunOS 4.1.1 cc rejects this.  */
3876
 
  char const *const *ccp;
3877
 
  char **p;
3878
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
3879
 
  struct point {int x, y;};
3880
 
  static struct point const zero = {0,0};
3881
 
  /* AIX XL C 1.02.0.0 rejects this.
3882
 
     It does not let you subtract one const X* pointer from another in
3883
 
     an arm of an if-expression whose if-part is not a constant
3884
 
     expression */
3885
 
  const char *g = "string";
3886
 
  ccp = &g + (g ? g-g : 0);
3887
 
  /* HPUX 7.0 cc rejects these. */
3888
 
  ++ccp;
3889
 
  p = (char**) ccp;
3890
 
  ccp = (char const *const *) p;
3891
 
  { /* SCO 3.2v4 cc rejects this.  */
3892
 
    char *t;
3893
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
3894
 
 
3895
 
    *t++ = 0;
3896
 
  }
3897
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3898
 
    int x[] = {25, 17};
3899
 
    const int *foo = &x[0];
3900
 
    ++foo;
3901
 
  }
3902
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3903
 
    typedef const int *iptr;
3904
 
    iptr p = 0;
3905
 
    ++p;
3906
 
  }
3907
 
  { /* AIX XL C 1.02.0.0 rejects this saying
3908
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3909
 
    struct s { int j; const int *ap[3]; };
3910
 
    struct s *b; b->j = 5;
3911
 
  }
3912
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3913
 
    const int foo = 10;
3914
 
  }
3915
 
#endif
3916
 
 
3917
 
  ;
3918
 
  return 0;
3919
 
}
3920
 
_ACEOF
3921
 
rm -f conftest.$ac_objext
3922
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923
 
  (eval $ac_compile) 2>conftest.er1
3924
 
  ac_status=$?
3925
 
  grep -v '^ *+' conftest.er1 >conftest.err
3926
 
  rm -f conftest.er1
3927
 
  cat conftest.err >&5
3928
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929
 
  (exit $ac_status); } &&
3930
 
         { ac_try='test -z "$ac_c_werror_flag"
3931
 
                         || test ! -s conftest.err'
3932
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933
 
  (eval $ac_try) 2>&5
3934
 
  ac_status=$?
3935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936
 
  (exit $ac_status); }; } &&
3937
 
         { ac_try='test -s conftest.$ac_objext'
3938
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939
 
  (eval $ac_try) 2>&5
3940
 
  ac_status=$?
3941
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942
 
  (exit $ac_status); }; }; then
3943
 
  ac_cv_c_const=yes
3944
 
else
3945
 
  echo "$as_me: failed program was:" >&5
3946
 
sed 's/^/| /' conftest.$ac_ext >&5
3947
 
 
3948
 
ac_cv_c_const=no
3949
 
fi
3950
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3951
 
fi
3952
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3953
 
echo "${ECHO_T}$ac_cv_c_const" >&6
3954
 
if test $ac_cv_c_const = no; then
3955
 
 
3956
 
cat >>confdefs.h <<\_ACEOF
3957
 
#define const
3958
 
_ACEOF
3959
 
 
3960
 
fi
3961
 
 
3962
 
echo "$as_me:$LINENO: checking for inline" >&5
3963
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6
3964
 
if test "${ac_cv_c_inline+set}" = set; then
3965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3966
 
else
3967
 
  ac_cv_c_inline=no
3968
 
for ac_kw in inline __inline__ __inline; do
3969
 
  cat >conftest.$ac_ext <<_ACEOF
3970
 
/* confdefs.h.  */
3971
 
_ACEOF
3972
 
cat confdefs.h >>conftest.$ac_ext
3973
 
cat >>conftest.$ac_ext <<_ACEOF
3974
 
/* end confdefs.h.  */
3975
 
#ifndef __cplusplus
3976
 
typedef int foo_t;
3977
 
static $ac_kw foo_t static_foo () {return 0; }
3978
 
$ac_kw foo_t foo () {return 0; }
3979
 
#endif
3980
 
 
3981
 
_ACEOF
3982
 
rm -f conftest.$ac_objext
3983
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984
 
  (eval $ac_compile) 2>conftest.er1
3985
 
  ac_status=$?
3986
 
  grep -v '^ *+' conftest.er1 >conftest.err
3987
 
  rm -f conftest.er1
3988
 
  cat conftest.err >&5
3989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990
 
  (exit $ac_status); } &&
3991
 
         { ac_try='test -z "$ac_c_werror_flag"
3992
 
                         || test ! -s conftest.err'
3993
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994
 
  (eval $ac_try) 2>&5
3995
 
  ac_status=$?
3996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997
 
  (exit $ac_status); }; } &&
3998
 
         { ac_try='test -s conftest.$ac_objext'
3999
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000
 
  (eval $ac_try) 2>&5
4001
 
  ac_status=$?
4002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003
 
  (exit $ac_status); }; }; then
4004
 
  ac_cv_c_inline=$ac_kw; break
4005
 
else
4006
 
  echo "$as_me: failed program was:" >&5
4007
 
sed 's/^/| /' conftest.$ac_ext >&5
4008
 
 
4009
 
fi
4010
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011
 
done
4012
 
 
4013
 
fi
4014
 
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4015
 
echo "${ECHO_T}$ac_cv_c_inline" >&6
4016
 
 
4017
 
 
4018
 
case $ac_cv_c_inline in
4019
 
  inline | yes) ;;
4020
 
  *)
4021
 
    case $ac_cv_c_inline in
4022
 
      no) ac_val=;;
4023
 
      *) ac_val=$ac_cv_c_inline;;
4024
 
    esac
4025
 
    cat >>confdefs.h <<_ACEOF
4026
 
#ifndef __cplusplus
4027
 
#define inline $ac_val
4028
 
#endif
4029
 
_ACEOF
4030
 
    ;;
4031
 
esac
4032
 
 
4033
 
echo "$as_me:$LINENO: checking for off_t" >&5
4034
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4035
 
if test "${ac_cv_type_off_t+set}" = set; then
4036
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4037
 
else
4038
 
  cat >conftest.$ac_ext <<_ACEOF
4039
 
/* confdefs.h.  */
4040
 
_ACEOF
4041
 
cat confdefs.h >>conftest.$ac_ext
4042
 
cat >>conftest.$ac_ext <<_ACEOF
4043
 
/* end confdefs.h.  */
4044
 
$ac_includes_default
4045
 
int
4046
 
main ()
4047
 
{
4048
 
if ((off_t *) 0)
4049
 
  return 0;
4050
 
if (sizeof (off_t))
4051
 
  return 0;
4052
 
  ;
4053
 
  return 0;
4054
 
}
4055
 
_ACEOF
4056
 
rm -f conftest.$ac_objext
4057
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058
 
  (eval $ac_compile) 2>conftest.er1
4059
 
  ac_status=$?
4060
 
  grep -v '^ *+' conftest.er1 >conftest.err
4061
 
  rm -f conftest.er1
4062
 
  cat conftest.err >&5
4063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064
 
  (exit $ac_status); } &&
4065
 
         { ac_try='test -z "$ac_c_werror_flag"
4066
 
                         || test ! -s conftest.err'
4067
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068
 
  (eval $ac_try) 2>&5
4069
 
  ac_status=$?
4070
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071
 
  (exit $ac_status); }; } &&
4072
 
         { ac_try='test -s conftest.$ac_objext'
4073
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074
 
  (eval $ac_try) 2>&5
4075
 
  ac_status=$?
4076
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077
 
  (exit $ac_status); }; }; then
4078
 
  ac_cv_type_off_t=yes
4079
 
else
4080
 
  echo "$as_me: failed program was:" >&5
4081
 
sed 's/^/| /' conftest.$ac_ext >&5
4082
 
 
4083
 
ac_cv_type_off_t=no
4084
 
fi
4085
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086
 
fi
4087
 
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4088
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6
4089
 
if test $ac_cv_type_off_t = yes; then
4090
 
  :
4091
 
else
4092
 
 
4093
 
cat >>confdefs.h <<_ACEOF
4094
 
#define off_t long
4095
 
_ACEOF
4096
 
 
4097
 
fi
4098
 
 
4099
 
echo "$as_me:$LINENO: checking for pid_t" >&5
4100
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4101
 
if test "${ac_cv_type_pid_t+set}" = set; then
4102
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4103
 
else
4104
 
  cat >conftest.$ac_ext <<_ACEOF
4105
 
/* confdefs.h.  */
4106
 
_ACEOF
4107
 
cat confdefs.h >>conftest.$ac_ext
4108
 
cat >>conftest.$ac_ext <<_ACEOF
4109
 
/* end confdefs.h.  */
4110
 
$ac_includes_default
4111
 
int
4112
 
main ()
4113
 
{
4114
 
if ((pid_t *) 0)
4115
 
  return 0;
4116
 
if (sizeof (pid_t))
4117
 
  return 0;
4118
 
  ;
4119
 
  return 0;
4120
 
}
4121
 
_ACEOF
4122
 
rm -f conftest.$ac_objext
4123
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124
 
  (eval $ac_compile) 2>conftest.er1
4125
 
  ac_status=$?
4126
 
  grep -v '^ *+' conftest.er1 >conftest.err
4127
 
  rm -f conftest.er1
4128
 
  cat conftest.err >&5
4129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130
 
  (exit $ac_status); } &&
4131
 
         { ac_try='test -z "$ac_c_werror_flag"
4132
 
                         || test ! -s conftest.err'
4133
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134
 
  (eval $ac_try) 2>&5
4135
 
  ac_status=$?
4136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137
 
  (exit $ac_status); }; } &&
4138
 
         { ac_try='test -s conftest.$ac_objext'
4139
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140
 
  (eval $ac_try) 2>&5
4141
 
  ac_status=$?
4142
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143
 
  (exit $ac_status); }; }; then
4144
 
  ac_cv_type_pid_t=yes
4145
 
else
4146
 
  echo "$as_me: failed program was:" >&5
4147
 
sed 's/^/| /' conftest.$ac_ext >&5
4148
 
 
4149
 
ac_cv_type_pid_t=no
4150
 
fi
4151
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152
 
fi
4153
 
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4154
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4155
 
if test $ac_cv_type_pid_t = yes; then
4156
 
  :
4157
 
else
4158
 
 
4159
 
cat >>confdefs.h <<_ACEOF
4160
 
#define pid_t int
4161
 
_ACEOF
4162
 
 
4163
 
fi
4164
 
 
4165
 
echo "$as_me:$LINENO: checking for size_t" >&5
4166
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4167
 
if test "${ac_cv_type_size_t+set}" = set; then
4168
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4169
 
else
4170
 
  cat >conftest.$ac_ext <<_ACEOF
4171
 
/* confdefs.h.  */
4172
 
_ACEOF
4173
 
cat confdefs.h >>conftest.$ac_ext
4174
 
cat >>conftest.$ac_ext <<_ACEOF
4175
 
/* end confdefs.h.  */
4176
 
$ac_includes_default
4177
 
int
4178
 
main ()
4179
 
{
4180
 
if ((size_t *) 0)
4181
 
  return 0;
4182
 
if (sizeof (size_t))
4183
 
  return 0;
4184
 
  ;
4185
 
  return 0;
4186
 
}
4187
 
_ACEOF
4188
 
rm -f conftest.$ac_objext
4189
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190
 
  (eval $ac_compile) 2>conftest.er1
4191
 
  ac_status=$?
4192
 
  grep -v '^ *+' conftest.er1 >conftest.err
4193
 
  rm -f conftest.er1
4194
 
  cat conftest.err >&5
4195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196
 
  (exit $ac_status); } &&
4197
 
         { ac_try='test -z "$ac_c_werror_flag"
4198
 
                         || test ! -s conftest.err'
4199
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200
 
  (eval $ac_try) 2>&5
4201
 
  ac_status=$?
4202
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203
 
  (exit $ac_status); }; } &&
4204
 
         { ac_try='test -s conftest.$ac_objext'
4205
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206
 
  (eval $ac_try) 2>&5
4207
 
  ac_status=$?
4208
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209
 
  (exit $ac_status); }; }; then
4210
 
  ac_cv_type_size_t=yes
4211
 
else
4212
 
  echo "$as_me: failed program was:" >&5
4213
 
sed 's/^/| /' conftest.$ac_ext >&5
4214
 
 
4215
 
ac_cv_type_size_t=no
4216
 
fi
4217
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218
 
fi
4219
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4220
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
4221
 
if test $ac_cv_type_size_t = yes; then
4222
 
  :
4223
 
else
4224
 
 
4225
 
cat >>confdefs.h <<_ACEOF
4226
 
#define size_t unsigned
4227
 
_ACEOF
4228
 
 
4229
 
fi
4230
 
 
4231
 
 
4232
 
echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4233
 
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4234
 
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4235
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4236
 
else
4237
 
  cat >conftest.$ac_ext <<_ACEOF
4238
 
/* confdefs.h.  */
4239
 
_ACEOF
4240
 
cat confdefs.h >>conftest.$ac_ext
4241
 
cat >>conftest.$ac_ext <<_ACEOF
4242
 
/* end confdefs.h.  */
4243
 
$ac_includes_default
4244
 
int
4245
 
main ()
4246
 
{
4247
 
static struct stat ac_aggr;
4248
 
if (ac_aggr.st_rdev)
4249
 
return 0;
4250
 
  ;
4251
 
  return 0;
4252
 
}
4253
 
_ACEOF
4254
 
rm -f conftest.$ac_objext
4255
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256
 
  (eval $ac_compile) 2>conftest.er1
4257
 
  ac_status=$?
4258
 
  grep -v '^ *+' conftest.er1 >conftest.err
4259
 
  rm -f conftest.er1
4260
 
  cat conftest.err >&5
4261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262
 
  (exit $ac_status); } &&
4263
 
         { ac_try='test -z "$ac_c_werror_flag"
4264
 
                         || test ! -s conftest.err'
4265
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266
 
  (eval $ac_try) 2>&5
4267
 
  ac_status=$?
4268
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
 
  (exit $ac_status); }; } &&
4270
 
         { ac_try='test -s conftest.$ac_objext'
4271
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272
 
  (eval $ac_try) 2>&5
4273
 
  ac_status=$?
4274
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275
 
  (exit $ac_status); }; }; then
4276
 
  ac_cv_member_struct_stat_st_rdev=yes
4277
 
else
4278
 
  echo "$as_me: failed program was:" >&5
4279
 
sed 's/^/| /' conftest.$ac_ext >&5
4280
 
 
4281
 
cat >conftest.$ac_ext <<_ACEOF
4282
 
/* confdefs.h.  */
4283
 
_ACEOF
4284
 
cat confdefs.h >>conftest.$ac_ext
4285
 
cat >>conftest.$ac_ext <<_ACEOF
4286
 
/* end confdefs.h.  */
4287
 
$ac_includes_default
4288
 
int
4289
 
main ()
4290
 
{
4291
 
static struct stat ac_aggr;
4292
 
if (sizeof ac_aggr.st_rdev)
4293
 
return 0;
4294
 
  ;
4295
 
  return 0;
4296
 
}
4297
 
_ACEOF
4298
 
rm -f conftest.$ac_objext
4299
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300
 
  (eval $ac_compile) 2>conftest.er1
4301
 
  ac_status=$?
4302
 
  grep -v '^ *+' conftest.er1 >conftest.err
4303
 
  rm -f conftest.er1
4304
 
  cat conftest.err >&5
4305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306
 
  (exit $ac_status); } &&
4307
 
         { ac_try='test -z "$ac_c_werror_flag"
4308
 
                         || test ! -s conftest.err'
4309
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310
 
  (eval $ac_try) 2>&5
4311
 
  ac_status=$?
4312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313
 
  (exit $ac_status); }; } &&
4314
 
         { ac_try='test -s conftest.$ac_objext'
4315
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316
 
  (eval $ac_try) 2>&5
4317
 
  ac_status=$?
4318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319
 
  (exit $ac_status); }; }; then
4320
 
  ac_cv_member_struct_stat_st_rdev=yes
4321
 
else
4322
 
  echo "$as_me: failed program was:" >&5
4323
 
sed 's/^/| /' conftest.$ac_ext >&5
4324
 
 
4325
 
ac_cv_member_struct_stat_st_rdev=no
4326
 
fi
4327
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4328
 
fi
4329
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4330
 
fi
4331
 
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4332
 
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4333
 
if test $ac_cv_member_struct_stat_st_rdev = yes; then
4334
 
 
4335
 
cat >>confdefs.h <<_ACEOF
4336
 
#define HAVE_STRUCT_STAT_ST_RDEV 1
4337
 
_ACEOF
4338
 
 
4339
 
 
4340
 
cat >>confdefs.h <<\_ACEOF
4341
 
#define HAVE_ST_RDEV 1
4342
 
_ACEOF
4343
 
 
4344
 
fi
4345
 
 
4346
 
 
4347
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4348
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4349
 
if test "${ac_cv_header_time+set}" = set; then
4350
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4351
 
else
4352
 
  cat >conftest.$ac_ext <<_ACEOF
4353
 
/* confdefs.h.  */
4354
 
_ACEOF
4355
 
cat confdefs.h >>conftest.$ac_ext
4356
 
cat >>conftest.$ac_ext <<_ACEOF
4357
 
/* end confdefs.h.  */
4358
 
#include <sys/types.h>
4359
 
#include <sys/time.h>
4360
 
#include <time.h>
4361
 
 
4362
 
int
4363
 
main ()
4364
 
{
4365
 
if ((struct tm *) 0)
4366
 
return 0;
4367
 
  ;
4368
 
  return 0;
4369
 
}
4370
 
_ACEOF
4371
 
rm -f conftest.$ac_objext
4372
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373
 
  (eval $ac_compile) 2>conftest.er1
4374
 
  ac_status=$?
4375
 
  grep -v '^ *+' conftest.er1 >conftest.err
4376
 
  rm -f conftest.er1
4377
 
  cat conftest.err >&5
4378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379
 
  (exit $ac_status); } &&
4380
 
         { ac_try='test -z "$ac_c_werror_flag"
4381
 
                         || test ! -s conftest.err'
4382
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383
 
  (eval $ac_try) 2>&5
4384
 
  ac_status=$?
4385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386
 
  (exit $ac_status); }; } &&
4387
 
         { ac_try='test -s conftest.$ac_objext'
4388
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389
 
  (eval $ac_try) 2>&5
4390
 
  ac_status=$?
4391
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392
 
  (exit $ac_status); }; }; then
4393
 
  ac_cv_header_time=yes
4394
 
else
4395
 
  echo "$as_me: failed program was:" >&5
4396
 
sed 's/^/| /' conftest.$ac_ext >&5
4397
 
 
4398
 
ac_cv_header_time=no
4399
 
fi
4400
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401
 
fi
4402
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4403
 
echo "${ECHO_T}$ac_cv_header_time" >&6
4404
 
if test $ac_cv_header_time = yes; then
4405
 
 
4406
 
cat >>confdefs.h <<\_ACEOF
4407
 
#define TIME_WITH_SYS_TIME 1
4408
 
_ACEOF
4409
 
 
4410
 
fi
4411
 
 
4412
 
 
4413
 
if test x$KLIBC != xyes; then
4414
 
        case "$host_os" in
4415
 
                linux*)
4416
 
                        CFLAGS=-O2
4417
 
                        CLDFLAGS="-Wl,--version-script,.export.sym"
4418
 
                        LD_DEPS=".export.sym"
4419
 
                        SOFLAG="-shared" ;;
4420
 
        esac
4421
 
fi
4422
 
 
4423
 
 
4424
 
 
4425
 
 
4426
 
# Check whether --with-user or --without-user was given.
4427
 
if test "${with_user+set}" = set; then
4428
 
  withval="$with_user"
4429
 
   OWNER="$withval"
4430
 
else
4431
 
   OWNER="root"
4432
 
fi;
4433
 
 
4434
 
 
4435
 
# Check whether --with-group or --without-group was given.
4436
 
if test "${with_group+set}" = set; then
4437
 
  withval="$with_group"
4438
 
   GROUP="$withval"
4439
 
else
4440
 
   GROUP="root"
4441
 
fi;
4442
 
 
4443
 
echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
4444
 
# Check whether --enable-debug or --disable-debug was given.
4445
 
if test "${enable_debug+set}" = set; then
4446
 
  enableval="$enable_debug"
4447
 
  \
4448
 
DEBUG=yes
4449
 
else
4450
 
  DEBUG=no
4451
 
fi;
4452
 
echo "$ac_t""$DEBUG" 1>&6
4453
 
 
4454
 
echo $ac_n "checking whether to enable malloc debugging""... $ac_c" 1>&6
4455
 
# Check whether --enable-debug_malloc or --disable-debug_malloc was given.
4456
 
if test "${enable_debug_malloc+set}" = set; then
4457
 
  enableval="$enable_debug_malloc"
4458
 
  \
4459
 
DEBUG_MALLOC=yes
4460
 
else
4461
 
  DEBUG_MALLOC=no
4462
 
fi;
4463
 
echo "$ac_t""$DEBUG" 1>&6
4464
 
 
4465
 
# Check whether --enable-dietlibc or --disable-dietlibc was given.
4466
 
if test "${enable_dietlibc+set}" = set; then
4467
 
  enableval="$enable_dietlibc"
4468
 
  DIETLIBC=yes
4469
 
else
4470
 
  DIETLIBC=no
4471
 
fi;
4472
 
 
4473
 
if test x$DIETLIBC = xyes; then
4474
 
        if test x$KLIBC = xyes; then
4475
 
                { { echo "$as_me:$LINENO: error: You can' enable both dietlibc and klibc!" >&5
4476
 
echo "$as_me: error: You can' enable both dietlibc and klibc!" >&2;}
4477
 
   { (exit 1); exit 1; }; }
4478
 
                exit 1
4479
 
        fi
4480
 
        CC="diet gcc"
4481
 
        FLAVOUR="dietlibc "
4482
 
fi
4483
 
 
4484
 
# Check whether --enable-jobs or --disable-jobs was given.
4485
 
if test "${enable_jobs+set}" = set; then
4486
 
  enableval="$enable_jobs"
4487
 
  JOBS=-j$enableval
4488
 
else
4489
 
  JOBS=-j1
4490
 
fi;
4491
 
 
4492
 
# Check whether --enable-libselinux or --disable-libselinux was given.
4493
 
if test "${enable_libselinux+set}" = set; then
4494
 
  enableval="$enable_libselinux"
4495
 
  LIBSELINUX=$enableval
4496
 
else
4497
 
  LIBSELINUX=no
4498
 
fi;
4499
 
 
4500
 
# Check whether --enable-libsepol or --disable-libsepol was given.
4501
 
if test "${enable_libsepol+set}" = set; then
4502
 
  enableval="$enable_libsepol"
4503
 
  LIBSEPOL=$enableval
4504
 
else
4505
 
  LIBSEPOL=no
4506
 
fi;
4507
 
 
4508
 
# Check whether --enable-mini or --disable-mini was given.
4509
 
if test "${enable_mini+set}" = set; then
4510
 
  enableval="$enable_mini"
4511
 
  DMRAID_MINI=$enableval
4512
 
else
4513
 
  DMRAID_MINI=no
4514
 
fi;
4515
 
 
4516
 
echo $ac_n "checking whether to disable native metadata logging""... $ac_c" 1>&6
4517
 
# Check whether --enable-native_log or --disable-native_log was given.
4518
 
if test "${enable_native_log+set}" = set; then
4519
 
  enableval="$enable_native_log"
4520
 
  \
4521
 
DMRAID_NATIVE_LOG=$enableval
4522
 
else
4523
 
  DMRAID_NATIVE_LOG=yes
4524
 
fi;
4525
 
echo "$ac_t""$DMRAID_NATIVE_LOG" 1>&6
4526
 
 
4527
 
# Check whether --enable-static_link or --disable-static_link was given.
4528
 
if test "${enable_static_link+set}" = set; then
4529
 
  enableval="$enable_static_link"
4530
 
  STATIC_LINK=$enableval
4531
 
else
4532
 
  STATIC_LINK=no
4533
 
fi;
4534
 
 
4535
 
# Check whether --enable-shared_lib or --disable-shared_lib was given.
4536
 
if test "${enable_shared_lib+set}" = set; then
4537
 
  enableval="$enable_shared_lib"
4538
 
  LIB_SO=$enableval
4539
 
else
4540
 
  LIB_SO=no
4541
 
fi;
4542
 
 
4543
 
echo $ac_n "checking whether to disable testing with mapped devices""... $ac_c" 1>&6
4544
 
# Check whether --enable-testing or --disable-testing was given.
4545
 
if test "${enable_testing+set}" = set; then
4546
 
  enableval="$enable_testing"
4547
 
  \
4548
 
DMRAID_TEST=no
4549
 
else
4550
 
  DMRAID_TEST=yes
4551
 
fi;
4552
 
 
4553
 
echo "$ac_t""$DEBUG" 1>&6
4554
 
 
4555
 
if test x$LIB_SO = xyes; then
4556
 
        FLAVOUR="shared "
4557
 
fi
4558
 
 
4559
 
if test x$STATIC_LINK = xyes; then
4560
 
        FLAVOUR="static "
4561
 
        if test x$LIB_SO = xyes; then
4562
 
                { { echo "$as_me:$LINENO: error: You can' enable both shared_lib and static_link!" >&5
4563
 
echo "$as_me: error: You can' enable both shared_lib and static_link!" >&2;}
4564
 
   { (exit 1); exit 1; }; }
4565
 
                exit 1
4566
 
        fi
4567
 
fi
4568
 
 
4569
 
if test x$DMRAID_MINI = xyes; then
4570
 
        CFLAGS="$CFLAGS -DDMRAID_MINI"
4571
 
        FLAVOUR="${FLAVOUR}mini "
4572
 
else
4573
 
        if test x$DMRAID_NATIVE_LOG = xno; then
4574
 
                FLAVOUR="${FLAVOUR}no_native_log "
4575
 
        else
4576
 
                CFLAGS="$CFLAGS -DDMRAID_NATIVE_LOG"
4577
 
        fi
4578
 
fi
4579
 
 
4580
 
if test x$DEBUG = xyes; then
4581
 
        FLAVOUR="${FLAVOUR}debug "
4582
 
fi
4583
 
 
4584
 
if test x$DEBUG_MALLOC = xyes; then
4585
 
        FLAVOUR="${FLAVOUR}debug_malloc "
4586
 
fi
4587
 
 
4588
 
if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
4589
 
 then  exec_prefix="";
4590
 
fi;
4591
 
 
4592
 
if test $ac_cv_c_compiler_gnu = yes; then
4593
 
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4594
 
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4595
 
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4596
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4597
 
else
4598
 
    ac_pattern="Autoconf.*'x'"
4599
 
  cat >conftest.$ac_ext <<_ACEOF
4600
 
/* confdefs.h.  */
4601
 
_ACEOF
4602
 
cat confdefs.h >>conftest.$ac_ext
4603
 
cat >>conftest.$ac_ext <<_ACEOF
4604
 
/* end confdefs.h.  */
4605
 
#include <sgtty.h>
4606
 
Autoconf TIOCGETP
4607
 
_ACEOF
4608
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4610
 
  ac_cv_prog_gcc_traditional=yes
4611
 
else
4612
 
  ac_cv_prog_gcc_traditional=no
4613
 
fi
4614
 
rm -f conftest*
4615
 
 
4616
 
 
4617
 
  if test $ac_cv_prog_gcc_traditional = no; then
4618
 
    cat >conftest.$ac_ext <<_ACEOF
4619
 
/* confdefs.h.  */
4620
 
_ACEOF
4621
 
cat confdefs.h >>conftest.$ac_ext
4622
 
cat >>conftest.$ac_ext <<_ACEOF
4623
 
/* end confdefs.h.  */
4624
 
#include <termio.h>
4625
 
Autoconf TCGETA
4626
 
_ACEOF
4627
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4629
 
  ac_cv_prog_gcc_traditional=yes
4630
 
fi
4631
 
rm -f conftest*
4632
 
 
4633
 
  fi
4634
 
fi
4635
 
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4636
 
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4637
 
  if test $ac_cv_prog_gcc_traditional = yes; then
4638
 
    CC="$CC -traditional"
4639
 
  fi
4640
 
fi
4641
 
 
4642
 
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4643
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4644
 
if test "${ac_cv_type_signal+set}" = set; then
4645
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4646
 
else
4647
 
  cat >conftest.$ac_ext <<_ACEOF
4648
 
/* confdefs.h.  */
4649
 
_ACEOF
4650
 
cat confdefs.h >>conftest.$ac_ext
4651
 
cat >>conftest.$ac_ext <<_ACEOF
4652
 
/* end confdefs.h.  */
4653
 
#include <sys/types.h>
4654
 
#include <signal.h>
4655
 
#ifdef signal
4656
 
# undef signal
4657
 
#endif
4658
 
#ifdef __cplusplus
4659
 
extern "C" void (*signal (int, void (*)(int)))(int);
4660
 
#else
4661
 
void (*signal ()) ();
4662
 
#endif
4663
 
 
4664
 
int
4665
 
main ()
4666
 
{
4667
 
int i;
4668
 
  ;
4669
 
  return 0;
4670
 
}
4671
 
_ACEOF
4672
 
rm -f conftest.$ac_objext
4673
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674
 
  (eval $ac_compile) 2>conftest.er1
4675
 
  ac_status=$?
4676
 
  grep -v '^ *+' conftest.er1 >conftest.err
4677
 
  rm -f conftest.er1
4678
 
  cat conftest.err >&5
4679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680
 
  (exit $ac_status); } &&
4681
 
         { ac_try='test -z "$ac_c_werror_flag"
4682
 
                         || test ! -s conftest.err'
4683
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684
 
  (eval $ac_try) 2>&5
4685
 
  ac_status=$?
4686
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687
 
  (exit $ac_status); }; } &&
4688
 
         { ac_try='test -s conftest.$ac_objext'
4689
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690
 
  (eval $ac_try) 2>&5
4691
 
  ac_status=$?
4692
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693
 
  (exit $ac_status); }; }; then
4694
 
  ac_cv_type_signal=void
4695
 
else
4696
 
  echo "$as_me: failed program was:" >&5
4697
 
sed 's/^/| /' conftest.$ac_ext >&5
4698
 
 
4699
 
ac_cv_type_signal=int
4700
 
fi
4701
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4702
 
fi
4703
 
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4704
 
echo "${ECHO_T}$ac_cv_type_signal" >&6
4705
 
 
4706
 
cat >>confdefs.h <<_ACEOF
4707
 
#define RETSIGTYPE $ac_cv_type_signal
4708
 
_ACEOF
4709
 
 
4710
 
 
4711
 
 
4712
 
for ac_func in vprintf
4713
 
do
4714
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4715
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
4716
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4717
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
4718
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4719
 
else
4720
 
  cat >conftest.$ac_ext <<_ACEOF
4721
 
/* confdefs.h.  */
4722
 
_ACEOF
4723
 
cat confdefs.h >>conftest.$ac_ext
4724
 
cat >>conftest.$ac_ext <<_ACEOF
4725
 
/* end confdefs.h.  */
4726
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4727
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4728
 
#define $ac_func innocuous_$ac_func
4729
 
 
4730
 
/* System header to define __stub macros and hopefully few prototypes,
4731
 
    which can conflict with char $ac_func (); below.
4732
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4733
 
    <limits.h> exists even on freestanding compilers.  */
4734
 
 
4735
 
#ifdef __STDC__
4736
 
# include <limits.h>
4737
 
#else
4738
 
# include <assert.h>
4739
 
#endif
4740
 
 
4741
 
#undef $ac_func
4742
 
 
4743
 
/* Override any gcc2 internal prototype to avoid an error.  */
4744
 
#ifdef __cplusplus
4745
 
extern "C"
4746
 
{
4747
 
#endif
4748
 
/* We use char because int might match the return type of a gcc2
4749
 
   builtin and then its argument prototype would still apply.  */
4750
 
char $ac_func ();
4751
 
/* The GNU C library defines this for functions which it implements
4752
 
    to always fail with ENOSYS.  Some functions are actually named
4753
 
    something starting with __ and the normal name is an alias.  */
4754
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4755
 
choke me
4756
 
#else
4757
 
char (*f) () = $ac_func;
4758
 
#endif
4759
 
#ifdef __cplusplus
4760
 
}
4761
 
#endif
4762
 
 
4763
 
int
4764
 
main ()
4765
 
{
4766
 
return f != $ac_func;
4767
 
  ;
4768
 
  return 0;
4769
 
}
4770
 
_ACEOF
4771
 
rm -f conftest.$ac_objext conftest$ac_exeext
4772
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4773
 
  (eval $ac_link) 2>conftest.er1
4774
 
  ac_status=$?
4775
 
  grep -v '^ *+' conftest.er1 >conftest.err
4776
 
  rm -f conftest.er1
4777
 
  cat conftest.err >&5
4778
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779
 
  (exit $ac_status); } &&
4780
 
         { ac_try='test -z "$ac_c_werror_flag"
4781
 
                         || test ! -s conftest.err'
4782
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783
 
  (eval $ac_try) 2>&5
4784
 
  ac_status=$?
4785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786
 
  (exit $ac_status); }; } &&
4787
 
         { ac_try='test -s conftest$ac_exeext'
4788
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789
 
  (eval $ac_try) 2>&5
4790
 
  ac_status=$?
4791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792
 
  (exit $ac_status); }; }; then
4793
 
  eval "$as_ac_var=yes"
4794
 
else
4795
 
  echo "$as_me: failed program was:" >&5
4796
 
sed 's/^/| /' conftest.$ac_ext >&5
4797
 
 
4798
 
eval "$as_ac_var=no"
4799
 
fi
4800
 
rm -f conftest.err conftest.$ac_objext \
4801
 
      conftest$ac_exeext conftest.$ac_ext
4802
 
fi
4803
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4804
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4805
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
4806
 
  cat >>confdefs.h <<_ACEOF
4807
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4808
 
_ACEOF
4809
 
 
4810
 
echo "$as_me:$LINENO: checking for _doprnt" >&5
4811
 
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4812
 
if test "${ac_cv_func__doprnt+set}" = set; then
4813
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4814
 
else
4815
 
  cat >conftest.$ac_ext <<_ACEOF
4816
 
/* confdefs.h.  */
4817
 
_ACEOF
4818
 
cat confdefs.h >>conftest.$ac_ext
4819
 
cat >>conftest.$ac_ext <<_ACEOF
4820
 
/* end confdefs.h.  */
4821
 
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4822
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4823
 
#define _doprnt innocuous__doprnt
4824
 
 
4825
 
/* System header to define __stub macros and hopefully few prototypes,
4826
 
    which can conflict with char _doprnt (); below.
4827
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828
 
    <limits.h> exists even on freestanding compilers.  */
4829
 
 
4830
 
#ifdef __STDC__
4831
 
# include <limits.h>
4832
 
#else
4833
 
# include <assert.h>
4834
 
#endif
4835
 
 
4836
 
#undef _doprnt
4837
 
 
4838
 
/* Override any gcc2 internal prototype to avoid an error.  */
4839
 
#ifdef __cplusplus
4840
 
extern "C"
4841
 
{
4842
 
#endif
4843
 
/* We use char because int might match the return type of a gcc2
4844
 
   builtin and then its argument prototype would still apply.  */
4845
 
char _doprnt ();
4846
 
/* The GNU C library defines this for functions which it implements
4847
 
    to always fail with ENOSYS.  Some functions are actually named
4848
 
    something starting with __ and the normal name is an alias.  */
4849
 
#if defined (__stub__doprnt) || defined (__stub____doprnt)
4850
 
choke me
4851
 
#else
4852
 
char (*f) () = _doprnt;
4853
 
#endif
4854
 
#ifdef __cplusplus
4855
 
}
4856
 
#endif
4857
 
 
4858
 
int
4859
 
main ()
4860
 
{
4861
 
return f != _doprnt;
4862
 
  ;
4863
 
  return 0;
4864
 
}
4865
 
_ACEOF
4866
 
rm -f conftest.$ac_objext conftest$ac_exeext
4867
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4868
 
  (eval $ac_link) 2>conftest.er1
4869
 
  ac_status=$?
4870
 
  grep -v '^ *+' conftest.er1 >conftest.err
4871
 
  rm -f conftest.er1
4872
 
  cat conftest.err >&5
4873
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874
 
  (exit $ac_status); } &&
4875
 
         { ac_try='test -z "$ac_c_werror_flag"
4876
 
                         || test ! -s conftest.err'
4877
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878
 
  (eval $ac_try) 2>&5
4879
 
  ac_status=$?
4880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881
 
  (exit $ac_status); }; } &&
4882
 
         { ac_try='test -s conftest$ac_exeext'
4883
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884
 
  (eval $ac_try) 2>&5
4885
 
  ac_status=$?
4886
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887
 
  (exit $ac_status); }; }; then
4888
 
  ac_cv_func__doprnt=yes
4889
 
else
4890
 
  echo "$as_me: failed program was:" >&5
4891
 
sed 's/^/| /' conftest.$ac_ext >&5
4892
 
 
4893
 
ac_cv_func__doprnt=no
4894
 
fi
4895
 
rm -f conftest.err conftest.$ac_objext \
4896
 
      conftest$ac_exeext conftest.$ac_ext
4897
 
fi
4898
 
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4899
 
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4900
 
if test $ac_cv_func__doprnt = yes; then
4901
 
 
4902
 
cat >>confdefs.h <<\_ACEOF
4903
 
#define HAVE_DOPRNT 1
4904
 
_ACEOF
4905
 
 
4906
 
fi
4907
 
 
4908
 
fi
4909
 
done
4910
 
 
4911
 
 
4912
 
 
4913
 
 
4914
 
 
4915
 
for ac_func in mkdir rmdir uname
4916
 
do
4917
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4918
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
4919
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4920
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
4921
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4922
 
else
4923
 
  cat >conftest.$ac_ext <<_ACEOF
4924
 
/* confdefs.h.  */
4925
 
_ACEOF
4926
 
cat confdefs.h >>conftest.$ac_ext
4927
 
cat >>conftest.$ac_ext <<_ACEOF
4928
 
/* end confdefs.h.  */
4929
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4930
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4931
 
#define $ac_func innocuous_$ac_func
4932
 
 
4933
 
/* System header to define __stub macros and hopefully few prototypes,
4934
 
    which can conflict with char $ac_func (); below.
4935
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936
 
    <limits.h> exists even on freestanding compilers.  */
4937
 
 
4938
 
#ifdef __STDC__
4939
 
# include <limits.h>
4940
 
#else
4941
 
# include <assert.h>
4942
 
#endif
4943
 
 
4944
 
#undef $ac_func
4945
 
 
4946
 
/* Override any gcc2 internal prototype to avoid an error.  */
4947
 
#ifdef __cplusplus
4948
 
extern "C"
4949
 
{
4950
 
#endif
4951
 
/* We use char because int might match the return type of a gcc2
4952
 
   builtin and then its argument prototype would still apply.  */
4953
 
char $ac_func ();
4954
 
/* The GNU C library defines this for functions which it implements
4955
 
    to always fail with ENOSYS.  Some functions are actually named
4956
 
    something starting with __ and the normal name is an alias.  */
4957
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4958
 
choke me
4959
 
#else
4960
 
char (*f) () = $ac_func;
4961
 
#endif
4962
 
#ifdef __cplusplus
4963
 
}
4964
 
#endif
4965
 
 
4966
 
int
4967
 
main ()
4968
 
{
4969
 
return f != $ac_func;
4970
 
  ;
4971
 
  return 0;
4972
 
}
4973
 
_ACEOF
4974
 
rm -f conftest.$ac_objext conftest$ac_exeext
4975
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976
 
  (eval $ac_link) 2>conftest.er1
4977
 
  ac_status=$?
4978
 
  grep -v '^ *+' conftest.er1 >conftest.err
4979
 
  rm -f conftest.er1
4980
 
  cat conftest.err >&5
4981
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982
 
  (exit $ac_status); } &&
4983
 
         { ac_try='test -z "$ac_c_werror_flag"
4984
 
                         || test ! -s conftest.err'
4985
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986
 
  (eval $ac_try) 2>&5
4987
 
  ac_status=$?
4988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989
 
  (exit $ac_status); }; } &&
4990
 
         { ac_try='test -s conftest$ac_exeext'
4991
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992
 
  (eval $ac_try) 2>&5
4993
 
  ac_status=$?
4994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995
 
  (exit $ac_status); }; }; then
4996
 
  eval "$as_ac_var=yes"
4997
 
else
4998
 
  echo "$as_me: failed program was:" >&5
4999
 
sed 's/^/| /' conftest.$ac_ext >&5
5000
 
 
5001
 
eval "$as_ac_var=no"
5002
 
fi
5003
 
rm -f conftest.err conftest.$ac_objext \
5004
 
      conftest$ac_exeext conftest.$ac_ext
5005
 
fi
5006
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5007
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5008
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
5009
 
  cat >>confdefs.h <<_ACEOF
5010
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5011
 
_ACEOF
5012
 
 
5013
 
fi
5014
 
done
5015
 
 
5016
 
 
5017
 
if test x$READLINE = xyes; then
5018
 
        echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5019
 
echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5020
 
if test "${ac_cv_search_tgetent+set}" = set; then
5021
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5022
 
else
5023
 
  ac_func_search_save_LIBS=$LIBS
5024
 
ac_cv_search_tgetent=no
5025
 
cat >conftest.$ac_ext <<_ACEOF
5026
 
/* confdefs.h.  */
5027
 
_ACEOF
5028
 
cat confdefs.h >>conftest.$ac_ext
5029
 
cat >>conftest.$ac_ext <<_ACEOF
5030
 
/* end confdefs.h.  */
5031
 
 
5032
 
/* Override any gcc2 internal prototype to avoid an error.  */
5033
 
#ifdef __cplusplus
5034
 
extern "C"
5035
 
#endif
5036
 
/* We use char because int might match the return type of a gcc2
5037
 
   builtin and then its argument prototype would still apply.  */
5038
 
char tgetent ();
5039
 
int
5040
 
main ()
5041
 
{
5042
 
tgetent ();
5043
 
  ;
5044
 
  return 0;
5045
 
}
5046
 
_ACEOF
5047
 
rm -f conftest.$ac_objext conftest$ac_exeext
5048
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049
 
  (eval $ac_link) 2>conftest.er1
5050
 
  ac_status=$?
5051
 
  grep -v '^ *+' conftest.er1 >conftest.err
5052
 
  rm -f conftest.er1
5053
 
  cat conftest.err >&5
5054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055
 
  (exit $ac_status); } &&
5056
 
         { ac_try='test -z "$ac_c_werror_flag"
5057
 
                         || test ! -s conftest.err'
5058
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059
 
  (eval $ac_try) 2>&5
5060
 
  ac_status=$?
5061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062
 
  (exit $ac_status); }; } &&
5063
 
         { ac_try='test -s conftest$ac_exeext'
5064
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065
 
  (eval $ac_try) 2>&5
5066
 
  ac_status=$?
5067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068
 
  (exit $ac_status); }; }; then
5069
 
  ac_cv_search_tgetent="none required"
5070
 
else
5071
 
  echo "$as_me: failed program was:" >&5
5072
 
sed 's/^/| /' conftest.$ac_ext >&5
5073
 
 
5074
 
fi
5075
 
rm -f conftest.err conftest.$ac_objext \
5076
 
      conftest$ac_exeext conftest.$ac_ext
5077
 
if test "$ac_cv_search_tgetent" = no; then
5078
 
  for ac_lib in ncurses curses termcap termlib; do
5079
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5080
 
    cat >conftest.$ac_ext <<_ACEOF
5081
 
/* confdefs.h.  */
5082
 
_ACEOF
5083
 
cat confdefs.h >>conftest.$ac_ext
5084
 
cat >>conftest.$ac_ext <<_ACEOF
5085
 
/* end confdefs.h.  */
5086
 
 
5087
 
/* Override any gcc2 internal prototype to avoid an error.  */
5088
 
#ifdef __cplusplus
5089
 
extern "C"
5090
 
#endif
5091
 
/* We use char because int might match the return type of a gcc2
5092
 
   builtin and then its argument prototype would still apply.  */
5093
 
char tgetent ();
5094
 
int
5095
 
main ()
5096
 
{
5097
 
tgetent ();
5098
 
  ;
5099
 
  return 0;
5100
 
}
5101
 
_ACEOF
5102
 
rm -f conftest.$ac_objext conftest$ac_exeext
5103
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104
 
  (eval $ac_link) 2>conftest.er1
5105
 
  ac_status=$?
5106
 
  grep -v '^ *+' conftest.er1 >conftest.err
5107
 
  rm -f conftest.er1
5108
 
  cat conftest.err >&5
5109
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110
 
  (exit $ac_status); } &&
5111
 
         { ac_try='test -z "$ac_c_werror_flag"
5112
 
                         || test ! -s conftest.err'
5113
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114
 
  (eval $ac_try) 2>&5
5115
 
  ac_status=$?
5116
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117
 
  (exit $ac_status); }; } &&
5118
 
         { ac_try='test -s conftest$ac_exeext'
5119
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120
 
  (eval $ac_try) 2>&5
5121
 
  ac_status=$?
5122
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123
 
  (exit $ac_status); }; }; then
5124
 
  ac_cv_search_tgetent="-l$ac_lib"
5125
 
break
5126
 
else
5127
 
  echo "$as_me: failed program was:" >&5
5128
 
sed 's/^/| /' conftest.$ac_ext >&5
5129
 
 
5130
 
fi
5131
 
rm -f conftest.err conftest.$ac_objext \
5132
 
      conftest$ac_exeext conftest.$ac_ext
5133
 
  done
5134
 
fi
5135
 
LIBS=$ac_func_search_save_LIBS
5136
 
fi
5137
 
echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5138
 
echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5139
 
if test "$ac_cv_search_tgetent" != no; then
5140
 
  test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5141
 
 
5142
 
else
5143
 
  { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
5144
 
--enable-readline option (which is enabled by default).  Either disable readline
5145
 
support with --disable-readline or download and install termcap from:
5146
 
        ftp.gnu.org/gnu/termcap
5147
 
Note: if you are using precompiled packages you will also need the development
5148
 
  package as well (which may be called termcap-devel or something similar).
5149
 
Note: (n)curses also seems to work as a substitute for termcap.  This was
5150
 
  not found either - but you could try installing that as well.
5151
 
" >&5
5152
 
echo "$as_me: error: termcap could not be found which is required for the
5153
 
--enable-readline option (which is enabled by default).  Either disable readline
5154
 
support with --disable-readline or download and install termcap from:
5155
 
        ftp.gnu.org/gnu/termcap
5156
 
Note: if you are using precompiled packages you will also need the development
5157
 
  package as well (which may be called termcap-devel or something similar).
5158
 
Note: (n)curses also seems to work as a substitute for termcap.  This was
5159
 
  not found either - but you could try installing that as well.
5160
 
" >&2;}
5161
 
   { (exit 1); exit 1; }; }
5162
 
        exit
5163
 
 
5164
 
fi
5165
 
 
5166
 
fi
5167
 
 
5168
 
if test x$KLIBC != xyes; then
5169
 
 
5170
 
for ac_header in getopt.h
5171
 
do
5172
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5173
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5174
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5175
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5176
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5177
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5178
 
fi
5179
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5180
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5181
 
else
5182
 
  # Is the header compilable?
5183
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5184
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5185
 
cat >conftest.$ac_ext <<_ACEOF
5186
 
/* confdefs.h.  */
5187
 
_ACEOF
5188
 
cat confdefs.h >>conftest.$ac_ext
5189
 
cat >>conftest.$ac_ext <<_ACEOF
5190
 
/* end confdefs.h.  */
5191
 
$ac_includes_default
5192
 
#include <$ac_header>
5193
 
_ACEOF
5194
 
rm -f conftest.$ac_objext
5195
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196
 
  (eval $ac_compile) 2>conftest.er1
5197
 
  ac_status=$?
5198
 
  grep -v '^ *+' conftest.er1 >conftest.err
5199
 
  rm -f conftest.er1
5200
 
  cat conftest.err >&5
5201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202
 
  (exit $ac_status); } &&
5203
 
         { ac_try='test -z "$ac_c_werror_flag"
5204
 
                         || test ! -s conftest.err'
5205
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206
 
  (eval $ac_try) 2>&5
5207
 
  ac_status=$?
5208
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209
 
  (exit $ac_status); }; } &&
5210
 
         { ac_try='test -s conftest.$ac_objext'
5211
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212
 
  (eval $ac_try) 2>&5
5213
 
  ac_status=$?
5214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215
 
  (exit $ac_status); }; }; then
5216
 
  ac_header_compiler=yes
5217
 
else
5218
 
  echo "$as_me: failed program was:" >&5
5219
 
sed 's/^/| /' conftest.$ac_ext >&5
5220
 
 
5221
 
ac_header_compiler=no
5222
 
fi
5223
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5224
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5225
 
echo "${ECHO_T}$ac_header_compiler" >&6
5226
 
 
5227
 
# Is the header present?
5228
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5229
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5230
 
cat >conftest.$ac_ext <<_ACEOF
5231
 
/* confdefs.h.  */
5232
 
_ACEOF
5233
 
cat confdefs.h >>conftest.$ac_ext
5234
 
cat >>conftest.$ac_ext <<_ACEOF
5235
 
/* end confdefs.h.  */
5236
 
#include <$ac_header>
5237
 
_ACEOF
5238
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5239
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5240
 
  ac_status=$?
5241
 
  grep -v '^ *+' conftest.er1 >conftest.err
5242
 
  rm -f conftest.er1
5243
 
  cat conftest.err >&5
5244
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245
 
  (exit $ac_status); } >/dev/null; then
5246
 
  if test -s conftest.err; then
5247
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5248
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5249
 
  else
5250
 
    ac_cpp_err=
5251
 
  fi
5252
 
else
5253
 
  ac_cpp_err=yes
5254
 
fi
5255
 
if test -z "$ac_cpp_err"; then
5256
 
  ac_header_preproc=yes
5257
 
else
5258
 
  echo "$as_me: failed program was:" >&5
5259
 
sed 's/^/| /' conftest.$ac_ext >&5
5260
 
 
5261
 
  ac_header_preproc=no
5262
 
fi
5263
 
rm -f conftest.err conftest.$ac_ext
5264
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5265
 
echo "${ECHO_T}$ac_header_preproc" >&6
5266
 
 
5267
 
# So?  What about this header?
5268
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5269
 
  yes:no: )
5270
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5271
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5272
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5273
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5274
 
    ac_header_preproc=yes
5275
 
    ;;
5276
 
  no:yes:* )
5277
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5278
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5279
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5280
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5281
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5282
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5283
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5284
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5285
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5286
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5287
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5288
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5289
 
    (
5290
 
      cat <<\_ASBOX
5291
 
## ------------------------------------------ ##
5292
 
## Report this to the AC_PACKAGE_NAME lists.  ##
5293
 
## ------------------------------------------ ##
5294
 
_ASBOX
5295
 
    ) |
5296
 
      sed "s/^/$as_me: WARNING:     /" >&2
5297
 
    ;;
5298
 
esac
5299
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5300
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5301
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5302
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5303
 
else
5304
 
  eval "$as_ac_Header=\$ac_header_preproc"
5305
 
fi
5306
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5307
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5308
 
 
5309
 
fi
5310
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5311
 
  cat >>confdefs.h <<_ACEOF
5312
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5313
 
_ACEOF
5314
 
 CFLAGS="$CFLAGS -DHAVE_GETOPTLONG"
5315
 
fi
5316
 
 
5317
 
done
5318
 
 
5319
 
fi
5320
 
 
5321
 
if test "-f tools/VERSION"; then
5322
 
  DMRAID_VERSION="`cat tools/VERSION`"
5323
 
else
5324
 
  DMRAID_VERSION="Unknown"
5325
 
fi
5326
 
 
5327
 
if test "-f lib/version.h"; then
5328
 
  DMRAID_LIB_VERSION="`sed --quiet 's/^.*\(DMRAID_LIB_VERSION\)[^_].*"\(.*\)"/\2/p' lib/version.h`"
5329
 
else
5330
 
  DMRAID_LIB_VERSION="Unknown"
5331
 
fi
5332
 
 
5333
 
 
5334
 
 
5335
 
 
5336
 
 
5337
 
 
5338
 
 
5339
 
 
5340
 
 
5341
 
 
5342
 
 
5343
 
 
5344
 
 
5345
 
 
5346
 
 
5347
 
 
5348
 
 
5349
 
 
5350
 
 
5351
 
 
5352
 
 
5353
 
 
5354
 
                                                                      ac_config_files="$ac_config_files include/Makefile lib/Makefile man/Makefile tools/Makefile tools/version.h Makefile make.tmpl"
5355
 
cat >confcache <<\_ACEOF
5356
 
# This file is a shell script that caches the results of configure
5357
 
# tests run on this system so they can be shared between configure
5358
 
# scripts and configure runs, see configure's option --config-cache.
5359
 
# It is not useful on other systems.  If it contains results you don't
5360
 
# want to keep, you may remove or edit it.
5361
 
#
5362
 
# config.status only pays attention to the cache file if you give it
5363
 
# the --recheck option to rerun configure.
5364
 
#
5365
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5366
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5367
 
# following values.
5368
 
 
5369
 
_ACEOF
5370
 
 
5371
 
# The following way of writing the cache mishandles newlines in values,
5372
 
# but we know of no workaround that is simple, portable, and efficient.
5373
 
# So, don't put newlines in cache variables' values.
5374
 
# Ultrix sh set writes to stderr and can't be redirected directly,
5375
 
# and sets the high bit in the cache file unless we assign to the vars.
5376
 
{
5377
 
  (set) 2>&1 |
5378
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5379
 
    *ac_space=\ *)
5380
 
      # `set' does not quote correctly, so add quotes (double-quote
5381
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
5382
 
      sed -n \
5383
 
        "s/'/'\\\\''/g;
5384
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5385
 
      ;;
5386
 
    *)
5387
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
5388
 
      sed -n \
5389
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5390
 
      ;;
5391
 
    esac;
5392
 
} |
5393
 
  sed '
5394
 
     t clear
5395
 
     : clear
5396
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5397
 
     t end
5398
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5399
 
     : end' >>confcache
5400
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
5401
 
  if test -w $cache_file; then
5402
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5403
 
    cat confcache >$cache_file
5404
 
  else
5405
 
    echo "not updating unwritable cache $cache_file"
5406
 
  fi
5407
 
fi
5408
 
rm -f confcache
5409
 
 
5410
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5411
 
# Let make expand exec_prefix.
5412
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5413
 
 
5414
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5415
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5416
 
# trailing colons and then remove the whole line if VPATH becomes empty
5417
 
# (actually we leave an empty line to preserve line numbers).
5418
 
if test "x$srcdir" = x.; then
5419
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
5420
 
s/:*\$(srcdir):*/:/;
5421
 
s/:*\${srcdir}:*/:/;
5422
 
s/:*@srcdir@:*/:/;
5423
 
s/^\([^=]*=[     ]*\):*/\1/;
5424
 
s/:*$//;
5425
 
s/^[^=]*=[       ]*$//;
5426
 
}'
5427
 
fi
5428
 
 
5429
 
# Transform confdefs.h into DEFS.
5430
 
# Protect against shell expansion while executing Makefile rules.
5431
 
# Protect against Makefile macro expansion.
5432
 
#
5433
 
# If the first sed substitution is executed (which looks for macros that
5434
 
# take arguments), then we branch to the quote section.  Otherwise,
5435
 
# look for a macro that doesn't take arguments.
5436
 
cat >confdef2opt.sed <<\_ACEOF
5437
 
t clear
5438
 
: clear
5439
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
5440
 
t quote
5441
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
5442
 
t quote
5443
 
d
5444
 
: quote
5445
 
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
5446
 
s,\[,\\&,g
5447
 
s,\],\\&,g
5448
 
s,\$,$$,g
5449
 
p
5450
 
_ACEOF
5451
 
# We use echo to avoid assuming a particular line-breaking character.
5452
 
# The extra dot is to prevent the shell from consuming trailing
5453
 
# line-breaks from the sub-command output.  A line-break within
5454
 
# single-quotes doesn't work because, if this script is created in a
5455
 
# platform that uses two characters for line-breaks (e.g., DOS), tr
5456
 
# would break.
5457
 
ac_LF_and_DOT=`echo; echo .`
5458
 
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5459
 
rm -f confdef2opt.sed
5460
 
 
5461
 
 
5462
 
ac_libobjs=
5463
 
ac_ltlibobjs=
5464
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5465
 
  # 1. Remove the extension, and $U if already installed.
5466
 
  ac_i=`echo "$ac_i" |
5467
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5468
 
  # 2. Add them.
5469
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5470
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5471
 
done
5472
 
LIBOBJS=$ac_libobjs
5473
 
 
5474
 
LTLIBOBJS=$ac_ltlibobjs
5475
 
 
5476
 
 
5477
 
 
5478
 
: ${CONFIG_STATUS=./config.status}
5479
 
ac_clean_files_save=$ac_clean_files
5480
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5481
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5482
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
5483
 
cat >$CONFIG_STATUS <<_ACEOF
5484
 
#! $SHELL
5485
 
# Generated by $as_me.
5486
 
# Run this file to recreate the current configuration.
5487
 
# Compiler output produced by configure, useful for debugging
5488
 
# configure, is in config.log if it exists.
5489
 
 
5490
 
debug=false
5491
 
ac_cs_recheck=false
5492
 
ac_cs_silent=false
5493
 
SHELL=\${CONFIG_SHELL-$SHELL}
5494
 
_ACEOF
5495
 
 
5496
 
cat >>$CONFIG_STATUS <<\_ACEOF
5497
 
## --------------------- ##
5498
 
## M4sh Initialization.  ##
5499
 
## --------------------- ##
5500
 
 
5501
 
# Be Bourne compatible
5502
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5503
 
  emulate sh
5504
 
  NULLCMD=:
5505
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5506
 
  # is contrary to our usage.  Disable this feature.
5507
 
  alias -g '${1+"$@"}'='"$@"'
5508
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5509
 
  set -o posix
5510
 
fi
5511
 
DUALCASE=1; export DUALCASE # for MKS sh
5512
 
 
5513
 
# Support unset when possible.
5514
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5515
 
  as_unset=unset
5516
 
else
5517
 
  as_unset=false
5518
 
fi
5519
 
 
5520
 
 
5521
 
# Work around bugs in pre-3.0 UWIN ksh.
5522
 
$as_unset ENV MAIL MAILPATH
5523
 
PS1='$ '
5524
 
PS2='> '
5525
 
PS4='+ '
5526
 
 
5527
 
# NLS nuisances.
5528
 
for as_var in \
5529
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5530
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5531
 
  LC_TELEPHONE LC_TIME
5532
 
do
5533
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5534
 
    eval $as_var=C; export $as_var
5535
 
  else
5536
 
    $as_unset $as_var
5537
 
  fi
5538
 
done
5539
 
 
5540
 
# Required to use basename.
5541
 
if expr a : '\(a\)' >/dev/null 2>&1; then
5542
 
  as_expr=expr
5543
 
else
5544
 
  as_expr=false
5545
 
fi
5546
 
 
5547
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5548
 
  as_basename=basename
5549
 
else
5550
 
  as_basename=false
5551
 
fi
5552
 
 
5553
 
 
5554
 
# Name of the executable.
5555
 
as_me=`$as_basename "$0" ||
5556
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5557
 
         X"$0" : 'X\(//\)$' \| \
5558
 
         X"$0" : 'X\(/\)$' \| \
5559
 
         .     : '\(.\)' 2>/dev/null ||
5560
 
echo X/"$0" |
5561
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5562
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
5563
 
          /^X\/\(\/\).*/{ s//\1/; q; }
5564
 
          s/.*/./; q'`
5565
 
 
5566
 
 
5567
 
# PATH needs CR, and LINENO needs CR and PATH.
5568
 
# Avoid depending upon Character Ranges.
5569
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5570
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5571
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5572
 
as_cr_digits='0123456789'
5573
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
5574
 
 
5575
 
# The user is always right.
5576
 
if test "${PATH_SEPARATOR+set}" != set; then
5577
 
  echo "#! /bin/sh" >conf$$.sh
5578
 
  echo  "exit 0"   >>conf$$.sh
5579
 
  chmod +x conf$$.sh
5580
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5581
 
    PATH_SEPARATOR=';'
5582
 
  else
5583
 
    PATH_SEPARATOR=:
5584
 
  fi
5585
 
  rm -f conf$$.sh
5586
 
fi
5587
 
 
5588
 
 
5589
 
  as_lineno_1=$LINENO
5590
 
  as_lineno_2=$LINENO
5591
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5592
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
5593
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5594
 
  # Find who we are.  Look in the path if we contain no path at all
5595
 
  # relative or not.
5596
 
  case $0 in
5597
 
    *[\\/]* ) as_myself=$0 ;;
5598
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599
 
for as_dir in $PATH
5600
 
do
5601
 
  IFS=$as_save_IFS
5602
 
  test -z "$as_dir" && as_dir=.
5603
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5604
 
done
5605
 
 
5606
 
       ;;
5607
 
  esac
5608
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
5609
 
  # in which case we are not to be found in the path.
5610
 
  if test "x$as_myself" = x; then
5611
 
    as_myself=$0
5612
 
  fi
5613
 
  if test ! -f "$as_myself"; then
5614
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5615
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5616
 
   { (exit 1); exit 1; }; }
5617
 
  fi
5618
 
  case $CONFIG_SHELL in
5619
 
  '')
5620
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5622
 
do
5623
 
  IFS=$as_save_IFS
5624
 
  test -z "$as_dir" && as_dir=.
5625
 
  for as_base in sh bash ksh sh5; do
5626
 
         case $as_dir in
5627
 
         /*)
5628
 
           if ("$as_dir/$as_base" -c '
5629
 
  as_lineno_1=$LINENO
5630
 
  as_lineno_2=$LINENO
5631
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5632
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
5633
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5634
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5635
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5636
 
             CONFIG_SHELL=$as_dir/$as_base
5637
 
             export CONFIG_SHELL
5638
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5639
 
           fi;;
5640
 
         esac
5641
 
       done
5642
 
done
5643
 
;;
5644
 
  esac
5645
 
 
5646
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5647
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
5648
 
  # line-number line before each line; the second 'sed' does the real
5649
 
  # work.  The second script uses 'N' to pair each line-number line
5650
 
  # with the numbered line, and appends trailing '-' during
5651
 
  # substitution so that $LINENO is not a special case at line end.
5652
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5653
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5654
 
  sed '=' <$as_myself |
5655
 
    sed '
5656
 
      N
5657
 
      s,$,-,
5658
 
      : loop
5659
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5660
 
      t loop
5661
 
      s,-$,,
5662
 
      s,^['$as_cr_digits']*\n,,
5663
 
    ' >$as_me.lineno &&
5664
 
  chmod +x $as_me.lineno ||
5665
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5666
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5667
 
   { (exit 1); exit 1; }; }
5668
 
 
5669
 
  # Don't try to exec as it changes $[0], causing all sort of problems
5670
 
  # (the dirname of $[0] is not the place where we might find the
5671
 
  # original and so on.  Autoconf is especially sensible to this).
5672
 
  . ./$as_me.lineno
5673
 
  # Exit status is that of the last command.
5674
 
  exit
5675
 
}
5676
 
 
5677
 
 
5678
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5679
 
  *c*,-n*) ECHO_N= ECHO_C='
5680
 
' ECHO_T='      ' ;;
5681
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5682
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5683
 
esac
5684
 
 
5685
 
if expr a : '\(a\)' >/dev/null 2>&1; then
5686
 
  as_expr=expr
5687
 
else
5688
 
  as_expr=false
5689
 
fi
5690
 
 
5691
 
rm -f conf$$ conf$$.exe conf$$.file
5692
 
echo >conf$$.file
5693
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
5694
 
  # We could just check for DJGPP; but this test a) works b) is more generic
5695
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5696
 
  if test -f conf$$.exe; then
5697
 
    # Don't use ln at all; we don't have any links
5698
 
    as_ln_s='cp -p'
5699
 
  else
5700
 
    as_ln_s='ln -s'
5701
 
  fi
5702
 
elif ln conf$$.file conf$$ 2>/dev/null; then
5703
 
  as_ln_s=ln
5704
 
else
5705
 
  as_ln_s='cp -p'
5706
 
fi
5707
 
rm -f conf$$ conf$$.exe conf$$.file
5708
 
 
5709
 
if mkdir -p . 2>/dev/null; then
5710
 
  as_mkdir_p=:
5711
 
else
5712
 
  test -d ./-p && rmdir ./-p
5713
 
  as_mkdir_p=false
5714
 
fi
5715
 
 
5716
 
as_executable_p="test -f"
5717
 
 
5718
 
# Sed expression to map a string onto a valid CPP name.
5719
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5720
 
 
5721
 
# Sed expression to map a string onto a valid variable name.
5722
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5723
 
 
5724
 
 
5725
 
# IFS
5726
 
# We need space, tab and new line, in precisely that order.
5727
 
as_nl='
5728
 
'
5729
 
IFS="   $as_nl"
5730
 
 
5731
 
# CDPATH.
5732
 
$as_unset CDPATH
5733
 
 
5734
 
exec 6>&1
5735
 
 
5736
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
5737
 
# report actual input values of CONFIG_FILES etc. instead of their
5738
 
# values after options handling.  Logging --version etc. is OK.
5739
 
exec 5>>config.log
5740
 
{
5741
 
  echo
5742
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5743
 
## Running $as_me. ##
5744
 
_ASBOX
5745
 
} >&5
5746
 
cat >&5 <<_CSEOF
5747
 
 
5748
 
This file was extended by $as_me, which was
5749
 
generated by GNU Autoconf 2.59.  Invocation command line was
5750
 
 
5751
 
  CONFIG_FILES    = $CONFIG_FILES
5752
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
5753
 
  CONFIG_LINKS    = $CONFIG_LINKS
5754
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
5755
 
  $ $0 $@
5756
 
 
5757
 
_CSEOF
5758
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5759
 
echo >&5
5760
 
_ACEOF
5761
 
 
5762
 
# Files that config.status was made for.
5763
 
if test -n "$ac_config_files"; then
5764
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5765
 
fi
5766
 
 
5767
 
if test -n "$ac_config_headers"; then
5768
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5769
 
fi
5770
 
 
5771
 
if test -n "$ac_config_links"; then
5772
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5773
 
fi
5774
 
 
5775
 
if test -n "$ac_config_commands"; then
5776
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5777
 
fi
5778
 
 
5779
 
cat >>$CONFIG_STATUS <<\_ACEOF
5780
 
 
5781
 
ac_cs_usage="\
5782
 
\`$as_me' instantiates files from templates according to the
5783
 
current configuration.
5784
 
 
5785
 
Usage: $0 [OPTIONS] [FILE]...
5786
 
 
5787
 
  -h, --help       print this help, then exit
5788
 
  -V, --version    print version number, then exit
5789
 
  -q, --quiet      do not print progress messages
5790
 
  -d, --debug      don't remove temporary files
5791
 
      --recheck    update $as_me by reconfiguring in the same conditions
5792
 
  --file=FILE[:TEMPLATE]
5793
 
                   instantiate the configuration file FILE
5794
 
 
5795
 
Configuration files:
5796
 
$config_files
5797
 
 
5798
 
Report bugs to <bug-autoconf@gnu.org>."
5799
 
_ACEOF
5800
 
 
5801
 
cat >>$CONFIG_STATUS <<_ACEOF
5802
 
ac_cs_version="\\
5803
 
config.status
5804
 
configured by $0, generated by GNU Autoconf 2.59,
5805
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5806
 
 
5807
 
Copyright (C) 2003 Free Software Foundation, Inc.
5808
 
This config.status script is free software; the Free Software Foundation
5809
 
gives unlimited permission to copy, distribute and modify it."
5810
 
srcdir=$srcdir
5811
 
INSTALL="$INSTALL"
5812
 
_ACEOF
5813
 
 
5814
 
cat >>$CONFIG_STATUS <<\_ACEOF
5815
 
# If no file are specified by the user, then we need to provide default
5816
 
# value.  By we need to know if files were specified by the user.
5817
 
ac_need_defaults=:
5818
 
while test $# != 0
5819
 
do
5820
 
  case $1 in
5821
 
  --*=*)
5822
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5823
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5824
 
    ac_shift=:
5825
 
    ;;
5826
 
  -*)
5827
 
    ac_option=$1
5828
 
    ac_optarg=$2
5829
 
    ac_shift=shift
5830
 
    ;;
5831
 
  *) # This is not an option, so the user has probably given explicit
5832
 
     # arguments.
5833
 
     ac_option=$1
5834
 
     ac_need_defaults=false;;
5835
 
  esac
5836
 
 
5837
 
  case $ac_option in
5838
 
  # Handling of the options.
5839
 
_ACEOF
5840
 
cat >>$CONFIG_STATUS <<\_ACEOF
5841
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5842
 
    ac_cs_recheck=: ;;
5843
 
  --version | --vers* | -V )
5844
 
    echo "$ac_cs_version"; exit 0 ;;
5845
 
  --he | --h)
5846
 
    # Conflict between --help and --header
5847
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5848
 
Try \`$0 --help' for more information." >&5
5849
 
echo "$as_me: error: ambiguous option: $1
5850
 
Try \`$0 --help' for more information." >&2;}
5851
 
   { (exit 1); exit 1; }; };;
5852
 
  --help | --hel | -h )
5853
 
    echo "$ac_cs_usage"; exit 0 ;;
5854
 
  --debug | --d* | -d )
5855
 
    debug=: ;;
5856
 
  --file | --fil | --fi | --f )
5857
 
    $ac_shift
5858
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5859
 
    ac_need_defaults=false;;
5860
 
  --header | --heade | --head | --hea )
5861
 
    $ac_shift
5862
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5863
 
    ac_need_defaults=false;;
5864
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5865
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5866
 
    ac_cs_silent=: ;;
5867
 
 
5868
 
  # This is an error.
5869
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5870
 
Try \`$0 --help' for more information." >&5
5871
 
echo "$as_me: error: unrecognized option: $1
5872
 
Try \`$0 --help' for more information." >&2;}
5873
 
   { (exit 1); exit 1; }; } ;;
5874
 
 
5875
 
  *) ac_config_targets="$ac_config_targets $1" ;;
5876
 
 
5877
 
  esac
5878
 
  shift
5879
 
done
5880
 
 
5881
 
ac_configure_extra_args=
5882
 
 
5883
 
if $ac_cs_silent; then
5884
 
  exec 6>/dev/null
5885
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
5886
 
fi
5887
 
 
5888
 
_ACEOF
5889
 
cat >>$CONFIG_STATUS <<_ACEOF
5890
 
if \$ac_cs_recheck; then
5891
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5892
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5893
 
fi
5894
 
 
5895
 
_ACEOF
5896
 
 
5897
 
 
5898
 
 
5899
 
 
5900
 
 
5901
 
cat >>$CONFIG_STATUS <<\_ACEOF
5902
 
for ac_config_target in $ac_config_targets
5903
 
do
5904
 
  case "$ac_config_target" in
5905
 
  # Handling of arguments.
5906
 
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
5907
 
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5908
 
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5909
 
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
5910
 
  "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
5911
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5912
 
  "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
5913
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5914
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5915
 
   { (exit 1); exit 1; }; };;
5916
 
  esac
5917
 
done
5918
 
 
5919
 
# If the user did not use the arguments to specify the items to instantiate,
5920
 
# then the envvar interface is used.  Set only those that are not.
5921
 
# We use the long form for the default assignment because of an extremely
5922
 
# bizarre bug on SunOS 4.1.3.
5923
 
if $ac_need_defaults; then
5924
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5925
 
fi
5926
 
 
5927
 
# Have a temporary directory for convenience.  Make it in the build tree
5928
 
# simply because there is no reason to put it here, and in addition,
5929
 
# creating and moving files from /tmp can sometimes cause problems.
5930
 
# Create a temporary directory, and hook for its removal unless debugging.
5931
 
$debug ||
5932
 
{
5933
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5934
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
5935
 
}
5936
 
 
5937
 
# Create a (secure) tmp directory for tmp files.
5938
 
 
5939
 
{
5940
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5941
 
  test -n "$tmp" && test -d "$tmp"
5942
 
}  ||
5943
 
{
5944
 
  tmp=./confstat$$-$RANDOM
5945
 
  (umask 077 && mkdir $tmp)
5946
 
} ||
5947
 
{
5948
 
   echo "$me: cannot create a temporary directory in ." >&2
5949
 
   { (exit 1); exit 1; }
5950
 
}
5951
 
 
5952
 
_ACEOF
5953
 
 
5954
 
cat >>$CONFIG_STATUS <<_ACEOF
5955
 
 
5956
 
#
5957
 
# CONFIG_FILES section.
5958
 
#
5959
 
 
5960
 
# No need to generate the scripts if there are no CONFIG_FILES.
5961
 
# This happens for instance when ./config.status config.h
5962
 
if test -n "\$CONFIG_FILES"; then
5963
 
  # Protect against being on the right side of a sed subst in config.status.
5964
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5965
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5966
 
s,@SHELL@,$SHELL,;t t
5967
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5968
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5969
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5970
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5971
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5972
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5973
 
s,@exec_prefix@,$exec_prefix,;t t
5974
 
s,@prefix@,$prefix,;t t
5975
 
s,@program_transform_name@,$program_transform_name,;t t
5976
 
s,@bindir@,$bindir,;t t
5977
 
s,@sbindir@,$sbindir,;t t
5978
 
s,@libexecdir@,$libexecdir,;t t
5979
 
s,@datadir@,$datadir,;t t
5980
 
s,@sysconfdir@,$sysconfdir,;t t
5981
 
s,@sharedstatedir@,$sharedstatedir,;t t
5982
 
s,@localstatedir@,$localstatedir,;t t
5983
 
s,@libdir@,$libdir,;t t
5984
 
s,@includedir@,$includedir,;t t
5985
 
s,@oldincludedir@,$oldincludedir,;t t
5986
 
s,@infodir@,$infodir,;t t
5987
 
s,@mandir@,$mandir,;t t
5988
 
s,@build_alias@,$build_alias,;t t
5989
 
s,@host_alias@,$host_alias,;t t
5990
 
s,@target_alias@,$target_alias,;t t
5991
 
s,@DEFS@,$DEFS,;t t
5992
 
s,@ECHO_C@,$ECHO_C,;t t
5993
 
s,@ECHO_N@,$ECHO_N,;t t
5994
 
s,@ECHO_T@,$ECHO_T,;t t
5995
 
s,@LIBS@,$LIBS,;t t
5996
 
s,@build@,$build,;t t
5997
 
s,@build_cpu@,$build_cpu,;t t
5998
 
s,@build_vendor@,$build_vendor,;t t
5999
 
s,@build_os@,$build_os,;t t
6000
 
s,@host@,$host,;t t
6001
 
s,@host_cpu@,$host_cpu,;t t
6002
 
s,@host_vendor@,$host_vendor,;t t
6003
 
s,@host_os@,$host_os,;t t
6004
 
s,@target@,$target,;t t
6005
 
s,@target_cpu@,$target_cpu,;t t
6006
 
s,@target_vendor@,$target_vendor,;t t
6007
 
s,@target_os@,$target_os,;t t
6008
 
s,@AWK@,$AWK,;t t
6009
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6010
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6011
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6012
 
s,@LN_S@,$LN_S,;t t
6013
 
s,@SET_MAKE@,$SET_MAKE,;t t
6014
 
s,@RANLIB@,$RANLIB,;t t
6015
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6016
 
s,@KLCC@,$KLCC,;t t
6017
 
s,@KLIBC@,$KLIBC,;t t
6018
 
s,@KLIBC_PREFIX@,$KLIBC_PREFIX,;t t
6019
 
s,@KLIBC_BIN_DIR@,$KLIBC_BIN_DIR,;t t
6020
 
s,@KLIBC_SBIN_DIR@,$KLIBC_SBIN_DIR,;t t
6021
 
s,@KLIBC_LIB_DIR@,$KLIBC_LIB_DIR,;t t
6022
 
s,@KLIBC_INCLUDE_DIR@,$KLIBC_INCLUDE_DIR,;t t
6023
 
s,@CC@,$CC,;t t
6024
 
s,@CFLAGS@,$CFLAGS,;t t
6025
 
s,@LDFLAGS@,$LDFLAGS,;t t
6026
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
6027
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
6028
 
s,@EXEEXT@,$EXEEXT,;t t
6029
 
s,@OBJEXT@,$OBJEXT,;t t
6030
 
s,@CPP@,$CPP,;t t
6031
 
s,@EGREP@,$EGREP,;t t
6032
 
s,@CLDFLAGS@,$CLDFLAGS,;t t
6033
 
s,@DEBUG@,$DEBUG,;t t
6034
 
s,@DEBUG_MALLOC@,$DEBUG_MALLOC,;t t
6035
 
s,@DMRAID_TEST@,$DMRAID_TEST,;t t
6036
 
s,@DMRAID_VERSION@,$DMRAID_VERSION,;t t
6037
 
s,@DMRAID_LIB_VERSION@,$DMRAID_LIB_VERSION,;t t
6038
 
s,@DIETLIBC@,$DIETLIBC,;t t
6039
 
s,@GROUP@,$GROUP,;t t
6040
 
s,@JOBS@,$JOBS,;t t
6041
 
s,@LD_DEPS@,$LD_DEPS,;t t
6042
 
s,@FLAVOUR@,$FLAVOUR,;t t
6043
 
s,@LIBSELINUX@,$LIBSELINUX,;t t
6044
 
s,@LIBSEPOL@,$LIBSEPOL,;t t
6045
 
s,@LIB_SO@,$LIB_SO,;t t
6046
 
s,@OWNER@,$OWNER,;t t
6047
 
s,@SOFLAG@,$SOFLAG,;t t
6048
 
s,@STATIC_LINK@,$STATIC_LINK,;t t
6049
 
s,@LIBOBJS@,$LIBOBJS,;t t
6050
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6051
 
CEOF
6052
 
 
6053
 
_ACEOF
6054
 
 
6055
 
  cat >>$CONFIG_STATUS <<\_ACEOF
6056
 
  # Split the substitutions into bite-sized pieces for seds with
6057
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
6058
 
  ac_max_sed_lines=48
6059
 
  ac_sed_frag=1 # Number of current file.
6060
 
  ac_beg=1 # First line for current file.
6061
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
6062
 
  ac_more_lines=:
6063
 
  ac_sed_cmds=
6064
 
  while $ac_more_lines; do
6065
 
    if test $ac_beg -gt 1; then
6066
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6067
 
    else
6068
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6069
 
    fi
6070
 
    if test ! -s $tmp/subs.frag; then
6071
 
      ac_more_lines=false
6072
 
    else
6073
 
      # The purpose of the label and of the branching condition is to
6074
 
      # speed up the sed processing (if there are no `@' at all, there
6075
 
      # is no need to browse any of the substitutions).
6076
 
      # These are the two extra sed commands mentioned above.
6077
 
      (echo ':t
6078
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6079
 
      if test -z "$ac_sed_cmds"; then
6080
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6081
 
      else
6082
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6083
 
      fi
6084
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
6085
 
      ac_beg=$ac_end
6086
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
6087
 
    fi
6088
 
  done
6089
 
  if test -z "$ac_sed_cmds"; then
6090
 
    ac_sed_cmds=cat
6091
 
  fi
6092
 
fi # test -n "$CONFIG_FILES"
6093
 
 
6094
 
_ACEOF
6095
 
cat >>$CONFIG_STATUS <<\_ACEOF
6096
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6097
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6098
 
  case $ac_file in
6099
 
  - | *:- | *:-:* ) # input from stdin
6100
 
        cat >$tmp/stdin
6101
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6102
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6103
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6104
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6105
 
  * )   ac_file_in=$ac_file.in ;;
6106
 
  esac
6107
 
 
6108
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6109
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6110
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6111
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
6112
 
         X"$ac_file" : 'X\(//\)$' \| \
6113
 
         X"$ac_file" : 'X\(/\)' \| \
6114
 
         .     : '\(.\)' 2>/dev/null ||
6115
 
echo X"$ac_file" |
6116
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6117
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6118
 
          /^X\(\/\/\)$/{ s//\1/; q; }
6119
 
          /^X\(\/\).*/{ s//\1/; q; }
6120
 
          s/.*/./; q'`
6121
 
  { if $as_mkdir_p; then
6122
 
    mkdir -p "$ac_dir"
6123
 
  else
6124
 
    as_dir="$ac_dir"
6125
 
    as_dirs=
6126
 
    while test ! -d "$as_dir"; do
6127
 
      as_dirs="$as_dir $as_dirs"
6128
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6129
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6130
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
6131
 
         X"$as_dir" : 'X\(//\)$' \| \
6132
 
         X"$as_dir" : 'X\(/\)' \| \
6133
 
         .     : '\(.\)' 2>/dev/null ||
6134
 
echo X"$as_dir" |
6135
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6136
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6137
 
          /^X\(\/\/\)$/{ s//\1/; q; }
6138
 
          /^X\(\/\).*/{ s//\1/; q; }
6139
 
          s/.*/./; q'`
6140
 
    done
6141
 
    test ! -n "$as_dirs" || mkdir $as_dirs
6142
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6143
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6144
 
   { (exit 1); exit 1; }; }; }
6145
 
 
6146
 
  ac_builddir=.
6147
 
 
6148
 
if test "$ac_dir" != .; then
6149
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6150
 
  # A "../" for each directory in $ac_dir_suffix.
6151
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6152
 
else
6153
 
  ac_dir_suffix= ac_top_builddir=
6154
 
fi
6155
 
 
6156
 
case $srcdir in
6157
 
  .)  # No --srcdir option.  We are building in place.
6158
 
    ac_srcdir=.
6159
 
    if test -z "$ac_top_builddir"; then
6160
 
       ac_top_srcdir=.
6161
 
    else
6162
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6163
 
    fi ;;
6164
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
6165
 
    ac_srcdir=$srcdir$ac_dir_suffix;
6166
 
    ac_top_srcdir=$srcdir ;;
6167
 
  *) # Relative path.
6168
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6169
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6170
 
esac
6171
 
 
6172
 
# Do not use `cd foo && pwd` to compute absolute paths, because
6173
 
# the directories may not exist.
6174
 
case `pwd` in
6175
 
.) ac_abs_builddir="$ac_dir";;
6176
 
*)
6177
 
  case "$ac_dir" in
6178
 
  .) ac_abs_builddir=`pwd`;;
6179
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6180
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6181
 
  esac;;
6182
 
esac
6183
 
case $ac_abs_builddir in
6184
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
6185
 
*)
6186
 
  case ${ac_top_builddir}. in
6187
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
6188
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6189
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6190
 
  esac;;
6191
 
esac
6192
 
case $ac_abs_builddir in
6193
 
.) ac_abs_srcdir=$ac_srcdir;;
6194
 
*)
6195
 
  case $ac_srcdir in
6196
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
6197
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6198
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6199
 
  esac;;
6200
 
esac
6201
 
case $ac_abs_builddir in
6202
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
6203
 
*)
6204
 
  case $ac_top_srcdir in
6205
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6206
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6207
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6208
 
  esac;;
6209
 
esac
6210
 
 
6211
 
 
6212
 
  case $INSTALL in
6213
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6214
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6215
 
  esac
6216
 
 
6217
 
  if test x"$ac_file" != x-; then
6218
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
6219
 
echo "$as_me: creating $ac_file" >&6;}
6220
 
    rm -f "$ac_file"
6221
 
  fi
6222
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
6223
 
  # use $as_me), people would be surprised to read:
6224
 
  #    /* config.h.  Generated by config.status.  */
6225
 
  if test x"$ac_file" = x-; then
6226
 
    configure_input=
6227
 
  else
6228
 
    configure_input="$ac_file.  "
6229
 
  fi
6230
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
6231
 
                                     sed 's,.*/,,'` by configure."
6232
 
 
6233
 
  # First look for the input files in the build tree, otherwise in the
6234
 
  # src tree.
6235
 
  ac_file_inputs=`IFS=:
6236
 
    for f in $ac_file_in; do
6237
 
      case $f in
6238
 
      -) echo $tmp/stdin ;;
6239
 
      [\\/$]*)
6240
 
         # Absolute (can't be DOS-style, as IFS=:)
6241
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6242
 
echo "$as_me: error: cannot find input file: $f" >&2;}
6243
 
   { (exit 1); exit 1; }; }
6244
 
         echo "$f";;
6245
 
      *) # Relative
6246
 
         if test -f "$f"; then
6247
 
           # Build tree
6248
 
           echo "$f"
6249
 
         elif test -f "$srcdir/$f"; then
6250
 
           # Source tree
6251
 
           echo "$srcdir/$f"
6252
 
         else
6253
 
           # /dev/null tree
6254
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6255
 
echo "$as_me: error: cannot find input file: $f" >&2;}
6256
 
   { (exit 1); exit 1; }; }
6257
 
         fi;;
6258
 
      esac
6259
 
    done` || { (exit 1); exit 1; }
6260
 
_ACEOF
6261
 
cat >>$CONFIG_STATUS <<_ACEOF
6262
 
  sed "$ac_vpsub
6263
 
$extrasub
6264
 
_ACEOF
6265
 
cat >>$CONFIG_STATUS <<\_ACEOF
6266
 
:t
6267
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6268
 
s,@configure_input@,$configure_input,;t t
6269
 
s,@srcdir@,$ac_srcdir,;t t
6270
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
6271
 
s,@top_srcdir@,$ac_top_srcdir,;t t
6272
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6273
 
s,@builddir@,$ac_builddir,;t t
6274
 
s,@abs_builddir@,$ac_abs_builddir,;t t
6275
 
s,@top_builddir@,$ac_top_builddir,;t t
6276
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6277
 
s,@INSTALL@,$ac_INSTALL,;t t
6278
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6279
 
  rm -f $tmp/stdin
6280
 
  if test x"$ac_file" != x-; then
6281
 
    mv $tmp/out $ac_file
6282
 
  else
6283
 
    cat $tmp/out
6284
 
    rm -f $tmp/out
6285
 
  fi
6286
 
 
6287
 
done
6288
 
_ACEOF
6289
 
 
6290
 
cat >>$CONFIG_STATUS <<\_ACEOF
6291
 
 
6292
 
{ (exit 0); exit 0; }
6293
 
_ACEOF
6294
 
chmod +x $CONFIG_STATUS
6295
 
ac_clean_files=$ac_clean_files_save
6296
 
 
6297
 
 
6298
 
# configure is writing to config.log, and then calls config.status.
6299
 
# config.status does its own redirection, appending to config.log.
6300
 
# Unfortunately, on DOS this fails, as config.log is still kept open
6301
 
# by configure, so config.status won't be able to write to it; its
6302
 
# output is simply discarded.  So we exec the FD to /dev/null,
6303
 
# effectively closing config.log, so it can be properly (re)opened and
6304
 
# appended to by config.status.  When coming back to configure, we
6305
 
# need to make the FD available again.
6306
 
if test "$no_create" != yes; then
6307
 
  ac_cs_success=:
6308
 
  ac_config_status_args=
6309
 
  test "$silent" = yes &&
6310
 
    ac_config_status_args="$ac_config_status_args --quiet"
6311
 
  exec 5>/dev/null
6312
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6313
 
  exec 5>>config.log
6314
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6315
 
  # would make configure fail if this is the last instruction.
6316
 
  $ac_cs_success || { (exit 1); exit 1; }
6317
 
fi
6318