~ubuntu-branches/ubuntu/hardy/kalign/hardy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2007-02-21 09:07:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070221090733-ttdj0bl7yes4to8f
Tags: 2.03-1
* New upstream release.
* Mended the watch file.
* Updated the manpage.

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 for FULL-PACKAGE-NAME VERSION.
 
4
#
 
5
# Report bugs to <BUG-REPORT-ADDRESS>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
# Name of the host.
 
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
248
# so uname gets run too.
 
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
250
 
 
251
exec 6>&1
 
252
 
 
253
#
 
254
# Initializations.
 
255
#
 
256
ac_default_prefix=/usr/local
 
257
ac_config_libobj_dir=.
 
258
cross_compiling=no
 
259
subdirs=
 
260
MFLAGS=
 
261
MAKEFLAGS=
 
262
SHELL=${CONFIG_SHELL-/bin/sh}
 
263
 
 
264
# Maximum number of lines to put in a shell here document.
 
265
# This variable seems obsolete.  It should probably be removed, and
 
266
# only ac_max_sed_lines should be used.
 
267
: ${ac_max_here_lines=38}
 
268
 
 
269
# Identity of this package.
 
270
PACKAGE_NAME='FULL-PACKAGE-NAME'
 
271
PACKAGE_TARNAME='full-package-name'
 
272
PACKAGE_VERSION='VERSION'
 
273
PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
 
274
PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
 
275
 
 
276
ac_unique_file="kalign2_hirschberg.h"
 
277
# Factoring default headers for most tests.
 
278
ac_includes_default="\
 
279
#include <stdio.h>
 
280
#if HAVE_SYS_TYPES_H
 
281
# include <sys/types.h>
 
282
#endif
 
283
#if HAVE_SYS_STAT_H
 
284
# include <sys/stat.h>
 
285
#endif
 
286
#if STDC_HEADERS
 
287
# include <stdlib.h>
 
288
# include <stddef.h>
 
289
#else
 
290
# if HAVE_STDLIB_H
 
291
#  include <stdlib.h>
 
292
# endif
 
293
#endif
 
294
#if HAVE_STRING_H
 
295
# if !STDC_HEADERS && HAVE_MEMORY_H
 
296
#  include <memory.h>
 
297
# endif
 
298
# include <string.h>
 
299
#endif
 
300
#if HAVE_STRINGS_H
 
301
# include <strings.h>
 
302
#endif
 
303
#if HAVE_INTTYPES_H
 
304
# include <inttypes.h>
 
305
#else
 
306
# if HAVE_STDINT_H
 
307
#  include <stdint.h>
 
308
# endif
 
309
#endif
 
310
#if HAVE_UNISTD_H
 
311
# include <unistd.h>
 
312
#endif"
 
313
 
 
314
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
 
315
ac_subst_files=''
 
316
 
 
317
# Initialize some variables set by options.
 
318
ac_init_help=
 
319
ac_init_version=false
 
320
# The variables have the same names as the options, with
 
321
# dashes changed to underlines.
 
322
cache_file=/dev/null
 
323
exec_prefix=NONE
 
324
no_create=
 
325
no_recursion=
 
326
prefix=NONE
 
327
program_prefix=NONE
 
328
program_suffix=NONE
 
329
program_transform_name=s,x,x,
 
330
silent=
 
331
site=
 
332
srcdir=
 
333
verbose=
 
334
x_includes=NONE
 
335
x_libraries=NONE
 
336
 
 
337
# Installation directory options.
 
338
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
339
# and all the variables that are supposed to be based on exec_prefix
 
340
# by default will actually change.
 
341
# Use braces instead of parens because sh, perl, etc. also accept them.
 
342
bindir='${exec_prefix}/bin'
 
343
sbindir='${exec_prefix}/sbin'
 
344
libexecdir='${exec_prefix}/libexec'
 
345
datadir='${prefix}/share'
 
346
sysconfdir='${prefix}/etc'
 
347
sharedstatedir='${prefix}/com'
 
348
localstatedir='${prefix}/var'
 
349
libdir='${exec_prefix}/lib'
 
350
includedir='${prefix}/include'
 
351
oldincludedir='/usr/include'
 
352
infodir='${prefix}/info'
 
353
mandir='${prefix}/man'
 
354
 
 
355
ac_prev=
 
356
for ac_option
 
357
do
 
358
  # If the previous option needs an argument, assign it.
 
359
  if test -n "$ac_prev"; then
 
360
    eval "$ac_prev=\$ac_option"
 
361
    ac_prev=
 
362
    continue
 
363
  fi
 
364
 
 
365
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
366
 
 
367
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
368
 
 
369
  case $ac_option in
 
370
 
 
371
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
372
    ac_prev=bindir ;;
 
373
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
374
    bindir=$ac_optarg ;;
 
375
 
 
376
  -build | --build | --buil | --bui | --bu)
 
377
    ac_prev=build_alias ;;
 
378
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
379
    build_alias=$ac_optarg ;;
 
380
 
 
381
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
382
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
383
    ac_prev=cache_file ;;
 
384
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
385
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
386
    cache_file=$ac_optarg ;;
 
387
 
 
388
  --config-cache | -C)
 
389
    cache_file=config.cache ;;
 
390
 
 
391
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
392
    ac_prev=datadir ;;
 
393
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
394
  | --da=*)
 
395
    datadir=$ac_optarg ;;
 
396
 
 
397
  -disable-* | --disable-*)
 
398
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
399
    # Reject names that are not valid shell variable names.
 
400
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
401
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
402
   { (exit 1); exit 1; }; }
 
403
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
404
    eval "enable_$ac_feature=no" ;;
 
405
 
 
406
  -enable-* | --enable-*)
 
407
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
408
    # Reject names that are not valid shell variable names.
 
409
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
410
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
411
   { (exit 1); exit 1; }; }
 
412
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
413
    case $ac_option in
 
414
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
415
      *) ac_optarg=yes ;;
 
416
    esac
 
417
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
418
 
 
419
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
420
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
421
  | --exec | --exe | --ex)
 
422
    ac_prev=exec_prefix ;;
 
423
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
424
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
425
  | --exec=* | --exe=* | --ex=*)
 
426
    exec_prefix=$ac_optarg ;;
 
427
 
 
428
  -gas | --gas | --ga | --g)
 
429
    # Obsolete; use --with-gas.
 
430
    with_gas=yes ;;
 
431
 
 
432
  -help | --help | --hel | --he | -h)
 
433
    ac_init_help=long ;;
 
434
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
435
    ac_init_help=recursive ;;
 
436
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
437
    ac_init_help=short ;;
 
438
 
 
439
  -host | --host | --hos | --ho)
 
440
    ac_prev=host_alias ;;
 
441
  -host=* | --host=* | --hos=* | --ho=*)
 
442
    host_alias=$ac_optarg ;;
 
443
 
 
444
  -includedir | --includedir | --includedi | --included | --include \
 
445
  | --includ | --inclu | --incl | --inc)
 
446
    ac_prev=includedir ;;
 
447
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
448
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
449
    includedir=$ac_optarg ;;
 
450
 
 
451
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
452
    ac_prev=infodir ;;
 
453
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
454
    infodir=$ac_optarg ;;
 
455
 
 
456
  -libdir | --libdir | --libdi | --libd)
 
457
    ac_prev=libdir ;;
 
458
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
459
    libdir=$ac_optarg ;;
 
460
 
 
461
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
462
  | --libexe | --libex | --libe)
 
463
    ac_prev=libexecdir ;;
 
464
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
465
  | --libexe=* | --libex=* | --libe=*)
 
466
    libexecdir=$ac_optarg ;;
 
467
 
 
468
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
469
  | --localstate | --localstat | --localsta | --localst \
 
470
  | --locals | --local | --loca | --loc | --lo)
 
471
    ac_prev=localstatedir ;;
 
472
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
473
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
474
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
475
    localstatedir=$ac_optarg ;;
 
476
 
 
477
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
478
    ac_prev=mandir ;;
 
479
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
480
    mandir=$ac_optarg ;;
 
481
 
 
482
  -nfp | --nfp | --nf)
 
483
    # Obsolete; use --without-fp.
 
484
    with_fp=no ;;
 
485
 
 
486
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
487
  | --no-cr | --no-c | -n)
 
488
    no_create=yes ;;
 
489
 
 
490
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
491
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
492
    no_recursion=yes ;;
 
493
 
 
494
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
495
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
496
  | --oldin | --oldi | --old | --ol | --o)
 
497
    ac_prev=oldincludedir ;;
 
498
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
499
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
500
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
501
    oldincludedir=$ac_optarg ;;
 
502
 
 
503
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
504
    ac_prev=prefix ;;
 
505
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
506
    prefix=$ac_optarg ;;
 
507
 
 
508
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
509
  | --program-pre | --program-pr | --program-p)
 
510
    ac_prev=program_prefix ;;
 
511
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
512
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
513
    program_prefix=$ac_optarg ;;
 
514
 
 
515
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
516
  | --program-suf | --program-su | --program-s)
 
517
    ac_prev=program_suffix ;;
 
518
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
519
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
520
    program_suffix=$ac_optarg ;;
 
521
 
 
522
  -program-transform-name | --program-transform-name \
 
523
  | --program-transform-nam | --program-transform-na \
 
524
  | --program-transform-n | --program-transform- \
 
525
  | --program-transform | --program-transfor \
 
526
  | --program-transfo | --program-transf \
 
527
  | --program-trans | --program-tran \
 
528
  | --progr-tra | --program-tr | --program-t)
 
529
    ac_prev=program_transform_name ;;
 
530
  -program-transform-name=* | --program-transform-name=* \
 
531
  | --program-transform-nam=* | --program-transform-na=* \
 
532
  | --program-transform-n=* | --program-transform-=* \
 
533
  | --program-transform=* | --program-transfor=* \
 
534
  | --program-transfo=* | --program-transf=* \
 
535
  | --program-trans=* | --program-tran=* \
 
536
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
537
    program_transform_name=$ac_optarg ;;
 
538
 
 
539
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
540
  | -silent | --silent | --silen | --sile | --sil)
 
541
    silent=yes ;;
 
542
 
 
543
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
544
    ac_prev=sbindir ;;
 
545
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
546
  | --sbi=* | --sb=*)
 
547
    sbindir=$ac_optarg ;;
 
548
 
 
549
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
550
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
551
  | --sharedst | --shareds | --shared | --share | --shar \
 
552
  | --sha | --sh)
 
553
    ac_prev=sharedstatedir ;;
 
554
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
555
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
556
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
557
  | --sha=* | --sh=*)
 
558
    sharedstatedir=$ac_optarg ;;
 
559
 
 
560
  -site | --site | --sit)
 
561
    ac_prev=site ;;
 
562
  -site=* | --site=* | --sit=*)
 
563
    site=$ac_optarg ;;
 
564
 
 
565
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
566
    ac_prev=srcdir ;;
 
567
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
568
    srcdir=$ac_optarg ;;
 
569
 
 
570
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
571
  | --syscon | --sysco | --sysc | --sys | --sy)
 
572
    ac_prev=sysconfdir ;;
 
573
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
574
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
575
    sysconfdir=$ac_optarg ;;
 
576
 
 
577
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
578
    ac_prev=target_alias ;;
 
579
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
580
    target_alias=$ac_optarg ;;
 
581
 
 
582
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
583
    verbose=yes ;;
 
584
 
 
585
  -version | --version | --versio | --versi | --vers | -V)
 
586
    ac_init_version=: ;;
 
587
 
 
588
  -with-* | --with-*)
 
589
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
590
    # Reject names that are not valid shell variable names.
 
591
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
592
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
593
   { (exit 1); exit 1; }; }
 
594
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
595
    case $ac_option in
 
596
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
597
      *) ac_optarg=yes ;;
 
598
    esac
 
599
    eval "with_$ac_package='$ac_optarg'" ;;
 
600
 
 
601
  -without-* | --without-*)
 
602
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
603
    # Reject names that are not valid shell variable names.
 
604
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
605
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
606
   { (exit 1); exit 1; }; }
 
607
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
608
    eval "with_$ac_package=no" ;;
 
609
 
 
610
  --x)
 
611
    # Obsolete; use --with-x.
 
612
    with_x=yes ;;
 
613
 
 
614
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
615
  | --x-incl | --x-inc | --x-in | --x-i)
 
616
    ac_prev=x_includes ;;
 
617
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
618
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
619
    x_includes=$ac_optarg ;;
 
620
 
 
621
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
622
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
623
    ac_prev=x_libraries ;;
 
624
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
625
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
626
    x_libraries=$ac_optarg ;;
 
627
 
 
628
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
629
Try \`$0 --help' for more information." >&2
 
630
   { (exit 1); exit 1; }; }
 
631
    ;;
 
632
 
 
633
  *=*)
 
634
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
635
    # Reject names that are not valid shell variable names.
 
636
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
637
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
638
   { (exit 1); exit 1; }; }
 
639
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
640
    eval "$ac_envvar='$ac_optarg'"
 
641
    export $ac_envvar ;;
 
642
 
 
643
  *)
 
644
    # FIXME: should be removed in autoconf 3.0.
 
645
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
646
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
647
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
648
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
649
    ;;
 
650
 
 
651
  esac
 
652
done
 
653
 
 
654
if test -n "$ac_prev"; then
 
655
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
656
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
657
   { (exit 1); exit 1; }; }
 
658
fi
 
659
 
 
660
# Be sure to have absolute paths.
 
661
for ac_var in exec_prefix prefix
 
662
do
 
663
  eval ac_val=$`echo $ac_var`
 
664
  case $ac_val in
 
665
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
666
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
667
   { (exit 1); exit 1; }; };;
 
668
  esac
 
669
done
 
670
 
 
671
# Be sure to have absolute paths.
 
672
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
673
              localstatedir libdir includedir oldincludedir infodir mandir
 
674
do
 
675
  eval ac_val=$`echo $ac_var`
 
676
  case $ac_val in
 
677
    [\\/$]* | ?:[\\/]* ) ;;
 
678
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
679
   { (exit 1); exit 1; }; };;
 
680
  esac
 
681
done
 
682
 
 
683
# There might be people who depend on the old broken behavior: `$host'
 
684
# used to hold the argument of --host etc.
 
685
# FIXME: To remove some day.
 
686
build=$build_alias
 
687
host=$host_alias
 
688
target=$target_alias
 
689
 
 
690
# FIXME: To remove some day.
 
691
if test "x$host_alias" != x; then
 
692
  if test "x$build_alias" = x; then
 
693
    cross_compiling=maybe
 
694
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
695
    If a cross compiler is detected then cross compile mode will be used." >&2
 
696
  elif test "x$build_alias" != "x$host_alias"; then
 
697
    cross_compiling=yes
 
698
  fi
 
699
fi
 
700
 
 
701
ac_tool_prefix=
 
702
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
703
 
 
704
test "$silent" = yes && exec 6>/dev/null
 
705
 
 
706
 
 
707
# Find the source files, if location was not specified.
 
708
if test -z "$srcdir"; then
 
709
  ac_srcdir_defaulted=yes
 
710
  # Try the directory containing this script, then its parent.
 
711
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
712
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
713
         X"$0" : 'X\(//\)[^/]' \| \
 
714
         X"$0" : 'X\(//\)$' \| \
 
715
         X"$0" : 'X\(/\)' \| \
 
716
         .     : '\(.\)' 2>/dev/null ||
 
717
echo X"$0" |
 
718
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
719
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
720
          /^X\(\/\/\)$/{ s//\1/; q; }
 
721
          /^X\(\/\).*/{ s//\1/; q; }
 
722
          s/.*/./; q'`
 
723
  srcdir=$ac_confdir
 
724
  if test ! -r $srcdir/$ac_unique_file; then
 
725
    srcdir=..
 
726
  fi
 
727
else
 
728
  ac_srcdir_defaulted=no
 
729
fi
 
730
if test ! -r $srcdir/$ac_unique_file; then
 
731
  if test "$ac_srcdir_defaulted" = yes; then
 
732
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
733
   { (exit 1); exit 1; }; }
 
734
  else
 
735
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
736
   { (exit 1); exit 1; }; }
 
737
  fi
 
738
fi
 
739
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
740
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
741
   { (exit 1); exit 1; }; }
 
742
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
743
ac_env_build_alias_set=${build_alias+set}
 
744
ac_env_build_alias_value=$build_alias
 
745
ac_cv_env_build_alias_set=${build_alias+set}
 
746
ac_cv_env_build_alias_value=$build_alias
 
747
ac_env_host_alias_set=${host_alias+set}
 
748
ac_env_host_alias_value=$host_alias
 
749
ac_cv_env_host_alias_set=${host_alias+set}
 
750
ac_cv_env_host_alias_value=$host_alias
 
751
ac_env_target_alias_set=${target_alias+set}
 
752
ac_env_target_alias_value=$target_alias
 
753
ac_cv_env_target_alias_set=${target_alias+set}
 
754
ac_cv_env_target_alias_value=$target_alias
 
755
ac_env_CC_set=${CC+set}
 
756
ac_env_CC_value=$CC
 
757
ac_cv_env_CC_set=${CC+set}
 
758
ac_cv_env_CC_value=$CC
 
759
ac_env_CFLAGS_set=${CFLAGS+set}
 
760
ac_env_CFLAGS_value=$CFLAGS
 
761
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
762
ac_cv_env_CFLAGS_value=$CFLAGS
 
763
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
764
ac_env_LDFLAGS_value=$LDFLAGS
 
765
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
766
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
767
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
768
ac_env_CPPFLAGS_value=$CPPFLAGS
 
769
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
770
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
771
ac_env_CPP_set=${CPP+set}
 
772
ac_env_CPP_value=$CPP
 
773
ac_cv_env_CPP_set=${CPP+set}
 
