2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for c-wrapper 0.5.2.
5
# Report bugs to <naoki@koguro.net>.
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
# so uname gets run too.
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256
ac_default_prefix=/usr/local
257
ac_config_libobj_dir=.
262
SHELL=${CONFIG_SHELL-/bin/sh}
264
# Maximum number of lines to put in a shell here document.
265
# This variable seems obsolete. It should probably be removed, and
266
# only ac_max_sed_lines should be used.
267
: ${ac_max_here_lines=38}
269
# Identity of this package.
270
PACKAGE_NAME='c-wrapper'
271
PACKAGE_TARNAME='c-wrapper'
272
PACKAGE_VERSION='0.5.2'
273
PACKAGE_STRING='c-wrapper 0.5.2'
274
PACKAGE_BUGREPORT='naoki@koguro.net'
276
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os GOSH GAUCHE_CONFIG GAUCHE_PACKAGE GAUCHE_INSTALL GAUCHE_CESCONV SOEXT OBJEXT EXEEXT DYLIBEXT GAUCHE_PKGINCDIR GAUCHE_PKGLIBDIR GAUCHE_PKGARCHDIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC MAKEINFO GZIP_PROGRAM SED LDCONFIG LD_LIBRARY_PATH_ENVS TESTLIB_CFLAGS TESTLIB_LDFLAGS OBJC_ENABLE_TRUE STUBGEN_FFI_MODULE LDCONFIG_CMD SYS_LIBRARY_PATHS LIBOBJS LTLIBOBJS'
279
# Initialize some variables set by options.
281
ac_init_version=false
282
# The variables have the same names as the options, with
283
# dashes changed to underlines.
291
program_transform_name=s,x,x,
299
# Installation directory options.
300
# These are left unexpanded so users can "make install exec_prefix=/foo"
301
# and all the variables that are supposed to be based on exec_prefix
302
# by default will actually change.
303
# Use braces instead of parens because sh, perl, etc. also accept them.
304
bindir='${exec_prefix}/bin'
305
sbindir='${exec_prefix}/sbin'
306
libexecdir='${exec_prefix}/libexec'
307
datadir='${prefix}/share'
308
sysconfdir='${prefix}/etc'
309
sharedstatedir='${prefix}/com'
310
localstatedir='${prefix}/var'
311
libdir='${exec_prefix}/lib'
312
includedir='${prefix}/include'
313
oldincludedir='/usr/include'
314
infodir='${prefix}/info'
315
mandir='${prefix}/man'
320
# If the previous option needs an argument, assign it.
321
if test -n "$ac_prev"; then
322
eval "$ac_prev=\$ac_option"
327
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329
# Accept the important Cygnus configure options, so we can diagnose typos.
333
-bindir | --bindir | --bindi | --bind | --bin | --bi)
335
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338
-build | --build | --buil | --bui | --bu)
339
ac_prev=build_alias ;;
340
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
341
build_alias=$ac_optarg ;;
343
-cache-file | --cache-file | --cache-fil | --cache-fi \
344
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345
ac_prev=cache_file ;;
346
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348
cache_file=$ac_optarg ;;
351
cache_file=config.cache ;;
353
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357
datadir=$ac_optarg ;;
359
-disable-* | --disable-*)
360
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361
# Reject names that are not valid shell variable names.
362
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
364
{ (exit 1); exit 1; }; }
365
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366
eval "enable_$ac_feature=no" ;;
368
-enable-* | --enable-*)
369
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370
# Reject names that are not valid shell variable names.
371
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
373
{ (exit 1); exit 1; }; }
374
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379
eval "enable_$ac_feature='$ac_optarg'" ;;
381
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383
| --exec | --exe | --ex)
384
ac_prev=exec_prefix ;;
385
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387
| --exec=* | --exe=* | --ex=*)
388
exec_prefix=$ac_optarg ;;
390
-gas | --gas | --ga | --g)
391
# Obsolete; use --with-gas.
394
-help | --help | --hel | --he | -h)
396
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397
ac_init_help=recursive ;;
398
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399
ac_init_help=short ;;
401
-host | --host | --hos | --ho)
402
ac_prev=host_alias ;;
403
-host=* | --host=* | --hos=* | --ho=*)
404
host_alias=$ac_optarg ;;
406
-includedir | --includedir | --includedi | --included | --include \
407
| --includ | --inclu | --incl | --inc)
408
ac_prev=includedir ;;
409
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410
| --includ=* | --inclu=* | --incl=* | --inc=*)
411
includedir=$ac_optarg ;;
413
-infodir | --infodir | --infodi | --infod | --info | --inf)
415
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416
infodir=$ac_optarg ;;
418
-libdir | --libdir | --libdi | --libd)
420
-libdir=* | --libdir=* | --libdi=* | --libd=*)
423
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424
| --libexe | --libex | --libe)
425
ac_prev=libexecdir ;;
426
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427
| --libexe=* | --libex=* | --libe=*)
428
libexecdir=$ac_optarg ;;
430
-localstatedir | --localstatedir | --localstatedi | --localstated \
431
| --localstate | --localstat | --localsta | --localst \
432
| --locals | --local | --loca | --loc | --lo)
433
ac_prev=localstatedir ;;
434
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
436
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437
localstatedir=$ac_optarg ;;
439
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445
# Obsolete; use --without-fp.
448
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
449
| --no-cr | --no-c | -n)
452
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
453
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458
| --oldin | --oldi | --old | --ol | --o)
459
ac_prev=oldincludedir ;;
460
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463
oldincludedir=$ac_optarg ;;
465
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
470
-program-prefix | --program-prefix | --program-prefi | --program-pref \
471
| --program-pre | --program-pr | --program-p)
472
ac_prev=program_prefix ;;
473
-program-prefix=* | --program-prefix=* | --program-prefi=* \
474
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475
program_prefix=$ac_optarg ;;
477
-program-suffix | --program-suffix | --program-suffi | --program-suff \
478
| --program-suf | --program-su | --program-s)
479
ac_prev=program_suffix ;;
480
-program-suffix=* | --program-suffix=* | --program-suffi=* \
481
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482
program_suffix=$ac_optarg ;;
484
-program-transform-name | --program-transform-name \
485
| --program-transform-nam | --program-transform-na \
486
| --program-transform-n | --program-transform- \
487
| --program-transform | --program-transfor \
488
| --program-transfo | --program-transf \
489
| --program-trans | --program-tran \
490
| --progr-tra | --program-tr | --program-t)
491
ac_prev=program_transform_name ;;
492
-program-transform-name=* | --program-transform-name=* \
493
| --program-transform-nam=* | --program-transform-na=* \
494
| --program-transform-n=* | --program-transform-=* \
495
| --program-transform=* | --program-transfor=* \
496
| --program-transfo=* | --program-transf=* \
497
| --program-trans=* | --program-tran=* \
498
| --progr-tra=* | --program-tr=* | --program-t=*)
499
program_transform_name=$ac_optarg ;;
501
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
502
| -silent | --silent | --silen | --sile | --sil)
505
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509
sbindir=$ac_optarg ;;
511
-sharedstatedir | --sharedstatedir | --sharedstatedi \
512
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513
| --sharedst | --shareds | --shared | --share | --shar \
515
ac_prev=sharedstatedir ;;
516
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520
sharedstatedir=$ac_optarg ;;
522
-site | --site | --sit)
524
-site=* | --site=* | --sit=*)
527
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
532
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533
| --syscon | --sysco | --sysc | --sys | --sy)
534
ac_prev=sysconfdir ;;
535
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537
sysconfdir=$ac_optarg ;;
539
-target | --target | --targe | --targ | --tar | --ta | --t)
540
ac_prev=target_alias ;;
541
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542
target_alias=$ac_optarg ;;
544
-v | -verbose | --verbose | --verbos | --verbo | --verb)
547
-version | --version | --versio | --versi | --vers | -V)
551
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552
# Reject names that are not valid shell variable names.
553
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
{ echo "$as_me: error: invalid package name: $ac_package" >&2
555
{ (exit 1); exit 1; }; }
556
ac_package=`echo $ac_package| sed 's/-/_/g'`
558
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561
eval "with_$ac_package='$ac_optarg'" ;;
563
-without-* | --without-*)
564
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565
# Reject names that are not valid shell variable names.
566
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567
{ echo "$as_me: error: invalid package name: $ac_package" >&2
568
{ (exit 1); exit 1; }; }
569
ac_package=`echo $ac_package | sed 's/-/_/g'`
570
eval "with_$ac_package=no" ;;
573
# Obsolete; use --with-x.
576
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577
| --x-incl | --x-inc | --x-in | --x-i)
578
ac_prev=x_includes ;;
579
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581
x_includes=$ac_optarg ;;
583
-x-libraries | --x-libraries | --x-librarie | --x-librari \
584
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585
ac_prev=x_libraries ;;
586
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588
x_libraries=$ac_optarg ;;
590
-*) { echo "$as_me: error: unrecognized option: $ac_option
591
Try \`$0 --help' for more information." >&2
592
{ (exit 1); exit 1; }; }
596
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597
# Reject names that are not valid shell variable names.
598
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600
{ (exit 1); exit 1; }; }
601
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602
eval "$ac_envvar='$ac_optarg'"
606
# FIXME: should be removed in autoconf 3.0.
607
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
616
if test -n "$ac_prev"; then
617
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618
{ echo "$as_me: error: missing argument to $ac_option" >&2
619
{ (exit 1); exit 1; }; }
622
# Be sure to have absolute paths.
623
for ac_var in exec_prefix prefix
625
eval ac_val=$`echo $ac_var`
627
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629
{ (exit 1); exit 1; }; };;
633
# Be sure to have absolute paths.
634
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635
localstatedir libdir includedir oldincludedir infodir mandir
637
eval ac_val=$`echo $ac_var`
639
[\\/$]* | ?:[\\/]* ) ;;
640
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641
{ (exit 1); exit 1; }; };;
645
# There might be people who depend on the old broken behavior: `$host'
646
# used to hold the argument of --host etc.
647
# FIXME: To remove some day.
652
# FIXME: To remove some day.
653
if test "x$host_alias" != x; then
654
if test "x$build_alias" = x; then
655
cross_compiling=maybe
656
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657
If a cross compiler is detected then cross compile mode will be used." >&2
658
elif test "x$build_alias" != "x$host_alias"; then
664
test -n "$host_alias" && ac_tool_prefix=$host_alias-
666
test "$silent" = yes && exec 6>/dev/null
669
# Find the source files, if location was not specified.
670
if test -z "$srcdir"; then
671
ac_srcdir_defaulted=yes
672
# Try the directory containing this script, then its parent.
673
ac_confdir=`(dirname "$0") 2>/dev/null ||
674
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675
X"$0" : 'X\(//\)[^/]' \| \
676
X"$0" : 'X\(//\)$' \| \
677
X"$0" : 'X\(/\)' \| \
678
. : '\(.\)' 2>/dev/null ||
680
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
682
/^X\(\/\/\)$/{ s//\1/; q; }
683
/^X\(\/\).*/{ s//\1/; q; }
686
if test ! -r $srcdir/$ac_unique_file; then
690
ac_srcdir_defaulted=no
692
if test ! -r $srcdir/$ac_unique_file; then
693
if test "$ac_srcdir_defaulted" = yes; then
694
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695
{ (exit 1); exit 1; }; }
697
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698
{ (exit 1); exit 1; }; }
701
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703
{ (exit 1); exit 1; }; }
704
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705
ac_env_build_alias_set=${build_alias+set}
706
ac_env_build_alias_value=$build_alias
707
ac_cv_env_build_alias_set=${build_alias+set}
708
ac_cv_env_build_alias_value=$build_alias
709
ac_env_host_alias_set=${host_alias+set}
710
ac_env_host_alias_value=$host_alias
711
ac_cv_env_host_alias_set=${host_alias+set}
712
ac_cv_env_host_alias_value=$host_alias
713
ac_env_target_alias_set=${target_alias+set}
714
ac_env_target_alias_value=$target_alias
715
ac_cv_env_target_alias_set=${target_alias+set}
716
ac_cv_env_target_alias_value=$target_alias
717
ac_env_CC_set=${CC+set}
719
ac_cv_env_CC_set=${CC+set}
720
ac_cv_env_CC_value=$CC
721
ac_env_CFLAGS_set=${CFLAGS+set}
722
ac_env_CFLAGS_value=$CFLAGS
723
ac_cv_env_CFLAGS_set=${CFLAGS+set}
724
ac_cv_env_CFLAGS_value=$CFLAGS
725
ac_env_LDFLAGS_set=${LDFLAGS+set}
726
ac_env_LDFLAGS_value=$LDFLAGS
727
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728
ac_cv_env_LDFLAGS_value=$LDFLAGS
729
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730
ac_env_CPPFLAGS_value=$CPPFLAGS
731
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735
# Report the --help message.
737
if test "$ac_init_help" = "long"; then
738
# Omit some internal or obsolete options to make the list less imposing.
739
# This message is too long to be a string in the A/UX 3.1 sh.
741
\`configure' configures c-wrapper 0.5.2 to adapt to many kinds of systems.
743
Usage: $0 [OPTION]... [VAR=VALUE]...
745
To assign environment variables (e.g., CC, CFLAGS...), specify them as
746
VAR=VALUE. See below for descriptions of some of the useful variables.
748
Defaults for the options are specified in brackets.
751
-h, --help display this help and exit
752
--help=short display options specific to this package
753
--help=recursive display the short help of all the included packages
754
-V, --version display version information and exit
755
-q, --quiet, --silent do not print \`checking...' messages
756
--cache-file=FILE cache test results in FILE [disabled]
757
-C, --config-cache alias for \`--cache-file=config.cache'
758
-n, --no-create do not create output files
759
--srcdir=DIR find the sources in DIR [configure dir or \`..']
764
Installation directories:
765
--prefix=PREFIX install architecture-independent files in PREFIX
767
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
770
By default, \`make install' will install all the files in
771
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
772
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
773
for instance \`--prefix=\$HOME'.
775
For better control, use the options below.
777
Fine tuning of the installation directories:
778
--bindir=DIR user executables [EPREFIX/bin]
779
--sbindir=DIR system admin executables [EPREFIX/sbin]
780
--libexecdir=DIR program executables [EPREFIX/libexec]
781
--datadir=DIR read-only architecture-independent data [PREFIX/share]
782
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
783
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
784
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
785
--libdir=DIR object code libraries [EPREFIX/lib]
786
--includedir=DIR C header files [PREFIX/include]
787
--oldincludedir=DIR C header files for non-gcc [/usr/include]
788
--infodir=DIR info documentation [PREFIX/info]
789
--mandir=DIR man documentation [PREFIX/man]
795
--build=BUILD configure for building on BUILD [guessed]
796
--host=HOST cross-compile to build programs to run on HOST [BUILD]
797
--target=TARGET configure for building compilers for TARGET [HOST]
801
if test -n "$ac_init_help"; then
802
case $ac_init_help in
803
short | recursive ) echo "Configuration of c-wrapper 0.5.2:";;
808
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
809
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
810
--enable-objc turn on Objective-C support
812
Some influential environment variables:
813
CC C compiler command
814
CFLAGS C compiler flags
815
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
816
nonstandard directory <lib dir>
817
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
818
headers in a nonstandard directory <include dir>
820
Use these variables to override the choices made by `configure' or to help
821
it to find libraries and programs with nonstandard names/locations.
823
Report bugs to <naoki@koguro.net>.
827
if test "$ac_init_help" = "recursive"; then
828
# If there are subdirs, report their specific --help.
830
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
831
test -d $ac_dir || continue
834
if test "$ac_dir" != .; then
835
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
836
# A "../" for each directory in $ac_dir_suffix.
837
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
839
ac_dir_suffix= ac_top_builddir=
843
.) # No --srcdir option. We are building in place.
845
if test -z "$ac_top_builddir"; then
848
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
850
[\\/]* | ?:[\\/]* ) # Absolute path.
851
ac_srcdir=$srcdir$ac_dir_suffix;
852
ac_top_srcdir=$srcdir ;;
854
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
855
ac_top_srcdir=$ac_top_builddir$srcdir ;;
858
# Do not use `cd foo && pwd` to compute absolute paths, because
859
# the directories may not exist.
861
.) ac_abs_builddir="$ac_dir";;
864
.) ac_abs_builddir=`pwd`;;
865
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
866
*) ac_abs_builddir=`pwd`/"$ac_dir";;
869
case $ac_abs_builddir in
870
.) ac_abs_top_builddir=${ac_top_builddir}.;;
872
case ${ac_top_builddir}. in
873
.) ac_abs_top_builddir=$ac_abs_builddir;;
874
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
875
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
878
case $ac_abs_builddir in
879
.) ac_abs_srcdir=$ac_srcdir;;
882
.) ac_abs_srcdir=$ac_abs_builddir;;
883
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
884
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
887
case $ac_abs_builddir in
888
.) ac_abs_top_srcdir=$ac_top_srcdir;;
890
case $ac_top_srcdir in
891
.) ac_abs_top_srcdir=$ac_abs_builddir;;
892
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
893
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
898
# Check for guested configure; otherwise get Cygnus style configure.
899
if test -f $ac_srcdir/configure.gnu; then
901
$SHELL $ac_srcdir/configure.gnu --help=recursive
902
elif test -f $ac_srcdir/configure; then
904
$SHELL $ac_srcdir/configure --help=recursive
905
elif test -f $ac_srcdir/configure.ac ||
906
test -f $ac_srcdir/configure.in; then
910
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
916
test -n "$ac_init_help" && exit 0
917
if $ac_init_version; then
919
c-wrapper configure 0.5.2
920
generated by GNU Autoconf 2.59
922
Copyright (C) 2003 Free Software Foundation, Inc.
923
This configure script is free software; the Free Software Foundation
924
gives unlimited permission to copy, distribute and modify it.
930
This file contains any messages produced by compilers while
931
running configure, to aid debugging if configure makes a mistake.
933
It was created by c-wrapper $as_me 0.5.2, which was
934
generated by GNU Autoconf 2.59. Invocation command line was
945
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
946
uname -m = `(uname -m) 2>/dev/null || echo unknown`
947
uname -r = `(uname -r) 2>/dev/null || echo unknown`
948
uname -s = `(uname -s) 2>/dev/null || echo unknown`
949
uname -v = `(uname -v) 2>/dev/null || echo unknown`
951
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
952
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
954
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
955
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
956
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
957
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
958
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
959
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
960
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968
test -z "$as_dir" && as_dir=.
984
# Keep a trace of the command line.
985
# Strip out --no-create and --no-recursion so they do not pile up.
986
# Strip out --silent because we don't want to record it for future runs.
987
# Also quote any args containing shell meta-characters.
988
# Make two passes to allow for proper duplicate-argument suppression.
993
ac_must_keep_next=false
999
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1000
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001
| -silent | --silent | --silen | --sile | --sil)
1003
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1004
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1007
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1009
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1010
if test $ac_must_keep_next = true; then
1011
ac_must_keep_next=false # Got value, back to normal.
1014
*=* | --config-cache | -C | -disable-* | --disable-* \
1015
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1016
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1017
| -with-* | --with-* | -without-* | --without-* | --x)
1018
case "$ac_configure_args0 " in
1019
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1022
-* ) ac_must_keep_next=true ;;
1025
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1026
# Get rid of the leading space.
1032
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1033
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1035
# When interrupted or exit'd, cleanup temporary files, and complete
1036
# config.log. We remove comments because anyway the quotes in there
1037
# would cause problems or look ugly.
1038
# WARNING: Be sure not to use single quotes in there, as some shells,
1039
# such as our DU 5.0 friend, will then `close' the trap.
1040
trap 'exit_status=$?
1041
# Save into config.log some information that might help in debugging.
1046
## ---------------- ##
1047
## Cache variables. ##
1048
## ---------------- ##
1051
# The following way of writing the cache mishandles newlines in values,
1054
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1057
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1058
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1062
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1069
## ----------------- ##
1070
## Output variables. ##
1071
## ----------------- ##
1074
for ac_var in $ac_subst_vars
1076
eval ac_val=$`echo $ac_var`
1077
echo "$ac_var='"'"'$ac_val'"'"'"
1081
if test -n "$ac_subst_files"; then
1088
for ac_var in $ac_subst_files
1090
eval ac_val=$`echo $ac_var`
1091
echo "$ac_var='"'"'$ac_val'"'"'"
1096
if test -s confdefs.h; then
1103
sed "/^$/d" confdefs.h | sort
1106
test "$ac_signal" != 0 &&
1107
echo "$as_me: caught signal $ac_signal"
1108
echo "$as_me: exit $exit_status"
1110
rm -f core *.core &&
1111
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1114
for ac_signal in 1 2 13 15; do
1115
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1119
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1120
rm -rf conftest* confdefs.h
1121
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1124
# Predefined preprocessor variables.
1126
cat >>confdefs.h <<_ACEOF
1127
#define PACKAGE_NAME "$PACKAGE_NAME"
1131
cat >>confdefs.h <<_ACEOF
1132
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1136
cat >>confdefs.h <<_ACEOF
1137
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1141
cat >>confdefs.h <<_ACEOF
1142
#define PACKAGE_STRING "$PACKAGE_STRING"
1146
cat >>confdefs.h <<_ACEOF
1147
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1151
# Let the site file select an alternate cache file if it wants to.
1152
# Prefer explicitly selected file to automatically selected ones.
1153
if test -z "$CONFIG_SITE"; then
1154
if test "x$prefix" != xNONE; then
1155
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1157
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1160
for ac_site_file in $CONFIG_SITE; do
1161
if test -r "$ac_site_file"; then
1162
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1163
echo "$as_me: loading site script $ac_site_file" >&6;}
1164
sed 's/^/| /' "$ac_site_file" >&5
1169
if test -r "$cache_file"; then
1170
# Some versions of bash will fail to source /dev/null (special
1171
# files actually), so we avoid doing that.
1172
if test -f "$cache_file"; then
1173
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1174
echo "$as_me: loading cache $cache_file" >&6;}
1176
[\\/]* | ?:[\\/]* ) . $cache_file;;
1177
*) . ./$cache_file;;
1181
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1182
echo "$as_me: creating cache $cache_file" >&6;}
1186
# Check that the precious variables saved in the cache have kept the same
1188
ac_cache_corrupted=false
1189
for ac_var in `(set) 2>&1 |
1190
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1191
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1192
eval ac_new_set=\$ac_env_${ac_var}_set
1193
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1194
eval ac_new_val="\$ac_env_${ac_var}_value"
1195
case $ac_old_set,$ac_new_set in
1197
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1198
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1199
ac_cache_corrupted=: ;;
1201
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1202
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1203
ac_cache_corrupted=: ;;
1206
if test "x$ac_old_val" != "x$ac_new_val"; then
1207
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1208
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1209
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1210
echo "$as_me: former value: $ac_old_val" >&2;}
1211
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1212
echo "$as_me: current value: $ac_new_val" >&2;}
1213
ac_cache_corrupted=:
1216
# Pass precious variables to config.status.
1217
if test "$ac_new_set" = set; then
1219
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1221
*) ac_arg=$ac_var=$ac_new_val ;;
1223
case " $ac_configure_args " in
1224
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1225
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1229
if $ac_cache_corrupted; then
1230
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1231
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1232
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1233
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1234
{ (exit 1); exit 1; }; }
1238
ac_cpp='$CPP $CPPFLAGS'
1239
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1240
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1241
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1270
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1271
if test -f $ac_dir/install-sh; then
1273
ac_install_sh="$ac_aux_dir/install-sh -c"
1275
elif test -f $ac_dir/install.sh; then
1277
ac_install_sh="$ac_aux_dir/install.sh -c"
1279
elif test -f $ac_dir/shtool; then
1281
ac_install_sh="$ac_aux_dir/shtool install -c"
1285
if test -z "$ac_aux_dir"; then
1286
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1287
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1288
{ (exit 1); exit 1; }; }
1290
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1291
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1292
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1294
# Make sure we can run config.sub.
1295
$ac_config_sub sun4 >/dev/null 2>&1 ||
1296
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1297
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1298
{ (exit 1); exit 1; }; }
1300
echo "$as_me:$LINENO: checking build system type" >&5
1301
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1302
if test "${ac_cv_build+set}" = set; then
1303
echo $ECHO_N "(cached) $ECHO_C" >&6
1305
ac_cv_build_alias=$build_alias
1306
test -z "$ac_cv_build_alias" &&
1307
ac_cv_build_alias=`$ac_config_guess`
1308
test -z "$ac_cv_build_alias" &&
1309
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1310
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1311
{ (exit 1); exit 1; }; }
1312
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1313
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1314
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1315
{ (exit 1); exit 1; }; }
1318
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1319
echo "${ECHO_T}$ac_cv_build" >&6
1321
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1322
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1323
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1326
echo "$as_me:$LINENO: checking host system type" >&5
1327
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1328
if test "${ac_cv_host+set}" = set; then
1329
echo $ECHO_N "(cached) $ECHO_C" >&6
1331
ac_cv_host_alias=$host_alias
1332
test -z "$ac_cv_host_alias" &&
1333
ac_cv_host_alias=$ac_cv_build_alias
1334
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1335
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1336
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1337
{ (exit 1); exit 1; }; }
1340
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1341
echo "${ECHO_T}$ac_cv_host" >&6
1343
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348
echo "$as_me:$LINENO: checking target system type" >&5
1349
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1350
if test "${ac_cv_target+set}" = set; then
1351
echo $ECHO_N "(cached) $ECHO_C" >&6
1353
ac_cv_target_alias=$target_alias
1354
test "x$ac_cv_target_alias" = "x" &&
1355
ac_cv_target_alias=$ac_cv_host_alias
1356
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1357
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1358
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1359
{ (exit 1); exit 1; }; }
1362
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1363
echo "${ECHO_T}$ac_cv_target" >&6
1364
target=$ac_cv_target
1365
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370
# The aliases save the names the user supplied, while $host etc.
1371
# will get canonicalized.
1372
test -n "$target_alias" &&
1373
test "$program_prefix$program_suffix$program_transform_name" = \
1375
program_prefix=${target_alias}-
1377
# Extract the first word of "gosh", so it can be a program name with args.
1378
set dummy gosh; ac_word=$2
1379
echo "$as_me:$LINENO: checking for $ac_word" >&5
1380
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381
if test "${ac_cv_path_GOSH+set}" = set; then
1382
echo $ECHO_N "(cached) $ECHO_C" >&6
1386
ac_cv_path_GOSH="$GOSH" # Let the user override the test with a path.
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_path_GOSH="$as_dir/$ac_word$ac_exec_ext"
1397
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1406
GOSH=$ac_cv_path_GOSH
1408
if test -n "$GOSH"; then
1409
echo "$as_me:$LINENO: result: $GOSH" >&5
1410
echo "${ECHO_T}$GOSH" >&6
1412
echo "$as_me:$LINENO: result: no" >&5
1413
echo "${ECHO_T}no" >&6
1416
# Extract the first word of "gauche-config", so it can be a program name with args.
1417
set dummy gauche-config; ac_word=$2
1418
echo "$as_me:$LINENO: checking for $ac_word" >&5
1419
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420
if test "${ac_cv_path_GAUCHE_CONFIG+set}" = set; then
1421
echo $ECHO_N "(cached) $ECHO_C" >&6
1423
case $GAUCHE_CONFIG in
1425
ac_cv_path_GAUCHE_CONFIG="$GAUCHE_CONFIG" # Let the user override the test with a path.
1428
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432
test -z "$as_dir" && as_dir=.
1433
for ac_exec_ext in '' $ac_executable_extensions; do
1434
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435
ac_cv_path_GAUCHE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1436
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445
GAUCHE_CONFIG=$ac_cv_path_GAUCHE_CONFIG
1447
if test -n "$GAUCHE_CONFIG"; then
1448
echo "$as_me:$LINENO: result: $GAUCHE_CONFIG" >&5
1449
echo "${ECHO_T}$GAUCHE_CONFIG" >&6
1451
echo "$as_me:$LINENO: result: no" >&5
1452
echo "${ECHO_T}no" >&6
1455
# Extract the first word of "gauche-package", so it can be a program name with args.
1456
set dummy gauche-package; ac_word=$2
1457
echo "$as_me:$LINENO: checking for $ac_word" >&5
1458
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459
if test "${ac_cv_path_GAUCHE_PACKAGE+set}" = set; then
1460
echo $ECHO_N "(cached) $ECHO_C" >&6
1462
case $GAUCHE_PACKAGE in
1464
ac_cv_path_GAUCHE_PACKAGE="$GAUCHE_PACKAGE" # Let the user override the test with a path.
1467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471
test -z "$as_dir" && as_dir=.
1472
for ac_exec_ext in '' $ac_executable_extensions; do
1473
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474
ac_cv_path_GAUCHE_PACKAGE="$as_dir/$ac_word$ac_exec_ext"
1475
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1484
GAUCHE_PACKAGE=$ac_cv_path_GAUCHE_PACKAGE
1486
if test -n "$GAUCHE_PACKAGE"; then
1487
echo "$as_me:$LINENO: result: $GAUCHE_PACKAGE" >&5
1488
echo "${ECHO_T}$GAUCHE_PACKAGE" >&6
1490
echo "$as_me:$LINENO: result: no" >&5
1491
echo "${ECHO_T}no" >&6
1494
# Extract the first word of "gauche-install", so it can be a program name with args.
1495
set dummy gauche-install; ac_word=$2
1496
echo "$as_me:$LINENO: checking for $ac_word" >&5
1497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498
if test "${ac_cv_path_GAUCHE_INSTALL+set}" = set; then
1499
echo $ECHO_N "(cached) $ECHO_C" >&6
1501
case $GAUCHE_INSTALL in
1503
ac_cv_path_GAUCHE_INSTALL="$GAUCHE_INSTALL" # Let the user override the test with a path.
1506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510
test -z "$as_dir" && as_dir=.
1511
for ac_exec_ext in '' $ac_executable_extensions; do
1512
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513
ac_cv_path_GAUCHE_INSTALL="$as_dir/$ac_word$ac_exec_ext"
1514
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523
GAUCHE_INSTALL=$ac_cv_path_GAUCHE_INSTALL
1525
if test -n "$GAUCHE_INSTALL"; then
1526
echo "$as_me:$LINENO: result: $GAUCHE_INSTALL" >&5
1527
echo "${ECHO_T}$GAUCHE_INSTALL" >&6
1529
echo "$as_me:$LINENO: result: no" >&5
1530
echo "${ECHO_T}no" >&6
1533
# Extract the first word of "gauche-cesconv", so it can be a program name with args.
1534
set dummy gauche-cesconv; ac_word=$2
1535
echo "$as_me:$LINENO: checking for $ac_word" >&5
1536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537
if test "${ac_cv_path_GAUCHE_CESCONV+set}" = set; then
1538
echo $ECHO_N "(cached) $ECHO_C" >&6
1540
case $GAUCHE_CESCONV in
1542
ac_cv_path_GAUCHE_CESCONV="$GAUCHE_CESCONV" # Let the user override the test with a path.
1545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549
test -z "$as_dir" && as_dir=.
1550
for ac_exec_ext in '' $ac_executable_extensions; do
1551
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552
ac_cv_path_GAUCHE_CESCONV="$as_dir/$ac_word$ac_exec_ext"
1553
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562
GAUCHE_CESCONV=$ac_cv_path_GAUCHE_CESCONV
1564
if test -n "$GAUCHE_CESCONV"; then
1565
echo "$as_me:$LINENO: result: $GAUCHE_CESCONV" >&5
1566
echo "${ECHO_T}$GAUCHE_CESCONV" >&6
1568
echo "$as_me:$LINENO: result: no" >&5
1569
echo "${ECHO_T}no" >&6
1573
SOEXT=`$GAUCHE_CONFIG --so-suffix`
1574
OBJEXT=`$GAUCHE_CONFIG --object-suffix`
1575
EXEEXT=`$GAUCHE_CONFIG --executable-suffix`
1576
DYLIBEXT=`$GAUCHE_CONFIG --dylib-suffix`
1582
ac_default_prefix=`$GAUCHE_CONFIG --prefix`
1584
GAUCHE_PKGINCDIR=`$GAUCHE_CONFIG --pkgincdir`
1585
GAUCHE_PKGLIBDIR=`$GAUCHE_CONFIG --pkglibdir`
1586
GAUCHE_PKGARCHDIR=`$GAUCHE_CONFIG --pkgarchdir`
1593
ac_cpp='$CPP $CPPFLAGS'
1594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1597
if test -n "$ac_tool_prefix"; then
1598
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1599
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1600
echo "$as_me:$LINENO: checking for $ac_word" >&5
1601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602
if test "${ac_cv_prog_CC+set}" = set; then
1603
echo $ECHO_N "(cached) $ECHO_C" >&6
1605
if test -n "$CC"; then
1606
ac_cv_prog_CC="$CC" # Let the user override the test.
1608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612
test -z "$as_dir" && as_dir=.
1613
for ac_exec_ext in '' $ac_executable_extensions; do
1614
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1616
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625
if test -n "$CC"; then
1626
echo "$as_me:$LINENO: result: $CC" >&5
1627
echo "${ECHO_T}$CC" >&6
1629
echo "$as_me:$LINENO: result: no" >&5
1630
echo "${ECHO_T}no" >&6
1634
if test -z "$ac_cv_prog_CC"; then
1636
# Extract the first word of "gcc", so it can be a program name with args.
1637
set dummy gcc; ac_word=$2
1638
echo "$as_me:$LINENO: checking for $ac_word" >&5
1639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641
echo $ECHO_N "(cached) $ECHO_C" >&6
1643
if test -n "$ac_ct_CC"; then
1644
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650
test -z "$as_dir" && as_dir=.
1651
for ac_exec_ext in '' $ac_executable_extensions; do
1652
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653
ac_cv_prog_ac_ct_CC="gcc"
1654
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663
if test -n "$ac_ct_CC"; then
1664
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665
echo "${ECHO_T}$ac_ct_CC" >&6
1667
echo "$as_me:$LINENO: result: no" >&5
1668
echo "${ECHO_T}no" >&6
1676
if test -z "$CC"; then
1677
if test -n "$ac_tool_prefix"; then
1678
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1679
set dummy ${ac_tool_prefix}cc; ac_word=$2
1680
echo "$as_me:$LINENO: checking for $ac_word" >&5
1681
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682
if test "${ac_cv_prog_CC+set}" = set; then
1683
echo $ECHO_N "(cached) $ECHO_C" >&6
1685
if test -n "$CC"; then
1686
ac_cv_prog_CC="$CC" # Let the user override the test.
1688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692
test -z "$as_dir" && as_dir=.
1693
for ac_exec_ext in '' $ac_executable_extensions; do
1694
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695
ac_cv_prog_CC="${ac_tool_prefix}cc"
1696
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705
if test -n "$CC"; then
1706
echo "$as_me:$LINENO: result: $CC" >&5
1707
echo "${ECHO_T}$CC" >&6
1709
echo "$as_me:$LINENO: result: no" >&5
1710
echo "${ECHO_T}no" >&6
1714
if test -z "$ac_cv_prog_CC"; then
1716
# Extract the first word of "cc", so it can be a program name with args.
1717
set dummy cc; ac_word=$2
1718
echo "$as_me:$LINENO: checking for $ac_word" >&5
1719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721
echo $ECHO_N "(cached) $ECHO_C" >&6
1723
if test -n "$ac_ct_CC"; then
1724
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730
test -z "$as_dir" && as_dir=.
1731
for ac_exec_ext in '' $ac_executable_extensions; do
1732
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733
ac_cv_prog_ac_ct_CC="cc"
1734
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1743
if test -n "$ac_ct_CC"; then
1744
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745
echo "${ECHO_T}$ac_ct_CC" >&6
1747
echo "$as_me:$LINENO: result: no" >&5
1748
echo "${ECHO_T}no" >&6
1757
if test -z "$CC"; then
1758
# Extract the first word of "cc", so it can be a program name with args.
1759
set dummy cc; ac_word=$2
1760
echo "$as_me:$LINENO: checking for $ac_word" >&5
1761
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762
if test "${ac_cv_prog_CC+set}" = set; then
1763
echo $ECHO_N "(cached) $ECHO_C" >&6
1765
if test -n "$CC"; then
1766
ac_cv_prog_CC="$CC" # Let the user override the test.
1769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773
test -z "$as_dir" && as_dir=.
1774
for ac_exec_ext in '' $ac_executable_extensions; do
1775
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1777
ac_prog_rejected=yes
1781
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787
if test $ac_prog_rejected = yes; then
1788
# We found a bogon in the path, so make sure we never use it.
1789
set dummy $ac_cv_prog_CC
1791
if test $# != 0; then
1792
# We chose a different compiler from the bogus one.
1793
# However, it has the same basename, so the bogon will be chosen
1794
# first if we set CC to just the basename; use the full file name.
1796
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1802
if test -n "$CC"; then
1803
echo "$as_me:$LINENO: result: $CC" >&5
1804
echo "${ECHO_T}$CC" >&6
1806
echo "$as_me:$LINENO: result: no" >&5
1807
echo "${ECHO_T}no" >&6
1811
if test -z "$CC"; then
1812
if test -n "$ac_tool_prefix"; then
1815
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1816
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1817
echo "$as_me:$LINENO: checking for $ac_word" >&5
1818
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819
if test "${ac_cv_prog_CC+set}" = set; then
1820
echo $ECHO_N "(cached) $ECHO_C" >&6
1822
if test -n "$CC"; then
1823
ac_cv_prog_CC="$CC" # Let the user override the test.
1825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829
test -z "$as_dir" && as_dir=.
1830
for ac_exec_ext in '' $ac_executable_extensions; do
1831
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1833
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842
if test -n "$CC"; then
1843
echo "$as_me:$LINENO: result: $CC" >&5
1844
echo "${ECHO_T}$CC" >&6
1846
echo "$as_me:$LINENO: result: no" >&5
1847
echo "${ECHO_T}no" >&6
1850
test -n "$CC" && break
1853
if test -z "$CC"; then
1857
# Extract the first word of "$ac_prog", so it can be a program name with args.
1858
set dummy $ac_prog; ac_word=$2
1859
echo "$as_me:$LINENO: checking for $ac_word" >&5
1860
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1862
echo $ECHO_N "(cached) $ECHO_C" >&6
1864
if test -n "$ac_ct_CC"; then
1865
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871
test -z "$as_dir" && as_dir=.
1872
for ac_exec_ext in '' $ac_executable_extensions; do
1873
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874
ac_cv_prog_ac_ct_CC="$ac_prog"
1875
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1884
if test -n "$ac_ct_CC"; then
1885
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1886
echo "${ECHO_T}$ac_ct_CC" >&6
1888
echo "$as_me:$LINENO: result: no" >&5
1889
echo "${ECHO_T}no" >&6
1892
test -n "$ac_ct_CC" && break
1901
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1902
See \`config.log' for more details." >&5
1903
echo "$as_me: error: no acceptable C compiler found in \$PATH
1904
See \`config.log' for more details." >&2;}
1905
{ (exit 1); exit 1; }; }
1907
# Provide some information about the compiler.
1908
echo "$as_me:$LINENO:" \
1909
"checking for C compiler version" >&5
1910
ac_compiler=`set X $ac_compile; echo $2`
1911
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1912
(eval $ac_compiler --version </dev/null >&5) 2>&5
1914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915
(exit $ac_status); }
1916
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1917
(eval $ac_compiler -v </dev/null >&5) 2>&5
1919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920
(exit $ac_status); }
1921
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1922
(eval $ac_compiler -V </dev/null >&5) 2>&5
1924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925
(exit $ac_status); }
1927
cat >conftest.$ac_ext <<_ACEOF
1930
cat confdefs.h >>conftest.$ac_ext
1931
cat >>conftest.$ac_ext <<_ACEOF
1932
/* end confdefs.h. */
1942
ac_clean_files_save=$ac_clean_files
1943
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1944
# Try to create an executable without -o first, disregard a.out.
1945
# It will help us diagnose broken compilers, and finding out an intuition
1947
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1948
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1949
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1950
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1951
(eval $ac_link_default) 2>&5
1953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954
(exit $ac_status); }; then
1955
# Find the output, starting from the most likely. This scheme is
1956
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1959
# Be careful to initialize this variable, since it used to be cached.
1960
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1962
# b.out is created by i960 compilers.
1963
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1965
test -f "$ac_file" || continue
1967
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1970
# This is the source file.
1973
# We found the default executable, but exeext='' is most
1977
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1978
# FIXME: I believe we export ac_cv_exeext for Libtool,
1979
# but it would be cool to find out if it's true. Does anybody
1980
# maintain Libtool? --akim.
1988
echo "$as_me: failed program was:" >&5
1989
sed 's/^/| /' conftest.$ac_ext >&5
1991
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1992
See \`config.log' for more details." >&5
1993
echo "$as_me: error: C compiler cannot create executables
1994
See \`config.log' for more details." >&2;}
1995
{ (exit 77); exit 77; }; }
1998
ac_exeext=$ac_cv_exeext
1999
echo "$as_me:$LINENO: result: $ac_file" >&5
2000
echo "${ECHO_T}$ac_file" >&6
2002
# Check the compiler produces executables we can run. If not, either
2003
# the compiler is broken, or we cross compile.
2004
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2005
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2006
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2007
# If not cross compiling, check that we can run a simple program.
2008
if test "$cross_compiling" != yes; then
2009
if { ac_try='./$ac_file'
2010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014
(exit $ac_status); }; }; then
2017
if test "$cross_compiling" = maybe; then
2020
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2021
If you meant to cross compile, use \`--host'.
2022
See \`config.log' for more details." >&5
2023
echo "$as_me: error: cannot run C compiled programs.
2024
If you meant to cross compile, use \`--host'.
2025
See \`config.log' for more details." >&2;}
2026
{ (exit 1); exit 1; }; }
2030
echo "$as_me:$LINENO: result: yes" >&5
2031
echo "${ECHO_T}yes" >&6
2033
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2034
ac_clean_files=$ac_clean_files_save
2035
# Check the compiler produces executables we can run. If not, either
2036
# the compiler is broken, or we cross compile.
2037
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2038
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2039
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2040
echo "${ECHO_T}$cross_compiling" >&6
2042
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2043
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2044
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2045
(eval $ac_link) 2>&5
2047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048
(exit $ac_status); }; then
2049
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2050
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2051
# work properly (i.e., refer to `conftest.exe'), while it won't with
2053
for ac_file in conftest.exe conftest conftest.*; do
2054
test -f "$ac_file" || continue
2056
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2057
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2064
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2065
See \`config.log' for more details." >&5
2066
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2067
See \`config.log' for more details." >&2;}
2068
{ (exit 1); exit 1; }; }
2071
rm -f conftest$ac_cv_exeext
2072
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2073
echo "${ECHO_T}$ac_cv_exeext" >&6
2075
rm -f conftest.$ac_ext
2076
EXEEXT=$ac_cv_exeext
2078
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2079
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2080
if test "${ac_cv_objext+set}" = set; then
2081
echo $ECHO_N "(cached) $ECHO_C" >&6
2083
cat >conftest.$ac_ext <<_ACEOF
2086
cat confdefs.h >>conftest.$ac_ext
2087
cat >>conftest.$ac_ext <<_ACEOF
2088
/* end confdefs.h. */
2098
rm -f conftest.o conftest.obj
2099
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100
(eval $ac_compile) 2>&5
2102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103
(exit $ac_status); }; then
2104
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2106
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2107
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2112
echo "$as_me: failed program was:" >&5
2113
sed 's/^/| /' conftest.$ac_ext >&5
2115
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2116
See \`config.log' for more details." >&5
2117
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2118
See \`config.log' for more details." >&2;}
2119
{ (exit 1); exit 1; }; }
2122
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2124
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2125
echo "${ECHO_T}$ac_cv_objext" >&6
2126
OBJEXT=$ac_cv_objext
2128
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2129
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2130
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2131
echo $ECHO_N "(cached) $ECHO_C" >&6
2133
cat >conftest.$ac_ext <<_ACEOF
2136
cat confdefs.h >>conftest.$ac_ext
2137
cat >>conftest.$ac_ext <<_ACEOF
2138
/* end confdefs.h. */
2151
rm -f conftest.$ac_objext
2152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153
(eval $ac_compile) 2>conftest.er1
2155
grep -v '^ *+' conftest.er1 >conftest.err
2157
cat conftest.err >&5
2158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159
(exit $ac_status); } &&
2160
{ ac_try='test -z "$ac_c_werror_flag"
2161
|| test ! -s conftest.err'
2162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166
(exit $ac_status); }; } &&
2167
{ ac_try='test -s conftest.$ac_objext'
2168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172
(exit $ac_status); }; }; then
2175
echo "$as_me: failed program was:" >&5
2176
sed 's/^/| /' conftest.$ac_ext >&5
2180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2184
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2185
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2186
GCC=`test $ac_compiler_gnu = yes && echo yes`
2187
ac_test_CFLAGS=${CFLAGS+set}
2188
ac_save_CFLAGS=$CFLAGS
2190
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2191
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2192
if test "${ac_cv_prog_cc_g+set}" = set; then
2193
echo $ECHO_N "(cached) $ECHO_C" >&6
2195
cat >conftest.$ac_ext <<_ACEOF
2198
cat confdefs.h >>conftest.$ac_ext
2199
cat >>conftest.$ac_ext <<_ACEOF
2200
/* end confdefs.h. */
2210
rm -f conftest.$ac_objext
2211
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212
(eval $ac_compile) 2>conftest.er1
2214
grep -v '^ *+' conftest.er1 >conftest.err
2216
cat conftest.err >&5
2217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218
(exit $ac_status); } &&
2219
{ ac_try='test -z "$ac_c_werror_flag"
2220
|| test ! -s conftest.err'
2221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225
(exit $ac_status); }; } &&
2226
{ ac_try='test -s conftest.$ac_objext'
2227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231
(exit $ac_status); }; }; then
2234
echo "$as_me: failed program was:" >&5
2235
sed 's/^/| /' conftest.$ac_ext >&5
2239
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2242
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2243
if test "$ac_test_CFLAGS" = set; then
2244
CFLAGS=$ac_save_CFLAGS
2245
elif test $ac_cv_prog_cc_g = yes; then
2246
if test "$GCC" = yes; then
2252
if test "$GCC" = yes; then
2258
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2259
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2260
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2261
echo $ECHO_N "(cached) $ECHO_C" >&6
2263
ac_cv_prog_cc_stdc=no
2265
cat >conftest.$ac_ext <<_ACEOF
2268
cat confdefs.h >>conftest.$ac_ext
2269
cat >>conftest.$ac_ext <<_ACEOF
2270
/* end confdefs.h. */
2273
#include <sys/types.h>
2274
#include <sys/stat.h>
2275
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2276
struct buf { int x; };
2277
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2278
static char *e (p, i)
2284
static char *f (char * (*g) (char **, int), char **p, ...)
2289
s = g (p, va_arg (v,int));
2294
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2295
function prototypes and stuff, but not '\xHH' hex character constants.
2296
These don't provoke an error unfortunately, instead are silently treated
2297
as 'x'. The following induces an error, until -std1 is added to get
2298
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2299
array size at least. It's necessary to write '\x00'==0 to get something
2300
that's true only with -std1. */
2301
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2303
int test (int i, double x);
2304
struct s1 {int (*f) (int a);};
2305
struct s2 {int (*f) (double a);};
2306
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2312
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2317
# Don't try gcc -ansi; that turns off useful extensions and
2318
# breaks some systems' header files.
2319
# AIX -qlanglvl=ansi
2320
# Ultrix and OSF/1 -std1
2321
# HP-UX 10.20 and later -Ae
2322
# HP-UX older versions -Aa -D_HPUX_SOURCE
2323
# SVR4 -Xc -D__EXTENSIONS__
2324
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2326
CC="$ac_save_CC $ac_arg"
2327
rm -f conftest.$ac_objext
2328
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329
(eval $ac_compile) 2>conftest.er1
2331
grep -v '^ *+' conftest.er1 >conftest.err
2333
cat conftest.err >&5
2334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335
(exit $ac_status); } &&
2336
{ ac_try='test -z "$ac_c_werror_flag"
2337
|| test ! -s conftest.err'
2338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342
(exit $ac_status); }; } &&
2343
{ ac_try='test -s conftest.$ac_objext'
2344
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348
(exit $ac_status); }; }; then
2349
ac_cv_prog_cc_stdc=$ac_arg
2352
echo "$as_me: failed program was:" >&5
2353
sed 's/^/| /' conftest.$ac_ext >&5
2356
rm -f conftest.err conftest.$ac_objext
2358
rm -f conftest.$ac_ext conftest.$ac_objext
2363
case "x$ac_cv_prog_cc_stdc" in
2365
echo "$as_me:$LINENO: result: none needed" >&5
2366
echo "${ECHO_T}none needed" >&6 ;;
2368
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2369
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2370
CC="$CC $ac_cv_prog_cc_stdc" ;;
2373
# Some people use a C++ compiler to compile C. Since we use `exit',
2374
# in C++ we need to declare it. In case someone uses the same compiler
2375
# for both compiling C and C++ we need to have the C++ compiler decide
2376
# the declaration of exit, since it's the most demanding environment.
2377
cat >conftest.$ac_ext <<_ACEOF
2382
rm -f conftest.$ac_objext
2383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384
(eval $ac_compile) 2>conftest.er1
2386
grep -v '^ *+' conftest.er1 >conftest.err
2388
cat conftest.err >&5
2389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390
(exit $ac_status); } &&
2391
{ ac_try='test -z "$ac_c_werror_flag"
2392
|| test ! -s conftest.err'
2393
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397
(exit $ac_status); }; } &&
2398
{ ac_try='test -s conftest.$ac_objext'
2399
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403
(exit $ac_status); }; }; then
2404
for ac_declaration in \
2406
'extern "C" void std::exit (int) throw (); using std::exit;' \
2407
'extern "C" void std::exit (int); using std::exit;' \
2408
'extern "C" void exit (int) throw ();' \
2409
'extern "C" void exit (int);' \
2412
cat >conftest.$ac_ext <<_ACEOF
2415
cat confdefs.h >>conftest.$ac_ext
2416
cat >>conftest.$ac_ext <<_ACEOF
2417
/* end confdefs.h. */
2428
rm -f conftest.$ac_objext
2429
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430
(eval $ac_compile) 2>conftest.er1
2432
grep -v '^ *+' conftest.er1 >conftest.err
2434
cat conftest.err >&5
2435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436
(exit $ac_status); } &&
2437
{ ac_try='test -z "$ac_c_werror_flag"
2438
|| test ! -s conftest.err'
2439
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443
(exit $ac_status); }; } &&
2444
{ ac_try='test -s conftest.$ac_objext'
2445
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449
(exit $ac_status); }; }; then
2452
echo "$as_me: failed program was:" >&5
2453
sed 's/^/| /' conftest.$ac_ext >&5
2457
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458
cat >conftest.$ac_ext <<_ACEOF
2461
cat confdefs.h >>conftest.$ac_ext
2462
cat >>conftest.$ac_ext <<_ACEOF
2463
/* end confdefs.h. */
2473
rm -f conftest.$ac_objext
2474
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475
(eval $ac_compile) 2>conftest.er1
2477
grep -v '^ *+' conftest.er1 >conftest.err
2479
cat conftest.err >&5
2480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481
(exit $ac_status); } &&
2482
{ ac_try='test -z "$ac_c_werror_flag"
2483
|| test ! -s conftest.err'
2484
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488
(exit $ac_status); }; } &&
2489
{ ac_try='test -s conftest.$ac_objext'
2490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494
(exit $ac_status); }; }; then
2497
echo "$as_me: failed program was:" >&5
2498
sed 's/^/| /' conftest.$ac_ext >&5
2501
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504
if test -n "$ac_declaration"; then
2505
echo '#ifdef __cplusplus' >>confdefs.h
2506
echo $ac_declaration >>confdefs.h
2507
echo '#endif' >>confdefs.h
2511
echo "$as_me: failed program was:" >&5
2512
sed 's/^/| /' conftest.$ac_ext >&5
2515
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517
ac_cpp='$CPP $CPPFLAGS'
2518
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
for ac_prog in makeinfo
2524
# Extract the first word of "$ac_prog", so it can be a program name with args.
2525
set dummy $ac_prog; ac_word=$2
2526
echo "$as_me:$LINENO: checking for $ac_word" >&5
2527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528
if test "${ac_cv_prog_MAKEINFO+set}" = set; then
2529
echo $ECHO_N "(cached) $ECHO_C" >&6
2531
if test -n "$MAKEINFO"; then
2532
ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538
test -z "$as_dir" && as_dir=.
2539
for ac_exec_ext in '' $ac_executable_extensions; do
2540
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541
ac_cv_prog_MAKEINFO="$ac_prog"
2542
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550
MAKEINFO=$ac_cv_prog_MAKEINFO
2551
if test -n "$MAKEINFO"; then
2552
echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2553
echo "${ECHO_T}$MAKEINFO" >&6
2555
echo "$as_me:$LINENO: result: no" >&5
2556
echo "${ECHO_T}no" >&6
2559
test -n "$MAKEINFO" && break
2564
# Extract the first word of "$ac_prog", so it can be a program name with args.
2565
set dummy $ac_prog; ac_word=$2
2566
echo "$as_me:$LINENO: checking for $ac_word" >&5
2567
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568
if test "${ac_cv_prog_GZIP_PROGRAM+set}" = set; then
2569
echo $ECHO_N "(cached) $ECHO_C" >&6
2571
if test -n "$GZIP_PROGRAM"; then
2572
ac_cv_prog_GZIP_PROGRAM="$GZIP_PROGRAM" # Let the user override the test.
2574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578
test -z "$as_dir" && as_dir=.
2579
for ac_exec_ext in '' $ac_executable_extensions; do
2580
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2581
ac_cv_prog_GZIP_PROGRAM="$ac_prog"
2582
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590
GZIP_PROGRAM=$ac_cv_prog_GZIP_PROGRAM
2591
if test -n "$GZIP_PROGRAM"; then
2592
echo "$as_me:$LINENO: result: $GZIP_PROGRAM" >&5
2593
echo "${ECHO_T}$GZIP_PROGRAM" >&6
2595
echo "$as_me:$LINENO: result: no" >&5
2596
echo "${ECHO_T}no" >&6
2599
test -n "$GZIP_PROGRAM" && break
2604
# Extract the first word of "$ac_prog", so it can be a program name with args.
2605
set dummy $ac_prog; 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_SED+set}" = set; then
2609
echo $ECHO_N "(cached) $ECHO_C" >&6
2611
if test -n "$SED"; then
2612
ac_cv_prog_SED="$SED" # 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_SED="$ac_prog"
2622
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631
if test -n "$SED"; then
2632
echo "$as_me:$LINENO: result: $SED" >&5
2633
echo "${ECHO_T}$SED" >&6
2635
echo "$as_me:$LINENO: result: no" >&5
2636
echo "${ECHO_T}no" >&6
2639
test -n "$SED" && break
2642
for ac_prog in ldconfig
2644
# Extract the first word of "$ac_prog", so it can be a program name with args.
2645
set dummy $ac_prog; ac_word=$2
2646
echo "$as_me:$LINENO: checking for $ac_word" >&5
2647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648
if test "${ac_cv_prog_LDCONFIG+set}" = set; then
2649
echo $ECHO_N "(cached) $ECHO_C" >&6
2651
if test -n "$LDCONFIG"; then
2652
ac_cv_prog_LDCONFIG="$LDCONFIG" # Let the user override the test.
2654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658
test -z "$as_dir" && as_dir=.
2659
for ac_exec_ext in '' $ac_executable_extensions; do
2660
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661
ac_cv_prog_LDCONFIG="$ac_prog"
2662
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670
LDCONFIG=$ac_cv_prog_LDCONFIG
2671
if test -n "$LDCONFIG"; then
2672
echo "$as_me:$LINENO: result: $LDCONFIG" >&5
2673
echo "${ECHO_T}$LDCONFIG" >&6
2675
echo "$as_me:$LINENO: result: no" >&5
2676
echo "${ECHO_T}no" >&6
2679
test -n "$LDCONFIG" && break
2684
# Check whether --enable-objc or --disable-objc was given.
2685
if test "${enable_objc+set}" = set; then
2686
enableval="$enable_objc"
2690
STUBGEN_FFI_MODULE=c-wrapper.c-ffi
2692
LD_LIBRARY_PATH_ENVS='"LD_LIBRARY_PATH"'
2693
TESTLIB_CFLAGS="-c -fPIC -o"
2694
TESTLIB_LDFLAGS="-shared -o"
2695
SYS_LIBRARY_PATHS="/usr/lib /lib"
2698
if test "$enable_objc" != "no"; then
2701
LD_LIBRARY_PATH_ENVS='"LD_LIBRARY_PATH" "DYLD_LIBRARY_PATH"'
2702
TESTLIB_CFLAGS="-c -fPIC -o"
2703
TESTLIB_LDFLAGS="-dynamiclib -r -nostartfiles -install_name ffitest -single_module -o"
2704
STUBGEN_FFI_MODULE=c-wrapper.objc-ffi
2707
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2708
if test "X$LDCONFIG" != "X" -a "X$SED" != "X"; then
2709
LDCONFIG_CMD="$LDCONFIG -p | $SED -n '/^ /s/^.*=> //p'"
2713
if test "X$LDCONFIG" != "X" -a "X$SED" != "X"; then
2714
LDCONFIG_CMD="$LDCONFIG -r | $SED -n '/^ /s/^.*=> //p'"
2719
if test "$enable_objc" = "yes"; then
2720
CPPFLAGS="$CPPFLAGS -x objective-c -fobjc-exceptions"
2721
LDFLAGS="$LDFLAGS -framework Foundation"
2724
OBJC_ENABLE_TRUE="#"
2734
GAUCHE_PACKAGE_CONFIGURE_ARGS="`echo ""$ac_configure_args"" | sed 's/\\""\`\$/\\\&/g'`"
2735
{ echo "$as_me:$LINENO: creating ${PACKAGE_NAME}.gpd" >&5
2736
echo "$as_me: creating ${PACKAGE_NAME}.gpd" >&6;}
2737
$GAUCHE_PACKAGE make-gpd "$PACKAGE_NAME" \
2738
-version "$PACKAGE_VERSION" \
2739
-configure "./configure $GAUCHE_PACKAGE_CONFIGURE_ARGS"
2741
echo $PACKAGE_VERSION > VERSION
2742
ac_config_files="$ac_config_files Makefile src/Makefile lib/Makefile objc/Makefile testsuite/Makefile src/cwcompile lib/c-wrapper/config.scm lib/c-wrapper/stubgen.scm doc/Makefile"
2743
cat >confcache <<\_ACEOF
2744
# This file is a shell script that caches the results of configure
2745
# tests run on this system so they can be shared between configure
2746
# scripts and configure runs, see configure's option --config-cache.
2747
# It is not useful on other systems. If it contains results you don't
2748
# want to keep, you may remove or edit it.
2750
# config.status only pays attention to the cache file if you give it
2751
# the --recheck option to rerun configure.
2753
# `ac_cv_env_foo' variables (set or unset) will be overridden when
2754
# loading this file, other *unset* `ac_cv_foo' will be assigned the
2759
# The following way of writing the cache mishandles newlines in values,
2760
# but we know of no workaround that is simple, portable, and efficient.
2761
# So, don't put newlines in cache variables' values.
2762
# Ultrix sh set writes to stderr and can't be redirected directly,
2763
# and sets the high bit in the cache file unless we assign to the vars.
2766
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2768
# `set' does not quote correctly, so add quotes (double-quote
2769
# substitution turns \\\\ into \\, and sed turns \\ into \).
2772
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2775
# `set' quotes correctly as required by POSIX, so do not add quotes.
2777
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2784
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2786
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2788
if diff $cache_file confcache >/dev/null 2>&1; then :; else
2789
if test -w $cache_file; then
2790
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2791
cat confcache >$cache_file
2793
echo "not updating unwritable cache $cache_file"
2798
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2799
# Let make expand exec_prefix.
2800
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2802
# VPATH may cause trouble with some makes, so we remove $(srcdir),
2803
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2804
# trailing colons and then remove the whole line if VPATH becomes empty
2805
# (actually we leave an empty line to preserve line numbers).
2806
if test "x$srcdir" = x.; then
2807
ac_vpsub='/^[ ]*VPATH[ ]*=/{
2808
s/:*\$(srcdir):*/:/;
2809
s/:*\${srcdir}:*/:/;
2811
s/^\([^=]*=[ ]*\):*/\1/;
2817
# Transform confdefs.h into DEFS.
2818
# Protect against shell expansion while executing Makefile rules.
2819
# Protect against Makefile macro expansion.
2821
# If the first sed substitution is executed (which looks for macros that
2822
# take arguments), then we branch to the quote section. Otherwise,
2823
# look for a macro that doesn't take arguments.
2824
cat >confdef2opt.sed <<\_ACEOF
2827
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
2829
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
2833
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
2839
# We use echo to avoid assuming a particular line-breaking character.
2840
# The extra dot is to prevent the shell from consuming trailing
2841
# line-breaks from the sub-command output. A line-break within
2842
# single-quotes doesn't work because, if this script is created in a
2843
# platform that uses two characters for line-breaks (e.g., DOS), tr
2845
ac_LF_and_DOT=`echo; echo .`
2846
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2847
rm -f confdef2opt.sed
2852
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2853
# 1. Remove the extension, and $U if already installed.
2854
ac_i=`echo "$ac_i" |
2855
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2857
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2858
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2862
LTLIBOBJS=$ac_ltlibobjs
2866
: ${CONFIG_STATUS=./config.status}
2867
ac_clean_files_save=$ac_clean_files
2868
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2869
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2870
echo "$as_me: creating $CONFIG_STATUS" >&6;}
2871
cat >$CONFIG_STATUS <<_ACEOF
2873
# Generated by $as_me.
2874
# Run this file to recreate the current configuration.
2875
# Compiler output produced by configure, useful for debugging
2876
# configure, is in config.log if it exists.
2881
SHELL=\${CONFIG_SHELL-$SHELL}
2884
cat >>$CONFIG_STATUS <<\_ACEOF
2885
## --------------------- ##
2886
## M4sh Initialization. ##
2887
## --------------------- ##
2889
# Be Bourne compatible
2890
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2893
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2894
# is contrary to our usage. Disable this feature.
2895
alias -g '${1+"$@"}'='"$@"'
2896
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2899
DUALCASE=1; export DUALCASE # for MKS sh
2901
# Support unset when possible.
2902
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2909
# Work around bugs in pre-3.0 UWIN ksh.
2910
$as_unset ENV MAIL MAILPATH
2917
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2918
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2919
LC_TELEPHONE LC_TIME
2921
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2922
eval $as_var=C; export $as_var
2928
# Required to use basename.
2929
if expr a : '\(a\)' >/dev/null 2>&1; then
2935
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2936
as_basename=basename
2942
# Name of the executable.
2943
as_me=`$as_basename "$0" ||
2944
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2945
X"$0" : 'X\(//\)$' \| \
2946
X"$0" : 'X\(/\)$' \| \
2947
. : '\(.\)' 2>/dev/null ||
2949
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2950
/^X\/\(\/\/\)$/{ s//\1/; q; }
2951
/^X\/\(\/\).*/{ s//\1/; q; }
2955
# PATH needs CR, and LINENO needs CR and PATH.
2956
# Avoid depending upon Character Ranges.
2957
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2958
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2959
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2960
as_cr_digits='0123456789'
2961
as_cr_alnum=$as_cr_Letters$as_cr_digits
2963
# The user is always right.
2964
if test "${PATH_SEPARATOR+set}" != set; then
2965
echo "#! /bin/sh" >conf$$.sh
2966
echo "exit 0" >>conf$$.sh
2968
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2979
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2980
test "x$as_lineno_1" != "x$as_lineno_2" &&
2981
test "x$as_lineno_3" = "x$as_lineno_2" || {
2982
# Find who we are. Look in the path if we contain no path at all
2985
*[\\/]* ) as_myself=$0 ;;
2986
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990
test -z "$as_dir" && as_dir=.
2991
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2996
# We did not find ourselves, most probably we were run as `sh COMMAND'
2997
# in which case we are not to be found in the path.
2998
if test "x$as_myself" = x; then
3001
if test ! -f "$as_myself"; then
3002
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3003
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3004
{ (exit 1); exit 1; }; }
3006
case $CONFIG_SHELL in
3008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3012
test -z "$as_dir" && as_dir=.
3013
for as_base in sh bash ksh sh5; do
3016
if ("$as_dir/$as_base" -c '
3019
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3020
test "x$as_lineno_1" != "x$as_lineno_2" &&
3021
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3022
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3023
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3024
CONFIG_SHELL=$as_dir/$as_base
3026
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3034
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3035
# uniformly replaced by the line number. The first 'sed' inserts a
3036
# line-number line before each line; the second 'sed' does the real
3037
# work. The second script uses 'N' to pair each line-number line
3038
# with the numbered line, and appends trailing '-' during
3039
# substitution so that $LINENO is not a special case at line end.
3040
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3041
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3042
sed '=' <$as_myself |
3047
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3050
s,^['$as_cr_digits']*\n,,
3052
chmod +x $as_me.lineno ||
3053
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3054
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3055
{ (exit 1); exit 1; }; }
3057
# Don't try to exec as it changes $[0], causing all sort of problems
3058
# (the dirname of $[0] is not the place where we might find the
3059
# original and so on. Autoconf is especially sensible to this).
3061
# Exit status is that of the last command.
3066
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3067
*c*,-n*) ECHO_N= ECHO_C='
3069
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3070
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3073
if expr a : '\(a\)' >/dev/null 2>&1; then
3079
rm -f conf$$ conf$$.exe conf$$.file
3081
if ln -s conf$$.file conf$$ 2>/dev/null; then
3082
# We could just check for DJGPP; but this test a) works b) is more generic
3083
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3084
if test -f conf$$.exe; then
3085
# Don't use ln at all; we don't have any links
3090
elif ln conf$$.file conf$$ 2>/dev/null; then
3095
rm -f conf$$ conf$$.exe conf$$.file
3097
if mkdir -p . 2>/dev/null; then
3100
test -d ./-p && rmdir ./-p
3104
as_executable_p="test -f"
3106
# Sed expression to map a string onto a valid CPP name.
3107
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3109
# Sed expression to map a string onto a valid variable name.
3110
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3114
# We need space, tab and new line, in precisely that order.
3124
# Open the log real soon, to keep \$[0] and so on meaningful, and to
3125
# report actual input values of CONFIG_FILES etc. instead of their
3126
# values after options handling. Logging --version etc. is OK.
3130
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3131
## Running $as_me. ##
3136
This file was extended by c-wrapper $as_me 0.5.2, which was
3137
generated by GNU Autoconf 2.59. Invocation command line was
3139
CONFIG_FILES = $CONFIG_FILES
3140
CONFIG_HEADERS = $CONFIG_HEADERS
3141
CONFIG_LINKS = $CONFIG_LINKS
3142
CONFIG_COMMANDS = $CONFIG_COMMANDS
3146
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3150
# Files that config.status was made for.
3151
if test -n "$ac_config_files"; then
3152
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3155
if test -n "$ac_config_headers"; then
3156
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3159
if test -n "$ac_config_links"; then
3160
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3163
if test -n "$ac_config_commands"; then
3164
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3167
cat >>$CONFIG_STATUS <<\_ACEOF
3170
\`$as_me' instantiates files from templates according to the
3171
current configuration.
3173
Usage: $0 [OPTIONS] [FILE]...
3175
-h, --help print this help, then exit
3176
-V, --version print version number, then exit
3177
-q, --quiet do not print progress messages
3178
-d, --debug don't remove temporary files
3179
--recheck update $as_me by reconfiguring in the same conditions
3180
--file=FILE[:TEMPLATE]
3181
instantiate the configuration file FILE
3183
Configuration files:
3186
Report bugs to <bug-autoconf@gnu.org>."
3189
cat >>$CONFIG_STATUS <<_ACEOF
3191
c-wrapper config.status 0.5.2
3192
configured by $0, generated by GNU Autoconf 2.59,
3193
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3195
Copyright (C) 2003 Free Software Foundation, Inc.
3196
This config.status script is free software; the Free Software Foundation
3197
gives unlimited permission to copy, distribute and modify it."
3201
cat >>$CONFIG_STATUS <<\_ACEOF
3202
# If no file are specified by the user, then we need to provide default
3203
# value. By we need to know if files were specified by the user.
3209
ac_option=`expr "x$1" : 'x\([^=]*\)='`
3210
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3218
*) # This is not an option, so the user has probably given explicit
3221
ac_need_defaults=false;;
3225
# Handling of the options.
3227
cat >>$CONFIG_STATUS <<\_ACEOF
3228
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3230
--version | --vers* | -V )
3231
echo "$ac_cs_version"; exit 0 ;;
3233
# Conflict between --help and --header
3234
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
3235
Try \`$0 --help' for more information." >&5
3236
echo "$as_me: error: ambiguous option: $1
3237
Try \`$0 --help' for more information." >&2;}
3238
{ (exit 1); exit 1; }; };;
3239
--help | --hel | -h )
3240
echo "$ac_cs_usage"; exit 0 ;;
3241
--debug | --d* | -d )
3243
--file | --fil | --fi | --f )
3245
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3246
ac_need_defaults=false;;
3247
--header | --heade | --head | --hea )
3249
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3250
ac_need_defaults=false;;
3251
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
3252
| -silent | --silent | --silen | --sile | --sil | --si | --s)
3256
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3257
Try \`$0 --help' for more information." >&5
3258
echo "$as_me: error: unrecognized option: $1
3259
Try \`$0 --help' for more information." >&2;}
3260
{ (exit 1); exit 1; }; } ;;
3262
*) ac_config_targets="$ac_config_targets $1" ;;
3268
ac_configure_extra_args=
3270
if $ac_cs_silent; then
3272
ac_configure_extra_args="$ac_configure_extra_args --silent"
3276
cat >>$CONFIG_STATUS <<_ACEOF
3277
if \$ac_cs_recheck; then
3278
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3279
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3288
cat >>$CONFIG_STATUS <<\_ACEOF
3289
for ac_config_target in $ac_config_targets
3291
case "$ac_config_target" in
3292
# Handling of arguments.
3293
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3294
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
3295
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
3296
"objc/Makefile" ) CONFIG_FILES="$CONFIG_FILES objc/Makefile" ;;
3297
"testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
3298
"src/cwcompile" ) CONFIG_FILES="$CONFIG_FILES src/cwcompile" ;;
3299
"lib/c-wrapper/config.scm" ) CONFIG_FILES="$CONFIG_FILES lib/c-wrapper/config.scm" ;;
3300
"lib/c-wrapper/stubgen.scm" ) CONFIG_FILES="$CONFIG_FILES lib/c-wrapper/stubgen.scm" ;;
3301
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
3302
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3303
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3304
{ (exit 1); exit 1; }; };;
3308
# If the user did not use the arguments to specify the items to instantiate,
3309
# then the envvar interface is used. Set only those that are not.
3310
# We use the long form for the default assignment because of an extremely
3311
# bizarre bug on SunOS 4.1.3.
3312
if $ac_need_defaults; then
3313
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3316
# Have a temporary directory for convenience. Make it in the build tree
3317
# simply because there is no reason to put it here, and in addition,
3318
# creating and moving files from /tmp can sometimes cause problems.
3319
# Create a temporary directory, and hook for its removal unless debugging.
3322
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3323
trap '{ (exit 1); exit 1; }' 1 2 13 15
3326
# Create a (secure) tmp directory for tmp files.
3329
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3330
test -n "$tmp" && test -d "$tmp"
3333
tmp=./confstat$$-$RANDOM
3334
(umask 077 && mkdir $tmp)
3337
echo "$me: cannot create a temporary directory in ." >&2
3338
{ (exit 1); exit 1; }
3343
cat >>$CONFIG_STATUS <<_ACEOF
3346
# CONFIG_FILES section.
3349
# No need to generate the scripts if there are no CONFIG_FILES.
3350
# This happens for instance when ./config.status config.h
3351
if test -n "\$CONFIG_FILES"; then
3352
# Protect against being on the right side of a sed subst in config.status.
3353
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3354
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3355
s,@SHELL@,$SHELL,;t t
3356
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3357
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3358
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3359
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3360
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3361
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3362
s,@exec_prefix@,$exec_prefix,;t t
3363
s,@prefix@,$prefix,;t t
3364
s,@program_transform_name@,$program_transform_name,;t t
3365
s,@bindir@,$bindir,;t t
3366
s,@sbindir@,$sbindir,;t t
3367
s,@libexecdir@,$libexecdir,;t t
3368
s,@datadir@,$datadir,;t t
3369
s,@sysconfdir@,$sysconfdir,;t t
3370
s,@sharedstatedir@,$sharedstatedir,;t t
3371
s,@localstatedir@,$localstatedir,;t t
3372
s,@libdir@,$libdir,;t t
3373
s,@includedir@,$includedir,;t t
3374
s,@oldincludedir@,$oldincludedir,;t t
3375
s,@infodir@,$infodir,;t t
3376
s,@mandir@,$mandir,;t t
3377
s,@build_alias@,$build_alias,;t t
3378
s,@host_alias@,$host_alias,;t t
3379
s,@target_alias@,$target_alias,;t t
3381
s,@ECHO_C@,$ECHO_C,;t t
3382
s,@ECHO_N@,$ECHO_N,;t t
3383
s,@ECHO_T@,$ECHO_T,;t t
3385
s,@build@,$build,;t t
3386
s,@build_cpu@,$build_cpu,;t t
3387
s,@build_vendor@,$build_vendor,;t t
3388
s,@build_os@,$build_os,;t t
3390
s,@host_cpu@,$host_cpu,;t t
3391
s,@host_vendor@,$host_vendor,;t t
3392
s,@host_os@,$host_os,;t t
3393
s,@target@,$target,;t t
3394
s,@target_cpu@,$target_cpu,;t t
3395
s,@target_vendor@,$target_vendor,;t t
3396
s,@target_os@,$target_os,;t t
3398
s,@GAUCHE_CONFIG@,$GAUCHE_CONFIG,;t t
3399
s,@GAUCHE_PACKAGE@,$GAUCHE_PACKAGE,;t t
3400
s,@GAUCHE_INSTALL@,$GAUCHE_INSTALL,;t t
3401
s,@GAUCHE_CESCONV@,$GAUCHE_CESCONV,;t t
3402
s,@SOEXT@,$SOEXT,;t t
3403
s,@OBJEXT@,$OBJEXT,;t t
3404
s,@EXEEXT@,$EXEEXT,;t t
3405
s,@DYLIBEXT@,$DYLIBEXT,;t t
3406
s,@GAUCHE_PKGINCDIR@,$GAUCHE_PKGINCDIR,;t t
3407
s,@GAUCHE_PKGLIBDIR@,$GAUCHE_PKGLIBDIR,;t t
3408
s,@GAUCHE_PKGARCHDIR@,$GAUCHE_PKGARCHDIR,;t t
3410
s,@CFLAGS@,$CFLAGS,;t t
3411
s,@LDFLAGS@,$LDFLAGS,;t t
3412
s,@CPPFLAGS@,$CPPFLAGS,;t t
3413
s,@ac_ct_CC@,$ac_ct_CC,;t t
3414
s,@MAKEINFO@,$MAKEINFO,;t t
3415
s,@GZIP_PROGRAM@,$GZIP_PROGRAM,;t t
3417
s,@LDCONFIG@,$LDCONFIG,;t t
3418
s,@LD_LIBRARY_PATH_ENVS@,$LD_LIBRARY_PATH_ENVS,;t t
3419
s,@TESTLIB_CFLAGS@,$TESTLIB_CFLAGS,;t t
3420
s,@TESTLIB_LDFLAGS@,$TESTLIB_LDFLAGS,;t t
3421
s,@OBJC_ENABLE_TRUE@,$OBJC_ENABLE_TRUE,;t t
3422
s,@STUBGEN_FFI_MODULE@,$STUBGEN_FFI_MODULE,;t t
3423
s,@LDCONFIG_CMD@,$LDCONFIG_CMD,;t t
3424
s,@SYS_LIBRARY_PATHS@,$SYS_LIBRARY_PATHS,;t t
3425
s,@LIBOBJS@,$LIBOBJS,;t t
3426
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3431
cat >>$CONFIG_STATUS <<\_ACEOF
3432
# Split the substitutions into bite-sized pieces for seds with
3433
# small command number limits, like on Digital OSF/1 and HP-UX.
3435
ac_sed_frag=1 # Number of current file.
3436
ac_beg=1 # First line for current file.
3437
ac_end=$ac_max_sed_lines # Line after last line for current file.
3440
while $ac_more_lines; do
3441
if test $ac_beg -gt 1; then
3442
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3444
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3446
if test ! -s $tmp/subs.frag; then
3449
# The purpose of the label and of the branching condition is to
3450
# speed up the sed processing (if there are no `@' at all, there
3451
# is no need to browse any of the substitutions).
3452
# These are the two extra sed commands mentioned above.
3454
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3455
if test -z "$ac_sed_cmds"; then
3456
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3458
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3460
ac_sed_frag=`expr $ac_sed_frag + 1`
3462
ac_end=`expr $ac_end + $ac_max_sed_lines`
3465
if test -z "$ac_sed_cmds"; then
3468
fi # test -n "$CONFIG_FILES"
3471
cat >>$CONFIG_STATUS <<\_ACEOF
3472
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3473
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3475
- | *:- | *:-:* ) # input from stdin
3477
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3478
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3479
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3480
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3481
* ) ac_file_in=$ac_file.in ;;
3484
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3485
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3486
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3487
X"$ac_file" : 'X\(//\)[^/]' \| \
3488
X"$ac_file" : 'X\(//\)$' \| \
3489
X"$ac_file" : 'X\(/\)' \| \
3490
. : '\(.\)' 2>/dev/null ||
3492
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3493
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
3494
/^X\(\/\/\)$/{ s//\1/; q; }
3495
/^X\(\/\).*/{ s//\1/; q; }
3497
{ if $as_mkdir_p; then
3502
while test ! -d "$as_dir"; do
3503
as_dirs="$as_dir $as_dirs"
3504
as_dir=`(dirname "$as_dir") 2>/dev/null ||
3505
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3506
X"$as_dir" : 'X\(//\)[^/]' \| \
3507
X"$as_dir" : 'X\(//\)$' \| \
3508
X"$as_dir" : 'X\(/\)' \| \
3509
. : '\(.\)' 2>/dev/null ||
3511
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3512
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
3513
/^X\(\/\/\)$/{ s//\1/; q; }
3514
/^X\(\/\).*/{ s//\1/; q; }
3517
test ! -n "$as_dirs" || mkdir $as_dirs
3518
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3519
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3520
{ (exit 1); exit 1; }; }; }
3524
if test "$ac_dir" != .; then
3525
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3526
# A "../" for each directory in $ac_dir_suffix.
3527
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3529
ac_dir_suffix= ac_top_builddir=
3533
.) # No --srcdir option. We are building in place.
3535
if test -z "$ac_top_builddir"; then
3538
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3540
[\\/]* | ?:[\\/]* ) # Absolute path.
3541
ac_srcdir=$srcdir$ac_dir_suffix;
3542
ac_top_srcdir=$srcdir ;;
3544
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3545
ac_top_srcdir=$ac_top_builddir$srcdir ;;
3548
# Do not use `cd foo && pwd` to compute absolute paths, because
3549
# the directories may not exist.
3551
.) ac_abs_builddir="$ac_dir";;
3554
.) ac_abs_builddir=`pwd`;;
3555
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3556
*) ac_abs_builddir=`pwd`/"$ac_dir";;
3559
case $ac_abs_builddir in
3560
.) ac_abs_top_builddir=${ac_top_builddir}.;;
3562
case ${ac_top_builddir}. in
3563
.) ac_abs_top_builddir=$ac_abs_builddir;;
3564
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3565
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3568
case $ac_abs_builddir in
3569
.) ac_abs_srcdir=$ac_srcdir;;
3572
.) ac_abs_srcdir=$ac_abs_builddir;;
3573
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3574
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3577
case $ac_abs_builddir in
3578
.) ac_abs_top_srcdir=$ac_top_srcdir;;
3580
case $ac_top_srcdir in
3581
.) ac_abs_top_srcdir=$ac_abs_builddir;;
3582
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3583
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3589
if test x"$ac_file" != x-; then
3590
{ echo "$as_me:$LINENO: creating $ac_file" >&5
3591
echo "$as_me: creating $ac_file" >&6;}
3594
# Let's still pretend it is `configure' which instantiates (i.e., don't
3595
# use $as_me), people would be surprised to read:
3596
# /* config.h. Generated by config.status. */
3597
if test x"$ac_file" = x-; then
3600
configure_input="$ac_file. "
3602
configure_input=$configure_input"Generated from `echo $ac_file_in |
3603
sed 's,.*/,,'` by configure."
3605
# First look for the input files in the build tree, otherwise in the
3607
ac_file_inputs=`IFS=:
3608
for f in $ac_file_in; do
3610
-) echo $tmp/stdin ;;
3612
# Absolute (can't be DOS-style, as IFS=:)
3613
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3614
echo "$as_me: error: cannot find input file: $f" >&2;}
3615
{ (exit 1); exit 1; }; }
3618
if test -f "$f"; then
3621
elif test -f "$srcdir/$f"; then
3626
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3627
echo "$as_me: error: cannot find input file: $f" >&2;}
3628
{ (exit 1); exit 1; }; }
3631
done` || { (exit 1); exit 1; }
3633
cat >>$CONFIG_STATUS <<_ACEOF
3637
cat >>$CONFIG_STATUS <<\_ACEOF
3639
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3640
s,@configure_input@,$configure_input,;t t
3641
s,@srcdir@,$ac_srcdir,;t t
3642
s,@abs_srcdir@,$ac_abs_srcdir,;t t
3643
s,@top_srcdir@,$ac_top_srcdir,;t t
3644
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3645
s,@builddir@,$ac_builddir,;t t
3646
s,@abs_builddir@,$ac_abs_builddir,;t t
3647
s,@top_builddir@,$ac_top_builddir,;t t
3648
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3649
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3651
if test x"$ac_file" != x-; then
3652
mv $tmp/out $ac_file
3661
cat >>$CONFIG_STATUS <<\_ACEOF
3663
{ (exit 0); exit 0; }
3665
chmod +x $CONFIG_STATUS
3666
ac_clean_files=$ac_clean_files_save
3669
# configure is writing to config.log, and then calls config.status.
3670
# config.status does its own redirection, appending to config.log.
3671
# Unfortunately, on DOS this fails, as config.log is still kept open
3672
# by configure, so config.status won't be able to write to it; its
3673
# output is simply discarded. So we exec the FD to /dev/null,
3674
# effectively closing config.log, so it can be properly (re)opened and
3675
# appended to by config.status. When coming back to configure, we
3676
# need to make the FD available again.
3677
if test "$no_create" != yes; then
3679
ac_config_status_args=
3680
test "$silent" = yes &&
3681
ac_config_status_args="$ac_config_status_args --quiet"
3683
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3685
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
3686
# would make configure fail if this is the last instruction.
3687
$ac_cs_success || { (exit 1); exit 1; }