3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
--enable-multilib build many library versions (default)"
17
--enable-usegnu use alternative libc functions from GNU libc"
19
# Initialize some variables set by options.
20
# The variables have the same names as the options, with
21
# dashes changed to underlines.
23
cache_file=./config.cache
32
program_transform_name=s,x,x,
40
bindir='${exec_prefix}/bin'
41
sbindir='${exec_prefix}/sbin'
42
libexecdir='${exec_prefix}/libexec'
43
datadir='${prefix}/share'
44
sysconfdir='${prefix}/etc'
45
sharedstatedir='${prefix}/com'
46
localstatedir='${prefix}/var'
47
libdir='${exec_prefix}/lib'
48
includedir='${prefix}/include'
49
oldincludedir='/usr/include'
50
infodir='${prefix}/info'
51
mandir='${prefix}/man'
53
# Initialize some other variables.
56
SHELL=${CONFIG_SHELL-/bin/sh}
57
# Maximum number of lines to put in a shell here document.
64
# If the previous option needs an argument, assign it.
65
if test -n "$ac_prev"; then
66
eval "$ac_prev=\$ac_option"
72
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76
# Accept the important Cygnus configure options, so we can diagnose typos.
80
-bindir | --bindir | --bindi | --bind | --bin | --bi)
82
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83
bindir="$ac_optarg" ;;
85
-build | --build | --buil | --bui | --bu)
87
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
90
-cache-file | --cache-file | --cache-fil | --cache-fi \
91
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95
cache_file="$ac_optarg" ;;
97
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101
datadir="$ac_optarg" ;;
103
-disable-* | --disable-*)
104
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105
# Reject names that are not valid shell variable names.
106
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110
eval "enable_${ac_feature}=no" ;;
112
-enable-* | --enable-*)
113
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114
# Reject names that are not valid shell variable names.
115
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123
eval "enable_${ac_feature}='$ac_optarg'" ;;
125
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127
| --exec | --exe | --ex)
128
ac_prev=exec_prefix ;;
129
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131
| --exec=* | --exe=* | --ex=*)
132
exec_prefix="$ac_optarg" ;;
134
-gas | --gas | --ga | --g)
135
# Obsolete; use --with-gas.
138
-help | --help | --hel | --he)
139
# Omit some internal or obsolete options to make the list less imposing.
140
# This message is too long to be a string in the A/UX 3.1 sh.
142
Usage: configure [options] [host]
143
Options: [defaults in brackets after descriptions]
145
--cache-file=FILE cache test results in FILE
146
--help print this message
147
--no-create do not create output files
148
--quiet, --silent do not print \`checking...' messages
149
--version print the version of autoconf that created configure
150
Directory and file names:
151
--prefix=PREFIX install architecture-independent files in PREFIX
153
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155
--bindir=DIR user executables in DIR [EPREFIX/bin]
156
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158
--datadir=DIR read-only architecture-independent data in DIR
160
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161
--sharedstatedir=DIR modifiable architecture-independent data in DIR
163
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
165
--includedir=DIR C header files in DIR [PREFIX/include]
166
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167
--infodir=DIR info documentation in DIR [PREFIX/info]
168
--mandir=DIR man documentation in DIR [PREFIX/man]
169
--srcdir=DIR find the sources in DIR [configure dir or ..]
170
--program-prefix=PREFIX prepend PREFIX to installed program names
171
--program-suffix=SUFFIX append SUFFIX to installed program names
172
--program-transform-name=PROGRAM
173
run sed PROGRAM on installed program names
177
--build=BUILD configure for building on BUILD [BUILD=HOST]
178
--host=HOST configure for HOST [guessed]
179
--target=TARGET configure for TARGET [TARGET=HOST]
180
Features and packages:
181
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185
--x-includes=DIR X include files are in DIR
186
--x-libraries=DIR X library files are in DIR
188
if test -n "$ac_help"; then
189
echo "--enable and --with options recognized:$ac_help"
193
-host | --host | --hos | --ho)
195
-host=* | --host=* | --hos=* | --ho=*)
198
-includedir | --includedir | --includedi | --included | --include \
199
| --includ | --inclu | --incl | --inc)
200
ac_prev=includedir ;;
201
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202
| --includ=* | --inclu=* | --incl=* | --inc=*)
203
includedir="$ac_optarg" ;;
205
-infodir | --infodir | --infodi | --infod | --info | --inf)
207
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208
infodir="$ac_optarg" ;;
210
-libdir | --libdir | --libdi | --libd)
212
-libdir=* | --libdir=* | --libdi=* | --libd=*)
213
libdir="$ac_optarg" ;;
215
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216
| --libexe | --libex | --libe)
217
ac_prev=libexecdir ;;
218
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219
| --libexe=* | --libex=* | --libe=*)
220
libexecdir="$ac_optarg" ;;
222
-localstatedir | --localstatedir | --localstatedi | --localstated \
223
| --localstate | --localstat | --localsta | --localst \
224
| --locals | --local | --loca | --loc | --lo)
225
ac_prev=localstatedir ;;
226
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
228
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229
localstatedir="$ac_optarg" ;;
231
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234
mandir="$ac_optarg" ;;
237
# Obsolete; use --without-fp.
240
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
244
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
245
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250
| --oldin | --oldi | --old | --ol | --o)
251
ac_prev=oldincludedir ;;
252
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255
oldincludedir="$ac_optarg" ;;
257
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260
prefix="$ac_optarg" ;;
262
-program-prefix | --program-prefix | --program-prefi | --program-pref \
263
| --program-pre | --program-pr | --program-p)
264
ac_prev=program_prefix ;;
265
-program-prefix=* | --program-prefix=* | --program-prefi=* \
266
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267
program_prefix="$ac_optarg" ;;
269
-program-suffix | --program-suffix | --program-suffi | --program-suff \
270
| --program-suf | --program-su | --program-s)
271
ac_prev=program_suffix ;;
272
-program-suffix=* | --program-suffix=* | --program-suffi=* \
273
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274
program_suffix="$ac_optarg" ;;
276
-program-transform-name | --program-transform-name \
277
| --program-transform-nam | --program-transform-na \
278
| --program-transform-n | --program-transform- \
279
| --program-transform | --program-transfor \
280
| --program-transfo | --program-transf \
281
| --program-trans | --program-tran \
282
| --progr-tra | --program-tr | --program-t)
283
ac_prev=program_transform_name ;;
284
-program-transform-name=* | --program-transform-name=* \
285
| --program-transform-nam=* | --program-transform-na=* \
286
| --program-transform-n=* | --program-transform-=* \
287
| --program-transform=* | --program-transfor=* \
288
| --program-transfo=* | --program-transf=* \
289
| --program-trans=* | --program-tran=* \
290
| --progr-tra=* | --program-tr=* | --program-t=*)
291
program_transform_name="$ac_optarg" ;;
293
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
294
| -silent | --silent | --silen | --sile | --sil)
297
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301
sbindir="$ac_optarg" ;;
303
-sharedstatedir | --sharedstatedir | --sharedstatedi \
304
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305
| --sharedst | --shareds | --shared | --share | --shar \
307
ac_prev=sharedstatedir ;;
308
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312
sharedstatedir="$ac_optarg" ;;
314
-site | --site | --sit)
316
-site=* | --site=* | --sit=*)
319
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322
srcdir="$ac_optarg" ;;
324
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325
| --syscon | --sysco | --sysc | --sys | --sy)
326
ac_prev=sysconfdir ;;
327
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329
sysconfdir="$ac_optarg" ;;
331
-target | --target | --targe | --targ | --tar | --ta | --t)
333
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334
target="$ac_optarg" ;;
336
-v | -verbose | --verbose | --verbos | --verbo | --verb)
339
-version | --version | --versio | --versi | --vers)
340
echo "configure generated by autoconf version 2.13"
344
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345
# Reject names that are not valid shell variable names.
346
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349
ac_package=`echo $ac_package| sed 's/-/_/g'`
354
eval "with_${ac_package}='$ac_optarg'" ;;
356
-without-* | --without-*)
357
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358
# Reject names that are not valid shell variable names.
359
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362
ac_package=`echo $ac_package| sed 's/-/_/g'`
363
eval "with_${ac_package}=no" ;;
366
# Obsolete; use --with-x.
369
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370
| --x-incl | --x-inc | --x-in | --x-i)
371
ac_prev=x_includes ;;
372
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374
x_includes="$ac_optarg" ;;
376
-x-libraries | --x-libraries | --x-librarie | --x-librari \
377
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378
ac_prev=x_libraries ;;
379
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381
x_libraries="$ac_optarg" ;;
383
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388
echo "configure: warning: $ac_option: invalid host type" 1>&2
390
if test "x$nonopt" != xNONE; then
391
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399
if test -n "$ac_prev"; then
400
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405
# File descriptor usage:
408
# 2 errors and warnings
409
# 3 some systems may open it to /dev/tty
410
# 4 used on the Kubota Titan
411
# 6 checking for... messages and results
412
# 5 compiler messages saved in config.log
413
if test "$silent" = yes; then
421
This file contains any messages produced by compilers while
422
running configure, to aid debugging if configure makes a mistake.
425
# Strip out --no-create and --no-recursion so they do not pile up.
426
# Also quote any args containing shell metacharacters.
431
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
432
| --no-cr | --no-c) ;;
433
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
434
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
442
# Only set these to C if already set. These must not be set unconditionally
443
# because not all systems understand e.g. LANG=C (notably SCO).
444
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445
# Non-C LC_CTYPE values break the ctype check.
446
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451
# confdefs.h avoids OS command line length limits that DEFS can exceed.
452
rm -rf conftest* confdefs.h
453
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
456
# A filename unique to this package, relative to the directory that
457
# configure is in, which we can look for to find out if srcdir is correct.
460
# Find the source files, if location was not specified.
461
if test -z "$srcdir"; then
462
ac_srcdir_defaulted=yes
463
# Try the directory containing this script, then its parent.
465
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468
if test ! -r $srcdir/$ac_unique_file; then
472
ac_srcdir_defaulted=no
474
if test ! -r $srcdir/$ac_unique_file; then
475
if test "$ac_srcdir_defaulted" = yes; then
476
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483
# Prefer explicitly selected file to automatically selected ones.
484
if test -z "$CONFIG_SITE"; then
485
if test "x$prefix" != xNONE; then
486
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491
for ac_site_file in $CONFIG_SITE; do
492
if test -r "$ac_site_file"; then
493
echo "loading site script $ac_site_file"
498
if test -r "$cache_file"; then
499
echo "loading cache $cache_file"
502
echo "creating cache $cache_file"
507
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508
ac_cpp='$CPP $CPPFLAGS'
509
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511
cross_compiling=$ac_cv_prog_cc_cross
515
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524
ac_n= ac_c='\c' ac_t=
529
# Check whether --enable-multilib or --disable-multilib was given.
530
if test "${enable_multilib+set}" = set; then
531
enableval="$enable_multilib"
532
case "${enableval}" in
535
*) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
541
# Check whether --enable-usegnu or --disable-usegnu was given.
542
if test "${enable_usegnu+set}" = set; then
543
enableval="$enable_usegnu"
544
case "${enableval}" in
547
*) { echo "configure: error: bad value ${enableval} for gnu option" 1>&2; exit 1; } ;;
556
*) { echo "configure: error: This is libc for avr only!" 1>&2; exit 1; } ;;
560
test -z "${with_target_subdir}" && with_target_subdir=.
562
if test "${srcdir}" = "."; then
563
if test "${with_target_subdir}" != "."; then
564
avrlib_basedir="${srcdir}/${with_multisrctop}.."
566
avrlib_basedir="${srcdir}/${with_multisrctop}"
569
avrlib_basedir="${srcdir}"
573
# Determine the host, build, and target systems
575
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
576
if test -f $ac_dir/install-sh; then
578
ac_install_sh="$ac_aux_dir/install-sh -c"
580
elif test -f $ac_dir/install.sh; then
582
ac_install_sh="$ac_aux_dir/install.sh -c"
586
if test -z "$ac_aux_dir"; then
587
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
589
ac_config_guess=$ac_aux_dir/config.guess
590
ac_config_sub=$ac_aux_dir/config.sub
591
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
594
# Do some error checking and defaulting for the host and target type.
596
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
599
# 1. You are not allowed to specify --host, --target, and nonopt at the
601
# 2. Host defaults to nonopt.
602
# 3. If nonopt is not specified, then host defaults to the current host,
603
# as determined by config.guess.
604
# 4. Target and build default to nonopt.
605
# 5. If nonopt is not specified, then target and build default to host.
607
# The aliases save the names the user supplied, while $host etc.
608
# will get canonicalized.
609
case $host---$target---$nonopt in
610
NONE---*---* | *---NONE---* | *---*---NONE) ;;
611
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
615
# Make sure we can run config.sub.
616
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
617
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
620
echo $ac_n "checking host system type""... $ac_c" 1>&6
621
echo "configure:622: checking host system type" >&5
624
case "$host_alias" in
628
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
629
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
631
*) host_alias=$nonopt ;;
635
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
636
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
637
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
638
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
639
echo "$ac_t""$host" 1>&6
641
echo $ac_n "checking target system type""... $ac_c" 1>&6
642
echo "configure:643: checking target system type" >&5
645
case "$target_alias" in
648
NONE) target_alias=$host_alias ;;
649
*) target_alias=$nonopt ;;
653
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
654
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
655
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
656
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
657
echo "$ac_t""$target" 1>&6
659
echo $ac_n "checking build system type""... $ac_c" 1>&6
660
echo "configure:661: checking build system type" >&5
663
case "$build_alias" in
666
NONE) build_alias=$host_alias ;;
667
*) build_alias=$nonopt ;;
671
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
672
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
673
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
674
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
675
echo "$ac_t""$build" 1>&6
677
test "$host_alias" != "$target_alias" &&
678
test "$program_prefix$program_suffix$program_transform_name" = \
680
program_prefix=${target_alias}-
683
# Find a good install program. We prefer a C program (faster),
684
# so one script is as good as another. But avoid the broken or
685
# incompatible versions:
686
# SysV /etc/install, /usr/sbin/install
687
# SunOS /usr/etc/install
690
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
691
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
692
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
693
# ./install, which can be erroneously created by make from ./install.sh.
694
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
695
echo "configure:696: checking for a BSD compatible install" >&5
696
if test -z "$INSTALL"; then
697
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
698
echo $ac_n "(cached) $ac_c" 1>&6
700
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
701
for ac_dir in $PATH; do
702
# Account for people who put trailing slashes in PATH elements.
704
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
706
# OSF1 and SCO ODT 3.0 have their own names for install.
707
# Don't use installbsd from OSF since it installs stuff as root
709
for ac_prog in ginstall scoinst install; do
710
if test -f $ac_dir/$ac_prog; then
711
if test $ac_prog = install &&
712
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
713
# AIX install. It has an incompatible calling convention.
716
ac_cv_path_install="$ac_dir/$ac_prog -c"
727
if test "${ac_cv_path_install+set}" = set; then
728
INSTALL="$ac_cv_path_install"
730
# As a last resort, use the slow shell script. We don't cache a
731
# path for INSTALL within a source directory, because that will
732
# break other packages using the cache if that directory is
733
# removed, or if the path is relative.
734
INSTALL="$ac_install_sh"
737
echo "$ac_t""$INSTALL" 1>&6
739
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
740
# It thinks the first close brace ends the variable substitution.
741
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
743
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
745
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
747
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
748
echo "configure:749: checking whether build environment is sane" >&5
751
echo timestamp > conftestfile
752
# Do `set' in a subshell so we don't clobber the current shell's
753
# arguments. Must try -L first in case configure is actually a
754
# symlink; some systems play weird games with the mod time of symlinks
755
# (eg FreeBSD returns the mod time of the symlink's containing
758
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
759
if test "$*" = "X"; then
761
set X `ls -t $srcdir/configure conftestfile`
763
if test "$*" != "X $srcdir/configure conftestfile" \
764
&& test "$*" != "X conftestfile $srcdir/configure"; then
766
# If neither matched, then we have a broken ls. This can happen
767
# if, for instance, CONFIG_SHELL is bash and it inherits a
768
# broken ls alias from the environment. This has actually
769
# happened. Such a system could not be considered "sane".
770
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
771
alias in your environment" 1>&2; exit 1; }
774
test "$2" = conftestfile
780
{ echo "configure: error: newly created file is older than distributed files!
781
Check your system clock" 1>&2; exit 1; }
784
echo "$ac_t""yes" 1>&6
785
if test "$program_transform_name" = s,x,x,; then
786
program_transform_name=
788
# Double any \ or $. echo might interpret backslashes.
789
cat <<\EOF_SED > conftestsed
790
s,\\,\\\\,g; s,\$,$$,g
792
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
795
test "$program_prefix" != NONE &&
796
program_transform_name="s,^,${program_prefix},; $program_transform_name"
797
# Use a double $ so make ignores it.
798
test "$program_suffix" != NONE &&
799
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
801
# sed with no file args requires a program.
802
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
804
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
805
echo "configure:806: checking whether ${MAKE-make} sets \${MAKE}" >&5
806
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
807
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
808
echo $ac_n "(cached) $ac_c" 1>&6
810
cat > conftestmake <<\EOF
812
@echo 'ac_maketemp="${MAKE}"'
814
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
815
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
816
if test -n "$ac_maketemp"; then
817
eval ac_cv_prog_make_${ac_make}_set=yes
819
eval ac_cv_prog_make_${ac_make}_set=no
823
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
824
echo "$ac_t""yes" 1>&6
827
echo "$ac_t""no" 1>&6
828
SET_MAKE="MAKE=${MAKE-make}"
836
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
837
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
839
cat >> confdefs.h <<EOF
840
#define PACKAGE "$PACKAGE"
843
cat >> confdefs.h <<EOF
844
#define VERSION "$VERSION"
849
missing_dir=`cd $ac_aux_dir && pwd`
850
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
851
echo "configure:852: checking for working aclocal" >&5
852
# Run test in a subshell; some versions of sh will print an error if
853
# an executable is not found, even if stderr is redirected.
854
# Redirect stdin to placate older versions of autoconf. Sigh.
855
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
857
echo "$ac_t""found" 1>&6
859
ACLOCAL="$missing_dir/missing aclocal"
860
echo "$ac_t""missing" 1>&6
863
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
864
echo "configure:865: checking for working autoconf" >&5
865
# Run test in a subshell; some versions of sh will print an error if
866
# an executable is not found, even if stderr is redirected.
867
# Redirect stdin to placate older versions of autoconf. Sigh.
868
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
870
echo "$ac_t""found" 1>&6
872
AUTOCONF="$missing_dir/missing autoconf"
873
echo "$ac_t""missing" 1>&6
876
echo $ac_n "checking for working automake""... $ac_c" 1>&6
877
echo "configure:878: checking for working automake" >&5
878
# Run test in a subshell; some versions of sh will print an error if
879
# an executable is not found, even if stderr is redirected.
880
# Redirect stdin to placate older versions of autoconf. Sigh.
881
if (automake --version) < /dev/null > /dev/null 2>&1; then
883
echo "$ac_t""found" 1>&6
885
AUTOMAKE="$missing_dir/missing automake"
886
echo "$ac_t""missing" 1>&6
889
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
890
echo "configure:891: checking for working autoheader" >&5
891
# Run test in a subshell; some versions of sh will print an error if
892
# an executable is not found, even if stderr is redirected.
893
# Redirect stdin to placate older versions of autoconf. Sigh.
894
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
895
AUTOHEADER=autoheader
896
echo "$ac_t""found" 1>&6
898
AUTOHEADER="$missing_dir/missing autoheader"
899
echo "$ac_t""missing" 1>&6
902
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
903
echo "configure:904: checking for working makeinfo" >&5
904
# Run test in a subshell; some versions of sh will print an error if
905
# an executable is not found, even if stderr is redirected.
906
# Redirect stdin to placate older versions of autoconf. Sigh.
907
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
909
echo "$ac_t""found" 1>&6
911
MAKEINFO="$missing_dir/missing makeinfo"
912
echo "$ac_t""missing" 1>&6
917
if test $host != $build; then
918
ac_tool_prefix=${host_alias}-
923
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
924
set dummy ${ac_tool_prefix}as; ac_word=$2
925
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
926
echo "configure:927: checking for $ac_word" >&5
927
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
928
echo $ac_n "(cached) $ac_c" 1>&6
930
if test -n "$AS"; then
931
ac_cv_prog_AS="$AS" # Let the user override the test.
933
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
935
for ac_dir in $ac_dummy; do
936
test -z "$ac_dir" && ac_dir=.
937
if test -f $ac_dir/$ac_word; then
938
ac_cv_prog_AS="${ac_tool_prefix}as"
946
if test -n "$AS"; then
947
echo "$ac_t""$AS" 1>&6
949
echo "$ac_t""no" 1>&6
953
if test -z "$ac_cv_prog_AS"; then
954
if test -n "$ac_tool_prefix"; then
955
# Extract the first word of "as", so it can be a program name with args.
956
set dummy as; ac_word=$2
957
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
958
echo "configure:959: checking for $ac_word" >&5
959
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
960
echo $ac_n "(cached) $ac_c" 1>&6
962
if test -n "$AS"; then
963
ac_cv_prog_AS="$AS" # Let the user override the test.
965
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
967
for ac_dir in $ac_dummy; do
968
test -z "$ac_dir" && ac_dir=.
969
if test -f $ac_dir/$ac_word; then
975
test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
979
if test -n "$AS"; then
980
echo "$ac_t""$AS" 1>&6
982
echo "$ac_t""no" 1>&6
990
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
991
set dummy ${ac_tool_prefix}ar; ac_word=$2
992
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993
echo "configure:994: checking for $ac_word" >&5
994
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
995
echo $ac_n "(cached) $ac_c" 1>&6
997
if test -n "$AR"; then
998
ac_cv_prog_AR="$AR" # Let the user override the test.
1000
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1002
for ac_dir in $ac_dummy; do
1003
test -z "$ac_dir" && ac_dir=.
1004
if test -f $ac_dir/$ac_word; then
1005
ac_cv_prog_AR="${ac_tool_prefix}ar"
1013
if test -n "$AR"; then
1014
echo "$ac_t""$AR" 1>&6
1016
echo "$ac_t""no" 1>&6
1020
if test -z "$ac_cv_prog_AR"; then
1021
if test -n "$ac_tool_prefix"; then
1022
# Extract the first word of "ar", so it can be a program name with args.
1023
set dummy ar; ac_word=$2
1024
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025
echo "configure:1026: checking for $ac_word" >&5
1026
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1027
echo $ac_n "(cached) $ac_c" 1>&6
1029
if test -n "$AR"; then
1030
ac_cv_prog_AR="$AR" # Let the user override the test.
1032
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034
for ac_dir in $ac_dummy; do
1035
test -z "$ac_dir" && ac_dir=.
1036
if test -f $ac_dir/$ac_word; then
1042
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1046
if test -n "$AR"; then
1047
echo "$ac_t""$AR" 1>&6
1049
echo "$ac_t""no" 1>&6
1057
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1058
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1059
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1060
echo "configure:1061: checking for $ac_word" >&5
1061
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1062
echo $ac_n "(cached) $ac_c" 1>&6
1064
if test -n "$RANLIB"; then
1065
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1067
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1069
for ac_dir in $ac_dummy; do
1070
test -z "$ac_dir" && ac_dir=.
1071
if test -f $ac_dir/$ac_word; then
1072
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1079
RANLIB="$ac_cv_prog_RANLIB"
1080
if test -n "$RANLIB"; then
1081
echo "$ac_t""$RANLIB" 1>&6
1083
echo "$ac_t""no" 1>&6
1087
if test -z "$ac_cv_prog_RANLIB"; then
1088
if test -n "$ac_tool_prefix"; then
1089
# Extract the first word of "ranlib", so it can be a program name with args.
1090
set dummy ranlib; ac_word=$2
1091
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092
echo "configure:1093: checking for $ac_word" >&5
1093
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1094
echo $ac_n "(cached) $ac_c" 1>&6
1096
if test -n "$RANLIB"; then
1097
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1099
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101
for ac_dir in $ac_dummy; do
1102
test -z "$ac_dir" && ac_dir=.
1103
if test -f $ac_dir/$ac_word; then
1104
ac_cv_prog_RANLIB="ranlib"
1109
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1112
RANLIB="$ac_cv_prog_RANLIB"
1113
if test -n "$RANLIB"; then
1114
echo "$ac_t""$RANLIB" 1>&6
1116
echo "$ac_t""no" 1>&6
1124
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1125
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1126
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1127
echo "configure:1128: checking for $ac_word" >&5
1128
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1129
echo $ac_n "(cached) $ac_c" 1>&6
1131
if test -n "$CC"; then
1132
ac_cv_prog_CC="$CC" # Let the user override the test.
1134
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1136
for ac_dir in $ac_dummy; do
1137
test -z "$ac_dir" && ac_dir=.
1138
if test -f $ac_dir/$ac_word; then
1139
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1147
if test -n "$CC"; then
1148
echo "$ac_t""$CC" 1>&6
1150
echo "$ac_t""no" 1>&6
1154
if test -z "$ac_cv_prog_CC"; then
1155
if test -n "$ac_tool_prefix"; then
1156
# Extract the first word of "gcc", so it can be a program name with args.
1157
set dummy gcc; ac_word=$2
1158
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159
echo "configure:1160: checking for $ac_word" >&5
1160
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1161
echo $ac_n "(cached) $ac_c" 1>&6
1163
if test -n "$CC"; then
1164
ac_cv_prog_CC="$CC" # Let the user override the test.
1166
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1168
for ac_dir in $ac_dummy; do
1169
test -z "$ac_dir" && ac_dir=.
1170
if test -f $ac_dir/$ac_word; then
1176
test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1180
if test -n "$CC"; then
1181
echo "$ac_t""$CC" 1>&6
1183
echo "$ac_t""no" 1>&6
1194
*) { echo "configure: error: Wrong C compiler found; check the PATH!" 1>&2; exit 1; } ;;
1198
*) { echo "configure: error: Wrong assembler found; check the PATH!" 1>&2; exit 1; } ;;
1202
*) { echo "configure: error: Wrong archiver found; check the PATH!" 1>&2; exit 1; } ;;
1206
*) { echo "configure: error: Wrong ranlib found; check the PATH!" 1>&2; exit 1; } ;;
1209
# Find a good install program. We prefer a C program (faster),
1210
# so one script is as good as another. But avoid the broken or
1211
# incompatible versions:
1212
# SysV /etc/install, /usr/sbin/install
1213
# SunOS /usr/etc/install
1214
# IRIX /sbin/install
1216
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1217
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1218
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1219
# ./install, which can be erroneously created by make from ./install.sh.
1220
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1221
echo "configure:1222: checking for a BSD compatible install" >&5
1222
if test -z "$INSTALL"; then
1223
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1224
echo $ac_n "(cached) $ac_c" 1>&6
1226
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1227
for ac_dir in $PATH; do
1228
# Account for people who put trailing slashes in PATH elements.
1230
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1232
# OSF1 and SCO ODT 3.0 have their own names for install.
1233
# Don't use installbsd from OSF since it installs stuff as root
1235
for ac_prog in ginstall scoinst install; do
1236
if test -f $ac_dir/$ac_prog; then
1237
if test $ac_prog = install &&
1238
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1239
# AIX install. It has an incompatible calling convention.
1242
ac_cv_path_install="$ac_dir/$ac_prog -c"
1253
if test "${ac_cv_path_install+set}" = set; then
1254
INSTALL="$ac_cv_path_install"
1256
# As a last resort, use the slow shell script. We don't cache a
1257
# path for INSTALL within a source directory, because that will
1258
# break other packages using the cache if that directory is
1259
# removed, or if the path is relative.
1260
INSTALL="$ac_install_sh"
1263
echo "$ac_t""$INSTALL" 1>&6
1265
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1266
# It thinks the first close brace ends the variable substitution.
1267
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1269
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1271
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1276
avrlib_opt_space='-mcall-prologues -Os'
1277
avrlib_opt_speed='-O3'
1285
if test -z "${with_multisubdir}"; then
1286
avrlib_cflags="-mmcu=avr2 ${avrlib_opt_space}"
1287
avrlib_asflags='-mmcu=at90s8515'
1288
AVR_CRT_AT90='crts1200.o crts2313.o crts2323.o crts2333.o crts2343.o \\\
1289
crts4414.o crts4433.o crts4434.o crts8515.o crts8535.o \\\
1291
AVR_CRT_TINY='crttn11.o crttn12.o crttn15.o crttn28.o crttn22.o'
1293
case $with_multisubdir in
1294
avr3) avrlib_cflags=${avrlib_opt_speed}
1295
avrlib_asflags='-mmcu=atmega103'
1296
AVR_CRT_MEGA='crtm103.o crtm603.o'
1298
avr4) avrlib_cflags=${avrlib_opt_space}
1299
avrlib_asflags='-mmcu=atmega83'
1300
AVR_CRT_MEGA='crtm83.o # crtm8.o crtm85.o'
1302
avr5) avrlib_cflags=${avrlib_opt_speed}
1303
avrlib_asflags='-mmcu=atmega161'
1304
AVR_CRT_MEGA='crtm161.o crtm163.o crtm32.o # crtm128.o'
1305
AVR_CRT_OTHER='crtat94k.o'
1307
*) { echo "configure: error: unexpected value '${with_multisubdir}' for with_multisubdir" 1>&2; exit 1; }
1312
AVRLIB_CFLAGS="-g -Wall -W -Wstrict-prototypes ${avrlib_cflags}"
1314
AVRLIB_ASFLAGS="-x assembler-with-cpp -Wa,-gstabs ${avrlib_asflags}"
1316
AVR_CRT_ASFLAGS='-x assembler-with-cpp -Wa,-gstabs'
1323
INCLUDES='-I$(top_srcdir)/include -I$(top_srcdir)/common'
1326
if test "${usegnu}" = "yes"; then
1333
if test "${multilib}" = "yes"; then
1334
multilib_arg="--enable-multilib"
1340
cat > confcache <<\EOF
1341
# This file is a shell script that caches the results of configure
1342
# tests run on this system so they can be shared between configure
1343
# scripts and configure runs. It is not useful on other systems.
1344
# If it contains results you don't want to keep, you may remove or edit it.
1346
# By default, configure uses ./config.cache as the cache file,
1347
# creating it if it does not exist already. You can give configure
1348
# the --cache-file=FILE option to use a different cache file; that is
1349
# what configure does when it calls configure scripts in
1350
# subdirectories, so they share the cache.
1351
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1352
# config.status only pays attention to the cache file if you give it the
1353
# --recheck option to rerun configure.
1356
# The following way of writing the cache mishandles newlines in values,
1357
# but we know of no workaround that is simple, portable, and efficient.
1358
# So, don't put newlines in cache variables' values.
1359
# Ultrix sh set writes to stderr and can't be redirected directly,
1360
# and sets the high bit in the cache file unless we assign to the vars.
1362
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1364
# `set' does not quote correctly, so add quotes (double-quote substitution
1365
# turns \\\\ into \\, and sed turns \\ into \).
1367
-e "s/'/'\\\\''/g" \
1368
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1371
# `set' quotes correctly as required by POSIX, so do not add quotes.
1372
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1375
if cmp -s $cache_file confcache; then
1378
if test -w $cache_file; then
1379
echo "updating cache $cache_file"
1380
cat confcache > $cache_file
1382
echo "not updating unwritable cache $cache_file"
1387
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1389
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1390
# Let make expand exec_prefix.
1391
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1393
# Any assignment to VPATH causes Sun make to only execute
1394
# the first set of double-colon rules, so remove it if not needed.
1395
# If there is a colon in the path, we need to keep it.
1396
if test "x$srcdir" = x.; then
1397
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1400
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1402
# Transform confdefs.h into DEFS.
1403
# Protect against shell expansion while executing Makefile rules.
1404
# Protect against Makefile macro expansion.
1405
cat > conftest.defs <<\EOF
1406
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1407
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1412
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1416
# Without the "./", some shells look in PATH for config.status.
1417
: ${CONFIG_STATUS=./config.status}
1419
echo creating $CONFIG_STATUS
1420
rm -f $CONFIG_STATUS
1421
cat > $CONFIG_STATUS <<EOF
1423
# Generated automatically by configure.
1424
# Run this file to recreate the current configuration.
1425
# This directory was configured as follows,
1426
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1428
# $0 $ac_configure_args
1430
# Compiler output produced by configure, useful for debugging
1431
# configure, is in ./config.log if it exists.
1433
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1436
case "\$ac_option" in
1437
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1438
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1439
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1440
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1441
echo "$CONFIG_STATUS generated by autoconf version 2.13"
1443
-help | --help | --hel | --he | --h)
1444
echo "\$ac_cs_usage"; exit 0 ;;
1445
*) echo "\$ac_cs_usage"; exit 1 ;;
1449
ac_given_srcdir=$srcdir
1450
ac_given_INSTALL="$INSTALL"
1452
trap 'rm -fr `echo "libc/Makefile libc/stdlib/Makefile libc/pmstring/Makefile
1453
libc/string/Makefile libc/misc/Makefile libc/bsd/Makefile
1455
libm/Makefile libm/fplib/Makefile
1456
Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1458
cat >> $CONFIG_STATUS <<EOF
1460
# Protect against being on the right side of a sed subst in config.status.
1461
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1462
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1466
s%@CFLAGS@%$CFLAGS%g
1467
s%@CPPFLAGS@%$CPPFLAGS%g
1468
s%@CXXFLAGS@%$CXXFLAGS%g
1469
s%@FFLAGS@%$FFLAGS%g
1471
s%@LDFLAGS@%$LDFLAGS%g
1473
s%@exec_prefix@%$exec_prefix%g
1474
s%@prefix@%$prefix%g
1475
s%@program_transform_name@%$program_transform_name%g
1476
s%@bindir@%$bindir%g
1477
s%@sbindir@%$sbindir%g
1478
s%@libexecdir@%$libexecdir%g
1479
s%@datadir@%$datadir%g
1480
s%@sysconfdir@%$sysconfdir%g
1481
s%@sharedstatedir@%$sharedstatedir%g
1482
s%@localstatedir@%$localstatedir%g
1483
s%@libdir@%$libdir%g
1484
s%@includedir@%$includedir%g
1485
s%@oldincludedir@%$oldincludedir%g
1486
s%@infodir@%$infodir%g
1487
s%@mandir@%$mandir%g
1488
s%@usegnu@%$usegnu%g
1489
s%@avrlib_basedir@%$avrlib_basedir%g
1491
s%@host_alias@%$host_alias%g
1492
s%@host_cpu@%$host_cpu%g
1493
s%@host_vendor@%$host_vendor%g
1494
s%@host_os@%$host_os%g
1495
s%@target@%$target%g
1496
s%@target_alias@%$target_alias%g
1497
s%@target_cpu@%$target_cpu%g
1498
s%@target_vendor@%$target_vendor%g
1499
s%@target_os@%$target_os%g
1501
s%@build_alias@%$build_alias%g
1502
s%@build_cpu@%$build_cpu%g
1503
s%@build_vendor@%$build_vendor%g
1504
s%@build_os@%$build_os%g
1505
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1506
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1507
s%@INSTALL_DATA@%$INSTALL_DATA%g
1508
s%@PACKAGE@%$PACKAGE%g
1509
s%@VERSION@%$VERSION%g
1510
s%@ACLOCAL@%$ACLOCAL%g
1511
s%@AUTOCONF@%$AUTOCONF%g
1512
s%@AUTOMAKE@%$AUTOMAKE%g
1513
s%@AUTOHEADER@%$AUTOHEADER%g
1514
s%@MAKEINFO@%$MAKEINFO%g
1515
s%@SET_MAKE@%$SET_MAKE%g
1518
s%@RANLIB@%$RANLIB%g
1520
s%@AVRLIB_CFLAGS@%$AVRLIB_CFLAGS%g
1521
s%@AVRLIB_ASFLAGS@%$AVRLIB_ASFLAGS%g
1522
s%@AVR_CRT_ASFLAGS@%$AVR_CRT_ASFLAGS%g
1523
s%@AVR_CRT_AT90@%$AVR_CRT_AT90%g
1524
s%@AVR_CRT_TINY@%$AVR_CRT_TINY%g
1525
s%@AVR_CRT_MEGA@%$AVR_CRT_MEGA%g
1526
s%@AVR_CRT_OTHER@%$AVR_CRT_OTHER%g
1527
s%@INCLUDES@%$INCLUDES%g
1528
s%@LIB_QSORT_DIR@%$LIB_QSORT_DIR%g
1533
cat >> $CONFIG_STATUS <<\EOF
1535
# Split the substitutions into bite-sized pieces for seds with
1536
# small command number limits, like on Digital OSF/1 and HP-UX.
1537
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1538
ac_file=1 # Number of current file.
1539
ac_beg=1 # First line for current file.
1540
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1543
while $ac_more_lines; do
1544
if test $ac_beg -gt 1; then
1545
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1547
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1549
if test ! -s conftest.s$ac_file; then
1551
rm -f conftest.s$ac_file
1553
if test -z "$ac_sed_cmds"; then
1554
ac_sed_cmds="sed -f conftest.s$ac_file"
1556
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1558
ac_file=`expr $ac_file + 1`
1560
ac_end=`expr $ac_end + $ac_max_sed_cmds`
1563
if test -z "$ac_sed_cmds"; then
1568
cat >> $CONFIG_STATUS <<EOF
1570
CONFIG_FILES=\${CONFIG_FILES-"libc/Makefile libc/stdlib/Makefile libc/pmstring/Makefile
1571
libc/string/Makefile libc/misc/Makefile libc/bsd/Makefile
1573
libm/Makefile libm/fplib/Makefile
1576
cat >> $CONFIG_STATUS <<\EOF
1577
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1578
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1580
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1581
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1582
*) ac_file_in="${ac_file}.in" ;;
1585
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1587
# Remove last slash and all that follows it. Not all systems have dirname.
1588
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1589
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1590
# The file is in a subdirectory.
1591
test ! -d "$ac_dir" && mkdir "$ac_dir"
1592
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1593
# A "../" for each directory in $ac_dir_suffix.
1594
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1596
ac_dir_suffix= ac_dots=
1599
case "$ac_given_srcdir" in
1601
if test -z "$ac_dots"; then top_srcdir=.
1602
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1603
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1605
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1606
top_srcdir="$ac_dots$ac_given_srcdir" ;;
1609
case "$ac_given_INSTALL" in
1610
[/$]*) INSTALL="$ac_given_INSTALL" ;;
1611
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1614
echo creating "$ac_file"
1616
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1618
*Makefile*) ac_comsub="1i\\
1619
# $configure_input" ;;
1623
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1625
s%@configure_input@%$configure_input%g
1626
s%@srcdir@%$srcdir%g
1627
s%@top_srcdir@%$top_srcdir%g
1628
s%@INSTALL@%$INSTALL%g
1629
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1634
cat >> $CONFIG_STATUS <<EOF
1638
with_multisubdir=${with_multisubdir}
1639
ac_configure_args="${multilib_arg} ${ac_configure_args}"
1640
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1641
avrlib_basedir=${avrlib_basedir}
1645
cat >> $CONFIG_STATUS <<\EOF
1646
if test -n "$CONFIG_FILES"; then
1647
. ${avrlib_basedir}/config-ml.in
1651
chmod +x $CONFIG_STATUS
1652
rm -fr confdefs* $ac_clean_files
1653
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1