774
ac_cv_env_CPP_value=$CPP
 
775
 
 
776
#
 
777
# Report the --help message.
 
778
#
 
779
if test "$ac_init_help" = "long"; then
 
780
  # Omit some internal or obsolete options to make the list less imposing.
 
781
  # This message is too long to be a string in the A/UX 3.1 sh.
 
782
  cat <<_ACEOF
 
783
\`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems.
 
784
 
 
785
Usage: $0 [OPTION]... [VAR=VALUE]...
 
786
 
 
787
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
788
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
789
 
 
790
Defaults for the options are specified in brackets.
 
791
 
 
792
Configuration:
 
793
  -h, --help              display this help and exit
 
794
      --help=short        display options specific to this package
 
795
      --help=recursive    display the short help of all the included packages
 
796
  -V, --version           display version information and exit
 
797
  -q, --quiet, --silent   do not print \`checking...' messages
 
798
      --cache-file=FILE   cache test results in FILE [disabled]
 
799
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
800
  -n, --no-create         do not create output files
 
801
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
802
 
 
803
_ACEOF
 
804
 
 
805
  cat <<_ACEOF
 
806
Installation directories:
 
807
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
808
                          [$ac_default_prefix]
 
809
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
810
                          [PREFIX]
 
811
 
 
812
By default, \`make install' will install all the files in
 
813
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
814
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
815
for instance \`--prefix=\$HOME'.
 
816
 
 
817
For better control, use the options below.
 
818
 
 
819
Fine tuning of the installation directories:
 
820
  --bindir=DIR           user executables [EPREFIX/bin]
 
821
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
822
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
823
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
824
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
825
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
826
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
827
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
828
  --includedir=DIR       C header files [PREFIX/include]
 
829
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
830
  --infodir=DIR          info documentation [PREFIX/info]
 
831
  --mandir=DIR           man documentation [PREFIX/man]
 
832
_ACEOF
 
833
 
 
834
  cat <<\_ACEOF
 
835
_ACEOF
 
836
fi
 
837
 
 
838
if test -n "$ac_init_help"; then
 
839
  case $ac_init_help in
 
840
     short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";;
 
841
   esac
 
842
  cat <<\_ACEOF
 
843
 
 
844
Some influential environment variables:
 
845
  CC          C compiler command
 
846
  CFLAGS      C compiler flags
 
847
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
848
              nonstandard directory <lib dir>
 
849
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
850
              headers in a nonstandard directory <include dir>
 
851
  CPP         C preprocessor
 
852
 
 
853
Use these variables to override the choices made by `configure' or to help
 
854
it to find libraries and programs with nonstandard names/locations.
 
855
 
 
856
Report bugs to <BUG-REPORT-ADDRESS>.
 
857
_ACEOF
 
858
fi
 
859
 
 
860
if test "$ac_init_help" = "recursive"; then
 
861
  # If there are subdirs, report their specific --help.
 
862
  ac_popdir=`pwd`
 
863
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
864
    test -d $ac_dir || continue
 
865
    ac_builddir=.
 
866
 
 
867
if test "$ac_dir" != .; then
 
868
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
869
  # A "../" for each directory in $ac_dir_suffix.
 
870
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
871
else
 
872
  ac_dir_suffix= ac_top_builddir=
 
873
fi
 
874
 
 
875
case $srcdir in
 
876
  .)  # No --srcdir option.  We are building in place.
 
877
    ac_srcdir=.
 
878
    if test -z "$ac_top_builddir"; then
 
879
       ac_top_srcdir=.
 
880
    else
 
881
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
882
    fi ;;
 
883
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
884
    ac_srcdir=$srcdir$ac_dir_suffix;
 
885
    ac_top_srcdir=$srcdir ;;
 
886
  *) # Relative path.
 
887
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
888
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
889
esac
 
890
 
 
891
# Do not use `cd foo && pwd` to compute absolute paths, because
 
892
# the directories may not exist.
 
893
case `pwd` in
 
894
.) ac_abs_builddir="$ac_dir";;
 
895
*)
 
896
  case "$ac_dir" in
 
897
  .) ac_abs_builddir=`pwd`;;
 
898
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
899
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
900
  esac;;
 
901
esac
 
902
case $ac_abs_builddir in
 
903
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
904
*)
 
905
  case ${ac_top_builddir}. in
 
906
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
907
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
908
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
909
  esac;;
 
910
esac
 
911
case $ac_abs_builddir in
 
912
.) ac_abs_srcdir=$ac_srcdir;;
 
913
*)
 
914
  case $ac_srcdir in
 
915
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
916
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
917
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
918
  esac;;
 
919
esac
 
920
case $ac_abs_builddir in
 
921
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
922
*)
 
923
  case $ac_top_srcdir in
 
924
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
925
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
926
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
927
  esac;;
 
928
esac
 
929
 
 
930
    cd $ac_dir
 
931
    # Check for guested configure; otherwise get Cygnus style configure.
 
932
    if test -f $ac_srcdir/configure.gnu; then
 
933
      echo
 
934
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
935
    elif test -f $ac_srcdir/configure; then
 
936
      echo
 
937
      $SHELL $ac_srcdir/configure  --help=recursive
 
938
    elif test -f $ac_srcdir/configure.ac ||
 
939
           test -f $ac_srcdir/configure.in; then
 
940
      echo
 
941
      $ac_configure --help
 
942
    else
 
943
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
944
    fi
 
945
    cd $ac_popdir
 
946
  done
 
947
fi
 
948
 
 
949
test -n "$ac_init_help" && exit 0
 
950
if $ac_init_version; then
 
951
  cat <<\_ACEOF
 
952
FULL-PACKAGE-NAME configure VERSION
 
953
generated by GNU Autoconf 2.59
 
954
 
 
955
Copyright (C) 2003 Free Software Foundation, Inc.
 
956
This configure script is free software; the Free Software Foundation
 
957
gives unlimited permission to copy, distribute and modify it.
 
958
_ACEOF
 
959
  exit 0
 
960
fi
 
961
exec 5>config.log
 
962
cat >&5 <<_ACEOF
 
963
This file contains any messages produced by compilers while
 
964
running configure, to aid debugging if configure makes a mistake.
 
965
 
 
966
It was created by FULL-PACKAGE-NAME $as_me VERSION, which was
 
967
generated by GNU Autoconf 2.59.  Invocation command line was
 
968
 
 
969
  $ $0 $@
 
970
 
 
971
_ACEOF
 
972
{
 
973
cat <<_ASUNAME
 
974
## --------- ##
 
975
## Platform. ##
 
976
## --------- ##
 
977
 
 
978
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
979
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
980
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
981
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
982
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
983
 
 
984
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
985
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
986
 
 
987
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
988
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
989
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
990
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
991
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
992
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
993
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
994
 
 
995
_ASUNAME
 
996
 
 
997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
998
for as_dir in $PATH
 
999
do
 
1000
  IFS=$as_save_IFS
 
1001
  test -z "$as_dir" && as_dir=.
 
1002
  echo "PATH: $as_dir"
 
1003
done
 
1004
 
 
1005
} >&5
 
1006
 
 
1007
cat >&5 <<_ACEOF
 
1008
 
 
1009
 
 
1010
## ----------- ##
 
1011
## Core tests. ##
 
1012
## ----------- ##
 
1013
 
 
1014
_ACEOF
 
1015
 
 
1016
 
 
1017
# Keep a trace of the command line.
 
1018
# Strip out --no-create and --no-recursion so they do not pile up.
 
1019
# Strip out --silent because we don't want to record it for future runs.
 
1020
# Also quote any args containing shell meta-characters.
 
1021
# Make two passes to allow for proper duplicate-argument suppression.
 
1022
ac_configure_args=
 
1023
ac_configure_args0=
 
1024
ac_configure_args1=
 
1025
ac_sep=
 
1026
ac_must_keep_next=false
 
1027
for ac_pass in 1 2
 
1028
do
 
1029
  for ac_arg
 
1030
  do
 
1031
    case $ac_arg in
 
1032
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1033
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1034
    | -silent | --silent | --silen | --sile | --sil)
 
1035
      continue ;;
 
1036
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1037
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1038
    esac
 
1039
    case $ac_pass in
 
1040
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1041
    2)
 
1042
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1043
      if test $ac_must_keep_next = true; then
 
1044
        ac_must_keep_next=false # Got value, back to normal.
 
1045
      else
 
1046
        case $ac_arg in
 
1047
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1048
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1049
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1050
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1051
            case "$ac_configure_args0 " in
 
1052
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1053
            esac
 
1054
            ;;
 
1055
          -* ) ac_must_keep_next=true ;;
 
1056
        esac
 
1057
      fi
 
1058
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1059
      # Get rid of the leading space.
 
1060
      ac_sep=" "
 
1061
      ;;
 
1062
    esac
 
1063
  done
 
1064
done
 
1065
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1066
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1067
 
 
1068
# When interrupted or exit'd, cleanup temporary files, and complete
 
1069
# config.log.  We remove comments because anyway the quotes in there
 
1070
# would cause problems or look ugly.
 
1071
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1072
# such as our DU 5.0 friend, will then `close' the trap.
 
1073
trap 'exit_status=$?
 
1074
  # Save into config.log some information that might help in debugging.
 
1075
  {
 
1076
    echo
 
1077
 
 
1078
    cat <<\_ASBOX
 
1079
## ---------------- ##
 
1080
## Cache variables. ##
 
1081
## ---------------- ##
 
1082
_ASBOX
 
1083
    echo
 
1084
    # The following way of writing the cache mishandles newlines in values,
 
1085
{
 
1086
  (set) 2>&1 |
 
1087
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1088
    *ac_space=\ *)
 
1089
      sed -n \
 
1090
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1091
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1092
      ;;
 
1093
    *)
 
1094
      sed -n \
 
1095
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1096
      ;;
 
1097
    esac;
 
1098
}
 
1099
    echo
 
1100
 
 
1101
    cat <<\_ASBOX
 
1102
## ----------------- ##
 
1103
## Output variables. ##
 
1104
## ----------------- ##
 
1105
_ASBOX
 
1106
    echo
 
1107
    for ac_var in $ac_subst_vars
 
1108
    do
 
1109
      eval ac_val=$`echo $ac_var`
 
1110
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1111
    done | sort
 
1112
    echo
 
1113
 
 
1114
    if test -n "$ac_subst_files"; then
 
1115
      cat <<\_ASBOX
 
1116
## ------------- ##
 
1117
## Output files. ##
 
1118
## ------------- ##
 
1119
_ASBOX
 
1120
      echo
 
1121
      for ac_var in $ac_subst_files
 
1122
      do
 
1123
        eval ac_val=$`echo $ac_var`
 
1124
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1125
      done | sort
 
1126
      echo
 
1127
    fi
 
1128
 
 
1129
    if test -s confdefs.h; then
 
1130
      cat <<\_ASBOX
 
1131
## ----------- ##
 
1132
## confdefs.h. ##
 
1133
## ----------- ##
 
1134
_ASBOX
 
1135
      echo
 
1136
      sed "/^$/d" confdefs.h | sort
 
1137
      echo
 
1138
    fi
 
1139
    test "$ac_signal" != 0 &&
 
1140
      echo "$as_me: caught signal $ac_signal"
 
1141
    echo "$as_me: exit $exit_status"
 
1142
  } >&5
 
1143
  rm -f core *.core &&
 
1144
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1145
    exit $exit_status
 
1146
     ' 0
 
1147
for ac_signal in 1 2 13 15; do
 
1148
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1149
done
 
1150
ac_signal=0
 
1151
 
 
1152
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1153
rm -rf conftest* confdefs.h
 
1154
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1155
echo >confdefs.h
 
1156
 
 
1157
# Predefined preprocessor variables.
 
1158
 
 
1159
cat >>confdefs.h <<_ACEOF
 
1160
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1161
_ACEOF
 
1162
 
 
1163
 
 
1164
cat >>confdefs.h <<_ACEOF
 
1165
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1166
_ACEOF
 
1167
 
 
1168
 
 
1169
cat >>confdefs.h <<_ACEOF
 
1170
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1171
_ACEOF
 
1172
 
 
1173
 
 
1174
cat >>confdefs.h <<_ACEOF
 
1175
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1176
_ACEOF
 
1177
 
 
1178
 
 
1179
cat >>confdefs.h <<_ACEOF
 
1180
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1181
_ACEOF
 
1182
 
 
1183
 
 
1184
# Let the site file select an alternate cache file if it wants to.
 
1185
# Prefer explicitly selected file to automatically selected ones.
 
1186
if test -z "$CONFIG_SITE"; then
 
1187
  if test "x$prefix" != xNONE; then
 
1188
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1189
  else
 
1190
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1191
  fi
 
1192
fi
 
1193
for ac_site_file in $CONFIG_SITE; do
 
1194
  if test -r "$ac_site_file"; then
 
1195
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1196
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1197
    sed 's/^/| /' "$ac_site_file" >&5
 
1198
    . "$ac_site_file"
 
1199
  fi
 
1200
done
 
1201
 
 
1202
if test -r "$cache_file"; then
 
1203
  # Some versions of bash will fail to source /dev/null (special
 
1204
  # files actually), so we avoid doing that.
 
1205
  if test -f "$cache_file"; then
 
1206
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1207
echo "$as_me: loading cache $cache_file" >&6;}
 
1208
    case $cache_file in
 
1209
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1210
      *)                      . ./$cache_file;;
 
1211
    esac
 
1212
  fi
 
1213
else
 
1214
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1215
echo "$as_me: creating cache $cache_file" >&6;}
 
1216
  >$cache_file
 
1217
fi
 
1218
 
 
1219
# Check that the precious variables saved in the cache have kept the same
 
1220
# value.
 
1221
ac_cache_corrupted=false
 
