OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [intl/] [configure] - Blame information for rev 831

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.