2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
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
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
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 \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
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
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
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
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
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
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; }; }
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).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe 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
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
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'"
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'"
235
# We need space, tab and new line, in precisely that order.
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`
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
260
SHELL=${CONFIG_SHELL-/bin/sh}
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}
267
# Identity of this package.
274
ac_unique_file="include/attributes.h"
275
ac_default_prefix=/usr
276
# Factoring default headers for most tests.
277
ac_includes_default="\
280
# include <sys/types.h>
283
# include <sys/stat.h>
294
# if !STDC_HEADERS && HAVE_MEMORY_H
300
# include <strings.h>
303
# include <inttypes.h>
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS enable_shared enable_gettext enable_lib64 pkg_name pkg_version pkg_release debug_build opt_build malloc_lib pkg_user pkg_group pkg_distribution pkg_platform CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT cc MAKE make LIBTOOL libtool TAR tar ZIP zip MAKEDEPEND makedepend AWK awk SED sed ECHO echo SORT sort LN_S MSGFMT msgfmt MSGMERGE msgmerge XGETTEXT xgettext RPM rpm rpm_version RPMBUILD rpmbuild have_zipped_manpages libdirsuffix CPP EGREP ALLOCA LIBOBJS LTLIBOBJS'
316
# Initialize some variables set by options.
318
ac_init_version=false
319
# The variables have the same names as the options, with
320
# dashes changed to underlines.
328
program_transform_name=s,x,x,
336
# Installation directory options.
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
338
# and all the variables that are supposed to be based on exec_prefix
339
# by default will actually change.
340
# Use braces instead of parens because sh, perl, etc. also accept them.
341
bindir='${exec_prefix}/bin'
342
sbindir='${exec_prefix}/sbin'
343
libexecdir='${exec_prefix}/libexec'
344
datadir='${prefix}/share'
345
sysconfdir='${prefix}/etc'
346
sharedstatedir='${prefix}/com'
347
localstatedir='${prefix}/var'
348
libdir='${exec_prefix}/lib'
349
includedir='${prefix}/include'
350
oldincludedir='/usr/include'
351
infodir='${prefix}/info'
352
mandir='${prefix}/man'
357
# If the previous option needs an argument, assign it.
358
if test -n "$ac_prev"; then
359
eval "$ac_prev=\$ac_option"
364
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
# Accept the important Cygnus configure options, so we can diagnose typos.
370
-bindir | --bindir | --bindi | --bind | --bin | --bi)
372
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375
-build | --build | --buil | --bui | --bu)
376
ac_prev=build_alias ;;
377
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
378
build_alias=$ac_optarg ;;
380
-cache-file | --cache-file | --cache-fil | --cache-fi \
381
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382
ac_prev=cache_file ;;
383
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385
cache_file=$ac_optarg ;;
388
cache_file=config.cache ;;
390
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394
datadir=$ac_optarg ;;
396
-disable-* | --disable-*)
397
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398
# Reject names that are not valid shell variable names.
399
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
401
{ (exit 1); exit 1; }; }
402
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403
eval "enable_$ac_feature=no" ;;
405
-enable-* | --enable-*)
406
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407
# Reject names that are not valid shell variable names.
408
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
410
{ (exit 1); exit 1; }; }
411
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416
eval "enable_$ac_feature='$ac_optarg'" ;;
418
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420
| --exec | --exe | --ex)
421
ac_prev=exec_prefix ;;
422
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424
| --exec=* | --exe=* | --ex=*)
425
exec_prefix=$ac_optarg ;;
427
-gas | --gas | --ga | --g)
428
# Obsolete; use --with-gas.
431
-help | --help | --hel | --he | -h)
433
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434
ac_init_help=recursive ;;
435
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436
ac_init_help=short ;;
438
-host | --host | --hos | --ho)
439
ac_prev=host_alias ;;
440
-host=* | --host=* | --hos=* | --ho=*)
441
host_alias=$ac_optarg ;;
443
-includedir | --includedir | --includedi | --included | --include \
444
| --includ | --inclu | --incl | --inc)
445
ac_prev=includedir ;;
446
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447
| --includ=* | --inclu=* | --incl=* | --inc=*)
448
includedir=$ac_optarg ;;
450
-infodir | --infodir | --infodi | --infod | --info | --inf)
452
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453
infodir=$ac_optarg ;;
455
-libdir | --libdir | --libdi | --libd)
457
-libdir=* | --libdir=* | --libdi=* | --libd=*)
460
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461
| --libexe | --libex | --libe)
462
ac_prev=libexecdir ;;
463
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464
| --libexe=* | --libex=* | --libe=*)
465
libexecdir=$ac_optarg ;;
467
-localstatedir | --localstatedir | --localstatedi | --localstated \
468
| --localstate | --localstat | --localsta | --localst \
469
| --locals | --local | --loca | --loc | --lo)
470
ac_prev=localstatedir ;;
471
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
473
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474
localstatedir=$ac_optarg ;;
476
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482
# Obsolete; use --without-fp.
485
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
486
| --no-cr | --no-c | -n)
489
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
490
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495
| --oldin | --oldi | --old | --ol | --o)
496
ac_prev=oldincludedir ;;
497
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500
oldincludedir=$ac_optarg ;;
502
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507
-program-prefix | --program-prefix | --program-prefi | --program-pref \
508
| --program-pre | --program-pr | --program-p)
509
ac_prev=program_prefix ;;
510
-program-prefix=* | --program-prefix=* | --program-prefi=* \
511
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512
program_prefix=$ac_optarg ;;
514
-program-suffix | --program-suffix | --program-suffi | --program-suff \
515
| --program-suf | --program-su | --program-s)
516
ac_prev=program_suffix ;;
517
-program-suffix=* | --program-suffix=* | --program-suffi=* \
518
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519
program_suffix=$ac_optarg ;;
521
-program-transform-name | --program-transform-name \
522
| --program-transform-nam | --program-transform-na \
523
| --program-transform-n | --program-transform- \
524
| --program-transform | --program-transfor \
525
| --program-transfo | --program-transf \
526
| --program-trans | --program-tran \
527
| --progr-tra | --program-tr | --program-t)
528
ac_prev=program_transform_name ;;
529
-program-transform-name=* | --program-transform-name=* \
530
| --program-transform-nam=* | --program-transform-na=* \
531
| --program-transform-n=* | --program-transform-=* \
532
| --program-transform=* | --program-transfor=* \
533
| --program-transfo=* | --program-transf=* \
534
| --program-trans=* | --program-tran=* \
535
| --progr-tra=* | --program-tr=* | --program-t=*)
536
program_transform_name=$ac_optarg ;;
538
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
539
| -silent | --silent | --silen | --sile | --sil)
542
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546
sbindir=$ac_optarg ;;
548
-sharedstatedir | --sharedstatedir | --sharedstatedi \
549
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550
| --sharedst | --shareds | --shared | --share | --shar \
552
ac_prev=sharedstatedir ;;
553
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557
sharedstatedir=$ac_optarg ;;
559
-site | --site | --sit)
561
-site=* | --site=* | --sit=*)
564
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570
| --syscon | --sysco | --sysc | --sys | --sy)
571
ac_prev=sysconfdir ;;
572
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574
sysconfdir=$ac_optarg ;;
576
-target | --target | --targe | --targ | --tar | --ta | --t)
577
ac_prev=target_alias ;;
578
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579
target_alias=$ac_optarg ;;
581
-v | -verbose | --verbose | --verbos | --verbo | --verb)
584
-version | --version | --versio | --versi | --vers | -V)
588
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589
# Reject names that are not valid shell variable names.
590
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591
{ echo "$as_me: error: invalid package name: $ac_package" >&2
592
{ (exit 1); exit 1; }; }
593
ac_package=`echo $ac_package| sed 's/-/_/g'`
595
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598
eval "with_$ac_package='$ac_optarg'" ;;
600
-without-* | --without-*)
601
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602
# Reject names that are not valid shell variable names.
603
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604
{ echo "$as_me: error: invalid package name: $ac_package" >&2
605
{ (exit 1); exit 1; }; }
606
ac_package=`echo $ac_package | sed 's/-/_/g'`
607
eval "with_$ac_package=no" ;;
610
# Obsolete; use --with-x.
613
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614
| --x-incl | --x-inc | --x-in | --x-i)
615
ac_prev=x_includes ;;
616
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618
x_includes=$ac_optarg ;;
620
-x-libraries | --x-libraries | --x-librarie | --x-librari \
621
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622
ac_prev=x_libraries ;;
623
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625
x_libraries=$ac_optarg ;;
627
-*) { echo "$as_me: error: unrecognized option: $ac_option
628
Try \`$0 --help' for more information." >&2
629
{ (exit 1); exit 1; }; }
633
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634
# Reject names that are not valid shell variable names.
635
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637
{ (exit 1); exit 1; }; }
638
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639
eval "$ac_envvar='$ac_optarg'"
643
# FIXME: should be removed in autoconf 3.0.
644
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653
if test -n "$ac_prev"; then
654
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655
{ echo "$as_me: error: missing argument to $ac_option" >&2
656
{ (exit 1); exit 1; }; }
659
# Be sure to have absolute paths.
660
for ac_var in exec_prefix prefix
662
eval ac_val=$`echo $ac_var`
664
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666
{ (exit 1); exit 1; }; };;
670
# Be sure to have absolute paths.
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672
localstatedir libdir includedir oldincludedir infodir mandir
674
eval ac_val=$`echo $ac_var`
676
[\\/$]* | ?:[\\/]* ) ;;
677
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678
{ (exit 1); exit 1; }; };;
682
# There might be people who depend on the old broken behavior: `$host'
683
# used to hold the argument of --host etc.
684
# FIXME: To remove some day.
689
# FIXME: To remove some day.
690
if test "x$host_alias" != x; then
691
if test "x$build_alias" = x; then
692
cross_compiling=maybe
693
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694
If a cross compiler is detected then cross compile mode will be used." >&2
695
elif test "x$build_alias" != "x$host_alias"; then
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
test "$silent" = yes && exec 6>/dev/null
706
# Find the source files, if location was not specified.
707
if test -z "$srcdir"; then
708
ac_srcdir_defaulted=yes
709
# Try the directory containing this script, then its parent.
710
ac_confdir=`(dirname "$0") 2>/dev/null ||
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712
X"$0" : 'X\(//\)[^/]' \| \
713
X"$0" : 'X\(//\)$' \| \
714
X"$0" : 'X\(/\)' \| \
715
. : '\(.\)' 2>/dev/null ||
717
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
719
/^X\(\/\/\)$/{ s//\1/; q; }
720
/^X\(\/\).*/{ s//\1/; q; }
723
if test ! -r $srcdir/$ac_unique_file; then
727
ac_srcdir_defaulted=no
729
if test ! -r $srcdir/$ac_unique_file; then
730
if test "$ac_srcdir_defaulted" = yes; then
731
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
{ (exit 1); exit 1; }; }
734
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
{ (exit 1); exit 1; }; }
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
{ (exit 1); exit 1; }; }
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
ac_env_build_alias_set=${build_alias+set}
743
ac_env_build_alias_value=$build_alias
744
ac_cv_env_build_alias_set=${build_alias+set}
745
ac_cv_env_build_alias_value=$build_alias
746
ac_env_host_alias_set=${host_alias+set}
747
ac_env_host_alias_value=$host_alias
748
ac_cv_env_host_alias_set=${host_alias+set}
749
ac_cv_env_host_alias_value=$host_alias
750
ac_env_target_alias_set=${target_alias+set}
751
ac_env_target_alias_value=$target_alias
752
ac_cv_env_target_alias_set=${target_alias+set}
753
ac_cv_env_target_alias_value=$target_alias
754
ac_env_CC_set=${CC+set}
756
ac_cv_env_CC_set=${CC+set}
757
ac_cv_env_CC_value=$CC
758
ac_env_CFLAGS_set=${CFLAGS+set}
759
ac_env_CFLAGS_value=$CFLAGS
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
761
ac_cv_env_CFLAGS_value=$CFLAGS
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_env_LDFLAGS_value=$LDFLAGS
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_env_CPPFLAGS_value=$CPPFLAGS
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
ac_env_CPP_set=${CPP+set}
771
ac_env_CPP_value=$CPP
772
ac_cv_env_CPP_set=${CPP+set}
773
ac_cv_env_CPP_value=$CPP
776
# Report the --help message.
778
if test "$ac_init_help" = "long"; then
779
# Omit some internal or obsolete options to make the list less imposing.
780
# This message is too long to be a string in the A/UX 3.1 sh.
782
\`configure' configures this package to adapt to many kinds of systems.
784
Usage: $0 [OPTION]... [VAR=VALUE]...
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
787
VAR=VALUE. See below for descriptions of some of the useful variables.
789
Defaults for the options are specified in brackets.
792
-h, --help display this help and exit
793
--help=short display options specific to this package
794
--help=recursive display the short help of all the included packages
795
-V, --version display version information and exit
796
-q, --quiet, --silent do not print \`checking...' messages
797
--cache-file=FILE cache test results in FILE [disabled]
798
-C, --config-cache alias for \`--cache-file=config.cache'
799
-n, --no-create do not create output files
800
--srcdir=DIR find the sources in DIR [configure dir or \`..']
805
Installation directories:
806
--prefix=PREFIX install architecture-independent files in PREFIX
808
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811
By default, \`make install' will install all the files in
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814
for instance \`--prefix=\$HOME'.
816
For better control, use the options below.
818
Fine tuning of the installation directories:
819
--bindir=DIR user executables [EPREFIX/bin]
820
--sbindir=DIR system admin executables [EPREFIX/sbin]
821
--libexecdir=DIR program executables [EPREFIX/libexec]
822
--datadir=DIR read-only architecture-independent data [PREFIX/share]
823
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
826
--libdir=DIR object code libraries [EPREFIX/lib]
827
--includedir=DIR C header files [PREFIX/include]
828
--oldincludedir=DIR C header files for non-gcc [/usr/include]
829
--infodir=DIR info documentation [PREFIX/info]
830
--mandir=DIR man documentation [PREFIX/man]
837
if test -n "$ac_init_help"; then
842
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844
--enable-shared=yes/no Enable use of shared libraries default=yes
845
--enable-gettext=yes/no Enable alternate language support default=yes
846
--enable-lib64=yes/no Enable lib64 support default=no
848
Some influential environment variables:
849
CC C compiler command
850
CFLAGS C compiler flags
851
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
852
nonstandard directory <lib dir>
853
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
854
headers in a nonstandard directory <include dir>
857
Use these variables to override the choices made by `configure' or to help
858
it to find libraries and programs with nonstandard names/locations.
863
if test "$ac_init_help" = "recursive"; then
864
# If there are subdirs, report their specific --help.
866
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
867
test -d $ac_dir || continue
870
if test "$ac_dir" != .; then
871
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
872
# A "../" for each directory in $ac_dir_suffix.
873
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
875
ac_dir_suffix= ac_top_builddir=
879
.) # No --srcdir option. We are building in place.
881
if test -z "$ac_top_builddir"; then
884
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
886
[\\/]* | ?:[\\/]* ) # Absolute path.
887
ac_srcdir=$srcdir$ac_dir_suffix;
888
ac_top_srcdir=$srcdir ;;
890
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
891
ac_top_srcdir=$ac_top_builddir$srcdir ;;
894
# Do not use `cd foo && pwd` to compute absolute paths, because
895
# the directories may not exist.
897
.) ac_abs_builddir="$ac_dir";;
900
.) ac_abs_builddir=`pwd`;;
901
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
902
*) ac_abs_builddir=`pwd`/"$ac_dir";;
905
case $ac_abs_builddir in
906
.) ac_abs_top_builddir=${ac_top_builddir}.;;
908
case ${ac_top_builddir}. in
909
.) ac_abs_top_builddir=$ac_abs_builddir;;
910
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
911
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
914
case $ac_abs_builddir in
915
.) ac_abs_srcdir=$ac_srcdir;;
918
.) ac_abs_srcdir=$ac_abs_builddir;;
919
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
920
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
923
case $ac_abs_builddir in
924
.) ac_abs_top_srcdir=$ac_top_srcdir;;
926
case $ac_top_srcdir in
927
.) ac_abs_top_srcdir=$ac_abs_builddir;;
928
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
929
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
934
# Check for guested configure; otherwise get Cygnus style configure.
935
if test -f $ac_srcdir/configure.gnu; then
937
$SHELL $ac_srcdir/configure.gnu --help=recursive
938
elif test -f $ac_srcdir/configure; then
940
$SHELL $ac_srcdir/configure --help=recursive
941
elif test -f $ac_srcdir/configure.ac ||
942
test -f $ac_srcdir/configure.in; then
946
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952
test -n "$ac_init_help" && exit 0
953
if $ac_init_version; then
956
Copyright (C) 2003 Free Software Foundation, Inc.
957
This configure script is free software; the Free Software Foundation
958
gives unlimited permission to copy, distribute and modify it.
964
This file contains any messages produced by compilers while
965
running configure, to aid debugging if configure makes a mistake.
967
It was created by $as_me, which was
968
generated by GNU Autoconf 2.59. Invocation command line was
979
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
980
uname -m = `(uname -m) 2>/dev/null || echo unknown`
981
uname -r = `(uname -r) 2>/dev/null || echo unknown`
982
uname -s = `(uname -s) 2>/dev/null || echo unknown`
983
uname -v = `(uname -v) 2>/dev/null || echo unknown`
985
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
986
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
988
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
989
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
990
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
991
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
992
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
993
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
994
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
998
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002
test -z "$as_dir" && as_dir=.
1003
echo "PATH: $as_dir"
1018
# Keep a trace of the command line.
1019
# Strip out --no-create and --no-recursion so they do not pile up.
1020
# Strip out --silent because we don't want to record it for future runs.
1021
# Also quote any args containing shell meta-characters.
1022
# Make two passes to allow for proper duplicate-argument suppression.
1027
ac_must_keep_next=false
1033
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1034
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035
| -silent | --silent | --silen | --sile | --sil)
1037
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1038
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1041
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1043
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1044
if test $ac_must_keep_next = true; then
1045
ac_must_keep_next=false # Got value, back to normal.
1048
*=* | --config-cache | -C | -disable-* | --disable-* \
1049
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1050
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1051
| -with-* | --with-* | -without-* | --without-* | --x)
1052
case "$ac_configure_args0 " in
1053
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1056
-* ) ac_must_keep_next=true ;;
1059
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1060
# Get rid of the leading space.
1066
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1067
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1069
# When interrupted or exit'd, cleanup temporary files, and complete
1070
# config.log. We remove comments because anyway the quotes in there
1071
# would cause problems or look ugly.
1072
# WARNING: Be sure not to use single quotes in there, as some shells,
1073
# such as our DU 5.0 friend, will then `close' the trap.
1074
trap 'exit_status=$?
1075
# Save into config.log some information that might help in debugging.
1080
## ---------------- ##
1081
## Cache variables. ##
1082
## ---------------- ##
1085
# The following way of writing the cache mishandles newlines in values,
1088
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1091
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1092
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1096
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103
## ----------------- ##
1104
## Output variables. ##
1105
## ----------------- ##
1108
for ac_var in $ac_subst_vars
1110
eval ac_val=$`echo $ac_var`
1111
echo "$ac_var='"'"'$ac_val'"'"'"
1115
if test -n "$ac_subst_files"; then
1122
for ac_var in $ac_subst_files
1124
eval ac_val=$`echo $ac_var`
1125
echo "$ac_var='"'"'$ac_val'"'"'"
1130
if test -s confdefs.h; then
1137
sed "/^$/d" confdefs.h | sort
1140
test "$ac_signal" != 0 &&
1141
echo "$as_me: caught signal $ac_signal"
1142
echo "$as_me: exit $exit_status"
1144
rm -f core *.core &&
1145
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1148
for ac_signal in 1 2 13 15; do
1149
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1153
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1154
rm -rf conftest* confdefs.h
1155
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1158
# Predefined preprocessor variables.
1160
cat >>confdefs.h <<_ACEOF
1161
#define PACKAGE_NAME "$PACKAGE_NAME"
1165
cat >>confdefs.h <<_ACEOF
1166
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1170
cat >>confdefs.h <<_ACEOF
1171
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1175
cat >>confdefs.h <<_ACEOF
1176
#define PACKAGE_STRING "$PACKAGE_STRING"
1180
cat >>confdefs.h <<_ACEOF
1181
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1185
# Let the site file select an alternate cache file if it wants to.
1186
# Prefer explicitly selected file to automatically selected ones.
1187
if test -z "$CONFIG_SITE"; then
1188
if test "x$prefix" != xNONE; then
1189
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1191
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1194
for ac_site_file in $CONFIG_SITE; do
1195
if test -r "$ac_site_file"; then
1196
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1197
echo "$as_me: loading site script $ac_site_file" >&6;}
1198
sed 's/^/| /' "$ac_site_file" >&5
1203
if test -r "$cache_file"; then
1204
# Some versions of bash will fail to source /dev/null (special
1205
# files actually), so we avoid doing that.
1206
if test -f "$cache_file"; then
1207
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1208
echo "$as_me: loading cache $cache_file" >&6;}
1210
[\\/]* | ?:[\\/]* ) . $cache_file;;
1211
*) . ./$cache_file;;
1215
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1216
echo "$as_me: creating cache $cache_file" >&6;}
1220
# Check that the precious variables saved in the cache have kept the same
1222
ac_cache_corrupted=false
1223
for ac_var in `(set) 2>&1 |
1224
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1225
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1226
eval ac_new_set=\$ac_env_${ac_var}_set
1227
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1228
eval ac_new_val="\$ac_env_${ac_var}_value"
1229
case $ac_old_set,$ac_new_set in
1231
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1232
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1233
ac_cache_corrupted=: ;;
1235
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1236
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1237
ac_cache_corrupted=: ;;
1240
if test "x$ac_old_val" != "x$ac_new_val"; then
1241
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1242
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1243
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1244
echo "$as_me: former value: $ac_old_val" >&2;}
1245
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1246
echo "$as_me: current value: $ac_new_val" >&2;}
1247
ac_cache_corrupted=:
1250
# Pass precious variables to config.status.
1251
if test "$ac_new_set" = set; then
1253
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1255
*) ac_arg=$ac_var=$ac_new_val ;;
1257
case " $ac_configure_args " in
1258
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1259
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1263
if $ac_cache_corrupted; then
1264
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1265
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1266
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1267
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1268
{ (exit 1); exit 1; }; }
1272
ac_cpp='$CPP $CPPFLAGS'
1273
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1274
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1275
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295
ac_config_headers="$ac_config_headers include/config.h"
1299
# Check whether --enable-shared or --disable-shared was given.
1300
if test "${enable_shared+set}" = set; then
1301
enableval="$enable_shared"
1308
# Check whether --enable-gettext or --disable-gettext was given.
1309
if test "${enable_gettext+set}" = set; then
1310
enableval="$enable_gettext"
1317
# Check whether --enable-lib64 or --disable-lib64 was given.
1318
if test "${enable_lib64+set}" = set; then
1319
enableval="$enable_lib64"
1330
pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
1332
pkg_release=$PKG_BUILD
1333
test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
1336
DEBUG=${DEBUG:-'-DDEBUG'} debug_build="$DEBUG"
1339
OPTIMIZER=${OPTIMIZER:-'-g -O2'}
1340
opt_build="$OPTIMIZER"
1343
MALLOCLIB=${MALLOCLIB:-''} malloc_lib="$MALLOCLIB"
1347
test -z "$INSTALL_USER" || pkg_user="$INSTALL_USER"
1350
pkg_group=`id -g -n`
1351
test -z "$INSTALL_GROUP" || pkg_group="$INSTALL_GROUP"
1354
pkg_distribution=`uname -s`
1355
test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
1358
pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
1359
test -z "$PLATFORM" || pkg_platform="$PLATFORM"
1363
ac_cpp='$CPP $CPPFLAGS'
1364
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1365
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1366
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367
if test -n "$ac_tool_prefix"; then
1368
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1369
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1370
echo "$as_me:$LINENO: checking for $ac_word" >&5
1371
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1372
if test "${ac_cv_prog_CC+set}" = set; then
1373
echo $ECHO_N "(cached) $ECHO_C" >&6
1375
if test -n "$CC"; then
1376
ac_cv_prog_CC="$CC" # Let the user override the test.
1378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382
test -z "$as_dir" && as_dir=.
1383
for ac_exec_ext in '' $ac_executable_extensions; do
1384
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1385
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1386
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395
if test -n "$CC"; then
1396
echo "$as_me:$LINENO: result: $CC" >&5
1397
echo "${ECHO_T}$CC" >&6
1399
echo "$as_me:$LINENO: result: no" >&5
1400
echo "${ECHO_T}no" >&6
1404
if test -z "$ac_cv_prog_CC"; then
1406
# Extract the first word of "gcc", so it can be a program name with args.
1407
set dummy gcc; ac_word=$2
1408
echo "$as_me:$LINENO: checking for $ac_word" >&5
1409
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1411
echo $ECHO_N "(cached) $ECHO_C" >&6
1413
if test -n "$ac_ct_CC"; then
1414
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420
test -z "$as_dir" && as_dir=.
1421
for ac_exec_ext in '' $ac_executable_extensions; do
1422
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1423
ac_cv_prog_ac_ct_CC="gcc"
1424
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1433
if test -n "$ac_ct_CC"; then
1434
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1435
echo "${ECHO_T}$ac_ct_CC" >&6
1437
echo "$as_me:$LINENO: result: no" >&5
1438
echo "${ECHO_T}no" >&6
1446
if test -z "$CC"; then
1447
if test -n "$ac_tool_prefix"; then
1448
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1449
set dummy ${ac_tool_prefix}cc; ac_word=$2
1450
echo "$as_me:$LINENO: checking for $ac_word" >&5
1451
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452
if test "${ac_cv_prog_CC+set}" = set; then
1453
echo $ECHO_N "(cached) $ECHO_C" >&6
1455
if test -n "$CC"; then
1456
ac_cv_prog_CC="$CC" # Let the user override the test.
1458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462
test -z "$as_dir" && as_dir=.
1463
for ac_exec_ext in '' $ac_executable_extensions; do
1464
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1465
ac_cv_prog_CC="${ac_tool_prefix}cc"
1466
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475
if test -n "$CC"; then
1476
echo "$as_me:$LINENO: result: $CC" >&5
1477
echo "${ECHO_T}$CC" >&6
1479
echo "$as_me:$LINENO: result: no" >&5
1480
echo "${ECHO_T}no" >&6
1484
if test -z "$ac_cv_prog_CC"; then
1486
# Extract the first word of "cc", so it can be a program name with args.
1487
set dummy cc; ac_word=$2
1488
echo "$as_me:$LINENO: checking for $ac_word" >&5
1489
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1491
echo $ECHO_N "(cached) $ECHO_C" >&6
1493
if test -n "$ac_ct_CC"; then
1494
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500
test -z "$as_dir" && as_dir=.
1501
for ac_exec_ext in '' $ac_executable_extensions; do
1502
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1503
ac_cv_prog_ac_ct_CC="cc"
1504
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1513
if test -n "$ac_ct_CC"; then
1514
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1515
echo "${ECHO_T}$ac_ct_CC" >&6
1517
echo "$as_me:$LINENO: result: no" >&5
1518
echo "${ECHO_T}no" >&6
1527
if test -z "$CC"; then
1528
# Extract the first word of "cc", so it can be a program name with args.
1529
set dummy cc; ac_word=$2
1530
echo "$as_me:$LINENO: checking for $ac_word" >&5
1531
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532
if test "${ac_cv_prog_CC+set}" = set; then
1533
echo $ECHO_N "(cached) $ECHO_C" >&6
1535
if test -n "$CC"; then
1536
ac_cv_prog_CC="$CC" # Let the user override the test.
1539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543
test -z "$as_dir" && as_dir=.
1544
for ac_exec_ext in '' $ac_executable_extensions; do
1545
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1547
ac_prog_rejected=yes
1551
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557
if test $ac_prog_rejected = yes; then
1558
# We found a bogon in the path, so make sure we never use it.
1559
set dummy $ac_cv_prog_CC
1561
if test $# != 0; then
1562
# We chose a different compiler from the bogus one.
1563
# However, it has the same basename, so the bogon will be chosen
1564
# first if we set CC to just the basename; use the full file name.
1566
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1572
if test -n "$CC"; then
1573
echo "$as_me:$LINENO: result: $CC" >&5
1574
echo "${ECHO_T}$CC" >&6
1576
echo "$as_me:$LINENO: result: no" >&5
1577
echo "${ECHO_T}no" >&6
1581
if test -z "$CC"; then
1582
if test -n "$ac_tool_prefix"; then
1585
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1586
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1587
echo "$as_me:$LINENO: checking for $ac_word" >&5
1588
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589
if test "${ac_cv_prog_CC+set}" = set; then
1590
echo $ECHO_N "(cached) $ECHO_C" >&6
1592
if test -n "$CC"; then
1593
ac_cv_prog_CC="$CC" # Let the user override the test.
1595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599
test -z "$as_dir" && as_dir=.
1600
for ac_exec_ext in '' $ac_executable_extensions; do
1601
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1603
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612
if test -n "$CC"; then
1613
echo "$as_me:$LINENO: result: $CC" >&5
1614
echo "${ECHO_T}$CC" >&6
1616
echo "$as_me:$LINENO: result: no" >&5
1617
echo "${ECHO_T}no" >&6
1620
test -n "$CC" && break
1623
if test -z "$CC"; then
1627
# Extract the first word of "$ac_prog", so it can be a program name with args.
1628
set dummy $ac_prog; ac_word=$2
1629
echo "$as_me:$LINENO: checking for $ac_word" >&5
1630
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632
echo $ECHO_N "(cached) $ECHO_C" >&6
1634
if test -n "$ac_ct_CC"; then
1635
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641
test -z "$as_dir" && as_dir=.
1642
for ac_exec_ext in '' $ac_executable_extensions; do
1643
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644
ac_cv_prog_ac_ct_CC="$ac_prog"
1645
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1654
if test -n "$ac_ct_CC"; then
1655
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1656
echo "${ECHO_T}$ac_ct_CC" >&6
1658
echo "$as_me:$LINENO: result: no" >&5
1659
echo "${ECHO_T}no" >&6
1662
test -n "$ac_ct_CC" && break
1671
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1672
See \`config.log' for more details." >&5
1673
echo "$as_me: error: no acceptable C compiler found in \$PATH
1674
See \`config.log' for more details." >&2;}
1675
{ (exit 1); exit 1; }; }
1677
# Provide some information about the compiler.
1678
echo "$as_me:$LINENO:" \
1679
"checking for C compiler version" >&5
1680
ac_compiler=`set X $ac_compile; echo $2`
1681
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1682
(eval $ac_compiler --version </dev/null >&5) 2>&5
1684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685
(exit $ac_status); }
1686
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1687
(eval $ac_compiler -v </dev/null >&5) 2>&5
1689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690
(exit $ac_status); }
1691
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1692
(eval $ac_compiler -V </dev/null >&5) 2>&5
1694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695
(exit $ac_status); }
1697
cat >conftest.$ac_ext <<_ACEOF
1700
cat confdefs.h >>conftest.$ac_ext
1701
cat >>conftest.$ac_ext <<_ACEOF
1702
/* end confdefs.h. */
1712
ac_clean_files_save=$ac_clean_files
1713
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1714
# Try to create an executable without -o first, disregard a.out.
1715
# It will help us diagnose broken compilers, and finding out an intuition
1717
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1718
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1719
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1720
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1721
(eval $ac_link_default) 2>&5
1723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724
(exit $ac_status); }; then
1725
# Find the output, starting from the most likely. This scheme is
1726
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1729
# Be careful to initialize this variable, since it used to be cached.
1730
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1732
# b.out is created by i960 compilers.
1733
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1735
test -f "$ac_file" || continue
1737
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1740
# This is the source file.
1743
# We found the default executable, but exeext='' is most
1747
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1748
# FIXME: I believe we export ac_cv_exeext for Libtool,
1749
# but it would be cool to find out if it's true. Does anybody
1750
# maintain Libtool? --akim.
1758
echo "$as_me: failed program was:" >&5
1759
sed 's/^/| /' conftest.$ac_ext >&5
1761
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1762
See \`config.log' for more details." >&5
1763
echo "$as_me: error: C compiler cannot create executables
1764
See \`config.log' for more details." >&2;}
1765
{ (exit 77); exit 77; }; }
1768
ac_exeext=$ac_cv_exeext
1769
echo "$as_me:$LINENO: result: $ac_file" >&5
1770
echo "${ECHO_T}$ac_file" >&6
1772
# Check the compiler produces executables we can run. If not, either
1773
# the compiler is broken, or we cross compile.
1774
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1775
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1776
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1777
# If not cross compiling, check that we can run a simple program.
1778
if test "$cross_compiling" != yes; then
1779
if { ac_try='./$ac_file'
1780
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784
(exit $ac_status); }; }; then
1787
if test "$cross_compiling" = maybe; then
1790
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1791
If you meant to cross compile, use \`--host'.
1792
See \`config.log' for more details." >&5
1793
echo "$as_me: error: cannot run C compiled programs.
1794
If you meant to cross compile, use \`--host'.
1795
See \`config.log' for more details." >&2;}
1796
{ (exit 1); exit 1; }; }
1800
echo "$as_me:$LINENO: result: yes" >&5
1801
echo "${ECHO_T}yes" >&6
1803
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1804
ac_clean_files=$ac_clean_files_save
1805
# Check the compiler produces executables we can run. If not, either
1806
# the compiler is broken, or we cross compile.
1807
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1808
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1809
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1810
echo "${ECHO_T}$cross_compiling" >&6
1812
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1813
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1814
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1815
(eval $ac_link) 2>&5
1817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818
(exit $ac_status); }; then
1819
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1820
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1821
# work properly (i.e., refer to `conftest.exe'), while it won't with
1823
for ac_file in conftest.exe conftest conftest.*; do
1824
test -f "$ac_file" || continue
1826
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1827
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1835
See \`config.log' for more details." >&5
1836
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1837
See \`config.log' for more details." >&2;}
1838
{ (exit 1); exit 1; }; }
1841
rm -f conftest$ac_cv_exeext
1842
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1843
echo "${ECHO_T}$ac_cv_exeext" >&6
1845
rm -f conftest.$ac_ext
1846
EXEEXT=$ac_cv_exeext
1848
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1849
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1850
if test "${ac_cv_objext+set}" = set; then
1851
echo $ECHO_N "(cached) $ECHO_C" >&6
1853
cat >conftest.$ac_ext <<_ACEOF
1856
cat confdefs.h >>conftest.$ac_ext
1857
cat >>conftest.$ac_ext <<_ACEOF
1858
/* end confdefs.h. */
1868
rm -f conftest.o conftest.obj
1869
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1870
(eval $ac_compile) 2>&5
1872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873
(exit $ac_status); }; then
1874
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1876
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1877
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1882
echo "$as_me: failed program was:" >&5
1883
sed 's/^/| /' conftest.$ac_ext >&5
1885
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1886
See \`config.log' for more details." >&5
1887
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1888
See \`config.log' for more details." >&2;}
1889
{ (exit 1); exit 1; }; }
1892
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1894
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1895
echo "${ECHO_T}$ac_cv_objext" >&6
1896
OBJEXT=$ac_cv_objext
1898
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1899
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1900
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1901
echo $ECHO_N "(cached) $ECHO_C" >&6
1903
cat >conftest.$ac_ext <<_ACEOF
1906
cat confdefs.h >>conftest.$ac_ext
1907
cat >>conftest.$ac_ext <<_ACEOF
1908
/* end confdefs.h. */
1921
rm -f conftest.$ac_objext
1922
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923
(eval $ac_compile) 2>conftest.er1
1925
grep -v '^ *+' conftest.er1 >conftest.err
1927
cat conftest.err >&5
1928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929
(exit $ac_status); } &&
1930
{ ac_try='test -z "$ac_c_werror_flag"
1931
|| test ! -s conftest.err'
1932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936
(exit $ac_status); }; } &&
1937
{ ac_try='test -s conftest.$ac_objext'
1938
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942
(exit $ac_status); }; }; then
1945
echo "$as_me: failed program was:" >&5
1946
sed 's/^/| /' conftest.$ac_ext >&5
1950
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1951
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1954
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1955
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1956
GCC=`test $ac_compiler_gnu = yes && echo yes`
1957
ac_test_CFLAGS=${CFLAGS+set}
1958
ac_save_CFLAGS=$CFLAGS
1960
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1961
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1962
if test "${ac_cv_prog_cc_g+set}" = set; then
1963
echo $ECHO_N "(cached) $ECHO_C" >&6
1965
cat >conftest.$ac_ext <<_ACEOF
1968
cat confdefs.h >>conftest.$ac_ext
1969
cat >>conftest.$ac_ext <<_ACEOF
1970
/* end confdefs.h. */
1980
rm -f conftest.$ac_objext
1981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982
(eval $ac_compile) 2>conftest.er1
1984
grep -v '^ *+' conftest.er1 >conftest.err
1986
cat conftest.err >&5
1987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988
(exit $ac_status); } &&
1989
{ ac_try='test -z "$ac_c_werror_flag"
1990
|| test ! -s conftest.err'
1991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995
(exit $ac_status); }; } &&
1996
{ ac_try='test -s conftest.$ac_objext'
1997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001
(exit $ac_status); }; }; then
2004
echo "$as_me: failed program was:" >&5
2005
sed 's/^/| /' conftest.$ac_ext >&5
2009
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2011
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2012
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2013
if test "$ac_test_CFLAGS" = set; then
2014
CFLAGS=$ac_save_CFLAGS
2015
elif test $ac_cv_prog_cc_g = yes; then
2016
if test "$GCC" = yes; then
2022
if test "$GCC" = yes; then
2028
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2029
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2030
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2031
echo $ECHO_N "(cached) $ECHO_C" >&6
2033
ac_cv_prog_cc_stdc=no
2035
cat >conftest.$ac_ext <<_ACEOF
2038
cat confdefs.h >>conftest.$ac_ext
2039
cat >>conftest.$ac_ext <<_ACEOF
2040
/* end confdefs.h. */
2043
#include <sys/types.h>
2044
#include <sys/stat.h>
2045
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2046
struct buf { int x; };
2047
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2048
static char *e (p, i)
2054
static char *f (char * (*g) (char **, int), char **p, ...)
2059
s = g (p, va_arg (v,int));
2064
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2065
function prototypes and stuff, but not '\xHH' hex character constants.
2066
These don't provoke an error unfortunately, instead are silently treated
2067
as 'x'. The following induces an error, until -std1 is added to get
2068
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2069
array size at least. It's necessary to write '\x00'==0 to get something
2070
that's true only with -std1. */
2071
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2073
int test (int i, double x);
2074
struct s1 {int (*f) (int a);};
2075
struct s2 {int (*f) (double a);};
2076
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2082
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2087
# Don't try gcc -ansi; that turns off useful extensions and
2088
# breaks some systems' header files.
2089
# AIX -qlanglvl=ansi
2090
# Ultrix and OSF/1 -std1
2091
# HP-UX 10.20 and later -Ae
2092
# HP-UX older versions -Aa -D_HPUX_SOURCE
2093
# SVR4 -Xc -D__EXTENSIONS__
2094
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2096
CC="$ac_save_CC $ac_arg"
2097
rm -f conftest.$ac_objext
2098
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099
(eval $ac_compile) 2>conftest.er1
2101
grep -v '^ *+' conftest.er1 >conftest.err
2103
cat conftest.err >&5
2104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105
(exit $ac_status); } &&
2106
{ ac_try='test -z "$ac_c_werror_flag"
2107
|| test ! -s conftest.err'
2108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112
(exit $ac_status); }; } &&
2113
{ ac_try='test -s conftest.$ac_objext'
2114
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118
(exit $ac_status); }; }; then
2119
ac_cv_prog_cc_stdc=$ac_arg
2122
echo "$as_me: failed program was:" >&5
2123
sed 's/^/| /' conftest.$ac_ext >&5
2126
rm -f conftest.err conftest.$ac_objext
2128
rm -f conftest.$ac_ext conftest.$ac_objext
2133
case "x$ac_cv_prog_cc_stdc" in
2135
echo "$as_me:$LINENO: result: none needed" >&5
2136
echo "${ECHO_T}none needed" >&6 ;;
2138
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2139
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2140
CC="$CC $ac_cv_prog_cc_stdc" ;;
2143
# Some people use a C++ compiler to compile C. Since we use `exit',
2144
# in C++ we need to declare it. In case someone uses the same compiler
2145
# for both compiling C and C++ we need to have the C++ compiler decide
2146
# the declaration of exit, since it's the most demanding environment.
2147
cat >conftest.$ac_ext <<_ACEOF
2152
rm -f conftest.$ac_objext
2153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154
(eval $ac_compile) 2>conftest.er1
2156
grep -v '^ *+' conftest.er1 >conftest.err
2158
cat conftest.err >&5
2159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160
(exit $ac_status); } &&
2161
{ ac_try='test -z "$ac_c_werror_flag"
2162
|| test ! -s conftest.err'
2163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167
(exit $ac_status); }; } &&
2168
{ ac_try='test -s conftest.$ac_objext'
2169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173
(exit $ac_status); }; }; then
2174
for ac_declaration in \
2176
'extern "C" void std::exit (int) throw (); using std::exit;' \
2177
'extern "C" void std::exit (int); using std::exit;' \
2178
'extern "C" void exit (int) throw ();' \
2179
'extern "C" void exit (int);' \
2182
cat >conftest.$ac_ext <<_ACEOF
2185
cat confdefs.h >>conftest.$ac_ext
2186
cat >>conftest.$ac_ext <<_ACEOF
2187
/* end confdefs.h. */
2198
rm -f conftest.$ac_objext
2199
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200
(eval $ac_compile) 2>conftest.er1
2202
grep -v '^ *+' conftest.er1 >conftest.err
2204
cat conftest.err >&5
2205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206
(exit $ac_status); } &&
2207
{ ac_try='test -z "$ac_c_werror_flag"
2208
|| test ! -s conftest.err'
2209
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213
(exit $ac_status); }; } &&
2214
{ ac_try='test -s conftest.$ac_objext'
2215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219
(exit $ac_status); }; }; then
2222
echo "$as_me: failed program was:" >&5
2223
sed 's/^/| /' conftest.$ac_ext >&5
2227
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228
cat >conftest.$ac_ext <<_ACEOF
2231
cat confdefs.h >>conftest.$ac_ext
2232
cat >>conftest.$ac_ext <<_ACEOF
2233
/* end confdefs.h. */
2243
rm -f conftest.$ac_objext
2244
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245
(eval $ac_compile) 2>conftest.er1
2247
grep -v '^ *+' conftest.er1 >conftest.err
2249
cat conftest.err >&5
2250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251
(exit $ac_status); } &&
2252
{ ac_try='test -z "$ac_c_werror_flag"
2253
|| test ! -s conftest.err'
2254
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258
(exit $ac_status); }; } &&
2259
{ ac_try='test -s conftest.$ac_objext'
2260
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264
(exit $ac_status); }; }; then
2267
echo "$as_me: failed program was:" >&5
2268
sed 's/^/| /' conftest.$ac_ext >&5
2271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2274
if test -n "$ac_declaration"; then
2275
echo '#ifdef __cplusplus' >>confdefs.h
2276
echo $ac_declaration >>confdefs.h
2277
echo '#endif' >>confdefs.h
2281
echo "$as_me: failed program was:" >&5
2282
sed 's/^/| /' conftest.$ac_ext >&5
2285
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287
ac_cpp='$CPP $CPPFLAGS'
2288
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2294
if test -z ""$cc""; then
2296
echo FATAL ERROR: cc does not seem to be installed.
2297
echo attr cannot be built without a working C compiler installation.
2302
if test -z "$MAKE"; then
2303
# Extract the first word of "gmake", so it can be a program name with args.
2304
set dummy gmake; ac_word=$2
2305
echo "$as_me:$LINENO: checking for $ac_word" >&5
2306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307
if test "${ac_cv_path_MAKE+set}" = set; then
2308
echo $ECHO_N "(cached) $ECHO_C" >&6
2312
ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316
as_dummy="/usr/bin:/usr/local/bin:/usr/freeware/bin"
2317
for as_dir in $as_dummy
2320
test -z "$as_dir" && as_dir=.
2321
for ac_exec_ext in '' $ac_executable_extensions; do
2322
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323
ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2324
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333
MAKE=$ac_cv_path_MAKE
2335
if test -n "$MAKE"; then
2336
echo "$as_me:$LINENO: result: $MAKE" >&5
2337
echo "${ECHO_T}$MAKE" >&6
2339
echo "$as_me:$LINENO: result: no" >&5
2340
echo "${ECHO_T}no" >&6
2344
if test -z "$MAKE"; then
2345
# Extract the first word of "make", so it can be a program name with args.
2346
set dummy make; ac_word=$2
2347
echo "$as_me:$LINENO: checking for $ac_word" >&5
2348
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349
if test "${ac_cv_path_MAKE+set}" = set; then
2350
echo $ECHO_N "(cached) $ECHO_C" >&6
2354
ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358
for as_dir in /usr/bin
2361
test -z "$as_dir" && as_dir=.
2362
for ac_exec_ext in '' $ac_executable_extensions; do
2363
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2364
ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2365
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374
MAKE=$ac_cv_path_MAKE
2376
if test -n "$MAKE"; then
2377
echo "$as_me:$LINENO: result: $MAKE" >&5
2378
echo "${ECHO_T}$MAKE" >&6
2380
echo "$as_me:$LINENO: result: no" >&5
2381
echo "${ECHO_T}no" >&6
2387
if test -z ""$make""; then
2389
echo FATAL ERROR: make does not seem to be installed.
2390
echo attr cannot be built without a working GNU make installation.
2395
if test -z "$LIBTOOL"; then
2396
# Extract the first word of "glibtool", so it can be a program name with args.
2397
set dummy glibtool; ac_word=$2
2398
echo "$as_me:$LINENO: checking for $ac_word" >&5
2399
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400
if test "${ac_cv_path_LIBTOOL+set}" = set; then
2401
echo $ECHO_N "(cached) $ECHO_C" >&6
2405
ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
2408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409
for as_dir in /usr/bin
2412
test -z "$as_dir" && as_dir=.
2413
for ac_exec_ext in '' $ac_executable_extensions; do
2414
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415
ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
2416
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425
LIBTOOL=$ac_cv_path_LIBTOOL
2427
if test -n "$LIBTOOL"; then
2428
echo "$as_me:$LINENO: result: $LIBTOOL" >&5
2429
echo "${ECHO_T}$LIBTOOL" >&6
2431
echo "$as_me:$LINENO: result: no" >&5
2432
echo "${ECHO_T}no" >&6
2436
if test -z "$LIBTOOL"; then
2437
# Extract the first word of "libtool", so it can be a program name with args.
2438
set dummy libtool; ac_word=$2
2439
echo "$as_me:$LINENO: checking for $ac_word" >&5
2440
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2441
if test "${ac_cv_path_LIBTOOL+set}" = set; then
2442
echo $ECHO_N "(cached) $ECHO_C" >&6
2446
ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
2449
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450
as_dummy="/usr/bin:/usr/local/bin:/usr/freeware/bin"
2451
for as_dir in $as_dummy
2454
test -z "$as_dir" && as_dir=.
2455
for ac_exec_ext in '' $ac_executable_extensions; do
2456
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457
ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
2458
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467
LIBTOOL=$ac_cv_path_LIBTOOL
2469
if test -n "$LIBTOOL"; then
2470
echo "$as_me:$LINENO: result: $LIBTOOL" >&5
2471
echo "${ECHO_T}$LIBTOOL" >&6
2473
echo "$as_me:$LINENO: result: no" >&5
2474
echo "${ECHO_T}no" >&6
2480
if test -z ""$libtool""; then
2482
echo FATAL ERROR: libtool does not seem to be installed.
2483
echo attr cannot be built without a working GNU libtool installation.
2488
if test -z "$TAR"; then
2489
# Extract the first word of "tar", so it can be a program name with args.
2490
set dummy tar; ac_word=$2
2491
echo "$as_me:$LINENO: checking for $ac_word" >&5
2492
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2493
if test "${ac_cv_path_TAR+set}" = set; then
2494
echo $ECHO_N "(cached) $ECHO_C" >&6
2498
ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2501
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502
as_dummy="/usr/freeware/bin:/bin:/usr/local/bin:/usr/bin"
2503
for as_dir in $as_dummy
2506
test -z "$as_dir" && as_dir=.
2507
for ac_exec_ext in '' $ac_executable_extensions; do
2508
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509
ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
2510
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521
if test -n "$TAR"; then
2522
echo "$as_me:$LINENO: result: $TAR" >&5
2523
echo "${ECHO_T}$TAR" >&6
2525
echo "$as_me:$LINENO: result: no" >&5
2526
echo "${ECHO_T}no" >&6
2532
if test -z "$ZIP"; then
2533
# Extract the first word of "gzip", so it can be a program name with args.
2534
set dummy gzip; ac_word=$2
2535
echo "$as_me:$LINENO: checking for $ac_word" >&5
2536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537
if test "${ac_cv_path_ZIP+set}" = set; then
2538
echo $ECHO_N "(cached) $ECHO_C" >&6
2542
ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
2545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546
as_dummy="/bin:/usr/bin:/usr/local/bin:/usr/freeware/bin"
2547
for as_dir in $as_dummy
2550
test -z "$as_dir" && as_dir=.
2551
for ac_exec_ext in '' $ac_executable_extensions; do
2552
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553
ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
2554
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565
if test -n "$ZIP"; then
2566
echo "$as_me:$LINENO: result: $ZIP" >&5
2567
echo "${ECHO_T}$ZIP" >&6
2569
echo "$as_me:$LINENO: result: no" >&5
2570
echo "${ECHO_T}no" >&6
2578
if test -z "$MAKEDEPEND"; then
2579
# Extract the first word of "makedepend", so it can be a program name with args.
2580
set dummy makedepend; ac_word=$2
2581
echo "$as_me:$LINENO: checking for $ac_word" >&5
2582
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2583
if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2584
echo $ECHO_N "(cached) $ECHO_C" >&6
2588
ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595
test -z "$as_dir" && as_dir=.
2596
for ac_exec_ext in '' $ac_executable_extensions; do
2597
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2598
ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2599
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605
test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="/bin/true"
2609
MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2611
if test -n "$MAKEDEPEND"; then
2612
echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2613
echo "${ECHO_T}$MAKEDEPEND" >&6
2615
echo "$as_me:$LINENO: result: no" >&5
2616
echo "${ECHO_T}no" >&6
2620
makedepend=$MAKEDEPEND
2623
if test -z "$AWK"; then
2624
# Extract the first word of "awk", so it can be a program name with args.
2625
set dummy awk; ac_word=$2
2626
echo "$as_me:$LINENO: checking for $ac_word" >&5
2627
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628
if test "${ac_cv_path_AWK+set}" = set; then
2629
echo $ECHO_N "(cached) $ECHO_C" >&6
2633
ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
2636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637
as_dummy="/bin:/usr/bin"
2638
for as_dir in $as_dummy
2641
test -z "$as_dir" && as_dir=.
2642
for ac_exec_ext in '' $ac_executable_extensions; do
2643
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644
ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
2645
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656
if test -n "$AWK"; then
2657
echo "$as_me:$LINENO: result: $AWK" >&5
2658
echo "${ECHO_T}$AWK" >&6
2660
echo "$as_me:$LINENO: result: no" >&5
2661
echo "${ECHO_T}no" >&6
2668
if test -z "$SED"; then
2669
# Extract the first word of "sed", so it can be a program name with args.
2670
set dummy sed; ac_word=$2
2671
echo "$as_me:$LINENO: checking for $ac_word" >&5
2672
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673
if test "${ac_cv_path_SED+set}" = set; then
2674
echo $ECHO_N "(cached) $ECHO_C" >&6
2678
ac_cv_path_SED="$SED" # Let the user override the test with a path.
2681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682
as_dummy="/bin:/usr/bin"
2683
for as_dir in $as_dummy
2686
test -z "$as_dir" && as_dir=.
2687
for ac_exec_ext in '' $ac_executable_extensions; do
2688
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689
ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2690
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701
if test -n "$SED"; then
2702
echo "$as_me:$LINENO: result: $SED" >&5
2703
echo "${ECHO_T}$SED" >&6
2705
echo "$as_me:$LINENO: result: no" >&5
2706
echo "${ECHO_T}no" >&6
2713
if test -z "$ECHO"; then
2714
# Extract the first word of "echo", so it can be a program name with args.
2715
set dummy echo; ac_word=$2
2716
echo "$as_me:$LINENO: checking for $ac_word" >&5
2717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2718
if test "${ac_cv_path_ECHO+set}" = set; then
2719
echo $ECHO_N "(cached) $ECHO_C" >&6
2723
ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
2726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727
as_dummy="/bin:/usr/bin"
2728
for as_dir in $as_dummy
2731
test -z "$as_dir" && as_dir=.
2732
for ac_exec_ext in '' $ac_executable_extensions; do
2733
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734
ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
2735
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744
ECHO=$ac_cv_path_ECHO
2746
if test -n "$ECHO"; then
2747
echo "$as_me:$LINENO: result: $ECHO" >&5
2748
echo "${ECHO_T}$ECHO" >&6
2750
echo "$as_me:$LINENO: result: no" >&5
2751
echo "${ECHO_T}no" >&6
2758
if test -z "$SORT"; then
2759
# Extract the first word of "sort", so it can be a program name with args.
2760
set dummy sort; ac_word=$2
2761
echo "$as_me:$LINENO: checking for $ac_word" >&5
2762
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763
if test "${ac_cv_path_SORT+set}" = set; then
2764
echo $ECHO_N "(cached) $ECHO_C" >&6
2768
ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
2771
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772
as_dummy="/bin:/usr/bin"
2773
for as_dir in $as_dummy
2776
test -z "$as_dir" && as_dir=.
2777
for ac_exec_ext in '' $ac_executable_extensions; do
2778
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779
ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
2780
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789
SORT=$ac_cv_path_SORT
2791
if test -n "$SORT"; then
2792
echo "$as_me:$LINENO: result: $SORT" >&5
2793
echo "${ECHO_T}$SORT" >&6
2795
echo "$as_me:$LINENO: result: no" >&5
2796
echo "${ECHO_T}no" >&6
2803
echo "$as_me:$LINENO: checking whether ln -s works" >&5
2804
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2806
if test "$LN_S" = "ln -s"; then
2807
echo "$as_me:$LINENO: result: yes" >&5
2808
echo "${ECHO_T}yes" >&6
2810
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2811
echo "${ECHO_T}no, using $LN_S" >&6
2815
if test "$enable_gettext" = yes; then
2816
if test -z "$MSGFMT"; then
2817
# Extract the first word of "msgfmt", so it can be a program name with args.
2818
set dummy msgfmt; ac_word=$2
2819
echo "$as_me:$LINENO: checking for $ac_word" >&5
2820
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2821
if test "${ac_cv_path_MSGFMT+set}" = set; then
2822
echo $ECHO_N "(cached) $ECHO_C" >&6
2826
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830
as_dummy="/usr/bin:/usr/local/bin:/usr/freeware/bin"
2831
for as_dir in $as_dummy
2834
test -z "$as_dir" && as_dir=.
2835
for ac_exec_ext in '' $ac_executable_extensions; do
2836
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837
ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
2838
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847
MSGFMT=$ac_cv_path_MSGFMT
2849
if test -n "$MSGFMT"; then
2850
echo "$as_me:$LINENO: result: $MSGFMT" >&5
2851
echo "${ECHO_T}$MSGFMT" >&6
2853
echo "$as_me:$LINENO: result: no" >&5
2854
echo "${ECHO_T}no" >&6
2860
if test -z ""$msgfmt""; then
2862
echo FATAL ERROR: msgfmt does not seem to be installed.
2863
echo attr cannot be built without a working gettext installation.
2868
if test -z "$MSGMERGE"; then
2869
# Extract the first word of "msgmerge", so it can be a program name with args.
2870
set dummy msgmerge; ac_word=$2
2871
echo "$as_me:$LINENO: checking for $ac_word" >&5
2872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873
if test "${ac_cv_path_MSGMERGE+set}" = set; then
2874
echo $ECHO_N "(cached) $ECHO_C" >&6
2878
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882
as_dummy="/usr/bin:/usr/local/bin:/usr/freeware/bin"
2883
for as_dir in $as_dummy
2886
test -z "$as_dir" && as_dir=.
2887
for ac_exec_ext in '' $ac_executable_extensions; do
2888
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889
ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
2890
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899
MSGMERGE=$ac_cv_path_MSGMERGE
2901
if test -n "$MSGMERGE"; then
2902
echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2903
echo "${ECHO_T}$MSGMERGE" >&6
2905
echo "$as_me:$LINENO: result: no" >&5
2906
echo "${ECHO_T}no" >&6
2912
if test -z ""$msgmerge""; then
2914
echo FATAL ERROR: msgmerge does not seem to be installed.
2915
echo attr cannot be built without a working gettext installation.
2920
if test -z "$XGETTEXT"; then
2921
# Extract the first word of "xgettext", so it can be a program name with args.
2922
set dummy xgettext; ac_word=$2
2923
echo "$as_me:$LINENO: checking for $ac_word" >&5
2924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925
if test "${ac_cv_path_XGETTEXT+set}" = set; then
2926
echo $ECHO_N "(cached) $ECHO_C" >&6
2930
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934
as_dummy="/usr/bin:/usr/local/bin:/usr/freeware/bin"
2935
for as_dir in $as_dummy
2938
test -z "$as_dir" && as_dir=.
2939
for ac_exec_ext in '' $ac_executable_extensions; do
2940
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941
ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
2942
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951
XGETTEXT=$ac_cv_path_XGETTEXT
2953
if test -n "$XGETTEXT"; then
2954
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2955
echo "${ECHO_T}$XGETTEXT" >&6
2957
echo "$as_me:$LINENO: result: no" >&5
2958
echo "${ECHO_T}no" >&6
2964
if test -z ""$xgettext""; then
2966
echo FATAL ERROR: xgettext does not seem to be installed.
2967
echo attr cannot be built without a working gettext installation.
2973
if test -z "$RPM"; then
2974
# Extract the first word of "rpm", so it can be a program name with args.
2975
set dummy rpm; ac_word=$2
2976
echo "$as_me:$LINENO: checking for $ac_word" >&5
2977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2978
if test "${ac_cv_path_RPM+set}" = set; then
2979
echo $ECHO_N "(cached) $ECHO_C" >&6
2983
ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
2986
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987
as_dummy="/bin:/usr/bin:/usr/freeware/bin"
2988
for as_dir in $as_dummy
2991
test -z "$as_dir" && as_dir=.
2992
for ac_exec_ext in '' $ac_executable_extensions; do
2993
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994
ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
2995
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006
if test -n "$RPM"; then
3007
echo "$as_me:$LINENO: result: $RPM" >&5
3008
echo "${ECHO_T}$RPM" >&6
3010
echo "$as_me:$LINENO: result: no" >&5
3011
echo "${ECHO_T}no" >&6
3019
test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
3020
| awk '{print $NF}' | awk -F. '{V=1; print $V}'`
3022
if test $rpm_version -ge 4; then
3023
# Extract the first word of "rpmbuild", so it can be a program name with args.
3024
set dummy rpmbuild; ac_word=$2
3025
echo "$as_me:$LINENO: checking for $ac_word" >&5
3026
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027
if test "${ac_cv_path_RPMBUILD+set}" = set; then
3028
echo $ECHO_N "(cached) $ECHO_C" >&6
3032
ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
3035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039
test -z "$as_dir" && as_dir=.
3040
for ac_exec_ext in '' $ac_executable_extensions; do
3041
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042
ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
3043
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052
RPMBUILD=$ac_cv_path_RPMBUILD
3054
if test -n "$RPMBUILD"; then
3055
echo "$as_me:$LINENO: result: $RPMBUILD" >&5
3056
echo "${ECHO_T}$RPMBUILD" >&6
3058
echo "$as_me:$LINENO: result: no" >&5
3059
echo "${ECHO_T}no" >&6
3068
have_zipped_manpages=false
3069
for d in ${prefix}/share/man ${prefix}/man ; do
3070
if test -f $d/man1/man.1.gz
3072
have_zipped_manpages=true
3079
enable_lib64="$enable_lib64"
3081
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3082
if test "$enable_lib64" = "yes" -a -n "$searchpath"; then
3083
save_IFS="${IFS= }"; IFS=":"
3084
for searchdir in $searchpath; do
3085
if test -d "$searchdir"; then
3086
case "$searchdir" in
3087
*/lib64/ | */lib64 ) libdirsuffix=64 ;;
3088
*) searchdir=`cd "$searchdir" && pwd`
3089
case "$searchdir" in
3090
*/lib64 ) libdirsuffix=64 ;;
3101
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3102
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3103
if test "${ac_cv_c_const+set}" = set; then
3104
echo $ECHO_N "(cached) $ECHO_C" >&6
3106
cat >conftest.$ac_ext <<_ACEOF
3109
cat confdefs.h >>conftest.$ac_ext
3110
cat >>conftest.$ac_ext <<_ACEOF
3111
/* end confdefs.h. */
3116
/* FIXME: Include the comments suggested by Paul. */
3118
/* Ultrix mips cc rejects this. */
3119
typedef int charset[2];
3121
/* SunOS 4.1.1 cc rejects this. */
3122
char const *const *ccp;
3124
/* NEC SVR4.0.2 mips cc rejects this. */
3125
struct point {int x, y;};
3126
static struct point const zero = {0,0};
3127
/* AIX XL C 1.02.0.0 rejects this.
3128
It does not let you subtract one const X* pointer from another in
3129
an arm of an if-expression whose if-part is not a constant
3131
const char *g = "string";
3132
ccp = &g + (g ? g-g : 0);
3133
/* HPUX 7.0 cc rejects these. */
3136
ccp = (char const *const *) p;
3137
{ /* SCO 3.2v4 cc rejects this. */
3139
char const *s = 0 ? (char *) 0 : (char const *) 0;
3143
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3145
const int *foo = &x[0];
3148
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3149
typedef const int *iptr;
3153
{ /* AIX XL C 1.02.0.0 rejects this saying
3154
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3155
struct s { int j; const int *ap[3]; };
3156
struct s *b; b->j = 5;
3158
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3167
rm -f conftest.$ac_objext
3168
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169
(eval $ac_compile) 2>conftest.er1
3171
grep -v '^ *+' conftest.er1 >conftest.err
3173
cat conftest.err >&5
3174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175
(exit $ac_status); } &&
3176
{ ac_try='test -z "$ac_c_werror_flag"
3177
|| test ! -s conftest.err'
3178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182
(exit $ac_status); }; } &&
3183
{ ac_try='test -s conftest.$ac_objext'
3184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188
(exit $ac_status); }; }; then
3191
echo "$as_me: failed program was:" >&5
3192
sed 's/^/| /' conftest.$ac_ext >&5
3196
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3198
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3199
echo "${ECHO_T}$ac_cv_c_const" >&6
3200
if test $ac_cv_c_const = no; then
3202
cat >>confdefs.h <<\_ACEOF
3209
ac_cpp='$CPP $CPPFLAGS'
3210
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3214
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3215
# On Suns, sometimes $CPP names a directory.
3216
if test -n "$CPP" && test -d "$CPP"; then
3219
if test -z "$CPP"; then
3220
if test "${ac_cv_prog_CPP+set}" = set; then
3221
echo $ECHO_N "(cached) $ECHO_C" >&6
3223
# Double quotes because CPP needs to be expanded
3224
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227
for ac_c_preproc_warn_flag in '' yes
3229
# Use a header file that comes with gcc, so configuring glibc
3230
# with a fresh cross-compiler works.
3231
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232
# <limits.h> exists even on freestanding compilers.
3233
# On the NeXT, cc -E runs the code through the compiler's parser,
3234
# not just through cpp. "Syntax error" is here to catch this case.
3235
cat >conftest.$ac_ext <<_ACEOF
3238
cat confdefs.h >>conftest.$ac_ext
3239
cat >>conftest.$ac_ext <<_ACEOF
3240
/* end confdefs.h. */
3242
# include <limits.h>
3244
# include <assert.h>
3248
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3249
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3251
grep -v '^ *+' conftest.er1 >conftest.err
3253
cat conftest.err >&5
3254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255
(exit $ac_status); } >/dev/null; then
3256
if test -s conftest.err; then
3257
ac_cpp_err=$ac_c_preproc_warn_flag
3258
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265
if test -z "$ac_cpp_err"; then
3268
echo "$as_me: failed program was:" >&5
3269
sed 's/^/| /' conftest.$ac_ext >&5
3271
# Broken: fails on valid input.
3274
rm -f conftest.err conftest.$ac_ext
3276
# OK, works on sane cases. Now check whether non-existent headers
3277
# can be detected and how.
3278
cat >conftest.$ac_ext <<_ACEOF
3281
cat confdefs.h >>conftest.$ac_ext
3282
cat >>conftest.$ac_ext <<_ACEOF
3283
/* end confdefs.h. */
3284
#include <ac_nonexistent.h>
3286
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3287
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3289
grep -v '^ *+' conftest.er1 >conftest.err
3291
cat conftest.err >&5
3292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293
(exit $ac_status); } >/dev/null; then
3294
if test -s conftest.err; then
3295
ac_cpp_err=$ac_c_preproc_warn_flag
3296
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303
if test -z "$ac_cpp_err"; then
3304
# Broken: success on invalid input.
3307
echo "$as_me: failed program was:" >&5
3308
sed 's/^/| /' conftest.$ac_ext >&5
3310
# Passes both tests.
3314
rm -f conftest.err conftest.$ac_ext
3317
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318
rm -f conftest.err conftest.$ac_ext
3319
if $ac_preproc_ok; then
3331
echo "$as_me:$LINENO: result: $CPP" >&5
3332
echo "${ECHO_T}$CPP" >&6
3334
for ac_c_preproc_warn_flag in '' yes
3336
# Use a header file that comes with gcc, so configuring glibc
3337
# with a fresh cross-compiler works.
3338
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339
# <limits.h> exists even on freestanding compilers.
3340
# On the NeXT, cc -E runs the code through the compiler's parser,
3341
# not just through cpp. "Syntax error" is here to catch this case.
3342
cat >conftest.$ac_ext <<_ACEOF
3345
cat confdefs.h >>conftest.$ac_ext
3346
cat >>conftest.$ac_ext <<_ACEOF
3347
/* end confdefs.h. */
3349
# include <limits.h>
3351
# include <assert.h>
3355
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3356
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3358
grep -v '^ *+' conftest.er1 >conftest.err
3360
cat conftest.err >&5
3361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362
(exit $ac_status); } >/dev/null; then
3363
if test -s conftest.err; then
3364
ac_cpp_err=$ac_c_preproc_warn_flag
3365
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3372
if test -z "$ac_cpp_err"; then
3375
echo "$as_me: failed program was:" >&5
3376
sed 's/^/| /' conftest.$ac_ext >&5
3378
# Broken: fails on valid input.
3381
rm -f conftest.err conftest.$ac_ext
3383
# OK, works on sane cases. Now check whether non-existent headers
3384
# can be detected and how.
3385
cat >conftest.$ac_ext <<_ACEOF
3388
cat confdefs.h >>conftest.$ac_ext
3389
cat >>conftest.$ac_ext <<_ACEOF
3390
/* end confdefs.h. */
3391
#include <ac_nonexistent.h>
3393
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3394
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3396
grep -v '^ *+' conftest.er1 >conftest.err
3398
cat conftest.err >&5
3399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400
(exit $ac_status); } >/dev/null; then
3401
if test -s conftest.err; then
3402
ac_cpp_err=$ac_c_preproc_warn_flag
3403
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410
if test -z "$ac_cpp_err"; then
3411
# Broken: success on invalid input.
3414
echo "$as_me: failed program was:" >&5
3415
sed 's/^/| /' conftest.$ac_ext >&5
3417
# Passes both tests.
3421
rm -f conftest.err conftest.$ac_ext
3424
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3425
rm -f conftest.err conftest.$ac_ext
3426
if $ac_preproc_ok; then
3429
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3430
See \`config.log' for more details." >&5
3431
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3432
See \`config.log' for more details." >&2;}
3433
{ (exit 1); exit 1; }; }
3437
ac_cpp='$CPP $CPPFLAGS'
3438
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
echo "$as_me:$LINENO: checking for egrep" >&5
3444
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3445
if test "${ac_cv_prog_egrep+set}" = set; then
3446
echo $ECHO_N "(cached) $ECHO_C" >&6
3448
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3449
then ac_cv_prog_egrep='grep -E'
3450
else ac_cv_prog_egrep='egrep'
3453
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3454
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3455
EGREP=$ac_cv_prog_egrep
3458
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3459
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3460
if test "${ac_cv_header_stdc+set}" = set; then
3461
echo $ECHO_N "(cached) $ECHO_C" >&6
3463
cat >conftest.$ac_ext <<_ACEOF
3466
cat confdefs.h >>conftest.$ac_ext
3467
cat >>conftest.$ac_ext <<_ACEOF
3468
/* end confdefs.h. */
3482
rm -f conftest.$ac_objext
3483
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3484
(eval $ac_compile) 2>conftest.er1
3486
grep -v '^ *+' conftest.er1 >conftest.err
3488
cat conftest.err >&5
3489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490
(exit $ac_status); } &&
3491
{ ac_try='test -z "$ac_c_werror_flag"
3492
|| test ! -s conftest.err'
3493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497
(exit $ac_status); }; } &&
3498
{ ac_try='test -s conftest.$ac_objext'
3499
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503
(exit $ac_status); }; }; then
3504
ac_cv_header_stdc=yes
3506
echo "$as_me: failed program was:" >&5
3507
sed 's/^/| /' conftest.$ac_ext >&5
3509
ac_cv_header_stdc=no
3511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513
if test $ac_cv_header_stdc = yes; then
3514
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3515
cat >conftest.$ac_ext <<_ACEOF
3518
cat confdefs.h >>conftest.$ac_ext
3519
cat >>conftest.$ac_ext <<_ACEOF
3520
/* end confdefs.h. */
3524
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3525
$EGREP "memchr" >/dev/null 2>&1; then
3528
ac_cv_header_stdc=no
3534
if test $ac_cv_header_stdc = yes; then
3535
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3536
cat >conftest.$ac_ext <<_ACEOF
3539
cat confdefs.h >>conftest.$ac_ext
3540
cat >>conftest.$ac_ext <<_ACEOF
3541
/* end confdefs.h. */
3545
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3546
$EGREP "free" >/dev/null 2>&1; then
3549
ac_cv_header_stdc=no
3555
if test $ac_cv_header_stdc = yes; then
3556
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3557
if test "$cross_compiling" = yes; then
3560
cat >conftest.$ac_ext <<_ACEOF
3563
cat confdefs.h >>conftest.$ac_ext
3564
cat >>conftest.$ac_ext <<_ACEOF
3565
/* end confdefs.h. */
3567
#if ((' ' & 0x0FF) == 0x020)
3568
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3569
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3571
# define ISLOWER(c) \
3572
(('a' <= (c) && (c) <= 'i') \
3573
|| ('j' <= (c) && (c) <= 'r') \
3574
|| ('s' <= (c) && (c) <= 'z'))
3575
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3578
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3583
for (i = 0; i < 256; i++)
3584
if (XOR (islower (i), ISLOWER (i))
3585
|| toupper (i) != TOUPPER (i))
3590
rm -f conftest$ac_exeext
3591
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3592
(eval $ac_link) 2>&5
3594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600
(exit $ac_status); }; }; then
3603
echo "$as_me: program exited with status $ac_status" >&5
3604
echo "$as_me: failed program was:" >&5
3605
sed 's/^/| /' conftest.$ac_ext >&5
3608
ac_cv_header_stdc=no
3610
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3614
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3615
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3616
if test $ac_cv_header_stdc = yes; then
3618
cat >>confdefs.h <<\_ACEOF
3619
#define STDC_HEADERS 1
3624
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3634
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3635
inttypes.h stdint.h unistd.h
3637
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3638
echo "$as_me:$LINENO: checking for $ac_header" >&5
3639
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3640
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3641
echo $ECHO_N "(cached) $ECHO_C" >&6
3643
cat >conftest.$ac_ext <<_ACEOF
3646
cat confdefs.h >>conftest.$ac_ext
3647
cat >>conftest.$ac_ext <<_ACEOF
3648
/* end confdefs.h. */
3649
$ac_includes_default
3651
#include <$ac_header>
3653
rm -f conftest.$ac_objext
3654
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655
(eval $ac_compile) 2>conftest.er1
3657
grep -v '^ *+' conftest.er1 >conftest.err
3659
cat conftest.err >&5
3660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661
(exit $ac_status); } &&
3662
{ ac_try='test -z "$ac_c_werror_flag"
3663
|| test ! -s conftest.err'
3664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668
(exit $ac_status); }; } &&
3669
{ ac_try='test -s conftest.$ac_objext'
3670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674
(exit $ac_status); }; }; then
3675
eval "$as_ac_Header=yes"
3677
echo "$as_me: failed program was:" >&5
3678
sed 's/^/| /' conftest.$ac_ext >&5
3680
eval "$as_ac_Header=no"
3682
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3684
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3685
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3686
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3687
cat >>confdefs.h <<_ACEOF
3688
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3696
echo "$as_me:$LINENO: checking for mode_t" >&5
3697
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3698
if test "${ac_cv_type_mode_t+set}" = set; then
3699
echo $ECHO_N "(cached) $ECHO_C" >&6
3701
cat >conftest.$ac_ext <<_ACEOF
3704
cat confdefs.h >>conftest.$ac_ext
3705
cat >>conftest.$ac_ext <<_ACEOF
3706
/* end confdefs.h. */
3707
$ac_includes_default
3713
if (sizeof (mode_t))
3719
rm -f conftest.$ac_objext
3720
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3721
(eval $ac_compile) 2>conftest.er1
3723
grep -v '^ *+' conftest.er1 >conftest.err
3725
cat conftest.err >&5
3726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727
(exit $ac_status); } &&
3728
{ ac_try='test -z "$ac_c_werror_flag"
3729
|| test ! -s conftest.err'
3730
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734
(exit $ac_status); }; } &&
3735
{ ac_try='test -s conftest.$ac_objext'
3736
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740
(exit $ac_status); }; }; then
3741
ac_cv_type_mode_t=yes
3743
echo "$as_me: failed program was:" >&5
3744
sed 's/^/| /' conftest.$ac_ext >&5
3746
ac_cv_type_mode_t=no
3748
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3750
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3751
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3752
if test $ac_cv_type_mode_t = yes; then
3756
cat >>confdefs.h <<_ACEOF
3762
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3763
# for constant arguments. Useless!
3764
echo "$as_me:$LINENO: checking for working alloca.h" >&5
3765
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3766
if test "${ac_cv_working_alloca_h+set}" = set; then
3767
echo $ECHO_N "(cached) $ECHO_C" >&6
3769
cat >conftest.$ac_ext <<_ACEOF
3772
cat confdefs.h >>conftest.$ac_ext
3773
cat >>conftest.$ac_ext <<_ACEOF
3774
/* end confdefs.h. */
3779
char *p = (char *) alloca (2 * sizeof (int));
3784
rm -f conftest.$ac_objext conftest$ac_exeext
3785
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3786
(eval $ac_link) 2>conftest.er1
3788
grep -v '^ *+' conftest.er1 >conftest.err
3790
cat conftest.err >&5
3791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
(exit $ac_status); } &&
3793
{ ac_try='test -z "$ac_c_werror_flag"
3794
|| test ! -s conftest.err'
3795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799
(exit $ac_status); }; } &&
3800
{ ac_try='test -s conftest$ac_exeext'
3801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805
(exit $ac_status); }; }; then
3806
ac_cv_working_alloca_h=yes
3808
echo "$as_me: failed program was:" >&5
3809
sed 's/^/| /' conftest.$ac_ext >&5
3811
ac_cv_working_alloca_h=no
3813
rm -f conftest.err conftest.$ac_objext \
3814
conftest$ac_exeext conftest.$ac_ext
3816
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3817
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3818
if test $ac_cv_working_alloca_h = yes; then
3820
cat >>confdefs.h <<\_ACEOF
3821
#define HAVE_ALLOCA_H 1
3826
echo "$as_me:$LINENO: checking for alloca" >&5
3827
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3828
if test "${ac_cv_func_alloca_works+set}" = set; then
3829
echo $ECHO_N "(cached) $ECHO_C" >&6
3831
cat >conftest.$ac_ext <<_ACEOF
3834
cat confdefs.h >>conftest.$ac_ext
3835
cat >>conftest.$ac_ext <<_ACEOF
3836
/* end confdefs.h. */
3838
# define alloca __builtin_alloca
3841
# include <malloc.h>
3842
# define alloca _alloca
3845
# include <alloca.h>
3850
# ifndef alloca /* predefined by HP cc +Olibcalls */
3861
char *p = (char *) alloca (1);
3866
rm -f conftest.$ac_objext conftest$ac_exeext
3867
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868
(eval $ac_link) 2>conftest.er1
3870
grep -v '^ *+' conftest.er1 >conftest.err
3872
cat conftest.err >&5
3873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874
(exit $ac_status); } &&
3875
{ ac_try='test -z "$ac_c_werror_flag"
3876
|| test ! -s conftest.err'
3877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881
(exit $ac_status); }; } &&
3882
{ ac_try='test -s conftest$ac_exeext'
3883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887
(exit $ac_status); }; }; then
3888
ac_cv_func_alloca_works=yes
3890
echo "$as_me: failed program was:" >&5
3891
sed 's/^/| /' conftest.$ac_ext >&5
3893
ac_cv_func_alloca_works=no
3895
rm -f conftest.err conftest.$ac_objext \
3896
conftest$ac_exeext conftest.$ac_ext
3898
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3899
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3901
if test $ac_cv_func_alloca_works = yes; then
3903
cat >>confdefs.h <<\_ACEOF
3904
#define HAVE_ALLOCA 1
3908
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
3909
# that cause trouble. Some versions do not even contain alloca or
3910
# contain a buggy version. If you still want to use their alloca,
3911
# use ar to extract alloca.o from them instead of compiling alloca.c.
3913
ALLOCA=alloca.$ac_objext
3915
cat >>confdefs.h <<\_ACEOF
3920
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3921
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3922
if test "${ac_cv_os_cray+set}" = set; then
3923
echo $ECHO_N "(cached) $ECHO_C" >&6
3925
cat >conftest.$ac_ext <<_ACEOF
3928
cat confdefs.h >>conftest.$ac_ext
3929
cat >>conftest.$ac_ext <<_ACEOF
3930
/* end confdefs.h. */
3931
#if defined(CRAY) && ! defined(CRAY2)
3938
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939
$EGREP "webecray" >/dev/null 2>&1; then
3947
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3948
echo "${ECHO_T}$ac_cv_os_cray" >&6
3949
if test $ac_cv_os_cray = yes; then
3950
for ac_func in _getb67 GETB67 getb67; do
3951
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3952
echo "$as_me:$LINENO: checking for $ac_func" >&5
3953
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3954
if eval "test \"\${$as_ac_var+set}\" = set"; then
3955
echo $ECHO_N "(cached) $ECHO_C" >&6
3957
cat >conftest.$ac_ext <<_ACEOF
3960
cat confdefs.h >>conftest.$ac_ext
3961
cat >>conftest.$ac_ext <<_ACEOF
3962
/* end confdefs.h. */
3963
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3964
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3965
#define $ac_func innocuous_$ac_func
3967
/* System header to define __stub macros and hopefully few prototypes,
3968
which can conflict with char $ac_func (); below.
3969
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970
<limits.h> exists even on freestanding compilers. */
3973
# include <limits.h>
3975
# include <assert.h>
3980
/* Override any gcc2 internal prototype to avoid an error. */
3985
/* We use char because int might match the return type of a gcc2
3986
builtin and then its argument prototype would still apply. */
3988
/* The GNU C library defines this for functions which it implements
3989
to always fail with ENOSYS. Some functions are actually named
3990
something starting with __ and the normal name is an alias. */
3991
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3994
char (*f) () = $ac_func;
4003
return f != $ac_func;
4008
rm -f conftest.$ac_objext conftest$ac_exeext
4009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4010
(eval $ac_link) 2>conftest.er1
4012
grep -v '^ *+' conftest.er1 >conftest.err
4014
cat conftest.err >&5
4015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016
(exit $ac_status); } &&
4017
{ ac_try='test -z "$ac_c_werror_flag"
4018
|| test ! -s conftest.err'
4019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023
(exit $ac_status); }; } &&
4024
{ ac_try='test -s conftest$ac_exeext'
4025
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029
(exit $ac_status); }; }; then
4030
eval "$as_ac_var=yes"
4032
echo "$as_me: failed program was:" >&5
4033
sed 's/^/| /' conftest.$ac_ext >&5
4035
eval "$as_ac_var=no"
4037
rm -f conftest.err conftest.$ac_objext \
4038
conftest$ac_exeext conftest.$ac_ext
4040
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4041
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4042
if test `eval echo '${'$as_ac_var'}'` = yes; then
4044
cat >>confdefs.h <<_ACEOF
4045
#define CRAY_STACKSEG_END $ac_func
4054
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4055
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4056
if test "${ac_cv_c_stack_direction+set}" = set; then
4057
echo $ECHO_N "(cached) $ECHO_C" >&6
4059
if test "$cross_compiling" = yes; then
4060
ac_cv_c_stack_direction=0
4062
cat >conftest.$ac_ext <<_ACEOF
4065
cat confdefs.h >>conftest.$ac_ext
4066
cat >>conftest.$ac_ext <<_ACEOF
4067
/* end confdefs.h. */
4069
find_stack_direction ()
4071
static char *addr = 0;
4076
return find_stack_direction ();
4079
return (&dummy > addr) ? 1 : -1;
4085
exit (find_stack_direction () < 0);
4088
rm -f conftest$ac_exeext
4089
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4090
(eval $ac_link) 2>&5
4092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4094
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098
(exit $ac_status); }; }; then
4099
ac_cv_c_stack_direction=1
4101
echo "$as_me: program exited with status $ac_status" >&5
4102
echo "$as_me: failed program was:" >&5
4103
sed 's/^/| /' conftest.$ac_ext >&5
4106
ac_cv_c_stack_direction=-1
4108
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4111
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4112
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4114
cat >>confdefs.h <<_ACEOF
4115
#define STACK_DIRECTION $ac_cv_c_stack_direction
4122
ac_config_files="$ac_config_files include/builddefs"
4123
cat >confcache <<\_ACEOF
4124
# This file is a shell script that caches the results of configure
4125
# tests run on this system so they can be shared between configure
4126
# scripts and configure runs, see configure's option --config-cache.
4127
# It is not useful on other systems. If it contains results you don't
4128
# want to keep, you may remove or edit it.
4130
# config.status only pays attention to the cache file if you give it
4131
# the --recheck option to rerun configure.
4133
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4134
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4139
# The following way of writing the cache mishandles newlines in values,
4140
# but we know of no workaround that is simple, portable, and efficient.
4141
# So, don't put newlines in cache variables' values.
4142
# Ultrix sh set writes to stderr and can't be redirected directly,
4143
# and sets the high bit in the cache file unless we assign to the vars.
4146
case `(ac_space=' '; set | grep ac_space) 2>&1` in
4148
# `set' does not quote correctly, so add quotes (double-quote
4149
# substitution turns \\\\ into \\, and sed turns \\ into \).
4152
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4155
# `set' quotes correctly as required by POSIX, so do not add quotes.
4157
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4164
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4166
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4168
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4169
if test -w $cache_file; then
4170
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4171
cat confcache >$cache_file
4173
echo "not updating unwritable cache $cache_file"
4178
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4179
# Let make expand exec_prefix.
4180
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4182
# VPATH may cause trouble with some makes, so we remove $(srcdir),
4183
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4184
# trailing colons and then remove the whole line if VPATH becomes empty
4185
# (actually we leave an empty line to preserve line numbers).
4186
if test "x$srcdir" = x.; then
4187
ac_vpsub='/^[ ]*VPATH[ ]*=/{
4188
s/:*\$(srcdir):*/:/;
4189
s/:*\${srcdir}:*/:/;
4191
s/^\([^=]*=[ ]*\):*/\1/;
4197
DEFS=-DHAVE_CONFIG_H
4201
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4202
# 1. Remove the extension, and $U if already installed.
4203
ac_i=`echo "$ac_i" |
4204
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4206
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4207
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4211
LTLIBOBJS=$ac_ltlibobjs
4215
: ${CONFIG_STATUS=./config.status}
4216
ac_clean_files_save=$ac_clean_files
4217
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4218
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4219
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4220
cat >$CONFIG_STATUS <<_ACEOF
4222
# Generated by $as_me.
4223
# Run this file to recreate the current configuration.
4224
# Compiler output produced by configure, useful for debugging
4225
# configure, is in config.log if it exists.
4230
SHELL=\${CONFIG_SHELL-$SHELL}
4233
cat >>$CONFIG_STATUS <<\_ACEOF
4234
## --------------------- ##
4235
## M4sh Initialization. ##
4236
## --------------------- ##
4238
# Be Bourne compatible
4239
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4242
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4243
# is contrary to our usage. Disable this feature.
4244
alias -g '${1+"$@"}'='"$@"'
4245
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4248
DUALCASE=1; export DUALCASE # for MKS sh
4250
# Support unset when possible.
4251
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4258
# Work around bugs in pre-3.0 UWIN ksh.
4259
$as_unset ENV MAIL MAILPATH
4266
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4267
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4268
LC_TELEPHONE LC_TIME
4270
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4271
eval $as_var=C; export $as_var
4277
# Required to use basename.
4278
if expr a : '\(a\)' >/dev/null 2>&1; then
4284
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4285
as_basename=basename
4291
# Name of the executable.
4292
as_me=`$as_basename "$0" ||
4293
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4294
X"$0" : 'X\(//\)$' \| \
4295
X"$0" : 'X\(/\)$' \| \
4296
. : '\(.\)' 2>/dev/null ||
4298
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4299
/^X\/\(\/\/\)$/{ s//\1/; q; }
4300
/^X\/\(\/\).*/{ s//\1/; q; }
4304
# PATH needs CR, and LINENO needs CR and PATH.
4305
# Avoid depending upon Character Ranges.
4306
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4307
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4308
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4309
as_cr_digits='0123456789'
4310
as_cr_alnum=$as_cr_Letters$as_cr_digits
4312
# The user is always right.
4313
if test "${PATH_SEPARATOR+set}" != set; then
4314
echo "#! /bin/sh" >conf$$.sh
4315
echo "exit 0" >>conf$$.sh
4317
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4328
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4329
test "x$as_lineno_1" != "x$as_lineno_2" &&
4330
test "x$as_lineno_3" = "x$as_lineno_2" || {
4331
# Find who we are. Look in the path if we contain no path at all
4334
*[\\/]* ) as_myself=$0 ;;
4335
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339
test -z "$as_dir" && as_dir=.
4340
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4345
# We did not find ourselves, most probably we were run as `sh COMMAND'
4346
# in which case we are not to be found in the path.
4347
if test "x$as_myself" = x; then
4350
if test ! -f "$as_myself"; then
4351
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4352
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4353
{ (exit 1); exit 1; }; }
4355
case $CONFIG_SHELL in
4357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4361
test -z "$as_dir" && as_dir=.
4362
for as_base in sh bash ksh sh5; do
4365
if ("$as_dir/$as_base" -c '
4368
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4369
test "x$as_lineno_1" != "x$as_lineno_2" &&
4370
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4371
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4372
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4373
CONFIG_SHELL=$as_dir/$as_base
4375
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4383
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4384
# uniformly replaced by the line number. The first 'sed' inserts a
4385
# line-number line before each line; the second 'sed' does the real
4386
# work. The second script uses 'N' to pair each line-number line
4387
# with the numbered line, and appends trailing '-' during
4388
# substitution so that $LINENO is not a special case at line end.
4389
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4390
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4391
sed '=' <$as_myself |
4396
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4399
s,^['$as_cr_digits']*\n,,
4401
chmod +x $as_me.lineno ||
4402
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4403
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4404
{ (exit 1); exit 1; }; }
4406
# Don't try to exec as it changes $[0], causing all sort of problems
4407
# (the dirname of $[0] is not the place where we might find the
4408
# original and so on. Autoconf is especially sensible to this).
4410
# Exit status is that of the last command.
4415
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4416
*c*,-n*) ECHO_N= ECHO_C='
4418
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4419
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4422
if expr a : '\(a\)' >/dev/null 2>&1; then
4428
rm -f conf$$ conf$$.exe conf$$.file
4430
if ln -s conf$$.file conf$$ 2>/dev/null; then
4431
# We could just check for DJGPP; but this test a) works b) is more generic
4432
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4433
if test -f conf$$.exe; then
4434
# Don't use ln at all; we don't have any links
4439
elif ln conf$$.file conf$$ 2>/dev/null; then
4444
rm -f conf$$ conf$$.exe conf$$.file
4446
if mkdir -p . 2>/dev/null; then
4449
test -d ./-p && rmdir ./-p
4453
as_executable_p="test -f"
4455
# Sed expression to map a string onto a valid CPP name.
4456
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4458
# Sed expression to map a string onto a valid variable name.
4459
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4463
# We need space, tab and new line, in precisely that order.
4473
# Open the log real soon, to keep \$[0] and so on meaningful, and to
4474
# report actual input values of CONFIG_FILES etc. instead of their
4475
# values after options handling. Logging --version etc. is OK.
4479
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4480
## Running $as_me. ##
4485
This file was extended by $as_me, which was
4486
generated by GNU Autoconf 2.59. Invocation command line was
4488
CONFIG_FILES = $CONFIG_FILES
4489
CONFIG_HEADERS = $CONFIG_HEADERS
4490
CONFIG_LINKS = $CONFIG_LINKS
4491
CONFIG_COMMANDS = $CONFIG_COMMANDS
4495
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4499
# Files that config.status was made for.
4500
if test -n "$ac_config_files"; then
4501
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4504
if test -n "$ac_config_headers"; then
4505
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4508
if test -n "$ac_config_links"; then
4509
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4512
if test -n "$ac_config_commands"; then
4513
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4516
cat >>$CONFIG_STATUS <<\_ACEOF
4519
\`$as_me' instantiates files from templates according to the
4520
current configuration.
4522
Usage: $0 [OPTIONS] [FILE]...
4524
-h, --help print this help, then exit
4525
-V, --version print version number, then exit
4526
-q, --quiet do not print progress messages
4527
-d, --debug don't remove temporary files
4528
--recheck update $as_me by reconfiguring in the same conditions
4529
--file=FILE[:TEMPLATE]
4530
instantiate the configuration file FILE
4531
--header=FILE[:TEMPLATE]
4532
instantiate the configuration header FILE
4534
Configuration files:
4537
Configuration headers:
4540
Report bugs to <bug-autoconf@gnu.org>."
4543
cat >>$CONFIG_STATUS <<_ACEOF
4546
configured by $0, generated by GNU Autoconf 2.59,
4547
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4549
Copyright (C) 2003 Free Software Foundation, Inc.
4550
This config.status script is free software; the Free Software Foundation
4551
gives unlimited permission to copy, distribute and modify it."
4555
cat >>$CONFIG_STATUS <<\_ACEOF
4556
# If no file are specified by the user, then we need to provide default
4557
# value. By we need to know if files were specified by the user.
4563
ac_option=`expr "x$1" : 'x\([^=]*\)='`
4564
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4572
*) # This is not an option, so the user has probably given explicit
4575
ac_need_defaults=false;;
4579
# Handling of the options.
4581
cat >>$CONFIG_STATUS <<\_ACEOF
4582
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4584
--version | --vers* | -V )
4585
echo "$ac_cs_version"; exit 0 ;;
4587
# Conflict between --help and --header
4588
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
4589
Try \`$0 --help' for more information." >&5
4590
echo "$as_me: error: ambiguous option: $1
4591
Try \`$0 --help' for more information." >&2;}
4592
{ (exit 1); exit 1; }; };;
4593
--help | --hel | -h )
4594
echo "$ac_cs_usage"; exit 0 ;;
4595
--debug | --d* | -d )
4597
--file | --fil | --fi | --f )
4599
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4600
ac_need_defaults=false;;
4601
--header | --heade | --head | --hea )
4603
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4604
ac_need_defaults=false;;
4605
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
4606
| -silent | --silent | --silen | --sile | --sil | --si | --s)
4610
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4611
Try \`$0 --help' for more information." >&5
4612
echo "$as_me: error: unrecognized option: $1
4613
Try \`$0 --help' for more information." >&2;}
4614
{ (exit 1); exit 1; }; } ;;
4616
*) ac_config_targets="$ac_config_targets $1" ;;
4622
ac_configure_extra_args=
4624
if $ac_cs_silent; then
4626
ac_configure_extra_args="$ac_configure_extra_args --silent"
4630
cat >>$CONFIG_STATUS <<_ACEOF
4631
if \$ac_cs_recheck; then
4632
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4633
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4642
cat >>$CONFIG_STATUS <<\_ACEOF
4643
for ac_config_target in $ac_config_targets
4645
case "$ac_config_target" in
4646
# Handling of arguments.
4647
"include/builddefs" ) CONFIG_FILES="$CONFIG_FILES include/builddefs" ;;
4648
"include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
4649
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4650
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4651
{ (exit 1); exit 1; }; };;
4655
# If the user did not use the arguments to specify the items to instantiate,
4656
# then the envvar interface is used. Set only those that are not.
4657
# We use the long form for the default assignment because of an extremely
4658
# bizarre bug on SunOS 4.1.3.
4659
if $ac_need_defaults; then
4660
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4661
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4664
# Have a temporary directory for convenience. Make it in the build tree
4665
# simply because there is no reason to put it here, and in addition,
4666
# creating and moving files from /tmp can sometimes cause problems.
4667
# Create a temporary directory, and hook for its removal unless debugging.
4670
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4671
trap '{ (exit 1); exit 1; }' 1 2 13 15
4674
# Create a (secure) tmp directory for tmp files.
4677
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4678
test -n "$tmp" && test -d "$tmp"
4681
tmp=./confstat$$-$RANDOM
4682
(umask 077 && mkdir $tmp)
4685
echo "$me: cannot create a temporary directory in ." >&2
4686
{ (exit 1); exit 1; }
4691
cat >>$CONFIG_STATUS <<_ACEOF
4694
# CONFIG_FILES section.
4697
# No need to generate the scripts if there are no CONFIG_FILES.
4698
# This happens for instance when ./config.status config.h
4699
if test -n "\$CONFIG_FILES"; then
4700
# Protect against being on the right side of a sed subst in config.status.
4701
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4702
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4703
s,@SHELL@,$SHELL,;t t
4704
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4705
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4706
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4707
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4708
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4709
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4710
s,@exec_prefix@,$exec_prefix,;t t
4711
s,@prefix@,$prefix,;t t
4712
s,@program_transform_name@,$program_transform_name,;t t
4713
s,@bindir@,$bindir,;t t
4714
s,@sbindir@,$sbindir,;t t
4715
s,@libexecdir@,$libexecdir,;t t
4716
s,@datadir@,$datadir,;t t
4717
s,@sysconfdir@,$sysconfdir,;t t
4718
s,@sharedstatedir@,$sharedstatedir,;t t
4719
s,@localstatedir@,$localstatedir,;t t
4720
s,@libdir@,$libdir,;t t
4721
s,@includedir@,$includedir,;t t
4722
s,@oldincludedir@,$oldincludedir,;t t
4723
s,@infodir@,$infodir,;t t
4724
s,@mandir@,$mandir,;t t
4725
s,@build_alias@,$build_alias,;t t
4726
s,@host_alias@,$host_alias,;t t
4727
s,@target_alias@,$target_alias,;t t
4729
s,@ECHO_C@,$ECHO_C,;t t
4730
s,@ECHO_N@,$ECHO_N,;t t
4731
s,@ECHO_T@,$ECHO_T,;t t
4733
s,@enable_shared@,$enable_shared,;t t
4734
s,@enable_gettext@,$enable_gettext,;t t
4735
s,@enable_lib64@,$enable_lib64,;t t
4736
s,@pkg_name@,$pkg_name,;t t
4737
s,@pkg_version@,$pkg_version,;t t
4738
s,@pkg_release@,$pkg_release,;t t
4739
s,@debug_build@,$debug_build,;t t
4740
s,@opt_build@,$opt_build,;t t
4741
s,@malloc_lib@,$malloc_lib,;t t
4742
s,@pkg_user@,$pkg_user,;t t
4743
s,@pkg_group@,$pkg_group,;t t
4744
s,@pkg_distribution@,$pkg_distribution,;t t
4745
s,@pkg_platform@,$pkg_platform,;t t
4747
s,@CFLAGS@,$CFLAGS,;t t
4748
s,@LDFLAGS@,$LDFLAGS,;t t
4749
s,@CPPFLAGS@,$CPPFLAGS,;t t
4750
s,@ac_ct_CC@,$ac_ct_CC,;t t
4751
s,@EXEEXT@,$EXEEXT,;t t
4752
s,@OBJEXT@,$OBJEXT,;t t
4756
s,@LIBTOOL@,$LIBTOOL,;t t
4757
s,@libtool@,$libtool,;t t
4762
s,@MAKEDEPEND@,$MAKEDEPEND,;t t
4763
s,@makedepend@,$makedepend,;t t
4773
s,@MSGFMT@,$MSGFMT,;t t
4774
s,@msgfmt@,$msgfmt,;t t
4775
s,@MSGMERGE@,$MSGMERGE,;t t
4776
s,@msgmerge@,$msgmerge,;t t
4777
s,@XGETTEXT@,$XGETTEXT,;t t
4778
s,@xgettext@,$xgettext,;t t
4781
s,@rpm_version@,$rpm_version,;t t
4782
s,@RPMBUILD@,$RPMBUILD,;t t
4783
s,@rpmbuild@,$rpmbuild,;t t
4784
s,@have_zipped_manpages@,$have_zipped_manpages,;t t
4785
s,@libdirsuffix@,$libdirsuffix,;t t
4787
s,@EGREP@,$EGREP,;t t
4788
s,@ALLOCA@,$ALLOCA,;t t
4789
s,@LIBOBJS@,$LIBOBJS,;t t
4790
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4795
cat >>$CONFIG_STATUS <<\_ACEOF
4796
# Split the substitutions into bite-sized pieces for seds with
4797
# small command number limits, like on Digital OSF/1 and HP-UX.
4799
ac_sed_frag=1 # Number of current file.
4800
ac_beg=1 # First line for current file.
4801
ac_end=$ac_max_sed_lines # Line after last line for current file.
4804
while $ac_more_lines; do
4805
if test $ac_beg -gt 1; then
4806
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4808
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4810
if test ! -s $tmp/subs.frag; then
4813
# The purpose of the label and of the branching condition is to
4814
# speed up the sed processing (if there are no `@' at all, there
4815
# is no need to browse any of the substitutions).
4816
# These are the two extra sed commands mentioned above.
4818
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4819
if test -z "$ac_sed_cmds"; then
4820
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4822
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4824
ac_sed_frag=`expr $ac_sed_frag + 1`
4826
ac_end=`expr $ac_end + $ac_max_sed_lines`
4829
if test -z "$ac_sed_cmds"; then
4832
fi # test -n "$CONFIG_FILES"
4835
cat >>$CONFIG_STATUS <<\_ACEOF
4836
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4837
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4839
- | *:- | *:-:* ) # input from stdin
4841
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4842
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4843
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4844
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4845
* ) ac_file_in=$ac_file.in ;;
4848
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4849
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4850
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4851
X"$ac_file" : 'X\(//\)[^/]' \| \
4852
X"$ac_file" : 'X\(//\)$' \| \
4853
X"$ac_file" : 'X\(/\)' \| \
4854
. : '\(.\)' 2>/dev/null ||
4856
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4857
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4858
/^X\(\/\/\)$/{ s//\1/; q; }
4859
/^X\(\/\).*/{ s//\1/; q; }
4861
{ if $as_mkdir_p; then
4866
while test ! -d "$as_dir"; do
4867
as_dirs="$as_dir $as_dirs"
4868
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4869
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4870
X"$as_dir" : 'X\(//\)[^/]' \| \
4871
X"$as_dir" : 'X\(//\)$' \| \
4872
X"$as_dir" : 'X\(/\)' \| \
4873
. : '\(.\)' 2>/dev/null ||
4875
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4876
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4877
/^X\(\/\/\)$/{ s//\1/; q; }
4878
/^X\(\/\).*/{ s//\1/; q; }
4881
test ! -n "$as_dirs" || mkdir $as_dirs
4882
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4883
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4884
{ (exit 1); exit 1; }; }; }
4888
if test "$ac_dir" != .; then
4889
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4890
# A "../" for each directory in $ac_dir_suffix.
4891
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4893
ac_dir_suffix= ac_top_builddir=
4897
.) # No --srcdir option. We are building in place.
4899
if test -z "$ac_top_builddir"; then
4902
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4904
[\\/]* | ?:[\\/]* ) # Absolute path.
4905
ac_srcdir=$srcdir$ac_dir_suffix;
4906
ac_top_srcdir=$srcdir ;;
4908
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4909
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4912
# Do not use `cd foo && pwd` to compute absolute paths, because
4913
# the directories may not exist.
4915
.) ac_abs_builddir="$ac_dir";;
4918
.) ac_abs_builddir=`pwd`;;
4919
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4920
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4923
case $ac_abs_builddir in
4924
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4926
case ${ac_top_builddir}. in
4927
.) ac_abs_top_builddir=$ac_abs_builddir;;
4928
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4929
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4932
case $ac_abs_builddir in
4933
.) ac_abs_srcdir=$ac_srcdir;;
4936
.) ac_abs_srcdir=$ac_abs_builddir;;
4937
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4938
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4941
case $ac_abs_builddir in
4942
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4944
case $ac_top_srcdir in
4945
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4946
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4947
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4953
if test x"$ac_file" != x-; then
4954
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4955
echo "$as_me: creating $ac_file" >&6;}
4958
# Let's still pretend it is `configure' which instantiates (i.e., don't
4959
# use $as_me), people would be surprised to read:
4960
# /* config.h. Generated by config.status. */
4961
if test x"$ac_file" = x-; then
4964
configure_input="$ac_file. "
4966
configure_input=$configure_input"Generated from `echo $ac_file_in |
4967
sed 's,.*/,,'` by configure."
4969
# First look for the input files in the build tree, otherwise in the
4971
ac_file_inputs=`IFS=:
4972
for f in $ac_file_in; do
4974
-) echo $tmp/stdin ;;
4976
# Absolute (can't be DOS-style, as IFS=:)
4977
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4978
echo "$as_me: error: cannot find input file: $f" >&2;}
4979
{ (exit 1); exit 1; }; }
4982
if test -f "$f"; then
4985
elif test -f "$srcdir/$f"; then
4990
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4991
echo "$as_me: error: cannot find input file: $f" >&2;}
4992
{ (exit 1); exit 1; }; }
4995
done` || { (exit 1); exit 1; }
4997
cat >>$CONFIG_STATUS <<_ACEOF
5001
cat >>$CONFIG_STATUS <<\_ACEOF
5003
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5004
s,@configure_input@,$configure_input,;t t
5005
s,@srcdir@,$ac_srcdir,;t t
5006
s,@abs_srcdir@,$ac_abs_srcdir,;t t
5007
s,@top_srcdir@,$ac_top_srcdir,;t t
5008
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5009
s,@builddir@,$ac_builddir,;t t
5010
s,@abs_builddir@,$ac_abs_builddir,;t t
5011
s,@top_builddir@,$ac_top_builddir,;t t
5012
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5013
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5015
if test x"$ac_file" != x-; then
5016
mv $tmp/out $ac_file
5024
cat >>$CONFIG_STATUS <<\_ACEOF
5027
# CONFIG_HEADER section.
5030
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5031
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5033
# ac_d sets the value in "#define NAME VALUE" lines.
5034
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5035
ac_dB='[ ].*$,\1#\2'
5038
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5039
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5040
ac_uB='$,\1#\2define\3'
5044
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5045
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5047
- | *:- | *:-:* ) # input from stdin
5049
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5050
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5051
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5052
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5053
* ) ac_file_in=$ac_file.in ;;
5056
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5057
echo "$as_me: creating $ac_file" >&6;}
5059
# First look for the input files in the build tree, otherwise in the
5061
ac_file_inputs=`IFS=:
5062
for f in $ac_file_in; do
5064
-) echo $tmp/stdin ;;
5066
# Absolute (can't be DOS-style, as IFS=:)
5067
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5068
echo "$as_me: error: cannot find input file: $f" >&2;}
5069
{ (exit 1); exit 1; }; }
5070
# Do quote $f, to prevent DOS paths from being IFS'd.
5073
if test -f "$f"; then
5076
elif test -f "$srcdir/$f"; then
5081
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5082
echo "$as_me: error: cannot find input file: $f" >&2;}
5083
{ (exit 1); exit 1; }; }
5086
done` || { (exit 1); exit 1; }
5087
# Remove the trailing spaces.
5088
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5092
# Transform confdefs.h into two sed scripts, `conftest.defines' and
5093
# `conftest.undefs', that substitutes the proper values into
5094
# config.h.in to produce config.h. The first handles `#define'
5095
# templates, and the second `#undef' templates.
5096
# And first: Protect against being on the right side of a sed subst in
5097
# config.status. Protect against being in an unquoted here document
5099
rm -f conftest.defines conftest.undefs
5100
# Using a here document instead of a string reduces the quoting nightmare.
5101
# Putting comments in sed scripts is not portable.
5103
# `end' is used to avoid that the second main sed command (meant for
5104
# 0-ary CPP macros) applies to n-ary macro definitions.
5105
# See the Autoconf documentation for `clear'.
5106
cat >confdef2sed.sed <<\_ACEOF
5111
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5113
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5116
# If some macros were called several times there might be several times
5117
# the same #defines, which is useless. Nevertheless, we may not want to
5118
# sort them, since we want the *last* AC-DEFINE to be honored.
5119
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5120
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5121
rm -f confdef2sed.sed
5123
# This sed command replaces #undef with comments. This is necessary, for
5124
# example, in the case of _POSIX_SOURCE, which is predefined and required
5125
# on some systems where configure will not decide to define it.
5126
cat >>conftest.undefs <<\_ACEOF
5127
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5130
# Break up conftest.defines because some shells have a limit on the size
5131
# of here documents, and old seds have small limits too (100 cmds).
5132
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5133
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5134
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5135
echo ' :' >>$CONFIG_STATUS
5137
while grep . conftest.defines >/dev/null
5139
# Write a limited-size here document to $tmp/defines.sed.
5140
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5141
# Speed up: don't consider the non `#define' lines.
5142
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5143
# Work around the forget-to-reset-the-flag bug.
5144
echo 't clr' >>$CONFIG_STATUS
5145
echo ': clr' >>$CONFIG_STATUS
5146
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5148
sed -f $tmp/defines.sed $tmp/in >$tmp/out
5152
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5153
rm -f conftest.defines
5154
mv conftest.tail conftest.defines
5156
rm -f conftest.defines
5157
echo ' fi # grep' >>$CONFIG_STATUS
5158
echo >>$CONFIG_STATUS
5160
# Break up conftest.undefs because some shells have a limit on the size
5161
# of here documents, and old seds have small limits too (100 cmds).
5162
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5164
while grep . conftest.undefs >/dev/null
5166
# Write a limited-size here document to $tmp/undefs.sed.
5167
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5168
# Speed up: don't consider the non `#undef'
5169
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5170
# Work around the forget-to-reset-the-flag bug.
5171
echo 't clr' >>$CONFIG_STATUS
5172
echo ': clr' >>$CONFIG_STATUS
5173
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5175
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5179
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5180
rm -f conftest.undefs
5181
mv conftest.tail conftest.undefs
5183
rm -f conftest.undefs
5185
cat >>$CONFIG_STATUS <<\_ACEOF
5186
# Let's still pretend it is `configure' which instantiates (i.e., don't
5187
# use $as_me), people would be surprised to read:
5188
# /* config.h. Generated by config.status. */
5189
if test x"$ac_file" = x-; then
5190
echo "/* Generated by configure. */" >$tmp/config.h
5192
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5194
cat $tmp/in >>$tmp/config.h
5196
if test x"$ac_file" != x-; then
5197
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5198
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5199
echo "$as_me: $ac_file is unchanged" >&6;}
5201
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5202
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5203
X"$ac_file" : 'X\(//\)[^/]' \| \
5204
X"$ac_file" : 'X\(//\)$' \| \
5205
X"$ac_file" : 'X\(/\)' \| \
5206
. : '\(.\)' 2>/dev/null ||
5208
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5209
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5210
/^X\(\/\/\)$/{ s//\1/; q; }
5211
/^X\(\/\).*/{ s//\1/; q; }
5213
{ if $as_mkdir_p; then
5218
while test ! -d "$as_dir"; do
5219
as_dirs="$as_dir $as_dirs"
5220
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5221
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5222
X"$as_dir" : 'X\(//\)[^/]' \| \
5223
X"$as_dir" : 'X\(//\)$' \| \
5224
X"$as_dir" : 'X\(/\)' \| \
5225
. : '\(.\)' 2>/dev/null ||
5227
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5228
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5229
/^X\(\/\/\)$/{ s//\1/; q; }
5230
/^X\(\/\).*/{ s//\1/; q; }
5233
test ! -n "$as_dirs" || mkdir $as_dirs
5234
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5235
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5236
{ (exit 1); exit 1; }; }; }
5239
mv $tmp/config.h $ac_file
5248
cat >>$CONFIG_STATUS <<\_ACEOF
5250
{ (exit 0); exit 0; }
5252
chmod +x $CONFIG_STATUS
5253
ac_clean_files=$ac_clean_files_save
5256
# configure is writing to config.log, and then calls config.status.
5257
# config.status does its own redirection, appending to config.log.
5258
# Unfortunately, on DOS this fails, as config.log is still kept open
5259
# by configure, so config.status won't be able to write to it; its
5260
# output is simply discarded. So we exec the FD to /dev/null,
5261
# effectively closing config.log, so it can be properly (re)opened and
5262
# appended to by config.status. When coming back to configure, we
5263
# need to make the FD available again.
5264
if test "$no_create" != yes; then
5266
ac_config_status_args=
5267
test "$silent" = yes &&
5268
ac_config_status_args="$ac_config_status_args --quiet"
5270
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5272
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
5273
# would make configure fail if this is the last instruction.
5274
$ac_cs_success || { (exit 1); exit 1; }