1222
for ac_var in `(set) 2>&1 |
 
1223
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1224
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1225
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1226
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1227
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1228
  case $ac_old_set,$ac_new_set in
 
1229
    set,)
 
1230
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1231
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1232
      ac_cache_corrupted=: ;;
 
1233
    ,set)
 
1234
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1235
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1236
      ac_cache_corrupted=: ;;
 
1237
    ,);;
 
1238
    *)
 
1239
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1240
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1241
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1242
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1243
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1244
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1245
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1246
        ac_cache_corrupted=:
 
1247
      fi;;
 
1248
  esac
 
1249
  # Pass precious variables to config.status.
 
1250
  if test "$ac_new_set" = set; then
 
1251
    case $ac_new_val in
 
1252
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1253
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1254
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1255
    esac
 
1256
    case " $ac_configure_args " in
 
1257
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1258
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1259
    esac
 
1260
  fi
 
1261
done
 
1262
if $ac_cache_corrupted; then
 
1263
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1264
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1265
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1266
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1267
   { (exit 1); exit 1; }; }
 
1268
fi
 
1269
 
 
1270
ac_ext=c
 
1271
ac_cpp='$CPP $CPPFLAGS'
 
1272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1275
 
 
1276
 
 
1277
 
 
1278
 
 
1279
 
 
1280
 
 
1281
 
 
1282
 
 
1283
 
 
1284
 
 
1285
 
 
1286
 
 
1287
 
 
1288
 
 
1289
 
 
1290
 
 
1291
 
 
1292
 
 
1293
 
 
1294
 
 
1295
 
 
1296
 
 
1297
 
 
1298
 
 
1299
 
 
1300
 
 
1301
 
 
1302
 
 
1303
          ac_config_headers="$ac_config_headers config.h"
 
1304
 
 
1305
 
 
1306
# Checks for programs.
 
1307
ac_ext=c
 
1308
ac_cpp='$CPP $CPPFLAGS'
 
1309
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1310
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1311
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1312
if test -n "$ac_tool_prefix"; then
 
1313
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1314
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1315
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1317
if test "${ac_cv_prog_CC+set}" = set; then
 
1318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1319
else
 
1320
  if test -n "$CC"; then
 
1321
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1322
else
 
1323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1324
for as_dir in $PATH
 
1325
do
 
1326
  IFS=$as_save_IFS
 
1327
  test -z "$as_dir" && as_dir=.
 
1328
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1329
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1330
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1331
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1332
    break 2
 
1333
  fi
 
1334
done
 
1335
done
 
1336
 
 
1337
fi
 
1338
fi
 
1339
CC=$ac_cv_prog_CC
 
1340
if test -n "$CC"; then
 
1341
  echo "$as_me:$LINENO: result: $CC" >&5
 
1342
echo "${ECHO_T}$CC" >&6
 
1343
else
 
1344
  echo "$as_me:$LINENO: result: no" >&5
 
1345
echo "${ECHO_T}no" >&6
 
1346
fi
 
1347
 
 
1348
fi
 
1349
if test -z "$ac_cv_prog_CC"; then
 
1350
  ac_ct_CC=$CC
 
1351
  # Extract the first word of "gcc", so it can be a program name with args.
 
1352
set dummy gcc; ac_word=$2
 
1353
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1354
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1355
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1356
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1357
else
 
1358
  if test -n "$ac_ct_CC"; then
 
1359
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1360
else
 
1361
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1362
for as_dir in $PATH
 
1363
do
 
1364
  IFS=$as_save_IFS
 
1365
  test -z "$as_dir" && as_dir=.
 
1366
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1367
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1368
    ac_cv_prog_ac_ct_CC="gcc"
 
1369
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1370
    break 2
 
1371
  fi
 
1372
done
 
1373
done
 
1374
 
 
1375
fi
 
1376
fi
 
1377
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1378
if test -n "$ac_ct_CC"; then
 
1379
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1380
echo "${ECHO_T}$ac_ct_CC" >&6
 
1381
else
 
1382
  echo "$as_me:$LINENO: result: no" >&5
 
1383
echo "${ECHO_T}no" >&6
 
1384
fi
 
1385
 
 
1386
  CC=$ac_ct_CC
 
1387
else
 
1388
  CC="$ac_cv_prog_CC"
 
1389
fi
 
1390
 
 
1391
if test -z "$CC"; then
 
1392
  if test -n "$ac_tool_prefix"; then
 
1393
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1394
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1395
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1397
if test "${ac_cv_prog_CC+set}" = set; then
 
1398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1399
else
 
1400
  if test -n "$CC"; then
 
1401
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1402
else
 
1403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1404
for as_dir in $PATH
 
1405
do
 
1406
  IFS=$as_save_IFS
 
1407
  test -z "$as_dir" && as_dir=.
 
1408
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1409
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1410
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1411
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1412
    break 2
 
1413
  fi
 
1414
done
 
1415
done
 
1416
 
 
1417
fi
 
1418
fi
 
1419
CC=$ac_cv_prog_CC
 
1420
if test -n "$CC"; then
 
1421
  echo "$as_me:$LINENO: result: $CC" >&5
 
1422
echo "${ECHO_T}$CC" >&6
 
1423
else
 
1424
  echo "$as_me:$LINENO: result: no" >&5
 
1425
echo "${ECHO_T}no" >&6
 
1426
fi
 
1427
 
 
1428
fi
 
1429
if test -z "$ac_cv_prog_CC"; then
 
1430
  ac_ct_CC=$CC
 
1431
  # Extract the first word of "cc", so it can be a program name with args.
 
1432
set dummy cc; 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_ac_ct_CC+set}" = set; then
 
1436
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1437
else
 
1438
  if test -n "$ac_ct_CC"; then
 
1439
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="cc"
 
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
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1458
if test -n "$ac_ct_CC"; then
 
1459
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1460
echo "${ECHO_T}$ac_ct_CC" >&6
 
1461
else
 
1462
  echo "$as_me:$LINENO: result: no" >&5
 
1463
echo "${ECHO_T}no" >&6
 
1464
fi
 
1465
 
 
1466
  CC=$ac_ct_CC
 
1467
else
 
1468
  CC="$ac_cv_prog_CC"
 
1469
fi
 
1470
 
 
1471
fi
 
1472
if test -z "$CC"; then
 
1473
  # Extract the first word of "cc", so it can be a program name with args.
 
1474
set dummy cc; ac_word=$2
 
1475
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1476
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1477
if test "${ac_cv_prog_CC+set}" = set; then
 
1478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1479
else
 
1480
  if test -n "$CC"; then
 
1481
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1482
else
 
1483
  ac_prog_rejected=no
 
1484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1485
for as_dir in $PATH
 
1486
do
 
1487
  IFS=$as_save_IFS
 
1488
  test -z "$as_dir" && as_dir=.
 
1489
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1490
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1491
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1492
       ac_prog_rejected=yes
 
1493
       continue
 
1494
     fi
 
1495
    ac_cv_prog_CC="cc"
 
1496
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1497
    break 2
 
1498
  fi
 
1499
done
 
1500
done
 
1501
 
 
1502
if test $ac_prog_rejected = yes; then
 
1503
  # We found a bogon in the path, so make sure we never use it.
 
1504
  set dummy $ac_cv_prog_CC
 
1505
  shift
 
1506
  if test $# != 0; then
 
1507
    # We chose a different compiler from the bogus one.
 
1508
    # However, it has the same basename, so the bogon will be chosen
 
1509
    # first if we set CC to just the basename; use the full file name.
 
1510
    shift
 
1511
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1512
  fi
 
1513
fi
 
1514
fi
 
1515
fi
 
1516
CC=$ac_cv_prog_CC
 
1517
if test -n "$CC"; then
 
1518
  echo "$as_me:$LINENO: result: $CC" >&5
 
1519
echo "${ECHO_T}$CC" >&6
 
1520
else
 
1521
  echo "$as_me:$LINENO: result: no" >&5
 
1522
echo "${ECHO_T}no" >&6
 
1523
fi
 
1524
 
 
1525
fi
 
1526
if test -z "$CC"; then
 
1527
  if test -n "$ac_tool_prefix"; then
 
1528
  for ac_prog in cl
 
1529
  do
 
1530
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1531
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1532
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1533
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1534
if test "${ac_cv_prog_CC+set}" = set; then
 
1535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1536
else
 
1537
  if test -n "$CC"; then
 
1538
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1539
else
 
1540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1541
for as_dir in $PATH
 
1542
do
 
1543
  IFS=$as_save_IFS
 
1544
  test -z "$as_dir" && as_dir=.
 
1545
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1546
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1547
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1548
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1549
    break 2
 
1550
  fi
 
1551
done
 
1552
done
 
1553
 
 
1554
fi
 
1555
fi
 
1556
CC=$ac_cv_prog_CC
 
1557
if test -n "$CC"; then
 
1558
  echo "$as_me:$LINENO: result: $CC" >&5
 
1559
echo "${ECHO_T}$CC" >&6
 
1560
else
 
1561
  echo "$as_me:$LINENO: result: no" >&5
 
1562
echo "${ECHO_T}no" >&6
 
1563
fi
 
1564
 
 
1565
    test -n "$CC" && break
 
1566
  done
 
1567
fi
 
1568
if test -z "$CC"; then
 
1569
  ac_ct_CC=$CC
 
1570
  for ac_prog in cl
 
1571
do
 
1572
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1573
set dummy $ac_prog; ac_word=$2
 
1574
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1575
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1576
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1578
else
 
1579
  if test -n "$ac_ct_CC"; then
 
1580
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1581
else
 
1582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1583
for as_dir in $PATH
 
1584
do
 
1585
  IFS=$as_save_IFS
 
1586
  test -z "$as_dir" && as_dir=.
 
1587
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1588
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1589
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1590
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1591
    break 2
 
1592
  fi
 
1593
done
 
1594
done
 
1595
 
 
1596
fi
 
1597
fi
 
1598
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1599
if test -n "$ac_ct_CC"; then
 
1600
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1601
echo "${ECHO_T}$ac_ct_CC" >&6
 
1602
else
 
1603
  echo "$as_me:$LINENO: result: no" >&5
 
1604
echo "${ECHO_T}no" >&6
 
1605
fi
 
1606
 
 
1607
  test -n "$ac_ct_CC" && break
 
1608
done
 
1609
 
 
1610
  CC=$ac_ct_CC
 
1611
fi
 
1612
 
 
1613
fi
 
1614
 
 
1615
 
 
1616
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1617
See \`config.log' for more details." >&5
 
1618
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1619
See \`config.log' for more details." >&2;}
 
1620
   { (exit 1); exit 1; }; }
 
1621
 
 
1622
# Provide some information about the compiler.
 
1623
echo "$as_me:$LINENO:" \
 
1624
     "checking for C compiler version" >&5
 
1625
ac_compiler=`set X $ac_compile; echo $2`
 
1626
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1627
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1628
  ac_status=$?
 
1629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1630
  (exit $ac_status); }
 
1631
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1632
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1633
  ac_status=$?
 
1634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1635
  (exit $ac_status); }
 
1636
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1637
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1638
  ac_status=$?
 
1639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1640
  (exit $ac_status); }
 
1641
 
 
1642
cat >conftest.$ac_ext <<_ACEOF
 
1643
/* confdefs.h.  */
 
1644
_ACEOF
 
1645
cat confdefs.h >>conftest.$ac_ext
 
1646
cat >>conftest.$ac_ext <<_ACEOF
 
1647
/* end confdefs.h.  */
 
1648
 
 
1649
int
 
1650
main ()
 
1651
{
 
1652
 
 
1653
  ;
 
1654
  return 0;
 
1655
}
 
1656
_ACEOF
 
1657
ac_clean_files_save=$ac_clean_files
 
1658
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1659
# Try to create an executable without -o first, disregard a.out.
 
1660
# It will help us diagnose broken compilers, and finding out an intuition
 
1661
# of exeext.
 
1662
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1663
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
1664
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1665
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1666
  (eval $ac_link_default) 2>&5
 
1667
  ac_status=$?
 
1668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1669
  (exit $ac_status); }; then
 
1670
  # Find the output, starting from the most likely.  This scheme is
 
1671
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1672
# resort.
 
1673
 
 
1674
# Be careful to initialize this variable, since it used to be cached.
 
1675
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1676
ac_cv_exeext=
 
1677
# b.out is created by i960 compilers.
 
1678
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1679
do
 
1680
  test -f "$ac_file" || continue
 
1681
  case $ac_file in
 
1682
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1683
        ;;
 
1684
    conftest.$ac_ext )
 
1685
        # This is the source file.
 
1686
        ;;
 
1687
    [ab].out )
 
1688
        # We found the default executable, but exeext='' is most
 
1689
        # certainly right.
 
1690
        break;;
 
1691
    *.* )
 
1692
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1693
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1694
        # but it would be cool to find out if it's true.  Does anybody
 
1695
        # maintain Libtool? --akim.
 
1696
        export ac_cv_exeext
 
1697
        break;;
 
1698
    * )
 
1699
        break;;
 
1700
  esac
 
1701
done
 
1702
else
 
1703
  echo "$as_me: failed program was:" >&5
 
1704
sed 's/^/| /' conftest.$ac_ext >&5
 
1705
 
 
1706
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1707
See \`config.log' for more details." >&5
 
1708
echo "$as_me: error: C compiler cannot create executables
 
1709
See \`config.log' for more details." >&2;}
 
1710
   { (exit 77); exit 77; }; }
 
1711
fi
 
1712
 
 
1713
ac_exeext=$ac_cv_exeext
 
1714
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1715
echo "${ECHO_T}$ac_file" >&6
 
1716
 
 
1717
# Check the compiler produces executables we can run.  If not, either
 
1718
# the compiler is broken, or we cross compile.
 
1719
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
1720
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1721
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1722
# If not cross compiling, check that we can run a simple program.
 
1723
if test "$cross_compiling" != yes; then
 
1724
  if { ac_try='./$ac_file'
 
1725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1726
  (eval $ac_try) 2>&5
 
1727
  ac_status=$?
 
1728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1729
  (exit $ac_status); }; }; then
 
1730
    cross_compiling=no
 
1731
  else
 
1732
    if test "$cross_compiling" = maybe; then
 
1733
        cross_compiling=yes
 
1734
    else
 
1735
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
1736
If you meant to cross compile, use \`--host'.
 
1737
See \`config.log' for more details." >&5
 
1738
echo "$as_me: error: cannot run C compiled programs.
 
1739
If you meant to cross compile, use \`--host'.
 
1740
See \`config.log' for more details." >&2;}
 
1741
   { (exit 1); exit 1; }; }
 
1742
    fi
 
1743
  fi
 
1744
fi
 
1745
echo "$as_me:$LINENO: result: yes" >&5
 
1746
echo "${ECHO_T}yes" >&6
 
1747
 
 
1748
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1749
ac_clean_files=$ac_clean_files_save
 
1750
# Check the compiler produces executables we can run.  If not, either
 
1751
# the compiler is broken, or we cross compile.
 
1752
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1753
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1754
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1755
echo "${ECHO_T}$cross_compiling" >&6
 
1756
 
 
1757
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1758
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1759
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1760
  (eval $ac_link) 2>&5
 
1761
  ac_status=$?
 
1762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1763
  (exit $ac_status); }; then
 
1764
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1765
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1766
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1767
# `rm'.
 
1768
for ac_file in conftest.exe conftest conftest.*; do
 
1769
  test -f "$ac_file" || continue
 
1770
  case $ac_file in
 
1771
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1772
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1773
          export ac_cv_exeext
 
1774
          break;;
 
1775
    * ) break;;
 
1776
  esac
 
1777
done
 
1778
else
 
