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="vacall.h.in"
275
# Factoring default headers for most tests.
276
ac_includes_default="\
279
# include <sys/types.h>
282
# include <sys/stat.h>
293
# if !STDC_HEADERS && HAVE_MEMORY_H
299
# include <strings.h>
302
# include <inttypes.h>
312
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CC_GCC GCC_X_NONE AS_UNDERSCORE RANLIB SET_MAKE INSTALL INSTALL_PROGRAM INSTALL_DATA CP LN build build_cpu build_vendor build_os host host_cpu host_vendor host_os host_cpu_abi LIBOBJS LTLIBOBJS'
315
# Initialize some variables set by options.
317
ac_init_version=false
318
# The variables have the same names as the options, with
319
# dashes changed to underlines.
327
program_transform_name=s,x,x,
335
# Installation directory options.
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
337
# and all the variables that are supposed to be based on exec_prefix
338
# by default will actually change.
339
# Use braces instead of parens because sh, perl, etc. also accept them.
340
bindir='${exec_prefix}/bin'
341
sbindir='${exec_prefix}/sbin'
342
libexecdir='${exec_prefix}/libexec'
343
datadir='${prefix}/share'
344
sysconfdir='${prefix}/etc'
345
sharedstatedir='${prefix}/com'
346
localstatedir='${prefix}/var'
347
libdir='${exec_prefix}/lib'
348
includedir='${prefix}/include'
349
oldincludedir='/usr/include'
350
infodir='${prefix}/info'
351
mandir='${prefix}/man'
356
# If the previous option needs an argument, assign it.
357
if test -n "$ac_prev"; then
358
eval "$ac_prev=\$ac_option"
363
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
# Accept the important Cygnus configure options, so we can diagnose typos.
369
-bindir | --bindir | --bindi | --bind | --bin | --bi)
371
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374
-build | --build | --buil | --bui | --bu)
375
ac_prev=build_alias ;;
376
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
377
build_alias=$ac_optarg ;;
379
-cache-file | --cache-file | --cache-fil | --cache-fi \
380
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381
ac_prev=cache_file ;;
382
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384
cache_file=$ac_optarg ;;
387
cache_file=config.cache ;;
389
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
datadir=$ac_optarg ;;
395
-disable-* | --disable-*)
396
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397
# Reject names that are not valid shell variable names.
398
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
400
{ (exit 1); exit 1; }; }
401
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402
eval "enable_$ac_feature=no" ;;
404
-enable-* | --enable-*)
405
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406
# Reject names that are not valid shell variable names.
407
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
409
{ (exit 1); exit 1; }; }
410
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415
eval "enable_$ac_feature='$ac_optarg'" ;;
417
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419
| --exec | --exe | --ex)
420
ac_prev=exec_prefix ;;
421
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423
| --exec=* | --exe=* | --ex=*)
424
exec_prefix=$ac_optarg ;;
426
-gas | --gas | --ga | --g)
427
# Obsolete; use --with-gas.
430
-help | --help | --hel | --he | -h)
432
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433
ac_init_help=recursive ;;
434
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435
ac_init_help=short ;;
437
-host | --host | --hos | --ho)
438
ac_prev=host_alias ;;
439
-host=* | --host=* | --hos=* | --ho=*)
440
host_alias=$ac_optarg ;;
442
-includedir | --includedir | --includedi | --included | --include \
443
| --includ | --inclu | --incl | --inc)
444
ac_prev=includedir ;;
445
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446
| --includ=* | --inclu=* | --incl=* | --inc=*)
447
includedir=$ac_optarg ;;
449
-infodir | --infodir | --infodi | --infod | --info | --inf)
451
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452
infodir=$ac_optarg ;;
454
-libdir | --libdir | --libdi | --libd)
456
-libdir=* | --libdir=* | --libdi=* | --libd=*)
459
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460
| --libexe | --libex | --libe)
461
ac_prev=libexecdir ;;
462
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463
| --libexe=* | --libex=* | --libe=*)
464
libexecdir=$ac_optarg ;;
466
-localstatedir | --localstatedir | --localstatedi | --localstated \
467
| --localstate | --localstat | --localsta | --localst \
468
| --locals | --local | --loca | --loc | --lo)
469
ac_prev=localstatedir ;;
470
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
472
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473
localstatedir=$ac_optarg ;;
475
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481
# Obsolete; use --without-fp.
484
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
485
| --no-cr | --no-c | -n)
488
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
489
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494
| --oldin | --oldi | --old | --ol | --o)
495
ac_prev=oldincludedir ;;
496
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499
oldincludedir=$ac_optarg ;;
501
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506
-program-prefix | --program-prefix | --program-prefi | --program-pref \
507
| --program-pre | --program-pr | --program-p)
508
ac_prev=program_prefix ;;
509
-program-prefix=* | --program-prefix=* | --program-prefi=* \
510
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511
program_prefix=$ac_optarg ;;
513
-program-suffix | --program-suffix | --program-suffi | --program-suff \
514
| --program-suf | --program-su | --program-s)
515
ac_prev=program_suffix ;;
516
-program-suffix=* | --program-suffix=* | --program-suffi=* \
517
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518
program_suffix=$ac_optarg ;;
520
-program-transform-name | --program-transform-name \
521
| --program-transform-nam | --program-transform-na \
522
| --program-transform-n | --program-transform- \
523
| --program-transform | --program-transfor \
524
| --program-transfo | --program-transf \
525
| --program-trans | --program-tran \
526
| --progr-tra | --program-tr | --program-t)
527
ac_prev=program_transform_name ;;
528
-program-transform-name=* | --program-transform-name=* \
529
| --program-transform-nam=* | --program-transform-na=* \
530
| --program-transform-n=* | --program-transform-=* \
531
| --program-transform=* | --program-transfor=* \
532
| --program-transfo=* | --program-transf=* \
533
| --program-trans=* | --program-tran=* \
534
| --progr-tra=* | --program-tr=* | --program-t=*)
535
program_transform_name=$ac_optarg ;;
537
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
538
| -silent | --silent | --silen | --sile | --sil)
541
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
sbindir=$ac_optarg ;;
547
-sharedstatedir | --sharedstatedir | --sharedstatedi \
548
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549
| --sharedst | --shareds | --shared | --share | --shar \
551
ac_prev=sharedstatedir ;;
552
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
sharedstatedir=$ac_optarg ;;
558
-site | --site | --sit)
560
-site=* | --site=* | --sit=*)
563
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569
| --syscon | --sysco | --sysc | --sys | --sy)
570
ac_prev=sysconfdir ;;
571
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573
sysconfdir=$ac_optarg ;;
575
-target | --target | --targe | --targ | --tar | --ta | --t)
576
ac_prev=target_alias ;;
577
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578
target_alias=$ac_optarg ;;
580
-v | -verbose | --verbose | --verbos | --verbo | --verb)
583
-version | --version | --versio | --versi | --vers | -V)
587
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588
# Reject names that are not valid shell variable names.
589
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590
{ echo "$as_me: error: invalid package name: $ac_package" >&2
591
{ (exit 1); exit 1; }; }
592
ac_package=`echo $ac_package| sed 's/-/_/g'`
594
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597
eval "with_$ac_package='$ac_optarg'" ;;
599
-without-* | --without-*)
600
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601
# Reject names that are not valid shell variable names.
602
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603
{ echo "$as_me: error: invalid package name: $ac_package" >&2
604
{ (exit 1); exit 1; }; }
605
ac_package=`echo $ac_package | sed 's/-/_/g'`
606
eval "with_$ac_package=no" ;;
609
# Obsolete; use --with-x.
612
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613
| --x-incl | --x-inc | --x-in | --x-i)
614
ac_prev=x_includes ;;
615
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617
x_includes=$ac_optarg ;;
619
-x-libraries | --x-libraries | --x-librarie | --x-librari \
620
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621
ac_prev=x_libraries ;;
622
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624
x_libraries=$ac_optarg ;;
626
-*) { echo "$as_me: error: unrecognized option: $ac_option
627
Try \`$0 --help' for more information." >&2
628
{ (exit 1); exit 1; }; }
632
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633
# Reject names that are not valid shell variable names.
634
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636
{ (exit 1); exit 1; }; }
637
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638
eval "$ac_envvar='$ac_optarg'"
642
# FIXME: should be removed in autoconf 3.0.
643
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652
if test -n "$ac_prev"; then
653
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654
{ echo "$as_me: error: missing argument to $ac_option" >&2
655
{ (exit 1); exit 1; }; }
658
# Be sure to have absolute paths.
659
for ac_var in exec_prefix prefix
661
eval ac_val=$`echo $ac_var`
663
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665
{ (exit 1); exit 1; }; };;
669
# Be sure to have absolute paths.
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671
localstatedir libdir includedir oldincludedir infodir mandir
673
eval ac_val=$`echo $ac_var`
675
[\\/$]* | ?:[\\/]* ) ;;
676
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677
{ (exit 1); exit 1; }; };;
681
# There might be people who depend on the old broken behavior: `$host'
682
# used to hold the argument of --host etc.
683
# FIXME: To remove some day.
688
# FIXME: To remove some day.
689
if test "x$host_alias" != x; then
690
if test "x$build_alias" = x; then
691
cross_compiling=maybe
692
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693
If a cross compiler is detected then cross compile mode will be used." >&2
694
elif test "x$build_alias" != "x$host_alias"; then
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
test "$silent" = yes && exec 6>/dev/null
705
# Find the source files, if location was not specified.
706
if test -z "$srcdir"; then
707
ac_srcdir_defaulted=yes
708
# Try the directory containing this script, then its parent.
709
ac_confdir=`(dirname "$0") 2>/dev/null ||
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711
X"$0" : 'X\(//\)[^/]' \| \
712
X"$0" : 'X\(//\)$' \| \
713
X"$0" : 'X\(/\)' \| \
714
. : '\(.\)' 2>/dev/null ||
716
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
718
/^X\(\/\/\)$/{ s//\1/; q; }
719
/^X\(\/\).*/{ s//\1/; q; }
722
if test ! -r $srcdir/$ac_unique_file; then
726
ac_srcdir_defaulted=no
728
if test ! -r $srcdir/$ac_unique_file; then
729
if test "$ac_srcdir_defaulted" = yes; then
730
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731
{ (exit 1); exit 1; }; }
733
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734
{ (exit 1); exit 1; }; }
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739
{ (exit 1); exit 1; }; }
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741
ac_env_build_alias_set=${build_alias+set}
742
ac_env_build_alias_value=$build_alias
743
ac_cv_env_build_alias_set=${build_alias+set}
744
ac_cv_env_build_alias_value=$build_alias
745
ac_env_host_alias_set=${host_alias+set}
746
ac_env_host_alias_value=$host_alias
747
ac_cv_env_host_alias_set=${host_alias+set}
748
ac_cv_env_host_alias_value=$host_alias
749
ac_env_target_alias_set=${target_alias+set}
750
ac_env_target_alias_value=$target_alias
751
ac_cv_env_target_alias_set=${target_alias+set}
752
ac_cv_env_target_alias_value=$target_alias
753
ac_env_CC_set=${CC+set}
755
ac_cv_env_CC_set=${CC+set}
756
ac_cv_env_CC_value=$CC
757
ac_env_CFLAGS_set=${CFLAGS+set}
758
ac_env_CFLAGS_value=$CFLAGS
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
760
ac_cv_env_CFLAGS_value=$CFLAGS
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
762
ac_env_LDFLAGS_value=$LDFLAGS
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766
ac_env_CPPFLAGS_value=$CPPFLAGS
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769
ac_env_CPP_set=${CPP+set}
770
ac_env_CPP_value=$CPP
771
ac_cv_env_CPP_set=${CPP+set}
772
ac_cv_env_CPP_value=$CPP
775
# Report the --help message.
777
if test "$ac_init_help" = "long"; then
778
# Omit some internal or obsolete options to make the list less imposing.
779
# This message is too long to be a string in the A/UX 3.1 sh.
781
\`configure' configures this package to adapt to many kinds of systems.
783
Usage: $0 [OPTION]... [VAR=VALUE]...
785
To assign environment variables (e.g., CC, CFLAGS...), specify them as
786
VAR=VALUE. See below for descriptions of some of the useful variables.
788
Defaults for the options are specified in brackets.
791
-h, --help display this help and exit
792
--help=short display options specific to this package
793
--help=recursive display the short help of all the included packages
794
-V, --version display version information and exit
795
-q, --quiet, --silent do not print \`checking...' messages
796
--cache-file=FILE cache test results in FILE [disabled]
797
-C, --config-cache alias for \`--cache-file=config.cache'
798
-n, --no-create do not create output files
799
--srcdir=DIR find the sources in DIR [configure dir or \`..']
804
Installation directories:
805
--prefix=PREFIX install architecture-independent files in PREFIX
807
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810
By default, \`make install' will install all the files in
811
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813
for instance \`--prefix=\$HOME'.
815
For better control, use the options below.
817
Fine tuning of the installation directories:
818
--bindir=DIR user executables [EPREFIX/bin]
819
--sbindir=DIR system admin executables [EPREFIX/sbin]
820
--libexecdir=DIR program executables [EPREFIX/libexec]
821
--datadir=DIR read-only architecture-independent data [PREFIX/share]
822
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
825
--libdir=DIR object code libraries [EPREFIX/lib]
826
--includedir=DIR C header files [PREFIX/include]
827
--oldincludedir=DIR C header files for non-gcc [/usr/include]
828
--infodir=DIR info documentation [PREFIX/info]
829
--mandir=DIR man documentation [PREFIX/man]
835
--build=BUILD configure for building on BUILD [guessed]
836
--host=HOST cross-compile to build programs to run on HOST [BUILD]
840
if test -n "$ac_init_help"; then
844
Some influential environment variables:
845
CC C compiler command
846
CFLAGS C compiler flags
847
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
848
nonstandard directory <lib dir>
849
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
850
headers in a nonstandard directory <include dir>
853
Use these variables to override the choices made by `configure' or to help
854
it to find libraries and programs with nonstandard names/locations.
859
if test "$ac_init_help" = "recursive"; then
860
# If there are subdirs, report their specific --help.
862
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
863
test -d $ac_dir || continue
866
if test "$ac_dir" != .; then
867
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
868
# A "../" for each directory in $ac_dir_suffix.
869
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871
ac_dir_suffix= ac_top_builddir=
875
.) # No --srcdir option. We are building in place.
877
if test -z "$ac_top_builddir"; then
880
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882
[\\/]* | ?:[\\/]* ) # Absolute path.
883
ac_srcdir=$srcdir$ac_dir_suffix;
884
ac_top_srcdir=$srcdir ;;
886
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
887
ac_top_srcdir=$ac_top_builddir$srcdir ;;
890
# Do not use `cd foo && pwd` to compute absolute paths, because
891
# the directories may not exist.
893
.) ac_abs_builddir="$ac_dir";;
896
.) ac_abs_builddir=`pwd`;;
897
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
898
*) ac_abs_builddir=`pwd`/"$ac_dir";;
901
case $ac_abs_builddir in
902
.) ac_abs_top_builddir=${ac_top_builddir}.;;
904
case ${ac_top_builddir}. in
905
.) ac_abs_top_builddir=$ac_abs_builddir;;
906
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
907
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
910
case $ac_abs_builddir in
911
.) ac_abs_srcdir=$ac_srcdir;;
914
.) ac_abs_srcdir=$ac_abs_builddir;;
915
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
916
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
919
case $ac_abs_builddir in
920
.) ac_abs_top_srcdir=$ac_top_srcdir;;
922
case $ac_top_srcdir in
923
.) ac_abs_top_srcdir=$ac_abs_builddir;;
924
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
925
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
930
# Check for guested configure; otherwise get Cygnus style configure.
931
if test -f $ac_srcdir/configure.gnu; then
933
$SHELL $ac_srcdir/configure.gnu --help=recursive
934
elif test -f $ac_srcdir/configure; then
936
$SHELL $ac_srcdir/configure --help=recursive
937
elif test -f $ac_srcdir/configure.ac ||
938
test -f $ac_srcdir/configure.in; then
942
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948
test -n "$ac_init_help" && exit 0
949
if $ac_init_version; then
952
Copyright (C) 2003 Free Software Foundation, Inc.
953
This configure script is free software; the Free Software Foundation
954
gives unlimited permission to copy, distribute and modify it.
960
This file contains any messages produced by compilers while
961
running configure, to aid debugging if configure makes a mistake.
963
It was created by $as_me, which was
964
generated by GNU Autoconf 2.59. Invocation command line was
975
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
976
uname -m = `(uname -m) 2>/dev/null || echo unknown`
977
uname -r = `(uname -r) 2>/dev/null || echo unknown`
978
uname -s = `(uname -s) 2>/dev/null || echo unknown`
979
uname -v = `(uname -v) 2>/dev/null || echo unknown`
981
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
982
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
984
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
985
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
986
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
987
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
988
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
989
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
990
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
994
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998
test -z "$as_dir" && as_dir=.
1014
# Keep a trace of the command line.
1015
# Strip out --no-create and --no-recursion so they do not pile up.
1016
# Strip out --silent because we don't want to record it for future runs.
1017
# Also quote any args containing shell meta-characters.
1018
# Make two passes to allow for proper duplicate-argument suppression.
1023
ac_must_keep_next=false
1029
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1030
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031
| -silent | --silent | --silen | --sile | --sil)
1033
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1039
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1040
if test $ac_must_keep_next = true; then
1041
ac_must_keep_next=false # Got value, back to normal.
1044
*=* | --config-cache | -C | -disable-* | --disable-* \
1045
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1046
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1047
| -with-* | --with-* | -without-* | --without-* | --x)
1048
case "$ac_configure_args0 " in
1049
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052
-* ) ac_must_keep_next=true ;;
1055
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1056
# Get rid of the leading space.
1062
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1063
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1065
# When interrupted or exit'd, cleanup temporary files, and complete
1066
# config.log. We remove comments because anyway the quotes in there
1067
# would cause problems or look ugly.
1068
# WARNING: Be sure not to use single quotes in there, as some shells,
1069
# such as our DU 5.0 friend, will then `close' the trap.
1070
trap 'exit_status=$?
1071
# Save into config.log some information that might help in debugging.
1076
## ---------------- ##
1077
## Cache variables. ##
1078
## ---------------- ##
1081
# The following way of writing the cache mishandles newlines in values,
1084
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1088
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1092
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1099
## ----------------- ##
1100
## Output variables. ##
1101
## ----------------- ##
1104
for ac_var in $ac_subst_vars
1106
eval ac_val=$`echo $ac_var`
1107
echo "$ac_var='"'"'$ac_val'"'"'"
1111
if test -n "$ac_subst_files"; then
1118
for ac_var in $ac_subst_files
1120
eval ac_val=$`echo $ac_var`
1121
echo "$ac_var='"'"'$ac_val'"'"'"
1126
if test -s confdefs.h; then
1133
sed "/^$/d" confdefs.h | sort
1136
test "$ac_signal" != 0 &&
1137
echo "$as_me: caught signal $ac_signal"
1138
echo "$as_me: exit $exit_status"
1140
rm -f core *.core &&
1141
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144
for ac_signal in 1 2 13 15; do
1145
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1149
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1150
rm -rf conftest* confdefs.h
1151
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154
# Predefined preprocessor variables.
1156
cat >>confdefs.h <<_ACEOF
1157
#define PACKAGE_NAME "$PACKAGE_NAME"
1161
cat >>confdefs.h <<_ACEOF
1162
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1166
cat >>confdefs.h <<_ACEOF
1167
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1171
cat >>confdefs.h <<_ACEOF
1172
#define PACKAGE_STRING "$PACKAGE_STRING"
1176
cat >>confdefs.h <<_ACEOF
1177
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1181
# Let the site file select an alternate cache file if it wants to.
1182
# Prefer explicitly selected file to automatically selected ones.
1183
if test -z "$CONFIG_SITE"; then
1184
if test "x$prefix" != xNONE; then
1185
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1187
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190
for ac_site_file in $CONFIG_SITE; do
1191
if test -r "$ac_site_file"; then
1192
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1193
echo "$as_me: loading site script $ac_site_file" >&6;}
1194
sed 's/^/| /' "$ac_site_file" >&5
1199
if test -r "$cache_file"; then
1200
# Some versions of bash will fail to source /dev/null (special
1201
# files actually), so we avoid doing that.
1202
if test -f "$cache_file"; then
1203
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1204
echo "$as_me: loading cache $cache_file" >&6;}
1206
[\\/]* | ?:[\\/]* ) . $cache_file;;
1207
*) . ./$cache_file;;
1211
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1212
echo "$as_me: creating cache $cache_file" >&6;}
1216
# Check that the precious variables saved in the cache have kept the same
1218
ac_cache_corrupted=false
1219
for ac_var in `(set) 2>&1 |
1220
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1221
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1222
eval ac_new_set=\$ac_env_${ac_var}_set
1223
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1224
eval ac_new_val="\$ac_env_${ac_var}_value"
1225
case $ac_old_set,$ac_new_set in
1227
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1228
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1229
ac_cache_corrupted=: ;;
1231
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1232
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1233
ac_cache_corrupted=: ;;
1236
if test "x$ac_old_val" != "x$ac_new_val"; then
1237
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1238
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1239
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1240
echo "$as_me: former value: $ac_old_val" >&2;}
1241
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1242
echo "$as_me: current value: $ac_new_val" >&2;}
1243
ac_cache_corrupted=:
1246
# Pass precious variables to config.status.
1247
if test "$ac_new_set" = set; then
1249
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1251
*) ac_arg=$ac_var=$ac_new_val ;;
1253
case " $ac_configure_args " in
1254
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1255
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1259
if $ac_cache_corrupted; then
1260
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1261
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1262
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1263
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1264
{ (exit 1); exit 1; }; }
1268
ac_cpp='$CPP $CPPFLAGS'
1269
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1270
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1271
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291
ac_config_headers="$ac_config_headers vacall.h config.h"
1294
ac_cpp='$CPP $CPPFLAGS'
1295
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
if test -n "$ac_tool_prefix"; then
1299
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1300
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1301
echo "$as_me:$LINENO: checking for $ac_word" >&5
1302
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1303
if test "${ac_cv_prog_CC+set}" = set; then
1304
echo $ECHO_N "(cached) $ECHO_C" >&6
1306
if test -n "$CC"; then
1307
ac_cv_prog_CC="$CC" # Let the user override the test.
1309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1313
test -z "$as_dir" && as_dir=.
1314
for ac_exec_ext in '' $ac_executable_extensions; do
1315
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1316
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1317
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1326
if test -n "$CC"; then
1327
echo "$as_me:$LINENO: result: $CC" >&5
1328
echo "${ECHO_T}$CC" >&6
1330
echo "$as_me:$LINENO: result: no" >&5
1331
echo "${ECHO_T}no" >&6
1335
if test -z "$ac_cv_prog_CC"; then
1337
# Extract the first word of "gcc", so it can be a program name with args.
1338
set dummy gcc; ac_word=$2
1339
echo "$as_me:$LINENO: checking for $ac_word" >&5
1340
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1341
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1342
echo $ECHO_N "(cached) $ECHO_C" >&6
1344
if test -n "$ac_ct_CC"; then
1345
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351
test -z "$as_dir" && as_dir=.
1352
for ac_exec_ext in '' $ac_executable_extensions; do
1353
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1354
ac_cv_prog_ac_ct_CC="gcc"
1355
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1363
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1364
if test -n "$ac_ct_CC"; then
1365
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1366
echo "${ECHO_T}$ac_ct_CC" >&6
1368
echo "$as_me:$LINENO: result: no" >&5
1369
echo "${ECHO_T}no" >&6
1377
if test -z "$CC"; then
1378
if test -n "$ac_tool_prefix"; then
1379
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1380
set dummy ${ac_tool_prefix}cc; ac_word=$2
1381
echo "$as_me:$LINENO: checking for $ac_word" >&5
1382
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1383
if test "${ac_cv_prog_CC+set}" = set; then
1384
echo $ECHO_N "(cached) $ECHO_C" >&6
1386
if test -n "$CC"; then
1387
ac_cv_prog_CC="$CC" # Let the user override the test.
1389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393
test -z "$as_dir" && as_dir=.
1394
for ac_exec_ext in '' $ac_executable_extensions; do
1395
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1396
ac_cv_prog_CC="${ac_tool_prefix}cc"
1397
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1406
if test -n "$CC"; then
1407
echo "$as_me:$LINENO: result: $CC" >&5
1408
echo "${ECHO_T}$CC" >&6
1410
echo "$as_me:$LINENO: result: no" >&5
1411
echo "${ECHO_T}no" >&6
1415
if test -z "$ac_cv_prog_CC"; then
1417
# Extract the first word of "cc", so it can be a program name with args.
1418
set dummy cc; ac_word=$2
1419
echo "$as_me:$LINENO: checking for $ac_word" >&5
1420
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1422
echo $ECHO_N "(cached) $ECHO_C" >&6
1424
if test -n "$ac_ct_CC"; then
1425
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431
test -z "$as_dir" && as_dir=.
1432
for ac_exec_ext in '' $ac_executable_extensions; do
1433
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434
ac_cv_prog_ac_ct_CC="cc"
1435
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1444
if test -n "$ac_ct_CC"; then
1445
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1446
echo "${ECHO_T}$ac_ct_CC" >&6
1448
echo "$as_me:$LINENO: result: no" >&5
1449
echo "${ECHO_T}no" >&6
1458
if test -z "$CC"; then
1459
# Extract the first word of "cc", so it can be a program name with args.
1460
set dummy cc; ac_word=$2
1461
echo "$as_me:$LINENO: checking for $ac_word" >&5
1462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463
if test "${ac_cv_prog_CC+set}" = set; then
1464
echo $ECHO_N "(cached) $ECHO_C" >&6
1466
if test -n "$CC"; then
1467
ac_cv_prog_CC="$CC" # Let the user override the test.
1470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474
test -z "$as_dir" && as_dir=.
1475
for ac_exec_ext in '' $ac_executable_extensions; do
1476
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1478
ac_prog_rejected=yes
1482
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488
if test $ac_prog_rejected = yes; then
1489
# We found a bogon in the path, so make sure we never use it.
1490
set dummy $ac_cv_prog_CC
1492
if test $# != 0; then
1493
# We chose a different compiler from the bogus one.
1494
# However, it has the same basename, so the bogon will be chosen
1495
# first if we set CC to just the basename; use the full file name.
1497
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1503
if test -n "$CC"; then
1504
echo "$as_me:$LINENO: result: $CC" >&5
1505
echo "${ECHO_T}$CC" >&6
1507
echo "$as_me:$LINENO: result: no" >&5
1508
echo "${ECHO_T}no" >&6
1512
if test -z "$CC"; then
1513
if test -n "$ac_tool_prefix"; then
1516
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1517
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1518
echo "$as_me:$LINENO: checking for $ac_word" >&5
1519
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520
if test "${ac_cv_prog_CC+set}" = set; then
1521
echo $ECHO_N "(cached) $ECHO_C" >&6
1523
if test -n "$CC"; then
1524
ac_cv_prog_CC="$CC" # Let the user override the test.
1526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530
test -z "$as_dir" && as_dir=.
1531
for ac_exec_ext in '' $ac_executable_extensions; do
1532
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1534
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543
if test -n "$CC"; then
1544
echo "$as_me:$LINENO: result: $CC" >&5
1545
echo "${ECHO_T}$CC" >&6
1547
echo "$as_me:$LINENO: result: no" >&5
1548
echo "${ECHO_T}no" >&6
1551
test -n "$CC" && break
1554
if test -z "$CC"; then
1558
# Extract the first word of "$ac_prog", so it can be a program name with args.
1559
set dummy $ac_prog; ac_word=$2
1560
echo "$as_me:$LINENO: checking for $ac_word" >&5
1561
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563
echo $ECHO_N "(cached) $ECHO_C" >&6
1565
if test -n "$ac_ct_CC"; then
1566
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572
test -z "$as_dir" && as_dir=.
1573
for ac_exec_ext in '' $ac_executable_extensions; do
1574
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575
ac_cv_prog_ac_ct_CC="$ac_prog"
1576
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585
if test -n "$ac_ct_CC"; then
1586
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587
echo "${ECHO_T}$ac_ct_CC" >&6
1589
echo "$as_me:$LINENO: result: no" >&5
1590
echo "${ECHO_T}no" >&6
1593
test -n "$ac_ct_CC" && break
1602
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1603
See \`config.log' for more details." >&5
1604
echo "$as_me: error: no acceptable C compiler found in \$PATH
1605
See \`config.log' for more details." >&2;}
1606
{ (exit 1); exit 1; }; }
1608
# Provide some information about the compiler.
1609
echo "$as_me:$LINENO:" \
1610
"checking for C compiler version" >&5
1611
ac_compiler=`set X $ac_compile; echo $2`
1612
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1613
(eval $ac_compiler --version </dev/null >&5) 2>&5
1615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1616
(exit $ac_status); }
1617
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1618
(eval $ac_compiler -v </dev/null >&5) 2>&5
1620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1621
(exit $ac_status); }
1622
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1623
(eval $ac_compiler -V </dev/null >&5) 2>&5
1625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626
(exit $ac_status); }
1628
cat >conftest.$ac_ext <<_ACEOF
1631
cat confdefs.h >>conftest.$ac_ext
1632
cat >>conftest.$ac_ext <<_ACEOF
1633
/* end confdefs.h. */
1643
ac_clean_files_save=$ac_clean_files
1644
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1645
# Try to create an executable without -o first, disregard a.out.
1646
# It will help us diagnose broken compilers, and finding out an intuition
1648
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1649
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1650
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1651
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1652
(eval $ac_link_default) 2>&5
1654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655
(exit $ac_status); }; then
1656
# Find the output, starting from the most likely. This scheme is
1657
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1660
# Be careful to initialize this variable, since it used to be cached.
1661
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1663
# b.out is created by i960 compilers.
1664
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1666
test -f "$ac_file" || continue
1668
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1671
# This is the source file.
1674
# We found the default executable, but exeext='' is most
1678
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1679
# FIXME: I believe we export ac_cv_exeext for Libtool,
1680
# but it would be cool to find out if it's true. Does anybody
1681
# maintain Libtool? --akim.
1689
echo "$as_me: failed program was:" >&5
1690
sed 's/^/| /' conftest.$ac_ext >&5
1692
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1693
See \`config.log' for more details." >&5
1694
echo "$as_me: error: C compiler cannot create executables
1695
See \`config.log' for more details." >&2;}
1696
{ (exit 77); exit 77; }; }
1699
ac_exeext=$ac_cv_exeext
1700
echo "$as_me:$LINENO: result: $ac_file" >&5
1701
echo "${ECHO_T}$ac_file" >&6
1703
# Check the compiler produces executables we can run. If not, either
1704
# the compiler is broken, or we cross compile.
1705
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1706
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1707
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1708
# If not cross compiling, check that we can run a simple program.
1709
if test "$cross_compiling" != yes; then
1710
if { ac_try='./$ac_file'
1711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715
(exit $ac_status); }; }; then
1718
if test "$cross_compiling" = maybe; then
1721
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1722
If you meant to cross compile, use \`--host'.
1723
See \`config.log' for more details." >&5
1724
echo "$as_me: error: cannot run C compiled programs.
1725
If you meant to cross compile, use \`--host'.
1726
See \`config.log' for more details." >&2;}
1727
{ (exit 1); exit 1; }; }
1731
echo "$as_me:$LINENO: result: yes" >&5
1732
echo "${ECHO_T}yes" >&6
1734
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1735
ac_clean_files=$ac_clean_files_save
1736
# Check the compiler produces executables we can run. If not, either
1737
# the compiler is broken, or we cross compile.
1738
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1739
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1740
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1741
echo "${ECHO_T}$cross_compiling" >&6
1743
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1744
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1745
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1746
(eval $ac_link) 2>&5
1748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749
(exit $ac_status); }; then
1750
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1751
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1752
# work properly (i.e., refer to `conftest.exe'), while it won't with
1754
for ac_file in conftest.exe conftest conftest.*; do
1755
test -f "$ac_file" || continue
1757
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1758
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1765
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1766
See \`config.log' for more details." >&5
1767
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1768
See \`config.log' for more details." >&2;}
1769
{ (exit 1); exit 1; }; }
1772
rm -f conftest$ac_cv_exeext
1773
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1774
echo "${ECHO_T}$ac_cv_exeext" >&6
1776
rm -f conftest.$ac_ext
1777
EXEEXT=$ac_cv_exeext
1779
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1780
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1781
if test "${ac_cv_objext+set}" = set; then
1782
echo $ECHO_N "(cached) $ECHO_C" >&6
1784
cat >conftest.$ac_ext <<_ACEOF
1787
cat confdefs.h >>conftest.$ac_ext
1788
cat >>conftest.$ac_ext <<_ACEOF
1789
/* end confdefs.h. */
1799
rm -f conftest.o conftest.obj
1800
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1801
(eval $ac_compile) 2>&5
1803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804
(exit $ac_status); }; then
1805
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1807
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1808
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1813
echo "$as_me: failed program was:" >&5
1814
sed 's/^/| /' conftest.$ac_ext >&5
1816
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1817
See \`config.log' for more details." >&5
1818
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1819
See \`config.log' for more details." >&2;}
1820
{ (exit 1); exit 1; }; }
1823
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1825
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1826
echo "${ECHO_T}$ac_cv_objext" >&6
1827
OBJEXT=$ac_cv_objext
1829
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1830
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1831
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1832
echo $ECHO_N "(cached) $ECHO_C" >&6
1834
cat >conftest.$ac_ext <<_ACEOF
1837
cat confdefs.h >>conftest.$ac_ext
1838
cat >>conftest.$ac_ext <<_ACEOF
1839
/* end confdefs.h. */
1852
rm -f conftest.$ac_objext
1853
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1854
(eval $ac_compile) 2>conftest.er1
1856
grep -v '^ *+' conftest.er1 >conftest.err
1858
cat conftest.err >&5
1859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860
(exit $ac_status); } &&
1861
{ ac_try='test -z "$ac_c_werror_flag"
1862
|| test ! -s conftest.err'
1863
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867
(exit $ac_status); }; } &&
1868
{ ac_try='test -s conftest.$ac_objext'
1869
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873
(exit $ac_status); }; }; then
1876
echo "$as_me: failed program was:" >&5
1877
sed 's/^/| /' conftest.$ac_ext >&5
1881
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1882
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1885
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1886
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1887
GCC=`test $ac_compiler_gnu = yes && echo yes`
1888
ac_test_CFLAGS=${CFLAGS+set}
1889
ac_save_CFLAGS=$CFLAGS
1891
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1892
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1893
if test "${ac_cv_prog_cc_g+set}" = set; then
1894
echo $ECHO_N "(cached) $ECHO_C" >&6
1896
cat >conftest.$ac_ext <<_ACEOF
1899
cat confdefs.h >>conftest.$ac_ext
1900
cat >>conftest.$ac_ext <<_ACEOF
1901
/* end confdefs.h. */
1911
rm -f conftest.$ac_objext
1912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913
(eval $ac_compile) 2>conftest.er1
1915
grep -v '^ *+' conftest.er1 >conftest.err
1917
cat conftest.err >&5
1918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919
(exit $ac_status); } &&
1920
{ ac_try='test -z "$ac_c_werror_flag"
1921
|| test ! -s conftest.err'
1922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926
(exit $ac_status); }; } &&
1927
{ ac_try='test -s conftest.$ac_objext'
1928
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932
(exit $ac_status); }; }; then
1935
echo "$as_me: failed program was:" >&5
1936
sed 's/^/| /' conftest.$ac_ext >&5
1940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1942
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1943
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1944
if test "$ac_test_CFLAGS" = set; then
1945
CFLAGS=$ac_save_CFLAGS
1946
elif test $ac_cv_prog_cc_g = yes; then
1947
if test "$GCC" = yes; then
1953
if test "$GCC" = yes; then
1959
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1960
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1961
if test "${ac_cv_prog_cc_stdc+set}" = set; then
1962
echo $ECHO_N "(cached) $ECHO_C" >&6
1964
ac_cv_prog_cc_stdc=no
1966
cat >conftest.$ac_ext <<_ACEOF
1969
cat confdefs.h >>conftest.$ac_ext
1970
cat >>conftest.$ac_ext <<_ACEOF
1971
/* end confdefs.h. */
1974
#include <sys/types.h>
1975
#include <sys/stat.h>
1976
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1977
struct buf { int x; };
1978
FILE * (*rcsopen) (struct buf *, struct stat *, int);
1979
static char *e (p, i)
1985
static char *f (char * (*g) (char **, int), char **p, ...)
1990
s = g (p, va_arg (v,int));
1995
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1996
function prototypes and stuff, but not '\xHH' hex character constants.
1997
These don't provoke an error unfortunately, instead are silently treated
1998
as 'x'. The following induces an error, until -std1 is added to get
1999
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2000
array size at least. It's necessary to write '\x00'==0 to get something
2001
that's true only with -std1. */
2002
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2004
int test (int i, double x);
2005
struct s1 {int (*f) (int a);};
2006
struct s2 {int (*f) (double a);};
2007
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2013
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2018
# Don't try gcc -ansi; that turns off useful extensions and
2019
# breaks some systems' header files.
2020
# AIX -qlanglvl=ansi
2021
# Ultrix and OSF/1 -std1
2022
# HP-UX 10.20 and later -Ae
2023
# HP-UX older versions -Aa -D_HPUX_SOURCE
2024
# SVR4 -Xc -D__EXTENSIONS__
2025
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2027
CC="$ac_save_CC $ac_arg"
2028
rm -f conftest.$ac_objext
2029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030
(eval $ac_compile) 2>conftest.er1
2032
grep -v '^ *+' conftest.er1 >conftest.err
2034
cat conftest.err >&5
2035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036
(exit $ac_status); } &&
2037
{ ac_try='test -z "$ac_c_werror_flag"
2038
|| test ! -s conftest.err'
2039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043
(exit $ac_status); }; } &&
2044
{ ac_try='test -s conftest.$ac_objext'
2045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049
(exit $ac_status); }; }; then
2050
ac_cv_prog_cc_stdc=$ac_arg
2053
echo "$as_me: failed program was:" >&5
2054
sed 's/^/| /' conftest.$ac_ext >&5
2057
rm -f conftest.err conftest.$ac_objext
2059
rm -f conftest.$ac_ext conftest.$ac_objext
2064
case "x$ac_cv_prog_cc_stdc" in
2066
echo "$as_me:$LINENO: result: none needed" >&5
2067
echo "${ECHO_T}none needed" >&6 ;;
2069
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2070
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2071
CC="$CC $ac_cv_prog_cc_stdc" ;;
2074
# Some people use a C++ compiler to compile C. Since we use `exit',
2075
# in C++ we need to declare it. In case someone uses the same compiler
2076
# for both compiling C and C++ we need to have the C++ compiler decide
2077
# the declaration of exit, since it's the most demanding environment.
2078
cat >conftest.$ac_ext <<_ACEOF
2083
rm -f conftest.$ac_objext
2084
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085
(eval $ac_compile) 2>conftest.er1
2087
grep -v '^ *+' conftest.er1 >conftest.err
2089
cat conftest.err >&5
2090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091
(exit $ac_status); } &&
2092
{ ac_try='test -z "$ac_c_werror_flag"
2093
|| test ! -s conftest.err'
2094
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098
(exit $ac_status); }; } &&
2099
{ ac_try='test -s conftest.$ac_objext'
2100
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104
(exit $ac_status); }; }; then
2105
for ac_declaration in \
2107
'extern "C" void std::exit (int) throw (); using std::exit;' \
2108
'extern "C" void std::exit (int); using std::exit;' \
2109
'extern "C" void exit (int) throw ();' \
2110
'extern "C" void exit (int);' \
2113
cat >conftest.$ac_ext <<_ACEOF
2116
cat confdefs.h >>conftest.$ac_ext
2117
cat >>conftest.$ac_ext <<_ACEOF
2118
/* end confdefs.h. */
2129
rm -f conftest.$ac_objext
2130
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131
(eval $ac_compile) 2>conftest.er1
2133
grep -v '^ *+' conftest.er1 >conftest.err
2135
cat conftest.err >&5
2136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137
(exit $ac_status); } &&
2138
{ ac_try='test -z "$ac_c_werror_flag"
2139
|| test ! -s conftest.err'
2140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144
(exit $ac_status); }; } &&
2145
{ ac_try='test -s conftest.$ac_objext'
2146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150
(exit $ac_status); }; }; then
2153
echo "$as_me: failed program was:" >&5
2154
sed 's/^/| /' conftest.$ac_ext >&5
2158
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2159
cat >conftest.$ac_ext <<_ACEOF
2162
cat confdefs.h >>conftest.$ac_ext
2163
cat >>conftest.$ac_ext <<_ACEOF
2164
/* end confdefs.h. */
2174
rm -f conftest.$ac_objext
2175
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176
(eval $ac_compile) 2>conftest.er1
2178
grep -v '^ *+' conftest.er1 >conftest.err
2180
cat conftest.err >&5
2181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182
(exit $ac_status); } &&
2183
{ ac_try='test -z "$ac_c_werror_flag"
2184
|| test ! -s conftest.err'
2185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189
(exit $ac_status); }; } &&
2190
{ ac_try='test -s conftest.$ac_objext'
2191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195
(exit $ac_status); }; }; then
2198
echo "$as_me: failed program was:" >&5
2199
sed 's/^/| /' conftest.$ac_ext >&5
2202
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2205
if test -n "$ac_declaration"; then
2206
echo '#ifdef __cplusplus' >>confdefs.h
2207
echo $ac_declaration >>confdefs.h
2208
echo '#endif' >>confdefs.h
2212
echo "$as_me: failed program was:" >&5
2213
sed 's/^/| /' conftest.$ac_ext >&5
2216
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218
ac_cpp='$CPP $CPPFLAGS'
2219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224
ac_cpp='$CPP $CPPFLAGS'
2225
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2229
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2230
# On Suns, sometimes $CPP names a directory.
2231
if test -n "$CPP" && test -d "$CPP"; then
2234
if test -z "$CPP"; then
2235
if test "${ac_cv_prog_CPP+set}" = set; then
2236
echo $ECHO_N "(cached) $ECHO_C" >&6
2238
# Double quotes because CPP needs to be expanded
2239
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2242
for ac_c_preproc_warn_flag in '' yes
2244
# Use a header file that comes with gcc, so configuring glibc
2245
# with a fresh cross-compiler works.
2246
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2247
# <limits.h> exists even on freestanding compilers.
2248
# On the NeXT, cc -E runs the code through the compiler's parser,
2249
# not just through cpp. "Syntax error" is here to catch this case.
2250
cat >conftest.$ac_ext <<_ACEOF
2253
cat confdefs.h >>conftest.$ac_ext
2254
cat >>conftest.$ac_ext <<_ACEOF
2255
/* end confdefs.h. */
2257
# include <limits.h>
2259
# include <assert.h>
2263
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2264
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2266
grep -v '^ *+' conftest.er1 >conftest.err
2268
cat conftest.err >&5
2269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270
(exit $ac_status); } >/dev/null; then
2271
if test -s conftest.err; then
2272
ac_cpp_err=$ac_c_preproc_warn_flag
2273
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2280
if test -z "$ac_cpp_err"; then
2283
echo "$as_me: failed program was:" >&5
2284
sed 's/^/| /' conftest.$ac_ext >&5
2286
# Broken: fails on valid input.
2289
rm -f conftest.err conftest.$ac_ext
2291
# OK, works on sane cases. Now check whether non-existent headers
2292
# can be detected and how.
2293
cat >conftest.$ac_ext <<_ACEOF
2296
cat confdefs.h >>conftest.$ac_ext
2297
cat >>conftest.$ac_ext <<_ACEOF
2298
/* end confdefs.h. */
2299
#include <ac_nonexistent.h>
2301
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2302
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2304
grep -v '^ *+' conftest.er1 >conftest.err
2306
cat conftest.err >&5
2307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308
(exit $ac_status); } >/dev/null; then
2309
if test -s conftest.err; then
2310
ac_cpp_err=$ac_c_preproc_warn_flag
2311
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2318
if test -z "$ac_cpp_err"; then
2319
# Broken: success on invalid input.
2322
echo "$as_me: failed program was:" >&5
2323
sed 's/^/| /' conftest.$ac_ext >&5
2325
# Passes both tests.
2329
rm -f conftest.err conftest.$ac_ext
2332
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2333
rm -f conftest.err conftest.$ac_ext
2334
if $ac_preproc_ok; then
2346
echo "$as_me:$LINENO: result: $CPP" >&5
2347
echo "${ECHO_T}$CPP" >&6
2349
for ac_c_preproc_warn_flag in '' yes
2351
# Use a header file that comes with gcc, so configuring glibc
2352
# with a fresh cross-compiler works.
2353
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2354
# <limits.h> exists even on freestanding compilers.
2355
# On the NeXT, cc -E runs the code through the compiler's parser,
2356
# not just through cpp. "Syntax error" is here to catch this case.
2357
cat >conftest.$ac_ext <<_ACEOF
2360
cat confdefs.h >>conftest.$ac_ext
2361
cat >>conftest.$ac_ext <<_ACEOF
2362
/* end confdefs.h. */
2364
# include <limits.h>
2366
# include <assert.h>
2370
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2371
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2373
grep -v '^ *+' conftest.er1 >conftest.err
2375
cat conftest.err >&5
2376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377
(exit $ac_status); } >/dev/null; then
2378
if test -s conftest.err; then
2379
ac_cpp_err=$ac_c_preproc_warn_flag
2380
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2387
if test -z "$ac_cpp_err"; then
2390
echo "$as_me: failed program was:" >&5
2391
sed 's/^/| /' conftest.$ac_ext >&5
2393
# Broken: fails on valid input.
2396
rm -f conftest.err conftest.$ac_ext
2398
# OK, works on sane cases. Now check whether non-existent headers
2399
# can be detected and how.
2400
cat >conftest.$ac_ext <<_ACEOF
2403
cat confdefs.h >>conftest.$ac_ext
2404
cat >>conftest.$ac_ext <<_ACEOF
2405
/* end confdefs.h. */
2406
#include <ac_nonexistent.h>
2408
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2409
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2411
grep -v '^ *+' conftest.er1 >conftest.err
2413
cat conftest.err >&5
2414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415
(exit $ac_status); } >/dev/null; then
2416
if test -s conftest.err; then
2417
ac_cpp_err=$ac_c_preproc_warn_flag
2418
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2425
if test -z "$ac_cpp_err"; then
2426
# Broken: success on invalid input.
2429
echo "$as_me: failed program was:" >&5
2430
sed 's/^/| /' conftest.$ac_ext >&5
2432
# Passes both tests.
2436
rm -f conftest.err conftest.$ac_ext
2439
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2440
rm -f conftest.err conftest.$ac_ext
2441
if $ac_preproc_ok; then
2444
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2445
See \`config.log' for more details." >&5
2446
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2447
See \`config.log' for more details." >&2;}
2448
{ (exit 1); exit 1; }; }
2452
ac_cpp='$CPP $CPPFLAGS'
2453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459
echo "$as_me:$LINENO: checking for egrep" >&5
2460
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2461
if test "${ac_cv_prog_egrep+set}" = set; then
2462
echo $ECHO_N "(cached) $ECHO_C" >&6
2464
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2465
then ac_cv_prog_egrep='grep -E'
2466
else ac_cv_prog_egrep='egrep'
2469
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2470
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2471
EGREP=$ac_cv_prog_egrep
2474
if test $ac_cv_c_compiler_gnu = yes; then
2475
echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2476
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2477
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2478
echo $ECHO_N "(cached) $ECHO_C" >&6
2480
ac_pattern="Autoconf.*'x'"
2481
cat >conftest.$ac_ext <<_ACEOF
2484
cat confdefs.h >>conftest.$ac_ext
2485
cat >>conftest.$ac_ext <<_ACEOF
2486
/* end confdefs.h. */
2490
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2491
$EGREP "$ac_pattern" >/dev/null 2>&1; then
2492
ac_cv_prog_gcc_traditional=yes
2494
ac_cv_prog_gcc_traditional=no
2499
if test $ac_cv_prog_gcc_traditional = no; then
2500
cat >conftest.$ac_ext <<_ACEOF
2503
cat confdefs.h >>conftest.$ac_ext
2504
cat >>conftest.$ac_ext <<_ACEOF
2505
/* end confdefs.h. */
2509
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2510
$EGREP "$ac_pattern" >/dev/null 2>&1; then
2511
ac_cv_prog_gcc_traditional=yes
2517
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2518
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2519
if test $ac_cv_prog_gcc_traditional = yes; then
2520
CC="$CC -traditional"
2525
echo "$as_me:$LINENO: checking whether using GNU C" >&5
2526
echo $ECHO_N "checking whether using GNU C... $ECHO_C" >&6
2527
if test "${cl_cv_prog_cc_gcc+set}" = set; then
2528
echo $ECHO_N "(cached) $ECHO_C" >&6
2531
cat >conftest.$ac_ext <<_ACEOF
2534
cat confdefs.h >>conftest.$ac_ext
2535
cat >>conftest.$ac_ext <<_ACEOF
2536
/* end confdefs.h. */
2542
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2543
$EGREP "yes" >/dev/null 2>&1; then
2544
cl_cv_prog_cc_gcc=yes
2546
cl_cv_prog_cc_gcc=no
2552
echo "$as_me:$LINENO: result: $cl_cv_prog_cc_gcc" >&5
2553
echo "${ECHO_T}$cl_cv_prog_cc_gcc" >&6
2554
if test $cl_cv_prog_cc_gcc = yes; then
2556
GCC_X_NONE='-x none'
2564
echo "$as_me:$LINENO: checking for underscore in external names" >&5
2565
echo $ECHO_N "checking for underscore in external names... $ECHO_C" >&6
2566
if test "${cl_cv_prog_as_underscore+set}" = set; then
2567
echo $ECHO_N "(cached) $ECHO_C" >&6
2570
cat > conftest.c <<EOF
2574
int foo() { return 0; }
2576
# look for the assembly language name in the .s file
2577
{ ac_try='${CC-cc} -S conftest.c'
2578
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582
(exit $ac_status); }; } >/dev/null 2>&1
2583
if grep _foo conftest.s >/dev/null ; then
2584
cl_cv_prog_as_underscore=yes
2586
cl_cv_prog_as_underscore=no
2591
echo "$as_me:$LINENO: result: $cl_cv_prog_as_underscore" >&5
2592
echo "${ECHO_T}$cl_cv_prog_as_underscore" >&6
2593
if test $cl_cv_prog_as_underscore = yes; then
2596
cat >>confdefs.h <<\_ACEOF
2597
#define ASM_UNDERSCORE
2604
# Extract the first word of "ranlib", so it can be a program name with args.
2605
set dummy ranlib; ac_word=$2
2606
echo "$as_me:$LINENO: checking for $ac_word" >&5
2607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2608
if test "${ac_cv_prog_RANLIB+set}" = set; then
2609
echo $ECHO_N "(cached) $ECHO_C" >&6
2611
if test -n "$RANLIB"; then
2612
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618
test -z "$as_dir" && as_dir=.
2619
for ac_exec_ext in '' $ac_executable_extensions; do
2620
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621
ac_cv_prog_RANLIB="ranlib"
2622
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
2631
RANLIB=$ac_cv_prog_RANLIB
2632
if test -n "$RANLIB"; then
2633
echo "$as_me:$LINENO: result: $RANLIB" >&5
2634
echo "${ECHO_T}$RANLIB" >&6
2636
echo "$as_me:$LINENO: result: no" >&5
2637
echo "${ECHO_T}no" >&6
2640
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2642
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2643
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2644
echo $ECHO_N "(cached) $ECHO_C" >&6
2646
cat >conftest.make <<\_ACEOF
2648
@echo 'ac_maketemp="$(MAKE)"'
2650
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2651
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2652
if test -n "$ac_maketemp"; then
2653
eval ac_cv_prog_make_${ac_make}_set=yes
2655
eval ac_cv_prog_make_${ac_make}_set=no
2659
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2660
echo "$as_me:$LINENO: result: yes" >&5
2661
echo "${ECHO_T}yes" >&6
2664
echo "$as_me:$LINENO: result: no" >&5
2665
echo "${ECHO_T}no" >&6
2666
SET_MAKE="MAKE=${MAKE-make}"
2669
# Find a good install program. We prefer a C program (faster),
2670
# so one script is as good as another. But avoid the broken or
2671
# incompatible versions:
2672
# SysV /etc/install, /usr/sbin/install
2673
# SunOS /usr/etc/install
2674
# IRIX /sbin/install
2676
# AFS /usr/afsws/bin/install, which mis-handles nonexistent args
2677
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2678
# ./install, which can be erroneously created by make from ./install.sh.
2679
echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
2680
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2681
if test -z "$INSTALL"; then
2682
if test "${cl_cv_path_install+set}" = set; then
2683
echo $ECHO_N "(cached) $ECHO_C" >&6
2685
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2686
for ac_dir in $PATH; do
2687
# Account for people who put trailing slashes in PATH elements.
2689
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2691
# OSF1 and SCO ODT 3.0 have their own names for install.
2692
# Don't use installbsd from OSF since it installs stuff as root
2694
for ac_prog in ginstall scoinst install; do
2695
if test -f $ac_dir/$ac_prog; then
2696
if test $ac_prog = install &&
2697
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2698
# AIX install. It has an incompatible calling convention.
2701
cl_cv_path_install="$ac_dir/$ac_prog -c"
2710
# As a last resort, use the absolute pathname of cp.
2711
if test -z "$cl_cv_path_install"; then
2712
cl_cv_path_install="cp"
2713
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2714
for ac_dir in $PATH; do
2715
if test -f $ac_dir/cp; then
2716
cl_cv_path_install="$ac_dir/cp"
2724
INSTALL="$cl_cv_path_install"
2726
echo "$as_me:$LINENO: result: $INSTALL" >&5
2727
echo "${ECHO_T}$INSTALL" >&6
2728
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2729
# It thinks the first close brace ends the variable substitution.
2730
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
2731
if test -z "$INSTALL_DATA"; then
2733
cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
2734
* ) INSTALL_DATA='$(INSTALL) -m 644' ;;
2738
echo "$as_me:$LINENO: checking how to copy files" >&5
2739
echo $ECHO_N "checking how to copy files... $ECHO_C" >&6
2740
if test "${cl_cv_prog_cp+set}" = set; then
2741
echo $ECHO_N "(cached) $ECHO_C" >&6
2744
echo "blabla" > conftest.x
2745
err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
2746
if test -z "$err"; then
2747
cl_cv_prog_cp='cp -p'
2754
echo "$as_me:$LINENO: result: $cl_cv_prog_cp" >&5
2755
echo "${ECHO_T}$cl_cv_prog_cp" >&6
2758
echo "$as_me:$LINENO: checking how to make hard links" >&5
2759
echo $ECHO_N "checking how to make hard links... $ECHO_C" >&6
2760
if test "${cl_cv_prog_LN+set}" = set; then
2761
echo $ECHO_N "(cached) $ECHO_C" >&6
2764
rm -f conftestdata conftestfile
2765
echo data > conftestfile
2766
if ln conftestfile conftestdata 2>/dev/null; then
2769
cl_cv_prog_LN="$cl_cv_prog_cp"
2771
rm -f conftestdata conftestfile
2774
echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
2775
echo "${ECHO_T}$cl_cv_prog_LN" >&6
2778
ac_aux_dir=${srcdir}/../build-aux
2779
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2780
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2781
# Make sure we can run config.sub.
2782
$ac_config_sub sun4 >/dev/null 2>&1 ||
2783
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2784
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2785
{ (exit 1); exit 1; }; }
2787
echo "$as_me:$LINENO: checking build system type" >&5
2788
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2789
if test "${ac_cv_build+set}" = set; then
2790
echo $ECHO_N "(cached) $ECHO_C" >&6
2792
ac_cv_build_alias=$build_alias
2793
test -z "$ac_cv_build_alias" &&
2794
ac_cv_build_alias=`$ac_config_guess`
2795
test -z "$ac_cv_build_alias" &&
2796
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2797
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2798
{ (exit 1); exit 1; }; }
2799
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2800
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2801
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2802
{ (exit 1); exit 1; }; }
2805
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2806
echo "${ECHO_T}$ac_cv_build" >&6
2808
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2809
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2810
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2813
echo "$as_me:$LINENO: checking host system type" >&5
2814
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2815
if test "${ac_cv_host+set}" = set; then
2816
echo $ECHO_N "(cached) $ECHO_C" >&6
2818
ac_cv_host_alias=$host_alias
2819
test -z "$ac_cv_host_alias" &&
2820
ac_cv_host_alias=$ac_cv_build_alias
2821
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2822
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2823
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2824
{ (exit 1); exit 1; }; }
2827
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2828
echo "${ECHO_T}$ac_cv_host" >&6
2830
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2831
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2832
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2841
alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
2844
hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
2848
host_cpu_abi=powerpc
2850
c1 | c2 | c32 | c34 | c38 | c4 )
2857
echo "$as_me:$LINENO: checking for 64-bit MIPS" >&5
2858
echo $ECHO_N "checking for 64-bit MIPS... $ECHO_C" >&6
2859
if test "${cl_cv_host_mips64+set}" = set; then
2860
echo $ECHO_N "(cached) $ECHO_C" >&6
2863
cat >conftest.$ac_ext <<_ACEOF
2866
cat confdefs.h >>conftest.$ac_ext
2867
cat >>conftest.$ac_ext <<_ACEOF
2868
/* end confdefs.h. */
2869
#if defined(_MIPS_SZLONG)
2870
#if (_MIPS_SZLONG == 64)
2871
/* We should also check for (_MIPS_SZPTR == 64), but gcc keeps this at 32. */
2877
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2878
$EGREP "yes" >/dev/null 2>&1; then
2879
cl_cv_host_mips64=yes
2881
cl_cv_host_mips64=no
2887
echo "$as_me:$LINENO: result: $cl_cv_host_mips64" >&5
2888
echo "${ECHO_T}$cl_cv_host_mips64" >&6
2889
if test $cl_cv_host_mips64 = yes; then
2892
echo "$as_me:$LINENO: checking for MIPS with n32 ABI" >&5
2893
echo $ECHO_N "checking for MIPS with n32 ABI... $ECHO_C" >&6
2894
if test "${cl_cv_host_mipsn32+set}" = set; then
2895
echo $ECHO_N "(cached) $ECHO_C" >&6
2898
cat >conftest.$ac_ext <<_ACEOF
2901
cat confdefs.h >>conftest.$ac_ext
2902
cat >>conftest.$ac_ext <<_ACEOF
2903
/* end confdefs.h. */
2909
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2910
$EGREP "yes" >/dev/null 2>&1; then
2911
cl_cv_host_mipsn32=yes
2913
cl_cv_host_mipsn32=no
2919
echo "$as_me:$LINENO: result: $cl_cv_host_mipsn32" >&5
2920
echo "${ECHO_T}$cl_cv_host_mipsn32" >&6
2921
if test $cl_cv_host_mipsn32 = yes; then
2922
host_cpu_abi=mipsn32
2929
echo "$as_me:$LINENO: checking for 64-bit PowerPC" >&5
2930
echo $ECHO_N "checking for 64-bit PowerPC... $ECHO_C" >&6
2931
if test "${cl_cv_host_powerpc64+set}" = set; then
2932
echo $ECHO_N "(cached) $ECHO_C" >&6
2935
cat >conftest.$ac_ext <<_ACEOF
2938
cat confdefs.h >>conftest.$ac_ext
2939
cat >>conftest.$ac_ext <<_ACEOF
2940
/* end confdefs.h. */
2941
#if defined(__powerpc64__) || defined(_ARCH_PPC64)
2946
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947
$EGREP "yes" >/dev/null 2>&1; then
2948
cl_cv_host_powerpc64=yes
2950
cl_cv_host_powerpc64=no
2956
echo "$as_me:$LINENO: result: $cl_cv_host_powerpc64" >&5
2957
echo "${ECHO_T}$cl_cv_host_powerpc64" >&6
2958
if test $cl_cv_host_powerpc64 = yes; then
2959
host_cpu_abi=powerpc64
2961
host_cpu_abi=powerpc
2965
echo "$as_me:$LINENO: checking for 64-bit SPARC" >&5
2966
echo $ECHO_N "checking for 64-bit SPARC... $ECHO_C" >&6
2967
if test "${cl_cv_host_sparc64+set}" = set; then
2968
echo $ECHO_N "(cached) $ECHO_C" >&6
2971
cat >conftest.$ac_ext <<_ACEOF
2974
cat confdefs.h >>conftest.$ac_ext
2975
cat >>conftest.$ac_ext <<_ACEOF
2976
/* end confdefs.h. */
2977
#if defined(__sparcv9) || defined(__arch64__)
2982
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2983
$EGREP "yes" >/dev/null 2>&1; then
2984
cl_cv_host_sparc64=yes
2986
cl_cv_host_sparc64=no
2992
echo "$as_me:$LINENO: result: $cl_cv_host_sparc64" >&5
2993
echo "${ECHO_T}$cl_cv_host_sparc64" >&6
2994
if test $cl_cv_host_sparc64 = yes; then
2995
host_cpu_abi=sparc64
3001
echo "$as_me:$LINENO: checking for 64-bit x86_64" >&5
3002
echo $ECHO_N "checking for 64-bit x86_64... $ECHO_C" >&6
3003
if test "${cl_cv_host_x86_64+set}" = set; then
3004
echo $ECHO_N "(cached) $ECHO_C" >&6
3007
cat >conftest.$ac_ext <<_ACEOF
3010
cat confdefs.h >>conftest.$ac_ext
3011
cat >>conftest.$ac_ext <<_ACEOF
3012
/* end confdefs.h. */
3013
#if defined(__LP64__) || defined(__x86_64__) || defined(__amd64__)
3018
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019
$EGREP "yes" >/dev/null 2>&1; then
3020
cl_cv_host_x86_64=yes
3022
cl_cv_host_x86_64=no
3028
echo "$as_me:$LINENO: result: $cl_cv_host_x86_64" >&5
3029
echo "${ECHO_T}$cl_cv_host_x86_64" >&6
3030
if test $cl_cv_host_x86_64 = yes; then
3037
host_cpu_abi=$host_cpu
3041
cat >> confdefs.h <<EOF
3042
#ifndef __${host_cpu_abi}__
3043
#define __${host_cpu_abi}__ 1
3047
echo "$as_me:$LINENO: checking for pcc non-reentrant struct return convention" >&5
3048
echo $ECHO_N "checking for pcc non-reentrant struct return convention... $ECHO_C" >&6
3049
if test "${cl_cv_c_struct_return_static+set}" = set; then
3050
echo $ECHO_N "(cached) $ECHO_C" >&6
3053
save_CFLAGS="$CFLAGS"
3054
test $CC_GCC = true && CFLAGS="$CFLAGS -O0"
3055
if test "$cross_compiling" = yes; then
3056
cl_cv_c_struct_return_static="guessing no"
3058
cat >conftest.$ac_ext <<_ACEOF
3061
cat confdefs.h >>conftest.$ac_ext
3062
cat >>conftest.$ac_ext <<_ACEOF
3063
/* end confdefs.h. */
3066
#if defined __MACH__ && defined __APPLE__
3067
/* Avoid a crash on MacOS X. */
3068
#include <mach/mach.h>
3069
#include <mach/mach_error.h>
3070
#include <mach/thread_status.h>
3071
#include <mach/exception.h>
3072
#include <mach/task.h>
3073
#include <pthread.h>
3074
/* The exception port on which our thread listens. */
3075
static mach_port_t our_exception_port;
3076
/* The main function of the thread listening for exceptions of type
3079
mach_exception_thread (void *arg)
3081
/* Buffer for a message to be received. */
3083
mach_msg_header_t head;
3084
mach_msg_body_t msgh_body;
3087
mach_msg_return_t retval;
3088
/* Wait for a message on the exception port. */
3089
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
3090
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
3091
if (retval != MACH_MSG_SUCCESS)
3098
mach_port_t self = mach_task_self ();
3099
/* Allocate a port on which the thread shall listen for exceptions. */
3100
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
3102
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
3103
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
3104
MACH_MSG_TYPE_MAKE_SEND)
3106
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
3108
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
3109
/* Create the thread listening on the exception port. */
3110
pthread_attr_t attr;
3112
if (pthread_attr_init (&attr) == 0
3113
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
3114
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
3115
pthread_attr_destroy (&attr);
3116
/* Replace the exception port info for these exceptions with our own.
3117
Note that we replace the exception port for the entire task, not only
3118
for a particular thread. This has the effect that when our exception
3119
port gets the message, the thread specific exception port has already
3120
been asked, and we don't need to bother about it.
3121
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
3122
task_set_exception_ports (self, mask, our_exception_port,
3123
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
3129
/* Avoid a crash on POSIX systems. */
3131
/* A POSIX signal handler. */
3133
exception_handler (int sig)
3141
signal (SIGSEGV, exception_handler);
3144
signal (SIGBUS, exception_handler);
3149
typedef struct { int a; int b; int c; int d; int e; } foo;
3150
foo foofun () { static foo foopi = {3141,5926,5358,9793,2385}; return foopi; }
3151
foo* (*fun) () = (foo* (*) ()) foofun;
3158
foo1 = foofun(); fooptr1 = (*fun)(&foo1);
3159
foo2 = foofun(); fooptr2 = (*fun)(&foo2);
3160
exit(!(fooptr1 == fooptr2 && fooptr1->c == 5358));
3163
rm -f conftest$ac_exeext
3164
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3165
(eval $ac_link) 2>&5
3167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173
(exit $ac_status); }; }; then
3174
cl_cv_c_struct_return_static=yes
3176
echo "$as_me: program exited with status $ac_status" >&5
3177
echo "$as_me: failed program was:" >&5
3178
sed 's/^/| /' conftest.$ac_ext >&5
3181
cl_cv_c_struct_return_static=no
3183
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3185
CFLAGS="$save_CFLAGS"
3188
echo "$as_me:$LINENO: result: $cl_cv_c_struct_return_static" >&5
3189
echo "${ECHO_T}$cl_cv_c_struct_return_static" >&6
3190
case "$cl_cv_c_struct_return_static" in
3191
*yes) cat >>confdefs.h <<\_ACEOF
3192
#define __PCC_STRUCT_RETURN__ 1
3198
echo "$as_me:$LINENO: checking whether small structs are returned in registers" >&5
3199
echo $ECHO_N "checking whether small structs are returned in registers... $ECHO_C" >&6
3200
if test "${cl_cv_c_struct_return_small+set}" = set; then
3201
echo $ECHO_N "(cached) $ECHO_C" >&6
3204
if test "$cross_compiling" = yes; then
3205
cl_cv_c_struct_return_small="guessing no"
3207
cat >conftest.$ac_ext <<_ACEOF
3210
cat confdefs.h >>conftest.$ac_ext
3211
cat >>conftest.$ac_ext <<_ACEOF
3212
/* end confdefs.h. */
3215
#if defined __MACH__ && defined __APPLE__
3216
/* Avoid a crash on MacOS X. */
3217
#include <mach/mach.h>
3218
#include <mach/mach_error.h>
3219
#include <mach/thread_status.h>
3220
#include <mach/exception.h>
3221
#include <mach/task.h>
3222
#include <pthread.h>
3223
/* The exception port on which our thread listens. */
3224
static mach_port_t our_exception_port;
3225
/* The main function of the thread listening for exceptions of type
3228
mach_exception_thread (void *arg)
3230
/* Buffer for a message to be received. */
3232
mach_msg_header_t head;
3233
mach_msg_body_t msgh_body;
3236
mach_msg_return_t retval;
3237
/* Wait for a message on the exception port. */
3238
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
3239
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
3240
if (retval != MACH_MSG_SUCCESS)
3247
mach_port_t self = mach_task_self ();
3248
/* Allocate a port on which the thread shall listen for exceptions. */
3249
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
3251
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
3252
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
3253
MACH_MSG_TYPE_MAKE_SEND)
3255
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
3257
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
3258
/* Create the thread listening on the exception port. */
3259
pthread_attr_t attr;
3261
if (pthread_attr_init (&attr) == 0
3262
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
3263
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
3264
pthread_attr_destroy (&attr);
3265
/* Replace the exception port info for these exceptions with our own.
3266
Note that we replace the exception port for the entire task, not only
3267
for a particular thread. This has the effect that when our exception
3268
port gets the message, the thread specific exception port has already
3269
been asked, and we don't need to bother about it.
3270
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
3271
task_set_exception_ports (self, mask, our_exception_port,
3272
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
3278
/* Avoid a crash on POSIX systems. */
3280
/* A POSIX signal handler. */
3282
exception_handler (int sig)
3290
signal (SIGSEGV, exception_handler);
3293
signal (SIGBUS, exception_handler);
3298
typedef struct { long x; } foo; long y;
3299
foo foofun () { foo f; f.x = y; return f; }
3300
long (*fun) () = (long (*) ()) foofun;
3303
y = 37; if ((*fun)() != 37) exit(1);
3304
y = 55; if ((*fun)() != 55) exit(1);
3308
rm -f conftest$ac_exeext
3309
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3310
(eval $ac_link) 2>&5
3312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3314
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318
(exit $ac_status); }; }; then
3319
cl_cv_c_struct_return_small=yes
3321
echo "$as_me: program exited with status $ac_status" >&5
3322
echo "$as_me: failed program was:" >&5
3323
sed 's/^/| /' conftest.$ac_ext >&5
3326
cl_cv_c_struct_return_small=no
3328
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3332
echo "$as_me:$LINENO: result: $cl_cv_c_struct_return_small" >&5
3333
echo "${ECHO_T}$cl_cv_c_struct_return_small" >&6
3334
case "$cl_cv_c_struct_return_small" in
3335
*yes) cat >>confdefs.h <<\_ACEOF
3336
#define __SMALL_STRUCT_RETURN__ 1
3342
echo "$as_me:$LINENO: checking whether floats are returned in integer registers" >&5
3343
echo $ECHO_N "checking whether floats are returned in integer registers... $ECHO_C" >&6
3344
if test "${cl_cv_c_float_return_ireg+set}" = set; then
3345
echo $ECHO_N "(cached) $ECHO_C" >&6
3348
if test "$cross_compiling" = yes; then
3349
cl_cv_c_float_return_ireg="guessing no"
3351
cat >conftest.$ac_ext <<_ACEOF
3354
cat confdefs.h >>conftest.$ac_ext
3355
cat >>conftest.$ac_ext <<_ACEOF
3356
/* end confdefs.h. */
3359
#if defined __MACH__ && defined __APPLE__
3360
/* Avoid a crash on MacOS X. */
3361
#include <mach/mach.h>
3362
#include <mach/mach_error.h>
3363
#include <mach/thread_status.h>
3364
#include <mach/exception.h>
3365
#include <mach/task.h>
3366
#include <pthread.h>
3367
/* The exception port on which our thread listens. */
3368
static mach_port_t our_exception_port;
3369
/* The main function of the thread listening for exceptions of type
3372
mach_exception_thread (void *arg)
3374
/* Buffer for a message to be received. */
3376
mach_msg_header_t head;
3377
mach_msg_body_t msgh_body;
3380
mach_msg_return_t retval;
3381
/* Wait for a message on the exception port. */
3382
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
3383
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
3384
if (retval != MACH_MSG_SUCCESS)
3391
mach_port_t self = mach_task_self ();
3392
/* Allocate a port on which the thread shall listen for exceptions. */
3393
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
3395
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
3396
if (mach_port_insert_right (self, our_exception_port, our_exception_port,
3397
MACH_MSG_TYPE_MAKE_SEND)
3399
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
3401
exception_mask_t mask = EXC_MASK_BAD_ACCESS;
3402
/* Create the thread listening on the exception port. */
3403
pthread_attr_t attr;
3405
if (pthread_attr_init (&attr) == 0
3406
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
3407
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
3408
pthread_attr_destroy (&attr);
3409
/* Replace the exception port info for these exceptions with our own.
3410
Note that we replace the exception port for the entire task, not only
3411
for a particular thread. This has the effect that when our exception
3412
port gets the message, the thread specific exception port has already
3413
been asked, and we don't need to bother about it.
3414
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
3415
task_set_exception_ports (self, mask, our_exception_port,
3416
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
3422
/* Avoid a crash on POSIX systems. */
3424
/* A POSIX signal handler. */
3426
exception_handler (int sig)
3434
signal (SIGSEGV, exception_handler);
3437
signal (SIGBUS, exception_handler);
3442
float x = (float)1.2;
3443
float y = (float)1.3;
3444
float fun () { return x*y; }
3447
{int val = (* (int (*) ()) fun) ();
3448
exit (!(val == 0x3FC7AE15 || val == 0x15AEC73F));
3451
rm -f conftest$ac_exeext
3452
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453
(eval $ac_link) 2>&5
3455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3457
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461
(exit $ac_status); }; }; then
3462
cl_cv_c_float_return_ireg=yes
3464
echo "$as_me: program exited with status $ac_status" >&5
3465
echo "$as_me: failed program was:" >&5
3466
sed 's/^/| /' conftest.$ac_ext >&5
3469
cl_cv_c_float_return_ireg=no
3471
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3475
echo "$as_me:$LINENO: result: $cl_cv_c_float_return_ireg" >&5
3476
echo "${ECHO_T}$cl_cv_c_float_return_ireg" >&6
3477
case "$cl_cv_c_float_return_ireg" in
3478
*yes) cat >>confdefs.h <<\_ACEOF
3479
#define __IREG_FLOAT_RETURN__ 1
3486
echo "$as_me:$LINENO: checking for long long" >&5
3487
echo $ECHO_N "checking for long long... $ECHO_C" >&6
3488
if test "${ac_cv_type_long_long+set}" = set; then
3489
echo $ECHO_N "(cached) $ECHO_C" >&6
3491
cat >conftest.$ac_ext <<_ACEOF
3494
cat confdefs.h >>conftest.$ac_ext
3495
cat >>conftest.$ac_ext <<_ACEOF
3496
/* end confdefs.h. */
3497
long long ll = 1LL; int i = 63;
3501
long long llmax = (long long) -1;
3502
return ll << i | ll >> i | llmax / ll | llmax % ll;
3507
rm -f conftest.$ac_objext conftest$ac_exeext
3508
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509
(eval $ac_link) 2>conftest.er1
3511
grep -v '^ *+' conftest.er1 >conftest.err
3513
cat conftest.err >&5
3514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515
(exit $ac_status); } &&
3516
{ ac_try='test -z "$ac_c_werror_flag"
3517
|| test ! -s conftest.err'
3518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522
(exit $ac_status); }; } &&
3523
{ ac_try='test -s conftest$ac_exeext'
3524
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528
(exit $ac_status); }; }; then
3529
ac_cv_type_long_long=yes
3531
echo "$as_me: failed program was:" >&5
3532
sed 's/^/| /' conftest.$ac_ext >&5
3534
ac_cv_type_long_long=no
3536
rm -f conftest.err conftest.$ac_objext \
3537
conftest$ac_exeext conftest.$ac_ext
3539
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
3540
echo "${ECHO_T}$ac_cv_type_long_long" >&6
3541
if test $ac_cv_type_long_long = yes; then
3543
cat >>confdefs.h <<\_ACEOF
3544
#define HAVE_LONG_LONG 1
3549
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3550
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3551
if test "${ac_cv_header_stdc+set}" = set; then
3552
echo $ECHO_N "(cached) $ECHO_C" >&6
3554
cat >conftest.$ac_ext <<_ACEOF
3557
cat confdefs.h >>conftest.$ac_ext
3558
cat >>conftest.$ac_ext <<_ACEOF
3559
/* end confdefs.h. */
3573
rm -f conftest.$ac_objext
3574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575
(eval $ac_compile) 2>conftest.er1
3577
grep -v '^ *+' conftest.er1 >conftest.err
3579
cat conftest.err >&5
3580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581
(exit $ac_status); } &&
3582
{ ac_try='test -z "$ac_c_werror_flag"
3583
|| test ! -s conftest.err'
3584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588
(exit $ac_status); }; } &&
3589
{ ac_try='test -s conftest.$ac_objext'
3590
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594
(exit $ac_status); }; }; then
3595
ac_cv_header_stdc=yes
3597
echo "$as_me: failed program was:" >&5
3598
sed 's/^/| /' conftest.$ac_ext >&5
3600
ac_cv_header_stdc=no
3602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604
if test $ac_cv_header_stdc = yes; then
3605
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3606
cat >conftest.$ac_ext <<_ACEOF
3609
cat confdefs.h >>conftest.$ac_ext
3610
cat >>conftest.$ac_ext <<_ACEOF
3611
/* end confdefs.h. */
3615
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616
$EGREP "memchr" >/dev/null 2>&1; then
3619
ac_cv_header_stdc=no
3625
if test $ac_cv_header_stdc = yes; then
3626
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3627
cat >conftest.$ac_ext <<_ACEOF
3630
cat confdefs.h >>conftest.$ac_ext
3631
cat >>conftest.$ac_ext <<_ACEOF
3632
/* end confdefs.h. */
3636
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637
$EGREP "free" >/dev/null 2>&1; then
3640
ac_cv_header_stdc=no
3646
if test $ac_cv_header_stdc = yes; then
3647
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3648
if test "$cross_compiling" = yes; then
3651
cat >conftest.$ac_ext <<_ACEOF
3654
cat confdefs.h >>conftest.$ac_ext
3655
cat >>conftest.$ac_ext <<_ACEOF
3656
/* end confdefs.h. */
3658
#if ((' ' & 0x0FF) == 0x020)
3659
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3660
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3662
# define ISLOWER(c) \
3663
(('a' <= (c) && (c) <= 'i') \
3664
|| ('j' <= (c) && (c) <= 'r') \
3665
|| ('s' <= (c) && (c) <= 'z'))
3666
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3669
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3674
for (i = 0; i < 256; i++)
3675
if (XOR (islower (i), ISLOWER (i))
3676
|| toupper (i) != TOUPPER (i))
3681
rm -f conftest$ac_exeext
3682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683
(eval $ac_link) 2>&5
3685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691
(exit $ac_status); }; }; then
3694
echo "$as_me: program exited with status $ac_status" >&5
3695
echo "$as_me: failed program was:" >&5
3696
sed 's/^/| /' conftest.$ac_ext >&5
3699
ac_cv_header_stdc=no
3701
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3705
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3706
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3707
if test $ac_cv_header_stdc = yes; then
3709
cat >>confdefs.h <<\_ACEOF
3710
#define STDC_HEADERS 1
3715
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3725
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3726
inttypes.h stdint.h unistd.h
3728
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3729
echo "$as_me:$LINENO: checking for $ac_header" >&5
3730
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3731
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3732
echo $ECHO_N "(cached) $ECHO_C" >&6
3734
cat >conftest.$ac_ext <<_ACEOF
3737
cat confdefs.h >>conftest.$ac_ext
3738
cat >>conftest.$ac_ext <<_ACEOF
3739
/* end confdefs.h. */
3740
$ac_includes_default
3742
#include <$ac_header>
3744
rm -f conftest.$ac_objext
3745
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746
(eval $ac_compile) 2>conftest.er1
3748
grep -v '^ *+' conftest.er1 >conftest.err
3750
cat conftest.err >&5
3751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752
(exit $ac_status); } &&
3753
{ ac_try='test -z "$ac_c_werror_flag"
3754
|| test ! -s conftest.err'
3755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759
(exit $ac_status); }; } &&
3760
{ ac_try='test -s conftest.$ac_objext'
3761
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765
(exit $ac_status); }; }; then
3766
eval "$as_ac_Header=yes"
3768
echo "$as_me: failed program was:" >&5
3769
sed 's/^/| /' conftest.$ac_ext >&5
3771
eval "$as_ac_Header=no"
3773
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3775
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3776
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3777
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3778
cat >>confdefs.h <<_ACEOF
3779
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3788
echo "$as_me:$LINENO: checking whether char is unsigned" >&5
3789
echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
3790
if test "${ac_cv_c_char_unsigned+set}" = set; then
3791
echo $ECHO_N "(cached) $ECHO_C" >&6
3793
cat >conftest.$ac_ext <<_ACEOF
3796
cat confdefs.h >>conftest.$ac_ext
3797
cat >>conftest.$ac_ext <<_ACEOF
3798
/* end confdefs.h. */
3799
$ac_includes_default
3803
static int test_array [1 - 2 * !(((char) -1) < 0)];
3810
rm -f conftest.$ac_objext
3811
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812
(eval $ac_compile) 2>conftest.er1
3814
grep -v '^ *+' conftest.er1 >conftest.err
3816
cat conftest.err >&5
3817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818
(exit $ac_status); } &&
3819
{ ac_try='test -z "$ac_c_werror_flag"
3820
|| test ! -s conftest.err'
3821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825
(exit $ac_status); }; } &&
3826
{ ac_try='test -s conftest.$ac_objext'
3827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831
(exit $ac_status); }; }; then
3832
ac_cv_c_char_unsigned=no
3834
echo "$as_me: failed program was:" >&5
3835
sed 's/^/| /' conftest.$ac_ext >&5
3837
ac_cv_c_char_unsigned=yes
3839
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3841
echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
3842
echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
3843
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3844
cat >>confdefs.h <<\_ACEOF
3845
#define __CHAR_UNSIGNED__ 1
3850
ac_config_files="$ac_config_files Makefile"
3851
cat >confcache <<\_ACEOF
3852
# This file is a shell script that caches the results of configure
3853
# tests run on this system so they can be shared between configure
3854
# scripts and configure runs, see configure's option --config-cache.
3855
# It is not useful on other systems. If it contains results you don't
3856
# want to keep, you may remove or edit it.
3858
# config.status only pays attention to the cache file if you give it
3859
# the --recheck option to rerun configure.
3861
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3862
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3867
# The following way of writing the cache mishandles newlines in values,
3868
# but we know of no workaround that is simple, portable, and efficient.
3869
# So, don't put newlines in cache variables' values.
3870
# Ultrix sh set writes to stderr and can't be redirected directly,
3871
# and sets the high bit in the cache file unless we assign to the vars.
3874
case `(ac_space=' '; set | grep ac_space) 2>&1` in
3876
# `set' does not quote correctly, so add quotes (double-quote
3877
# substitution turns \\\\ into \\, and sed turns \\ into \).
3880
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3883
# `set' quotes correctly as required by POSIX, so do not add quotes.
3885
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3892
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3894
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3896
if diff $cache_file confcache >/dev/null 2>&1; then :; else
3897
if test -w $cache_file; then
3898
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3899
cat confcache >$cache_file
3901
echo "not updating unwritable cache $cache_file"
3906
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3907
# Let make expand exec_prefix.
3908
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3910
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3911
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3912
# trailing colons and then remove the whole line if VPATH becomes empty
3913
# (actually we leave an empty line to preserve line numbers).
3914
if test "x$srcdir" = x.; then
3915
ac_vpsub='/^[ ]*VPATH[ ]*=/{
3916
s/:*\$(srcdir):*/:/;
3917
s/:*\${srcdir}:*/:/;
3919
s/^\([^=]*=[ ]*\):*/\1/;
3925
DEFS=-DHAVE_CONFIG_H
3929
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3930
# 1. Remove the extension, and $U if already installed.
3931
ac_i=`echo "$ac_i" |
3932
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3934
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3935
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3939
LTLIBOBJS=$ac_ltlibobjs
3943
: ${CONFIG_STATUS=./config.status}
3944
ac_clean_files_save=$ac_clean_files
3945
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3946
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3947
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3948
cat >$CONFIG_STATUS <<_ACEOF
3950
# Generated by $as_me.
3951
# Run this file to recreate the current configuration.
3952
# Compiler output produced by configure, useful for debugging
3953
# configure, is in config.log if it exists.
3958
SHELL=\${CONFIG_SHELL-$SHELL}
3961
cat >>$CONFIG_STATUS <<\_ACEOF
3962
## --------------------- ##
3963
## M4sh Initialization. ##
3964
## --------------------- ##
3966
# Be Bourne compatible
3967
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3970
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3971
# is contrary to our usage. Disable this feature.
3972
alias -g '${1+"$@"}'='"$@"'
3973
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3976
DUALCASE=1; export DUALCASE # for MKS sh
3978
# Support unset when possible.
3979
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3986
# Work around bugs in pre-3.0 UWIN ksh.
3987
$as_unset ENV MAIL MAILPATH
3994
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3995
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3996
LC_TELEPHONE LC_TIME
3998
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3999
eval $as_var=C; export $as_var
4005
# Required to use basename.
4006
if expr a : '\(a\)' >/dev/null 2>&1; then
4012
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4013
as_basename=basename
4019
# Name of the executable.
4020
as_me=`$as_basename "$0" ||
4021
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4022
X"$0" : 'X\(//\)$' \| \
4023
X"$0" : 'X\(/\)$' \| \
4024
. : '\(.\)' 2>/dev/null ||
4026
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4027
/^X\/\(\/\/\)$/{ s//\1/; q; }
4028
/^X\/\(\/\).*/{ s//\1/; q; }
4032
# PATH needs CR, and LINENO needs CR and PATH.
4033
# Avoid depending upon Character Ranges.
4034
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4035
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4036
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4037
as_cr_digits='0123456789'
4038
as_cr_alnum=$as_cr_Letters$as_cr_digits
4040
# The user is always right.
4041
if test "${PATH_SEPARATOR+set}" != set; then
4042
echo "#! /bin/sh" >conf$$.sh
4043
echo "exit 0" >>conf$$.sh
4045
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4056
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4057
test "x$as_lineno_1" != "x$as_lineno_2" &&
4058
test "x$as_lineno_3" = "x$as_lineno_2" || {
4059
# Find who we are. Look in the path if we contain no path at all
4062
*[\\/]* ) as_myself=$0 ;;
4063
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067
test -z "$as_dir" && as_dir=.
4068
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4073
# We did not find ourselves, most probably we were run as `sh COMMAND'
4074
# in which case we are not to be found in the path.
4075
if test "x$as_myself" = x; then
4078
if test ! -f "$as_myself"; then
4079
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4080
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4081
{ (exit 1); exit 1; }; }
4083
case $CONFIG_SHELL in
4085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4089
test -z "$as_dir" && as_dir=.
4090
for as_base in sh bash ksh sh5; do
4093
if ("$as_dir/$as_base" -c '
4096
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4097
test "x$as_lineno_1" != "x$as_lineno_2" &&
4098
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4099
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4100
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4101
CONFIG_SHELL=$as_dir/$as_base
4103
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4111
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4112
# uniformly replaced by the line number. The first 'sed' inserts a
4113
# line-number line before each line; the second 'sed' does the real
4114
# work. The second script uses 'N' to pair each line-number line
4115
# with the numbered line, and appends trailing '-' during
4116
# substitution so that $LINENO is not a special case at line end.
4117
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4118
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4119
sed '=' <$as_myself |
4124
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4127
s,^['$as_cr_digits']*\n,,
4129
chmod +x $as_me.lineno ||
4130
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4131
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4132
{ (exit 1); exit 1; }; }
4134
# Don't try to exec as it changes $[0], causing all sort of problems
4135
# (the dirname of $[0] is not the place where we might find the
4136
# original and so on. Autoconf is especially sensible to this).
4138
# Exit status is that of the last command.
4143
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4144
*c*,-n*) ECHO_N= ECHO_C='
4146
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4147
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4150
if expr a : '\(a\)' >/dev/null 2>&1; then
4156
rm -f conf$$ conf$$.exe conf$$.file
4158
if ln -s conf$$.file conf$$ 2>/dev/null; then
4159
# We could just check for DJGPP; but this test a) works b) is more generic
4160
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4161
if test -f conf$$.exe; then
4162
# Don't use ln at all; we don't have any links
4167
elif ln conf$$.file conf$$ 2>/dev/null; then
4172
rm -f conf$$ conf$$.exe conf$$.file
4174
if mkdir -p . 2>/dev/null; then
4177
test -d ./-p && rmdir ./-p
4181
as_executable_p="test -f"
4183
# Sed expression to map a string onto a valid CPP name.
4184
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4186
# Sed expression to map a string onto a valid variable name.
4187
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4191
# We need space, tab and new line, in precisely that order.
4201
# Open the log real soon, to keep \$[0] and so on meaningful, and to
4202
# report actual input values of CONFIG_FILES etc. instead of their
4203
# values after options handling. Logging --version etc. is OK.
4207
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4208
## Running $as_me. ##
4213
This file was extended by $as_me, which was
4214
generated by GNU Autoconf 2.59. Invocation command line was
4216
CONFIG_FILES = $CONFIG_FILES
4217
CONFIG_HEADERS = $CONFIG_HEADERS
4218
CONFIG_LINKS = $CONFIG_LINKS
4219
CONFIG_COMMANDS = $CONFIG_COMMANDS
4223
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4227
# Files that config.status was made for.
4228
if test -n "$ac_config_files"; then
4229
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4232
if test -n "$ac_config_headers"; then
4233
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4236
if test -n "$ac_config_links"; then
4237
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4240
if test -n "$ac_config_commands"; then
4241
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4244
cat >>$CONFIG_STATUS <<\_ACEOF
4247
\`$as_me' instantiates files from templates according to the
4248
current configuration.
4250
Usage: $0 [OPTIONS] [FILE]...
4252
-h, --help print this help, then exit
4253
-V, --version print version number, then exit
4254
-q, --quiet do not print progress messages
4255
-d, --debug don't remove temporary files
4256
--recheck update $as_me by reconfiguring in the same conditions
4257
--file=FILE[:TEMPLATE]
4258
instantiate the configuration file FILE
4259
--header=FILE[:TEMPLATE]
4260
instantiate the configuration header FILE
4262
Configuration files:
4265
Configuration headers:
4268
Report bugs to <bug-autoconf@gnu.org>."
4271
cat >>$CONFIG_STATUS <<_ACEOF
4274
configured by $0, generated by GNU Autoconf 2.59,
4275
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4277
Copyright (C) 2003 Free Software Foundation, Inc.
4278
This config.status script is free software; the Free Software Foundation
4279
gives unlimited permission to copy, distribute and modify it."
4283
cat >>$CONFIG_STATUS <<\_ACEOF
4284
# If no file are specified by the user, then we need to provide default
4285
# value. By we need to know if files were specified by the user.
4291
ac_option=`expr "x$1" : 'x\([^=]*\)='`
4292
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4300
*) # This is not an option, so the user has probably given explicit
4303
ac_need_defaults=false;;
4307
# Handling of the options.
4309
cat >>$CONFIG_STATUS <<\_ACEOF
4310
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4312
--version | --vers* | -V )
4313
echo "$ac_cs_version"; exit 0 ;;
4315
# Conflict between --help and --header
4316
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
4317
Try \`$0 --help' for more information." >&5
4318
echo "$as_me: error: ambiguous option: $1
4319
Try \`$0 --help' for more information." >&2;}
4320
{ (exit 1); exit 1; }; };;
4321
--help | --hel | -h )
4322
echo "$ac_cs_usage"; exit 0 ;;
4323
--debug | --d* | -d )
4325
--file | --fil | --fi | --f )
4327
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4328
ac_need_defaults=false;;
4329
--header | --heade | --head | --hea )
4331
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4332
ac_need_defaults=false;;
4333
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
4334
| -silent | --silent | --silen | --sile | --sil | --si | --s)
4338
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4339
Try \`$0 --help' for more information." >&5
4340
echo "$as_me: error: unrecognized option: $1
4341
Try \`$0 --help' for more information." >&2;}
4342
{ (exit 1); exit 1; }; } ;;
4344
*) ac_config_targets="$ac_config_targets $1" ;;
4350
ac_configure_extra_args=
4352
if $ac_cs_silent; then
4354
ac_configure_extra_args="$ac_configure_extra_args --silent"
4358
cat >>$CONFIG_STATUS <<_ACEOF
4359
if \$ac_cs_recheck; then
4360
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4361
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4370
cat >>$CONFIG_STATUS <<\_ACEOF
4371
for ac_config_target in $ac_config_targets
4373
case "$ac_config_target" in
4374
# Handling of arguments.
4375
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4376
"vacall.h" ) CONFIG_HEADERS="$CONFIG_HEADERS vacall.h" ;;
4377
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4378
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4379
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4380
{ (exit 1); exit 1; }; };;
4384
# If the user did not use the arguments to specify the items to instantiate,
4385
# then the envvar interface is used. Set only those that are not.
4386
# We use the long form for the default assignment because of an extremely
4387
# bizarre bug on SunOS 4.1.3.
4388
if $ac_need_defaults; then
4389
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4390
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4393
# Have a temporary directory for convenience. Make it in the build tree
4394
# simply because there is no reason to put it here, and in addition,
4395
# creating and moving files from /tmp can sometimes cause problems.
4396
# Create a temporary directory, and hook for its removal unless debugging.
4399
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4400
trap '{ (exit 1); exit 1; }' 1 2 13 15
4403
# Create a (secure) tmp directory for tmp files.
4406
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4407
test -n "$tmp" && test -d "$tmp"
4410
tmp=./confstat$$-$RANDOM
4411
(umask 077 && mkdir $tmp)
4414
echo "$me: cannot create a temporary directory in ." >&2
4415
{ (exit 1); exit 1; }
4420
cat >>$CONFIG_STATUS <<_ACEOF
4423
# CONFIG_FILES section.
4426
# No need to generate the scripts if there are no CONFIG_FILES.
4427
# This happens for instance when ./config.status config.h
4428
if test -n "\$CONFIG_FILES"; then
4429
# Protect against being on the right side of a sed subst in config.status.
4430
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4431
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4432
s,@SHELL@,$SHELL,;t t
4433
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4434
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4435
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4436
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4437
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4438
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4439
s,@exec_prefix@,$exec_prefix,;t t
4440
s,@prefix@,$prefix,;t t
4441
s,@program_transform_name@,$program_transform_name,;t t
4442
s,@bindir@,$bindir,;t t
4443
s,@sbindir@,$sbindir,;t t
4444
s,@libexecdir@,$libexecdir,;t t
4445
s,@datadir@,$datadir,;t t
4446
s,@sysconfdir@,$sysconfdir,;t t
4447
s,@sharedstatedir@,$sharedstatedir,;t t
4448
s,@localstatedir@,$localstatedir,;t t
4449
s,@libdir@,$libdir,;t t
4450
s,@includedir@,$includedir,;t t
4451
s,@oldincludedir@,$oldincludedir,;t t
4452
s,@infodir@,$infodir,;t t
4453
s,@mandir@,$mandir,;t t
4454
s,@build_alias@,$build_alias,;t t
4455
s,@host_alias@,$host_alias,;t t
4456
s,@target_alias@,$target_alias,;t t
4458
s,@ECHO_C@,$ECHO_C,;t t
4459
s,@ECHO_N@,$ECHO_N,;t t
4460
s,@ECHO_T@,$ECHO_T,;t t
4463
s,@CFLAGS@,$CFLAGS,;t t
4464
s,@LDFLAGS@,$LDFLAGS,;t t
4465
s,@CPPFLAGS@,$CPPFLAGS,;t t
4466
s,@ac_ct_CC@,$ac_ct_CC,;t t
4467
s,@EXEEXT@,$EXEEXT,;t t
4468
s,@OBJEXT@,$OBJEXT,;t t
4470
s,@EGREP@,$EGREP,;t t
4471
s,@CC_GCC@,$CC_GCC,;t t
4472
s,@GCC_X_NONE@,$GCC_X_NONE,;t t
4473
s,@AS_UNDERSCORE@,$AS_UNDERSCORE,;t t
4474
s,@RANLIB@,$RANLIB,;t t
4475
s,@SET_MAKE@,$SET_MAKE,;t t
4476
s,@INSTALL@,$INSTALL,;t t
4477
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4478
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4481
s,@build@,$build,;t t
4482
s,@build_cpu@,$build_cpu,;t t
4483
s,@build_vendor@,$build_vendor,;t t
4484
s,@build_os@,$build_os,;t t
4486
s,@host_cpu@,$host_cpu,;t t
4487
s,@host_vendor@,$host_vendor,;t t
4488
s,@host_os@,$host_os,;t t
4489
s,@host_cpu_abi@,$host_cpu_abi,;t t
4490
s,@LIBOBJS@,$LIBOBJS,;t t
4491
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4496
cat >>$CONFIG_STATUS <<\_ACEOF
4497
# Split the substitutions into bite-sized pieces for seds with
4498
# small command number limits, like on Digital OSF/1 and HP-UX.
4500
ac_sed_frag=1 # Number of current file.
4501
ac_beg=1 # First line for current file.
4502
ac_end=$ac_max_sed_lines # Line after last line for current file.
4505
while $ac_more_lines; do
4506
if test $ac_beg -gt 1; then
4507
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4509
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4511
if test ! -s $tmp/subs.frag; then
4514
# The purpose of the label and of the branching condition is to
4515
# speed up the sed processing (if there are no `@' at all, there
4516
# is no need to browse any of the substitutions).
4517
# These are the two extra sed commands mentioned above.
4519
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4520
if test -z "$ac_sed_cmds"; then
4521
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4523
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4525
ac_sed_frag=`expr $ac_sed_frag + 1`
4527
ac_end=`expr $ac_end + $ac_max_sed_lines`
4530
if test -z "$ac_sed_cmds"; then
4533
fi # test -n "$CONFIG_FILES"
4536
cat >>$CONFIG_STATUS <<\_ACEOF
4537
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4538
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4540
- | *:- | *:-:* ) # input from stdin
4542
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4543
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4544
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4545
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4546
* ) ac_file_in=$ac_file.in ;;
4549
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4550
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4551
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4552
X"$ac_file" : 'X\(//\)[^/]' \| \
4553
X"$ac_file" : 'X\(//\)$' \| \
4554
X"$ac_file" : 'X\(/\)' \| \
4555
. : '\(.\)' 2>/dev/null ||
4557
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4558
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4559
/^X\(\/\/\)$/{ s//\1/; q; }
4560
/^X\(\/\).*/{ s//\1/; q; }
4562
{ if $as_mkdir_p; then
4567
while test ! -d "$as_dir"; do
4568
as_dirs="$as_dir $as_dirs"
4569
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4570
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4571
X"$as_dir" : 'X\(//\)[^/]' \| \
4572
X"$as_dir" : 'X\(//\)$' \| \
4573
X"$as_dir" : 'X\(/\)' \| \
4574
. : '\(.\)' 2>/dev/null ||
4576
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4577
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4578
/^X\(\/\/\)$/{ s//\1/; q; }
4579
/^X\(\/\).*/{ s//\1/; q; }
4582
test ! -n "$as_dirs" || mkdir $as_dirs
4583
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4584
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4585
{ (exit 1); exit 1; }; }; }
4589
if test "$ac_dir" != .; then
4590
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4591
# A "../" for each directory in $ac_dir_suffix.
4592
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4594
ac_dir_suffix= ac_top_builddir=
4598
.) # No --srcdir option. We are building in place.
4600
if test -z "$ac_top_builddir"; then
4603
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4605
[\\/]* | ?:[\\/]* ) # Absolute path.
4606
ac_srcdir=$srcdir$ac_dir_suffix;
4607
ac_top_srcdir=$srcdir ;;
4609
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4610
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4613
# Do not use `cd foo && pwd` to compute absolute paths, because
4614
# the directories may not exist.
4616
.) ac_abs_builddir="$ac_dir";;
4619
.) ac_abs_builddir=`pwd`;;
4620
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4621
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4624
case $ac_abs_builddir in
4625
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4627
case ${ac_top_builddir}. in
4628
.) ac_abs_top_builddir=$ac_abs_builddir;;
4629
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4630
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4633
case $ac_abs_builddir in
4634
.) ac_abs_srcdir=$ac_srcdir;;
4637
.) ac_abs_srcdir=$ac_abs_builddir;;
4638
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4639
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4642
case $ac_abs_builddir in
4643
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4645
case $ac_top_srcdir in
4646
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4647
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4648
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4654
if test x"$ac_file" != x-; then
4655
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4656
echo "$as_me: creating $ac_file" >&6;}
4659
# Let's still pretend it is `configure' which instantiates (i.e., don't
4660
# use $as_me), people would be surprised to read:
4661
# /* config.h. Generated by config.status. */
4662
if test x"$ac_file" = x-; then
4665
configure_input="$ac_file. "
4667
configure_input=$configure_input"Generated from `echo $ac_file_in |
4668
sed 's,.*/,,'` by configure."
4670
# First look for the input files in the build tree, otherwise in the
4672
ac_file_inputs=`IFS=:
4673
for f in $ac_file_in; do
4675
-) echo $tmp/stdin ;;
4677
# Absolute (can't be DOS-style, as IFS=:)
4678
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4679
echo "$as_me: error: cannot find input file: $f" >&2;}
4680
{ (exit 1); exit 1; }; }
4683
if test -f "$f"; then
4686
elif test -f "$srcdir/$f"; then
4691
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4692
echo "$as_me: error: cannot find input file: $f" >&2;}
4693
{ (exit 1); exit 1; }; }
4696
done` || { (exit 1); exit 1; }
4698
cat >>$CONFIG_STATUS <<_ACEOF
4702
cat >>$CONFIG_STATUS <<\_ACEOF
4704
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4705
s,@configure_input@,$configure_input,;t t
4706
s,@srcdir@,$ac_srcdir,;t t
4707
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4708
s,@top_srcdir@,$ac_top_srcdir,;t t
4709
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4710
s,@builddir@,$ac_builddir,;t t
4711
s,@abs_builddir@,$ac_abs_builddir,;t t
4712
s,@top_builddir@,$ac_top_builddir,;t t
4713
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4714
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4716
if test x"$ac_file" != x-; then
4717
mv $tmp/out $ac_file
4725
cat >>$CONFIG_STATUS <<\_ACEOF
4728
# CONFIG_HEADER section.
4731
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4732
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4734
# ac_d sets the value in "#define NAME VALUE" lines.
4735
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4736
ac_dB='[ ].*$,\1#\2'
4739
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4740
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4741
ac_uB='$,\1#\2define\3'
4745
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4746
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4748
- | *:- | *:-:* ) # input from stdin
4750
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4751
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4752
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4753
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4754
* ) ac_file_in=$ac_file.in ;;
4757
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4758
echo "$as_me: creating $ac_file" >&6;}
4760
# First look for the input files in the build tree, otherwise in the
4762
ac_file_inputs=`IFS=:
4763
for f in $ac_file_in; do
4765
-) echo $tmp/stdin ;;
4767
# Absolute (can't be DOS-style, as IFS=:)
4768
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4769
echo "$as_me: error: cannot find input file: $f" >&2;}
4770
{ (exit 1); exit 1; }; }
4771
# Do quote $f, to prevent DOS paths from being IFS'd.
4774
if test -f "$f"; then
4777
elif test -f "$srcdir/$f"; then
4782
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4783
echo "$as_me: error: cannot find input file: $f" >&2;}
4784
{ (exit 1); exit 1; }; }
4787
done` || { (exit 1); exit 1; }
4788
# Remove the trailing spaces.
4789
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4793
# Transform confdefs.h into two sed scripts, `conftest.defines' and
4794
# `conftest.undefs', that substitutes the proper values into
4795
# config.h.in to produce config.h. The first handles `#define'
4796
# templates, and the second `#undef' templates.
4797
# And first: Protect against being on the right side of a sed subst in
4798
# config.status. Protect against being in an unquoted here document
4800
rm -f conftest.defines conftest.undefs
4801
# Using a here document instead of a string reduces the quoting nightmare.
4802
# Putting comments in sed scripts is not portable.
4804
# `end' is used to avoid that the second main sed command (meant for
4805
# 0-ary CPP macros) applies to n-ary macro definitions.
4806
# See the Autoconf documentation for `clear'.
4807
cat >confdef2sed.sed <<\_ACEOF
4812
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4814
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4817
# If some macros were called several times there might be several times
4818
# the same #defines, which is useless. Nevertheless, we may not want to
4819
# sort them, since we want the *last* AC-DEFINE to be honored.
4820
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4821
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4822
rm -f confdef2sed.sed
4824
# This sed command replaces #undef with comments. This is necessary, for
4825
# example, in the case of _POSIX_SOURCE, which is predefined and required
4826
# on some systems where configure will not decide to define it.
4827
cat >>conftest.undefs <<\_ACEOF
4828
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4831
# Break up conftest.defines because some shells have a limit on the size
4832
# of here documents, and old seds have small limits too (100 cmds).
4833
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4834
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4835
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4836
echo ' :' >>$CONFIG_STATUS
4838
while grep . conftest.defines >/dev/null
4840
# Write a limited-size here document to $tmp/defines.sed.
4841
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4842
# Speed up: don't consider the non `#define' lines.
4843
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4844
# Work around the forget-to-reset-the-flag bug.
4845
echo 't clr' >>$CONFIG_STATUS
4846
echo ': clr' >>$CONFIG_STATUS
4847
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4849
sed -f $tmp/defines.sed $tmp/in >$tmp/out
4853
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4854
rm -f conftest.defines
4855
mv conftest.tail conftest.defines
4857
rm -f conftest.defines
4858
echo ' fi # grep' >>$CONFIG_STATUS
4859
echo >>$CONFIG_STATUS
4861
# Break up conftest.undefs because some shells have a limit on the size
4862
# of here documents, and old seds have small limits too (100 cmds).
4863
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4865
while grep . conftest.undefs >/dev/null
4867
# Write a limited-size here document to $tmp/undefs.sed.
4868
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4869
# Speed up: don't consider the non `#undef'
4870
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4871
# Work around the forget-to-reset-the-flag bug.
4872
echo 't clr' >>$CONFIG_STATUS
4873
echo ': clr' >>$CONFIG_STATUS
4874
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4876
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4880
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4881
rm -f conftest.undefs
4882
mv conftest.tail conftest.undefs
4884
rm -f conftest.undefs
4886
cat >>$CONFIG_STATUS <<\_ACEOF
4887
# Let's still pretend it is `configure' which instantiates (i.e., don't
4888
# use $as_me), people would be surprised to read:
4889
# /* config.h. Generated by config.status. */
4890
if test x"$ac_file" = x-; then
4891
echo "/* Generated by configure. */" >$tmp/config.h
4893
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4895
cat $tmp/in >>$tmp/config.h
4897
if test x"$ac_file" != x-; then
4898
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4899
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4900
echo "$as_me: $ac_file is unchanged" >&6;}
4902
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4903
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4904
X"$ac_file" : 'X\(//\)[^/]' \| \
4905
X"$ac_file" : 'X\(//\)$' \| \
4906
X"$ac_file" : 'X\(/\)' \| \
4907
. : '\(.\)' 2>/dev/null ||
4909
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4910
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4911
/^X\(\/\/\)$/{ s//\1/; q; }
4912
/^X\(\/\).*/{ s//\1/; q; }
4914
{ if $as_mkdir_p; then
4919
while test ! -d "$as_dir"; do
4920
as_dirs="$as_dir $as_dirs"
4921
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4922
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4923
X"$as_dir" : 'X\(//\)[^/]' \| \
4924
X"$as_dir" : 'X\(//\)$' \| \
4925
X"$as_dir" : 'X\(/\)' \| \
4926
. : '\(.\)' 2>/dev/null ||
4928
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4929
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4930
/^X\(\/\/\)$/{ s//\1/; q; }
4931
/^X\(\/\).*/{ s//\1/; q; }
4934
test ! -n "$as_dirs" || mkdir $as_dirs
4935
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4936
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4937
{ (exit 1); exit 1; }; }; }
4940
mv $tmp/config.h $ac_file
4949
cat >>$CONFIG_STATUS <<\_ACEOF
4951
{ (exit 0); exit 0; }
4953
chmod +x $CONFIG_STATUS
4954
ac_clean_files=$ac_clean_files_save
4957
# configure is writing to config.log, and then calls config.status.
4958
# config.status does its own redirection, appending to config.log.
4959
# Unfortunately, on DOS this fails, as config.log is still kept open
4960
# by configure, so config.status won't be able to write to it; its
4961
# output is simply discarded. So we exec the FD to /dev/null,
4962
# effectively closing config.log, so it can be properly (re)opened and
4963
# appended to by config.status. When coming back to configure, we
4964
# need to make the FD available again.
4965
if test "$no_create" != yes; then
4967
ac_config_status_args=
4968
test "$silent" = yes &&
4969
ac_config_status_args="$ac_config_status_args --quiet"
4971
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4973
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
4974
# would make configure fail if this is the last instruction.
4975
$ac_cs_success || { (exit 1); exit 1; }