1779
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1780
See \`config.log' for more details." >&5
 
1781
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1782
See \`config.log' for more details." >&2;}
 
1783
   { (exit 1); exit 1; }; }
 
1784
fi
 
1785
 
 
1786
rm -f conftest$ac_cv_exeext
 
1787
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
1788
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1789
 
 
1790
rm -f conftest.$ac_ext
 
1791
EXEEXT=$ac_cv_exeext
 
1792
ac_exeext=$EXEEXT
 
1793
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
1794
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
1795
if test "${ac_cv_objext+set}" = set; then
 
1796
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1797
else
 
1798
  cat >conftest.$ac_ext <<_ACEOF
 
1799
/* confdefs.h.  */
 
1800
_ACEOF
 
1801
cat confdefs.h >>conftest.$ac_ext
 
1802
cat >>conftest.$ac_ext <<_ACEOF
 
1803
/* end confdefs.h.  */
 
1804
 
 
1805
int
 
1806
main ()
 
1807
{
 
1808
 
 
1809
  ;
 
1810
  return 0;
 
1811
}
 
1812
_ACEOF
 
1813
rm -f conftest.o conftest.obj
 
1814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1815
  (eval $ac_compile) 2>&5
 
1816
  ac_status=$?
 
1817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1818
  (exit $ac_status); }; then
 
1819
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1820
  case $ac_file in
 
1821
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
1822
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1823
       break;;
 
1824
  esac
 
1825
done
 
1826
else
 
1827
  echo "$as_me: failed program was:" >&5
 
1828
sed 's/^/| /' conftest.$ac_ext >&5
 
1829
 
 
1830
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
1831
See \`config.log' for more details." >&5
 
1832
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
1833
See \`config.log' for more details." >&2;}
 
1834
   { (exit 1); exit 1; }; }
 
1835
fi
 
1836
 
 
1837
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1838
fi
 
1839
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
1840
echo "${ECHO_T}$ac_cv_objext" >&6
 
1841
OBJEXT=$ac_cv_objext
 
1842
ac_objext=$OBJEXT
 
1843
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
1844
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
1845
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
1846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1847
else
 
1848
  cat >conftest.$ac_ext <<_ACEOF
 
1849
/* confdefs.h.  */
 
1850
_ACEOF
 
1851
cat confdefs.h >>conftest.$ac_ext
 
1852
cat >>conftest.$ac_ext <<_ACEOF
 
1853
/* end confdefs.h.  */
 
1854
 
 
1855
int
 
1856
main ()
 
1857
{
 
1858
#ifndef __GNUC__
 
1859
       choke me
 
1860
#endif
 
1861
 
 
1862
  ;
 
1863
  return 0;
 
1864
}
 
1865
_ACEOF
 
1866
rm -f conftest.$ac_objext
 
1867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1868
  (eval $ac_compile) 2>conftest.er1
 
1869
  ac_status=$?
 
1870
  grep -v '^ *+' conftest.er1 >conftest.err
 
1871
  rm -f conftest.er1
 
1872
  cat conftest.err >&5
 
1873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1874
  (exit $ac_status); } &&
 
1875
         { ac_try='test -z "$ac_c_werror_flag"
 
1876
                         || test ! -s conftest.err'
 
1877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1878
  (eval $ac_try) 2>&5
 
1879
  ac_status=$?
 
1880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1881
  (exit $ac_status); }; } &&
 
1882
         { ac_try='test -s conftest.$ac_objext'
 
1883
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1884
  (eval $ac_try) 2>&5
 
1885
  ac_status=$?
 
1886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1887
  (exit $ac_status); }; }; then
 
1888
  ac_compiler_gnu=yes
 
1889
else
 
1890
  echo "$as_me: failed program was:" >&5
 
1891
sed 's/^/| /' conftest.$ac_ext >&5
 
1892
 
 
1893
ac_compiler_gnu=no
 
1894
fi
 
1895
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
1896
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
1897
 
 
1898
fi
 
1899
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
1900
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
1901
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
1902
ac_test_CFLAGS=${CFLAGS+set}
 
1903
ac_save_CFLAGS=$CFLAGS
 
1904
CFLAGS="-g"
 
1905
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
1906
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
1907
if test "${ac_cv_prog_cc_g+set}" = set; then
 
1908
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1909
else
 
1910
  cat >conftest.$ac_ext <<_ACEOF
 
1911
/* confdefs.h.  */
 
1912
_ACEOF
 
1913
cat confdefs.h >>conftest.$ac_ext
 
1914
cat >>conftest.$ac_ext <<_ACEOF
 
1915
/* end confdefs.h.  */
 
1916
 
 
1917
int
 
1918
main ()
 
1919
{
 
1920
 
 
1921
  ;
 
1922
  return 0;
 
1923
}
 
1924
_ACEOF
 
1925
rm -f conftest.$ac_objext
 
1926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1927
  (eval $ac_compile) 2>conftest.er1
 
1928
  ac_status=$?
 
1929
  grep -v '^ *+' conftest.er1 >conftest.err
 
1930
  rm -f conftest.er1
 
1931
  cat conftest.err >&5
 
1932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1933
  (exit $ac_status); } &&
 
1934
         { ac_try='test -z "$ac_c_werror_flag"
 
1935
                         || test ! -s conftest.err'
 
1936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1937
  (eval $ac_try) 2>&5
 
1938
  ac_status=$?
 
1939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1940
  (exit $ac_status); }; } &&
 
1941
         { ac_try='test -s conftest.$ac_objext'
 
1942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1943
  (eval $ac_try) 2>&5
 
1944
  ac_status=$?
 
1945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1946
  (exit $ac_status); }; }; then
 
1947
  ac_cv_prog_cc_g=yes
 
1948
else
 
1949
  echo "$as_me: failed program was:" >&5
 
1950
sed 's/^/| /' conftest.$ac_ext >&5
 
1951
 
 
1952
ac_cv_prog_cc_g=no
 
1953
fi
 
1954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
1955
fi
 
1956
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
1957
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
1958
if test "$ac_test_CFLAGS" = set; then
 
1959
  CFLAGS=$ac_save_CFLAGS
 
1960
elif test $ac_cv_prog_cc_g = yes; then
 
1961
  if test "$GCC" = yes; then
 
1962
    CFLAGS="-g -O2"
 
1963
  else
 
1964
    CFLAGS="-g"
 
1965
  fi
 
1966
else
 
1967
  if test "$GCC" = yes; then
 
1968
    CFLAGS="-O2"
 
1969
  else
 
1970
    CFLAGS=
 
1971
  fi
 
1972
fi
 
1973
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
1974
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
1975
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
1976
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1977
else
 
1978
  ac_cv_prog_cc_stdc=no
 
1979
ac_save_CC=$CC
 
1980
cat >conftest.$ac_ext <<_ACEOF
 
1981
/* confdefs.h.  */
 
1982
_ACEOF
 
1983
cat confdefs.h >>conftest.$ac_ext
 
1984
cat >>conftest.$ac_ext <<_ACEOF
 
1985
/* end confdefs.h.  */
 
1986
#include <stdarg.h>
 
1987
#include <stdio.h>
 
1988
#include <sys/types.h>
 
1989
#include <sys/stat.h>
 
1990
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
1991
struct buf { int x; };
 
1992
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
1993
static char *e (p, i)
 
1994
     char **p;
 
1995
     int i;
 
1996
{
 
1997
  return p[i];
 
1998
}
 
1999
static char *f (char * (*g) (char **, int), char **p, ...)
 
2000
{
 
2001
  char *s;
 
2002
  va_list v;
 
2003
  va_start (v,p);
 
2004
  s = g (p, va_arg (v,int));
 
2005
  va_end (v);
 
2006
  return s;
 
2007
}
 
2008
 
 
2009
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2010
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2011
   These don't provoke an error unfortunately, instead are silently treated
 
2012
   as 'x'.  The following induces an error, until -std1 is added to get
 
2013
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2014
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2015
   that's true only with -std1.  */
 
2016
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2017
 
 
2018
int test (int i, double x);
 
2019
struct s1 {int (*f) (int a);};
 
2020
struct s2 {int (*f) (double a);};
 
2021
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2022
int argc;
 
2023
char **argv;
 
2024
int
 
2025
main ()
 
2026
{
 
2027
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2028
  ;
 
2029
  return 0;
 
2030
}
 
2031
_ACEOF
 
2032
# Don't try gcc -ansi; that turns off useful extensions and
 
2033
# breaks some systems' header files.
 
2034
# AIX                   -qlanglvl=ansi
 
2035
# Ultrix and OSF/1      -std1
 
2036
# HP-UX 10.20 and later -Ae
 
2037
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2038
# SVR4                  -Xc -D__EXTENSIONS__
 
2039
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2040
do
 
2041
  CC="$ac_save_CC $ac_arg"
 
2042
  rm -f conftest.$ac_objext
 
2043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2044
  (eval $ac_compile) 2>conftest.er1
 
2045
  ac_status=$?
 
2046
  grep -v '^ *+' conftest.er1 >conftest.err
 
2047
  rm -f conftest.er1
 
2048
  cat conftest.err >&5
 
2049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2050
  (exit $ac_status); } &&
 
2051
         { ac_try='test -z "$ac_c_werror_flag"
 
2052
                         || test ! -s conftest.err'
 
2053
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2054
  (eval $ac_try) 2>&5
 
2055
  ac_status=$?
 
2056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2057
  (exit $ac_status); }; } &&
 
2058
         { ac_try='test -s conftest.$ac_objext'
 
2059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2060
  (eval $ac_try) 2>&5
 
2061
  ac_status=$?
 
2062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2063
  (exit $ac_status); }; }; then
 
2064
  ac_cv_prog_cc_stdc=$ac_arg
 
2065
break
 
2066
else
 
2067
  echo "$as_me: failed program was:" >&5
 
2068
sed 's/^/| /' conftest.$ac_ext >&5
 
2069
 
 
2070
fi
 
2071
rm -f conftest.err conftest.$ac_objext
 
2072
done
 
2073
rm -f conftest.$ac_ext conftest.$ac_objext
 
2074
CC=$ac_save_CC
 
2075
 
 
2076
fi
 
2077
 
 
2078
case "x$ac_cv_prog_cc_stdc" in
 
2079
  x|xno)
 
2080
    echo "$as_me:$LINENO: result: none needed" >&5
 
2081
echo "${ECHO_T}none needed" >&6 ;;
 
2082
  *)
 
2083
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2084
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2085
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2086
esac
 
2087
 
 
2088
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2089
# in C++ we need to declare it.  In case someone uses the same compiler
 
2090
# for both compiling C and C++ we need to have the C++ compiler decide
 
2091
# the declaration of exit, since it's the most demanding environment.
 
2092
cat >conftest.$ac_ext <<_ACEOF
 
2093
#ifndef __cplusplus
 
2094
  choke me
 
2095
#endif
 
2096
_ACEOF
 
2097
rm -f conftest.$ac_objext
 
2098
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2099
  (eval $ac_compile) 2>conftest.er1
 
2100
  ac_status=$?
 
2101
  grep -v '^ *+' conftest.er1 >conftest.err
 
2102
  rm -f conftest.er1
 
2103
  cat conftest.err >&5
 
2104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2105
  (exit $ac_status); } &&
 
2106
         { ac_try='test -z "$ac_c_werror_flag"
 
2107
                         || test ! -s conftest.err'
 
2108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2109
  (eval $ac_try) 2>&5
 
2110
  ac_status=$?
 
2111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2112
  (exit $ac_status); }; } &&
 
2113
         { ac_try='test -s conftest.$ac_objext'
 
2114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2115
  (eval $ac_try) 2>&5
 
2116
  ac_status=$?
 
2117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2118
  (exit $ac_status); }; }; then
 
2119
  for ac_declaration in \
 
2120
   '' \
 
2121
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2122
   'extern "C" void std::exit (int); using std::exit;' \
 
2123
   'extern "C" void exit (int) throw ();' \
 
2124
   'extern "C" void exit (int);' \
 
2125
   'void exit (int);'
 
2126
do
 
2127
  cat >conftest.$ac_ext <<_ACEOF
 
2128
/* confdefs.h.  */
 
2129
_ACEOF
 
2130
cat confdefs.h >>conftest.$ac_ext
 
2131
cat >>conftest.$ac_ext <<_ACEOF
 
2132
/* end confdefs.h.  */
 
2133
$ac_declaration
 
2134
#include <stdlib.h>
 
2135
int
 
2136
main ()
 
2137
{
 
2138
exit (42);
 
2139
  ;
 
2140
  return 0;
 
2141
}
 
2142
_ACEOF
 
2143
rm -f conftest.$ac_objext
 
2144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2145
  (eval $ac_compile) 2>conftest.er1
 
2146
  ac_status=$?
 
2147
  grep -v '^ *+' conftest.er1 >conftest.err
 
2148
  rm -f conftest.er1
 
2149
  cat conftest.err >&5
 
2150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2151
  (exit $ac_status); } &&
 
2152
         { ac_try='test -z "$ac_c_werror_flag"
 
2153
                         || test ! -s conftest.err'
 
2154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2155
  (eval $ac_try) 2>&5
 
2156
  ac_status=$?
 
2157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2158
  (exit $ac_status); }; } &&
 
2159
         { ac_try='test -s conftest.$ac_objext'
 
2160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2161
  (eval $ac_try) 2>&5
 
2162
  ac_status=$?
 
2163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2164
  (exit $ac_status); }; }; then
 
2165
  :
 
2166
else
 
2167
  echo "$as_me: failed program was:" >&5
 
2168
sed 's/^/| /' conftest.$ac_ext >&5
 
2169
 
 
2170
continue
 
2171
fi
 
2172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2173
  cat >conftest.$ac_ext <<_ACEOF
 
2174
/* confdefs.h.  */
 
2175
_ACEOF
 
2176
cat confdefs.h >>conftest.$ac_ext
 
2177
cat >>conftest.$ac_ext <<_ACEOF
 
2178
/* end confdefs.h.  */
 
2179
$ac_declaration
 
2180
int
 
2181
main ()
 
2182
{
 
2183
exit (42);
 
2184
  ;
 
2185
  return 0;
 
2186
}
 
2187
_ACEOF
 
2188
rm -f conftest.$ac_objext
 
2189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2190
  (eval $ac_compile) 2>conftest.er1
 
2191
  ac_status=$?
 
2192
  grep -v '^ *+' conftest.er1 >conftest.err
 
2193
  rm -f conftest.er1
 
2194
  cat conftest.err >&5
 
2195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2196
  (exit $ac_status); } &&
 
2197
         { ac_try='test -z "$ac_c_werror_flag"
 
2198
                         || test ! -s conftest.err'
 
2199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2200
  (eval $ac_try) 2>&5
 
2201
  ac_status=$?
 
2202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2203
  (exit $ac_status); }; } &&
 
2204
         { ac_try='test -s conftest.$ac_objext'
 
2205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2206
  (eval $ac_try) 2>&5
 
2207
  ac_status=$?
 
2208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2209
  (exit $ac_status); }; }; then
 
2210
  break
 
2211
else
 
2212
  echo "$as_me: failed program was:" >&5
 
2213
sed 's/^/| /' conftest.$ac_ext >&5
 
2214
 
 
2215
fi
 
2216
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2217
done
 
2218
rm -f conftest*
 
2219
if test -n "$ac_declaration"; then
 
2220
  echo '#ifdef __cplusplus' >>confdefs.h
 
2221
  echo $ac_declaration      >>confdefs.h
 
2222
  echo '#endif'             >>confdefs.h
 
2223
fi
 
2224
 
 
2225
else
 
2226
  echo "$as_me: failed program was:" >&5
 
2227
sed 's/^/| /' conftest.$ac_ext >&5
 
2228
 
 
2229
fi
 
2230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2231
ac_ext=c
 
2232
ac_cpp='$CPP $CPPFLAGS'
 
2233
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2234
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2235
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2236
 
 
2237
 
 
2238
# Checks for libraries.
 
2239
 
 
2240
# Checks for header files.
 
2241
 
 
2242
ac_ext=c
 
2243
ac_cpp='$CPP $CPPFLAGS'
 
2244
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2245
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2246
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2247
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2248
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2249
# On Suns, sometimes $CPP names a directory.
 
2250
if test -n "$CPP" && test -d "$CPP"; then
 
2251
  CPP=
 
2252
fi
 
2253
if test -z "$CPP"; then
 
2254
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2256
else
 
2257
      # Double quotes because CPP needs to be expanded
 
2258
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2259
    do
 
2260
      ac_preproc_ok=false
 
2261
for ac_c_preproc_warn_flag in '' yes
 
2262
do
 
2263
  # Use a header file that comes with gcc, so configuring glibc
 
2264
  # with a fresh cross-compiler works.
 
2265
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2266
  # <limits.h> exists even on freestanding compilers.
 
2267
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2268
  # not just through cpp. "Syntax error" is here to catch this case.
 
2269
  cat >conftest.$ac_ext <<_ACEOF
 
2270
/* confdefs.h.  */
 
2271
_ACEOF
 
2272
cat confdefs.h >>conftest.$ac_ext
 
2273
cat >>conftest.$ac_ext <<_ACEOF
 
2274
/* end confdefs.h.  */
 
2275
#ifdef __STDC__
 
2276
# include <limits.h>
 
2277
#else
 
2278
# include <assert.h>
 
2279
#endif
 
2280
                     Syntax error
 
2281
_ACEOF
 
2282
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2283
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2284
  ac_status=$?
 
2285
  grep -v '^ *+' conftest.er1 >conftest.err
 
2286
  rm -f conftest.er1
 
2287
  cat conftest.err >&5
 
2288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2289
  (exit $ac_status); } >/dev/null; then
 
2290
  if test -s conftest.err; then
 
2291
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2292
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2293
  else
 
2294
    ac_cpp_err=
 
2295
  fi
 
2296
else
 
2297
  ac_cpp_err=yes
 
2298
fi
 
2299
if test -z "$ac_cpp_err"; then
 
2300
  :
 
2301
else
 
2302
  echo "$as_me: failed program was:" >&5
 
2303
sed 's/^/| /' conftest.$ac_ext >&5
 
2304
 
 
2305
  # Broken: fails on valid input.
 
2306
continue
 
2307
fi
 
2308
rm -f conftest.err conftest.$ac_ext
 
2309
 
 
2310
  # OK, works on sane cases.  Now check whether non-existent headers
 
2311
  # can be detected and how.
 
2312
  cat >conftest.$ac_ext <<_ACEOF
 
2313
/* confdefs.h.  */
 
2314
_ACEOF
 
2315
cat confdefs.h >>conftest.$ac_ext
 
2316
cat >>conftest.$ac_ext <<_ACEOF
 
2317
/* end confdefs.h.  */
 
2318
#include <ac_nonexistent.h>
 
2319
_ACEOF
 
2320
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2321
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2322
  ac_status=$?
 
2323
  grep -v '^ *+' conftest.er1 >conftest.err
 
2324
  rm -f conftest.er1
 
2325
  cat conftest.err >&5
 
2326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2327
  (exit $ac_status); } >/dev/null; then
 
2328
  if test -s conftest.err; then
 
2329
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2330
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2331
  else
 
2332
    ac_cpp_err=
 
2333
  fi
 
2334
else
 
2335
  ac_cpp_err=yes
 
2336
fi
 
2337
if test -z "$ac_cpp_err"; then
 
2338
  # Broken: success on invalid input.
 
2339
continue
 
2340
else
 
2341
  echo "$as_me: failed program was:" >&5
 
2342
sed 's/^/| /' conftest.$ac_ext >&5
 
2343
 
 
2344
  # Passes both tests.
 
2345
ac_preproc_ok=:
 
2346
break
 
2347
fi
 
2348
rm -f conftest.err conftest.$ac_ext
 
2349
 
 
2350
done
 
2351
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2352
rm -f conftest.err conftest.$ac_ext
 
2353
if $ac_preproc_ok; then
 
2354
  break
 
2355
fi
 
2356
 
 
2357
    done
 
2358
    ac_cv_prog_CPP=$CPP
 
2359
 
 
2360
fi
 
2361
  CPP=$ac_cv_prog_CPP
 
2362
else
 
2363
  ac_cv_prog_CPP=$CPP
 
2364
fi
 
2365
echo "$as_me:$LINENO: result: $CPP" >&5
 
2366
echo "${ECHO_T}$CPP" >&6
 
2367
ac_preproc_ok=false
 
2368
for ac_c_preproc_warn_flag in '' yes
 
2369
do
 
2370
  # Use a header file that comes with gcc, so configuring glibc
 
2371
  # with a fresh cross-compiler works.
 
2372
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2373
  # <limits.h> exists even on freestanding compilers.
 
2374
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2375
  # not just through cpp. "Syntax error" is here to catch this case.
 
2376
  cat >conftest.$ac_ext <<_ACEOF
 
2377
/* confdefs.h.  */
 
2378
_ACEOF
 
2379
cat confdefs.h >>conftest.$ac_ext
 
2380
cat >>conftest.$ac_ext <<_ACEOF
 
2381
/* end confdefs.h.  */
 
2382
#ifdef __STDC__
 
2383
# include <limits.h>
 
2384
#else
 
2385
# include <assert.h>
 
2386
#endif
 
2387
                     Syntax error
 
2388
_ACEOF
 
2389
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2390
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2391
  ac_status=$?
 
2392
  grep -v '^ *+' conftest.er1 >conftest.err
 
2393
  rm -f conftest.er1
 
2394
  cat conftest.err >&5
 
2395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2396
  (exit $ac_status); } >/dev/null; then
 
2397
  if test -s conftest.err; then
 
2398
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2399
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2400
  else
 
2401
    ac_cpp_err=
 
2402
  fi
 
2403
else
 
2404
  ac_cpp_err=yes
 
2405
fi
 
2406
if test -z "$ac_cpp_err"; then
 
2407
  :
 
2408
else
 
2409
  echo "$as_me: failed program was:" >&5
 
2410
sed 's/^/| /' conftest.$ac_ext >&5
 
2411
 
 
2412
  # Broken: fails on valid input.
 
2413
continue
 
2414
fi
 
2415
rm -f conftest.err conftest.$ac_ext
 
2416
 
 
2417
  # OK, works on sane cases.  Now check whether non-existent headers
 
2418
  # can be detected and how.
 
2419
  cat >conftest.$ac_ext <<_ACEOF
 
2420
/* confdefs.h.  */
 
2421
_ACEOF
 
2422
cat confdefs.h >>conftest.$ac_ext
 
2423
cat >>conftest.$ac_ext <<_ACEOF
 
2424
/* end confdefs.h.  */
 
2425
#include <ac_nonexistent.h>
 
2426
_ACEOF
 
2427
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2428
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2429
  ac_status=$?
 
2430
  grep -v '^ *+' conftest.er1 >conftest.err
 
2431
  rm -f conftest.er1
 
2432
  cat conftest.err >&5
 
2433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2434
  (exit $ac_status); } >/dev/null; then
 
2435
  if test -s conftest.err; then
 
2436
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2437
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2438
  else
 
2439
    ac_cpp_err=
 
2440
  fi
 
2441
else
 
2442
  ac_cpp_err=yes
 
2443
fi
 
2444
if test -z "$ac_cpp_err"; then
 
2445
  # Broken: success on invalid input.
 
2446
continue
 
2447
else
 
2448
  echo "$as_me: failed program was:" >&5
 
2449
sed 's/^/| /' conftest.$ac_ext >&5
 
2450
 
 
2451
  # Passes both tests.
 
2452
ac_preproc_ok=:
 
2453
break
 
2454
fi
 
2455
rm -f conftest.err conftest.$ac_ext
 
2456
 
 
2457
done
 
2458
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2459
rm -f conftest.err conftest.$ac_ext
 
2460
if $ac_preproc_ok; then
 
2461
  :
 
2462
else
 
2463
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2464
See \`config.log' for more details." >&5
 
2465
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2466
See \`config.log' for more details." >&2;}
 
2467
   { (exit 1); exit 1; }; }
 
2468
fi
 
2469
 
 
2470
ac_ext=c
 
2471
ac_cpp='$CPP $CPPFLAGS'
 
2472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2475
 
 
2476
 
 
2477
echo "$as_me:$LINENO: checking for egrep" >&5
 
2478
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2479
if test "${ac_cv_prog_egrep+set}" = set; then
 
2480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2481
else
 
2482
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2483
    then ac_cv_prog_egrep='grep -E'
 
2484
    else ac_cv_prog_egrep='egrep'
 
2485
    fi
 
2486
fi
 
2487
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2488
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2489
 EGREP=$ac_cv_prog_egrep
 
2490
 
 
2491
 
 
2492
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
2493
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
2494
if test "${ac_cv_header_stdc+set}" = set; then
 
2495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2496
else
 
2497
  cat >conftest.$ac_ext <<_ACEOF
 
2498
/* confdefs.h.  */
 
2499
_ACEOF
 
2500
cat confdefs.h >>conftest.$ac_ext
 
2501
cat >>conftest.$ac_ext <<_ACEOF
 
2502
/* end confdefs.h.  */
 
2503
#include <stdlib.h>
 
2504
#include <stdarg.h>
 
2505
#include <string.h>
 
2506
#include <float.h>
 
2507
 
 
2508
int
 
2509
main ()
 
2510
{
 
2511
 
 
2512
  ;
 
2513
  return 0;
 
2514
}
 
2515
_ACEOF
 
2516
rm -f conftest.$ac_objext
 
2517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2518
  (eval $ac_compile) 2>conftest.er1
 
2519
  ac_status=$?
 
2520
  grep -v '^ *+' conftest.er1 >conftest.err
 
2521
  rm -f conftest.er1
 
2522
  cat conftest.err >&5
 
2523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2524
  (exit $ac_status); } &&
 
2525
         { ac_try='test -z "$ac_c_werror_flag"
 
2526
                         || test ! -s conftest.err'
 
2527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2528
  (eval $ac_try) 2>&5
 
2529
  ac_status=$?
 
2530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2531
  (exit $ac_status); }; } &&
 
2532
         { ac_try='test -s conftest.$ac_objext'
 
2533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2534
  (eval $ac_try) 2>&5
 
2535
  ac_status=$?
 
2536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2537
  (exit $ac_status); }; }; then
 
2538
  ac_cv_header_stdc=yes
 
2539
else
 
2540
  echo "$as_me: failed program was:" >&5
 
2541
sed 's/^/| /' conftest.$ac_ext >&5
 
2542
 
 
2543
ac_cv_header_stdc=no
 
2544
fi
 
2545
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2546
 
 
2547
if test $ac_cv_header_stdc = yes; then
 
2548
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
2549
  cat >conftest.$ac_ext <<_ACEOF
 
2550
/* confdefs.h.  */
 
2551
_ACEOF
 
2552
cat confdefs.h >>conftest.$ac_ext
 
2553
cat >>conftest.$ac_ext <<_ACEOF
 
2554
/* end confdefs.h.  */
 
2555
#include <string.h>
 
2556
 
 
2557
_ACEOF
 
2558
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2559
  $EGREP "memchr" >/dev/null 2>&1; then
 
2560
  :
 
2561
else
 
2562
  ac_cv_header_stdc=no
 
2563
fi
 
2564
rm -f conftest*
 
2565
 
 
2566
fi
 
2567
 
 
2568
if test $ac_cv_header_stdc = yes; then
 
2569
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
2570
  cat >conftest.$ac_ext <<_ACEOF
 
2571
/* confdefs.h.  */
 
2572
_ACEOF
 
2573
cat confdefs.h >>conftest.$ac_ext
 
2574
cat >>conftest.$ac_ext <<_ACEOF
 
2575
/* end confdefs.h.  */
 
2576
#include <stdlib.h>
 
2577
 
 
2578
_ACEOF
 
2579
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2580
  $EGREP "free" >/dev/null 2>&1; then
 
2581
  :
 
2582
else
 
2583
  ac_cv_header_stdc=no
 
2584
fi
 
2585
rm -f conftest*
 
2586
 
 
2587
fi
 
2588
 
 
2589
if test $ac_cv_header_stdc = yes; then
 
2590
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
2591
  if test "$cross_compiling" = yes; then
 
2592
  :
 
2593
else
 
2594
  cat >conftest.$ac_ext <<_ACEOF
 
2595
/* confdefs.h.  */
 
2596
_ACEOF
 
2597
cat confdefs.h >>conftest.$ac_ext
 
2598
cat >>conftest.$ac_ext <<_ACEOF
 
2599
/* end confdefs.h.  */
 
2600
#include <ctype.h>
 
2601
#if ((' ' & 0x0FF) == 0x020)
 
2602
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
2603
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
2604
#else
 
2605
# define ISLOWER(c) \
 
2606
                   (('a' <= (c) && (c) <= 'i') \
 
2607
                     || ('j' <= (c) && (c) <= 'r') \
 
2608
                     || ('s' <= (c) && (c) <= 'z'))
 
2609
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
2610
#endif
 
2611
 
 
2612
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
2613
int
 
2614
main ()
 
2615
{
 
2616
  int i;
 
2617
  for (i = 0; i < 256; i++)
 
2618
    if (XOR (islower (i), ISLOWER (i))
 
2619
        || toupper (i) != TOUPPER (i))
 
2620
      exit(2);
 
2621
  exit (0);
 
2622
}
 
2623
_ACEOF
 
2624
rm -f conftest$ac_exeext
 
2625
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2626
  (eval $ac_link) 2>&5
 
2627
  ac_status=$?
 
2628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2629
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
2630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2631
  (eval $ac_try) 2>&5
 
2632
  ac_status=$?
 
2633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2634
  (exit $ac_status); }; }; then
 
2635
  :
 
2636
else
 
2637
  echo "$as_me: program exited with status $ac_status" >&5
 
2638
echo "$as_me: failed program was:" >&5
 
2639
sed 's/^/| /' conftest.$ac_ext >&5
 
2640
 
 
2641
( exit $ac_status )
 
2642
ac_cv_header_stdc=no
 
2643
fi
 
2644
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
2645
fi
 
2646
fi
 
2647
fi
 
2648
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
2649
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
2650
if test $ac_cv_header_stdc = yes; then
 
2651
 
 
2652
cat >>confdefs.h <<\_ACEOF
 
2653
#define STDC_HEADERS 1
 
2654
_ACEOF
 
2655
 
 
2656
fi
 
2657
 
 
2658
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
2659
 
 
2660
 
 
2661
 
 
2662
 
 
2663
 
 
2664
 
 
2665
 
 
2666
 
 
2667
 
 
2668
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
2669
                  inttypes.h stdint.h unistd.h
 
2670
do
 
2671
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
2672
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
2673
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
2674
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2675
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2676
else
 
2677
  cat >conftest.$ac_ext <<_ACEOF
 
2678
/* confdefs.h.  */
 
2679
_ACEOF
 
2680
cat confdefs.h >>conftest.$ac_ext
 
2681
cat >>conftest.$ac_ext <<_ACEOF
 
2682
/* end confdefs.h.  */
 
2683
$ac_includes_default
 
2684
 
 
2685
#include <$ac_header>
 
2686
_ACEOF
 
2687
rm -f conftest.$ac_objext
 
2688
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2689
  (eval $ac_compile) 2>conftest.er1
 
2690
  ac_status=$?
 
2691
  grep -v '^ *+' conftest.er1 >conftest.err
 
2692
  rm -f conftest.er1
 
2693
  cat conftest.err >&5
 
2694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2695
  (exit $ac_status); } &&
 
2696
         { ac_try='test -z "$ac_c_werror_flag"
 
2697
                         || test ! -s conftest.err'
 
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); }; } &&
 
2703
         { ac_try='test -s conftest.$ac_objext'
 
2704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2705
  (eval $ac_try) 2>&5
 
2706
  ac_status=$?
 
2707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2708
  (exit $ac_status); }; }; then
 
2709
  eval "$as_ac_Header=yes"
 
2710
else
 
2711
  echo "$as_me: failed program was:" >&5
 
2712
sed 's/^/| /' conftest.$ac_ext >&5
 
2713
 
 
2714
eval "$as_ac_Header=no"
 
2715
fi
 
2716
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2717
fi
 
2718
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
2719
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
2720
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
2721
  cat >>confdefs.h <<_ACEOF
 
2722
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
2723
_ACEOF
 
2724
 
 
2725
fi
 
2726
 
 
2727
done
 
2728
 
 
2729
 
 
2730
 
 
2731
 
 
2732
 
 
2733
 
 
2734
for ac_header in stdlib.h string.h unistd.h getopt.h
 
2735
do
 
2736
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
2737
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2738
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
2739
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
2740
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2742
fi
 
2743
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
2744
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
2745
else
 
2746
  # Is the header compilable?
 
2747
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
2748
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
2749
cat >conftest.$ac_ext <<_ACEOF
 
2750
/* confdefs.h.  */
 
2751
_ACEOF
 
2752
cat confdefs.h >>conftest.$ac_ext
 
2753
cat >>conftest.$ac_ext <<_ACEOF
 
2754
/* end confdefs.h.  */
 
2755
$ac_includes_default
 
2756
#include <$ac_header>
 
2757
_ACEOF
 
2758
rm -f conftest.$ac_objext
 
2759
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2760
  (eval $ac_compile) 2>conftest.er1
 
2761
  ac_status=$?
 
2762
  grep -v '^ *+' conftest.er1 >conftest.err
 
2763
  rm -f conftest.er1
 
2764
  cat conftest.err >&5
 
2765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2766
  (exit $ac_status); } &&
 
2767
         { ac_try='test -z "$ac_c_werror_flag"
 
2768
                         || test ! -s conftest.err'
 
2769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2770
  (eval $ac_try) 2>&5
 
2771
  ac_status=$?
 
2772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2773
  (exit $ac_status); }; } &&
 
2774
         { ac_try='test -s conftest.$ac_objext'
 
2775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2776
  (eval $ac_try) 2>&5
 
2777
  ac_status=$?
 
2778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2779
  (exit $ac_status); }; }; then
 
2780
  ac_header_compiler=yes
 
2781
else
 
2782
  echo "$as_me: failed program was:" >&5
 
2783
sed 's/^/| /' conftest.$ac_ext >&5
 
2784
 
 
2785
ac_header_compiler=no
 
2786
fi
 
2787
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2788
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
2789
echo "${ECHO_T}$ac_header_compiler" >&6
 
2790
 
 
2791
# Is the header present?
 
2792
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
2793
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
2794
cat >conftest.$ac_ext <<_ACEOF
 
2795
/* confdefs.h.  */
 
2796
_ACEOF
 
2797
cat confdefs.h >>conftest.$ac_ext
 
2798
cat >>conftest.$ac_ext <<_ACEOF
 
2799
/* end confdefs.h.  */
 
2800
#include <$ac_header>
 
2801
_ACEOF
 
2802
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2803
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2804
  ac_status=$?
 
2805
  grep -v '^ *+' conftest.er1 >conftest.err
 
2806
  rm -f conftest.er1
 
2807
  cat conftest.err >&5
 
2808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2809
  (exit $ac_status); } >/dev/null; then
 
2810
  if test -s conftest.err; then
 
2811
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2812
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2813
  else
 
2814
    ac_cpp_err=
 
2815
  fi
 
2816
else
 
2817
  ac_cpp_err=yes
 
2818
fi
 
2819
if test -z "$ac_cpp_err"; then
 
2820
  ac_header_preproc=yes
 
2821
else
 
2822
  echo "$as_me: failed program was:" >&5
 
2823
sed 's/^/| /' conftest.$ac_ext >&5
 
2824
 
 
2825
  ac_header_preproc=no
 
2826
fi
 
2827
rm -f conftest.err conftest.$ac_ext
 
2828
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
2829
echo "${ECHO_T}$ac_header_preproc" >&6
 
2830
 
 
2831
# So?  What about this header?
 
2832
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
2833
  yes:no: )
 
2834
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
2835
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2836
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
2837
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
2838
    ac_header_preproc=yes
 
2839
    ;;
 
2840
  no:yes:* )
 
2841
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
2842
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
2843
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
2844
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
2845
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
2846
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
2847
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
2848
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2849
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
2850
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
2851
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
2852
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
2853
    (
 
2854
      cat <<\_ASBOX
 
2855
## --------------------------------- ##
 
2856
## Report this to BUG-REPORT-ADDRESS ##
 
2857
## --------------------------------- ##
 
2858
_ASBOX
 
2859
    ) |
 
2860
      sed "s/^/$as_me: WARNING:     /" >&2
 
2861
    ;;
 
2862
esac
 
2863
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
2864
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
2865
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2866
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2867
else
 
2868
  eval "$as_ac_Header=\$ac_header_preproc"
 
2869
fi
 
2870
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
2871
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
2872
 
 
2873
fi
 
2874
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
2875
  cat >>confdefs.h <<_ACEOF
 
2876
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
2877
_ACEOF
 
2878
 
 
2879
fi
 
2880
 
 
2881
done
 
2882
 
 
2883
 
 
2884
# Checks for typedefs, structures, and compiler characteristics.
 
2885
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
2886
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
2887
if test "${ac_cv_c_const+set}" = set; then
 
2888
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2889
else
 
2890
  cat >conftest.$ac_ext <<_ACEOF
 
2891
/* confdefs.h.  */
 
2892
_ACEOF
 
2893
cat confdefs.h >>conftest.$ac_ext
 
2894
cat >>conftest.$ac_ext <<_ACEOF
 
2895
/* end confdefs.h.  */
 
2896
 
 
2897
int
 
2898
main ()
 
2899
{
 
2900
/* FIXME: Include the comments suggested by Paul. */
 
2901
#ifndef __cplusplus
 
2902
  /* Ultrix mips cc rejects this.  */
 
2903
  typedef int charset[2];
 
2904
  const charset x;
 
2905
  /* SunOS 4.1.1 cc rejects this.  */
 
2906
  char const *const *ccp;
 
2907
  char **p;
 
2908
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
2909
  struct point {int x, y;};
 
2910
  static struct point const zero = {0,0};
 
2911
  /* AIX XL C 1.02.0.0 rejects this.
 
2912
     It does not let you subtract one const X* pointer from another in
 
2913
     an arm of an if-expression whose if-part is not a constant
 
2914
     expression */
 
2915
  const char *g = "string";
 
2916
  ccp = &g + (g ? g-g : 0);
 
2917
  /* HPUX 7.0 cc rejects these. */
 
2918
  ++ccp;
 
2919
  p = (char**) ccp;
 
2920
  ccp = (char const *const *) p;
 
2921
  { /* SCO 3.2v4 cc rejects this.  */
 
2922
    char *t;
 
2923
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
2924
 
 
2925
    *t++ = 0;
 
2926
  }
 
2927
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
2928
    int x[] = {25, 17};
 
2929
    const int *foo = &x[0];
 
2930
    ++foo;
 
2931
  }
 
2932
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
2933
    typedef const int *iptr;
 
2934
    iptr p = 0;
 
2935
    ++p;
 
2936
  }
 
2937
  { /* AIX XL C 1.02.0.0 rejects this saying
 
2938
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
2939
    struct s { int j; const int *ap[3]; };
 
2940
    struct s *b; b->j = 5;
 
2941
  }
 
2942
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
2943
    const int foo = 10;
 
2944
  }
 
2945
#endif
 
2946
 
 
2947
  ;
 
2948
  return 0;
 
2949
}
 
2950
_ACEOF
 
2951
rm -f conftest.$ac_objext
 
2952
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2953
  (eval $ac_compile) 2>conftest.er1
 
2954
  ac_status=$?
 
2955
  grep -v '^ *+' conftest.er1 >conftest.err
 
2956
  rm -f conftest.er1
 
2957
  cat conftest.err >&5
 
2958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2959
  (exit $ac_status); } &&
 
2960
         { ac_try='test -z "$ac_c_werror_flag"
 
2961
                         || test ! -s conftest.err'
 
2962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2963
  (eval $ac_try) 2>&5
 
2964
  ac_status=$?
 
2965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2966
  (exit $ac_status); }; } &&
 
2967
         { ac_try='test -s conftest.$ac_objext'
 
2968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2969
  (eval $ac_try) 2>&5
 
2970
  ac_status=$?
 
2971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2972
  (exit $ac_status); }; }; then
 
2973
  ac_cv_c_const=yes
 
2974
else
 
2975
  echo "$as_me: failed program was:" >&5
 
2976
sed 's/^/| /' conftest.$ac_ext >&5
 
2977
 
 
2978
ac_cv_c_const=no
 
2979
fi
 
2980
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2981
fi
 
2982
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
2983
echo "${ECHO_T}$ac_cv_c_const" >&6
 
2984
if test $ac_cv_c_const = no; then
 
2985
 
 
2986
cat >>confdefs.h <<\_ACEOF
 
2987
#define const
 
2988
_ACEOF
 
2989
 
 
2990
fi
 
2991
 
 
2992
 
 
2993
# Checks for library functions.
 
2994
 
 
2995
for ac_header in stdlib.h
 
2996
do
 
2997
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
2998
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2999
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3000
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3001
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3002
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3003
fi
 
3004
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3005
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3006
else
 
3007
  # Is the header compilable?
 
3008
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3009
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3010
cat >conftest.$ac_ext <<_ACEOF
 
3011
/* confdefs.h.  */
 
3012
_ACEOF
 
3013
cat confdefs.h >>conftest.$ac_ext
 
3014
cat >>conftest.$ac_ext <<_ACEOF
 
3015
/* end confdefs.h.  */
 
3016
$ac_includes_default
 
3017
#include <$ac_header>
 
3018
_ACEOF
 
3019
rm -f conftest.$ac_objext
 
3020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3021
  (eval $ac_compile) 2>conftest.er1
 
3022
  ac_status=$?
 
3023
  grep -v '^ *+' conftest.er1 >conftest.err
 
3024
  rm -f conftest.er1
 
3025
  cat conftest.err >&5
 
3026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3027
  (exit $ac_status); } &&
 
3028
         { ac_try='test -z "$ac_c_werror_flag"
 
3029
                         || test ! -s conftest.err'
 
3030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3031
  (eval $ac_try) 2>&5
 
3032
  ac_status=$?
 
3033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3034
  (exit $ac_status); }; } &&
 
3035
         { ac_try='test -s conftest.$ac_objext'
 
3036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3037
  (eval $ac_try) 2>&5
 
3038
  ac_status=$?
 
3039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3040
  (exit $ac_status); }; }; then
 
3041
  ac_header_compiler=yes
 
3042
else
 
3043
  echo "$as_me: failed program was:" >&5
 
3044
sed 's/^/| /' conftest.$ac_ext >&5
 
3045
 
 
3046
ac_header_compiler=no
 
3047
fi
 
3048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3049
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3050
echo "${ECHO_T}$ac_header_compiler" >&6
 
3051
 
 
3052
# Is the header present?
 
3053
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3054
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3055
cat >conftest.$ac_ext <<_ACEOF
 
3056
/* confdefs.h.  */
 
3057
_ACEOF
 
3058
cat confdefs.h >>conftest.$ac_ext
 
3059
cat >>conftest.$ac_ext <<_ACEOF
 
3060
/* end confdefs.h.  */
 
3061
#include <$ac_header>
 
3062
_ACEOF
 
3063
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3064
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3065
  ac_status=$?
 
3066
  grep -v '^ *+' conftest.er1 >conftest.err
 
3067
  rm -f conftest.er1
 
3068
  cat conftest.err >&5
 
3069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3070
  (exit $ac_status); } >/dev/null; then
 
3071
  if test -s conftest.err; then
 
3072
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3073
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3074
  else
 
3075
    ac_cpp_err=
 
3076
  fi
 
3077
else
 
3078
  ac_cpp_err=yes
 
3079
fi
 
3080
if test -z "$ac_cpp_err"; then
 
3081
  ac_header_preproc=yes
 
3082
else
 
3083
  echo "$as_me: failed program was:" >&5
 
3084
sed 's/^/| /' conftest.$ac_ext >&5
 
3085
 
 
3086
  ac_header_preproc=no
 
3087
fi
 
3088
rm -f conftest.err conftest.$ac_ext
 
3089
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3090
echo "${ECHO_T}$ac_header_preproc" >&6
 
3091
 
 
3092
# So?  What about this header?
 
3093
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3094
  yes:no: )
 
3095
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3096
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3097
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
3098
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
3099
    ac_header_preproc=yes
 
3100
    ;;
 
3101
  no:yes:* )
 
3102
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3103
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3104
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
3105
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
3106
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
3107
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
3108
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
3109
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3110
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3111
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3112
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
3113
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
3114
    (
 
3115
      cat <<\_ASBOX
 
3116
## --------------------------------- ##
 
3117
## Report this to BUG-REPORT-ADDRESS ##
 
3118
## --------------------------------- ##
 
3119
_ASBOX
 
3120
    ) |
 
3121
      sed "s/^/$as_me: WARNING:     /" >&2
 
3122
    ;;
 
3123
esac
 
3124
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3125
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3126
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3128
else
 
3129
  eval "$as_ac_Header=\$ac_header_preproc"
 
3130
fi
 
3131
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3132
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3133
 
 
3134
fi
 
3135
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3136
  cat >>confdefs.h <<_ACEOF
 
3137
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3138
_ACEOF
 
3139
 
 
3140
fi
 
3141
 
 
3142
done
 
3143
 
 
3144
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
3145
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
3146
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
3147
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3148
else
 
3149
  if test "$cross_compiling" = yes; then
 
3150
  ac_cv_func_malloc_0_nonnull=no
 
3151
else
 
3152
  cat >conftest.$ac_ext <<_ACEOF
 
3153
/* confdefs.h.  */
 
3154
_ACEOF
 
3155
cat confdefs.h >>conftest.$ac_ext
 
3156
cat >>conftest.$ac_ext <<_ACEOF
 
3157
/* end confdefs.h.  */
 
3158
#if STDC_HEADERS || HAVE_STDLIB_H
 
3159
# include <stdlib.h>
 
3160
#else
 
3161
char *malloc ();
 
3162
#endif
 
3163
 
 
3164
int
 
3165
main ()
 
3166
{
 
3167
exit (malloc (0) ? 0 : 1);
 
3168
  ;
 
3169
  return 0;
 
3170
}
 
3171
_ACEOF
 
3172
rm -f conftest$ac_exeext
 
3173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3174
  (eval $ac_link) 2>&5
 
3175
  ac_status=$?
 
3176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3177
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3179
  (eval $ac_try) 2>&5
 
3180
  ac_status=$?
 
3181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3182
  (exit $ac_status); }; }; then
 
3183
  ac_cv_func_malloc_0_nonnull=yes
 
3184
else
 
3185
  echo "$as_me: program exited with status $ac_status" >&5
 
3186
echo "$as_me: failed program was:" >&5
 
3187
sed 's/^/| /' conftest.$ac_ext >&5
 
3188
 
 
3189
( exit $ac_status )
 
3190
ac_cv_func_malloc_0_nonnull=no
 
3191
fi
 
3192
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3193
fi
 
3194
fi
 
3195
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
3196
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
3197
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
3198
 
 
3199
cat >>confdefs.h <<\_ACEOF
 
3200
#define HAVE_MALLOC 1
 
3201
_ACEOF
 
3202
 
 
3203
else
 
3204
  cat >>confdefs.h <<\_ACEOF
 
3205
#define HAVE_MALLOC 0
 
3206
_ACEOF
 
3207
 
 
3208
   case $LIBOBJS in
 
3209
    "malloc.$ac_objext"   | \
 
3210
  *" malloc.$ac_objext"   | \
 
3211
    "malloc.$ac_objext "* | \
 
3212
  *" malloc.$ac_objext "* ) ;;
 
3213
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
 
3214
esac
 
3215
 
 
3216
 
 
3217
cat >>confdefs.h <<\_ACEOF
 
3218
#define malloc rpl_malloc
 
3219
_ACEOF
 
3220
 
 
3221
fi
 
3222
 
 
3223
 
 
3224
 
 
3225
 
 
3226
for ac_header in stdlib.h
 
3227
do
 
3228
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3229
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3230
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3231
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3232
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3233
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3234
fi
 
3235
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3236
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3237
else
 
3238
  # Is the header compilable?
 
3239
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3240
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3241
cat >conftest.$ac_ext <<_ACEOF
 
3242
/* confdefs.h.  */
 
3243
_ACEOF
 
3244
cat confdefs.h >>conftest.$ac_ext
 
3245
cat >>conftest.$ac_ext <<_ACEOF
 
3246
/* end confdefs.h.  */
 
3247
$ac_includes_default
 
3248
#include <$ac_header>
 
3249
_ACEOF
 
3250
rm -f conftest.$ac_objext
 
3251
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3252
  (eval $ac_compile) 2>conftest.er1
 
3253
  ac_status=$?
 
3254
  grep -v '^ *+' conftest.er1 >conftest.err
 
3255
  rm -f conftest.er1
 
3256
  cat conftest.err >&5
 
3257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3258
  (exit $ac_status); } &&
 
3259
         { ac_try='test -z "$ac_c_werror_flag"
 
3260
                         || test ! -s conftest.err'
 
3261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3262
  (eval $ac_try) 2>&5
 
3263
  ac_status=$?
 
3264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3265
  (exit $ac_status); }; } &&
 
3266
         { ac_try='test -s conftest.$ac_objext'
 
3267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3268
  (eval $ac_try) 2>&5
 
3269
  ac_status=$?
 
3270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3271
  (exit $ac_status); }; }; then
 
3272
  ac_header_compiler=yes
 
3273
else
 
3274
  echo "$as_me: failed program was:" >&5
 
3275
sed 's/^/| /' conftest.$ac_ext >&5
 
3276
 
 
3277
ac_header_compiler=no
 
3278
fi
 
3279
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3280
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3281
echo "${ECHO_T}$ac_header_compiler" >&6
 
3282
 
 
3283
# Is the header present?
 
3284
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3285
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3286
cat >conftest.$ac_ext <<_ACEOF
 
3287
/* confdefs.h.  */
 
3288
_ACEOF
 
3289
cat confdefs.h >>conftest.$ac_ext
 
3290
cat >>conftest.$ac_ext <<_ACEOF
 
3291
/* end confdefs.h.  */
 
3292
#include <$ac_header>
 
3293
_ACEOF
 
3294
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3295
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3296
  ac_status=$?
 
3297
  grep -v '^ *+' conftest.er1 >conftest.err
 
3298
  rm -f conftest.er1
 
3299
  cat conftest.err >&5
 
3300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3301
  (exit $ac_status); } >/dev/null; then
 
3302
  if test -s conftest.err; then
 
3303
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3304
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3305
  else
 
3306
    ac_cpp_err=
 
3307
  fi
 
3308
else
 
3309
  ac_cpp_err=yes
 
3310
fi
 
3311
if test -z "$ac_cpp_err"; then
 
3312
  ac_header_preproc=yes
 
3313
else
 
3314
  echo "$as_me: failed program was:" >&5
 
3315
sed 's/^/| /' conftest.$ac_ext >&5
 
3316
 
 
3317
  ac_header_preproc=no
 
3318
fi
 
3319
rm -f conftest.err conftest.$ac_ext
 
3320
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3321
echo "${ECHO_T}$ac_header_preproc" >&6
 
3322
 
 
3323
# So?  What about this header?
 
3324
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3325
  yes:no: )
 
3326
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3327
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3328
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
3329
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
3330
    ac_header_preproc=yes
 
3331
    ;;
 
3332
  no:yes:* )
 
3333
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3334
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3335
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
3336
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
3337
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
3338
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
3339
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
3340
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3341
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3342
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3343
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
3344
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
3345
    (
 
3346
      cat <<\_ASBOX
 
3347
## --------------------------------- ##
 
3348
## Report this to BUG-REPORT-ADDRESS ##
 
3349
## --------------------------------- ##
 
3350
_ASBOX
 
3351
    ) |
 
3352
      sed "s/^/$as_me: WARNING:     /" >&2
 
3353
    ;;
 
3354
esac
 
3355
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3356
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3357
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3359
else
 
3360
  eval "$as_ac_Header=\$ac_header_preproc"
 
3361
fi
 
3362
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3363
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3364
 
 
3365
fi
 
3366
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3367
  cat >>confdefs.h <<_ACEOF
 
3368
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3369
_ACEOF
 
3370
 
 
3371
fi
 
3372
 
 
3373
done
 
3374
 
 
3375
echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
 
3376
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
 
3377
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
 
3378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3379
else
 
3380
  if test "$cross_compiling" = yes; then
 
3381
  ac_cv_func_realloc_0_nonnull=no
 
3382
else
 
3383
  cat >conftest.$ac_ext <<_ACEOF
 
3384
/* confdefs.h.  */
 
3385
_ACEOF
 
3386
cat confdefs.h >>conftest.$ac_ext
 
3387
cat >>conftest.$ac_ext <<_ACEOF
 
3388
/* end confdefs.h.  */
 
3389
#if STDC_HEADERS || HAVE_STDLIB_H
 
3390
# include <stdlib.h>
 
3391
#else
 
3392
char *realloc ();
 
3393
#endif
 
3394
 
 
3395
int
 
3396
main ()
 
3397
{
 
3398
exit (realloc (0, 0) ? 0 : 1);
 
3399
  ;
 
3400
  return 0;
 
3401
}
 
3402
_ACEOF
 
3403
rm -f conftest$ac_exeext
 
3404
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3405
  (eval $ac_link) 2>&5
 
3406
  ac_status=$?
 
3407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3408
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3410
  (eval $ac_try) 2>&5
 
3411
  ac_status=$?
 
3412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3413
  (exit $ac_status); }; }; then
 
3414
  ac_cv_func_realloc_0_nonnull=yes
 
3415
else
 
3416
  echo "$as_me: program exited with status $ac_status" >&5
 
3417
echo "$as_me: failed program was:" >&5
 
3418
sed 's/^/| /' conftest.$ac_ext >&5
 
3419
 
 
3420
( exit $ac_status )
 
3421
ac_cv_func_realloc_0_nonnull=no
 
3422
fi
 
3423
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3424
fi
 
3425
fi
 
3426
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
 
3427
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
 
3428
if test $ac_cv_func_realloc_0_nonnull = yes; then
 
3429
 
 
3430
cat >>confdefs.h <<\_ACEOF
 
3431
#define HAVE_REALLOC 1
 
3432
_ACEOF
 
3433
 
 
3434
else
 
3435
  cat >>confdefs.h <<\_ACEOF
 
3436
#define HAVE_REALLOC 0
 
3437
_ACEOF
 
3438
 
 
3439
   case $LIBOBJS in
 
3440
    "realloc.$ac_objext"   | \
 
3441
  *" realloc.$ac_objext"   | \
 
3442
    "realloc.$ac_objext "* | \
 
3443
  *" realloc.$ac_objext "* ) ;;
 
3444
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
 
3445
esac
 
3446
 
 
3447
 
 
3448
cat >>confdefs.h <<\_ACEOF
 
3449
#define realloc rpl_realloc
 
3450
_ACEOF
 
3451
 
 
3452
fi
 
3453
 
 
3454
 
 
3455
 
 
3456
 
 
3457
          ac_config_files="$ac_config_files Makefile"
 
3458
 
 
3459
cat >confcache <<\_ACEOF
 
3460
# This file is a shell script that caches the results of configure
 
3461
# tests run on this system so they can be shared between configure
 
3462
# scripts and configure runs, see configure's option --config-cache.
 
3463
# It is not useful on other systems.  If it contains results you don't
 
3464
# want to keep, you may remove or edit it.
 
3465
#
 
3466
# config.status only pays attention to the cache file if you give it
 
3467
# the --recheck option to rerun configure.
 
3468
#
 
3469
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
3470
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
3471
# following values.
 
3472
 
 
3473
_ACEOF
 
3474
 
 
3475
# The following way of writing the cache mishandles newlines in values,
 
3476
# but we know of no workaround that is simple, portable, and efficient.
 
3477
# So, don't put newlines in cache variables' values.
 
3478
# Ultrix sh set writes to stderr and can't be redirected directly,
 
3479
# and sets the high bit in the cache file unless we assign to the vars.
 
3480
{
 
3481
  (set) 2>&1 |
 
3482
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
3483
    *ac_space=\ *)
 
3484
      # `set' does not quote correctly, so add quotes (double-quote
 
3485
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
3486
      sed -n \
 
3487
        "s/'/'\\\\''/g;
 
3488
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
3489
      ;;
 
3490
    *)
 
3491
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
3492
      sed -n \
 
3493
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
3494
      ;;
 
3495
    esac;
 
3496
} |
 
3497
  sed '
 
3498
     t clear
 
3499
     : clear
 
3500
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
3501
     t end
 
3502
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
3503
     : end' >>confcache
 
3504
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
3505
  if test -w $cache_file; then
 
3506
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
3507
    cat confcache >$cache_file
 
3508
  else
 
3509
    echo "not updating unwritable cache $cache_file"
 
3510
  fi
 
3511
fi
 
3512
rm -f confcache
 
3513
 
 
3514
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
3515
# Let make expand exec_prefix.
 
3516
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
3517
 
 
3518
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
3519
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
3520
# trailing colons and then remove the whole line if VPATH becomes empty
 
3521
# (actually we leave an empty line to preserve line numbers).
 
3522
if test "x$srcdir" = x.; then
 
3523
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
3524
s/:*\$(srcdir):*/:/;
 
3525
s/:*\${srcdir}:*/:/;
 
3526
s/:*@srcdir@:*/:/;
 
3527
s/^\([^=]*=[     ]*\):*/\1/;
 
3528
s/:*$//;
 
3529
s/^[^=]*=[       ]*$//;
 
3530
}'
 
3531
fi
 
3532
 
 
3533
DEFS=-DHAVE_CONFIG_H
 
3534
 
 
3535
ac_libobjs=
 
3536
ac_ltlibobjs=
 
3537
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
3538
  # 1. Remove the extension, and $U if already installed.
 
3539
  ac_i=`echo "$ac_i" |
 
3540
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
3541
  # 2. Add them.
 
3542
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
3543
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
3544
done
 
3545
LIBOBJS=$ac_libobjs
 
3546
 
 
3547
LTLIBOBJS=$ac_ltlibobjs
 
3548
 
 
3549
 
 
3550
 
 
3551
: ${CONFIG_STATUS=./config.status}
 
3552
ac_clean_files_save=$ac_clean_files
 
3553
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
3554
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
3555
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
3556
cat >$CONFIG_STATUS <<_ACEOF
 
3557
#! $SHELL
 
3558
# Generated by $as_me.
 
3559
# Run this file to recreate the current configuration.
 
3560
# Compiler output produced by configure, useful for debugging
 
3561
# configure, is in config.log if it exists.
 
3562
 
 
3563
debug=false
 
3564
ac_cs_recheck=false
 
3565
ac_cs_silent=false
 
3566
SHELL=\${CONFIG_SHELL-$SHELL}
 
3567
_ACEOF
 
3568
 
 
3569
cat >>$CONFIG_STATUS <<\_ACEOF
 
3570
## --------------------- ##
 
3571
## M4sh Initialization.  ##
 
3572
## --------------------- ##
 
3573
 
 
3574
# Be Bourne compatible
 
3575
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
3576
  emulate sh
 
3577
  NULLCMD=:
 
3578
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
3579
  # is contrary to our usage.  Disable this feature.
 
3580
  alias -g '${1+"$@"}'='"$@"'
 
3581
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
3582
  set -o posix
 
3583
fi
 
3584
DUALCASE=1; export DUALCASE # for MKS sh
 
3585
 
 
3586
# Support unset when possible.
 
3587
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
3588
  as_unset=unset
 
3589
else
 
3590
  as_unset=false
 
3591
fi
 
3592
 
 
3593
 
 
3594
# Work around bugs in pre-3.0 UWIN ksh.
 
3595
$as_unset ENV MAIL MAILPATH
 
3596
PS1='$ '
 
3597
PS2='> '
 
3598
PS4='+ '
 
3599
 
 
3600
# NLS nuisances.
 
3601
for as_var in \
 
3602
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
3603
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
3604
  LC_TELEPHONE LC_TIME
 
3605
do
 
3606
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
3607
    eval $as_var=C; export $as_var
 
3608
  else
 
3609
    $as_unset $as_var
 
3610
  fi
 
3611
done
 
3612
 
 
3613
# Required to use basename.
 
3614
if expr a : '\(a\)' >/dev/null 2>&1; then
 
3615
  as_expr=expr
 
3616
else
 
3617
  as_expr=false
 
3618
fi
 
3619
 
 
3620
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
3621
  as_basename=basename
 
3622
else
 
3623
  as_basename=false
 
3624
fi
 
3625
 
 
3626
 
 
3627
# Name of the executable.
 
3628
as_me=`$as_basename "$0" ||
 
3629
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
3630
         X"$0" : 'X\(//\)$' \| \
 
3631
         X"$0" : 'X\(/\)$' \| \
 
3632
         .     : '\(.\)' 2>/dev/null ||
 
3633
echo X/"$0" |
 
3634
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
3635
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
3636
          /^X\/\(\/\).*/{ s//\1/; q; }
 
3637
          s/.*/./; q'`
 
3638
 
 
3639
 
 
3640
# PATH needs CR, and LINENO needs CR and PATH.
 
3641
# Avoid depending upon Character Ranges.
 
3642
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
3643
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
3644
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
3645
as_cr_digits='0123456789'
 
3646
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
3647
 
 
3648
# The user is always right.
 
3649
if test "${PATH_SEPARATOR+set}" != set; then
 
3650
  echo "#! /bin/sh" >conf$$.sh
 
3651
  echo  "exit 0"   >>conf$$.sh
 
3652
  chmod +x conf$$.sh
 
3653
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3654
    PATH_SEPARATOR=';'
 
3655
  else
 
3656
    PATH_SEPARATOR=:
 
3657
  fi
 
3658
  rm -f conf$$.sh
 
3659
fi
 
3660
 
 
3661
 
 
3662
  as_lineno_1=$LINENO
 
3663
  as_lineno_2=$LINENO
 
3664
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
3665
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
3666
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
3667
  # Find who we are.  Look in the path if we contain no path at all
 
3668
  # relative or not.
 
3669
  case $0 in
 
3670
    *[\\/]* ) as_myself=$0 ;;
 
3671
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3672
for as_dir in $PATH
 
3673
do
 
3674
  IFS=$as_save_IFS
 
3675
  test -z "$as_dir" && as_dir=.
 
3676
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
3677
done
 
3678
 
 
3679
       ;;
 
3680
  esac
 
3681
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
3682
  # in which case we are not to be found in the path.
 
3683
  if test "x$as_myself" = x; then
 
3684
    as_myself=$0
 
3685
  fi
 
3686
  if test ! -f "$as_myself"; then
 
3687
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
3688
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
3689
   { (exit 1); exit 1; }; }
 
3690
  fi
 
3691
  case $CONFIG_SHELL in
 
3692
  '')
 
3693
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3694
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
3695
do
 
3696
  IFS=$as_save_IFS
 
3697
  test -z "$as_dir" && as_dir=.
 
3698
  for as_base in sh bash ksh sh5; do
 
3699
         case $as_dir in
 
3700
         /*)
 
3701
           if ("$as_dir/$as_base" -c '
 
3702
  as_lineno_1=$LINENO
 
3703
  as_lineno_2=$LINENO
 
3704
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
3705
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
3706
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
3707
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
3708
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
3709
             CONFIG_SHELL=$as_dir/$as_base
 
3710
             export CONFIG_SHELL
 
3711
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
3712
           fi;;
 
3713
         esac
 
3714
       done
 
3715
done
 
3716
;;
 
3717
  esac
 
3718
 
 
3719
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
3720
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
3721
  # line-number line before each line; the second 'sed' does the real
 
3722
  # work.  The second script uses 'N' to pair each line-number line
 
3723
  # with the numbered line, and appends trailing '-' during
 
3724
  # substitution so that $LINENO is not a special case at line end.
 
3725
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
3726
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
3727
  sed '=' <$as_myself |
 
3728
    sed '
 
3729
      N
 
3730
      s,$,-,
 
3731
      : loop
 
3732
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
3733
      t loop
 
3734
      s,-$,,
 
3735
      s,^['$as_cr_digits']*\n,,
 
3736
    ' >$as_me.lineno &&
 
3737
  chmod +x $as_me.lineno ||
 
3738
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
3739
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
3740
   { (exit 1); exit 1; }; }
 
3741
 
 
3742
  # Don't try to exec as it changes $[0], causing all sort of problems
 
3743
  # (the dirname of $[0] is not the place where we might find the
 
3744
  # original and so on.  Autoconf is especially sensible to this).
 
3745
  . ./$as_me.lineno
 
3746
  # Exit status is that of the last command.
 
3747
  exit
 
3748
}
 
3749
 
 
3750
 
 
3751
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
3752
  *c*,-n*) ECHO_N= ECHO_C='
 
3753
' ECHO_T='      ' ;;
 
3754
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
3755
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
3756
esac
 
3757
 
 
3758
if expr a : '\(a\)' >/dev/null 2>&1; then
 
3759
  as_expr=expr
 
3760
else
 
3761
  as_expr=false
 
3762
fi
 
3763
 
 
3764
rm -f conf$$ conf$$.exe conf$$.file
 
3765
echo >conf$$.file
 
3766
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
3767
  # We could just check for DJGPP; but this test a) works b) is more generic
 
3768
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
3769
  if test -f conf$$.exe; then
 
3770
    # Don't use ln at all; we don't have any links
 
3771
    as_ln_s='cp -p'
 
3772
  else
 
3773
    as_ln_s='ln -s'
 
3774
  fi
 
3775
elif ln conf$$.file conf$$ 2>/dev/null; then
 
3776
  as_ln_s=ln
 
3777
else
 
3778
  as_ln_s='cp -p'
 
3779
fi
 
3780
rm -f conf$$ conf$$.exe conf$$.file
 
3781
 
 
3782
if mkdir -p . 2>/dev/null; then
 
3783
  as_mkdir_p=:
 
3784
else
 
3785
  test -d ./-p && rmdir ./-p
 
3786
  as_mkdir_p=false
 
3787
fi
 
3788
 
 
3789
as_executable_p="test -f"
 
3790
 
 
3791
# Sed expression to map a string onto a valid CPP name.
 
3792
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
3793
 
 
3794
# Sed expression to map a string onto a valid variable name.
 
3795
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
3796
 
 
3797
 
 
3798
# IFS
 
3799
# We need space, tab and new line, in precisely that order.
 
3800
as_nl='
 
3801
'
 
3802
IFS="   $as_nl"
 
3803
 
 
3804
# CDPATH.
 
3805
$as_unset CDPATH
 
3806
 
 
3807
exec 6>&1
 
3808
 
 
3809
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
3810
# report actual input values of CONFIG_FILES etc. instead of their
 
3811
# values after options handling.  Logging --version etc. is OK.
 
3812
exec 5>>config.log
 
3813
{
 
3814
  echo
 
3815
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
3816
## Running $as_me. ##
 
3817
_ASBOX
 
3818
} >&5
 
3819
cat >&5 <<_CSEOF
 
3820
 
 
3821
This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
 
3822
generated by GNU Autoconf 2.59.  Invocation command line was
 
3823
 
 
3824
  CONFIG_FILES    = $CONFIG_FILES
 
3825
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
3826
  CONFIG_LINKS    = $CONFIG_LINKS
 
3827
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
3828
  $ $0 $@
 
3829
 
 
3830
_CSEOF
 
3831
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
3832
echo >&5
 
3833
_ACEOF
 
3834
 
 
3835
# Files that config.status was made for.
 
3836
if test -n "$ac_config_files"; then
 
3837
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
3838
fi
 
3839
 
 
3840
if test -n "$ac_config_headers"; then
 
3841
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
3842
fi
 
3843
 
 
3844
if test -n "$ac_config_links"; then
 
3845
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
3846
fi
 
3847
 
 
3848
if test -n "$ac_config_commands"; then
 
3849
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
3850
fi
 
3851
 
 
3852
cat >>$CONFIG_STATUS <<\_ACEOF
 
3853
 
 
3854
ac_cs_usage="\
 
3855
\`$as_me' instantiates files from templates according to the
 
3856
current configuration.
 
3857
 
 
3858
Usage: $0 [OPTIONS] [FILE]...
 
3859
 
 
3860
  -h, --help       print this help, then exit
 
3861
  -V, --version    print version number, then exit
 
3862
  -q, --quiet      do not print progress messages
 
3863
  -d, --debug      don't remove temporary files
 
3864
      --recheck    update $as_me by reconfiguring in the same conditions
 
3865
  --file=FILE[:TEMPLATE]
 
3866
                   instantiate the configuration file FILE
 
3867
  --header=FILE[:TEMPLATE]
 
3868
                   instantiate the configuration header FILE
 
3869
 
 
3870
Configuration files:
 
3871
$config_files
 
3872
 
 
3873
Configuration headers:
 
3874
$config_headers
 
3875
 
 
3876
Report bugs to <bug-autoconf@gnu.org>."
 
3877
_ACEOF
 
3878
 
 
3879
cat >>$CONFIG_STATUS <<_ACEOF
 
3880
ac_cs_version="\\
 
3881
FULL-PACKAGE-NAME config.status VERSION
 
3882
configured by $0, generated by GNU Autoconf 2.59,
 
3883
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
3884
 
 
3885
Copyright (C) 2003 Free Software Foundation, Inc.
 
3886
This config.status script is free software; the Free Software Foundation
 
3887
gives unlimited permission to copy, distribute and modify it."
 
3888
srcdir=$srcdir
 
3889
_ACEOF
 
3890
 
 
3891
cat >>$CONFIG_STATUS <<\_ACEOF
 
3892
# If no file are specified by the user, then we need to provide default
 
3893
# value.  By we need to know if files were specified by the user.
 
3894
ac_need_defaults=:
 
3895
while test $# != 0
 
3896
do
 
3897
  case $1 in
 
3898
  --*=*)
 
3899
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
3900
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
3901
    ac_shift=:
 
3902
    ;;
 
3903
  -*)
 
3904
    ac_option=$1
 
3905
    ac_optarg=$2
 
3906
    ac_shift=shift
 
3907
    ;;
 
3908
  *) # This is not an option, so the user has probably given explicit
 
3909
     # arguments.
 
3910
     ac_option=$1
 
3911
     ac_need_defaults=false;;
 
3912
  esac
 
3913
 
 
3914
  case $ac_option in
 
3915
  # Handling of the options.
 
3916
_ACEOF
 
3917
cat >>$CONFIG_STATUS <<\_ACEOF
 
3918
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
3919
    ac_cs_recheck=: ;;
 
3920
  --version | --vers* | -V )
 
3921
    echo "$ac_cs_version"; exit 0 ;;
 
3922
  --he | --h)
 
3923
    # Conflict between --help and --header
 
3924
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
3925
Try \`$0 --help' for more information." >&5
 
3926
echo "$as_me: error: ambiguous option: $1
 
3927
Try \`$0 --help' for more information." >&2;}
 
3928
   { (exit 1); exit 1; }; };;
 
3929
  --help | --hel | -h )
 
3930
    echo "$ac_cs_usage"; exit 0 ;;
 
3931
  --debug | --d* | -d )
 
3932
    debug=: ;;
 
3933
  --file | --fil | --fi | --f )
 
3934
    $ac_shift
 
3935
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
3936
    ac_need_defaults=false;;
 
3937
  --header | --heade | --head | --hea )
 
3938
    $ac_shift
 
3939
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
3940
    ac_need_defaults=false;;
 
3941
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
3942
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
3943
    ac_cs_silent=: ;;
 
3944
 
 
3945
  # This is an error.
 
3946
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
3947
Try \`$0 --help' for more information." >&5
 
3948
echo "$as_me: error: unrecognized option: $1
 
3949
Try \`$0 --help' for more information." >&2;}
 
3950
   { (exit 1); exit 1; }; } ;;
 
3951
 
 
3952
  *) ac_config_targets="$ac_config_targets $1" ;;
 
3953
 
 
3954
  esac
 
3955
  shift
 
3956
done
 
3957
 
 
3958
ac_configure_extra_args=
 
3959
 
 
3960
if $ac_cs_silent; then
 
3961
  exec 6>/dev/null
 
3962
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
3963
fi
 
3964
 
 
3965
_ACEOF
 
3966
cat >>$CONFIG_STATUS <<_ACEOF
 
3967
if \$ac_cs_recheck; then
 
3968
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
3969
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
3970
fi
 
3971
 
 
3972
_ACEOF
 
3973
 
 
3974
 
 
3975
 
 
3976
 
 
3977
 
 
3978
cat >>$CONFIG_STATUS <<\_ACEOF
 
3979
for ac_config_target in $ac_config_targets
 
3980
do
 
3981
  case "$ac_config_target" in
 
3982
  # Handling of arguments.
 
3983
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
3984
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
3985
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
3986
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
3987
   { (exit 1); exit 1; }; };;
 
3988
  esac
 
3989
done
 
3990
 
 
3991
# If the user did not use the arguments to specify the items to instantiate,
 
3992
# then the envvar interface is used.  Set only those that are not.
 
3993
# We use the long form for the default assignment because of an extremely
 
3994
# bizarre bug on SunOS 4.1.3.
 
3995
if $ac_need_defaults; then
 
3996
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
3997
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
3998
fi
 
3999
 
 
4000
# Have a temporary directory for convenience.  Make it in the build tree
 
4001
# simply because there is no reason to put it here, and in addition,
 
4002
# creating and moving files from /tmp can sometimes cause problems.
 
4003
# Create a temporary directory, and hook for its removal unless debugging.
 
4004
$debug ||
 
4005
{
 
4006
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
4007
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
4008
}
 
4009
 
 
4010
# Create a (secure) tmp directory for tmp files.
 
4011
 
 
4012
{
 
4013
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
4014
  test -n "$tmp" && test -d "$tmp"
 
4015
}  ||
 
4016
{
 
4017
  tmp=./confstat$$-$RANDOM
 
4018
  (umask 077 && mkdir $tmp)
 
4019
} ||
 
4020
{
 
4021
   echo "$me: cannot create a temporary directory in ." >&2
 
4022
   { (exit 1); exit 1; }
 
4023
}
 
4024
 
 
4025
_ACEOF
 
4026
 
 
4027
cat >>$CONFIG_STATUS <<_ACEOF
 
4028
 
 
4029
#
 
4030
# CONFIG_FILES section.
 
4031
#
 
4032
 
 
4033
# No need to generate the scripts if there are no CONFIG_FILES.
 
4034
# This happens for instance when ./config.status config.h
 
4035
if test -n "\$CONFIG_FILES"; then
 
4036
  # Protect against being on the right side of a sed subst in config.status.
 
4037
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
4038
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
4039
s,@SHELL@,$SHELL,;t t
 
4040
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
4041
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
4042
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
4043
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
4044
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
4045
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
4046
s,@exec_prefix@,$exec_prefix,;t t
 
4047
s,@prefix@,$prefix,;t t
 
4048
s,@program_transform_name@,$program_transform_name,;t t
 
4049
s,@bindir@,$bindir,;t t
 
4050
s,@sbindir@,$sbindir,;t t
 
4051
s,@libexecdir@,$libexecdir,;t t
 
4052
s,@datadir@,$datadir,;t t
 
4053
s,@sysconfdir@,$sysconfdir,;t t
 
4054
s,@sharedstatedir@,$sharedstatedir,;t t
 
4055
s,@localstatedir@,$localstatedir,;t t
 
4056
s,@libdir@,$libdir,;t t
 
4057
s,@includedir@,$includedir,;t t
 
4058
s,@oldincludedir@,$oldincludedir,;t t
 
4059
s,@infodir@,$infodir,;t t
 
4060
s,@mandir@,$mandir,;t t
 
4061
s,@build_alias@,$build_alias,;t t
 
4062
s,@host_alias@,$host_alias,;t t
 
4063
s,@target_alias@,$target_alias,;t t
 
4064
s,@DEFS@,$DEFS,;t t
 
4065
s,@ECHO_C@,$ECHO_C,;t t
 
4066
s,@ECHO_N@,$ECHO_N,;t t
 
4067
s,@ECHO_T@,$ECHO_T,;t t
 
4068
s,@LIBS@,$LIBS,;t t
 
4069
s,@CC@,$CC,;t t
 
4070
s,@CFLAGS@,$CFLAGS,;t t
 
4071
s,@LDFLAGS@,$LDFLAGS,;t t
 
4072
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
4073
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
4074
s,@EXEEXT@,$EXEEXT,;t t
 
4075
s,@OBJEXT@,$OBJEXT,;t t
 
4076
s,@CPP@,$CPP,;t t
 
4077
s,@EGREP@,$EGREP,;t t
 
4078
s,@LIBOBJS@,$LIBOBJS,;t t
 
4079
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
4080
CEOF
 
4081
 
 
4082
_ACEOF
 
4083
 
 
4084
  cat >>$CONFIG_STATUS <<\_ACEOF
 
4085
  # Split the substitutions into bite-sized pieces for seds with
 
4086
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
4087
  ac_max_sed_lines=48
 
4088
  ac_sed_frag=1 # Number of current file.
 
4089
  ac_beg=1 # First line for current file.
 
4090
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
4091
  ac_more_lines=:
 
4092
  ac_sed_cmds=
 
4093
  while $ac_more_lines; do
 
4094
    if test $ac_beg -gt 1; then
 
4095
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
4096
    else
 
4097
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
4098
    fi
 
4099
    if test ! -s $tmp/subs.frag; then
 
4100
      ac_more_lines=false
 
4101
    else
 
4102
      # The purpose of the label and of the branching condition is to
 
4103
      # speed up the sed processing (if there are no `@' at all, there
 
4104
      # is no need to browse any of the substitutions).
 
4105
      # These are the two extra sed commands mentioned above.
 
4106
      (echo ':t
 
4107
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
4108
      if test -z "$ac_sed_cmds"; then
 
4109
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
4110
      else
 
4111
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
4112
      fi
 
4113
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
4114
      ac_beg=$ac_end
 
4115
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
4116
    fi
 
4117
  done
 
4118
  if test -z "$ac_sed_cmds"; then
 
4119
    ac_sed_cmds=cat
 
4120
  fi
 
4121
fi # test -n "$CONFIG_FILES"
 
4122
 
 
4123
_ACEOF
 
4124
cat >>$CONFIG_STATUS <<\_ACEOF
 
4125
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
4126
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
4127
  case $ac_file in
 
4128
  - | *:- | *:-:* ) # input from stdin
 
4129
        cat >$tmp/stdin
 
4130
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4131
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4132
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4133
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4134
  * )   ac_file_in=$ac_file.in ;;
 
4135
  esac
 
4136
 
 
4137
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
4138
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
4139
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4140
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
4141
         X"$ac_file" : 'X\(//\)$' \| \
 
4142
         X"$ac_file" : 'X\(/\)' \| \
 
4143
         .     : '\(.\)' 2>/dev/null ||
 
4144
echo X"$ac_file" |
 
4145
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4146
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4147
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4148
          /^X\(\/\).*/{ s//\1/; q; }
 
4149
          s/.*/./; q'`
 
4150
  { if $as_mkdir_p; then
 
4151
    mkdir -p "$ac_dir"
 
4152
  else
 
4153
    as_dir="$ac_dir"
 
4154
    as_dirs=
 
4155
    while test ! -d "$as_dir"; do
 
4156
      as_dirs="$as_dir $as_dirs"
 
4157
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
4158
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4159
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
4160
         X"$as_dir" : 'X\(//\)$' \| \
 
4161
         X"$as_dir" : 'X\(/\)' \| \
 
4162
         .     : '\(.\)' 2>/dev/null ||
 
4163
echo X"$as_dir" |
 
4164
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4165
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4166
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4167
          /^X\(\/\).*/{ s//\1/; q; }
 
4168
          s/.*/./; q'`
 
4169
    done
 
4170
    test ! -n "$as_dirs" || mkdir $as_dirs
 
4171
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
4172
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
4173
   { (exit 1); exit 1; }; }; }
 
4174
 
 
4175
  ac_builddir=.
 
4176
 
 
4177
if test "$ac_dir" != .; then
 
4178
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
4179
  # A "../" for each directory in $ac_dir_suffix.
 
4180
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
4181
else
 
4182
  ac_dir_suffix= ac_top_builddir=
 
4183
fi
 
4184
 
 
4185
case $srcdir in
 
4186
  .)  # No --srcdir option.  We are building in place.
 
4187
    ac_srcdir=.
 
4188
    if test -z "$ac_top_builddir"; then
 
4189
       ac_top_srcdir=.
 
4190
    else
 
4191
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
4192
    fi ;;
 
4193
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
4194
    ac_srcdir=$srcdir$ac_dir_suffix;
 
4195
    ac_top_srcdir=$srcdir ;;
 
4196
  *) # Relative path.
 
4197
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
4198
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
4199
esac
 
4200
 
 
4201
# Do not use `cd foo && pwd` to compute absolute paths, because
 
4202
# the directories may not exist.
 
4203
case `pwd` in
 
4204
.) ac_abs_builddir="$ac_dir";;
 
4205
*)
 
4206
  case "$ac_dir" in
 
4207
  .) ac_abs_builddir=`pwd`;;
 
4208
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
4209
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
4210
  esac;;
 
4211
esac
 
4212
case $ac_abs_builddir in
 
4213
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
4214
*)
 
4215
  case ${ac_top_builddir}. in
 
4216
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
4217
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
4218
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
4219
  esac;;
 
4220
esac
 
4221
case $ac_abs_builddir in
 
4222
.) ac_abs_srcdir=$ac_srcdir;;
 
4223
*)
 
4224
  case $ac_srcdir in
 
4225
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
4226
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
4227
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
4228
  esac;;
 
4229
esac
 
4230
case $ac_abs_builddir in
 
4231
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
4232
*)
 
4233
  case $ac_top_srcdir in
 
4234
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
4235
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
4236
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
4237
  esac;;
 
4238
esac
 
4239
 
 
4240
 
 
4241
 
 
4242
  if test x"$ac_file" != x-; then
 
4243
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
4244
echo "$as_me: creating $ac_file" >&6;}
 
4245
    rm -f "$ac_file"
 
4246
  fi
 
4247
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
4248
  # use $as_me), people would be surprised to read:
 
4249
  #    /* config.h.  Generated by config.status.  */
 
4250
  if test x"$ac_file" = x-; then
 
4251
    configure_input=
 
4252
  else
 
4253
    configure_input="$ac_file.  "
 
4254
  fi
 
4255
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
4256
                                     sed 's,.*/,,'` by configure."
 
4257
 
 
4258
  # First look for the input files in the build tree, otherwise in the
 
4259
  # src tree.
 
4260
  ac_file_inputs=`IFS=:
 
4261
    for f in $ac_file_in; do
 
4262
      case $f in
 
4263
      -) echo $tmp/stdin ;;
 
4264
      [\\/$]*)
 
4265
         # Absolute (can't be DOS-style, as IFS=:)
 
4266
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4267
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4268
   { (exit 1); exit 1; }; }
 
4269
         echo "$f";;
 
4270
      *) # Relative
 
4271
         if test -f "$f"; then
 
4272
           # Build tree
 
4273
           echo "$f"
 
4274
         elif test -f "$srcdir/$f"; then
 
4275
           # Source tree
 
4276
           echo "$srcdir/$f"
 
4277
         else
 
4278
           # /dev/null tree
 
4279
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4280
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4281
   { (exit 1); exit 1; }; }
 
4282
         fi;;
 
4283
      esac
 
4284
    done` || { (exit 1); exit 1; }
 
4285
_ACEOF
 
4286
cat >>$CONFIG_STATUS <<_ACEOF
 
4287
  sed "$ac_vpsub
 
4288
$extrasub
 
4289
_ACEOF
 
4290
cat >>$CONFIG_STATUS <<\_ACEOF
 
4291
:t
 
4292
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
4293
s,@configure_input@,$configure_input,;t t
 
4294
s,@srcdir@,$ac_srcdir,;t t
 
4295
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
4296
s,@top_srcdir@,$ac_top_srcdir,;t t
 
4297
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
4298
s,@builddir@,$ac_builddir,;t t
 
4299
s,@abs_builddir@,$ac_abs_builddir,;t t
 
4300
s,@top_builddir@,$ac_top_builddir,;t t
 
4301
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
4302
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
4303
  rm -f $tmp/stdin
 
4304
  if test x"$ac_file" != x-; then
 
4305
    mv $tmp/out $ac_file
 
4306
  else
 
4307
    cat $tmp/out
 
4308
    rm -f $tmp/out
 
4309
  fi
 
4310
 
 
4311
done
 
4312
_ACEOF
 
4313
cat >>$CONFIG_STATUS <<\_ACEOF
 
4314
 
 
4315
#
 
4316
# CONFIG_HEADER section.
 
4317
#
 
4318
 
 
4319
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
4320
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
4321
#
 
4322
# ac_d sets the value in "#define NAME VALUE" lines.
 
4323
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
4324
ac_dB='[         ].*$,\1#\2'
 
4325
ac_dC=' '
 
4326
ac_dD=',;t'
 
4327
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
4328
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
4329
ac_uB='$,\1#\2define\3'
 
4330
ac_uC=' '
 
4331
ac_uD=',;t'
 
4332
 
 
4333
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
4334
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
4335
  case $ac_file in
 
4336
  - | *:- | *:-:* ) # input from stdin
 
4337
        cat >$tmp/stdin
 
4338
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4339
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4340
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4341
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4342
  * )   ac_file_in=$ac_file.in ;;
 
4343
  esac
 
4344
 
 
4345
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
4346
echo "$as_me: creating $ac_file" >&6;}
 
4347
 
 
4348
  # First look for the input files in the build tree, otherwise in the
 
4349
  # src tree.
 
4350
  ac_file_inputs=`IFS=:
 
4351
    for f in $ac_file_in; do
 
4352
      case $f in
 
4353
      -) echo $tmp/stdin ;;
 
4354
      [\\/$]*)
 
4355
         # Absolute (can't be DOS-style, as IFS=:)
 
4356
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4357
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4358
   { (exit 1); exit 1; }; }
 
4359
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
4360
         echo "$f";;
 
4361
      *) # Relative
 
4362
         if test -f "$f"; then
 
4363
           # Build tree
 
4364
           echo "$f"
 
4365
         elif test -f "$srcdir/$f"; then
 
4366
           # Source tree
 
4367
           echo "$srcdir/$f"
 
4368
         else
 
4369
           # /dev/null tree
 
4370
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4371
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4372
   { (exit 1); exit 1; }; }
 
4373
         fi;;
 
4374
      esac
 
4375
    done` || { (exit 1); exit 1; }
 
4376
  # Remove the trailing spaces.
 
4377
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
4378
 
 
4379
_ACEOF
 
4380
 
 
4381
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
4382
# `conftest.undefs', that substitutes the proper values into
 
4383
# config.h.in to produce config.h.  The first handles `#define'
 
4384
# templates, and the second `#undef' templates.
 
4385
# And first: Protect against being on the right side of a sed subst in
 
4386
# config.status.  Protect against being in an unquoted here document
 
4387
# in config.status.
 
4388
rm -f conftest.defines conftest.undefs
 
4389
# Using a here document instead of a string reduces the quoting nightmare.
 
4390
# Putting comments in sed scripts is not portable.
 
4391
#
 
4392
# `end' is used to avoid that the second main sed command (meant for
 
4393
# 0-ary CPP macros) applies to n-ary macro definitions.
 
4394
# See the Autoconf documentation for `clear'.
 
4395
cat >confdef2sed.sed <<\_ACEOF
 
4396
s/[\\&,]/\\&/g
 
4397
s,[\\$`],\\&,g
 
4398
t clear
 
4399
: clear
 
4400
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
4401
t end
 
4402
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
4403
: end
 
4404
_ACEOF
 
4405
# If some macros were called several times there might be several times
 
4406
# the same #defines, which is useless.  Nevertheless, we may not want to
 
4407
# sort them, since we want the *last* AC-DEFINE to be honored.
 
4408
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
4409
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
4410
rm -f confdef2sed.sed
 
4411
 
 
4412
# This sed command replaces #undef with comments.  This is necessary, for
 
4413
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
4414
# on some systems where configure will not decide to define it.
 
4415
cat >>conftest.undefs <<\_ACEOF
 
4416
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
4417
_ACEOF
 
4418
 
 
4419
# Break up conftest.defines because some shells have a limit on the size
 
4420
# of here documents, and old seds have small limits too (100 cmds).
 
4421
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
4422
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
4423
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
4424
echo '  :' >>$CONFIG_STATUS
 
4425
rm -f conftest.tail
 
4426
while grep . conftest.defines >/dev/null
 
4427
do
 
4428
  # Write a limited-size here document to $tmp/defines.sed.
 
4429
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
4430
  # Speed up: don't consider the non `#define' lines.
 
4431
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
4432
  # Work around the forget-to-reset-the-flag bug.
 
4433
  echo 't clr' >>$CONFIG_STATUS
 
4434
  echo ': clr' >>$CONFIG_STATUS
 
4435
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
4436
  echo 'CEOF
 
4437
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
4438
  rm -f $tmp/in
 
4439
  mv $tmp/out $tmp/in
 
4440
' >>$CONFIG_STATUS
 
4441
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
4442
  rm -f conftest.defines
 
4443
  mv conftest.tail conftest.defines
 
4444
done
 
4445
rm -f conftest.defines
 
4446
echo '  fi # grep' >>$CONFIG_STATUS
 
4447
echo >>$CONFIG_STATUS
 
4448
 
 
4449
# Break up conftest.undefs because some shells have a limit on the size
 
4450
# of here documents, and old seds have small limits too (100 cmds).
 
4451
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
4452
rm -f conftest.tail
 
4453
while grep . conftest.undefs >/dev/null
 
4454
do
 
4455
  # Write a limited-size here document to $tmp/undefs.sed.
 
4456
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
4457
  # Speed up: don't consider the non `#undef'
 
4458
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
4459
  # Work around the forget-to-reset-the-flag bug.
 
4460
  echo 't clr' >>$CONFIG_STATUS
 
4461
  echo ': clr' >>$CONFIG_STATUS
 
4462
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
4463
  echo 'CEOF
 
4464
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
4465
  rm -f $tmp/in
 
4466
  mv $tmp/out $tmp/in
 
4467
' >>$CONFIG_STATUS
 
4468
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
4469
  rm -f conftest.undefs
 
4470
  mv conftest.tail conftest.undefs
 
4471
done
 
4472
rm -f conftest.undefs
 
4473
 
 
4474
cat >>$CONFIG_STATUS <<\_ACEOF
 
4475
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
4476
  # use $as_me), people would be surprised to read:
 
4477
  #    /* config.h.  Generated by config.status.  */
 
4478
  if test x"$ac_file" = x-; then
 
4479
    echo "/* Generated by configure.  */" >$tmp/config.h
 
4480
  else
 
4481
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
4482
  fi
 
4483
  cat $tmp/in >>$tmp/config.h
 
4484
  rm -f $tmp/in
 
4485
  if test x"$ac_file" != x-; then
 
4486
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
4487
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
4488
echo "$as_me: $ac_file is unchanged" >&6;}
 
4489
    else
 
4490
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
4491
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4492
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
4493
         X"$ac_file" : 'X\(//\)$' \| \
 
4494
         X"$ac_file" : 'X\(/\)' \| \
 
4495
         .     : '\(.\)' 2>/dev/null ||
 
4496
echo X"$ac_file" |
 
4497
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4498
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4499
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4500
          /^X\(\/\).*/{ s//\1/; q; }
 
4501
          s/.*/./; q'`
 
4502
      { if $as_mkdir_p; then
 
4503
    mkdir -p "$ac_dir"
 
4504
  else
 
4505
    as_dir="$ac_dir"
 
4506
    as_dirs=
 
4507
    while test ! -d "$as_dir"; do
 
4508
      as_dirs="$as_dir $as_dirs"
 
4509
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
4510
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4511
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
4512
         X"$as_dir" : 'X\(//\)$' \| \
 
4513
         X"$as_dir" : 'X\(/\)' \| \
 
4514
         .     : '\(.\)' 2>/dev/null ||
 
4515
echo X"$as_dir" |
 
4516
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4517
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4518
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4519
          /^X\(\/\).*/{ s//\1/; q; }
 
4520
          s/.*/./; q'`
 
4521
    done
 
4522
    test ! -n "$as_dirs" || mkdir $as_dirs
 
4523
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
4524
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
4525
   { (exit 1); exit 1; }; }; }
 
4526
 
 
4527
      rm -f $ac_file
 
4528
      mv $tmp/config.h $ac_file
 
4529
    fi
 
4530
  else
 
4531
    cat $tmp/config.h
 
4532
    rm -f $tmp/config.h
 
4533
  fi
 
4534
done
 
4535
_ACEOF
 
4536
 
 
4537
cat >>$CONFIG_STATUS <<\_ACEOF
 
4538
 
 
4539
{ (exit 0); exit 0; }
 
4540
_ACEOF
 
4541
chmod +x $CONFIG_STATUS
 
4542
ac_clean_files=$ac_clean_files_save
 
4543
 
 
4544
 
 
4545
# configure is writing to config.log, and then calls config.status.
 
4546
# config.status does its own redirection, appending to config.log.
 
4547
# Unfortunately, on DOS this fails, as config.log is still kept open
 
4548
# by configure, so config.status won't be able to write to it; its
 
4549
# output is simply discarded.  So we exec the FD to /dev/null,
 
4550
# effectively closing config.log, so it can be properly (re)opened and
 
4551
# appended to by config.status.  When coming back to configure, we
 
4552
# need to make the FD available again.
 
4553
if test "$no_create" != yes; then
 
4554
  ac_cs_success=:
 
4555
  ac_config_status_args=
 
4556
  test "$silent" = yes &&
 
4557
    ac_config_status_args="$ac_config_status_args --quiet"
 
4558
  exec 5>/dev/null
 
4559
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
4560
  exec 5>>config.log
 
4561
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
4562
  # would make configure fail if this is the last instruction.
 
4563
  $ac_cs_success || { (exit 1); exit 1; }
 
4564
fi
 
4565