Codebase list newlib / 3b7f8a4
New upstream version 3.3.0 Joaquin de Andres 4 years ago
464 changed file(s) with 55658 addition(s) and 5756 deletion(s). Raw diff Collapse all Expand all
424424 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
425425 POSSIBILITY OF SUCH DAMAGE.
426426
427 (21) BSD-2-Clause-FreeBSD (pru-* targets)
428
429 SPDX-License-Identifier: BSD-2-Clause-FreeBSD
430
431 Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
432 All rights reserved.
433
434 Redistribution and use in source and binary forms, with or without
435 modification, are permitted provided that the following conditions
436 are met:
437 1. Redistributions of source code must retain the above copyright
438 notice, this list of conditions and the following disclaimer.
439 2. Redistributions in binary form must reproduce the above copyright
440 notice, this list of conditions and the following disclaimer in the
441 documentation and/or other materials provided with the distribution.
442
443 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
444 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
445 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
446 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
447 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
448 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
449 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
450 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
451 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
452 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
453
11781178 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
11791179 POSSIBILITY OF SUCH DAMAGE.
11801180
1181 (51) Mentor Graphics (amdgcn-* targets)
1182
1183 Copyright (c) 2014-2017 Mentor Graphics.
1184
1185 The authors hereby grant permission to use, copy, modify, distribute,
1186 and license this software and its documentation for any purpose, provided
1187 that existing copyright notices are retained in all copies and that this
1188 notice is included verbatim in any distributions. No written agreement,
1189 license, or royalty fee is required for any of the authorized uses.
1190 Modifications to this software may be copyrighted by their authors
1191 and need not follow the licensing terms described here, provided that
1192 the new terms are clearly indicated on the first page of each file where
1193 they apply.
1194
1195 (52) BSD-2-Clause-FreeBSD (pru-* targets)
1196
1197 SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1198
1199 Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
1200 All rights reserved.
1201
1202 Redistribution and use in source and binary forms, with or without
1203 modification, are permitted provided that the following conditions
1204 are met:
1205 1. Redistributions of source code must retain the above copyright
1206 notice, this list of conditions and the following disclaimer.
1207 2. Redistributions in binary form must reproduce the above copyright
1208 notice, this list of conditions and the following disclaimer in the
1209 documentation and/or other materials provided with the distribution.
1210
1211 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1212 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1213 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1214 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1215 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1216 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1217 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1218 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1219 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
1220 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1221
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-06-26'
2 # Copyright 1992-2019 Free Software Foundation, Inc.
3
4 timestamp='2019-01-03'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2018 Free Software Foundation, Inc.
52 Copyright 1992-2019 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8383 exit 1
8484 fi
8585
86 trap 'exit 1' 1 2 15
87
8886 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
8987 # compiler to aid in system detection is discouraged as it requires
9088 # temporary files to be created and, as you can see below, it is a
9593
9694 # Portable tmp directory creation inspired by the Autoconf team.
9795
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
109 ,,) echo "int x;" > "$dummy.c" ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
96 tmp=
97 # shellcheck disable=SC2172
98 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
99
100 set_cc_for_build() {
101 : "${TMPDIR=/tmp}"
102 # shellcheck disable=SC2039
103 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
104 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
105 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
106 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
107 dummy=$tmp/dummy
108 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
109 ,,) echo "int x;" > "$dummy.c"
110 for driver in cc gcc c89 c99 ; do
111 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$driver"
113 break
114 fi
115 done
116 if test x"$CC_FOR_BUILD" = x ; then
117 CC_FOR_BUILD=no_compiler_found
118 fi
119 ;;
120 ,,*) CC_FOR_BUILD=$CC ;;
121 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
122 esac
123 }
122124
123125 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124126 # (ghazi@noc.rutgers.edu 1994-08-24)
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
127 if test -f /.attbin/uname ; then
126128 PATH=$PATH:/.attbin ; export PATH
127129 fi
128130
137139 # We could probably try harder.
138140 LIBC=gnu
139141
140 eval "$set_cc_for_build"
142 set_cc_for_build
141143 cat <<-EOF > "$dummy.c"
142144 #include <features.h>
143145 #if defined(__UCLIBC__)
198200 os=netbsdelf
199201 ;;
200202 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
201 eval "$set_cc_for_build"
203 set_cc_for_build
202204 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
203205 | grep -q __ELF__
204206 then
382384 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
383385 exit ;;
384386 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
387 set_cc_for_build
388 SUN_ARCH=sparc
389 # If there is a compiler, see if it is configured for 64-bit objects.
390 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
391 # This test works for both compilers.
392 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
393 if (echo '#ifdef __sparcv9'; echo IS_64BIT_ARCH; echo '#endif') | \
394 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
395 grep IS_64BIT_ARCH >/dev/null
396 then
397 SUN_ARCH=sparcv9
398 fi
399 fi
400 echo "$SUN_ARCH"-sun-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
386401 exit ;;
387402 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
388403 echo i386-pc-auroraux"$UNAME_RELEASE"
389404 exit ;;
390405 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
391 eval "$set_cc_for_build"
406 set_cc_for_build
392407 SUN_ARCH=i386
393408 # If there is a compiler, see if it is configured for 64-bit objects.
394409 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
481496 echo clipper-intergraph-clix"$UNAME_RELEASE"
482497 exit ;;
483498 mips:*:*:UMIPS | mips:*:*:RISCos)
484 eval "$set_cc_for_build"
499 set_cc_for_build
485500 sed 's/^ //' << EOF > "$dummy.c"
486501 #ifdef __cplusplus
487502 #include <stdio.h> /* for printf() prototype */
578593 exit ;;
579594 *:AIX:2:3)
580595 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
581 eval "$set_cc_for_build"
596 set_cc_for_build
582597 sed 's/^ //' << EOF > "$dummy.c"
583598 #include <sys/systemcfg.h>
584599
659674 esac
660675 fi
661676 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
677 set_cc_for_build
663678 sed 's/^ //' << EOF > "$dummy.c"
664679
665680 #define _HPUX_SOURCE
699714 esac
700715 if [ "$HP_ARCH" = hppa2.0w ]
701716 then
702 eval "$set_cc_for_build"
717 set_cc_for_build
703718
704719 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
705720 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
725740 echo ia64-hp-hpux"$HPUX_REV"
726741 exit ;;
727742 3050*:HI-UX:*:*)
728 eval "$set_cc_for_build"
743 set_cc_for_build
729744 sed 's/^ //' << EOF > "$dummy.c"
730745 #include <unistd.h>
731746 int
839854 *:BSD/OS:*:*)
840855 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
841856 exit ;;
857 arm:FreeBSD:*:*)
858 UNAME_PROCESSOR=`uname -p`
859 set_cc_for_build
860 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
861 | grep -q __ARM_PCS_VFP
862 then
863 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
864 else
865 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
866 fi
867 exit ;;
842868 *:FreeBSD:*:*)
843869 UNAME_PROCESSOR=`/usr/bin/uname -p`
844870 case "$UNAME_PROCESSOR" in
880906 echo "$UNAME_MACHINE"-pc-uwin
881907 exit ;;
882908 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
883 echo x86_64-unknown-cygwin
909 echo x86_64-pc-cygwin
884910 exit ;;
885911 prep*:SunOS:5.*:*)
886912 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
921947 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
922948 exit ;;
923949 arm*:Linux:*:*)
924 eval "$set_cc_for_build"
950 set_cc_for_build
925951 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
926952 | grep -q __ARM_EABI__
927953 then
970996 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
971997 exit ;;
972998 mips:Linux:*:* | mips64:Linux:*:*)
973 eval "$set_cc_for_build"
999 set_cc_for_build
9741000 sed 's/^ //' << EOF > "$dummy.c"
9751001 #undef CPU
9761002 #undef ${UNAME_MACHINE}
12841310 exit ;;
12851311 *:Darwin:*:*)
12861312 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1287 eval "$set_cc_for_build"
1313 set_cc_for_build
12881314 if test "$UNAME_PROCESSOR" = unknown ; then
12891315 UNAME_PROCESSOR=powerpc
12901316 fi
13571383 # "uname -m" is not consistent, so use $cputype instead. 386
13581384 # is converted to i386 for consistency with other x86
13591385 # operating systems.
1386 # shellcheck disable=SC2154
13601387 if test "$cputype" = 386; then
13611388 UNAME_MACHINE=i386
13621389 else
14131440 amd64:Isilon\ OneFS:*:*)
14141441 echo x86_64-unknown-onefs
14151442 exit ;;
1443 *:Unleashed:*:*)
1444 echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE"
1445 exit ;;
14161446 esac
14171447
14181448 echo "$0: unable to guess system type" >&2
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-07-03'
2 # Copyright 1992-2019 Free Software Foundation, Inc.
3
4 timestamp='2019-01-01'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
6666 version="\
6767 GNU config.sub ($timestamp)
6868
69 Copyright 1992-2018 Free Software Foundation, Inc.
69 Copyright 1992-2019 Free Software Foundation, Inc.
7070
7171 This is free software; see the source for copying conditions. There is NO
7272 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8888 - ) # Use stdin as input.
8989 break ;;
9090 -* )
91 echo "$me: invalid option $1$help"
91 echo "$me: invalid option $1$help" >&2
9292 exit 1 ;;
9393
9494 *local*)
110110 esac
111111
112112 # Split fields of configuration type
113 IFS="-" read -r field1 field2 field3 field4 <<EOF
113 # shellcheck disable=SC2162
114 IFS="-" read field1 field2 field3 field4 <<EOF
114115 $1
115116 EOF
116117
148149 esac
149150 ;;
150151 *-*)
151 # Second component is usually, but not always the OS
152 case $field2 in
153 # Prevent following clause from handling this valid os
154 sun*os*)
155 basic_machine=$field1
156 os=$field2
157 ;;
158 # Manufacturers
159 dec* | mips* | sequent* | encore* | pc532* | sgi* | sony* \
160 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
161 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
162 | convergent* | ncr* | news | 32* | 3600* | 3100* | hitachi* \
163 | c[123]* | convex* | sun | crds | omron* | dg | ultra | tti* \
164 | harris | dolphin | highlevel | gould | cbm | ns | masscomp \
165 | apple | axis | knuth | cray | microblaze* \
166 | sim | cisco | oki | wec | wrs | winbond)
167 basic_machine=$field1-$field2
152 # A lone config we happen to match not fitting any pattern
153 case $field1-$field2 in
154 decstation-3100)
155 basic_machine=mips-dec
168156 os=
169157 ;;
170 *)
171 basic_machine=$field1
172 os=$field2
173 ;;
158 *-*)
159 # Second component is usually, but not always the OS
160 case $field2 in
161 # Prevent following clause from handling this valid os
162 sun*os*)
163 basic_machine=$field1
164 os=$field2
165 ;;
166 # Manufacturers
167 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
168 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
169 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
170 | convergent* | ncr* | news | 32* | 3600* | 3100* \
171 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
172 | ultra | tti* | harris | dolphin | highlevel | gould \
173 | cbm | ns | masscomp | apple | axis | knuth | cray \
174 | microblaze* | sim | cisco \
175 | oki | wec | wrs | winbond)
176 basic_machine=$field1-$field2
177 os=
178 ;;
179 *)
180 basic_machine=$field1
181 os=$field2
182 ;;
183 esac
184 ;;
174185 esac
175186 ;;
176187 *)
189200 basic_machine=m68010-adobe
190201 os=scout
191202 ;;
203 alliant)
204 basic_machine=fx80-alliant
205 os=
206 ;;
207 altos | altos3068)
208 basic_machine=m68k-altos
209 os=
210 ;;
192211 am29k)
193212 basic_machine=a29k-none
194213 os=bsd
197216 basic_machine=580-amdahl
198217 os=sysv
199218 ;;
219 amiga)
220 basic_machine=m68k-unknown
221 os=
222 ;;
200223 amigaos | amigados)
201224 basic_machine=m68k-unknown
202225 os=amigaos
233256 basic_machine=arm-unknown
234257 os=cegcc
235258 ;;
259 convex-c1)
260 basic_machine=c1-convex
261 os=bsd
262 ;;
263 convex-c2)
264 basic_machine=c2-convex
265 os=bsd
266 ;;
267 convex-c32)
268 basic_machine=c32-convex
269 os=bsd
270 ;;
271 convex-c34)
272 basic_machine=c34-convex
273 os=bsd
274 ;;
275 convex-c38)
276 basic_machine=c38-convex
277 os=bsd
278 ;;
236279 cray)
237280 basic_machine=j90-cray
238281 os=unicos
239282 ;;
240 craynv)
241 basic_machine=craynv-cray
242 os=unicosmp
283 crds | unos)
284 basic_machine=m68k-crds
285 os=
286 ;;
287 da30)
288 basic_machine=m68k-da30
289 os=
290 ;;
291 decstation | pmax | pmin | dec3100 | decstatn)
292 basic_machine=mips-dec
293 os=
243294 ;;
244295 delta88)
245296 basic_machine=m88k-motorola
285336 basic_machine=m88k-harris
286337 os=sysv3
287338 ;;
339 hp300)
340 basic_machine=m68k-hp
341 ;;
288342 hp300bsd)
289343 basic_machine=m68k-hp
290344 os=bsd
306360 os=mach
307361 ;;
308362 vsta)
309 basic_machine=i386-unknown
363 basic_machine=i386-pc
310364 os=vsta
311365 ;;
312366 isi68 | isi)
370424 os=sysv4
371425 ;;
372426 netbsd386)
373 basic_machine=i386-unknown
427 basic_machine=i386-pc
374428 os=netbsd
375429 ;;
376430 netwinder)
453507 basic_machine=mips-sei
454508 os=seiux
455509 ;;
510 sequent)
511 basic_machine=i386-sequent
512 os=
513 ;;
456514 sps7)
457515 basic_machine=m68k-bull
458516 os=sysv2
459517 ;;
518 st2000)
519 basic_machine=m68k-tandem
520 os=
521 ;;
460522 stratus)
461523 basic_machine=i860-stratus
462524 os=sysv4
463525 ;;
526 sun2)
527 basic_machine=m68000-sun
528 os=
529 ;;
464530 sun2os3)
465531 basic_machine=m68000-sun
466532 os=sunos3
469535 basic_machine=m68000-sun
470536 os=sunos4
471537 ;;
538 sun3)
539 basic_machine=m68k-sun
540 os=
541 ;;
472542 sun3os3)
473543 basic_machine=m68k-sun
474544 os=sunos3
477547 basic_machine=m68k-sun
478548 os=sunos4
479549 ;;
550 sun4)
551 basic_machine=sparc-sun
552 os=
553 ;;
480554 sun4os3)
481555 basic_machine=sparc-sun
482556 os=sunos3
489563 basic_machine=sparc-sun
490564 os=solaris2
491565 ;;
566 sun386 | sun386i | roadrunner)
567 basic_machine=i386-sun
568 os=
569 ;;
492570 sv1)
493571 basic_machine=sv1-cray
494572 os=unicos
561639 ;;
562640 esac
563641
564 # Decode aliases for certain CPU-COMPANY combinations.
642 # Decode 1-component or ad-hoc basic machines
565643 case $basic_machine in
566 # Recognize the basic CPU types without company name.
567 # Some are omitted here because they have special meanings below.
568 1750a | 580 \
569 | a29k \
570 | aarch64 | aarch64_be \
571 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
572 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
573 | am33_2.0 \
574 | arc | arceb \
575 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \
576 | avr | avr32 \
577 | ba \
578 | be32 | be64 \
579 | bfin \
580 | c4x | c8051 | clipper | csky \
581 | d10v | d30v | dlx | dsp16xx \
582 | e2k | epiphany \
583 | fido | fr30 | frv | ft32 \
584 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
585 | hexagon \
586 | i370 | i860 | i960 | ia16 | ia64 \
587 | ip2k | iq2000 \
588 | k1om \
589 | le32 | le64 \
590 | lm32 \
591 | m32c | m32r | m32rle | m68000 | m68k | m88k \
592 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
593 | mips | mipsbe | mipseb | mipsel | mipsle \
594 | mips16 \
595 | mips64 | mips64el \
596 | mips64octeon | mips64octeonel \
597 | mips64orion | mips64orionel \
598 | mips64r5900 | mips64r5900el \
599 | mips64vr | mips64vrel \
600 | mips64vr4100 | mips64vr4100el \
601 | mips64vr4300 | mips64vr4300el \
602 | mips64vr5000 | mips64vr5000el \
603 | mips64vr5900 | mips64vr5900el \
604 | mipsisa32 | mipsisa32el \
605 | mipsisa32r2 | mipsisa32r2el \
606 | mipsisa32r6 | mipsisa32r6el \
607 | mipsisa64 | mipsisa64el \
608 | mipsisa64r2 | mipsisa64r2el \
609 | mipsisa64r6 | mipsisa64r6el \
610 | mipsisa64sb1 | mipsisa64sb1el \
611 | mipsisa64sr71k | mipsisa64sr71kel \
612 | mipsr5900 | mipsr5900el \
613 | mipstx39 | mipstx39el \
614 | mn10200 | mn10300 \
615 | moxie \
616 | mt \
617 | msp430 \
618 | nds32 | nds32le | nds32be \
619 | nfp \
620 | nios | nios2 | nios2eb | nios2el \
621 | ns16k | ns32k \
622 | open8 | or1k | or1knd | or32 \
623 | pdp10 | pj | pjl \
624 | powerpc | powerpc64 | powerpc64le | powerpcle \
625 | pru \
626 | pyramid \
627 | riscv | riscv32 | riscv64 \
628 | rl78 | rx \
629 | score \
630 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
631 | sh64 | sh64le \
632 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
633 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
634 | spu \
635 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
636 | ubicom32 \
637 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
638 | visium \
639 | wasm32 \
640 | x86 | xc16x | xstormy16 | xtensa \
641 | z8k | z80)
642 basic_machine=$basic_machine-unknown
643 ;;
644 c54x)
645 basic_machine=tic54x-unknown
646 ;;
647 c55x)
648 basic_machine=tic55x-unknown
649 ;;
650 c6x)
651 basic_machine=tic6x-unknown
652 ;;
653 leon|leon[3-9])
654 basic_machine=sparc-$basic_machine
655 ;;
656 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
657 basic_machine=$basic_machine-unknown
658 os=${os:-none}
659 ;;
660 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
661 ;;
662 m9s12z | m68hcs12z | hcs12z | s12z)
663 basic_machine=s12z-unknown
664 os=${os:-none}
665 ;;
666 ms1)
667 basic_machine=mt-unknown
668 ;;
669 strongarm | thumb | xscale)
670 basic_machine=arm-unknown
671 ;;
672 xgate)
673 basic_machine=$basic_machine-unknown
674 os=${os:-none}
675 ;;
676 xscaleeb)
677 basic_machine=armeb-unknown
678 ;;
679
680 xscaleel)
681 basic_machine=armel-unknown
682 ;;
683
684 # We use `pc' rather than `unknown'
685 # because (1) that's what they normally are, and
686 # (2) the word "unknown" tends to confuse beginning users.
687 i*86 | x86_64)
688 basic_machine=$basic_machine-pc
689 ;;
690 # Recognize the basic CPU types with company name.
691 580-* \
692 | a29k-* \
693 | aarch64-* | aarch64_be-* \
694 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
695 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
696 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
697 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
698 | avr-* | avr32-* \
699 | ba-* \
700 | be32-* | be64-* \
701 | bfin-* | bs2000-* \
702 | c[123]* | c30-* | [cjt]90-* | c4x-* \
703 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
704 | d10v-* | d30v-* | dlx-* \
705 | e2k-* | elxsi-* \
706 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
707 | h8300-* | h8500-* \
708 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
709 | hexagon-* \
710 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
711 | ip2k-* | iq2000-* \
712 | k1om-* \
713 | le32-* | le64-* \
714 | lm32-* \
715 | m32c-* | m32r-* | m32rle-* \
716 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
717 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
718 | microblaze-* | microblazeel-* \
719 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
720 | mips16-* \
721 | mips64-* | mips64el-* \
722 | mips64octeon-* | mips64octeonel-* \
723 | mips64orion-* | mips64orionel-* \
724 | mips64r5900-* | mips64r5900el-* \
725 | mips64vr-* | mips64vrel-* \
726 | mips64vr4100-* | mips64vr4100el-* \
727 | mips64vr4300-* | mips64vr4300el-* \
728 | mips64vr5000-* | mips64vr5000el-* \
729 | mips64vr5900-* | mips64vr5900el-* \
730 | mipsisa32-* | mipsisa32el-* \
731 | mipsisa32r2-* | mipsisa32r2el-* \
732 | mipsisa32r6-* | mipsisa32r6el-* \
733 | mipsisa64-* | mipsisa64el-* \
734 | mipsisa64r2-* | mipsisa64r2el-* \
735 | mipsisa64r6-* | mipsisa64r6el-* \
736 | mipsisa64sb1-* | mipsisa64sb1el-* \
737 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
738 | mipsr5900-* | mipsr5900el-* \
739 | mipstx39-* | mipstx39el-* \
740 | mmix-* \
741 | mt-* \
742 | msp430-* \
743 | nds32-* | nds32le-* | nds32be-* \
744 | nfp-* \
745 | nios-* | nios2-* | nios2eb-* | nios2el-* \
746 | none-* | np1-* | ns16k-* | ns32k-* \
747 | open8-* \
748 | or1k*-* \
749 | orion-* \
750 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
751 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
752 | pru-* \
753 | pyramid-* \
754 | riscv-* | riscv32-* | riscv64-* \
755 | rl78-* | romp-* | rs6000-* | rx-* \
756 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
757 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
758 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
759 | sparclite-* \
760 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
761 | tahoe-* \
762 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
763 | tile*-* \
764 | tron-* \
765 | ubicom32-* \
766 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
767 | vax-* \
768 | visium-* \
769 | wasm32-* \
770 | we32k-* \
771 | x86-* | x86_64-* | xc16x-* | xps100-* \
772 | xstormy16-* | xtensa*-* \
773 | ymp-* \
774 | z8k-* | z80-*)
775 ;;
776 # Recognize the basic CPU types without company name, with glob match.
777 xtensa*)
778 basic_machine=$basic_machine-unknown
779 ;;
644 # Here we handle the default manufacturer of certain CPU types. It is in
645 # some cases the only manufacturer, in others, it is the most popular.
646 w89k)
647 cpu=hppa1.1
648 vendor=winbond
649 ;;
650 op50n)
651 cpu=hppa1.1
652 vendor=oki
653 ;;
654 op60c)
655 cpu=hppa1.1
656 vendor=oki
657 ;;
658 ibm*)
659 cpu=i370
660 vendor=ibm
661 ;;
662 orion105)
663 cpu=clipper
664 vendor=highlevel
665 ;;
666 mac | mpw | mac-mpw)
667 cpu=m68k
668 vendor=apple
669 ;;
670 pmac | pmac-mpw)
671 cpu=powerpc
672 vendor=apple
673 ;;
674
780675 # Recognize the various machine names and aliases which stand
781676 # for a CPU type and a company and sometimes even an OS.
782677 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
783 basic_machine=m68000-att
678 cpu=m68000
679 vendor=att
784680 ;;
785681 3b*)
786 basic_machine=we32k-att
787 ;;
788 abacus)
789 basic_machine=abacus-unknown
790 ;;
791 alliant | fx80)
792 basic_machine=fx80-alliant
793 ;;
794 altos | altos3068)
795 basic_machine=m68k-altos
796 ;;
797 amd64)
798 basic_machine=x86_64-pc
799 ;;
800 amd64-*)
801 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
802 ;;
803 amiga | amiga-*)
804 basic_machine=m68k-unknown
805 ;;
806 asmjs)
807 basic_machine=asmjs-unknown
808 ;;
809 blackfin-*)
810 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
811 os=linux
682 cpu=we32k
683 vendor=att
812684 ;;
813685 bluegene*)
814 basic_machine=powerpc-ibm
686 cpu=powerpc
687 vendor=ibm
815688 os=cnk
816689 ;;
817 c54x-*)
818 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
819 ;;
820 c55x-*)
821 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
822 ;;
823 c6x-*)
824 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
825 ;;
826 c90)
827 basic_machine=c90-cray
828 os=${os:-unicos}
829 ;;
830 convex-c1)
831 basic_machine=c1-convex
832 os=bsd
833 ;;
834 convex-c2)
835 basic_machine=c2-convex
836 os=bsd
837 ;;
838 convex-c32)
839 basic_machine=c32-convex
840 os=bsd
841 ;;
842 convex-c34)
843 basic_machine=c34-convex
844 os=bsd
845 ;;
846 convex-c38)
847 basic_machine=c38-convex
848 os=bsd
849 ;;
850 cr16 | cr16-*)
851 basic_machine=cr16-unknown
852 os=${os:-elf}
853 ;;
854 crds | unos)
855 basic_machine=m68k-crds
856 ;;
857 crisv32 | crisv32-* | etraxfs*)
858 basic_machine=crisv32-axis
859 ;;
860 cris | cris-* | etrax*)
861 basic_machine=cris-axis
862 ;;
863 crx)
864 basic_machine=crx-unknown
865 os=${os:-elf}
866 ;;
867 da30 | da30-*)
868 basic_machine=m68k-da30
869 ;;
870 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
871 basic_machine=mips-dec
872 ;;
873690 decsystem10* | dec10*)
874 basic_machine=pdp10-dec
691 cpu=pdp10
692 vendor=dec
875693 os=tops10
876694 ;;
877695 decsystem20* | dec20*)
878 basic_machine=pdp10-dec
696 cpu=pdp10
697 vendor=dec
879698 os=tops20
880699 ;;
881700 delta | 3300 | motorola-3300 | motorola-delta \
882701 | 3300-motorola | delta-motorola)
883 basic_machine=m68k-motorola
884 ;;
885 dpx20 | dpx20-*)
886 basic_machine=rs6000-bull
887 os=${os:-bosx}
702 cpu=m68k
703 vendor=motorola
888704 ;;
889705 dpx2*)
890 basic_machine=m68k-bull
706 cpu=m68k
707 vendor=bull
891708 os=sysv3
892709 ;;
893 e500v[12])
894 basic_machine=powerpc-unknown
895 os=$os"spe"
896 ;;
897 e500v[12]-*)
898 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
899 os=$os"spe"
900 ;;
901710 encore | umax | mmax)
902 basic_machine=ns32k-encore
711 cpu=ns32k
712 vendor=encore
903713 ;;
904714 elxsi)
905 basic_machine=elxsi-elxsi
715 cpu=elxsi
716 vendor=elxsi
906717 os=${os:-bsd}
907718 ;;
908719 fx2800)
909 basic_machine=i860-alliant
720 cpu=i860
721 vendor=alliant
910722 ;;
911723 genix)
912 basic_machine=ns32k-ns
724 cpu=ns32k
725 vendor=ns
913726 ;;
914727 h3050r* | hiux*)
915 basic_machine=hppa1.1-hitachi
728 cpu=hppa1.1
729 vendor=hitachi
916730 os=hiuxwe2
917731 ;;
918 hp300-*)
919 basic_machine=m68k-hp
920 ;;
921732 hp3k9[0-9][0-9] | hp9[0-9][0-9])
922 basic_machine=hppa1.0-hp
733 cpu=hppa1.0
734 vendor=hp
923735 ;;
924736 hp9k2[0-9][0-9] | hp9k31[0-9])
925 basic_machine=m68000-hp
737 cpu=m68000
738 vendor=hp
926739 ;;
927740 hp9k3[2-9][0-9])
928 basic_machine=m68k-hp
741 cpu=m68k
742 vendor=hp
929743 ;;
930744 hp9k6[0-9][0-9] | hp6[0-9][0-9])
931 basic_machine=hppa1.0-hp
745 cpu=hppa1.0
746 vendor=hp
932747 ;;
933748 hp9k7[0-79][0-9] | hp7[0-79][0-9])
934 basic_machine=hppa1.1-hp
749 cpu=hppa1.1
750 vendor=hp
935751 ;;
936752 hp9k78[0-9] | hp78[0-9])
937753 # FIXME: really hppa2.0-hp
938 basic_machine=hppa1.1-hp
754 cpu=hppa1.1
755 vendor=hp
939756 ;;
940757 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
941758 # FIXME: really hppa2.0-hp
942 basic_machine=hppa1.1-hp
759 cpu=hppa1.1
760 vendor=hp
943761 ;;
944762 hp9k8[0-9][13679] | hp8[0-9][13679])
945 basic_machine=hppa1.1-hp
763 cpu=hppa1.1
764 vendor=hp
946765 ;;
947766 hp9k8[0-9][0-9] | hp8[0-9][0-9])
948 basic_machine=hppa1.0-hp
949 ;;
950 i370-ibm* | ibm*)
951 basic_machine=i370-ibm
767 cpu=hppa1.0
768 vendor=hp
952769 ;;
953770 i*86v32)
954 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
771 cpu=`echo "$1" | sed -e 's/86.*/86/'`
772 vendor=pc
955773 os=sysv32
956774 ;;
957775 i*86v4*)
958 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
776 cpu=`echo "$1" | sed -e 's/86.*/86/'`
777 vendor=pc
959778 os=sysv4
960779 ;;
961780 i*86v)
962 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
781 cpu=`echo "$1" | sed -e 's/86.*/86/'`
782 vendor=pc
963783 os=sysv
964784 ;;
965785 i*86sol2)
966 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
786 cpu=`echo "$1" | sed -e 's/86.*/86/'`
787 vendor=pc
967788 os=solaris2
968789 ;;
969790 j90 | j90-cray)
970 basic_machine=j90-cray
791 cpu=j90
792 vendor=cray
971793 os=${os:-unicos}
972794 ;;
973795 iris | iris4d)
974 basic_machine=mips-sgi
796 cpu=mips
797 vendor=sgi
975798 case $os in
976799 irix*)
977800 ;;
980803 ;;
981804 esac
982805 ;;
983 leon-*|leon[3-9]-*)
984 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
985 ;;
986 m68knommu-*)
987 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
988 os=linux
989 ;;
990 microblaze*)
991 basic_machine=microblaze-xilinx
992 ;;
993806 miniframe)
994 basic_machine=m68000-convergent
807 cpu=m68000
808 vendor=convergent
995809 ;;
996810 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
997 basic_machine=m68k-atari
811 cpu=m68k
812 vendor=atari
998813 os=mint
999814 ;;
1000 mips3*-*)
1001 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
1002 ;;
1003 mips3*)
1004 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
1005 ;;
1006 ms1-*)
1007 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
1008 ;;
1009815 news-3600 | risc-news)
1010 basic_machine=mips-sony
816 cpu=mips
817 vendor=sony
1011818 os=newsos
1012819 ;;
1013820 next | m*-next)
1014 basic_machine=m68k-next
821 cpu=m68k
822 vendor=next
1015823 case $os in
1016824 nextstep* )
1017825 ;;
1024832 esac
1025833 ;;
1026834 np1)
1027 basic_machine=np1-gould
835 cpu=np1
836 vendor=gould
837 ;;
838 op50n-* | op60c-*)
839 cpu=hppa1.1
840 vendor=oki
841 os=proelf
842 ;;
843 pa-hitachi)
844 cpu=hppa1.1
845 vendor=hitachi
846 os=hiuxwe2
847 ;;
848 pbd)
849 cpu=sparc
850 vendor=tti
851 ;;
852 pbb)
853 cpu=m68k
854 vendor=tti
855 ;;
856 pc532)
857 cpu=ns32k
858 vendor=pc532
859 ;;
860 pn)
861 cpu=pn
862 vendor=gould
863 ;;
864 power)
865 cpu=power
866 vendor=ibm
867 ;;
868 ps2)
869 cpu=i386
870 vendor=ibm
871 ;;
872 rm[46]00)
873 cpu=mips
874 vendor=siemens
875 ;;
876 rtpc | rtpc-*)
877 cpu=romp
878 vendor=ibm
879 ;;
880 sde)
881 cpu=mipsisa32
882 vendor=sde
883 os=${os:-elf}
884 ;;
885 simso-wrs)
886 cpu=sparclite
887 vendor=wrs
888 os=vxworks
889 ;;
890 tower | tower-32)
891 cpu=m68k
892 vendor=ncr
893 ;;
894 vpp*|vx|vx-*)
895 cpu=f301
896 vendor=fujitsu
897 ;;
898 w65)
899 cpu=w65
900 vendor=wdc
901 ;;
902 w89k-*)
903 cpu=hppa1.1
904 vendor=winbond
905 os=proelf
906 ;;
907 none)
908 cpu=none
909 vendor=none
910 ;;
911 leon|leon[3-9])
912 cpu=sparc
913 vendor=$basic_machine
914 ;;
915 leon-*|leon[3-9]-*)
916 cpu=sparc
917 vendor=`echo "$basic_machine" | sed 's/-.*//'`
918 ;;
919
920 *-*)
921 # shellcheck disable=SC2162
922 IFS="-" read cpu vendor <<EOF
923 $basic_machine
924 EOF
925 ;;
926 # We use `pc' rather than `unknown'
927 # because (1) that's what they normally are, and
928 # (2) the word "unknown" tends to confuse beginning users.
929 i*86 | x86_64)
930 cpu=$basic_machine
931 vendor=pc
932 ;;
933 # These rules are duplicated from below for sake of the special case above;
934 # i.e. things that normalized to x86 arches should also default to "pc"
935 pc98)
936 cpu=i386
937 vendor=pc
938 ;;
939 x64 | amd64)
940 cpu=x86_64
941 vendor=pc
942 ;;
943 # Recognize the basic CPU types without company name.
944 *)
945 cpu=$basic_machine
946 vendor=unknown
947 ;;
948 esac
949
950 unset -v basic_machine
951
952 # Decode basic machines in the full and proper CPU-Company form.
953 case $cpu-$vendor in
954 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
955 # some cases the only manufacturer, in others, it is the most popular.
956 craynv-unknown)
957 vendor=cray
958 os=${os:-unicosmp}
959 ;;
960 c90-unknown | c90-cray)
961 vendor=cray
962 os=${os:-unicos}
963 ;;
964 fx80-unknown)
965 vendor=alliant
966 ;;
967 romp-unknown)
968 vendor=ibm
969 ;;
970 mmix-unknown)
971 vendor=knuth
972 ;;
973 microblaze-unknown | microblazeel-unknown)
974 vendor=xilinx
975 ;;
976 rs6000-unknown)
977 vendor=ibm
978 ;;
979 vax-unknown)
980 vendor=dec
981 ;;
982 pdp11-unknown)
983 vendor=dec
984 ;;
985 we32k-unknown)
986 vendor=att
987 ;;
988 cydra-unknown)
989 vendor=cydrome
990 ;;
991 i370-ibm*)
992 vendor=ibm
993 ;;
994 orion-unknown)
995 vendor=highlevel
996 ;;
997 xps-unknown | xps100-unknown)
998 cpu=xps100
999 vendor=honeywell
1000 ;;
1001
1002 # Here we normalize CPU types with a missing or matching vendor
1003 dpx20-unknown | dpx20-bull)
1004 cpu=rs6000
1005 vendor=bull
1006 os=${os:-bosx}
1007 ;;
1008
1009 # Here we normalize CPU types irrespective of the vendor
1010 amd64-*)
1011 cpu=x86_64
1012 ;;
1013 blackfin-*)
1014 cpu=bfin
1015 os=linux
1016 ;;
1017 c54x-*)
1018 cpu=tic54x
1019 ;;
1020 c55x-*)
1021 cpu=tic55x
1022 ;;
1023 c6x-*)
1024 cpu=tic6x
1025 ;;
1026 e500v[12]-*)
1027 cpu=powerpc
1028 os=$os"spe"
1029 ;;
1030 mips3*-*)
1031 cpu=mips64
1032 ;;
1033 ms1-*)
1034 cpu=mt
1035 ;;
1036 m68knommu-*)
1037 cpu=m68k
1038 os=linux
1039 ;;
1040 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1041 cpu=s12z
1042 ;;
1043 openrisc-*)
1044 cpu=or32
1045 ;;
1046 parisc-*)
1047 cpu=hppa
1048 os=linux
1049 ;;
1050 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1051 cpu=i586
1052 ;;
1053 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1054 cpu=i686
1055 ;;
1056 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1057 cpu=i686
1058 ;;
1059 pentium4-*)
1060 cpu=i786
1061 ;;
1062 pc98-*)
1063 cpu=i386
1064 ;;
1065 ppc-* | ppcbe-*)
1066 cpu=powerpc
1067 ;;
1068 ppcle-* | powerpclittle-*)
1069 cpu=powerpcle
1070 ;;
1071 ppc64-*)
1072 cpu=powerpc64
1073 ;;
1074 ppc64le-* | powerpc64little-*)
1075 cpu=powerpc64le
1076 ;;
1077 sb1-*)
1078 cpu=mipsisa64sb1
1079 ;;
1080 sb1el-*)
1081 cpu=mipsisa64sb1el
1082 ;;
1083 sh5e[lb]-*)
1084 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1085 ;;
1086 spur-*)
1087 cpu=spur
1088 ;;
1089 strongarm-* | thumb-*)
1090 cpu=arm
1091 ;;
1092 tx39-*)
1093 cpu=mipstx39
1094 ;;
1095 tx39el-*)
1096 cpu=mipstx39el
1097 ;;
1098 x64-*)
1099 cpu=x86_64
1100 ;;
1101 xscale-* | xscalee[bl]-*)
1102 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1103 ;;
1104
1105 # Recognize the canonical CPU Types that limit and/or modify the
1106 # company names they are paired with.
1107 cr16-*)
1108 os=${os:-elf}
1109 ;;
1110 crisv32-* | etraxfs*-*)
1111 cpu=crisv32
1112 vendor=axis
1113 ;;
1114 cris-* | etrax*-*)
1115 cpu=cris
1116 vendor=axis
1117 ;;
1118 crx-*)
1119 os=${os:-elf}
10281120 ;;
10291121 neo-tandem)
1030 basic_machine=neo-tandem
1122 cpu=neo
1123 vendor=tandem
10311124 ;;
10321125 nse-tandem)
1033 basic_machine=nse-tandem
1126 cpu=nse
1127 vendor=tandem
10341128 ;;
10351129 nsr-tandem)
1036 basic_machine=nsr-tandem
1130 cpu=nsr
1131 vendor=tandem
10371132 ;;
10381133 nsv-tandem)
1039 basic_machine=nsv-tandem
1134 cpu=nsv
1135 vendor=tandem
10401136 ;;
10411137 nsx-tandem)
1042 basic_machine=nsx-tandem
1043 ;;
1044 op50n-* | op60c-*)
1045 basic_machine=hppa1.1-oki
1046 os=proelf
1047 ;;
1048 openrisc | openrisc-*)
1049 basic_machine=or32-unknown
1050 ;;
1051 pa-hitachi)
1052 basic_machine=hppa1.1-hitachi
1053 os=hiuxwe2
1054 ;;
1055 parisc-*)
1056 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1057 os=linux
1058 ;;
1059 pbd)
1060 basic_machine=sparc-tti
1061 ;;
1062 pbb)
1063 basic_machine=m68k-tti
1064 ;;
1065 pc532 | pc532-*)
1066 basic_machine=ns32k-pc532
1067 ;;
1068 pc98)
1069 basic_machine=i386-pc
1070 ;;
1071 pc98-*)
1072 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1073 ;;
1074 pentium | p5 | k5 | k6 | nexgen | viac3)
1075 basic_machine=i586-pc
1076 ;;
1077 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1078 basic_machine=i686-pc
1079 ;;
1080 pentiumii | pentium2 | pentiumiii | pentium3)
1081 basic_machine=i686-pc
1082 ;;
1083 pentium4)
1084 basic_machine=i786-pc
1085 ;;
1086 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1087 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1088 ;;
1089 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1090 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1091 ;;
1092 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1093 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1094 ;;
1095 pentium4-*)
1096 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1097 ;;
1098 pn)
1099 basic_machine=pn-gould
1100 ;;
1101 power) basic_machine=power-ibm
1102 ;;
1103 ppc | ppcbe) basic_machine=powerpc-unknown
1104 ;;
1105 ppc-* | ppcbe-*)
1106 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1107 ;;
1108 ppcle | powerpclittle)
1109 basic_machine=powerpcle-unknown
1110 ;;
1111 ppcle-* | powerpclittle-*)
1112 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1113 ;;
1114 ppc64) basic_machine=powerpc64-unknown
1115 ;;
1116 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1117 ;;
1118 ppc64le | powerpc64little)
1119 basic_machine=powerpc64le-unknown
1120 ;;
1121 ppc64le-* | powerpc64little-*)
1122 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1123 ;;
1124 ps2)
1125 basic_machine=i386-ibm
1126 ;;
1127 rm[46]00)
1128 basic_machine=mips-siemens
1129 ;;
1130 rtpc | rtpc-*)
1131 basic_machine=romp-ibm
1132 ;;
1133 s390 | s390-*)
1134 basic_machine=s390-ibm
1135 ;;
1136 s390x | s390x-*)
1137 basic_machine=s390x-ibm
1138 ;;
1139 sb1)
1140 basic_machine=mipsisa64sb1-unknown
1141 ;;
1142 sb1el)
1143 basic_machine=mipsisa64sb1el-unknown
1144 ;;
1145 sde)
1146 basic_machine=mipsisa32-sde
1147 os=${os:-elf}
1148 ;;
1149 sequent)
1150 basic_machine=i386-sequent
1151 ;;
1152 sh5el)
1153 basic_machine=sh5le-unknown
1154 ;;
1155 simso-wrs)
1156 basic_machine=sparclite-wrs
1157 os=vxworks
1158 ;;
1159 spur)
1160 basic_machine=spur-unknown
1161 ;;
1162 st2000)
1163 basic_machine=m68k-tandem
1164 ;;
1165 strongarm-* | thumb-*)
1166 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1167 ;;
1168 sun2)
1169 basic_machine=m68000-sun
1170 ;;
1171 sun3 | sun3-*)
1172 basic_machine=m68k-sun
1173 ;;
1174 sun4)
1175 basic_machine=sparc-sun
1176 ;;
1177 sun386 | sun386i | roadrunner)
1178 basic_machine=i386-sun
1179 ;;
1180 tile*)
1181 basic_machine=$basic_machine-unknown
1182 os=linux-gnu
1183 ;;
1184 tx39)
1185 basic_machine=mipstx39-unknown
1186 ;;
1187 tx39el)
1188 basic_machine=mipstx39el-unknown
1189 ;;
1190 tower | tower-32)
1191 basic_machine=m68k-ncr
1192 ;;
1193 vpp*|vx|vx-*)
1194 basic_machine=f301-fujitsu
1195 ;;
1196 w65*)
1197 basic_machine=w65-wdc
1198 os=none
1199 ;;
1200 w89k-*)
1201 basic_machine=hppa1.1-winbond
1202 os=proelf
1203 ;;
1204 x64)
1205 basic_machine=x86_64-pc
1206 ;;
1207 xps | xps100)
1208 basic_machine=xps100-honeywell
1209 ;;
1210 xscale-* | xscalee[bl]-*)
1211 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1212 ;;
1213 none)
1214 basic_machine=none-none
1215 os=${os:-none}
1216 ;;
1217
1218 # Here we handle the default manufacturer of certain CPU types. It is in
1219 # some cases the only manufacturer, in others, it is the most popular.
1220 w89k)
1221 basic_machine=hppa1.1-winbond
1222 ;;
1223 op50n)
1224 basic_machine=hppa1.1-oki
1225 ;;
1226 op60c)
1227 basic_machine=hppa1.1-oki
1228 ;;
1229 romp)
1230 basic_machine=romp-ibm
1231 ;;
1232 mmix)
1233 basic_machine=mmix-knuth
1234 ;;
1235 rs6000)
1236 basic_machine=rs6000-ibm
1237 ;;
1238 vax)
1239 basic_machine=vax-dec
1240 ;;
1241 pdp11)
1242 basic_machine=pdp11-dec
1243 ;;
1244 we32k)
1245 basic_machine=we32k-att
1246 ;;
1247 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1248 basic_machine=sh-unknown
1249 ;;
1250 cydra)
1251 basic_machine=cydra-cydrome
1252 ;;
1253 orion)
1254 basic_machine=orion-highlevel
1255 ;;
1256 orion105)
1257 basic_machine=clipper-highlevel
1258 ;;
1259 mac | mpw | mac-mpw)
1260 basic_machine=m68k-apple
1261 ;;
1262 pmac | pmac-mpw)
1263 basic_machine=powerpc-apple
1264 ;;
1265 *-unknown)
1266 # Make sure to match an already-canonicalized machine name.
1267 ;;
1138 cpu=nsx
1139 vendor=tandem
1140 ;;
1141 s390-*)
1142 cpu=s390
1143 vendor=ibm
1144 ;;
1145 s390x-*)
1146 cpu=s390x
1147 vendor=ibm
1148 ;;
1149 tile*-*)
1150 os=${os:-linux-gnu}
1151 ;;
1152
12681153 *)
1269 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1270 exit 1
1154 # Recognize the canonical CPU types that are allowed with any
1155 # company name.
1156 case $cpu in
1157 1750a | 580 \
1158 | a29k \
1159 | aarch64 | aarch64_be \
1160 | abacus \
1161 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1162 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1163 | alphapca5[67] | alpha64pca5[67] \
1164 | am33_2.0 \
1165 | amdgcn \
1166 | arc | arceb \
1167 | arm | arm[lb]e | arme[lb] | armv* \
1168 | avr | avr32 \
1169 | asmjs \
1170 | ba \
1171 | be32 | be64 \
1172 | bfin | bs2000 \
1173 | c[123]* | c30 | [cjt]90 | c4x \
1174 | c8051 | clipper | craynv | csky | cydra \
1175 | d10v | d30v | dlx | dsp16xx \
1176 | e2k | elxsi | epiphany \
1177 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1178 | h8300 | h8500 \
1179 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1180 | hexagon \
1181 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1182 | ip2k | iq2000 \
1183 | k1om \
1184 | le32 | le64 \
1185 | lm32 \
1186 | m32c | m32r | m32rle \
1187 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k | v70 | w65 \
1188 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
1189 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1190 | microblaze | microblazeel \
1191 | mips | mipsbe | mipseb | mipsel | mipsle \
1192 | mips16 \
1193 | mips64 | mips64el \
1194 | mips64octeon | mips64octeonel \
1195 | mips64orion | mips64orionel \
1196 | mips64r5900 | mips64r5900el \
1197 | mips64vr | mips64vrel \
1198 | mips64vr4100 | mips64vr4100el \
1199 | mips64vr4300 | mips64vr4300el \
1200 | mips64vr5000 | mips64vr5000el \
1201 | mips64vr5900 | mips64vr5900el \
1202 | mipsisa32 | mipsisa32el \
1203 | mipsisa32r2 | mipsisa32r2el \
1204 | mipsisa32r6 | mipsisa32r6el \
1205 | mipsisa64 | mipsisa64el \
1206 | mipsisa64r2 | mipsisa64r2el \
1207 | mipsisa64r6 | mipsisa64r6el \
1208 | mipsisa64sb1 | mipsisa64sb1el \
1209 | mipsisa64sr71k | mipsisa64sr71kel \
1210 | mipsr5900 | mipsr5900el \
1211 | mipstx39 | mipstx39el \
1212 | mmix \
1213 | mn10200 | mn10300 \
1214 | moxie \
1215 | mt \
1216 | msp430 \
1217 | nds32 | nds32le | nds32be \
1218 | nfp \
1219 | nios | nios2 | nios2eb | nios2el \
1220 | none | np1 | ns16k | ns32k \
1221 | open8 \
1222 | or1k* \
1223 | or32 \
1224 | orion \
1225 | pdp10 | pdp11 | pj | pjl | pn | power \
1226 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1227 | pru \
1228 | pyramid \
1229 | riscv | riscv32 | riscv64 \
1230 | rl78 | romp | rs6000 | rx \
1231 | score \
1232 | sh | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1233 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1234 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1235 | sparclite \
1236 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1237 | spu \
1238 | tahoe \
1239 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1240 | tron \
1241 | ubicom32 \
1242 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1243 | vax \
1244 | visium \
1245 | wasm32 \
1246 | we32k \
1247 | x86 | x86_64 | xc16x | xgate | xps100 \
1248 | xstormy16 | xtensa* \
1249 | ymp \
1250 | z8k | z80)
1251 ;;
1252
1253 *)
1254 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1255 exit 1
1256 ;;
1257 esac
12711258 ;;
12721259 esac
12731260
12741261 # Here we canonicalize certain aliases for manufacturers.
1275 case $basic_machine in
1276 *-digital*)
1277 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1278 ;;
1279 *-commodore*)
1280 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1262 case $vendor in
1263 digital*)
1264 vendor=dec
1265 ;;
1266 commodore*)
1267 vendor=cbm
12811268 ;;
12821269 *)
12831270 ;;
13551342 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
13561343 | aos* | aros* | cloudabi* | sortix* \
13571344 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1358 | clix* | riscos* | uniplus* | iris* | rtu* | xenix* \
1345 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
13591346 | knetbsd* | mirbsd* | netbsd* \
13601347 | bitrig* | openbsd* | solidbsd* | libertybsd* \
13611348 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
13751362 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
13761363 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
13771364 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1378 | midnightbsd*)
1365 | midnightbsd* | amdhsa* | unleashed* | emscripten*)
13791366 # Remember, each alternative MUST END IN *, to match a version number.
13801367 ;;
13811368 qnx*)
1382 case $basic_machine in
1383 x86-* | i*86-*)
1369 case $cpu in
1370 x86 | i*86)
13841371 ;;
13851372 *)
13861373 os=nto-$os
15061493 # Until real need of OS specific support for
15071494 # particular features comes up, bare metal
15081495 # configurations are quite functional.
1509 case $basic_machine in
1496 case $cpu in
15101497 arm*)
15111498 os=eabi
15121499 ;;
15401527 # will signal an error saying that MANUFACTURER isn't an operating
15411528 # system, and we'll never get to this point.
15421529
1543 case $basic_machine in
1530 case $cpu-$vendor in
15441531 score-*)
15451532 os=elf
15461533 ;;
17211708
17221709 # Here we handle the case where we know the os, and the CPU type, but not the
17231710 # manufacturer. We pick the logical manufacturer.
1724 vendor=unknown
1725 case $basic_machine in
1726 *-unknown)
1711 case $vendor in
1712 unknown)
17271713 case $os in
17281714 riscix*)
17291715 vendor=acorn
17921778 vendor=stratus
17931779 ;;
17941780 esac
1795 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
17961781 ;;
17971782 esac
17981783
1799 echo "$basic_machine-$os"
1784 echo "$cpu-$vendor-$os"
18001785 exit
18011786
18021787 # Local variables:
6060 # define HAVE_CALL_INDIRECT
6161 #endif
6262
63 /* A and R profiles (and legacy Arm).
64 Current Program Status Register (CPSR)
65 M[4:0] Mode bits. M[4] is always 1 for 32-bit modes.
66 T[5] 1: Thumb, 0: ARM instruction set
67 F[6] 1: disables FIQ
68 I[7] 1: disables IRQ
69 A[8] 1: disables imprecise aborts
70 E[9] 0: Little-endian, 1: Big-endian
71 J[24] 1: Jazelle instruction set
72 */
73 #define CPSR_M_USR 0x00 /* User mode. */
74 #define CPSR_M_FIQ 0x01 /* Fast Interrupt mode. */
75 #define CPSR_M_IRQ 0x02 /* Interrupt mode. */
76 #define CPSR_M_SVR 0x03 /* Supervisor mode. */
77 #define CPSR_M_MON 0x06 /* Monitor mode. */
78 #define CPSR_M_ABT 0x07 /* Abort mode. */
79 #define CPSR_M_HYP 0x0A /* Hypervisor mode. */
80 #define CPSR_M_UND 0x0B /* Undefined mode. */
81 #define CPSR_M_SYS 0x0F /* System mode. */
82 #define CPSR_M_32BIT 0x10 /* 32-bit mode. */
83 #define CPSR_T_BIT 0x20 /* Thumb bit. */
84 #define CPSR_F_MASK 0x40 /* FIQ bit. */
85 #define CPSR_I_MASK 0x80 /* IRQ bit. */
86
87 #define CPSR_M_MASK 0x0F /* Mode mask except M[4]. */
88
6389 #endif /* _LIBGLOSS_ARM_H */
5858 .endm
5959 #endif
6060
61 /* Annotation for EABI unwinding tables. */
62 .macro FN_EH_START
63 #if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
64 .fnstart
65 #endif
66 .endm
67
68 .macro FN_EH_END
69 #if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
70 /* Protect against unhandled exceptions. */
71 .cantunwind
72 .fnend
73 #endif
74 .endm
75
6176 .macro indirect_call reg
6277 #ifdef HAVE_CALL_INDIRECT
6378 blx \reg
6782 #endif
6883 .endm
6984
85 /* For armv4t and newer, toolchains will transparently convert
86 'bx lr' to 'mov pc, lr' if needed. GCC has deprecated support
87 for anything older than armv4t, but this should handle that
88 corner case in case anyone needs it anyway. */
89 .macro FN_RETURN
90 #if __ARM_ARCH <= 4 && __ARM_ARCH_ISA_THUMB == 0
91 mov pc, lr
92 #else
93 bx lr
94 #endif
95 .endm
96
97
98
99 /******************************************************************************
100 * User mode only: This routine makes default target specific Stack
101 * +-----+ <- SL_sys, Pointer initialization for different processor modes:
102 * | | SL_usr FIQ, Abort, IRQ, Undefined, Supervisor, System (User)
103 * | SYS | and setups a default Stack Limit in-case the code has
104 * | USR | -=0x10000 been compiled with "-mapcs-stack-check" for FIQ and
105 * | | System (User) modes.
106 * | |
107 * +-----+ <- initial SP,
108 * becomes SP_sys Hard-wiring SL value is not ideal, since there is
109 * and SL_usr currently no support for checking that the heap and
110 * stack have not collided, or that this default 64k is
111 * All modes: is enough for the program being executed. However,
112 * +-----+ <- SL_sys, it ensures that this simple crt0 world will not
113 * | | SL_usr immediately cause an overflow event.
114 * | SYS |
115 * | USR | -=0x10000 We go through all execution modes and set up SP
116 * | | for each of them.
117 * +-----+ <- SP_sys,
118 * | | SP_usr Notes:
119 * | SVC | -= 0x8000 - This code will not work as intended if the system
120 * | | starts in secure mode. In particular the methods
121 * +-----+ <- SP_svc of getting in and out of secure state are not as
122 * | | simple as writing to the CPSR mode bits.
123 * | IRQ | -= 0x2000 - Mode switch via CPSR is not allowed once in
124 * | | non-privileged mode, so we take care not to enter
125 * ^ +-----+ <- SP_und "User" to set up its SP, and also skip most
126 * s | | operations if already in that mode.
127 * t | UND | -= 0x1000
128 * a | | Input parameters:
129 * c +-----+ <- SP_und - sp - Initialized SP
130 * k | | - r2 - May contain SL value from semihosting
131 * | ABT | -= 0x1000 SYS_HEAPINFO call
132 * g | | Scratch registers:
133 * r +-----+ <- SP_abt, - r1 - new value of CPSR
134 * o | | SL_fiq - r2 - intermediate value (in standalone mode)
135 * w | FIQ | -= 0x1000 - r3 - new SP value
136 * t | | - r4 - save/restore CPSR on entry/exit
137 * h +-----+ <- initial SP,
138 * becomes SP_fiq Declared as "weak" so that user can write and use
139 * his own implementation if current doesn't fit.
140 *
141 ******************************************************************************/
142 .align 0
143 FUNC_START _stack_init
144 .weak FUNCTION (_stack_init)
145 FN_EH_START
146
147 /* M profile doesn't have CPSR register. */
148 #if (__ARM_ARCH_PROFILE != 'M')
149 /* Following code is compatible for both ARM and Thumb ISA. */
150 mrs r4, CPSR
151 /* Test mode bits - in User of all are 0. */
152 tst r4, #(CPSR_M_MASK)
153 /* "eq" means r4 AND #0x0F is 0. */
154 beq .Lskip_cpu_modes
155
156 mov r3, sp /* Save input SP value. */
157
158 /* FIQ mode, interrupts disabled. */
159 mov r1, #(CPSR_M_FIQ|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
160 msr CPSR_c, r1
161 mov sp, r3
162 sub sl, sp, #0x1000 /* FIQ mode has its own SL. */
163
164 /* Abort mode, interrupts disabled. */
165 mov r3, sl
166 mov r1, #(CPSR_M_ABT|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
167 msr CPSR_c, r1
168 mov sp, r3
169 sub r3, r3, #0x1000
170
171 /* Undefined mode, interrupts disabled. */
172 mov r1, #(CPSR_M_UND|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
173 msr CPSR_c, r1
174 mov sp, r3
175 sub r3, r3, #0x1000
176
177 /* IRQ mode, interrupts disabled. */
178 mov r1, #(CPSR_M_IRQ|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
179 msr CPSR_c, r1
180 mov sp, r3
181 sub r3, r3, #0x2000
182
183 /* Supervisory mode, interrupts disabled. */
184 mov r1, #(CPSR_M_SVR|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
185 msr CPSR_c, r1
186 mov sp, r3
187
188 sub r3, r3, #0x8000 /* Min size 32k. */
189 bic r3, r3, #0x00FF /* Align with current 64k block. */
190 bic r3, r3, #0xFF00
191
192 # if __ARM_ARCH >= 4
193 /* System (shares regs with User) mode, interrupts disabled. */
194 mov r1, #(CPSR_M_SYS|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
195 msr CPSR_c, r1
196 mov sp, r3
197 # else
198 /* Keep this for ARMv3, but GCC actually dropped it. */
199 /* Move value into user mode SP without changing modes, */
200 /* via '^' form of ldm. */
201 str r3, [r3, #-4]
202 ldmdb r3, {sp}^
203 # endif
204
205 /* Back to original mode, presumably SVC, with diabled FIQ/IRQ. */
206 orr r4, r4, #(CPSR_I_MASK|CPSR_F_MASK)
207 msr CPSR_c, r4
208
209 .Lskip_cpu_modes:
210 #endif
211
212 /* Set SL register. */
213 #if defined (ARM_RDI_MONITOR) /* semihosting */
214 cmp r2, #0
215 beq .Lsl_forced_zero
216 /* Allow slop for stack overflow handling and small frames. */
217 # ifdef THUMB1_ONLY
218 adds r2, #128
219 adds r2, #128
220 mov sl, r2
221 # else
222 add sl, r2, #256
223 # endif
224 .Lsl_forced_zero:
225
226 #else /* standalone */
227 /* r3 contains SP for System/User mode. Set SL = SP - 0x10000. */
228 #ifdef THUMB1_ONLY
229 movs r2, #64
230 lsls r2, r2, #10
231 subs r2, r3, r2
232 mov sl, r2
233 #else
234 /* Still assumes 256bytes below SL. */
235 sub sl, r3, #64 << 10
236 #endif
237 #endif
238
239 FN_RETURN
240 FN_EH_END
241
242
243 /*******************************************************************************
244 * Main library startup code.
245 *******************************************************************************/
70246 .align 0
71
72247 FUNC_START _mainCRTStartup
73248 FUNC_START _start
74 #if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
75 /* Annotation for EABI unwinding tables. */
76 .fnstart
77 #endif
249 FN_EH_START
78250
79251 /* __ARM_ARCH_PROFILE is defined from GCC 4.8 onwards, however __ARM_ARCH_7A
80252 has been defined since 4.2 onwards, which is when v7-a support was added
89261 #endif
90262 #endif
91263
92 /* Start by setting up a stack */
264 /* Start by setting up a stack. */
93265 #ifdef ARM_RDP_MONITOR
94 /* Issue Demon SWI to read stack info */
95 swi SWI_GetEnv /* Returns command line in r0 */
96 mov sp,r1 /* and the highest memory address in r1 */
97
98 /* stack limit is at end of data */
99 /* allow slop for stack overflow handling and small frames */
266 /* Issue Demon SWI to read stack info. */
267 swi SWI_GetEnv /* Returns command line in r0. */
268 mov sp,r1 /* and the highest memory address in r1. */
269
270 /* Stack limit is at end of data. */
271 /* Allow slop for stack overflow handling and small frames. */
100272 #ifdef THUMB1_ONLY
101273 ldr r0, .LC2
102274 adds r0, #128
108280 #endif
109281 #else
110282 #ifdef ARM_RDI_MONITOR
111 /* Issue Angel SWI to read stack info */
283 /* Issue Angel SWI to read stack info. */
112284 movs r0, #AngelSWI_Reason_HeapInfo
113 adr r1, .LC0 /* point at ptr to 4 words to receive data */
285 adr r1, .LC0 /* Point at ptr to 4 words to receive data. */
114286 #ifdef THUMB_VXM
115287 bkpt AngelSWI
116288 #elif defined(__thumb2__)
117 /* We are in thumb mode for startup on armv7 architectures. */
118 AngelSWIAsm AngelSWI
119 #else
120 /* We are always in ARM mode for startup on pre armv7 archs. */
121 AngelSWIAsm AngelSWI_ARM
122 #endif
123 ldr r0, .LC0 /* point at values read */
289 /* We are in thumb mode for startup on armv7 architectures. */
290 AngelSWIAsm (AngelSWI)
291 #else
292 /* We are always in ARM mode for startup on pre armv7 archs. */
293 AngelSWIAsm (AngelSWI_ARM)
294 #endif
295 ldr r0, .LC0 /* Point at values read. */
124296
125297 /* Set __heap_limit. */
126298 ldr r1, [r0, #4]
141313 .LC32:
142314 ldr r1, [r0, #8]
143315 ldr r2, [r0, #12]
144 /* We skip setting sp/sl if 0 returned from semihosting.
316 /* We skip setting SP/SL if 0 returned from semihosting.
145317 - According to semihosting docs, if 0 returned from semihosting,
146318 the system was unable to calculate the real value, so it's ok
147 to skip setting sp/sl to 0 here.
319 to skip setting SP/SL to 0 here.
148320 - Considering M-profile processors, We might want to initialize
149 sp by the first entry of vector table and return 0 to SYS_HEAPINFO
150 semihosting call, which will be skipped here. */
321 SP by the first entry of vector table and return 0 to SYS_HEAPINFO
322 semihosting call, which will be skipped here.
323 - Considering R-profile processors there is no automatic SP init by hardware
324 so we need to initialize it by default value. */
325 ldr r3, .Lstack
151326 cmp r1, #0
152327 beq .LC26
153 mov sp, r1
328 mov r3, r1
154329 .LC26:
155 cmp r2, #0
156 beq .LC27
157 /* allow slop for stack overflow handling and small frames */
158 #ifdef THUMB1_ONLY
159 adds r2, #128
160 adds r2, #128
161 mov sl, r2
162 #else
163 add sl, r2, #256
164 #endif
165 .LC27:
166 #else
167 /* Set up the stack pointer to a fixed value */
330 mov sp, r3
331
332 /* r2 (SL value) will be used in _stack_init. */
333 bl FUNCTION (_stack_init)
334
335
336 #else /* standalone */
337 /* Set up the stack pointer to a fixed value. */
168338 /* Changes by toralf:
169339 - Allow linker script to provide stack via __stack symbol - see
170340 defintion of .Lstack
171341 - Provide "hooks" that may be used by the application to add
172 custom init code - see .Lhwinit and .Lswinit
173 - Go through all execution modes and set up stack for each of them.
174 Loosely based on init.s from ARM/Motorola example code.
175 Note: Mode switch via CPSR is not allowed once in non-privileged
176 mode, so we take care not to enter "User" to set up its sp,
177 and also skip most operations if already in that mode. */
342 custom init code - see .Lhwinit and .Lswinit. */
178343
179344 ldr r3, .Lstack
180345 cmp r3, #0
189354 ldreq r3, .LC0
190355 #endif
191356 /* Note: This 'mov' is essential when starting in User, and ensures we
192 always get *some* sp value for the initial mode, even if we
357 always get *some* SP value for the initial mode, even if we
193358 have somehow missed it below (in which case it gets the same
194 value as FIQ - not ideal, but better than nothing.) */
195 mov sp, r3
196 #ifdef PREFER_THUMB
197 /* XXX Fill in stack assignments for interrupt modes. */
198 #else
199 mrs r2, CPSR
200 tst r2, #0x0F /* Test mode bits - in User of all are 0 */
201 beq .LC23 /* "eq" means r2 AND #0x0F is 0 */
202 msr CPSR_c, #0xD1 /* FIRQ mode, interrupts disabled */
203 mov sp, r3
204 sub sl, sp, #0x1000 /* This mode also has its own sl (see below) */
359 value as FIQ - not ideal, but better than nothing). */
360 mov sp, r3
361
362 /* We don't care of r2 value in standalone. */
363 bl FUNCTION (_stack_init)
364
365 #endif
366 #endif
367 /* Zero the memory in the .bss section. */
368 movs a2, #0 /* Second arg: fill value. */
369 mov fp, a2 /* Null frame pointer. */
370 mov r7, a2 /* Null frame pointer for Thumb. */
205371
206 mov r3, sl
207 msr CPSR_c, #0xD7 /* Abort mode, interrupts disabled */
208 mov sp, r3
209 sub r3, r3, #0x1000
210
211 msr CPSR_c, #0xDB /* Undefined mode, interrupts disabled */
212 mov sp, r3
213 sub r3, r3, #0x1000
214
215 msr CPSR_c, #0xD2 /* IRQ mode, interrupts disabled */
216 mov sp, r3
217 sub r3, r3, #0x2000
218
219 msr CPSR_c, #0xD3 /* Supervisory mode, interrupts disabled */
220
221 mov sp, r3
222 sub r3, r3, #0x8000 /* Min size 32k */
223 bic r3, r3, #0x00FF /* Align with current 64k block */
224 bic r3, r3, #0xFF00
225
226 str r3, [r3, #-4] /* Move value into user mode sp without */
227 ldmdb r3, {sp}^ /* changing modes, via '^' form of ldm */
228 orr r2, r2, #0xC0 /* Back to original mode, presumably SVC, */
229 msr CPSR_c, r2 /* with FIQ/IRQ disable bits forced to 1 */
230 #endif
231 .LC23:
232 /* Setup a default stack-limit in-case the code has been
233 compiled with "-mapcs-stack-check". Hard-wiring this value
234 is not ideal, since there is currently no support for
235 checking that the heap and stack have not collided, or that
236 this default 64k is enough for the program being executed.
237 However, it ensures that this simple crt0 world will not
238 immediately cause an overflow event: */
239 #ifdef THUMB1_ONLY
240 movs r2, #64
241 lsls r2, r2, #10
242 subs r2, r3, r2
243 mov sl, r2
244 #else
245 sub sl, r3, #64 << 10 /* Still assumes 256bytes below sl */
246 #endif
247 #endif
248 #endif
249 /* Zero the memory in the .bss section. */
250 movs a2, #0 /* Second arg: fill value */
251 mov fp, a2 /* Null frame pointer */
252 mov r7, a2 /* Null frame pointer for Thumb */
372 ldr a1, .LC1 /* First arg: start of memory block. */
373 ldr a3, .LC2
374 subs a3, a3, a1 /* Third arg: length of block. */
253375
254 ldr a1, .LC1 /* First arg: start of memory block */
255 ldr a3, .LC2
256 subs a3, a3, a1 /* Third arg: length of block */
257
258376
259377 #if __thumb__ && !defined(PREFER_THUMB)
260 /* Enter Thumb mode.... */
261 add a4, pc, #1 /* Get the address of the Thumb block */
262 bx a4 /* Go there and start Thumb decoding */
378 /* Enter Thumb mode... */
379 add a4, pc, #1 /* Get the address of the Thumb block. */
380 bx a4 /* Go there and start Thumb decoding. */
263381
264382 .code 16
265383 .global __change_mode
270388 bl FUNCTION (memset)
271389 #if !defined (ARM_RDP_MONITOR) && !defined (ARM_RDI_MONITOR)
272390 /* Changes by toralf: Taken from libgloss/m68k/crt0.S
273 * initialize target specific stuff. Only execute these
274 * functions it they exist.
275 */
391 initialize target specific stuff. Only execute these
392 functions it they exist. */
276393 ldr r3, .Lhwinit
277394 cmp r3, #0
278395 beq .LC24
284401 indirect_call r3
285402
286403 .LC25:
287 movs r0, #0 /* no arguments */
288 movs r1, #0 /* no argv either */
289 #else
290 /* Need to set up standard file handles */
404 movs r0, #0 /* No arguments. */
405 movs r1, #0 /* No argv either. */
406 #else
407 /* Need to set up standard file handles. */
291408 bl FUNCTION (initialise_monitor_handles)
292409
293410 #ifdef ARM_RDP_MONITOR
294 swi SWI_GetEnv /* sets r0 to point to the command line */
411 swi SWI_GetEnv /* Sets r0 to point to the command line. */
295412 movs r1, r0
296413 #else
297414 movs r0, #AngelSWI_Reason_GetCmdLine
298 ldr r1, .LC30 /* Space for command line */
299 AngelSWIAsm AngelSWI
415 ldr r1, .LC30 /* Space for command line. */
416 AngelSWIAsm (AngelSWI)
300417 ldr r1, .LC30
301418 ldr r1, [r1]
302419 #endif
303 /* Parse string at r1 */
304 movs r0, #0 /* count of arguments so far */
420 /* Parse string at r1. */
421 movs r0, #0 /* Count of arguments so far. */
305422 /* Push a NULL argument onto the end of the list. */
306423 #ifdef __thumb__
307424 push {r0}
309426 stmfd sp!, {r0}
310427 #endif
311428 .LC10:
312 /* Skip leading blanks */
429 /* Skip leading blanks. */
313430 #ifdef __thumb__
314431 ldrb r3, [r1]
315432 adds r1, #1
321438 cmp r3, #' '
322439 beq .LC10
323440
324 /* See whether we are scanning a string */
325 cmp r3, #'"'
441 /* See whether we are scanning a string. */
442 cmp r3, #'\"'
326443 #ifdef __thumb__
327444 beq .LC20
328445 cmp r3, #'\''
332449 b .LC22
333450
334451 .LC21:
335 movs r2, #' ' /* terminator type */
336 subs r1, r1, #1 /* adjust back to point at start char */
452 movs r2, #' ' /* Terminator type. */
453 subs r1, r1, #1 /* Adjust back to point at start char. */
337454 .LC22:
338455 #else
339456 cmpne r3, #'\''
340457 moveq r2, r3
341 movne r2, #' ' /* terminator type */
342 subne r1, r1, #1 /* adjust back to point at start char */
343 #endif
344
345 /* Stack a pointer to the current argument */
458 movne r2, #' ' /* Terminator type. */
459 subne r1, r1, #1 /* Adjust back to point at start char. */
460 #endif
461
462 /* Stack a pointer to the current argument. */
346463 #ifdef __thumb__
347464 push {r1}
348465 #else
358475 #endif
359476 cmp r3, #0
360477 beq .LC12
361 cmp r2, r3 /* reached terminator? */
478 cmp r2, r3 /* Reached terminator ? */
362479 bne .LC11
363480 movs r2, #0
364481 subs r3, r1, #1
365 strb r2, [r3] /* terminate the arg string */
482 strb r2, [r3] /* Terminate the arg string. */
366483 b .LC10
367484
368485 .LC12:
369 mov r1, sp /* point at stacked arg pointers */
370 /* We've now got the stacked args in order reverse the */
486 mov r1, sp /* Point at stacked arg pointers. */
487 /* We've now got the stacked args in order, reverse them. */
371488 #ifdef __thumb__
372489 movs r2, r0
373490 lsls r2, #2
389506 bics r4, r5
390507 mov sp, r4
391508 #else
392 add r2, sp, r0, LSL #2 /* End of args */
393 mov r3, sp /* Start of args */
509 add r2, sp, r0, LSL #2 /* End of args. */
510 mov r3, sp /* Start of args. */
394511 .LC13: cmp r2, r3
395 ldrhi r4,[r2, #-4] /* Reverse ends of list */
512 ldrhi r4,[r2, #-4] /* Reverse ends of list. */
396513 ldrhi r5, [r3]
397514 strhi r5, [r2, #-4]!
398515 strhi r4, [r3], #4
430547
431548 #if __thumb__ && !defined(PREFER_THUMB)
432549 /* Come out of Thumb mode. This code should be redundant. */
433
434550 mov a4, pc
435551 bx a4
436552
440556 /* Halt the execution. This code should never be executed. */
441557 /* With no debug monitor, this probably aborts (eventually).
442558 With a Demon debug monitor, this halts cleanly.
443 With an Angel debug monitor, this will report 'Unknown SWI'. */
559 With an Angel debug monitor, this will report 'Unknown SWI'. */
444560 swi SWI_Exit
445561 #endif
446562
563 FN_EH_END
564
447565 /* For Thumb, constants must be after the code since only
448566 positive offsets are supported for PC relative addresses. */
449
450567 .align 0
451568 .LC0:
452569 #ifdef ARM_RDI_MONITOR
456573 /* Changes by toralf: Provide alternative "stack" variable whose value
457574 may be defined externally; .Lstack will be used instead of .LC0 if
458575 it points to a non-0 value. Also set up references to "hooks" that
459 may be used by the application to provide additional init code. */
460
576 may be used by the application to provide additional init code. */
461577 #ifdef __pe__
462578 .word 0x800000
463579 #else
464580 .word 0x80000 /* Top of RAM on the PIE board. */
465581 #endif
466 .Lstack:
467 .word __stack
468582 .Lhwinit:
469583 .word FUNCTION (hardware_init_hook)
470584 .Lswinit:
475589 runtime (meaning "ignore setting") for the variables, when the user
476590 does not provide the symbols. (The linker uses a weak symbol if,
477591 and only if, a normal version of the same symbol isn't provided
478 e.g. by a linker script or another object file.) */
479
480 .weak __stack
592 e.g. by a linker script or another object file.) */
593
481594 .weak FUNCTION (hardware_init_hook)
482595 .weak FUNCTION (software_init_hook)
483596 #endif
484597
485598 #endif
486 #if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
487 /* Protect against unhandled exceptions. */
488 .cantunwind
489 .fnend
490 #endif
599
600 .Lstack:
601 .word __stack
602 .weak __stack
603
491604 .LC1:
492605 .word __bss_start__
493606 .LC2:
1111 %{!specs=nano.specs:-lc} %{specs=nano.specs:-lc_nano}
1212
1313 *rdimon_libgloss:
14 %{!specs=nano.specs:-lrdimon-v2m} %{specs=nano.specs:-lrdimon_nano}
14 %{!specs=nano.specs:-lrdimon-v2m} %{specs=nano.specs:-lrdimon-v2m_nano}
1515
1616 *link_gcc_c_sequence:
1717 %(rdimon_link_gcc_c_sequence) --start-group %G %(rdimon_libc) %(rdimon_libgloss) --end-group
2929
3030
3131 /* Now the SWI numbers and reason codes for RDI (Angel) monitors. */
32 #if defined (SEMIHOST_V2) && defined (SEMIHOST_V2_MIXED_MODE)
33 #define AngelSWI_ARM 0xF000 /* HLT A32. */
32 #if defined (SEMIHOST_V2) \
33 && defined (SEMIHOST_V2_MIXED_MODE) \
34 && !defined (THUMB_VXM)
35 #define AngelSWI_ARM 0xE10F0070 /* HLT #0xF000 A32. */
3436 #ifdef __thumb__
35 #define AngelSWI 0x3C /* HLT T32. */
37 #define AngelSWI 0xBABC /* HLT #0x3c T32. */
3638 #else /* __thumb__. */
3739 #define AngelSWI AngelSWI_ARM
3840 #endif /* __thumb__. */
4850 /* For thumb only architectures use the BKPT instruction instead of SWI. */
4951 #ifdef THUMB_VXM
5052 #define AngelSWIInsn "bkpt"
51 #define AngelSWIAsm bkpt
53 #define AngelSWIAsm(IMM) bkpt IMM
54 #elif defined (SEMIHOST_V2) && defined (SEMIHOST_V2_MIXED_MODE)
55 /* This is actually encoding the HLT instruction, however we don't have
56 support for this in older assemblers. So we have to encode the
57 instruction manually. */
58 #define AngelSWIInsn ".inst"
59 #define AngelSWIAsm(IMM) .inst IMM
5260 #else
5361 #define AngelSWIInsn "swi"
54 #define AngelSWIAsm swi
62 #define AngelSWIAsm(IMM) swi IMM
5563 #endif
5664
5765 /* The reason codes: */
1717 #include "swi.h"
1818
1919 /* Forward prototypes. */
20 int _system (const char *);
21 int _rename (const char *, const char *);
22 int _isatty (int);
20 int _system (const char *);
21 int _rename (const char *, const char *);
22 int _isatty (int);
2323 clock_t _times (struct tms *);
24 int _gettimeofday (struct timeval *, void *);
25 int _unlink (const char *);
26 int _link (const char *, const char *);
27 int _stat (const char *, struct stat *);
28 int _fstat (int, struct stat *);
24 int _gettimeofday (struct timeval *, void *);
25 int _unlink (const char *);
26 int _link (const char *, const char *);
27 int _stat (const char *, struct stat *);
28 int _fstat (int, struct stat *);
2929 int _swistat (int fd, struct stat * st);
30 void * _sbrk (ptrdiff_t);
31 pid_t _getpid (void);
32 int _close (int);
33 clock_t _clock (void);
34 int _swiclose (int);
35 int _open (const char *, int, ...);
36 int _swiopen (const char *, int);
37 int _write (int, const void *, size_t);
38 int _swiwrite (int, const void *, size_t);
39 _off_t _lseek (int, _off_t, int);
40 _off_t _swilseek (int, _off_t, int);
41 int _read (int, void *, size_t);
42 int _swiread (int, void *, size_t);
43 void initialise_monitor_handles (void);
30 void * _sbrk (ptrdiff_t);
31 pid_t _getpid (void);
32 int _close (int);
33 clock_t _clock (void);
34 int _swiclose (int);
35 int _open (const char *, int, ...);
36 int _swiopen (const char *, int);
37 int _write (int, const void *, size_t);
38 int _swiwrite (int, const void *, size_t);
39 _off_t _lseek (int, _off_t, int);
40 _off_t _swilseek (int, _off_t, int);
41 int _read (int, void *, size_t);
42 int _swiread (int, void *, size_t);
43 void initialise_monitor_handles (void);
4444
4545 static int checkerror (int);
4646 static int error (int);
142142 int i;
143143
144144 /* Open the standard file descriptors by opening the special
145 * teletype device, ":tt", read-only to obtain a descritpor for
145 * teletype device, ":tt", read-only to obtain a descriptor for
146146 * standard input and write-only to obtain a descriptor for standard
147147 * output. Finally, open ":tt" in append mode to obtain a descriptor
148148 * for standard error. Since this is a write mode, most kernels will
153153
154154 #ifdef ARM_RDI_MONITOR
155155 int volatile block[3];
156
156
157157 block[0] = (int) ":tt";
158158 block[2] = 3; /* length of filename */
159159 block[1] = 0; /* mode "r" */
350350 len, is the length in bytes to read.
351351 Returns the number of bytes *not* written. */
352352 int
353 _swiread (int fh,
354 void * ptr,
355 size_t len)
353 _swiread (int fh, void * ptr, size_t len)
356354 {
357355 #ifdef ARM_RDI_MONITOR
358356 int block[3];
359
357
360358 block[0] = fh;
361359 block[1] = (int) ptr;
362360 block[2] = (int) len;
363
361
364362 return checkerror (do_AngelSWI (AngelSWI_Reason_Read, block));
365363 #else
366364 register int r0 asm("r0");
380378 Translates the return of _swiread into
381379 bytes read. */
382380 int __attribute__((weak))
383 _read (int fd,
384 void * ptr,
385 size_t len)
381 _read (int fd, void * ptr, size_t len)
386382 {
387383 int res;
388384 struct fdent *pfd;
408404
409405 /* fd, is a user file descriptor. */
410406 off_t
411 _swilseek (int fd,
412 off_t ptr,
413 int dir)
407 _swilseek (int fd, off_t ptr, int dir)
414408 {
415409 off_t res;
416410 struct fdent *pfd;
446440 }
447441 dir = SEEK_SET;
448442 }
449
443
450444 #ifdef ARM_RDI_MONITOR
451445 int block[2];
452446 if (dir == SEEK_END)
457451 return -1;
458452 ptr += res;
459453 }
460
454
461455 /* This code only does absolute seeks. */
462456 block[0] = pfd->handle;
463457 block[1] = (int) ptr;
493487 }
494488
495489 off_t
496 _lseek (int fd,
497 off_t ptr,
498 int dir)
490 _lseek (int fd, off_t ptr, int dir)
499491 {
500492 return _swilseek (fd, ptr, dir);
501493 }
503495 /* fh, is a valid internal file handle.
504496 Returns the number of bytes *not* written. */
505497 int
506 _swiwrite (
507 int fh,
508 const void * ptr,
509 size_t len)
498 _swiwrite (int fh, const void * ptr, size_t len)
510499 {
511500 #ifdef ARM_RDI_MONITOR
512501 int block[3];
513
502
514503 block[0] = fh;
515504 block[1] = (int) ptr;
516505 block[2] = (int) len;
517
506
518507 return checkerror (do_AngelSWI (AngelSWI_Reason_Write, block));
519508 #else
520509 register int r0 asm("r0");
532521
533522 /* fd, is a user file descriptor. */
534523 int __attribute__((weak))
535 _write (int fd,
536 const void * ptr,
537 size_t len)
524 _write (int fd, const void * ptr, size_t len)
538525 {
539526 int res;
540527 struct fdent *pfd;
592579 }
593580 }
594581
595 /* The flags are Unix-style, so we need to convert them. */
582 /* The flags are Unix-style, so we need to convert them. */
596583 #ifdef O_BINARY
597584 if (flags & O_BINARY)
598585 aflags |= 1;
610597
611598 if (flags & O_APPEND)
612599 {
613 /* Can't ask for w AND a; means just 'a'. */
614 aflags &= ~4;
600 aflags &= ~4; /* Can't ask for w AND a; means just 'a'. */
615601 aflags |= 8;
616602 }
617
603
618604 #ifdef ARM_RDI_MONITOR
619605 block[0] = (int) path;
620606 block[2] = strlen (path);
621607 block[1] = aflags;
622
608
623609 fh = do_AngelSWI (AngelSWI_Reason_Open, block);
624
610
625611 #else
626612 asm ("mov r0,%2; mov r1, %3; swi %a1; mov %0, r0"
627613 : "=r"(fh)
628614 : "i" (SWI_Open),"r"(path),"r"(aflags)
629615 : "r0","r1");
630616 #endif
631
617
632618 /* Return a user file descriptor or an error. */
633619 if (fh >= 0)
634620 {
706692 void * __attribute__((weak))
707693 _sbrk (ptrdiff_t incr)
708694 {
709 extern char end asm ("end"); /* Defined by the linker. */
695 extern char end asm ("end"); /* Defined by the linker. */
710696 static char * heap_end;
711 char * prev_heap_end;
697 char * prev_heap_end;
712698
713699 if (heap_end == NULL)
714700 heap_end = & end;
715
701
716702 prev_heap_end = heap_end;
717
703
718704 if ((heap_end + incr > stack_ptr)
719705 /* Honour heap limit if it's valid. */
720706 || (__heap_limit != 0xcafedead && heap_end + incr > (char *)__heap_limit))
725711 extern void abort (void);
726712
727713 _write (1, "_sbrk: Heap and stack collision\n", 32);
728
714
729715 abort ();
730716 #else
731717 errno = ENOMEM;
732718 return (void *) -1;
733719 #endif
734720 }
735
721
736722 heap_end += incr;
737723
738724 return (void *) prev_heap_end;
783769 {
784770 int fd, res;
785771 memset (st, 0, sizeof (* st));
786 /* The best we can do is try to open the file readonly.
787 If it exists, then we can guess a few things about it. */
772 /* The best we can do is try to open the file readonly. If it exists,
773 then we can guess a few things about it. */
788774 if ((fd = _open (fname, O_RDONLY)) == -1)
789775 return -1;
790776 st->st_mode |= S_IFREG | S_IREAD;
791777 res = _swistat (fd, st);
792 /* Not interested in the error. */
778 /* Not interested in the error. */
793779 _close (fd);
794780 return res;
795781 }
879865 tp->tms_cutime = 0; /* user time, children */
880866 tp->tms_cstime = 0; /* system time, children */
881867 }
882
868
883869 return timeval;
884870 };
885871
00 #include "arm.h"
11 /* Run-time exception support */
2 #ifndef PREFER_THUMB
2 #ifndef __ARM_EABI__
33 #include "swi.h"
44
55 /* .text is used instead of .section .text so it works with arm-aout too. */
709709 tic6x
710710 iq2000
711711 or1k
712 pru
712713 nios2
713714 libnosys'
714715
25502551 subdirs="$subdirs m32c"
25512552
25522553 ;;
2553 msp430*-*-elf)
2554 msp430-*-elf*)
25542555 subdirs="$subdirs msp430"
25552556
25562557 config_libnosys=false
25842585 ;;
25852586 or1k-*-* | or1knd-*-* )
25862587 subdirs="$subdirs or1k"
2588
2589 ;;
2590 pru-*-*)
2591 subdirs="$subdirs pru"
25872592
25882593 ;;
25892594 nios2-*-*)
38773882 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38783883 srcdir=${srcdir}
38793884 target=${target}
3885 host=${host}
38803886 with_multisubdir=${with_multisubdir}
38813887 ac_configure_args="--enable-multilib ${ac_configure_args}"
38823888 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
147147 m32c-*-*)
148148 AC_CONFIG_SUBDIRS([m32c])
149149 ;;
150 msp430*-*-elf)
150 msp430-*-elf*)
151151 AC_CONFIG_SUBDIRS([msp430])
152152 config_libnosys=false
153153 ;;
174174 ;;
175175 or1k-*-* | or1knd-*-* )
176176 AC_CONFIG_SUBDIRS([or1k])
177 ;;
178 pru-*-*)
179 AC_CONFIG_SUBDIRS([pru])
177180 ;;
178181 nios2-*-*)
179182 AC_CONFIG_SUBDIRS([nios2])
225228 fi],
226229 srcdir=${srcdir}
227230 target=${target}
231 host=${host}
228232 with_multisubdir=${with_multisubdir}
229233 ac_configure_args="--enable-multilib ${ac_configure_args}"
230234 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5959 cat > fstat.c <<EOF
6060 $lu#include <string.h>
6161 #include <sys/stat.h>
62 #undef st_atime
63 #undef st_mtime
64 #undef st_ctime
6265 int
6366 _fstat (int fd, struct stat *buf)
6467 {
8083 buf->st_size = ks.st_size;
8184 buf->st_blksize = ks.st_blksize;
8285 buf->st_blocks = ks.st_blocks;
83 buf->st_atime = ks.st_atime;
84 buf->st_mtime = ks.st_mtime;
85 buf->st_ctime = ks.st_ctime;
86 buf->st_atim.tv_sec = ks.st_atime;
87 buf->st_mtim.tv_sec = ks.st_mtime;
88 buf->st_ctim.tv_sec = ks.st_ctime;
8689 R (retval)
8790 EOF
8891 cat > getpid.c <<EOF
215218 cat > stat.c <<EOF
216219 $lu#include <string.h>
217220 #include <sys/stat.h>
221 #undef st_atime
222 #undef st_mtime
223 #undef st_ctime
218224 int
219225 _stat (const char *path, struct stat *buf)
220226 {
236242 buf->st_size = ks.st_size;
237243 buf->st_blksize = ks.st_blksize;
238244 buf->st_blocks = ks.st_blocks;
239 buf->st_atime = ks.st_atime;
240 buf->st_mtime = ks.st_mtime;
241 buf->st_ctime = ks.st_ctime;
245 buf->st_atim.tv_sec = ks.st_atime;
246 buf->st_mtim.tv_sec = ks.st_mtime;
247 buf->st_ctim.tv_sec = ks.st_ctime;
242248 R (retval)
243249 EOF
244250 cat > times.c <<EOF
9393 s->st_size = gs->st_size;
9494 s->st_blksize = gs->st_blksize;
9595 s->st_blocks = gs->st_blocks;
96 s->st_atime = gs->st_atime;
97 s->st_mtime = gs->st_mtime;
98 s->st_ctime = gs->st_ctime;
96 s->st_atime = gs->st_atim;
97 s->st_mtime = gs->st_mtim;
98 s->st_ctime = gs->st_ctim;
9999 }
100100
101101 void
5757 uint64_t st_size; /* total size, in bytes */
5858 uint64_t st_blksize; /* blocksize for filesystem I/O */
5959 uint64_t st_blocks; /* number of blocks allocated */
60 gdb_time_t st_atime; /* time of last access */
61 gdb_time_t st_mtime; /* time of last modification */
62 gdb_time_t st_ctime; /* time of last change */
60 gdb_time_t st_atim; /* time of last access */
61 gdb_time_t st_mtim; /* time of last modification */
62 gdb_time_t st_ctim; /* time of last change */
6363 };
6464
6565 struct gdb_timeval {
0 Copyright (c) 2006 CodeSourcery Inc
1 Copyright (c) 2019 Mentor Graphics
2
3 The authors hereby grant permission to use, copy, modify, distribute,
4 and license this software and its documentation for any purpose, provided
5 that existing copyright notices are retained in all copies and that this
6 notice is included verbatim in any distributions. No written agreement,
7 license, or royalty fee is required for any of the authorized uses.
8 Modifications to this software may be copyrighted by their authors
9 and need not follow the licensing terms described here, provided that
10 the new terms are clearly indicated on the first page of each file where
11 they apply.
12
13
14 m68k Semihosting Protocol
15 -------------------------
16
17 The instruction used to trigger a semihosting request depends on the
18 m68k processor variant. On ColdFire, "halt" is used; on other processors
19 (which don't implement "halt"), "bkpt #0" may be used.
20
21 Additionally, a special code sequence is used to distinguish
22 semihosting requests from other uses of the instruction used to
23 trigger it. The semihosting instruction is immediately preceded by a
24 "nop" aligned to a 4-byte boundary, and followed by an invalid sentinel
25 instruction 0x4e7bf000 ("movec %sp,0"). The debug agent handling the
26 semihosting request must adjust the program counter to skip over the
27 sentinel instruction before continuing execution.
28
29 Registers d0 and d1 are used to pass parameters to the semihosting call.
30 d0 contains a request code. d1 is typically a pointer to a 4-longword
31 parameter block, except for the exit and simulator initialization operations
32 where it is an immediate integer value.
33
34 The result of the operation is returned in the first word of the
35 parameter block. The second word is used to return an errno value,
36 encoded per the "Errno Values" section of the RSP documentation in the
37 GDB User Manual.
38
39 The supported d0 request codes are:
40
41 #define HOSTED_EXIT 0
42
43 Terminate program execution; send a 'W' stop reply to GDB.
44
45 d1 contains the exit code, as an immediate integer rather than indirectly
46 in a parameter block. This semihosting request isn't expected to return.
47
48 #define HOSTED_INIT_SIM 1
49
50 Do simulator initialization, such as allocation of memory for the
51 stack and heap. This semihosting request may be triggered from
52 startup code (crt0.S).
53
54 On entry to the semihosting request, d1 contains the default initial
55 stack pointer as an immediate value, typically the high end of
56 memory defined by the linker script. If the simulator needs to
57 dynamically allocate memory for the stack, it should set both d1 and
58 sp (a7) to the new stack pointer value.
59
60 #define HOSTED_OPEN 2
61
62 Open file; 'Fopen' GDB fileio request.
63
64 d1 points to a parameter block containing:
65 [0] pointer to filename
66 [1] filename length
67 [2] open flags, encoded per the GDB RSP documentation
68 [3] mode, encoded per the GDB RSP documentation
69
70 Return values in parameter block:
71 [0] file descriptor or -1 on error
72 [1] errno, encoded per the GDB RSP documentation
73
74 #define HOSTED_CLOSE 3
75
76 Close file; 'Fclose' GDB fileio request.
77
78 d1 points to a parameter block containing:
79 [0] file descriptor
80
81 Return values in parameter block:
82 [0] return status
83 [1] errno, encoded per the GDB RSP documentation
84
85 #define HOSTED_READ 4
86
87 Read from file; 'Fread' GDB fileio request.
88
89 d1 points to a parameter block containing:
90 [0] file descriptor
91 [1] pointer to buffer
92 [2] buffer size
93
94 Return values in parameter block:
95 [0] number of bytes read
96 [1] errno, encoded per the GDB RSP documentation
97
98 #define HOSTED_WRITE 5
99
100 Write to file; 'Fwrite' GDB fileio request.
101
102 d1 points to a parameter block containing:
103 [0] file descriptor
104 [1] pointer to buffer
105 [2] byte count
106
107 Return values in parameter block:
108 [0] number of bytes written
109 [1] errno, encoded per the GDB RSP documentation
110
111 #define HOSTED_LSEEK 6
112
113 File seek; 'Flseek' GDB fileio request.
114
115 d1 points to a parameter block containing:
116 [0] file descriptor
117 [1] high word of 64-bit offset
118 [2] low word of 64-bit offset
119 [3] seek flag, encoded per the GDB RSP documentation
120
121 Return values in parameter block:
122 [0] high word of 64-bit result
123 [1] low word of 64-bit result
124 [2] errno, encoded per the GDB RSP documentation
125
126 #define HOSTED_RENAME 7
127
128 File rename; 'Frename' GDB fileio request.
129
130 d1 points to a parameter block containing:
131 [0] oldname pointer
132 [1] oldname length
133 [2] newname pointer
134 [3] newname length
135
136 Return values in parameter block:
137 [0] return status
138 [1] errno, encoded per the GDB RSP documentation
139
140 #define HOSTED_UNLINK 8
141
142 File unlink/delete; 'Funlink' GDB fileio request.
143
144 d1 points to a parameter block containing:
145 [0] filename pointer
146 [1] filename length
147
148 Return values in parameter block:
149 [0] return status
150 [1] errno, encoded per the GDB RSP documentation
151
152 #define HOSTED_STAT 9
153
154 File information; 'Fstat' GDB fileio request.
155
156 d1 points to a parameter block containing:
157 [0] filename pointer
158 [1] filename length
159 [2] pointer to stat buf, using the structure definition in the GDB RSP
160 documentation
161
162 Return values in parameter block:
163 [0] return status
164 [1] errno, encoded per the GDB RSP documentation
165
166 #define HOSTED_FSTAT 10
167
168 File information; 'Ffstat' GDB fileio request.
169
170 d1 points to a parameter block containing:
171 [0] file descriptor
172 [1] pointer to stat buf, using the structure definition in the GDB RSP
173 documentation
174
175 Return values in parameter block:
176 [0] return status
177 [1] errno, encoded per the GDB RSP documentation
178
179 #define HOSTED_GETTIMEOFDAY 11
180
181 Get current time; 'Fgettimeofday' GDB fileio request.
182
183 d1 points to a parameter block containing:
184 [0] timeval pointer, using the structure definition in the GDB RSP
185 documentation
186
187 Return values in parameter block:
188 [0] return status
189 [1] errno, encoded per the GDB RSP documentation
190
191 #define HOSTED_ISATTY 12
192
193 Return true if the file descriptor is the GDB console; 'Fisatty' GDB fileio
194 request.
195
196 d1 points to a parameter block containing:
197 [0] file descriptor
198
199 Return values in parameter block:
200 [0] return status
201 [1] errno, encoded per the GDB RSP documentation
202
203 #define HOSTED_SYSTEM 13
204
205 System call; 'Fsystem' GDB fileio request.
206
207 d1 points to a parameter block containing:
208 [0] command pointer
209 [1] command length
210
211 Return values in parameter block:
212 [0] return status
213 [1] errno, encoded per the GDB RSP documentation
9999 }
100100
101101 .eh_frame_hdr : { *(.eh_frame_hdr) }
102 .eh_frame : { KEEP (*(.eh_frame)) }
102 .eh_frame : {
103 /* The .eh_frame section from the crtend file contains the
104 end of eh_frame marker and it must be last. */
105 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
106 KEEP (*(.eh_frame))
107 }
103108 .gcc_except_table : { *(.gcc_except_table) }
104109 .jcr : { KEEP (*(.jcr)) }
105110 .ctors :
142147 *(.gnu.linkonce.r.*)
143148 }
144149 _fdata = ALIGN(16);
150 . = _fdata;
145151 .data : {
146152 *(.data)
147153 *(.data.*)
175181 *(.gnu.linkonce.b.*)
176182 *(COMMON)
177183 }
184 . = ALIGN(4);
178185 end = .;
179186 _end = .;
180187 }
5454 _etext = .;
5555
5656 .eh_frame_hdr : { *(.eh_frame_hdr) }
57 .eh_frame : { KEEP (*(.eh_frame)) }
57 .eh_frame :
58 {
59 /* The .eh_frame section from the crtend file contains the
60 end of eh_frame marker and it must be last. */
61 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
62 KEEP (*(.eh_frame))
63 }
5864 .gcc_except_table : { *(.gcc_except_table) }
5965 .jcr : { KEEP (*(.jcr)) }
6066 .ctors :
97103 *(.gnu.linkonce.r.*)
98104 }
99105 _fdata = ALIGN(16);
106 . = _fdata;
100107 .data : {
101108 *(.data)
102109 *(.data.*)
4848 }
4949
5050 .eh_frame_hdr : { *(.eh_frame_hdr) }
51 .eh_frame : { KEEP (*(.eh_frame)) }
51 .eh_frame : {
52 /* The .eh_frame section from the crtend file contains the
53 end of eh_frame marker and it must be last. */
54 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
55 KEEP (*(.eh_frame))
56 }
5257 .gcc_except_table : { *(.gcc_except_table) }
5358 .jcr : { KEEP (*(.jcr)) }
5459 .ctors :
9196 *(.gnu.linkonce.r.*)
9297 }
9398 _fdata = ALIGN(16);
99 . = _fdata;
94100 .data : {
95101 *(.data)
96102 *(.data.*)
128134 *(COMMON)
129135 }
130136
137 . = ALIGN(4);
131138 end = .;
132139 _end = .;
133140
4848 }
4949
5050 .eh_frame_hdr : { *(.eh_frame_hdr) }
51 .eh_frame : { KEEP (*(.eh_frame)) }
51 .eh_frame : {
52 /* The .eh_frame section from the crtend file contains the
53 end of eh_frame marker and it must be last. */
54 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
55 KEEP (*(.eh_frame))
56 }
5257 .gcc_except_table : { *(.gcc_except_table) }
5358 .jcr : { KEEP (*(.jcr)) }
5459 .ctors :
9196 *(.gnu.linkonce.r.*)
9297 }
9398 _fdata = ALIGN(16);
99 . = _fdata;
94100 .data : {
95101 *(.data)
96102 *(.data.*)
128134 *(COMMON)
129135 }
130136
137 . = ALIGN(4);
131138 end = .;
132139 _end = .;
133140
4848 }
4949
5050 .eh_frame_hdr : { *(.eh_frame_hdr) }
51 .eh_frame : { KEEP (*(.eh_frame)) }
51 .eh_frame :
52 {
53 /* The .eh_frame section from the crtend file contains the
54 end of eh_frame marker and it must be last. */
55 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
56 KEEP (*(.eh_frame))
57 }
5258 .gcc_except_table : { *(.gcc_except_table) }
5359 .jcr : { KEEP (*(.jcr)) }
5460 .ctors :
9197 *(.gnu.linkonce.r.*)
9298 }
9399 _fdata = ALIGN(16);
100 . = _fdata;
94101 .data : {
95102 *(.data)
96103 *(.data.*)
129136 *(COMMON)
130137 }
131138
139 . = ALIGN(4);
132140 end = .;
133141 _end = .;
134142
5555 _etext = .;
5656
5757 .eh_frame_hdr : { *(.eh_frame_hdr) }
58 .eh_frame : { KEEP (*(.eh_frame)) }
58 .eh_frame :
59 {
60 /* The .eh_frame section from the crtend file contains the
61 end of eh_frame marker and it must be last. */
62 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
63 KEEP (*(.eh_frame))
64 }
5965 .gcc_except_table : { *(.gcc_except_table) }
6066 .jcr : { KEEP (*(.jcr)) }
6167 .ctors :
98104 *(.gnu.linkonce.r.*)
99105 }
100106 _fdata = ALIGN(16);
107 . = _fdata;
101108 .data : {
102109 *(.data)
103110 *(.data.*)
135142 *(COMMON)
136143 }
137144
145 . = ALIGN(4);
138146 PROVIDE (end = .);
139147 _end = .;
140148
5757
5858
5959 .eh_frame_hdr : { *(.eh_frame_hdr) }
60 .eh_frame : { KEEP (*(.eh_frame)) }
60 .eh_frame : {
61 /* The .eh_frame section from the crtend file contains the
62 end of eh_frame marker and it must be last. */
63 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
64 KEEP (*(.eh_frame))
65 }
6166 .gcc_except_table : { *(.gcc_except_table) }
6267 .jcr : { KEEP (*(.jcr)) }
6368 .ctors :
100105 *(.gnu.linkonce.r.*)
101106 }
102107 _fdata = ALIGN(16);
108 . = _fdata;
103109 .data : {
104110 *(.data)
105111 *(.data.*)
137143 *(COMMON)
138144 }
139145
146 . = ALIGN(4);
140147 PROVIDE (end = .);
141148 _end = .;
142149
5858 _etext = .;
5959
6060 .eh_frame_hdr : { *(.eh_frame_hdr) }
61 .eh_frame : { KEEP (*(.eh_frame)) }
61 .eh_frame : {
62 /* The .eh_frame section from the crtend file contains the
63 end of eh_frame marker and it must be last. */
64 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
65 KEEP (*(.eh_frame))
66 }
6267 .gcc_except_table : { *(.gcc_except_table) }
6368 .jcr : { KEEP (*(.jcr)) }
6469 .ctors :
101106 *(.gnu.linkonce.r.*)
102107 }
103108 _fdata = ALIGN(16);
109 . = _fdata;
104110 .data : {
105111 *(.data)
106112 *(.data.*)
138144 *(COMMON)
139145 }
140146
147 . = ALIGN(4);
141148 PROVIDE (end = .);
142149 _end = .;
143150
5656 *(.gnu.linkonce.r.*)
5757 }
5858 _fdata = ALIGN(16);
59 . = _fdata;
5960 .data : {
6061 *(.data)
6162 *(.data.*)
9394 *(.gnu.linkonce.b.*)
9495 *(COMMON)
9596 }
97 . = ALIGN(4);
9698 end = .;
9799 _end = .;
98100 }
5656 *(.gnu.linkonce.r.*)
5757 }
5858 _fdata = ALIGN(16);
59 . = _fdata;
5960 .data : {
6061 *(.data)
6162 *(.data.*)
9798 . = __stack ;
9899 }
99100
101 . = ALIGN(4);
100102 end = .;
101103 _end = .;
102104
4747 }
4848
4949 .eh_frame_hdr : { *(.eh_frame_hdr) }
50 .eh_frame : { KEEP (*(.eh_frame)) }
50 .eh_frame : {
51 /* The .eh_frame section from the crtend file contains the
52 end of eh_frame marker and it must be last. */
53 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
54 KEEP (*(.eh_frame))
55 }
5156 .gcc_except_table : { *(.gcc_except_table) }
5257 .jcr : { KEEP (*(.jcr)) }
5358 .ctors :
9095 *(.gnu.linkonce.r.*)
9196 }
9297 _fdata = ALIGN(16);
98 . = _fdata;
9399 .data : {
94100 *(.data)
95101 *(.data.*)
130136 . = __stack ;
131137 }
132138
139 . = ALIGN(4);
133140 end = .;
134141 _end = .;
135142
5858 *(.gnu.linkonce.r.*)
5959 }
6060 _fdata = ALIGN(16);
61 . = _fdata;
6162 .data : {
6263 *(.data)
6364 *(.data.*)
9697 *(COMMON)
9798 }
9899
100 . = ALIGN(4);
99101 end = .;
100102 _end = .;
101103
5555 *(.gnu.linkonce.r.*)
5656 }
5757 _fdata = ALIGN(16);
58 . = fdata;
5859 .data : {
5960 *(.data)
6061 *(.data.*)
9394 *(COMMON)
9495 }
9596
97 . = ALIGN(4);
9698 end = .;
9799 _end = .;
98100
4747 }
4848
4949 .eh_frame_hdr : { *(.eh_frame_hdr) }
50 .eh_frame : { KEEP (*(.eh_frame)) }
50 .eh_frame : {
51 /* The .eh_frame section from the crtend file contains the
52 end of eh_frame marker and it must be last. */
53 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
54 KEEP (*(.eh_frame))
55 }
5156 .gcc_except_table : { *(.gcc_except_table) }
5257 .jcr : { KEEP (*(.jcr)) }
5358 .ctors :
9095 *(.gnu.linkonce.r.*)
9196 }
9297 _fdata = ALIGN(16);
98 . = _fdata;
9399 .data : {
94100 *(.data)
95101 *(.data.*)
126132 *(.gnu.linkonce.b.*)
127133 *(COMMON)
128134 }
135 . = ALIGN(4);
129136 end = .;
130137 _end = .;
131138 }
5656 _etext = .;
5757
5858 .eh_frame_hdr : { *(.eh_frame_hdr) }
59 .eh_frame : { KEEP (*(.eh_frame)) }
59 .eh_frame : {
60 /* The .eh_frame section from the crtend file contains the
61 end of eh_frame marker and it must be last. */
62 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
63 KEEP (*(.eh_frame))
64 }
6065 .gcc_except_table : { *(.gcc_except_table) }
6166 .jcr : { KEEP (*(.jcr)) }
6267 .ctors :
104109 *(.gnu.linkonce.r.*)
105110 }
106111 _fdata = ALIGN(16);
112 . = _fdata;
107113 .data : {
108114 *(.data)
109115 *(.data.*)
5858 _etext = .;
5959
6060 .eh_frame_hdr : { *(.eh_frame_hdr) }
61 .eh_frame : { KEEP (*(.eh_frame)) }
61 .eh_frame :
62 {
63 /* The .eh_frame section from the crtend file contains the
64 end of eh_frame marker and it must be last. */
65 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
66 KEEP (*(.eh_frame))
67 }
6268 .gcc_except_table : { *(.gcc_except_table) }
6369 .jcr : { KEEP (*(.jcr)) }
6470 .ctors :
106112 *(.gnu.linkonce.r.*)
107113 }
108114 _fdata = ALIGN(16);
115 . = _fdata;
109116 .data : {
110117 *(.data)
111118 *(.data.*)
6161 _etext = .;
6262
6363 .eh_frame_hdr : { *(.eh_frame_hdr) }
64 .eh_frame : { KEEP (*(.eh_frame)) }
64 .eh_frame :
65 {
66 /* The .eh_frame section from the crtend file contains the
67 end of eh_frame marker and it must be last. */
68 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
69 KEEP (*(.eh_frame))
70 }
6571 .gcc_except_table : { *(.gcc_except_table) }
6672 .jcr : { KEEP (*(.jcr)) }
6773 .ctors :
109115 *(.gnu.linkonce.r.*)
110116 }
111117 _fdata = ALIGN(16);
118 . = _fdata;
112119 .data : {
113120 *(.data)
114121 *(.data.*)
6161 _etext = .;
6262
6363 .eh_frame_hdr : { *(.eh_frame_hdr) }
64 .eh_frame : { KEEP (*(.eh_frame)) }
64 .eh_frame :
65 {
66 /* The .eh_frame section from the crtend file contains the
67 end of eh_frame marker and it must be last. */
68 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
69 KEEP (*(.eh_frame))
70 }
6571 .gcc_except_table : { *(.gcc_except_table) }
6672 .jcr : { KEEP (*(.jcr)) }
6773 .ctors :
109115 *(.gnu.linkonce.r.*)
110116 }
111117 _fdata = ALIGN(16);
118 . = _fdata;
112119 .data : {
113120 *(.data)
114121 *(.data.*)
4949 }
5050
5151 .eh_frame_hdr : { *(.eh_frame_hdr) }
52 .eh_frame : { KEEP (*(.eh_frame)) }
52 .eh_frame :
53 {
54 /* The .eh_frame section from the crtend file contains the
55 end of eh_frame marker and it must be last. */
56 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
57 KEEP (*(.eh_frame))
58 }
5359 .gcc_except_table : { *(.gcc_except_table) }
5460 .jcr : { KEEP (*(.jcr)) }
5561 .ctors :
9298 *(.gnu.linkonce.r.*)
9399 }
94100 _fdata = ALIGN(16);
101 . = _fdata;
95102 .data : {
96103 *(.data)
97104 *(.data.*)
4949 }
5050
5151 .eh_frame_hdr : { *(.eh_frame_hdr) }
52 .eh_frame : { KEEP (*(.eh_frame)) }
52 .eh_frame :
53 {
54 /* The .eh_frame section from the crtend file contains the
55 end of eh_frame marker and it must be last. */
56 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
57 KEEP (*(.eh_frame))
58 }
5359 .gcc_except_table : { *(.gcc_except_table) }
5460 .jcr : { KEEP (*(.jcr)) }
5561 .ctors :
9298 *(.gnu.linkonce.r.*)
9399 }
94100 _fdata = ALIGN(16);
101 . = _fdata;
95102 .data : {
96103 *(.data)
97104 *(.data.*)
129136 *(COMMON)
130137 }
131138
139 . = ALIGN(4);
132140 end = .;
133141 _end = .;
134142
5656 _etext = .;
5757
5858 .eh_frame_hdr : { *(.eh_frame_hdr) }
59 .eh_frame : { KEEP (*(.eh_frame)) }
59 .eh_frame :
60 {
61 /* The .eh_frame section from the crtend file contains the
62 end of eh_frame marker and it must be last. */
63 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
64 KEEP (*(.eh_frame))
65 }
6066 .gcc_except_table : { *(.gcc_except_table) }
6167 .jcr : { KEEP (*(.jcr)) }
6268 .ctors :
99105 *(.gnu.linkonce.r.*)
100106 }
101107 _fdata = ALIGN(16);
108 . = _fdata;
102109 .data : {
103110 *(.data)
104111 *(.data.*)
136143 *(COMMON)
137144 }
138145
146 . = ALIGN(4);
139147 PROVIDE (end = .);
140148 _end = .;
141149
5858 _etext = .;
5959
6060 .eh_frame_hdr : { *(.eh_frame_hdr) }
61 .eh_frame : { KEEP (*(.eh_frame)) }
61 .eh_frame :
62 {
63 /* The .eh_frame section from the crtend file contains the
64 end of eh_frame marker and it must be last. */
65 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
66 KEEP (*(.eh_frame))
67 }
6268 .gcc_except_table : { *(.gcc_except_table) }
6369 .jcr : { KEEP (*(.jcr)) }
6470 .ctors :
101107 *(.gnu.linkonce.r.*)
102108 }
103109 _fdata = ALIGN(16);
110 . = _fdata;
104111 .data : {
105112 *(.data)
106113 *(.data.*)
138145 *(COMMON)
139146 }
140147
148 . = ALIGN(4);
141149 PROVIDE (end = .);
142150 _end = .;
143151
00 /*
11 * sim-unlink.S -- write interface for moxie simulator
22 *
3 * Copyright (c) 2008 Anthony Green
3 * Copyright (c) 2008, 2019 Anthony Green
44 *
55 * The authors hereby grant permission to use, copy, modify, distribute,
66 * and license this software and its documentation for any purpose, provided
2121 .text
2222 _unlink:
2323 unlink:
24 jmpa unlink
24 swi SYS_unlink
2525 ret
2626 .Lend:
2727 .size _unlink,.Lend-_unlink
6060 SCRIPTS += $(srcdir)/msp430xl-sim.ld
6161 SCRIPTS += $(srcdir)/intr_vectors.ld
6262
63 CRT = gcrt0.o crt0.o crt0-minrt.o crtn.o crtn-minrt.o
63 CRT = gcrt0.o crt0.o
6464 SIM_BSP = libsim.a
6565 LIB_NOSYS = libnosys.a
6666 LIB_CRT = libcrt.a
6868 SIM_OBJS = syscalls.o \
6969 cio.o \
7070 write.o \
71 unlink.o \
7172 sbrk.o
7273
7374 NOSYS_OBJS = ciosyscalls.o \
8485 crt_movedata.o \
8586 crt_move_highdata.o \
8687 crt_main.o \
87 crt_main_minrt.o \
8888 crt_callexit.o \
89 crt_run_init_array.o \
90 crt_run_preinit_array.o \
91 crt_run_fini_array.o \
92 crt_run_array.o \
8993 crt_init.o
9094
9195 #### Host specific Makefile fragment comes in here.
96100
97101 crt_%.o : crt0.S
98102 $(CC) -DL$* -Wa,-gdwarf2 -Wa,-I$(srcdir) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $< -o $@
99
100 crt0-minrt.o : crt0.S
101 $(CC) -DL0 -DMINRT -Wa,-gdwarf2 -Wa,-I$(srcdir) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $< -o $@
102
103 crtn-minrt.o : crtn.S
104 $(CC) -DL0 -DMINRT -Wa,-gdwarf2 -Wa,-I$(srcdir) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $< -o $@
105103
106104 # Override .S.o rule to pass assembler debugging flags
107105 .S.o:
5151
5252 START_CRT_FUNC 0000 start
5353 .refsym __msp430_resetvec_hook
54 #ifdef MINRT
55 .refsym __crt0_call_just_main
56 #else
57 .refsym __crt0_call_init_then_main
58 #endif
54 .refsym __crt0_call_main
5955 mov_ #__stack, R1
6056
6157 END_CRT_FUNC start
6258 #endif
6359
60 ;; The CRT functions below will only be present in the final linked
61 ;; executable if the assembler decides they are needed. The assembler will
62 ;; only define the symbol necessary to prevent them being garbage collected
63 ;; by the linker if the file being assembled has a specific section,
64 ;; or some other criteria is met.
65 ;; The exception to this is __crt0_call_exit. GCC will include this function
66 ;; if it detects that main() has an epilogue. For example, if main() has a
67 ;; while(1) loop at the end, GCC will not generate an epilogue (since it won't
68 ;; return) and __crt0_call_exit won't be included.
6469
6570 #if Lbss
66 ;; Note - this section is only included in the startup code of the
67 ;; application if it is needed. It is responsible for initializing
68 ;; the contents of the .bss section.
71 ;; This function is responsible for initializing the contents of the
72 ;; .bss section.
6973
7074 START_CRT_FUNC 0100 init_bss
7175
8387
8488 #ifdef __MSP430X_LARGE__
8589 #if Lhigh_bss
86 ;; Note - this section is only included in the startup code of the
87 ;; application if it is needed. It is responsible for initializing
88 ;; the contents of the .upper.bss section.
90 ;; This function is responsible for initializing the contents of the
91 ;; .upper.bss section.
8992
9093 START_CRT_FUNC 0200 init_highbss
9194
104107
105108
106109 #if Lmovedata
107 ;; Note - this section is only included in the startup code of the
108 ;; application if it is needed. It is responsible for copying the
110 ;; This function is responsible for copying the
109111 ;; contents of the .data section from its load address (in ROM) to
110112 ;; its run-time address (in RAM).
111113
128130
129131 #ifdef __MSP430X_LARGE__
130132 #if Lmove_highdata
131 ;; Note - this section is only included in the startup code of the application
132 ;; if it is needed. It is responsible either for making sure that the
133 ;; This function is responsible for making sure that the
133134 ;; contents of the .upper.data section have their correct startup values.
134135 ;; If a copy of the .upper.data section is stored in ROM then this means
135136 ;; copying the contents into HIFRAM. If a copy of .upper.data is stored in a
167168 #endif /* Lmove_highdata */
168169 #endif /* __MSP430X_LARGE__ */
169170
170
171 #if Lmain_minrt
172 ;; Note - this section is only included in the startup code of the
173 ;; application if it is needed. It is responsible for just calling
174 ;; main. No initialization code is called first, and main is not
175 ;; expected to return.
176
177 START_CRT_FUNC 0600 call_just_main
178
179 clr.w R12 ; Set argc == 0
180 call_ #main
181 END_CRT_FUNC call_just_main
182 #endif /* Lmain_minrt */
183
184
185 #if Lmain
186 ;; Note - this section is only included in the startup code of the
187 ;; application if it is needed. It is responsible for calling the
188 ;; initialization code - constructors, etc - and then main. If main
189 ;; returns then the following section should be present to catch it.
190
191 START_CRT_FUNC 0700 call_init_then_main
192
193 call_ #__msp430_init
194
195 clr.w R12 ; Set argc == 0
196 call_ #main
197
198 END_CRT_FUNC call_init_then_main
199 #endif /* Lmain */
200
201
202 #if Lcallexit
203 ;; Note - this section is only included in the startup code of the
204 ;; application if it is needed. It is responsible for calling exit
205 ;; once main has finished.
206
207 START_CRT_FUNC 0800 call_exit
208
209 call_ #_exit
210
211 END_CRT_FUNC call_exit
212 #endif /* Lcallexit */
213
214 ;----------------------------------------
215
216 #ifndef MINRT
217 #if L0
218 .section ".crt_0900main_init", "ax", @progbits
219 .global _msp430_run_init_array
220 .type _msp430_run_init_array,@function
221 _msp430_run_init_array:
171 #if Lrun_preinit_array
172 ;; This function is responsible for setting up the arguments
173 ;; required for __crt0_run_array, to run the functions in .preinit_array.
174 START_CRT_FUNC 0500 run_preinit_array
175
176 mov_ #__preinit_array_start, R4
177 mov_ #__preinit_array_end, R5
178 mov_ #PTRsz, R6
179 call_ #__crt0_run_array
180
181 END_CRT_FUNC run_preinit_array
182 #endif /* Lrun_preinit_array */
183
184 #if Lrun_init_array
185 ;; This function is responsible for setting up the arguments
186 ;; required for __crt0_run_array, to run the functions in .init_array.
187 START_CRT_FUNC 0600 run_init_array
188
222189 mov_ #__init_array_start, R4
223190 mov_ #__init_array_end, R5
224191 mov_ #PTRsz, R6
225 br_ #_msp430_run_array
226
227 .global _msp430_run_preinit_array
228 .type _msp430_run_preinit_array,@function
229 _msp430_run_preinit_array:
230 mov_ #__preinit_array_start, R4
231 mov_ #__preinit_array_end, R5
232 mov_ #PTRsz, R6
233 br_ #_msp430_run_array
234
235 .global _msp430_run_fini_array
236 .type _msp430_run_fini_array,@function
237 _msp430_run_fini_array:
192 call_ #__crt0_run_array
193
194 END_CRT_FUNC run_init_array
195 #endif /* Lrun_init_array */
196
197 ;; FIXME: There are currently no program termination routines executed for
198 ;; msp430.
199 #if 0
200 #if Lrun_fini_array
201 ;; Ensure global C++ destructors in .fini_array are called on exit
202 ;; by registering __crt0_run_fini_array with atexit.
203 START_CRT_FUNC 0700 register_fini_array
204
205 mov_ #__crt0_run_fini_array, R12
206 call_ #atexit
207
208 END_CRT_FUNC register_fini_array
209 #endif /* Lrun_fini_array */
210 #endif /* 0 */
211
212 #if Lmain
213 ;; This function is always included and calls main().
214
215 START_CRT_FUNC 0800 call_main
216
217 clr.w R12 ; Set argc == 0
218 call_ #main
219
220 END_CRT_FUNC call_main
221 #endif /* Lmain */
222
223 #if Lcallexit
224 ;; This function is responsible for calling exit once main has finished.
225
226 START_CRT_FUNC 0900 call_exit
227
228 call_ #_exit
229
230 END_CRT_FUNC call_exit
231 #endif /* Lcallexit */
232
233 ;----------------------------------------
234
235 #if Lrun_fini_array
236 ;; This function is responsible for setting up the arguments
237 ;; required for __crt0_run_array, to run the functions in .fini_array.
238 START_CRT_FUNC 1000 run_fini_array
239
238240 mov_ #__fini_array_start, R4
239241 mov_ #__fini_array_end, R5
240242 mov_ #-PTRsz, R6
241 br_ #_msp430_run_array
242
243 _msp430_run_array:
243 call_ #__crt0_run_array
244
245 END_CRT_FUNC run_fini_array
246 #endif /* Lrun_fini_array */
247
248 #if Lrun_array
249 ;; Note - this section is only included in the startup code of the application
250 ;; if it is needed by one of the above run_*_array functions.
251 START_CRT_FUNC 1100 run_array
252
244253 cmp_ R4, R5
245254 jeq _msp430_run_done
246255 mov_ @R4, R7
247256 add_ R6, R4
248 call_ @R7
249 br_ _msp430_run_array
257 call_ R7
258 br_ #__crt0_run_array
259
260 END_CRT_FUNC run_array
250261
251262 _msp430_run_done:
252263 ret_
253
254 ;----------------------------------------
255
256 .section .init,"ax"
257
258 .global __msp430_init
259 __msp430_init:
260
261 .section .fini,"ax"
262
263 .global __msp430_fini
264 __msp430_fini:
265 call_ #_msp430_run_fini_array
266
267 #endif
268 #endif /* not MINRT */
264 #endif /* Lrun_array */
+0
-32
libgloss/msp430/crtn.S less more
0 /* Copyright (c) 2013 Red Hat, Inc. All rights reserved.
1
2 This copyrighted material is made available to anyone wishing to use, modify,
3 copy, or redistribute it subject to the terms and conditions of the BSD
4 License. This program is distributed in the hope that it will be useful,
5 but WITHOUT ANY WARRANTY expressed or implied, including the implied warranties
6 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. A copy of this license
7 is available at http://www.opensource.org/licenses. Any Red Hat trademarks that
8 are incorporated in the source code or documentation are not subject to the BSD
9 License and may only be used or replicated with the express permission of
10 Red Hat, Inc.
11 */
12
13 #include "memmodel.h"
14
15 #ifndef MINRT
16 .section .init,"ax"
17 call_ #_msp430_run_preinit_array
18 call_ #_msp430_run_init_array
19 ret_
20 .global __msp430_init_end
21 __msp430_init_end:
22
23 .section .fini,"ax"
24
25 ret_
26 .global __msp430_fini_end
27 __msp430_fini_end:
28
29 .text
30
31 #endif
105105 PROVIDE (_etext = .);
106106 PROVIDE (etext = .);
107107 . = ALIGN(2);
108 KEEP (*(.init))
109 KEEP (*(.fini))
110108 KEEP (*(.tm_clone_table))
111109 } > RAM
112110
386386 PROVIDE (_etext = .);
387387 PROVIDE (etext = .);
388388 . = ALIGN(2);
389 KEEP (*(.init))
390 KEEP (*(.fini))
391389 KEEP (*(.tm_clone_table))
392390 } > ROM
393391
1515 #include "cio.h"
1616
1717 static int
18 write_chunk (int fd, char *buf, int len)
18 write_chunk (int fd, const char *buf, int len)
1919 {
2020 __CIOBUF__.length[0] = len;
2121 __CIOBUF__.length[1] = len >> 8;
3434 #include <stdio.h>
3535
3636 int
37 write (int fd, char *buf, int len)
37 write (int fd, const char *buf, int len)
3838 {
3939 int rv = 0;
4040 int c;
41 int i = 0;
4142 #if 0
4243 if (fd == 2)
4344 fprintf (stderr, "%.*s", buf, len);
4748 while (len > 0)
4849 {
4950 int l = (len > CIO_BUF_SIZE) ? CIO_BUF_SIZE : len;
50 c = write_chunk (fd, buf, l);
51 c = write_chunk (fd, buf + i, l);
5152 if (c < 0)
5253 return c;
5354 rv += l;
5455 len -= l;
55 buf += l;
56 i += l;
5657 }
5758 return rv;
5859 }
00 /* crt0.S -- startup code for Nios II QEMU generic-nommu board emulation.
11
2 Copyright (c) 2018 Mentor Graphics
2 Copyright (c) 2018-2019 Mentor Graphics
33
44 The authors hereby grant permission to use, copy, modify, distribute,
55 and license this software and its documentation for any purpose, provided
8080
8181 .size __reset, . - __reset
8282
83 /* Provide a stub interrupt handler that waits in a busy loop.
84 The alignment puts it at offset 0x20 from the base of RAM. */
85
86 .align 5
87
88 .globl __interrupt_handler
89 .type __interrupt_handler, @function
90 __interrupt_handler:
91 0:
92 br 0b
93
94 .size __interrupt_handler, . - __interrupt_handler
8395
8496 /* __start is the ELF entry point. */
8597
105105 s->st_size = SWAP64 (gs->st_size);
106106 s->st_blksize = SWAP64 (gs->st_blksize);
107107 s->st_blocks = SWAP64 (gs->st_blocks);
108 s->st_atime = SWAP32 (gs->st_atime);
109 s->st_mtime = SWAP32 (gs->st_mtime);
110 s->st_ctime = SWAP32 (gs->st_ctime);
108 s->st_atime = SWAP32 (gs->st_atim);
109 s->st_mtime = SWAP32 (gs->st_mtim);
110 s->st_ctime = SWAP32 (gs->st_ctim);
111111 }
112112
113113 void
5656 uint64_t st_size; /* total size, in bytes */
5757 uint64_t st_blksize; /* blocksize for filesystem I/O */
5858 uint64_t st_blocks; /* number of blocks allocated */
59 gdb_time_t st_atime; /* time of last access */
60 gdb_time_t st_mtime; /* time of last modification */
61 gdb_time_t st_ctime; /* time of last change */
59 gdb_time_t st_atim; /* time of last access */
60 gdb_time_t st_mtim; /* time of last modification */
61 gdb_time_t st_ctim; /* time of last change */
6262 };
6363
6464 struct gdb_timeval {
0 Copyright (c) 2006 CodeSourcery Inc
1 Copyright (c) 2018, 2019 Mentor Graphics
2
3 The authors hereby grant permission to use, copy, modify, distribute,
4 and license this software and its documentation for any purpose, provided
5 that existing copyright notices are retained in all copies and that this
6 notice is included verbatim in any distributions. No written agreement,
7 license, or royalty fee is required for any of the authorized uses.
8 Modifications to this software may be copyrighted by their authors
9 and need not follow the licensing terms described here, provided that
10 the new terms are clearly indicated on the first page of each file where
11 they apply.
12
13
14 Nios II Semihosting Protocol
15 ----------------------------
16
17 The runtime (libgloss) indicates a semihosting request to the debug
18 agent by issuing a "break 1" instruction. r4 and r5 are used to pass
19 parameters per the normal C ABI on nios2.
20
21 r4 contains a request code. r5 is typically a pointer to a 4-word
22 parameter block, except for the exit operation where it is an
23 immediate integer value.
24
25 The result of the operation is returned in the first word of the
26 parameter block. The second word is used to return an errno value,
27 encoded per the "Errno Values" section of the RSP documentation in the
28 GDB User Manual.
29
30 The supported r4 request codes are:
31
32 #define HOSTED_EXIT 0
33
34 Terminate program execution; send a 'W' stop reply to GDB.
35
36 r5 contains the exit code, as an immediate integer rather than indirectly
37 in a parameter block. This semihosting request isn't expected to return.
38
39 #define HOSTED_INIT_SIM 1
40
41 Reserved/unimplemented.
42
43 #define HOSTED_OPEN 2
44
45 Open file; 'Fopen' GDB fileio request.
46
47 r5 points to a parameter block containing:
48 [0] pointer to filename
49 [1] filename length
50 [2] open flags, encoded per the GDB RSP documentation
51 [3] mode, encoded per the GDB RSP documentation
52
53 Return values in parameter block:
54 [0] file descriptor or -1 on error
55 [1] errno, encoded per the GDB RSP documentation
56
57 #define HOSTED_CLOSE 3
58
59 Close file; 'Fclose' GDB fileio request.
60
61 r5 points to a parameter block containing:
62 [0] file descriptor
63
64 Return values in parameter block:
65 [0] return status
66 [1] errno, encoded per the GDB RSP documentation
67
68 #define HOSTED_READ 4
69
70 Read from file; 'Fread' GDB fileio request.
71
72 r5 points to a parameter block containing:
73 [0] file descriptor
74 [1] pointer to buffer
75 [2] buffer size
76
77 Return values in parameter block:
78 [0] number of bytes read
79 [1] errno, encoded per the GDB RSP documentation
80
81 #define HOSTED_WRITE 5
82
83 Write to file; 'Fwrite' GDB fileio request.
84
85 r5 points to a parameter block containing:
86 [0] file descriptor
87 [1] pointer to buffer
88 [2] byte count
89
90 Return values in parameter block:
91 [0] number of bytes written
92 [1] errno, encoded per the GDB RSP documentation
93
94 #define HOSTED_LSEEK 6
95
96 File seek; 'Flseek' GDB fileio request.
97
98 r5 points to a parameter block containing:
99 [0] file descriptor
100 [1] high word of 64-bit offset
101 [2] low word of 64-bit offset
102 [3] seek flag, encoded per the GDB RSP documentation
103
104 Return values in parameter block:
105 [0] high word of 64-bit result
106 [1] low word of 64-bit result
107 [2] errno, encoded per the GDB RSP documentation
108
109 #define HOSTED_RENAME 7
110
111 File rename; 'Frename' GDB fileio request.
112
113 r5 points to a parameter block containing:
114 [0] oldname pointer
115 [1] oldname length
116 [2] newname pointer
117 [3] newname length
118
119 Return values in parameter block:
120 [0] return status
121 [1] errno, encoded per the GDB RSP documentation
122
123 #define HOSTED_UNLINK 8
124
125 File unlink/delete; 'Funlink' GDB fileio request.
126
127 r5 points to a parameter block containing:
128 [0] filename pointer
129 [1] filename length
130
131 Return values in parameter block:
132 [0] return status
133 [1] errno, encoded per the GDB RSP documentation
134
135 #define HOSTED_STAT 9
136
137 File information; 'Fstat' GDB fileio request.
138
139 r5 points to a parameter block containing:
140 [0] filename pointer
141 [1] filename length
142 [2] pointer to stat buf, using the structure definition in the GDB RSP
143 documentation
144
145 Return values in parameter block:
146 [0] return status
147 [1] errno, encoded per the GDB RSP documentation
148
149 #define HOSTED_FSTAT 10
150
151 File information; 'Ffstat' GDB fileio request.
152
153 r5 points to a parameter block containing:
154 [0] file descriptor
155 [1] pointer to stat buf, using the structure definition in the GDB RSP
156 documentation
157
158 Return values in parameter block:
159 [0] return status
160 [1] errno, encoded per the GDB RSP documentation
161
162 #define HOSTED_GETTIMEOFDAY 11
163
164 Get current time; 'Fgettimeofday' GDB fileio request.
165
166 r5 points to a parameter block containing:
167 [0] timeval pointer, using the structure definition in the GDB RSP
168 documentation
169
170 Return values in parameter block:
171 [0] return status
172 [1] errno, encoded per the GDB RSP documentation
173
174 #define HOSTED_ISATTY 12
175
176 Return true if the file descriptor is the GDB console; 'Fisatty' GDB fileio
177 request.
178
179 r5 points to a parameter block containing:
180 [0] file descriptor
181
182 Return values in parameter block:
183 [0] return status
184 [1] errno, encoded per the GDB RSP documentation
185
186 #define HOSTED_SYSTEM 13
187
188 System call; 'Fsystem' GDB fileio request.
189
190 r5 points to a parameter block containing:
191 [0] command pointer
192 [1] command length
193
194 Return values in parameter block:
195 [0] return status
196 [1] errno, encoded per the GDB RSP documentation
0 # SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 #
2 # Copyright 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8 # 1. Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the distribution.
13 #
14 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
25 VPATH = @srcdir@ @srcdir@/..
26
27 srcdir = @srcdir@
28 objdir = .
29 srcroot = $(srcdir)/../..
30 objroot = $(objdir)/../..
31 top_srcdir = @top_srcdir@
32
33 prefix = @prefix@
34 exec_prefix = @exec_prefix@
35
36 host_alias = @host_alias@
37 target_alias = @target_alias@
38
39 bindir = @bindir@
40 libdir = @libdir@
41 includedir = @includedir@
42 tooldir = $(exec_prefix)/$(target_alias)
43
44 # Multilib support variables.
45 # TOP is used instead of MULTI{BUILD,SRC}TOP.
46 MULTIDIRS =
47 MULTISUBDIR =
48
49 SHELL = /bin/sh
50
51 mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
52
53 CC = @CC@
54
55 AS = @AS@
56
57 AR = @AR@
58
59 LD = @LD@
60
61 RANLIB = @RANLIB@
62
63 OBJDUMP = `t='$(program_transform_name)'; echo objdump | sed -e $$t`
64 OBJCOPY = `t='$(program_transform_name)'; echo objcopy | sed -e $$t`
65
66 # linker scripts
67 SCRIPTS = `ls ${srcdir}/ldscripts/*.x`
68
69 # object files needed
70 OBJS = \
71 do_global_dtors.o gettimeofday.o \
72 isatty.o putnum.o raise.o \
73 inbyte.o outbyte.o sbrk.o stat.o syscalls.o \
74 do_global_dtors.o
75
76 # Object files specific to particular targets.
77 EVALOBJS = ${OBJS}
78
79 CRTOBJS = crt0.o crt0-minrt.o
80 OUTPUTS = libgloss.a $(CRTOBJS)
81
82 INCLUDES = -I$(srcdir)/..
83
84 # Note that when building the library, ${MULTILIB} is not the way multilib
85 # options are passed; they're passed in $(CFLAGS).
86 CFLAGS_FOR_TARGET = ${MULTILIB} ${INCLUDES}
87 LDFLAGS_FOR_TARGET = ${MULTILIB}
88
89 .c.o:
90 $(CC) $(CFLAGS_FOR_TARGET) -Os $(INCLUDES) -c $(CFLAGS) $<
91
92 .C.o:
93 $(CC) $(CFLAGS_FOR_TARGET) -Os $(INCLUDES) -c $(CFLAGS) $<
94 .s.o:
95 $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $<
96
97 #
98 # GCC knows to run the preprocessor on .S files before it assembles them.
99 #
100 .S.o:
101 $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $<
102
103 all: ${OUTPUTS} copy_scripts_to_objdir
104
105 copy_scripts_to_objdir: $(srcdir)/ldscripts/gen-ld-scripts.sh
106 cp $(SCRIPTS) $(objdir)
107
108 #
109 # here's where we build the library for each target
110 #
111
112 libgloss.a: $(EVALOBJS)
113 ${AR} ${ARFLAGS} $@ $(EVALOBJS)
114 ${RANLIB} $@
115
116 # C Runtime Library startup code.
117 crt0.o: $(srcdir)/crt0.S
118 $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) $< -c -o $@
119
120 crt0-minrt.o: $(srcdir)/crt0.S
121 $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -DMINRT $< -c -o $@
122
123 doc:
124
125 clean mostlyclean:
126 rm -f $(OUTPUTS) *.i *~ *.o *-test *.srec *.dis *.map *.x
127
128 distclean maintainer-clean realclean: clean
129 rm -f Makefile config.status $(OUTPUTS)
130
131 .PHONY: install info install-info clean-info
132 install: $(OUTPUTS) $(srcdir)/ldscripts/gen-ld-scripts.sh
133 for outputs in ${OUTPUTS}; do\
134 ${INSTALL_DATA} $${outputs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}/$${outputs}; \
135 done
136 for s in $(SCRIPTS); do \
137 b=`basename $$s`; \
138 ${INSTALL_DATA} $$s ${DESTDIR}${tooldir}/lib${MULTISUBDIR}/$$b ;\
139 done
140 ${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}/device-specs; \
141 for s in ${srcdir}/device-specs/*; do \
142 b=`basename $$s`; \
143 $(INSTALL_DATA) $$s $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/device-specs/$$b ;\
144 done
145
146 info:
147 install-info:
148 clean-info:
149
150 Makefile: $(srcdir)/Makefile.in config.status @host_makefile_frag_path@
151 $(SHELL) config.status
152
153 config.status: $(srcdir)/configure
154 $(SHELL) config.status --recheck
0 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 # AM_CONDITIONAL -*- Autoconf -*-
15
16 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
17 # Free Software Foundation, Inc.
18 #
19 # This file is free software; the Free Software Foundation
20 # gives unlimited permission to copy and/or distribute it,
21 # with or without modifications, as long as this notice is preserved.
22
23 # serial 9
24
25 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
26 # -------------------------------------
27 # Define a conditional.
28 AC_DEFUN([AM_CONDITIONAL],
29 [AC_PREREQ(2.52)dnl
30 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
31 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
32 AC_SUBST([$1_TRUE])dnl
33 AC_SUBST([$1_FALSE])dnl
34 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
35 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
36 m4_define([_AM_COND_VALUE_$1], [$2])dnl
37 if $2; then
38 $1_TRUE=
39 $1_FALSE='#'
40 else
41 $1_TRUE='#'
42 $1_FALSE=
43 fi
44 AC_CONFIG_COMMANDS_PRE(
45 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
46 AC_MSG_ERROR([[conditional "$1" was never defined.
47 Usually this means the macro was only invoked conditionally.]])
48 fi])])
49
50 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
51 # 2010, 2011 Free Software Foundation, Inc.
52 #
53 # This file is free software; the Free Software Foundation
54 # gives unlimited permission to copy and/or distribute it,
55 # with or without modifications, as long as this notice is preserved.
56
57 # serial 12
58
59 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
60 # written in clear, in which case automake, when reading aclocal.m4,
61 # will think it sees a *use*, and therefore will trigger all it's
62 # C support machinery. Also note that it means that autoscan, seeing
63 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
64
65
66 # _AM_DEPENDENCIES(NAME)
67 # ----------------------
68 # See how the compiler implements dependency checking.
69 # NAME is "CC", "CXX", "GCJ", or "OBJC".
70 # We try a few techniques and use that to set a single cache variable.
71 #
72 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
73 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
74 # dependency, and given that the user is not expected to run this macro,
75 # just rely on AC_PROG_CC.
76 AC_DEFUN([_AM_DEPENDENCIES],
77 [AC_REQUIRE([AM_SET_DEPDIR])dnl
78 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
79 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
80 AC_REQUIRE([AM_DEP_TRACK])dnl
81
82 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
83 [$1], CXX, [depcc="$CXX" am_compiler_list=],
84 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
85 [$1], UPC, [depcc="$UPC" am_compiler_list=],
86 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
87 [depcc="$$1" am_compiler_list=])
88
89 AC_CACHE_CHECK([dependency style of $depcc],
90 [am_cv_$1_dependencies_compiler_type],
91 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
92 # We make a subdir and do the tests there. Otherwise we can end up
93 # making bogus files that we don't know about and never remove. For
94 # instance it was reported that on HP-UX the gcc test will end up
95 # making a dummy file named `D' -- because `-MD' means `put the output
96 # in D'.
97 rm -rf conftest.dir
98 mkdir conftest.dir
99 # Copy depcomp to subdir because otherwise we won't find it if we're
100 # using a relative directory.
101 cp "$am_depcomp" conftest.dir
102 cd conftest.dir
103 # We will build objects and dependencies in a subdirectory because
104 # it helps to detect inapplicable dependency modes. For instance
105 # both Tru64's cc and ICC support -MD to output dependencies as a
106 # side effect of compilation, but ICC will put the dependencies in
107 # the current directory while Tru64 will put them in the object
108 # directory.
109 mkdir sub
110
111 am_cv_$1_dependencies_compiler_type=none
112 if test "$am_compiler_list" = ""; then
113 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
114 fi
115 am__universal=false
116 m4_case([$1], [CC],
117 [case " $depcc " in #(
118 *\ -arch\ *\ -arch\ *) am__universal=true ;;
119 esac],
120 [CXX],
121 [case " $depcc " in #(
122 *\ -arch\ *\ -arch\ *) am__universal=true ;;
123 esac])
124
125 for depmode in $am_compiler_list; do
126 # Setup a source with many dependencies, because some compilers
127 # like to wrap large dependency lists on column 80 (with \), and
128 # we should not choose a depcomp mode which is confused by this.
129 #
130 # We need to recreate these files for each test, as the compiler may
131 # overwrite some of them when testing with obscure command lines.
132 # This happens at least with the AIX C compiler.
133 : > sub/conftest.c
134 for i in 1 2 3 4 5 6; do
135 echo '#include "conftst'$i'.h"' >> sub/conftest.c
136 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
137 # Solaris 8's {/usr,}/bin/sh.
138 touch sub/conftst$i.h
139 done
140 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
141
142 # We check with `-c' and `-o' for the sake of the "dashmstdout"
143 # mode. It turns out that the SunPro C++ compiler does not properly
144 # handle `-M -o', and we need to detect this. Also, some Intel
145 # versions had trouble with output in subdirs
146 am__obj=sub/conftest.${OBJEXT-o}
147 am__minus_obj="-o $am__obj"
148 case $depmode in
149 gcc)
150 # This depmode causes a compiler race in universal mode.
151 test "$am__universal" = false || continue
152 ;;
153 nosideeffect)
154 # after this tag, mechanisms are not by side-effect, so they'll
155 # only be used when explicitly requested
156 if test "x$enable_dependency_tracking" = xyes; then
157 continue
158 else
159 break
160 fi
161 ;;
162 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
163 # This compiler won't grok `-c -o', but also, the minuso test has
164 # not run yet. These depmodes are late enough in the game, and
165 # so weak that their functioning should not be impacted.
166 am__obj=conftest.${OBJEXT-o}
167 am__minus_obj=
168 ;;
169 none) break ;;
170 esac
171 if depmode=$depmode \
172 source=sub/conftest.c object=$am__obj \
173 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
174 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
175 >/dev/null 2>conftest.err &&
176 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
177 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
178 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
179 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
180 # icc doesn't choke on unknown options, it will just issue warnings
181 # or remarks (even with -Werror). So we grep stderr for any message
182 # that says an option was ignored or not supported.
183 # When given -MP, icc 7.0 and 7.1 complain thusly:
184 # icc: Command line warning: ignoring option '-M'; no argument required
185 # The diagnosis changed in icc 8.0:
186 # icc: Command line remark: option '-MP' not supported
187 if (grep 'ignoring option' conftest.err ||
188 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
189 am_cv_$1_dependencies_compiler_type=$depmode
190 break
191 fi
192 fi
193 done
194
195 cd ..
196 rm -rf conftest.dir
197 else
198 am_cv_$1_dependencies_compiler_type=none
199 fi
200 ])
201 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
202 AM_CONDITIONAL([am__fastdep$1], [
203 test "x$enable_dependency_tracking" != xno \
204 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
205 ])
206
207
208 # AM_SET_DEPDIR
209 # -------------
210 # Choose a directory name for dependency files.
211 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
212 AC_DEFUN([AM_SET_DEPDIR],
213 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
214 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
215 ])
216
217
218 # AM_DEP_TRACK
219 # ------------
220 AC_DEFUN([AM_DEP_TRACK],
221 [AC_ARG_ENABLE(dependency-tracking,
222 [ --disable-dependency-tracking speeds up one-time build
223 --enable-dependency-tracking do not reject slow dependency extractors])
224 if test "x$enable_dependency_tracking" != xno; then
225 am_depcomp="$ac_aux_dir/depcomp"
226 AMDEPBACKSLASH='\'
227 am__nodep='_no'
228 fi
229 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
230 AC_SUBST([AMDEPBACKSLASH])dnl
231 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
232 AC_SUBST([am__nodep])dnl
233 _AM_SUBST_NOTMAKE([am__nodep])dnl
234 ])
235
236 # Generate code to set up dependency tracking. -*- Autoconf -*-
237
238 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
239 # Free Software Foundation, Inc.
240 #
241 # This file is free software; the Free Software Foundation
242 # gives unlimited permission to copy and/or distribute it,
243 # with or without modifications, as long as this notice is preserved.
244
245 #serial 5
246
247 # _AM_OUTPUT_DEPENDENCY_COMMANDS
248 # ------------------------------
249 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
250 [{
251 # Autoconf 2.62 quotes --file arguments for eval, but not when files
252 # are listed without --file. Let's play safe and only enable the eval
253 # if we detect the quoting.
254 case $CONFIG_FILES in
255 *\'*) eval set x "$CONFIG_FILES" ;;
256 *) set x $CONFIG_FILES ;;
257 esac
258 shift
259 for mf
260 do
261 # Strip MF so we end up with the name of the file.
262 mf=`echo "$mf" | sed -e 's/:.*$//'`
263 # Check whether this is an Automake generated Makefile or not.
264 # We used to match only the files named `Makefile.in', but
265 # some people rename them; so instead we look at the file content.
266 # Grep'ing the first line is not enough: some people post-process
267 # each Makefile.in and add a new line on top of each file to say so.
268 # Grep'ing the whole file is not good either: AIX grep has a line
269 # limit of 2048, but all sed's we know have understand at least 4000.
270 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
271 dirpart=`AS_DIRNAME("$mf")`
272 else
273 continue
274 fi
275 # Extract the definition of DEPDIR, am__include, and am__quote
276 # from the Makefile without running `make'.
277 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
278 test -z "$DEPDIR" && continue
279 am__include=`sed -n 's/^am__include = //p' < "$mf"`
280 test -z "am__include" && continue
281 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
282 # When using ansi2knr, U may be empty or an underscore; expand it
283 U=`sed -n 's/^U = //p' < "$mf"`
284 # Find all dependency output files, they are included files with
285 # $(DEPDIR) in their names. We invoke sed twice because it is the
286 # simplest approach to changing $(DEPDIR) to its actual value in the
287 # expansion.
288 for file in `sed -n "
289 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
290 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
291 # Make sure the directory exists.
292 test -f "$dirpart/$file" && continue
293 fdir=`AS_DIRNAME(["$file"])`
294 AS_MKDIR_P([$dirpart/$fdir])
295 # echo "creating $dirpart/$file"
296 echo '# dummy' > "$dirpart/$file"
297 done
298 done
299 }
300 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
301
302
303 # AM_OUTPUT_DEPENDENCY_COMMANDS
304 # -----------------------------
305 # This macro should only be invoked once -- use via AC_REQUIRE.
306 #
307 # This code is only required when automatic dependency tracking
308 # is enabled. FIXME. This creates each `.P' file that we will
309 # need in order to bootstrap the dependency handling code.
310 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
311 [AC_CONFIG_COMMANDS([depfiles],
312 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
313 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
314 ])
315
316 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
317 #
318 # This file is free software; the Free Software Foundation
319 # gives unlimited permission to copy and/or distribute it,
320 # with or without modifications, as long as this notice is preserved.
321
322 # serial 2
323
324 # Check whether the underlying file-system supports filenames
325 # with a leading dot. For instance MS-DOS doesn't.
326 AC_DEFUN([AM_SET_LEADING_DOT],
327 [rm -rf .tst 2>/dev/null
328 mkdir .tst 2>/dev/null
329 if test -d .tst; then
330 am__leading_dot=.
331 else
332 am__leading_dot=_
333 fi
334 rmdir .tst 2>/dev/null
335 AC_SUBST([am__leading_dot])])
336
337 # Check to see how 'make' treats includes. -*- Autoconf -*-
338
339 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
340 #
341 # This file is free software; the Free Software Foundation
342 # gives unlimited permission to copy and/or distribute it,
343 # with or without modifications, as long as this notice is preserved.
344
345 # serial 4
346
347 # AM_MAKE_INCLUDE()
348 # -----------------
349 # Check to see how make treats includes.
350 AC_DEFUN([AM_MAKE_INCLUDE],
351 [am_make=${MAKE-make}
352 cat > confinc << 'END'
353 am__doit:
354 @echo this is the am__doit target
355 .PHONY: am__doit
356 END
357 # If we don't find an include directive, just comment out the code.
358 AC_MSG_CHECKING([for style of include used by $am_make])
359 am__include="#"
360 am__quote=
361 _am_result=none
362 # First try GNU make style include.
363 echo "include confinc" > confmf
364 # Ignore all kinds of additional output from `make'.
365 case `$am_make -s -f confmf 2> /dev/null` in #(
366 *the\ am__doit\ target*)
367 am__include=include
368 am__quote=
369 _am_result=GNU
370 ;;
371 esac
372 # Now try BSD make style include.
373 if test "$am__include" = "#"; then
374 echo '.include "confinc"' > confmf
375 case `$am_make -s -f confmf 2> /dev/null` in #(
376 *the\ am__doit\ target*)
377 am__include=.include
378 am__quote="\""
379 _am_result=BSD
380 ;;
381 esac
382 fi
383 AC_SUBST([am__include])
384 AC_SUBST([am__quote])
385 AC_MSG_RESULT([$_am_result])
386 rm -f confinc confmf
387 ])
388
389 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
390 #
391 # This file is free software; the Free Software Foundation
392 # gives unlimited permission to copy and/or distribute it,
393 # with or without modifications, as long as this notice is preserved.
394
395 # serial 3
396
397 # _AM_SUBST_NOTMAKE(VARIABLE)
398 # ---------------------------
399 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
400 # This macro is traced by Automake.
401 AC_DEFUN([_AM_SUBST_NOTMAKE])
402
403 # AM_SUBST_NOTMAKE(VARIABLE)
404 # --------------------------
405 # Public sister of _AM_SUBST_NOTMAKE.
406 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
407
408 m4_include([../acinclude.m4])
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68.
3 #
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7 # Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 # Preserve -v and -x to the replacement shell.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 case $- in # ((((
222 *v*x* | *x*v* ) as_opts=-vx ;;
223 *v* ) as_opts=-v ;;
224 *x* ) as_opts=-x ;;
225 * ) as_opts= ;;
226 esac
227 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error STATUS ERROR [LINENO LOG_FD]
366 # ----------------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with STATUS, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$1; test $as_status -eq 0 && as_status=1
373 if test "$4"; then
374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
376 fi
377 $as_echo "$as_me: error: $2" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534
535 test -n "$DJDIR" || exec 7<&0 </dev/null
536 exec 6>&1
537
538 # Name of the host.
539 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
540 # so uname gets run too.
541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
542
543 #
544 # Initializations.
545 #
546 ac_default_prefix=/usr/local
547 ac_clean_files=
548 ac_config_libobj_dir=.
549 LIBOBJS=
550 cross_compiling=no
551 subdirs=
552 MFLAGS=
553 MAKEFLAGS=
554
555 # Identity of this package.
556 PACKAGE_NAME=
557 PACKAGE_TARNAME=
558 PACKAGE_VERSION=
559 PACKAGE_STRING=
560 PACKAGE_BUGREPORT=
561 PACKAGE_URL=
562
563 ac_unique_file="crt0.S"
564 ac_subst_vars='LTLIBOBJS
565 LIBOBJS
566 host_makefile_frag_path
567 CCASFLAGS
568 CCAS
569 RANLIB
570 LD
571 AR
572 AS
573 am__fastdepCC_FALSE
574 am__fastdepCC_TRUE
575 CCDEPMODE
576 am__nodep
577 AMDEPBACKSLASH
578 AMDEP_FALSE
579 AMDEP_TRUE
580 am__quote
581 am__include
582 DEPDIR
583 am__leading_dot
584 CC
585 INSTALL_DATA
586 INSTALL_SCRIPT
587 INSTALL_PROGRAM
588 target_os
589 target_vendor
590 target_cpu
591 target
592 host_os
593 host_vendor
594 host_cpu
595 host
596 build_os
597 build_vendor
598 build_cpu
599 build
600 target_alias
601 host_alias
602 build_alias
603 LIBS
604 ECHO_T
605 ECHO_N
606 ECHO_C
607 DEFS
608 mandir
609 localedir
610 libdir
611 psdir
612 pdfdir
613 dvidir
614 htmldir
615 infodir
616 docdir
617 oldincludedir
618 includedir
619 localstatedir
620 sharedstatedir
621 sysconfdir
622 datadir
623 datarootdir
624 libexecdir
625 sbindir
626 bindir
627 program_transform_name
628 prefix
629 exec_prefix
630 PACKAGE_URL
631 PACKAGE_BUGREPORT
632 PACKAGE_STRING
633 PACKAGE_VERSION
634 PACKAGE_TARNAME
635 PACKAGE_NAME
636 PATH_SEPARATOR
637 SHELL'
638 ac_subst_files='host_makefile_frag'
639 ac_user_opts='
640 enable_option_checking
641 enable_dependency_tracking
642 '
643 ac_precious_vars='build_alias
644 host_alias
645 target_alias
646 CCAS
647 CCASFLAGS'
648
649
650 # Initialize some variables set by options.
651 ac_init_help=
652 ac_init_version=false
653 ac_unrecognized_opts=
654 ac_unrecognized_sep=
655 # The variables have the same names as the options, with
656 # dashes changed to underlines.
657 cache_file=/dev/null
658 exec_prefix=NONE
659 no_create=
660 no_recursion=
661 prefix=NONE
662 program_prefix=NONE
663 program_suffix=NONE
664 program_transform_name=s,x,x,
665 silent=
666 site=
667 srcdir=
668 verbose=
669 x_includes=NONE
670 x_libraries=NONE
671
672 # Installation directory options.
673 # These are left unexpanded so users can "make install exec_prefix=/foo"
674 # and all the variables that are supposed to be based on exec_prefix
675 # by default will actually change.
676 # Use braces instead of parens because sh, perl, etc. also accept them.
677 # (The list follows the same order as the GNU Coding Standards.)
678 bindir='${exec_prefix}/bin'
679 sbindir='${exec_prefix}/sbin'
680 libexecdir='${exec_prefix}/libexec'
681 datarootdir='${prefix}/share'
682 datadir='${datarootdir}'
683 sysconfdir='${prefix}/etc'
684 sharedstatedir='${prefix}/com'
685 localstatedir='${prefix}/var'
686 includedir='${prefix}/include'
687 oldincludedir='/usr/include'
688 docdir='${datarootdir}/doc/${PACKAGE}'
689 infodir='${datarootdir}/info'
690 htmldir='${docdir}'
691 dvidir='${docdir}'
692 pdfdir='${docdir}'
693 psdir='${docdir}'
694 libdir='${exec_prefix}/lib'
695 localedir='${datarootdir}/locale'
696 mandir='${datarootdir}/man'
697
698 ac_prev=
699 ac_dashdash=
700 for ac_option
701 do
702 # If the previous option needs an argument, assign it.
703 if test -n "$ac_prev"; then
704 eval $ac_prev=\$ac_option
705 ac_prev=
706 continue
707 fi
708
709 case $ac_option in
710 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
711 *=) ac_optarg= ;;
712 *) ac_optarg=yes ;;
713 esac
714
715 # Accept the important Cygnus configure options, so we can diagnose typos.
716
717 case $ac_dashdash$ac_option in
718 --)
719 ac_dashdash=yes ;;
720
721 -bindir | --bindir | --bindi | --bind | --bin | --bi)
722 ac_prev=bindir ;;
723 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
724 bindir=$ac_optarg ;;
725
726 -build | --build | --buil | --bui | --bu)
727 ac_prev=build_alias ;;
728 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
729 build_alias=$ac_optarg ;;
730
731 -cache-file | --cache-file | --cache-fil | --cache-fi \
732 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
733 ac_prev=cache_file ;;
734 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
735 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
736 cache_file=$ac_optarg ;;
737
738 --config-cache | -C)
739 cache_file=config.cache ;;
740
741 -datadir | --datadir | --datadi | --datad)
742 ac_prev=datadir ;;
743 -datadir=* | --datadir=* | --datadi=* | --datad=*)
744 datadir=$ac_optarg ;;
745
746 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
747 | --dataroo | --dataro | --datar)
748 ac_prev=datarootdir ;;
749 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
750 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
751 datarootdir=$ac_optarg ;;
752
753 -disable-* | --disable-*)
754 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
757 as_fn_error $? "invalid feature name: $ac_useropt"
758 ac_useropt_orig=$ac_useropt
759 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
760 case $ac_user_opts in
761 *"
762 "enable_$ac_useropt"
763 "*) ;;
764 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
765 ac_unrecognized_sep=', ';;
766 esac
767 eval enable_$ac_useropt=no ;;
768
769 -docdir | --docdir | --docdi | --doc | --do)
770 ac_prev=docdir ;;
771 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
772 docdir=$ac_optarg ;;
773
774 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
775 ac_prev=dvidir ;;
776 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
777 dvidir=$ac_optarg ;;
778
779 -enable-* | --enable-*)
780 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
783 as_fn_error $? "invalid feature name: $ac_useropt"
784 ac_useropt_orig=$ac_useropt
785 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
786 case $ac_user_opts in
787 *"
788 "enable_$ac_useropt"
789 "*) ;;
790 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
791 ac_unrecognized_sep=', ';;
792 esac
793 eval enable_$ac_useropt=\$ac_optarg ;;
794
795 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
796 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
797 | --exec | --exe | --ex)
798 ac_prev=exec_prefix ;;
799 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
800 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
801 | --exec=* | --exe=* | --ex=*)
802 exec_prefix=$ac_optarg ;;
803
804 -gas | --gas | --ga | --g)
805 # Obsolete; use --with-gas.
806 with_gas=yes ;;
807
808 -help | --help | --hel | --he | -h)
809 ac_init_help=long ;;
810 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
811 ac_init_help=recursive ;;
812 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
813 ac_init_help=short ;;
814
815 -host | --host | --hos | --ho)
816 ac_prev=host_alias ;;
817 -host=* | --host=* | --hos=* | --ho=*)
818 host_alias=$ac_optarg ;;
819
820 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
821 ac_prev=htmldir ;;
822 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
823 | --ht=*)
824 htmldir=$ac_optarg ;;
825
826 -includedir | --includedir | --includedi | --included | --include \
827 | --includ | --inclu | --incl | --inc)
828 ac_prev=includedir ;;
829 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
830 | --includ=* | --inclu=* | --incl=* | --inc=*)
831 includedir=$ac_optarg ;;
832
833 -infodir | --infodir | --infodi | --infod | --info | --inf)
834 ac_prev=infodir ;;
835 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
836 infodir=$ac_optarg ;;
837
838 -libdir | --libdir | --libdi | --libd)
839 ac_prev=libdir ;;
840 -libdir=* | --libdir=* | --libdi=* | --libd=*)
841 libdir=$ac_optarg ;;
842
843 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
844 | --libexe | --libex | --libe)
845 ac_prev=libexecdir ;;
846 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
847 | --libexe=* | --libex=* | --libe=*)
848 libexecdir=$ac_optarg ;;
849
850 -localedir | --localedir | --localedi | --localed | --locale)
851 ac_prev=localedir ;;
852 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
853 localedir=$ac_optarg ;;
854
855 -localstatedir | --localstatedir | --localstatedi | --localstated \
856 | --localstate | --localstat | --localsta | --localst | --locals)
857 ac_prev=localstatedir ;;
858 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
859 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
860 localstatedir=$ac_optarg ;;
861
862 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
863 ac_prev=mandir ;;
864 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
865 mandir=$ac_optarg ;;
866
867 -nfp | --nfp | --nf)
868 # Obsolete; use --without-fp.
869 with_fp=no ;;
870
871 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
872 | --no-cr | --no-c | -n)
873 no_create=yes ;;
874
875 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
876 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
877 no_recursion=yes ;;
878
879 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
880 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
881 | --oldin | --oldi | --old | --ol | --o)
882 ac_prev=oldincludedir ;;
883 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
884 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
885 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
886 oldincludedir=$ac_optarg ;;
887
888 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
889 ac_prev=prefix ;;
890 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
891 prefix=$ac_optarg ;;
892
893 -program-prefix | --program-prefix | --program-prefi | --program-pref \
894 | --program-pre | --program-pr | --program-p)
895 ac_prev=program_prefix ;;
896 -program-prefix=* | --program-prefix=* | --program-prefi=* \
897 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
898 program_prefix=$ac_optarg ;;
899
900 -program-suffix | --program-suffix | --program-suffi | --program-suff \
901 | --program-suf | --program-su | --program-s)
902 ac_prev=program_suffix ;;
903 -program-suffix=* | --program-suffix=* | --program-suffi=* \
904 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
905 program_suffix=$ac_optarg ;;
906
907 -program-transform-name | --program-transform-name \
908 | --program-transform-nam | --program-transform-na \
909 | --program-transform-n | --program-transform- \
910 | --program-transform | --program-transfor \
911 | --program-transfo | --program-transf \
912 | --program-trans | --program-tran \
913 | --progr-tra | --program-tr | --program-t)
914 ac_prev=program_transform_name ;;
915 -program-transform-name=* | --program-transform-name=* \
916 | --program-transform-nam=* | --program-transform-na=* \
917 | --program-transform-n=* | --program-transform-=* \
918 | --program-transform=* | --program-transfor=* \
919 | --program-transfo=* | --program-transf=* \
920 | --program-trans=* | --program-tran=* \
921 | --progr-tra=* | --program-tr=* | --program-t=*)
922 program_transform_name=$ac_optarg ;;
923
924 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
925 ac_prev=pdfdir ;;
926 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
927 pdfdir=$ac_optarg ;;
928
929 -psdir | --psdir | --psdi | --psd | --ps)
930 ac_prev=psdir ;;
931 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
932 psdir=$ac_optarg ;;
933
934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
935 | -silent | --silent | --silen | --sile | --sil)
936 silent=yes ;;
937
938 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
939 ac_prev=sbindir ;;
940 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
941 | --sbi=* | --sb=*)
942 sbindir=$ac_optarg ;;
943
944 -sharedstatedir | --sharedstatedir | --sharedstatedi \
945 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
946 | --sharedst | --shareds | --shared | --share | --shar \
947 | --sha | --sh)
948 ac_prev=sharedstatedir ;;
949 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
950 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
951 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
952 | --sha=* | --sh=*)
953 sharedstatedir=$ac_optarg ;;
954
955 -site | --site | --sit)
956 ac_prev=site ;;
957 -site=* | --site=* | --sit=*)
958 site=$ac_optarg ;;
959
960 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
961 ac_prev=srcdir ;;
962 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
963 srcdir=$ac_optarg ;;
964
965 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
966 | --syscon | --sysco | --sysc | --sys | --sy)
967 ac_prev=sysconfdir ;;
968 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
969 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
970 sysconfdir=$ac_optarg ;;
971
972 -target | --target | --targe | --targ | --tar | --ta | --t)
973 ac_prev=target_alias ;;
974 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
975 target_alias=$ac_optarg ;;
976
977 -v | -verbose | --verbose | --verbos | --verbo | --verb)
978 verbose=yes ;;
979
980 -version | --version | --versio | --versi | --vers | -V)
981 ac_init_version=: ;;
982
983 -with-* | --with-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid package name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "with_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval with_$ac_useropt=\$ac_optarg ;;
998
999 -without-* | --without-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error $? "invalid package name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008 "with_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval with_$ac_useropt=no ;;
1014
1015 --x)
1016 # Obsolete; use --with-x.
1017 with_x=yes ;;
1018
1019 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1020 | --x-incl | --x-inc | --x-in | --x-i)
1021 ac_prev=x_includes ;;
1022 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1023 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1024 x_includes=$ac_optarg ;;
1025
1026 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1027 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1028 ac_prev=x_libraries ;;
1029 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1030 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1031 x_libraries=$ac_optarg ;;
1032
1033 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1034 Try \`$0 --help' for more information"
1035 ;;
1036
1037 *=*)
1038 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1039 # Reject names that are not valid shell variable names.
1040 case $ac_envvar in #(
1041 '' | [0-9]* | *[!_$as_cr_alnum]* )
1042 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1043 esac
1044 eval $ac_envvar=\$ac_optarg
1045 export $ac_envvar ;;
1046
1047 *)
1048 # FIXME: should be removed in autoconf 3.0.
1049 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1050 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1052 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1053 ;;
1054
1055 esac
1056 done
1057
1058 if test -n "$ac_prev"; then
1059 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1060 as_fn_error $? "missing argument to $ac_option"
1061 fi
1062
1063 if test -n "$ac_unrecognized_opts"; then
1064 case $enable_option_checking in
1065 no) ;;
1066 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1067 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1068 esac
1069 fi
1070
1071 # Check all directory arguments for consistency.
1072 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1073 datadir sysconfdir sharedstatedir localstatedir includedir \
1074 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1075 libdir localedir mandir
1076 do
1077 eval ac_val=\$$ac_var
1078 # Remove trailing slashes.
1079 case $ac_val in
1080 */ )
1081 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1082 eval $ac_var=\$ac_val;;
1083 esac
1084 # Be sure to have absolute directory names.
1085 case $ac_val in
1086 [\\/$]* | ?:[\\/]* ) continue;;
1087 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1088 esac
1089 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1090 done
1091
1092 # There might be people who depend on the old broken behavior: `$host'
1093 # used to hold the argument of --host etc.
1094 # FIXME: To remove some day.
1095 build=$build_alias
1096 host=$host_alias
1097 target=$target_alias
1098
1099 # FIXME: To remove some day.
1100 if test "x$host_alias" != x; then
1101 if test "x$build_alias" = x; then
1102 cross_compiling=maybe
1103 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1104 If a cross compiler is detected then cross compile mode will be used" >&2
1105 elif test "x$build_alias" != "x$host_alias"; then
1106 cross_compiling=yes
1107 fi
1108 fi
1109
1110 ac_tool_prefix=
1111 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1112
1113 test "$silent" = yes && exec 6>/dev/null
1114
1115
1116 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1117 ac_ls_di=`ls -di .` &&
1118 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1119 as_fn_error $? "working directory cannot be determined"
1120 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1121 as_fn_error $? "pwd does not report name of working directory"
1122
1123
1124 # Find the source files, if location was not specified.
1125 if test -z "$srcdir"; then
1126 ac_srcdir_defaulted=yes
1127 # Try the directory containing this script, then the parent directory.
1128 ac_confdir=`$as_dirname -- "$as_myself" ||
1129 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1130 X"$as_myself" : 'X\(//\)[^/]' \| \
1131 X"$as_myself" : 'X\(//\)$' \| \
1132 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1133 $as_echo X"$as_myself" |
1134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1135 s//\1/
1136 q
1137 }
1138 /^X\(\/\/\)[^/].*/{
1139 s//\1/
1140 q
1141 }
1142 /^X\(\/\/\)$/{
1143 s//\1/
1144 q
1145 }
1146 /^X\(\/\).*/{
1147 s//\1/
1148 q
1149 }
1150 s/.*/./; q'`
1151 srcdir=$ac_confdir
1152 if test ! -r "$srcdir/$ac_unique_file"; then
1153 srcdir=..
1154 fi
1155 else
1156 ac_srcdir_defaulted=no
1157 fi
1158 if test ! -r "$srcdir/$ac_unique_file"; then
1159 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1160 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1161 fi
1162 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1163 ac_abs_confdir=`(
1164 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1165 pwd)`
1166 # When building in place, set srcdir=.
1167 if test "$ac_abs_confdir" = "$ac_pwd"; then
1168 srcdir=.
1169 fi
1170 # Remove unnecessary trailing slashes from srcdir.
1171 # Double slashes in file names in object file debugging info
1172 # mess up M-x gdb in Emacs.
1173 case $srcdir in
1174 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1175 esac
1176 for ac_var in $ac_precious_vars; do
1177 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1178 eval ac_env_${ac_var}_value=\$${ac_var}
1179 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1180 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1181 done
1182
1183 #
1184 # Report the --help message.
1185 #
1186 if test "$ac_init_help" = "long"; then
1187 # Omit some internal or obsolete options to make the list less imposing.
1188 # This message is too long to be a string in the A/UX 3.1 sh.
1189 cat <<_ACEOF
1190 \`configure' configures this package to adapt to many kinds of systems.
1191
1192 Usage: $0 [OPTION]... [VAR=VALUE]...
1193
1194 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1195 VAR=VALUE. See below for descriptions of some of the useful variables.
1196
1197 Defaults for the options are specified in brackets.
1198
1199 Configuration:
1200 -h, --help display this help and exit
1201 --help=short display options specific to this package
1202 --help=recursive display the short help of all the included packages
1203 -V, --version display version information and exit
1204 -q, --quiet, --silent do not print \`checking ...' messages
1205 --cache-file=FILE cache test results in FILE [disabled]
1206 -C, --config-cache alias for \`--cache-file=config.cache'
1207 -n, --no-create do not create output files
1208 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1209
1210 Installation directories:
1211 --prefix=PREFIX install architecture-independent files in PREFIX
1212 [$ac_default_prefix]
1213 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1214 [PREFIX]
1215
1216 By default, \`make install' will install all the files in
1217 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1218 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1219 for instance \`--prefix=\$HOME'.
1220
1221 For better control, use the options below.
1222
1223 Fine tuning of the installation directories:
1224 --bindir=DIR user executables [EPREFIX/bin]
1225 --sbindir=DIR system admin executables [EPREFIX/sbin]
1226 --libexecdir=DIR program executables [EPREFIX/libexec]
1227 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1228 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1229 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1230 --libdir=DIR object code libraries [EPREFIX/lib]
1231 --includedir=DIR C header files [PREFIX/include]
1232 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1233 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1234 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1235 --infodir=DIR info documentation [DATAROOTDIR/info]
1236 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1237 --mandir=DIR man documentation [DATAROOTDIR/man]
1238 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1239 --htmldir=DIR html documentation [DOCDIR]
1240 --dvidir=DIR dvi documentation [DOCDIR]
1241 --pdfdir=DIR pdf documentation [DOCDIR]
1242 --psdir=DIR ps documentation [DOCDIR]
1243 _ACEOF
1244
1245 cat <<\_ACEOF
1246
1247 Program names:
1248 --program-prefix=PREFIX prepend PREFIX to installed program names
1249 --program-suffix=SUFFIX append SUFFIX to installed program names
1250 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1251
1252 System types:
1253 --build=BUILD configure for building on BUILD [guessed]
1254 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1255 --target=TARGET configure for building compilers for TARGET [HOST]
1256 _ACEOF
1257 fi
1258
1259 if test -n "$ac_init_help"; then
1260
1261 cat <<\_ACEOF
1262
1263 Optional Features:
1264 --disable-option-checking ignore unrecognized --enable/--with options
1265 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1266 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1267 --disable-dependency-tracking speeds up one-time build
1268 --enable-dependency-tracking do not reject slow dependency extractors
1269
1270 Some influential environment variables:
1271 CCAS assembler compiler command (defaults to CC)
1272 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1273
1274 Use these variables to override the choices made by `configure' or to help
1275 it to find libraries and programs with nonstandard names/locations.
1276
1277 Report bugs to the package provider.
1278 _ACEOF
1279 ac_status=$?
1280 fi
1281
1282 if test "$ac_init_help" = "recursive"; then
1283 # If there are subdirs, report their specific --help.
1284 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1285 test -d "$ac_dir" ||
1286 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1287 continue
1288 ac_builddir=.
1289
1290 case "$ac_dir" in
1291 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1292 *)
1293 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1294 # A ".." for each directory in $ac_dir_suffix.
1295 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1296 case $ac_top_builddir_sub in
1297 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1298 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1299 esac ;;
1300 esac
1301 ac_abs_top_builddir=$ac_pwd
1302 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1303 # for backward compatibility:
1304 ac_top_builddir=$ac_top_build_prefix
1305
1306 case $srcdir in
1307 .) # We are building in place.
1308 ac_srcdir=.
1309 ac_top_srcdir=$ac_top_builddir_sub
1310 ac_abs_top_srcdir=$ac_pwd ;;
1311 [\\/]* | ?:[\\/]* ) # Absolute name.
1312 ac_srcdir=$srcdir$ac_dir_suffix;
1313 ac_top_srcdir=$srcdir
1314 ac_abs_top_srcdir=$srcdir ;;
1315 *) # Relative name.
1316 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1317 ac_top_srcdir=$ac_top_build_prefix$srcdir
1318 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1319 esac
1320 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1321
1322 cd "$ac_dir" || { ac_status=$?; continue; }
1323 # Check for guested configure.
1324 if test -f "$ac_srcdir/configure.gnu"; then
1325 echo &&
1326 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1327 elif test -f "$ac_srcdir/configure"; then
1328 echo &&
1329 $SHELL "$ac_srcdir/configure" --help=recursive
1330 else
1331 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1332 fi || ac_status=$?
1333 cd "$ac_pwd" || { ac_status=$?; break; }
1334 done
1335 fi
1336
1337 test -n "$ac_init_help" && exit $ac_status
1338 if $ac_init_version; then
1339 cat <<\_ACEOF
1340 configure
1341 generated by GNU Autoconf 2.68
1342
1343 Copyright (C) 2010 Free Software Foundation, Inc.
1344 This configure script is free software; the Free Software Foundation
1345 gives unlimited permission to copy, distribute and modify it.
1346 _ACEOF
1347 exit
1348 fi
1349
1350 ## ------------------------ ##
1351 ## Autoconf initialization. ##
1352 ## ------------------------ ##
1353
1354 # ac_fn_c_try_compile LINENO
1355 # --------------------------
1356 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1357 ac_fn_c_try_compile ()
1358 {
1359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1360 rm -f conftest.$ac_objext
1361 if { { ac_try="$ac_compile"
1362 case "(($ac_try" in
1363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1364 *) ac_try_echo=$ac_try;;
1365 esac
1366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1367 $as_echo "$ac_try_echo"; } >&5
1368 (eval "$ac_compile") 2>conftest.err
1369 ac_status=$?
1370 if test -s conftest.err; then
1371 grep -v '^ *+' conftest.err >conftest.er1
1372 cat conftest.er1 >&5
1373 mv -f conftest.er1 conftest.err
1374 fi
1375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1376 test $ac_status = 0; } && {
1377 test -z "$ac_c_werror_flag" ||
1378 test ! -s conftest.err
1379 } && test -s conftest.$ac_objext; then :
1380 ac_retval=0
1381 else
1382 $as_echo "$as_me: failed program was:" >&5
1383 sed 's/^/| /' conftest.$ac_ext >&5
1384
1385 ac_retval=1
1386 fi
1387 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1388 as_fn_set_status $ac_retval
1389
1390 } # ac_fn_c_try_compile
1391 cat >config.log <<_ACEOF
1392 This file contains any messages produced by compilers while
1393 running configure, to aid debugging if configure makes a mistake.
1394
1395 It was created by $as_me, which was
1396 generated by GNU Autoconf 2.68. Invocation command line was
1397
1398 $ $0 $@
1399
1400 _ACEOF
1401 exec 5>>config.log
1402 {
1403 cat <<_ASUNAME
1404 ## --------- ##
1405 ## Platform. ##
1406 ## --------- ##
1407
1408 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1409 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1410 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1411 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1412 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1413
1414 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1415 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1416
1417 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1418 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1419 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1420 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1421 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1422 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1423 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1424
1425 _ASUNAME
1426
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430 IFS=$as_save_IFS
1431 test -z "$as_dir" && as_dir=.
1432 $as_echo "PATH: $as_dir"
1433 done
1434 IFS=$as_save_IFS
1435
1436 } >&5
1437
1438 cat >&5 <<_ACEOF
1439
1440
1441 ## ----------- ##
1442 ## Core tests. ##
1443 ## ----------- ##
1444
1445 _ACEOF
1446
1447
1448 # Keep a trace of the command line.
1449 # Strip out --no-create and --no-recursion so they do not pile up.
1450 # Strip out --silent because we don't want to record it for future runs.
1451 # Also quote any args containing shell meta-characters.
1452 # Make two passes to allow for proper duplicate-argument suppression.
1453 ac_configure_args=
1454 ac_configure_args0=
1455 ac_configure_args1=
1456 ac_must_keep_next=false
1457 for ac_pass in 1 2
1458 do
1459 for ac_arg
1460 do
1461 case $ac_arg in
1462 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464 | -silent | --silent | --silen | --sile | --sil)
1465 continue ;;
1466 *\'*)
1467 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 esac
1469 case $ac_pass in
1470 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1471 2)
1472 as_fn_append ac_configure_args1 " '$ac_arg'"
1473 if test $ac_must_keep_next = true; then
1474 ac_must_keep_next=false # Got value, back to normal.
1475 else
1476 case $ac_arg in
1477 *=* | --config-cache | -C | -disable-* | --disable-* \
1478 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1479 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1480 | -with-* | --with-* | -without-* | --without-* | --x)
1481 case "$ac_configure_args0 " in
1482 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1483 esac
1484 ;;
1485 -* ) ac_must_keep_next=true ;;
1486 esac
1487 fi
1488 as_fn_append ac_configure_args " '$ac_arg'"
1489 ;;
1490 esac
1491 done
1492 done
1493 { ac_configure_args0=; unset ac_configure_args0;}
1494 { ac_configure_args1=; unset ac_configure_args1;}
1495
1496 # When interrupted or exit'd, cleanup temporary files, and complete
1497 # config.log. We remove comments because anyway the quotes in there
1498 # would cause problems or look ugly.
1499 # WARNING: Use '\'' to represent an apostrophe within the trap.
1500 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1501 trap 'exit_status=$?
1502 # Save into config.log some information that might help in debugging.
1503 {
1504 echo
1505
1506 $as_echo "## ---------------- ##
1507 ## Cache variables. ##
1508 ## ---------------- ##"
1509 echo
1510 # The following way of writing the cache mishandles newlines in values,
1511 (
1512 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1513 eval ac_val=\$$ac_var
1514 case $ac_val in #(
1515 *${as_nl}*)
1516 case $ac_var in #(
1517 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1518 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1519 esac
1520 case $ac_var in #(
1521 _ | IFS | as_nl) ;; #(
1522 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1523 *) { eval $ac_var=; unset $ac_var;} ;;
1524 esac ;;
1525 esac
1526 done
1527 (set) 2>&1 |
1528 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1529 *${as_nl}ac_space=\ *)
1530 sed -n \
1531 "s/'\''/'\''\\\\'\'''\''/g;
1532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1533 ;; #(
1534 *)
1535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1536 ;;
1537 esac |
1538 sort
1539 )
1540 echo
1541
1542 $as_echo "## ----------------- ##
1543 ## Output variables. ##
1544 ## ----------------- ##"
1545 echo
1546 for ac_var in $ac_subst_vars
1547 do
1548 eval ac_val=\$$ac_var
1549 case $ac_val in
1550 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1551 esac
1552 $as_echo "$ac_var='\''$ac_val'\''"
1553 done | sort
1554 echo
1555
1556 if test -n "$ac_subst_files"; then
1557 $as_echo "## ------------------- ##
1558 ## File substitutions. ##
1559 ## ------------------- ##"
1560 echo
1561 for ac_var in $ac_subst_files
1562 do
1563 eval ac_val=\$$ac_var
1564 case $ac_val in
1565 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1566 esac
1567 $as_echo "$ac_var='\''$ac_val'\''"
1568 done | sort
1569 echo
1570 fi
1571
1572 if test -s confdefs.h; then
1573 $as_echo "## ----------- ##
1574 ## confdefs.h. ##
1575 ## ----------- ##"
1576 echo
1577 cat confdefs.h
1578 echo
1579 fi
1580 test "$ac_signal" != 0 &&
1581 $as_echo "$as_me: caught signal $ac_signal"
1582 $as_echo "$as_me: exit $exit_status"
1583 } >&5
1584 rm -f core *.core core.conftest.* &&
1585 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1586 exit $exit_status
1587 ' 0
1588 for ac_signal in 1 2 13 15; do
1589 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1590 done
1591 ac_signal=0
1592
1593 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1594 rm -f -r conftest* confdefs.h
1595
1596 $as_echo "/* confdefs.h */" > confdefs.h
1597
1598 # Predefined preprocessor variables.
1599
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_NAME "$PACKAGE_NAME"
1602 _ACEOF
1603
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1606 _ACEOF
1607
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1610 _ACEOF
1611
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE_STRING "$PACKAGE_STRING"
1614 _ACEOF
1615
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1618 _ACEOF
1619
1620 cat >>confdefs.h <<_ACEOF
1621 #define PACKAGE_URL "$PACKAGE_URL"
1622 _ACEOF
1623
1624
1625 # Let the site file select an alternate cache file if it wants to.
1626 # Prefer an explicitly selected file to automatically selected ones.
1627 ac_site_file1=NONE
1628 ac_site_file2=NONE
1629 if test -n "$CONFIG_SITE"; then
1630 # We do not want a PATH search for config.site.
1631 case $CONFIG_SITE in #((
1632 -*) ac_site_file1=./$CONFIG_SITE;;
1633 */*) ac_site_file1=$CONFIG_SITE;;
1634 *) ac_site_file1=./$CONFIG_SITE;;
1635 esac
1636 elif test "x$prefix" != xNONE; then
1637 ac_site_file1=$prefix/share/config.site
1638 ac_site_file2=$prefix/etc/config.site
1639 else
1640 ac_site_file1=$ac_default_prefix/share/config.site
1641 ac_site_file2=$ac_default_prefix/etc/config.site
1642 fi
1643 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1644 do
1645 test "x$ac_site_file" = xNONE && continue
1646 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1648 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1649 sed 's/^/| /' "$ac_site_file" >&5
1650 . "$ac_site_file" \
1651 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1653 as_fn_error $? "failed to load site script $ac_site_file
1654 See \`config.log' for more details" "$LINENO" 5; }
1655 fi
1656 done
1657
1658 if test -r "$cache_file"; then
1659 # Some versions of bash will fail to source /dev/null (special files
1660 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1661 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1663 $as_echo "$as_me: loading cache $cache_file" >&6;}
1664 case $cache_file in
1665 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1666 *) . "./$cache_file";;
1667 esac
1668 fi
1669 else
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1671 $as_echo "$as_me: creating cache $cache_file" >&6;}
1672 >$cache_file
1673 fi
1674
1675 # Check that the precious variables saved in the cache have kept the same
1676 # value.
1677 ac_cache_corrupted=false
1678 for ac_var in $ac_precious_vars; do
1679 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1680 eval ac_new_set=\$ac_env_${ac_var}_set
1681 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1682 eval ac_new_val=\$ac_env_${ac_var}_value
1683 case $ac_old_set,$ac_new_set in
1684 set,)
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1686 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1687 ac_cache_corrupted=: ;;
1688 ,set)
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1690 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1691 ac_cache_corrupted=: ;;
1692 ,);;
1693 *)
1694 if test "x$ac_old_val" != "x$ac_new_val"; then
1695 # differences in whitespace do not lead to failure.
1696 ac_old_val_w=`echo x $ac_old_val`
1697 ac_new_val_w=`echo x $ac_new_val`
1698 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1700 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1701 ac_cache_corrupted=:
1702 else
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1704 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1705 eval $ac_var=\$ac_old_val
1706 fi
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1708 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1710 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1711 fi;;
1712 esac
1713 # Pass precious variables to config.status.
1714 if test "$ac_new_set" = set; then
1715 case $ac_new_val in
1716 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1717 *) ac_arg=$ac_var=$ac_new_val ;;
1718 esac
1719 case " $ac_configure_args " in
1720 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1721 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1722 esac
1723 fi
1724 done
1725 if $ac_cache_corrupted; then
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1729 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1730 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1731 fi
1732 ## -------------------- ##
1733 ## Main body of script. ##
1734 ## -------------------- ##
1735
1736 ac_ext=c
1737 ac_cpp='$CPP $CPPFLAGS'
1738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1741
1742
1743
1744 if test "${enable_shared}" = "yes" ; then
1745 echo "Shared libraries not supported for cross compiling, ignored"
1746 fi
1747
1748 if test "$srcdir" = "." ; then
1749 if test "${with_target_subdir}" != "." ; then
1750 libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
1751 else
1752 libgloss_topdir="${srcdir}/${with_multisrctop}../.."
1753 fi
1754 else
1755 libgloss_topdir="${srcdir}/../.."
1756 fi
1757 ac_aux_dir=
1758 for ac_dir in $libgloss_topdir "$srcdir"/$libgloss_topdir; do
1759 if test -f "$ac_dir/install-sh"; then
1760 ac_aux_dir=$ac_dir
1761 ac_install_sh="$ac_aux_dir/install-sh -c"
1762 break
1763 elif test -f "$ac_dir/install.sh"; then
1764 ac_aux_dir=$ac_dir
1765 ac_install_sh="$ac_aux_dir/install.sh -c"
1766 break
1767 elif test -f "$ac_dir/shtool"; then
1768 ac_aux_dir=$ac_dir
1769 ac_install_sh="$ac_aux_dir/shtool install -c"
1770 break
1771 fi
1772 done
1773 if test -z "$ac_aux_dir"; then
1774 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgloss_topdir \"$srcdir\"/$libgloss_topdir" "$LINENO" 5
1775 fi
1776
1777 # These three variables are undocumented and unsupported,
1778 # and are intended to be withdrawn in a future Autoconf release.
1779 # They can cause serious problems if a builder's source tree is in a directory
1780 # whose full name contains unusual characters.
1781 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1782 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1783 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1784
1785
1786
1787 # Make sure we can run config.sub.
1788 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1789 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1790
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1792 $as_echo_n "checking build system type... " >&6; }
1793 if ${ac_cv_build+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 ac_build_alias=$build_alias
1797 test "x$ac_build_alias" = x &&
1798 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1799 test "x$ac_build_alias" = x &&
1800 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1803
1804 fi
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1806 $as_echo "$ac_cv_build" >&6; }
1807 case $ac_cv_build in
1808 *-*-*) ;;
1809 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1810 esac
1811 build=$ac_cv_build
1812 ac_save_IFS=$IFS; IFS='-'
1813 set x $ac_cv_build
1814 shift
1815 build_cpu=$1
1816 build_vendor=$2
1817 shift; shift
1818 # Remember, the first character of IFS is used to create $*,
1819 # except with old shells:
1820 build_os=$*
1821 IFS=$ac_save_IFS
1822 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1823
1824
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1826 $as_echo_n "checking host system type... " >&6; }
1827 if ${ac_cv_host+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 if test "x$host_alias" = x; then
1831 ac_cv_host=$ac_cv_build
1832 else
1833 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1834 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1835 fi
1836
1837 fi
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1839 $as_echo "$ac_cv_host" >&6; }
1840 case $ac_cv_host in
1841 *-*-*) ;;
1842 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1843 esac
1844 host=$ac_cv_host
1845 ac_save_IFS=$IFS; IFS='-'
1846 set x $ac_cv_host
1847 shift
1848 host_cpu=$1
1849 host_vendor=$2
1850 shift; shift
1851 # Remember, the first character of IFS is used to create $*,
1852 # except with old shells:
1853 host_os=$*
1854 IFS=$ac_save_IFS
1855 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1856
1857
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
1859 $as_echo_n "checking target system type... " >&6; }
1860 if ${ac_cv_target+:} false; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 if test "x$target_alias" = x; then
1864 ac_cv_target=$ac_cv_host
1865 else
1866 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1867 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1868 fi
1869
1870 fi
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
1872 $as_echo "$ac_cv_target" >&6; }
1873 case $ac_cv_target in
1874 *-*-*) ;;
1875 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1876 esac
1877 target=$ac_cv_target
1878 ac_save_IFS=$IFS; IFS='-'
1879 set x $ac_cv_target
1880 shift
1881 target_cpu=$1
1882 target_vendor=$2
1883 shift; shift
1884 # Remember, the first character of IFS is used to create $*,
1885 # except with old shells:
1886 target_os=$*
1887 IFS=$ac_save_IFS
1888 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1889
1890
1891 # The aliases save the names the user supplied, while $host etc.
1892 # will get canonicalized.
1893 test -n "$target_alias" &&
1894 test "$program_prefix$program_suffix$program_transform_name" = \
1895 NONENONEs,x,x, &&
1896 program_prefix=${target_alias}-
1897
1898 test "$program_prefix" != NONE &&
1899 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1900 # Use a double $ so make ignores it.
1901 test "$program_suffix" != NONE &&
1902 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1903 # Double any \ or $.
1904 # By default was `s,x,x', remove it if useless.
1905 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1906 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1907
1908
1909 # Find a good install program. We prefer a C program (faster),
1910 # so one script is as good as another. But avoid the broken or
1911 # incompatible versions:
1912 # SysV /etc/install, /usr/sbin/install
1913 # SunOS /usr/etc/install
1914 # IRIX /sbin/install
1915 # AIX /bin/install
1916 # AmigaOS /C/install, which installs bootblocks on floppy discs
1917 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1920 # OS/2's system install, which has a completely different semantic
1921 # ./install, which can be erroneously created by make from ./install.sh.
1922 # Reject install programs that cannot install multiple files.
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1924 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1925 if test -z "$INSTALL"; then
1926 if ${ac_cv_path_install+:} false; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 # Account for people who put trailing slashes in PATH elements.
1935 case $as_dir/ in #((
1936 ./ | .// | /[cC]/* | \
1937 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1938 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1939 /usr/ucb/* ) ;;
1940 *)
1941 # OSF1 and SCO ODT 3.0 have their own names for install.
1942 # Don't use installbsd from OSF since it installs stuff as root
1943 # by default.
1944 for ac_prog in ginstall scoinst install; do
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1947 if test $ac_prog = install &&
1948 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1949 # AIX install. It has an incompatible calling convention.
1950 :
1951 elif test $ac_prog = install &&
1952 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1953 # program-specific install script used by HP pwplus--don't use.
1954 :
1955 else
1956 rm -rf conftest.one conftest.two conftest.dir
1957 echo one > conftest.one
1958 echo two > conftest.two
1959 mkdir conftest.dir
1960 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1961 test -s conftest.one && test -s conftest.two &&
1962 test -s conftest.dir/conftest.one &&
1963 test -s conftest.dir/conftest.two
1964 then
1965 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1966 break 3
1967 fi
1968 fi
1969 fi
1970 done
1971 done
1972 ;;
1973 esac
1974
1975 done
1976 IFS=$as_save_IFS
1977
1978 rm -rf conftest.one conftest.two conftest.dir
1979
1980 fi
1981 if test "${ac_cv_path_install+set}" = set; then
1982 INSTALL=$ac_cv_path_install
1983 else
1984 # As a last resort, use the slow shell script. Don't cache a
1985 # value for INSTALL within a source directory, because that will
1986 # break other packages using the cache if that directory is
1987 # removed, or if the value is a relative name.
1988 INSTALL=$ac_install_sh
1989 fi
1990 fi
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1992 $as_echo "$INSTALL" >&6; }
1993
1994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1995 # It thinks the first close brace ends the variable substitution.
1996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1997
1998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1999
2000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2001
2002
2003 rm -rf .tst 2>/dev/null
2004 mkdir .tst 2>/dev/null
2005 if test -d .tst; then
2006 am__leading_dot=.
2007 else
2008 am__leading_dot=_
2009 fi
2010 rmdir .tst 2>/dev/null
2011
2012 DEPDIR="${am__leading_dot}deps"
2013
2014 ac_config_commands="$ac_config_commands depfiles"
2015
2016
2017 am_make=${MAKE-make}
2018 cat > confinc << 'END'
2019 am__doit:
2020 @echo this is the am__doit target
2021 .PHONY: am__doit
2022 END
2023 # If we don't find an include directive, just comment out the code.
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2025 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2026 am__include="#"
2027 am__quote=
2028 _am_result=none
2029 # First try GNU make style include.
2030 echo "include confinc" > confmf
2031 # Ignore all kinds of additional output from `make'.
2032 case `$am_make -s -f confmf 2> /dev/null` in #(
2033 *the\ am__doit\ target*)
2034 am__include=include
2035 am__quote=
2036 _am_result=GNU
2037 ;;
2038 esac
2039 # Now try BSD make style include.
2040 if test "$am__include" = "#"; then
2041 echo '.include "confinc"' > confmf
2042 case `$am_make -s -f confmf 2> /dev/null` in #(
2043 *the\ am__doit\ target*)
2044 am__include=.include
2045 am__quote="\""
2046 _am_result=BSD
2047 ;;
2048 esac
2049 fi
2050
2051
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2053 $as_echo "$_am_result" >&6; }
2054 rm -f confinc confmf
2055
2056 # Check whether --enable-dependency-tracking was given.
2057 if test "${enable_dependency_tracking+set}" = set; then :
2058 enableval=$enable_dependency_tracking;
2059 fi
2060
2061 if test "x$enable_dependency_tracking" != xno; then
2062 am_depcomp="$ac_aux_dir/depcomp"
2063 AMDEPBACKSLASH='\'
2064 am__nodep='_no'
2065 fi
2066 if test "x$enable_dependency_tracking" != xno; then
2067 AMDEP_TRUE=
2068 AMDEP_FALSE='#'
2069 else
2070 AMDEP_TRUE='#'
2071 AMDEP_FALSE=
2072 fi
2073
2074
2075 # Extract the first word of "gcc", so it can be a program name with args.
2076 set dummy gcc; ac_word=$2
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2078 $as_echo_n "checking for $ac_word... " >&6; }
2079 if ${ac_cv_prog_CC+:} false; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 if test -n "$CC"; then
2083 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 ac_cv_prog_CC="gcc"
2093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2095 fi
2096 done
2097 done
2098 IFS=$as_save_IFS
2099
2100 fi
2101 fi
2102 CC=$ac_cv_prog_CC
2103 if test -n "$CC"; then
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2105 $as_echo "$CC" >&6; }
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2108 $as_echo "no" >&6; }
2109 fi
2110
2111
2112
2113 depcc="$CC" am_compiler_list=
2114
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2116 $as_echo_n "checking dependency style of $depcc... " >&6; }
2117 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2118 $as_echo_n "(cached) " >&6
2119 else
2120 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2121 # We make a subdir and do the tests there. Otherwise we can end up
2122 # making bogus files that we don't know about and never remove. For
2123 # instance it was reported that on HP-UX the gcc test will end up
2124 # making a dummy file named `D' -- because `-MD' means `put the output
2125 # in D'.
2126 rm -rf conftest.dir
2127 mkdir conftest.dir
2128 # Copy depcomp to subdir because otherwise we won't find it if we're
2129 # using a relative directory.
2130 cp "$am_depcomp" conftest.dir
2131 cd conftest.dir
2132 # We will build objects and dependencies in a subdirectory because
2133 # it helps to detect inapplicable dependency modes. For instance
2134 # both Tru64's cc and ICC support -MD to output dependencies as a
2135 # side effect of compilation, but ICC will put the dependencies in
2136 # the current directory while Tru64 will put them in the object
2137 # directory.
2138 mkdir sub
2139
2140 am_cv_CC_dependencies_compiler_type=none
2141 if test "$am_compiler_list" = ""; then
2142 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2143 fi
2144 am__universal=false
2145 case " $depcc " in #(
2146 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2147 esac
2148
2149 for depmode in $am_compiler_list; do
2150 # Setup a source with many dependencies, because some compilers
2151 # like to wrap large dependency lists on column 80 (with \), and
2152 # we should not choose a depcomp mode which is confused by this.
2153 #
2154 # We need to recreate these files for each test, as the compiler may
2155 # overwrite some of them when testing with obscure command lines.
2156 # This happens at least with the AIX C compiler.
2157 : > sub/conftest.c
2158 for i in 1 2 3 4 5 6; do
2159 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2160 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2161 # Solaris 8's {/usr,}/bin/sh.
2162 touch sub/conftst$i.h
2163 done
2164 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2165
2166 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2167 # mode. It turns out that the SunPro C++ compiler does not properly
2168 # handle `-M -o', and we need to detect this. Also, some Intel
2169 # versions had trouble with output in subdirs
2170 am__obj=sub/conftest.${OBJEXT-o}
2171 am__minus_obj="-o $am__obj"
2172 case $depmode in
2173 gcc)
2174 # This depmode causes a compiler race in universal mode.
2175 test "$am__universal" = false || continue
2176 ;;
2177 nosideeffect)
2178 # after this tag, mechanisms are not by side-effect, so they'll
2179 # only be used when explicitly requested
2180 if test "x$enable_dependency_tracking" = xyes; then
2181 continue
2182 else
2183 break
2184 fi
2185 ;;
2186 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
2187 # This compiler won't grok `-c -o', but also, the minuso test has
2188 # not run yet. These depmodes are late enough in the game, and
2189 # so weak that their functioning should not be impacted.
2190 am__obj=conftest.${OBJEXT-o}
2191 am__minus_obj=
2192 ;;
2193 none) break ;;
2194 esac
2195 if depmode=$depmode \
2196 source=sub/conftest.c object=$am__obj \
2197 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2198 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2199 >/dev/null 2>conftest.err &&
2200 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2201 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2202 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2203 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2204 # icc doesn't choke on unknown options, it will just issue warnings
2205 # or remarks (even with -Werror). So we grep stderr for any message
2206 # that says an option was ignored or not supported.
2207 # When given -MP, icc 7.0 and 7.1 complain thusly:
2208 # icc: Command line warning: ignoring option '-M'; no argument required
2209 # The diagnosis changed in icc 8.0:
2210 # icc: Command line remark: option '-MP' not supported
2211 if (grep 'ignoring option' conftest.err ||
2212 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2213 am_cv_CC_dependencies_compiler_type=$depmode
2214 break
2215 fi
2216 fi
2217 done
2218
2219 cd ..
2220 rm -rf conftest.dir
2221 else
2222 am_cv_CC_dependencies_compiler_type=none
2223 fi
2224
2225 fi
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2227 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2228 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2229
2230 if
2231 test "x$enable_dependency_tracking" != xno \
2232 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2233 am__fastdepCC_TRUE=
2234 am__fastdepCC_FALSE='#'
2235 else
2236 am__fastdepCC_TRUE='#'
2237 am__fastdepCC_FALSE=
2238 fi
2239
2240
2241 if test -z "$CC"; then
2242 # Extract the first word of "cc", so it can be a program name with args.
2243 set dummy cc; ac_word=$2
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2245 $as_echo_n "checking for $ac_word... " >&6; }
2246 if ${ac_cv_prog_CC+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 if test -n "$CC"; then
2250 ac_cv_prog_CC="$CC" # Let the user override the test.
2251 else
2252 ac_prog_rejected=no
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2261 ac_prog_rejected=yes
2262 continue
2263 fi
2264 ac_cv_prog_CC="cc"
2265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2267 fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272 if test $ac_prog_rejected = yes; then
2273 # We found a bogon in the path, so make sure we never use it.
2274 set dummy $ac_cv_prog_CC
2275 shift
2276 if test $# != 0; then
2277 # We chose a different compiler from the bogus one.
2278 # However, it has the same basename, so the bogon will be chosen
2279 # first if we set CC to just the basename; use the full file name.
2280 shift
2281 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2282 fi
2283 fi
2284 fi
2285 fi
2286 CC=$ac_cv_prog_CC
2287 if test -n "$CC"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2289 $as_echo "$CC" >&6; }
2290 else
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2292 $as_echo "no" >&6; }
2293 fi
2294
2295
2296 test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
2297 fi
2298
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
2300 $as_echo_n "checking whether we are using GNU C... " >&6; }
2301 if ${ac_cv_c_compiler_gnu+:} false; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 cat > conftest.c <<EOF
2305 #ifdef __GNUC__
2306 yes;
2307 #endif
2308 EOF
2309 if { ac_try='${CC-cc} -E conftest.c'
2310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2311 (eval $ac_try) 2>&5
2312 ac_status=$?
2313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2314 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
2315 ac_cv_c_compiler_gnu=yes
2316 else
2317 ac_cv_c_compiler_gnu=no
2318 fi
2319 fi
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2321 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2322
2323 if test $ac_cv_c_compiler_gnu = yes; then
2324 GCC=yes
2325 ac_test_CFLAGS="${CFLAGS+set}"
2326 ac_save_CFLAGS="$CFLAGS"
2327 CFLAGS=
2328 ac_test_CFLAGS=${CFLAGS+set}
2329 ac_save_CFLAGS=$CFLAGS
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2331 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2332 if ${ac_cv_prog_cc_g+:} false; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 ac_save_c_werror_flag=$ac_c_werror_flag
2336 ac_c_werror_flag=yes
2337 ac_cv_prog_cc_g=no
2338 CFLAGS="-g"
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2341
2342 int
2343 main ()
2344 {
2345
2346 ;
2347 return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351 ac_cv_prog_cc_g=yes
2352 else
2353 CFLAGS=""
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2356
2357 int
2358 main ()
2359 {
2360
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 if ac_fn_c_try_compile "$LINENO"; then :
2366
2367 else
2368 ac_c_werror_flag=$ac_save_c_werror_flag
2369 CFLAGS="-g"
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2372
2373 int
2374 main ()
2375 {
2376
2377 ;
2378 return 0;
2379 }
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382 ac_cv_prog_cc_g=yes
2383 fi
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 fi
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 fi
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 ac_c_werror_flag=$ac_save_c_werror_flag
2390 fi
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2392 $as_echo "$ac_cv_prog_cc_g" >&6; }
2393 if test "$ac_test_CFLAGS" = set; then
2394 CFLAGS=$ac_save_CFLAGS
2395 elif test $ac_cv_prog_cc_g = yes; then
2396 if test "$GCC" = yes; then
2397 CFLAGS="-g -O2"
2398 else
2399 CFLAGS="-g"
2400 fi
2401 else
2402 if test "$GCC" = yes; then
2403 CFLAGS="-O2"
2404 else
2405 CFLAGS=
2406 fi
2407 fi
2408 if test "$ac_test_CFLAGS" = set; then
2409 CFLAGS="$ac_save_CFLAGS"
2410 elif test $ac_cv_prog_cc_g = yes; then
2411 CFLAGS="-g -O2"
2412 else
2413 CFLAGS="-O2"
2414 fi
2415 else
2416 GCC=
2417 test "${CFLAGS+set}" = set || CFLAGS="-g"
2418 fi
2419
2420 AS=${AS-as}
2421
2422 AR=${AR-ar}
2423
2424 LD=${LD-ld}
2425
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430 $as_echo_n "checking for $ac_word... " >&6; }
2431 if ${ac_cv_prog_RANLIB+:} false; then :
2432 $as_echo_n "(cached) " >&6
2433 else
2434 if test -n "$RANLIB"; then
2435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448 done
2449 done
2450 IFS=$as_save_IFS
2451
2452 fi
2453 fi
2454 RANLIB=$ac_cv_prog_RANLIB
2455 if test -n "$RANLIB"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2457 $as_echo "$RANLIB" >&6; }
2458 else
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460 $as_echo "no" >&6; }
2461 fi
2462
2463
2464 fi
2465 if test -z "$ac_cv_prog_RANLIB"; then
2466 ac_ct_RANLIB=$RANLIB
2467 # Extract the first word of "ranlib", so it can be a program name with args.
2468 set dummy ranlib; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test -n "$ac_ct_RANLIB"; then
2475 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_ac_ct_RANLIB="ranlib"
2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2487 fi
2488 done
2489 done
2490 IFS=$as_save_IFS
2491
2492 fi
2493 fi
2494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2495 if test -n "$ac_ct_RANLIB"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2497 $as_echo "$ac_ct_RANLIB" >&6; }
2498 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2501 fi
2502
2503 if test "x$ac_ct_RANLIB" = x; then
2504 RANLIB=":"
2505 else
2506 case $cross_compiling:$ac_tool_warned in
2507 yes:)
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512 RANLIB=$ac_ct_RANLIB
2513 fi
2514 else
2515 RANLIB="$ac_cv_prog_RANLIB"
2516 fi
2517
2518 # By default we simply use the C compiler to build assembly code.
2519
2520 test "${CCAS+set}" = set || CCAS=$CC
2521 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2522
2523
2524
2525
2526 host_makefile_frag=${srcdir}/../config/default.mh
2527
2528 host_makefile_frag_path=$host_makefile_frag
2529
2530
2531
2532 ac_config_files="$ac_config_files Makefile"
2533
2534 cat >confcache <<\_ACEOF
2535 # This file is a shell script that caches the results of configure
2536 # tests run on this system so they can be shared between configure
2537 # scripts and configure runs, see configure's option --config-cache.
2538 # It is not useful on other systems. If it contains results you don't
2539 # want to keep, you may remove or edit it.
2540 #
2541 # config.status only pays attention to the cache file if you give it
2542 # the --recheck option to rerun configure.
2543 #
2544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2546 # following values.
2547
2548 _ACEOF
2549
2550 # The following way of writing the cache mishandles newlines in values,
2551 # but we know of no workaround that is simple, portable, and efficient.
2552 # So, we kill variables containing newlines.
2553 # Ultrix sh set writes to stderr and can't be redirected directly,
2554 # and sets the high bit in the cache file unless we assign to the vars.
2555 (
2556 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2557 eval ac_val=\$$ac_var
2558 case $ac_val in #(
2559 *${as_nl}*)
2560 case $ac_var in #(
2561 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2563 esac
2564 case $ac_var in #(
2565 _ | IFS | as_nl) ;; #(
2566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2567 *) { eval $ac_var=; unset $ac_var;} ;;
2568 esac ;;
2569 esac
2570 done
2571
2572 (set) 2>&1 |
2573 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2574 *${as_nl}ac_space=\ *)
2575 # `set' does not quote correctly, so add quotes: double-quote
2576 # substitution turns \\\\ into \\, and sed turns \\ into \.
2577 sed -n \
2578 "s/'/'\\\\''/g;
2579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2580 ;; #(
2581 *)
2582 # `set' quotes correctly as required by POSIX, so do not add quotes.
2583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2584 ;;
2585 esac |
2586 sort
2587 ) |
2588 sed '
2589 /^ac_cv_env_/b end
2590 t clear
2591 :clear
2592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2593 t end
2594 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2595 :end' >>confcache
2596 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2597 if test -w "$cache_file"; then
2598 if test "x$cache_file" != "x/dev/null"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2600 $as_echo "$as_me: updating cache $cache_file" >&6;}
2601 if test ! -f "$cache_file" || test -h "$cache_file"; then
2602 cat confcache >"$cache_file"
2603 else
2604 case $cache_file in #(
2605 */* | ?:*)
2606 mv -f confcache "$cache_file"$$ &&
2607 mv -f "$cache_file"$$ "$cache_file" ;; #(
2608 *)
2609 mv -f confcache "$cache_file" ;;
2610 esac
2611 fi
2612 fi
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2615 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2616 fi
2617 fi
2618 rm -f confcache
2619
2620 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2621 # Let make expand exec_prefix.
2622 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2623
2624 # Transform confdefs.h into DEFS.
2625 # Protect against shell expansion while executing Makefile rules.
2626 # Protect against Makefile macro expansion.
2627 #
2628 # If the first sed substitution is executed (which looks for macros that
2629 # take arguments), then branch to the quote section. Otherwise,
2630 # look for a macro that doesn't take arguments.
2631 ac_script='
2632 :mline
2633 /\\$/{
2634 N
2635 s,\\\n,,
2636 b mline
2637 }
2638 t clear
2639 :clear
2640 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2641 t quote
2642 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2643 t quote
2644 b any
2645 :quote
2646 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2647 s/\[/\\&/g
2648 s/\]/\\&/g
2649 s/\$/$$/g
2650 H
2651 :any
2652 ${
2653 g
2654 s/^\n//
2655 s/\n/ /g
2656 p
2657 }
2658 '
2659 DEFS=`sed -n "$ac_script" confdefs.h`
2660
2661
2662 ac_libobjs=
2663 ac_ltlibobjs=
2664 U=
2665 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2666 # 1. Remove the extension, and $U if already installed.
2667 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2668 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2669 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2670 # will be set to the directory where LIBOBJS objects are built.
2671 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2672 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2673 done
2674 LIBOBJS=$ac_libobjs
2675
2676 LTLIBOBJS=$ac_ltlibobjs
2677
2678
2679 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
2680 as_fn_error $? "conditional \"AMDEP\" was never defined.
2681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2682 fi
2683 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
2684 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
2685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2686 fi
2687
2688 : "${CONFIG_STATUS=./config.status}"
2689 ac_write_fail=0
2690 ac_clean_files_save=$ac_clean_files
2691 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2693 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2694 as_write_fail=0
2695 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2696 #! $SHELL
2697 # Generated by $as_me.
2698 # Run this file to recreate the current configuration.
2699 # Compiler output produced by configure, useful for debugging
2700 # configure, is in config.log if it exists.
2701
2702 debug=false
2703 ac_cs_recheck=false
2704 ac_cs_silent=false
2705
2706 SHELL=\${CONFIG_SHELL-$SHELL}
2707 export SHELL
2708 _ASEOF
2709 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2710 ## -------------------- ##
2711 ## M4sh Initialization. ##
2712 ## -------------------- ##
2713
2714 # Be more Bourne compatible
2715 DUALCASE=1; export DUALCASE # for MKS sh
2716 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2717 emulate sh
2718 NULLCMD=:
2719 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2720 # is contrary to our usage. Disable this feature.
2721 alias -g '${1+"$@"}'='"$@"'
2722 setopt NO_GLOB_SUBST
2723 else
2724 case `(set -o) 2>/dev/null` in #(
2725 *posix*) :
2726 set -o posix ;; #(
2727 *) :
2728 ;;
2729 esac
2730 fi
2731
2732
2733 as_nl='
2734 '
2735 export as_nl
2736 # Printing a long string crashes Solaris 7 /usr/bin/printf.
2737 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2740 # Prefer a ksh shell builtin over an external printf program on Solaris,
2741 # but without wasting forks for bash or zsh.
2742 if test -z "$BASH_VERSION$ZSH_VERSION" \
2743 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2744 as_echo='print -r --'
2745 as_echo_n='print -rn --'
2746 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2747 as_echo='printf %s\n'
2748 as_echo_n='printf %s'
2749 else
2750 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2751 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2752 as_echo_n='/usr/ucb/echo -n'
2753 else
2754 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2755 as_echo_n_body='eval
2756 arg=$1;
2757 case $arg in #(
2758 *"$as_nl"*)
2759 expr "X$arg" : "X\\(.*\\)$as_nl";
2760 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2761 esac;
2762 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2763 '
2764 export as_echo_n_body
2765 as_echo_n='sh -c $as_echo_n_body as_echo'
2766 fi
2767 export as_echo_body
2768 as_echo='sh -c $as_echo_body as_echo'
2769 fi
2770
2771 # The user is always right.
2772 if test "${PATH_SEPARATOR+set}" != set; then
2773 PATH_SEPARATOR=:
2774 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2775 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2776 PATH_SEPARATOR=';'
2777 }
2778 fi
2779
2780
2781 # IFS
2782 # We need space, tab and new line, in precisely that order. Quoting is
2783 # there to prevent editors from complaining about space-tab.
2784 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2785 # splitting by setting IFS to empty value.)
2786 IFS=" "" $as_nl"
2787
2788 # Find who we are. Look in the path if we contain no directory separator.
2789 as_myself=
2790 case $0 in #((
2791 *[\\/]* ) as_myself=$0 ;;
2792 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2798 done
2799 IFS=$as_save_IFS
2800
2801 ;;
2802 esac
2803 # We did not find ourselves, most probably we were run as `sh COMMAND'
2804 # in which case we are not to be found in the path.
2805 if test "x$as_myself" = x; then
2806 as_myself=$0
2807 fi
2808 if test ! -f "$as_myself"; then
2809 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2810 exit 1
2811 fi
2812
2813 # Unset variables that we do not need and which cause bugs (e.g. in
2814 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2815 # suppresses any "Segmentation fault" message there. '((' could
2816 # trigger a bug in pdksh 5.2.14.
2817 for as_var in BASH_ENV ENV MAIL MAILPATH
2818 do eval test x\${$as_var+set} = xset \
2819 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2820 done
2821 PS1='$ '
2822 PS2='> '
2823 PS4='+ '
2824
2825 # NLS nuisances.
2826 LC_ALL=C
2827 export LC_ALL
2828 LANGUAGE=C
2829 export LANGUAGE
2830
2831 # CDPATH.
2832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2833
2834
2835 # as_fn_error STATUS ERROR [LINENO LOG_FD]
2836 # ----------------------------------------
2837 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2838 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2839 # script with STATUS, using 1 if that was 0.
2840 as_fn_error ()
2841 {
2842 as_status=$1; test $as_status -eq 0 && as_status=1
2843 if test "$4"; then
2844 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2846 fi
2847 $as_echo "$as_me: error: $2" >&2
2848 as_fn_exit $as_status
2849 } # as_fn_error
2850
2851
2852 # as_fn_set_status STATUS
2853 # -----------------------
2854 # Set $? to STATUS, without forking.
2855 as_fn_set_status ()
2856 {
2857 return $1
2858 } # as_fn_set_status
2859
2860 # as_fn_exit STATUS
2861 # -----------------
2862 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2863 as_fn_exit ()
2864 {
2865 set +e
2866 as_fn_set_status $1
2867 exit $1
2868 } # as_fn_exit
2869
2870 # as_fn_unset VAR
2871 # ---------------
2872 # Portably unset VAR.
2873 as_fn_unset ()
2874 {
2875 { eval $1=; unset $1;}
2876 }
2877 as_unset=as_fn_unset
2878 # as_fn_append VAR VALUE
2879 # ----------------------
2880 # Append the text in VALUE to the end of the definition contained in VAR. Take
2881 # advantage of any shell optimizations that allow amortized linear growth over
2882 # repeated appends, instead of the typical quadratic growth present in naive
2883 # implementations.
2884 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2885 eval 'as_fn_append ()
2886 {
2887 eval $1+=\$2
2888 }'
2889 else
2890 as_fn_append ()
2891 {
2892 eval $1=\$$1\$2
2893 }
2894 fi # as_fn_append
2895
2896 # as_fn_arith ARG...
2897 # ------------------
2898 # Perform arithmetic evaluation on the ARGs, and store the result in the
2899 # global $as_val. Take advantage of shells that can avoid forks. The arguments
2900 # must be portable across $(()) and expr.
2901 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2902 eval 'as_fn_arith ()
2903 {
2904 as_val=$(( $* ))
2905 }'
2906 else
2907 as_fn_arith ()
2908 {
2909 as_val=`expr "$@" || test $? -eq 1`
2910 }
2911 fi # as_fn_arith
2912
2913
2914 if expr a : '\(a\)' >/dev/null 2>&1 &&
2915 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2916 as_expr=expr
2917 else
2918 as_expr=false
2919 fi
2920
2921 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2922 as_basename=basename
2923 else
2924 as_basename=false
2925 fi
2926
2927 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2928 as_dirname=dirname
2929 else
2930 as_dirname=false
2931 fi
2932
2933 as_me=`$as_basename -- "$0" ||
2934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2935 X"$0" : 'X\(//\)$' \| \
2936 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2937 $as_echo X/"$0" |
2938 sed '/^.*\/\([^/][^/]*\)\/*$/{
2939 s//\1/
2940 q
2941 }
2942 /^X\/\(\/\/\)$/{
2943 s//\1/
2944 q
2945 }
2946 /^X\/\(\/\).*/{
2947 s//\1/
2948 q
2949 }
2950 s/.*/./; q'`
2951
2952 # Avoid depending upon Character Ranges.
2953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2956 as_cr_digits='0123456789'
2957 as_cr_alnum=$as_cr_Letters$as_cr_digits
2958
2959 ECHO_C= ECHO_N= ECHO_T=
2960 case `echo -n x` in #(((((
2961 -n*)
2962 case `echo 'xy\c'` in
2963 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2964 xy) ECHO_C='\c';;
2965 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2966 ECHO_T=' ';;
2967 esac;;
2968 *)
2969 ECHO_N='-n';;
2970 esac
2971
2972 rm -f conf$$ conf$$.exe conf$$.file
2973 if test -d conf$$.dir; then
2974 rm -f conf$$.dir/conf$$.file
2975 else
2976 rm -f conf$$.dir
2977 mkdir conf$$.dir 2>/dev/null
2978 fi
2979 if (echo >conf$$.file) 2>/dev/null; then
2980 if ln -s conf$$.file conf$$ 2>/dev/null; then
2981 as_ln_s='ln -s'
2982 # ... but there are two gotchas:
2983 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2984 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2985 # In both cases, we have to default to `cp -p'.
2986 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2987 as_ln_s='cp -p'
2988 elif ln conf$$.file conf$$ 2>/dev/null; then
2989 as_ln_s=ln
2990 else
2991 as_ln_s='cp -p'
2992 fi
2993 else
2994 as_ln_s='cp -p'
2995 fi
2996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2997 rmdir conf$$.dir 2>/dev/null
2998
2999
3000 # as_fn_mkdir_p
3001 # -------------
3002 # Create "$as_dir" as a directory, including parents if necessary.
3003 as_fn_mkdir_p ()
3004 {
3005
3006 case $as_dir in #(
3007 -*) as_dir=./$as_dir;;
3008 esac
3009 test -d "$as_dir" || eval $as_mkdir_p || {
3010 as_dirs=
3011 while :; do
3012 case $as_dir in #(
3013 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3014 *) as_qdir=$as_dir;;
3015 esac
3016 as_dirs="'$as_qdir' $as_dirs"
3017 as_dir=`$as_dirname -- "$as_dir" ||
3018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3019 X"$as_dir" : 'X\(//\)[^/]' \| \
3020 X"$as_dir" : 'X\(//\)$' \| \
3021 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3022 $as_echo X"$as_dir" |
3023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3024 s//\1/
3025 q
3026 }
3027 /^X\(\/\/\)[^/].*/{
3028 s//\1/
3029 q
3030 }
3031 /^X\(\/\/\)$/{
3032 s//\1/
3033 q
3034 }
3035 /^X\(\/\).*/{
3036 s//\1/
3037 q
3038 }
3039 s/.*/./; q'`
3040 test -d "$as_dir" && break
3041 done
3042 test -z "$as_dirs" || eval "mkdir $as_dirs"
3043 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3044
3045
3046 } # as_fn_mkdir_p
3047 if mkdir -p . 2>/dev/null; then
3048 as_mkdir_p='mkdir -p "$as_dir"'
3049 else
3050 test -d ./-p && rmdir ./-p
3051 as_mkdir_p=false
3052 fi
3053
3054 if test -x / >/dev/null 2>&1; then
3055 as_test_x='test -x'
3056 else
3057 if ls -dL / >/dev/null 2>&1; then
3058 as_ls_L_option=L
3059 else
3060 as_ls_L_option=
3061 fi
3062 as_test_x='
3063 eval sh -c '\''
3064 if test -d "$1"; then
3065 test -d "$1/.";
3066 else
3067 case $1 in #(
3068 -*)set "./$1";;
3069 esac;
3070 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3071 ???[sx]*):;;*)false;;esac;fi
3072 '\'' sh
3073 '
3074 fi
3075 as_executable_p=$as_test_x
3076
3077 # Sed expression to map a string onto a valid CPP name.
3078 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3079
3080 # Sed expression to map a string onto a valid variable name.
3081 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3082
3083
3084 exec 6>&1
3085 ## ----------------------------------- ##
3086 ## Main body of $CONFIG_STATUS script. ##
3087 ## ----------------------------------- ##
3088 _ASEOF
3089 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3090
3091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3092 # Save the log message, to keep $0 and so on meaningful, and to
3093 # report actual input values of CONFIG_FILES etc. instead of their
3094 # values after options handling.
3095 ac_log="
3096 This file was extended by $as_me, which was
3097 generated by GNU Autoconf 2.68. Invocation command line was
3098
3099 CONFIG_FILES = $CONFIG_FILES
3100 CONFIG_HEADERS = $CONFIG_HEADERS
3101 CONFIG_LINKS = $CONFIG_LINKS
3102 CONFIG_COMMANDS = $CONFIG_COMMANDS
3103 $ $0 $@
3104
3105 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3106 "
3107
3108 _ACEOF
3109
3110 case $ac_config_files in *"
3111 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3112 esac
3113
3114
3115
3116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3117 # Files that config.status was made for.
3118 config_files="$ac_config_files"
3119 config_commands="$ac_config_commands"
3120
3121 _ACEOF
3122
3123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3124 ac_cs_usage="\
3125 \`$as_me' instantiates files and other configuration actions
3126 from templates according to the current configuration. Unless the files
3127 and actions are specified as TAGs, all are instantiated by default.
3128
3129 Usage: $0 [OPTION]... [TAG]...
3130
3131 -h, --help print this help, then exit
3132 -V, --version print version number and configuration settings, then exit
3133 --config print configuration, then exit
3134 -q, --quiet, --silent
3135 do not print progress messages
3136 -d, --debug don't remove temporary files
3137 --recheck update $as_me by reconfiguring in the same conditions
3138 --file=FILE[:TEMPLATE]
3139 instantiate the configuration file FILE
3140
3141 Configuration files:
3142 $config_files
3143
3144 Configuration commands:
3145 $config_commands
3146
3147 Report bugs to the package provider."
3148
3149 _ACEOF
3150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3151 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3152 ac_cs_version="\\
3153 config.status
3154 configured by $0, generated by GNU Autoconf 2.68,
3155 with options \\"\$ac_cs_config\\"
3156
3157 Copyright (C) 2010 Free Software Foundation, Inc.
3158 This config.status script is free software; the Free Software Foundation
3159 gives unlimited permission to copy, distribute and modify it."
3160
3161 ac_pwd='$ac_pwd'
3162 srcdir='$srcdir'
3163 INSTALL='$INSTALL'
3164 test -n "\$AWK" || AWK=awk
3165 _ACEOF
3166
3167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3168 # The default lists apply if the user does not specify any file.
3169 ac_need_defaults=:
3170 while test $# != 0
3171 do
3172 case $1 in
3173 --*=?*)
3174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3176 ac_shift=:
3177 ;;
3178 --*=)
3179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3180 ac_optarg=
3181 ac_shift=:
3182 ;;
3183 *)
3184 ac_option=$1
3185 ac_optarg=$2
3186 ac_shift=shift
3187 ;;
3188 esac
3189
3190 case $ac_option in
3191 # Handling of the options.
3192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3193 ac_cs_recheck=: ;;
3194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3195 $as_echo "$ac_cs_version"; exit ;;
3196 --config | --confi | --conf | --con | --co | --c )
3197 $as_echo "$ac_cs_config"; exit ;;
3198 --debug | --debu | --deb | --de | --d | -d )
3199 debug=: ;;
3200 --file | --fil | --fi | --f )
3201 $ac_shift
3202 case $ac_optarg in
3203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3204 '') as_fn_error $? "missing file argument" ;;
3205 esac
3206 as_fn_append CONFIG_FILES " '$ac_optarg'"
3207 ac_need_defaults=false;;
3208 --he | --h | --help | --hel | -h )
3209 $as_echo "$ac_cs_usage"; exit ;;
3210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3211 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3212 ac_cs_silent=: ;;
3213
3214 # This is an error.
3215 -*) as_fn_error $? "unrecognized option: \`$1'
3216 Try \`$0 --help' for more information." ;;
3217
3218 *) as_fn_append ac_config_targets " $1"
3219 ac_need_defaults=false ;;
3220
3221 esac
3222 shift
3223 done
3224
3225 ac_configure_extra_args=
3226
3227 if $ac_cs_silent; then
3228 exec 6>/dev/null
3229 ac_configure_extra_args="$ac_configure_extra_args --silent"
3230 fi
3231
3232 _ACEOF
3233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3234 if \$ac_cs_recheck; then
3235 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3236 shift
3237 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3238 CONFIG_SHELL='$SHELL'
3239 export CONFIG_SHELL
3240 exec "\$@"
3241 fi
3242
3243 _ACEOF
3244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3245 exec 5>>config.log
3246 {
3247 echo
3248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3249 ## Running $as_me. ##
3250 _ASBOX
3251 $as_echo "$ac_log"
3252 } >&5
3253
3254 _ACEOF
3255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3256 #
3257 # INIT-COMMANDS
3258 #
3259 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3260 srcdir=${srcdir}
3261 target=${target}
3262 with_multisubdir=${with_multisubdir}
3263 ac_configure_args="${ac_configure_args} --enable-multilib"
3264 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3265 libgloss_topdir=${libgloss_topdir}
3266
3267
3268 _ACEOF
3269
3270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3271
3272 # Handling of arguments.
3273 for ac_config_target in $ac_config_targets
3274 do
3275 case $ac_config_target in
3276 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3277 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3278
3279 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3280 esac
3281 done
3282
3283
3284 # If the user did not use the arguments to specify the items to instantiate,
3285 # then the envvar interface is used. Set only those that are not.
3286 # We use the long form for the default assignment because of an extremely
3287 # bizarre bug on SunOS 4.1.3.
3288 if $ac_need_defaults; then
3289 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3290 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3291 fi
3292
3293 # Have a temporary directory for convenience. Make it in the build tree
3294 # simply because there is no reason against having it here, and in addition,
3295 # creating and moving files from /tmp can sometimes cause problems.
3296 # Hook for its removal unless debugging.
3297 # Note that there is a small window in which the directory will not be cleaned:
3298 # after its creation but before its name has been assigned to `$tmp'.
3299 $debug ||
3300 {
3301 tmp= ac_tmp=
3302 trap 'exit_status=$?
3303 : "${ac_tmp:=$tmp}"
3304 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3305 ' 0
3306 trap 'as_fn_exit 1' 1 2 13 15
3307 }
3308 # Create a (secure) tmp directory for tmp files.
3309
3310 {
3311 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3312 test -d "$tmp"
3313 } ||
3314 {
3315 tmp=./conf$$-$RANDOM
3316 (umask 077 && mkdir "$tmp")
3317 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3318 ac_tmp=$tmp
3319
3320 # Set up the scripts for CONFIG_FILES section.
3321 # No need to generate them if there are no CONFIG_FILES.
3322 # This happens for instance with `./config.status config.h'.
3323 if test -n "$CONFIG_FILES"; then
3324
3325 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
3326 ac_cs_awk_getline=:
3327 ac_cs_awk_pipe_init=
3328 ac_cs_awk_read_file='
3329 while ((getline aline < (F[key])) > 0)
3330 print(aline)
3331 close(F[key])'
3332 ac_cs_awk_pipe_fini=
3333 else
3334 ac_cs_awk_getline=false
3335 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
3336 ac_cs_awk_read_file='
3337 print "|#_!!_#|"
3338 print "cat " F[key] " &&"
3339 '$ac_cs_awk_pipe_init
3340 # The final `:' finishes the AND list.
3341 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
3342 fi
3343 ac_cr=`echo X | tr X '\015'`
3344 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3345 # But we know of no other shell where ac_cr would be empty at this
3346 # point, so we can use a bashism as a fallback.
3347 if test "x$ac_cr" = x; then
3348 eval ac_cr=\$\'\\r\'
3349 fi
3350 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3351 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3352 ac_cs_awk_cr='\\r'
3353 else
3354 ac_cs_awk_cr=$ac_cr
3355 fi
3356
3357 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3358 _ACEOF
3359
3360 # Create commands to substitute file output variables.
3361 {
3362 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
3363 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
3364 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
3365 echo "_ACAWK" &&
3366 echo "_ACEOF"
3367 } >conf$$files.sh &&
3368 . ./conf$$files.sh ||
3369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3370 rm -f conf$$files.sh
3371
3372 {
3373 echo "cat >conf$$subs.awk <<_ACEOF" &&
3374 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3375 echo "_ACEOF"
3376 } >conf$$subs.sh ||
3377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3378 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3379 ac_delim='%!_!# '
3380 for ac_last_try in false false false false false :; do
3381 . ./conf$$subs.sh ||
3382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3383
3384 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3385 if test $ac_delim_n = $ac_delim_num; then
3386 break
3387 elif $ac_last_try; then
3388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3389 else
3390 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3391 fi
3392 done
3393 rm -f conf$$subs.sh
3394
3395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3396 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3397 _ACEOF
3398 sed -n '
3399 h
3400 s/^/S["/; s/!.*/"]=/
3401 p
3402 g
3403 s/^[^!]*!//
3404 :repl
3405 t repl
3406 s/'"$ac_delim"'$//
3407 t delim
3408 :nl
3409 h
3410 s/\(.\{148\}\)..*/\1/
3411 t more1
3412 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3413 p
3414 n
3415 b repl
3416 :more1
3417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3418 p
3419 g
3420 s/.\{148\}//
3421 t nl
3422 :delim
3423 h
3424 s/\(.\{148\}\)..*/\1/
3425 t more2
3426 s/["\\]/\\&/g; s/^/"/; s/$/"/
3427 p
3428 b
3429 :more2
3430 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3431 p
3432 g
3433 s/.\{148\}//
3434 t delim
3435 ' <conf$$subs.awk | sed '
3436 /^[^""]/{
3437 N
3438 s/\n//
3439 }
3440 ' >>$CONFIG_STATUS || ac_write_fail=1
3441 rm -f conf$$subs.awk
3442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3443 _ACAWK
3444 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3445 for (key in S) S_is_set[key] = 1
3446 FS = ""
3447 \$ac_cs_awk_pipe_init
3448 }
3449 {
3450 line = $ 0
3451 nfields = split(line, field, "@")
3452 substed = 0
3453 len = length(field[1])
3454 for (i = 2; i < nfields; i++) {
3455 key = field[i]
3456 keylen = length(key)
3457 if (S_is_set[key]) {
3458 value = S[key]
3459 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3460 len += length(value) + length(field[++i])
3461 substed = 1
3462 } else
3463 len += 1 + keylen
3464 }
3465 if (nfields == 3 && !substed) {
3466 key = field[2]
3467 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
3468 \$ac_cs_awk_read_file
3469 next
3470 }
3471 }
3472 print line
3473 }
3474 \$ac_cs_awk_pipe_fini
3475 _ACAWK
3476 _ACEOF
3477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3478 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3479 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3480 else
3481 cat
3482 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3483 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3484 _ACEOF
3485
3486 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3487 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3488 # trailing colons and then remove the whole line if VPATH becomes empty
3489 # (actually we leave an empty line to preserve line numbers).
3490 if test "x$srcdir" = x.; then
3491 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3492 h
3493 s///
3494 s/^/:/
3495 s/[ ]*$/:/
3496 s/:\$(srcdir):/:/g
3497 s/:\${srcdir}:/:/g
3498 s/:@srcdir@:/:/g
3499 s/^:*//
3500 s/:*$//
3501 x
3502 s/\(=[ ]*\).*/\1/
3503 G
3504 s/\n//
3505 s/^[^=]*=[ ]*$//
3506 }'
3507 fi
3508
3509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3510 fi # test -n "$CONFIG_FILES"
3511
3512
3513 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
3514 shift
3515 for ac_tag
3516 do
3517 case $ac_tag in
3518 :[FHLC]) ac_mode=$ac_tag; continue;;
3519 esac
3520 case $ac_mode$ac_tag in
3521 :[FHL]*:*);;
3522 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3523 :[FH]-) ac_tag=-:-;;
3524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3525 esac
3526 ac_save_IFS=$IFS
3527 IFS=:
3528 set x $ac_tag
3529 IFS=$ac_save_IFS
3530 shift
3531 ac_file=$1
3532 shift
3533
3534 case $ac_mode in
3535 :L) ac_source=$1;;
3536 :[FH])
3537 ac_file_inputs=
3538 for ac_f
3539 do
3540 case $ac_f in
3541 -) ac_f="$ac_tmp/stdin";;
3542 *) # Look for the file first in the build tree, then in the source tree
3543 # (if the path is not absolute). The absolute path cannot be DOS-style,
3544 # because $ac_f cannot contain `:'.
3545 test -f "$ac_f" ||
3546 case $ac_f in
3547 [\\/$]*) false;;
3548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3549 esac ||
3550 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3551 esac
3552 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3553 as_fn_append ac_file_inputs " '$ac_f'"
3554 done
3555
3556 # Let's still pretend it is `configure' which instantiates (i.e., don't
3557 # use $as_me), people would be surprised to read:
3558 # /* config.h. Generated by config.status. */
3559 configure_input='Generated from '`
3560 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3561 `' by configure.'
3562 if test x"$ac_file" != x-; then
3563 configure_input="$ac_file. $configure_input"
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3565 $as_echo "$as_me: creating $ac_file" >&6;}
3566 fi
3567 # Neutralize special characters interpreted by sed in replacement strings.
3568 case $configure_input in #(
3569 *\&* | *\|* | *\\* )
3570 ac_sed_conf_input=`$as_echo "$configure_input" |
3571 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3572 *) ac_sed_conf_input=$configure_input;;
3573 esac
3574
3575 case $ac_tag in
3576 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3578 esac
3579 ;;
3580 esac
3581
3582 ac_dir=`$as_dirname -- "$ac_file" ||
3583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3584 X"$ac_file" : 'X\(//\)[^/]' \| \
3585 X"$ac_file" : 'X\(//\)$' \| \
3586 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3587 $as_echo X"$ac_file" |
3588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3589 s//\1/
3590 q
3591 }
3592 /^X\(\/\/\)[^/].*/{
3593 s//\1/
3594 q
3595 }
3596 /^X\(\/\/\)$/{
3597 s//\1/
3598 q
3599 }
3600 /^X\(\/\).*/{
3601 s//\1/
3602 q
3603 }
3604 s/.*/./; q'`
3605 as_dir="$ac_dir"; as_fn_mkdir_p
3606 ac_builddir=.
3607
3608 case "$ac_dir" in
3609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3610 *)
3611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3612 # A ".." for each directory in $ac_dir_suffix.
3613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3614 case $ac_top_builddir_sub in
3615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3617 esac ;;
3618 esac
3619 ac_abs_top_builddir=$ac_pwd
3620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3621 # for backward compatibility:
3622 ac_top_builddir=$ac_top_build_prefix
3623
3624 case $srcdir in
3625 .) # We are building in place.
3626 ac_srcdir=.
3627 ac_top_srcdir=$ac_top_builddir_sub
3628 ac_abs_top_srcdir=$ac_pwd ;;
3629 [\\/]* | ?:[\\/]* ) # Absolute name.
3630 ac_srcdir=$srcdir$ac_dir_suffix;
3631 ac_top_srcdir=$srcdir
3632 ac_abs_top_srcdir=$srcdir ;;
3633 *) # Relative name.
3634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3635 ac_top_srcdir=$ac_top_build_prefix$srcdir
3636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3637 esac
3638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3639
3640
3641 case $ac_mode in
3642 :F)
3643 #
3644 # CONFIG_FILE
3645 #
3646
3647 case $INSTALL in
3648 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3649 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
3650 esac
3651 _ACEOF
3652
3653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3654 # If the template does not know about datarootdir, expand it.
3655 # FIXME: This hack should be removed a few years after 2.60.
3656 ac_datarootdir_hack=; ac_datarootdir_seen=
3657 ac_sed_dataroot='
3658 /datarootdir/ {
3659 p
3660 q
3661 }
3662 /@datadir@/p
3663 /@docdir@/p
3664 /@infodir@/p
3665 /@localedir@/p
3666 /@mandir@/p'
3667 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3668 *datarootdir*) ac_datarootdir_seen=yes;;
3669 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3671 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3672 _ACEOF
3673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3674 ac_datarootdir_hack='
3675 s&@datadir@&$datadir&g
3676 s&@docdir@&$docdir&g
3677 s&@infodir@&$infodir&g
3678 s&@localedir@&$localedir&g
3679 s&@mandir@&$mandir&g
3680 s&\\\${datarootdir}&$datarootdir&g' ;;
3681 esac
3682 _ACEOF
3683
3684 # Neutralize VPATH when `$srcdir' = `.'.
3685 # Shell code in configure.ac might set extrasub.
3686 # FIXME: do we really want to maintain this feature?
3687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3688 ac_sed_extra="$ac_vpsub
3689 $extrasub
3690 _ACEOF
3691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3692 :t
3693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3694 s|@configure_input@|$ac_sed_conf_input|;t t
3695 s&@top_builddir@&$ac_top_builddir_sub&;t t
3696 s&@top_build_prefix@&$ac_top_build_prefix&;t t
3697 s&@srcdir@&$ac_srcdir&;t t
3698 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3699 s&@top_srcdir@&$ac_top_srcdir&;t t
3700 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3701 s&@builddir@&$ac_builddir&;t t
3702 s&@abs_builddir@&$ac_abs_builddir&;t t
3703 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3704 s&@INSTALL@&$ac_INSTALL&;t t
3705 $ac_datarootdir_hack
3706 "
3707 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
3708 if $ac_cs_awk_getline; then
3709 $AWK -f "$ac_tmp/subs.awk"
3710 else
3711 $AWK -f "$ac_tmp/subs.awk" | $SHELL
3712 fi \
3713 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3714
3715 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3716 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3717 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3718 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3720 which seems to be undefined. Please make sure it is defined" >&5
3721 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3722 which seems to be undefined. Please make sure it is defined" >&2;}
3723
3724 rm -f "$ac_tmp/stdin"
3725 case $ac_file in
3726 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3727 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3728 esac \
3729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3730 ;;
3731
3732
3733 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
3734 $as_echo "$as_me: executing $ac_file commands" >&6;}
3735 ;;
3736 esac
3737
3738
3739 case $ac_file$ac_mode in
3740 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
3741 # Autoconf 2.62 quotes --file arguments for eval, but not when files
3742 # are listed without --file. Let's play safe and only enable the eval
3743 # if we detect the quoting.
3744 case $CONFIG_FILES in
3745 *\'*) eval set x "$CONFIG_FILES" ;;
3746 *) set x $CONFIG_FILES ;;
3747 esac
3748 shift
3749 for mf
3750 do
3751 # Strip MF so we end up with the name of the file.
3752 mf=`echo "$mf" | sed -e 's/:.*$//'`
3753 # Check whether this is an Automake generated Makefile or not.
3754 # We used to match only the files named `Makefile.in', but
3755 # some people rename them; so instead we look at the file content.
3756 # Grep'ing the first line is not enough: some people post-process
3757 # each Makefile.in and add a new line on top of each file to say so.
3758 # Grep'ing the whole file is not good either: AIX grep has a line
3759 # limit of 2048, but all sed's we know have understand at least 4000.
3760 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
3761 dirpart=`$as_dirname -- "$mf" ||
3762 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3763 X"$mf" : 'X\(//\)[^/]' \| \
3764 X"$mf" : 'X\(//\)$' \| \
3765 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
3766 $as_echo X"$mf" |
3767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3768 s//\1/
3769 q
3770 }
3771 /^X\(\/\/\)[^/].*/{
3772 s//\1/
3773 q
3774 }
3775 /^X\(\/\/\)$/{
3776 s//\1/
3777 q
3778 }
3779 /^X\(\/\).*/{
3780 s//\1/
3781 q
3782 }
3783 s/.*/./; q'`
3784 else
3785 continue
3786 fi
3787 # Extract the definition of DEPDIR, am__include, and am__quote
3788 # from the Makefile without running `make'.
3789 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
3790 test -z "$DEPDIR" && continue
3791 am__include=`sed -n 's/^am__include = //p' < "$mf"`
3792 test -z "am__include" && continue
3793 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
3794 # When using ansi2knr, U may be empty or an underscore; expand it
3795 U=`sed -n 's/^U = //p' < "$mf"`
3796 # Find all dependency output files, they are included files with
3797 # $(DEPDIR) in their names. We invoke sed twice because it is the
3798 # simplest approach to changing $(DEPDIR) to its actual value in the
3799 # expansion.
3800 for file in `sed -n "
3801 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
3802 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
3803 # Make sure the directory exists.
3804 test -f "$dirpart/$file" && continue
3805 fdir=`$as_dirname -- "$file" ||
3806 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3807 X"$file" : 'X\(//\)[^/]' \| \
3808 X"$file" : 'X\(//\)$' \| \
3809 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
3810 $as_echo X"$file" |
3811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3812 s//\1/
3813 q
3814 }
3815 /^X\(\/\/\)[^/].*/{
3816 s//\1/
3817 q
3818 }
3819 /^X\(\/\/\)$/{
3820 s//\1/
3821 q
3822 }
3823 /^X\(\/\).*/{
3824 s//\1/
3825 q
3826 }
3827 s/.*/./; q'`
3828 as_dir=$dirpart/$fdir; as_fn_mkdir_p
3829 # echo "creating $dirpart/$file"
3830 echo '# dummy' > "$dirpart/$file"
3831 done
3832 done
3833 }
3834 ;;
3835 "Makefile":F) . ${libgloss_topdir}/config-ml.in ;;
3836
3837 esac
3838 done # for ac_tag
3839
3840
3841 as_fn_exit 0
3842 _ACEOF
3843 ac_clean_files=$ac_clean_files_save
3844
3845 test $ac_write_fail = 0 ||
3846 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3847
3848
3849 # configure is writing to config.log, and then calls config.status.
3850 # config.status does its own redirection, appending to config.log.
3851 # Unfortunately, on DOS this fails, as config.log is still kept open
3852 # by configure, so config.status won't be able to write to it; its
3853 # output is simply discarded. So we exec the FD to /dev/null,
3854 # effectively closing config.log, so it can be properly (re)opened and
3855 # appended to by config.status. When coming back to configure, we
3856 # need to make the FD available again.
3857 if test "$no_create" != yes; then
3858 ac_cs_success=:
3859 ac_config_status_args=
3860 test "$silent" = yes &&
3861 ac_config_status_args="$ac_config_status_args --quiet"
3862 exec 5>/dev/null
3863 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3864 exec 5>>config.log
3865 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3866 # would make configure fail if this is the last instruction.
3867 $ac_cs_success || as_fn_exit 1
3868 fi
3869 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3871 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3872 fi
3873
0 # Copyright (c) 2008, 2009, 2011, 2013 Red Hat, Inc. All rights reserved.
1 #
2 # This copyrighted material is made available to anyone wishing to use, modify,
3 # copy, or redistribute it subject to the terms and conditions of the BSD
4 # License. This program is distributed in the hope that it will be useful,
5 # but WITHOUT ANY WARRANTY expressed or implied, including the implied warranties
6 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. A copy of this license
7 # is available at http://www.opensource.org/licenses. Any Red Hat trademarks that
8 # are incorporated in the source code or documentation are not subject to the BSD
9 # License and may only be used or replicated with the express permission of
10 # Red Hat, Inc.
11
12 dnl Process this file with autoconf to produce a configure script.
13 AC_PREREQ(2.59)
14 AC_INIT(crt0.S)
15
16 if test "${enable_shared}" = "yes" ; then
17 echo "Shared libraries not supported for cross compiling, ignored"
18 fi
19
20 if test "$srcdir" = "." ; then
21 if test "${with_target_subdir}" != "." ; then
22 libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
23 else
24 libgloss_topdir="${srcdir}/${with_multisrctop}../.."
25 fi
26 else
27 libgloss_topdir="${srcdir}/../.."
28 fi
29 AC_CONFIG_AUX_DIR($libgloss_topdir)
30
31 AC_CANONICAL_SYSTEM
32 AC_ARG_PROGRAM
33
34 AC_PROG_INSTALL
35
36 LIB_AC_PROG_CC
37 AS=${AS-as}
38 AC_SUBST(AS)
39 AR=${AR-ar}
40 AC_SUBST(AR)
41 LD=${LD-ld}
42 AC_SUBST(LD)
43 AC_PROG_RANLIB
44 LIB_AM_PROG_AS
45
46 host_makefile_frag=${srcdir}/../config/default.mh
47
48 dnl We have to assign the same value to other variables because autoconf
49 dnl doesn't provide a mechanism to substitute a replacement keyword with
50 dnl arbitrary data or pathnames.
51 dnl
52 host_makefile_frag_path=$host_makefile_frag
53 AC_SUBST(host_makefile_frag_path)
54 AC_SUBST_FILE(host_makefile_frag)
55
56 AC_CONFIG_FILES(Makefile,
57 . ${libgloss_topdir}/config-ml.in,
58 srcdir=${srcdir}
59 target=${target}
60 with_multisubdir=${with_multisubdir}
61 ac_configure_args="${ac_configure_args} --enable-multilib"
62 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
63 libgloss_topdir=${libgloss_topdir}
64 )
65 AC_OUTPUT
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * crt0.S -- PRU startup code
3 *
4 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 #include "newlib.h"
28
29 .extern main
30 .extern exit
31
32 .text
33 .section .init0, "x"
34 .global _start
35 _start:
36 /* Initialize stack pointer. */
37 ldi32 sp, _stack_top
38
39 /* DATA and BSS are handled by the loader, so nothing to do here. */
40
41 #if !defined(MINRT)
42 .extern _do_global_dtors
43 /* Ensure destructors get called. Call is per GNU ABI (i.e. 32-bit
44 function pointers). But it is also compatible with the TI ABI
45 since GCC supports only little endian PRU.
46
47 WARNING: Keep this compatible with both ABIs! */
48 ldi r14, %pmem(_do_global_dtors)
49 call atexit
50
51 /* Call constructors. Use non-call-clobbered registers. */
52 ldi r5, __init_array_start
53 ldi r6, __init_array_end
54 ctors_loop:
55 qbeq ctors_done, r5, r6
56 /* ABI dictates 16-bit IMEM pointers. */
57 lbbo r7, r5, 0, 2
58 call r7.w0
59 add r5, r5, 2
60 jmp ctors_loop
61 ctors_done:
62 #endif
63
64 /* Just in case main() tries to access argc, argv[] and envp. */
65 zero r14, 3 * 4
66
67 #if !defined(MINRT)
68 .weak __c_args__
69 ldi32 r5, __c_args__
70 qbeq __skip_c_args, r5, 0
71 lbbo r14, r5, 0, 4 /* argc */
72 add r15, r5, 4 /* argv */
73 __skip_c_args:
74 #endif
75
76 /* Call main */
77 call main
78
79 #if !defined(MINRT)
80 /* Call exit */
81 call exit
82 #endif
83
84 /* We should never reach here. */
85 _crt_exit:
86 halt
87 jmp _crt_exit
88
89 /* PRU obviously has no shared libraries, but dso_handle
90 helps to achieve better GCC test coverage. Besides,
91 it should be free with minrt. */
92 .section .data
93 .global __dso_handle
94 .weak __dso_handle
95 __dso_handle:
96 .long 0
0 *cpp_device:
1 -D__SIM__
2
3 *link_device:
4 %{!r:-Tpruelf-sim.x}
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * do_global_dtors - invoke global destructors
3 *
4 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 #include <stdint.h>
28 #include <_ansi.h>
29 #include "syscall.h"
30
31 extern void *__fini_array_start;
32 extern void *__fini_array_end;
33
34 /*
35 * _do_global_dtors
36 */
37 void
38 _do_global_dtors (void)
39 {
40 /* ABI dictates pointers in init/fini arrays are 16-bit. */
41 const uint16_t *end = (uint16_t *)&__fini_array_end;
42 const uint16_t *begin = (uint16_t *)&__fini_array_start;
43 const uint16_t *p;
44 void (**dtor) (void);
45
46 /* call destructors in reverse order */
47 for (p = end; p > begin; ) {
48 p--;
49 dtor = (void *)p;
50 (*dtor) ();
51 }
52 }
0 /* gettimeofday.c -- get the current time of day
1 *
2 * Copyright (c) 1995, 1999 Cygnus Support
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14 #include <errno.h>
15 #include "glue.h"
16
17 #undef errno
18 extern int errno;
19 struct timeval;
20
21 /*
22 * gettimeofday -- no clock
23 * struct timeval * tp, void * tzvp
24 */
25 int
26 _gettimeofday (struct timeval * tp, void * tzvp)
27 {
28 errno = ENOSYS;
29 return -1;
30 }
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * inbyte.c -- inbyte function for remoteproc
3 *
4 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 #include <errno.h>
28 #include <_ansi.h>
29 #include <stdio.h>
30 #include <unistd.h>
31 #include "glue.h"
32
33 extern ssize_t _read(int fd, void *b, size_t count);
34
35 int
36 inbyte (void)
37 {
38 ssize_t n;
39 char c;
40
41 /* PRU has no interrupts, so it is inherently thread-safe. */
42 n = _read(STDIN_FILENO, &c, 1);
43 if (n < 0)
44 return n;
45 else if (n == 0)
46 return -ENODATA;
47 else
48 return 1;
49 }
50
0 /* isatty.c -- chek the terminal device.
1 *
2 * Copyright (c) 1995 Cygnus Support
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14 #include "glue.h"
15
16 /*
17 * isatty -- returns 1 if connected to a terminal device,
18 * returns 0 if not. Since we're hooked up to a
19 * serial port, we'll say yes _AND return a 1.
20 */
21 int
22 _isatty (int fd)
23 {
24 return (1);
25 }
0 #!/bin/bash
1 # SPDX-License-Identifier: BSD-2-Clause-FreeBSD
2 #
3 # Copyright 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
4 # All rights reserved.
5 #
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
8 # are met:
9 # 1. Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer.
11 # 2. Redistributions in binary form must reproduce the above copyright
12 # notice, this list of conditions and the following disclaimer in the
13 # documentation and/or other materials provided with the distribution.
14 #
15 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26
27 # Generate additional MCU-specific linker scripts by using the
28 # default PRU-LD linker script.
29 #
30 # We do it automatically so that:
31 # 1. We only change the default linker script in binutils.
32 # 2. All the default script complexity stays in binutils.
33 # 3. Here in libgloss we only bump the memory sizes to
34 # allow large test programs to be executed.
35
36 dump_modified()
37 {
38 IMEM_SIZE=$1
39 DMEM_SIZE=$2
40 HEAP_SIZE=$3
41 STACK_SIZE=$4
42
43 echo "/* WARNING: automatically generated from the default pru-ld script! */"
44 echo -e "\n\n"
45 pru-ld --verbose | awk "
46 BEGIN { LDV_MARKER = 0; }
47 {
48 if (\$0 == \"==================================================\" )
49 {
50 LDV_MARKER++;
51 }
52 else if (LDV_MARKER != 1)
53 {
54 }
55 else if (\$0 ~ /^ imem.*ORIGIN =.*LENGTH =/)
56 {
57 print \" imem (x) : ORIGIN = 0x20000000, LENGTH = $IMEM_SIZE\"
58 }
59 else if (\$0 ~ /^ dmem.*ORIGIN =.*LENGTH =/)
60 {
61 print \" dmem (rw!x) : ORIGIN = 0x0, LENGTH = $DMEM_SIZE\"
62 }
63 else if (\$0 ~ /^__HEAP_SIZE = DEFINED/)
64 {
65 print \"__HEAP_SIZE = DEFINED(__HEAP_SIZE) ? __HEAP_SIZE : $HEAP_SIZE ;\";
66 }
67 else if (\$0 ~ /^__STACK_SIZE = DEFINED/)
68 {
69 print \"__STACK_SIZE = DEFINED(__STACK_SIZE) ? __STACK_SIZE : $STACK_SIZE ;\";
70 }
71 else
72 {
73 print \$0;
74 }
75 }"
76 }
77
78 # IMEM DMEM HEAP_SIZE STACK_SIZE
79 dump_modified 256K 65536K "32 * 1024 * 1024" "1024 * 1024" | tee pruelf-sim.x
0 /* WARNING: automatically generated from the default pru-ld script! */
1
2
3
4 /* Default linker script, for normal executables */
5 OUTPUT_FORMAT("elf32-pru","elf32-pru","elf32-pru")
6 OUTPUT_ARCH(pru)
7 MEMORY
8 {
9 imem (x) : ORIGIN = 0x20000000, LENGTH = 256K
10 dmem (rw!x) : ORIGIN = 0x0, LENGTH = 65536K
11 }
12 __HEAP_SIZE = DEFINED(__HEAP_SIZE) ? __HEAP_SIZE : 32 * 1024 * 1024 ;
13 __STACK_SIZE = DEFINED(__STACK_SIZE) ? __STACK_SIZE : 1024 * 1024 ;
14 PROVIDE (_stack_top = ORIGIN(dmem) + LENGTH(dmem));
15 ENTRY (_start)
16 SECTIONS
17 {
18 /* Read-only sections, merged into text segment: */
19 .hash : { *(.hash) }
20 .dynsym : { *(.dynsym) }
21 .dynstr : { *(.dynstr) }
22 .gnu.version : { *(.gnu.version) }
23 .gnu.version_d : { *(.gnu.version_d) }
24 .gnu.version_r : { *(.gnu.version_r) }
25 .rel.init : { *(.rel.init) }
26 .rela.init : { *(.rela.init) }
27 .rel.text :
28 {
29 *(.rel.text)
30 *(.rel.text.*)
31 *(.rel.text:*)
32 *(.rel.gnu.linkonce.t*)
33 }
34 .rela.text :
35 {
36 *(.rela.text)
37 *(.rela.text.*)
38 *(.rela.text:*)
39 *(.rela.gnu.linkonce.t*)
40 }
41 .rel.fini : { *(.rel.fini) }
42 .rela.fini : { *(.rela.fini) }
43 .rel.rodata :
44 {
45 *(.rel.rodata)
46 *(.rel.rodata.*)
47 *(.rel.rodata:*)
48 *(.rel.gnu.linkonce.r*)
49 }
50 .rela.rodata :
51 {
52 *(.rela.rodata)
53 *(.rela.rodata.*)
54 *(.rela.rodata:*)
55 *(.rela.gnu.linkonce.r*)
56 }
57 .rel.data :
58 {
59 *(.rel.data)
60 *(.rel.data.*)
61 *(.rel.data:*)
62 *(.rel.gnu.linkonce.d*)
63 }
64 .rela.data :
65 {
66 *(.rela.data)
67 *(.rela.data.*)
68 *(.rela.data:*)
69 *(.rela.gnu.linkonce.d*)
70 }
71 .rel.init_array : { *(.rel.init_array) }
72 .rela.init_array : { *(.rela.init_array) }
73 .rel.fini_array : { *(.rel.fini_array) }
74 .rela.fini_array : { *(.rela.fini_array) }
75 .rel.got : { *(.rel.got) }
76 .rela.got : { *(.rela.got) }
77 .rel.bss : { *(.rel.bss) }
78 .rela.bss : { *(.rela.bss) }
79 .rel.plt : { *(.rel.plt) }
80 .rela.plt : { *(.rela.plt) }
81 /* Internal text space. */
82 .text :
83 {
84 _text_start = . ;
85 . = ALIGN(4);
86 *(.init0) /* Start here after reset. */
87 KEEP (*(.init0))
88 . = ALIGN(4);
89 *(.text)
90 . = ALIGN(4);
91 *(.text.*)
92 . = ALIGN(4);
93 *(.text:*)
94 . = ALIGN(4);
95 *(.gnu.linkonce.t*)
96 . = ALIGN(4);
97 _text_end = . ;
98 } > imem
99 .data :
100 {
101 /* Optional variable that user is prepared to have NULL address. */
102 *(.data.atzero*)
103 /* CRT is prepared for constructor/destructor table to have
104 a "valid" NULL address. */
105 __init_array_start = . ;
106 KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*)))
107 KEEP (*(.init_array))
108 __init_array_end = . ;
109 __fini_array_start = . ;
110 KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*)))
111 KEEP (*(.fini_array))
112 __fini_array_end = . ;
113 /* DATA memory starts at address 0. So to avoid placing a valid static
114 variable at the invalid NULL address, we introduce the .data.atzero
115 section. If CRT can make some use of it - great. Otherwise skip a
116 word. In all cases .data/.bss sections must start at non-zero. */
117 . += (. == 0 ? 4 : 0);
118 PROVIDE (_data_start = .) ;
119 *(.data)
120 *(.data*)
121 *(.data:*)
122 *(.rodata) /* We need to include .rodata here if gcc is used. */
123 *(.rodata.*) /* with -fdata-sections. */
124 *(.rodata:*)
125 *(.gnu.linkonce.d*)
126 *(.gnu.linkonce.r*)
127 . = ALIGN(4);
128 PROVIDE (_data_end = .) ;
129 } > dmem
130 .resource_table :
131 {
132 KEEP (*(.resource_table))
133 } > dmem
134 .bss :
135 {
136 PROVIDE (_bss_start = .) ;
137 *(.bss)
138 *(.bss.*)
139 *(.bss:*)
140 *(.gnu.linkonce.b*)
141 *(COMMON)
142 PROVIDE (_bss_end = .) ;
143 } > dmem
144 /* Global data not cleared after reset. */
145 .noinit :
146 {
147 PROVIDE (_noinit_start = .) ;
148 *(.noinit)
149 PROVIDE (_noinit_end = .) ;
150 PROVIDE (_heap_start = .) ;
151 . += __HEAP_SIZE ;
152 /* Stack is not here really. It will be put at the end of DMEM.
153 But we take into account its size here, in order to allow
154 for MEMORY overflow checking during link time. */
155 . += __STACK_SIZE ;
156 } > dmem
157 /* Stabs debugging sections. */
158 .stab 0 : { *(.stab) }
159 .stabstr 0 : { *(.stabstr) }
160 .stab.excl 0 : { *(.stab.excl) }
161 .stab.exclstr 0 : { *(.stab.exclstr) }
162 .stab.index 0 : { *(.stab.index) }
163 .stab.indexstr 0 : { *(.stab.indexstr) }
164 .comment 0 : { *(.comment) }
165 .note.gnu.build-id : { *(.note.gnu.build-id) }
166 /* DWARF debug sections.
167 Symbols in the DWARF debugging sections are relative to the beginning
168 of the section so we begin them at 0. */
169 /* DWARF 1 */
170 .debug 0 : { *(.debug) }
171 .line 0 : { *(.line) }
172 /* GNU DWARF 1 extensions */
173 .debug_srcinfo 0 : { *(.debug_srcinfo) }
174 .debug_sfnames 0 : { *(.debug_sfnames) }
175 /* DWARF 1.1 and DWARF 2 */
176 .debug_aranges 0 : { *(.debug_aranges) }
177 .debug_pubnames 0 : { *(.debug_pubnames) }
178 /* DWARF 2 */
179 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
180 .debug_abbrev 0 : { *(.debug_abbrev) }
181 .debug_line 0 : { *(.debug_line .debug_line.* .debug_line_end) }
182 .debug_frame 0 : { *(.debug_frame) }
183 .debug_str 0 : { *(.debug_str) }
184 .debug_loc 0 : { *(.debug_loc) }
185 .debug_macinfo 0 : { *(.debug_macinfo) }
186 /* SGI/MIPS DWARF 2 extensions */
187 .debug_weaknames 0 : { *(.debug_weaknames) }
188 .debug_funcnames 0 : { *(.debug_funcnames) }
189 .debug_typenames 0 : { *(.debug_typenames) }
190 .debug_varnames 0 : { *(.debug_varnames) }
191 /* DWARF 3 */
192 .debug_pubtypes 0 : { *(.debug_pubtypes) }
193 .debug_ranges 0 : { *(.debug_ranges) }
194 /* DWARF Extension. */
195 .debug_macro 0 : { *(.debug_macro) }
196 .debug_addr 0 : { *(.debug_addr) }
197 }
198
199
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * outbyte.c -- outbyte function for simulator
3 *
4 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 #include <unistd.h>
28 #include <_ansi.h>
29
30 extern ssize_t _write(int fd, const void *b, size_t count);
31
32 void
33 outbyte (char ch)
34 {
35 _write(STDOUT_FILENO, &ch, 1);
36 }
0 /* print.c -- print a string on the output device.
1 *
2 * Copyright (c) 1995, 1999 Cygnus Support
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14 #include <unistd.h>
15 #include "glue.h"
16
17 /*
18 * print -- do a raw print of a string
19 */
20 void
21 _print (char *ptr)
22 {
23 _write(STDOUT_FILENO, ptr, strlen(ptr));
24 }
0 /* putnum.c -- put a hex number on the output device.
1 *
2 * Copyright (c) 1995, 1999 Cygnus Support
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14 #include "glue.h"
15
16 extern void print (char *ptr);
17
18 /*
19 * putnum -- print a 32 bit number in hex
20 */
21 void
22 _putnum (unsigned int num)
23 {
24 char buf[9];
25 int cnt;
26 char *ptr;
27 int digit;
28
29 ptr = buf;
30 for (cnt = 7 ; cnt >= 0 ; cnt--) {
31 digit = (num >> (cnt * 4)) & 0xf;
32
33 if (digit <= 9)
34 *ptr++ = (char) ('0' + digit);
35 else
36 *ptr++ = (char) ('a' - 10 + digit);
37 }
38
39 *ptr = (char) 0;
40 print (buf);
41 }
0 /* raise.c -- raise a signal for current process.
1 *
2 * Copyright (c) 1999 Cygnus Support
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14 #include "glue.h"
15
16 extern int _kill (int, int);
17 extern int _getpid(void);
18
19 int
20 _raise (int sig)
21 {
22 return _kill (_getpid (), sig);
23 }
0 /* sbrk.c -- allocate memory dynamically.
1 *
2 * Copyright (c) 1995,1996,1999 Cygnus Support
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14 #include <sys/types.h>
15 #include <sys/stat.h>
16 #include "glue.h"
17
18 extern char _heap_start[];
19 extern void exit (int) __attribute ((__noreturn__));
20 extern int _write (int, char *, int);
21
22 caddr_t
23 _sbrk (size_t incr)
24 {
25 static char *heap_end;
26 char *prev_heap_end;
27 char *sp = (char *)&sp;
28
29 if (heap_end == 0)
30 {
31 heap_end = _heap_start;
32 }
33 prev_heap_end = heap_end;
34 if (heap_end > sp)
35 {
36 _write (1, "Heap and stack collision\n", 25);
37 #if 0 /* Calling abort brings in the signal handling code. */
38 abort ();
39 #else
40 exit (1);
41 #endif
42 }
43 heap_end += incr;
44 return (caddr_t) prev_heap_end;
45 }
0 /* stat.c -- Get the status of a file.
1 *
2 * Copyright (c) 1995, 1999 Cygnus Support
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14 #include <sys/stat.h>
15 #include <errno.h>
16 #include "glue.h"
17
18 #undef errno
19 extern int errno;
20
21 /*
22 * stat -- Since we have no file system, we just return an error.
23 */
24 int
25 _stat (const char *path, struct stat *buf)
26 {
27 errno = EIO;
28 return (-1);
29 }
30
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * syscalls.S -- PRU system calls code
3 *
4 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 #include "newlib.h"
28
29 #include "syscall.h"
30
31 .extern _impure_ptr
32
33 /* Handle return from syscall. */
34 .global __SC_ret
35 .type __SC_ret,@function
36 .func
37 __SC_ret:
38 /* Check for negative return code */
39 qbbc __SC_ret_skip_errno_set, r14, 31
40
41 /* Invert return code and store to errno (first int in _impure_ptr). */
42 rsb r14, r14, 0
43 ldi32 r1, _impure_ptr
44 sbbo r14, r1, 0, 4
45 /* Return -1 (for both int32_t or int64_t). */
46 fill r14, 8
47
48 __SC_ret_skip_errno_set:
49 ret
50 .endfunc
51
52 .macro SC fname, id
53 .global \fname
54 .type \fname,@function
55 .func
56 \fname:
57 ldi r1, \id
58 halt
59 jmp __SC_ret
60 .endfunc
61 .endm
62
63 .text
64
65 /* Syscalls are used only by simulator. Real HW
66 users use other methods for communicating with
67 the host - remoteproc, rpmsg, shared memory. */
68 SC _exit, SYS_exit
69 SC _open, SYS_open
70 SC _close, SYS_close
71 SC _read, SYS_read
72 SC _write, SYS_write
73 SC _lseek, SYS_lseek
74 SC _unlink, SYS_unlink
75 SC _getpid, SYS_getpid
76 SC _kill, SYS_kill
77 SC _fstat, SYS_fstat
77 A PARTICULAR PURPOSE. A copy of this license is available at
88 http://www.opensource.org/licenses.
99 */
10
11 #include "newlib.h"
1012
1113 #=========================================================================
1214 # crt0.S : Entry point for RISC-V user programs
2931 sub a2, a2, a0
3032 li a1, 0
3133 call memset
34 #ifdef _LITE_EXIT
35 # Make reference to atexit weak to avoid unconditionally pulling in
36 # support code. Refer to comments in __atexit.c for more details.
37 .weak atexit
38 la a0, atexit
39 beqz a0, .Lweak_atexit
40 .weak __libc_fini_array
41 #endif
3242
3343 la a0, __libc_fini_array # Register global termination functions
3444 call atexit # to be called upon exit
45 #ifdef _LITE_EXIT
46 .Lweak_atexit:
47 #endif
3548 call __libc_init_array # Run global initialization functions
3649
3750 lw a0, 0(sp) # a0 = argc
9393 s->st_size = gs->st_size;
9494 s->st_blksize = gs->st_blksize;
9595 s->st_blocks = gs->st_blocks;
96 s->st_atime = gs->st_atime;
97 s->st_mtime = gs->st_mtime;
98 s->st_ctime = gs->st_ctime;
96 s->st_atime = gs->st_atim;
97 s->st_mtime = gs->st_mtim;
98 s->st_ctime = gs->st_ctim;
9999 }
100100
101101 void
5656 uint64_t st_size; /* total size, in bytes */
5757 uint64_t st_blksize; /* blocksize for filesystem I/O */
5858 uint64_t st_blocks; /* number of blocks allocated */
59 gdb_time_t st_atime; /* time of last access */
60 gdb_time_t st_mtime; /* time of last modification */
61 gdb_time_t st_ctime; /* time of last change */
59 gdb_time_t st_atim; /* time of last access */
60 gdb_time_t st_mtim; /* time of last modification */
61 gdb_time_t st_ctim; /* time of last change */
6262 };
6363
6464 struct gdb_timeval {
4848
4949 If writing a new function that requires documentation, the required
5050 sections are FUNCTION, INDEX, SYNOPSIS, DESCRIPTION, RETURNS,
51 and PORTABILITY. BUGS and SEEALSO should be added as appropriate.
51 and PORTABILITY. BUGS, NOTES, SEEALSO and WARNINGS should be added as
52 appropriate.
5253
5354 Source files which contain documentation are processed into ".def"
5455 files with the extracted information. These .def files are noted in the
6364 1. Add properly-formatted comments to source file (e.g. src.c);
6465 2. add "chewout" file to CHEWOUT_FILES list in Makefile.am (e.g. src.def),
6566 re-generate Makefile.in;
66 3. add file to something.tex;
67 3. @include that .def file in the appropriate .tex file, add texinfo menu
68 entries that reference the @node(s) in that .def file;
6769 4. make ChangeLog entry and generate patch.
6870
6971 EL/IX (ELIX_LEVEL_n, ELIX_n_SOURCES)
0 *** Major changes in newlib version 3.2.0:
1
2 - memmem performance improvement
3 - nanf() and HUGE_VALF now used in libm float routines to reduce size
4 - new reduced "tiny" code size printf and puts support
5 - errno setting enhanced in libm routines
6 - new --enable-newlib-reent-check-verify configure option to verify reent memory
7 - <fenv.h> support added
8 - <sys/time.h> and <sys/_timespec.h> synced with FreeBSD
9 - timeval macros moved to <sys/time.h>
10 - newlib wide char conversion functions updated to Unicode 11.0
11 - new msp430-elfbare target support
12 - AMD GCN port
13 - PRU port
14 - nbdm port
15 - various standard improvements
16
017 *** Major changes in newlib version 3.1.0:
118
219 - global stdio streams support added for reent small
0 README for newlib-3.0.0 release
0 README for newlib-3.2.0 release
11 (mostly cribbed from the README in the gdb-4.13 release)
22
33 This is `newlib', a simple ANSI C library, math library, and collection
44 of board support packages.
55
6 Prior to the 3.0.0 release, newlib supported both ANSI and K&R-style
7 compilers. As of 3.0.0, K&R is no longer supported.
6 Prior to the 3.2.0 release, newlib supported both ANSI and K&R-style
7 compilers. As of 3.2.0, K&R is no longer supported.
88
99 The newlib and libgloss subdirectories are a collection of software from
1010 several sources, each with their own copyright and license. See the file
1919 Unpacking and Installation -- quick overview
2020 ==========================
2121
22 When you unpack the newlib-3.0.0.tar.gz file, you'll find a directory
23 called `newlib-3.0.0', which contains:
22 When you unpack the newlib-3.2.0.tar.gz file, you'll find a directory
23 called `newlib-3.2.0', which contains:
2424
2525 COPYING config/ install-sh* mpw-configure
2626 COPYING.LIB config-ml.in libgloss/ mpw-install
9696 argument to `--srcdir', you can leave out the `--srcdir' option; it
9797 will be assumed.)
9898
99 For example, with version 3.0.0, you can build NEWLIB in a separate
99 For example, with version 3.2.0, you can build NEWLIB in a separate
100100 directory for a Sun 4 cross m68k-aout environment like this:
101101
102 cd newlib-3.0.0
102 cd newlib-3.2.0
103103 mkdir ../newlib-m68k-aout
104104 cd ../newlib-m68k-aout
105 ../newlib-3.0.0/configure --host=sun4 --target=m68k-aout
105 ../newlib-3.2.0/configure --host=sun4 --target=m68k-aout
106106 make
107107
108108 When `configure' builds a configuration using a remote source
118118
119119 The `Makefile' that `configure' generates in each source directory
120120 also runs recursively. If you type `make' in a source directory such
121 as `newlib-3.0.0' (or in a separate configured directory configured with
122 `--srcdir=PATH/newlib-3.0.0'), you will build all the required libraries.
121 as `newlib-3.2.0' (or in a separate configured directory configured with
122 `--srcdir=PATH/newlib-3.2.0'), you will build all the required libraries.
123123
124124 When you have multiple hosts or targets configured in separate
125125 directories, you can run `make' on them in parallel (for example, if
603603
604604 The correct address for reporting bugs found in NEWLIB is
605605 "newlib@sourceware.org". Please email all bug reports to that
606 address. Please include the NEWLIB version number (e.g., newlib-3.0.0),
606 address. Please include the NEWLIB version number (e.g., newlib-3.2.0),
607607 and how you configured it (e.g., "sun4 host and m68k-aout target").
608608 Since NEWLIB supports many different configurations, it is important
609609 that you be precise about this.
2424 /* Optional reentrant struct support. Used mostly on platforms with
2525 very restricted storage. */
2626 #undef _WANT_REENT_SMALL
27
28 /* Verify _REENT_CHECK macros allocate memory successfully. */
29 #undef _REENT_CHECK_VERIFY
2730
2831 /* Multibyte supported */
2932 #undef _MB_CAPABLE
11 dnl configure.in files.
22
33 AC_DEFUN([DEF_NEWLIB_MAJOR_VERSION],m4_define([NEWLIB_MAJOR_VERSION],[3]))
4 AC_DEFUN([DEF_NEWLIB_MINOR_VERSION],m4_define([NEWLIB_MINOR_VERSION],[1]))
4 AC_DEFUN([DEF_NEWLIB_MINOR_VERSION],m4_define([NEWLIB_MINOR_VERSION],[3]))
55 AC_DEFUN([DEF_NEWLIB_PATCHLEVEL_VERSION],m4_define([NEWLIB_PATCHLEVEL_VERSION],[0]))
66 AC_DEFUN([DEF_NEWLIB_VERSION],m4_define([NEWLIB_VERSION],[NEWLIB_MAJOR_VERSION.NEWLIB_MINOR_VERSION.NEWLIB_PATCHLEVEL_VERSION]))
77
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
787787 enable_newlib_io_long_long
788788 enable_newlib_io_long_double
789789 enable_newlib_mb
790 enable_newlib_reent_check_verify
790791 enable_newlib_iconv_encodings
791792 enable_newlib_iconv_from_encodings
792793 enable_newlib_iconv_to_encodings
13781379 # Omit some internal or obsolete options to make the list less imposing.
13791380 # This message is too long to be a string in the A/UX 3.1 sh.
13801381 cat <<_ACEOF
1381 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1382 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13821383
13831384 Usage: $0 [OPTION]... [VAR=VALUE]...
13841385
14481449
14491450 if test -n "$ac_init_help"; then
14501451 case $ac_init_help in
1451 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1452 short | recursive ) echo "Configuration of newlib 3.3.0:";;
14521453 esac
14531454 cat <<\_ACEOF
14541455
14621463 --enable-newlib-io-long-long enable long long type support in IO functions like printf/scanf
14631464 --enable-newlib-io-long-double enable long double type support in IO functions printf/scanf
14641465 --enable-newlib-mb enable multibyte support
1466 --disable-newlib-reent-check-verify disable checking of _REENT_CHECK memory allocation
14651467 --enable-newlib-iconv-encodings enable specific comma-separated list of bidirectional iconv encodings to be built-in
14661468 --enable-newlib-iconv-from-encodings enable specific comma-separated list of \"from\" iconv encodings to be built-in
14671469 --enable-newlib-iconv-to-encodings enable specific comma-separated list of \"to\" iconv encodings to be built-in
15831585 test -n "$ac_init_help" && exit $ac_status
15841586 if $ac_init_version; then
15851587 cat <<\_ACEOF
1586 newlib configure 3.1.0
1588 newlib configure 3.3.0
15871589 generated by GNU Autoconf 2.68
15881590
15891591 Copyright (C) 2010 Free Software Foundation, Inc.
18611863 This file contains any messages produced by compilers while
18621864 running configure, to aid debugging if configure makes a mistake.
18631865
1864 It was created by newlib $as_me 3.1.0, which was
1866 It was created by newlib $as_me 3.3.0, which was
18651867 generated by GNU Autoconf 2.68. Invocation command line was
18661868
18671869 $ $0 $@
23092311 newlib_mb=
23102312 fi
23112313
2314 # Check whether --enable-newlib-reent-check-verify was given.
2315 if test "${enable_newlib_reent_check_verify+set}" = set; then :
2316 enableval=$enable_newlib_reent_check_verify; case "${enableval}" in
2317 yes) newlib_reent_check_verify=yes;;
2318 no) newlib_reent_check_verify=no ;;
2319 *) as_fn_error $? "bad value ${enableval} for newlib-reent-check-verify option" "$LINENO" 5 ;;
2320 esac
2321 else
2322 newlib_reent_check_verify=
2323 fi
2324
23122325 # Check whether --enable-newlib-iconv-encodings was given.
23132326 if test "${enable_newlib_iconv_encodings+set}" = set; then :
23142327 enableval=$enable_newlib_iconv_encodings; if test x${enableval} = x; then
32213234
32223235 # Define the identity of the package.
32233236 PACKAGE='newlib'
3224 VERSION='3.1.0'
3237 VERSION='3.3.0'
32253238
32263239
32273240 # Some tools Automake needs.
1183911852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1184011853 lt_status=$lt_dlunknown
1184111854 cat > conftest.$ac_ext <<_LT_EOF
11842 #line 11843 "configure"
11855 #line 11856 "configure"
1184311856 #include "confdefs.h"
1184411857
1184511858 #if HAVE_DLFCN_H
1194511958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1194611959 lt_status=$lt_dlunknown
1194711960 cat > conftest.$ac_ext <<_LT_EOF
11948 #line 11949 "configure"
11961 #line 11962 "configure"
1194911962 #include "confdefs.h"
1195011963
1195111964 #if HAVE_DLFCN_H
1235012363
1235112364 fi
1235212365
12366 if test "${newlib_reent_check_verify}" = "yes"; then
12367 cat >>confdefs.h <<_ACEOF
12368 #define _REENT_CHECK_VERIFY 1
12369 _ACEOF
12370
12371 fi
12372
1235312373 if test "${newlib_io_c99_formats}" = "yes"; then
1235412374 cat >>confdefs.h <<_ACEOF
1235512375 #define _WANT_IO_C99_FORMATS 1
1242312443 fi
1242412444
1242512445
12426 $as_echo "#define _NEWLIB_VERSION \"3.1.0\"" >>confdefs.h
12446 $as_echo "#define _NEWLIB_VERSION \"3.3.0\"" >>confdefs.h
1242712447
1242812448
1242912449 $as_echo "#define __NEWLIB__ 3" >>confdefs.h
1243012450
1243112451
12432 $as_echo "#define __NEWLIB_MINOR__ 1" >>confdefs.h
12452 $as_echo "#define __NEWLIB_MINOR__ 3" >>confdefs.h
1243312453
1243412454
1243512455 $as_echo "#define __NEWLIB_PATCHLEVEL__ 0" >>confdefs.h
1336213382 # report actual input values of CONFIG_FILES etc. instead of their
1336313383 # values after options handling.
1336413384 ac_log="
13365 This file was extended by newlib $as_me 3.1.0, which was
13385 This file was extended by newlib $as_me 3.3.0, which was
1336613386 generated by GNU Autoconf 2.68. Invocation command line was
1336713387
1336813388 CONFIG_FILES = $CONFIG_FILES
1342813448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1342913449 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1343013450 ac_cs_version="\\
13431 newlib config.status 3.1.0
13451 newlib config.status 3.3.0
1343213452 configured by $0, generated by GNU Autoconf 2.68,
1343313453 with options \\"\$ac_cs_config\\"
1343413454
2828 # newlib_io_long_double --enable-newlib-io-long-double ("yes", "no", "")
2929 # newlib_global_stdio_streams --enable-global-stdio-streams ("yes", "no, "")
3030 # newlib_fno_builtin --disable-newlib-fno-builtin ("yes", "no, "")
31 # newlib_reent_check_verify --enable-newlib-reent-check-verify ("yes", "no, "")
3132
3233 # It sets the following shell variables:
3334 # newlib_cflags Special CFLAGS to use when building
7576 default_newlib_io_pos_args=no
7677 default_newlib_atexit_dynamic_alloc=yes
7778 default_newlib_nano_malloc=no
79 default_newlib_reent_check_verify=yes
7880 aext=a
7981 oext=o
8082 lpfx="lib_a-"
8486 yes:*)
8587 newlib_cflags="${newlib_cflags} -Os"
8688 ;;
87 :m32r-* | :d10v-* | :d30v-* | :avr-* | :m32c-* | :msp430*-* | :nds32* | :rl78-* )
89 :m32r-* | :d10v-* | :d30v-* | :avr-* | :m32c-* | :msp430*-* | :nds32* | :pru-* | :rl78-* )
8890 newlib_cflags="${newlib_cflags} -Os"
8991 ;;
9092 no:* | :*)
116118 aarch64*)
117119 machine_dir=aarch64
118120 libm_machine_dir=aarch64
121 ;;
122 amdgcn*)
123 newlib_cflags="${newlib_cflags} -D__DYNAMIC_REENT__"
124 machine_dir=amdgcn
125 libc_cv_initfinit_array=yes
119126 ;;
120127 arc*)
121128 machine_dir=arc
283290 powerpc*)
284291 machine_dir=powerpc
285292 ;;
293 pru*)
294 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED"
295 newlib_cflags="${newlib_cflags} -DNO_EXEC"
296 newlib_cflags="${newlib_cflags} -DSMALL_MEMORY"
297 default_newlib_nano_malloc="yes"
298 default_newlib_atexit_dynamic_alloc="no"
299 machine_dir=pru
300 libm_machine_dir=pru
301 ;;
286302 riscv*)
287303 libm_machine_dir=riscv
288304 machine_dir=riscv
333349 ;;
334350 x86_64)
335351 machine_dir=x86_64
352 libm_machine_dir=x86_64
336353 ;;
337354 xc16x*)
338355 machine_dir=xc16x
441458 aarch64*-*-*)
442459 newlib_cflags="${newlib_cflags} -D_COMPILING_NEWLIB"
443460 ;;
461 amdgcn*)
462 sys_dir=amdgcn
463 have_crt0="no"
464 ;;
444465 arm*-*-*)
445466 newlib_cflags="${newlib_cflags} -D_COMPILING_NEWLIB"
446467 sys_dir=arm
844865 newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DHAVE_FCNTL -D_NO_POSIX_SPAWN"
845866 syscall_dir=syscalls
846867 ;;
868 pru*)
869 syscall_dir=syscalls
870 newlib_cflags="${newlib_cflags} -DSMALL_MEMORY -D_REENT_SMALL"
871 ;;
847872 riscv*-*-*)
848873 syscall_dir=syscalls
849874 ;;
942967 fi
943968 fi
944969
970 # Enable _REENT_CHECK macro memory allocation verification.
971 if [ "x${newlib_reent_check_verify}" = "x" ]; then
972 if [ ${default_newlib_reent_check_verify} = "yes" ]; then
973 newlib_reent_check_verify="yes";
974 fi
975 fi
976
945977 # Remove rpc headers if xdr_dir not specified
946978 if [ "x${xdr_dir}" = "x" ]; then
947979 noinclude="${noinclude} rpc/types.h rpc/xdr.h"
6464 no) newlib_mb=no ;;
6565 *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;;
6666 esac], [newlib_mb=])dnl
67
68 dnl Enable verification of successful memory allocation for _REENT_CHECK family of macros
69 dnl Support --disable-newlib-reent-check-verify
70 AC_ARG_ENABLE(newlib-reent-check-verify,
71 [ --disable-newlib-reent-check-verify disable checking of _REENT_CHECK memory allocation],
72 [case "${enableval}" in
73 yes) newlib_reent_check_verify=yes;;
74 no) newlib_reent_check_verify=no ;;
75 *) AC_MSG_ERROR(bad value ${enableval} for newlib-reent-check-verify option) ;;
76 esac], [newlib_reent_check_verify=])dnl
6777
6878 dnl Support --enable-newlib-iconv-encodings
6979 AC_ARG_ENABLE(newlib-iconv-encodings,
393403
394404 if test "${newlib_elix_level}" -gt "0"; then
395405 AC_DEFINE_UNQUOTED(_ELIX_LEVEL,${newlib_elix_level})
406 fi
407
408 if test "${newlib_reent_check_verify}" = "yes"; then
409 AC_DEFINE_UNQUOTED(_REENT_CHECK_VERIFY)
396410 fi
397411
398412 if test "${newlib_io_c99_formats}" = "yes"; then
1818 print ('<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">')
1919
2020 for l in sys.stdin.readlines():
21 l = l.rstrip()
21 l = l.rstrip()
2222
23 # transform @file{foo} to <filename>foo</filename>
24 l = re.sub("@file{(.*?)}", "<filename>\\1</filename>", l)
23 # transform @file{foo} to <filename>foo</filename>
24 l = re.sub("@file{(.*?)}", "<filename>\\1</filename>", l)
2525
26 if l.startswith("@node"):
27 l = l.replace("@node", "", 1)
28 l = l.strip()
29 l = l.lower()
30 if first_node:
31 print ('<chapter id="%s" xmlns:xi="http://www.w3.org/2001/XInclude">' % l.replace(' ', '_'))
32 first_node = False
33 elif l.startswith("@chapter "):
34 l = l.replace("@chapter ", "", 1)
35 print ('<title>%s</title>' % l)
36 elif l.startswith("@include "):
37 l = l.replace("@include ", "", 1)
38 l = l.replace(".def", ".xml", 1)
39 print ('<xi:include href="%s"/>' % l.strip())
26 if l.startswith("@node"):
27 l = l.replace("@node", "", 1)
28 l = l.strip()
29 l = l.lower()
30 if first_node:
31 print ('<chapter id="%s" xmlns:xi="http://www.w3.org/2001/XInclude">' % l.replace(' ', '_'))
32 first_node = False
33 elif l.startswith("@chapter "):
34 l = l.replace("@chapter ", "", 1)
35 print ('<title>%s</title>' % l)
36 elif l.startswith("@include "):
37 l = l.replace("@include ", "", 1)
38 l = l.replace(".def", ".xml", 1)
39 print ('<xi:include href="%s"/>' % l.strip())
4040
4141 print ('</chapter>')
4242
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12411241 # Omit some internal or obsolete options to make the list less imposing.
12421242 # This message is too long to be a string in the A/UX 3.1 sh.
12431243 cat <<_ACEOF
1244 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1244 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12451245
12461246 Usage: $0 [OPTION]... [VAR=VALUE]...
12471247
13111311
13121312 if test -n "$ac_init_help"; then
13131313 case $ac_init_help in
1314 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1314 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13151315 esac
13161316 cat <<\_ACEOF
13171317
14031403 test -n "$ac_init_help" && exit $ac_status
14041404 if $ac_init_version; then
14051405 cat <<\_ACEOF
1406 newlib configure 3.1.0
1406 newlib configure 3.3.0
14071407 generated by GNU Autoconf 2.68
14081408
14091409 Copyright (C) 2010 Free Software Foundation, Inc.
14581458 This file contains any messages produced by compilers while
14591459 running configure, to aid debugging if configure makes a mistake.
14601460
1461 It was created by newlib $as_me 3.1.0, which was
1461 It was created by newlib $as_me 3.3.0, which was
14621462 generated by GNU Autoconf 2.68. Invocation command line was
14631463
14641464 $ $0 $@
25422542
25432543 # Define the identity of the package.
25442544 PACKAGE='newlib'
2545 VERSION='3.1.0'
2545 VERSION='3.3.0'
25462546
25472547
25482548 # Some tools Automake needs.
40624062 # report actual input values of CONFIG_FILES etc. instead of their
40634063 # values after options handling.
40644064 ac_log="
4065 This file was extended by newlib $as_me 3.1.0, which was
4065 This file was extended by newlib $as_me 3.3.0, which was
40664066 generated by GNU Autoconf 2.68. Invocation command line was
40674067
40684068 CONFIG_FILES = $CONFIG_FILES
41194119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41204120 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41214121 ac_cs_version="\\
4122 newlib config.status 3.1.0
4122 newlib config.status 3.3.0
41234123 configured by $0, generated by GNU Autoconf 2.68,
41244124 with options \\"\$ac_cs_config\\"
41254125
3434
3535 def dump(s, stage, threshold = 1):
3636 if verbose > threshold:
37 print('*' * 40, file=sys.stderr)
38 print(stage, file=sys.stderr)
39 print('*' * 40, file=sys.stderr)
40 print('%s' % s, file=sys.stderr)
41 print('*' * 40, file=sys.stderr)
37 print('*' * 40, file=sys.stderr)
38 print(stage, file=sys.stderr)
39 print('*' * 40, file=sys.stderr)
40 print('%s' % s, file=sys.stderr)
41 print('*' * 40, file=sys.stderr)
4242
4343 #
4444 # Stage 1
4747 def skip_whitespace_and_stars(i, src):
4848
4949 while i < len(src) and (src[i].isspace() or (src[i] == '*' and src[i+1] != '/')):
50 i += 1
50 i += 1
5151
5252 return i
5353
5959 i = 0
6060
6161 while i < len(src) - 2:
62 if src[i] == '\n' and src[i+1] == '/' and src[i+2] == '*':
63 i = i + 3
64
65 i = skip_whitespace_and_stars(i, src)
66
67 if src[i] == '.':
68 i += 1
69
70 while i < len(src):
71 if src[i] == '\n':
72 yield '\n'
73 i += 1
74
75 # allow a single blank line
76 if i < len(src) and src[i] == '\n':
77 yield '\n'
78 i += 1
79
80 i = skip_whitespace_and_stars(i, src)
81
82 elif src[i] == '*' and src[i+1] == '/':
83 i = i + 2
84 # If we have just output \n\n, this adds another blank line.
85 # This is the only way a double blank line can occur.
86 yield '\nEND\n'
87 break
88 else:
89 yield src[i]
90 i += 1
91 else:
92 i += 1
62 if src[i] == '\n' and src[i+1] == '/' and src[i+2] == '*':
63 i = i + 3
64
65 i = skip_whitespace_and_stars(i, src)
66
67 if src[i] == '.':
68 i += 1
69
70 while i < len(src):
71 if src[i] == '\n':
72 yield '\n'
73 i += 1
74
75 # allow a single blank line
76 if i < len(src) and src[i] == '\n':
77 yield '\n'
78 i += 1
79
80 i = skip_whitespace_and_stars(i, src)
81
82 elif src[i] == '*' and src[i+1] == '/':
83 i = i + 2
84 # If we have just output \n\n, this adds another blank line.
85 # This is the only way a double blank line can occur.
86 yield '\nEND\n'
87 break
88 else:
89 yield src[i]
90 i += 1
91 else:
92 i += 1
9393
9494 def remove_noncomments(src):
9595 src = '\n' + src
106106 def iscommand(l):
107107 if re.match('^[A-Z_]{3,}\s*$', l):
108108
109 return True
109 return True
110110 return False
111111
112112 def command_block_generator(content):
114114 text = ''
115115
116116 for l in content.splitlines():
117 if iscommand(l):
118 yield (command, text)
119 command = l.rstrip()
120 text = ''
121 else:
122 text = text + l + '\n'
117 if iscommand(l):
118 yield (command, text)
119 command = l.rstrip()
120 text = ''
121 else:
122 text = text + l + '\n'
123123 yield (command, text)
124124
125125 # Look for commands, which give instructions how to process the following input
141141 # invoke each command on it's text
142142 def perform(processed):
143143 for i in processed:
144 c = i[0].rstrip()
145 t = i[1].strip() + '\n'
146
147 if verbose:
148 print("performing command '%s'" % c, file=sys.stderr)
149
150 if c in command_dispatch_dict:
151 command_dispatch_dict[c](c, t)
152 else:
153 print("command '%s' is not recognized" % c, file=sys.stderr)
154 # the text following an unrecognized command is discarded
144 c = i[0].rstrip()
145 t = i[1].strip() + '\n'
146
147 if verbose:
148 print("performing command '%s'" % c, file=sys.stderr)
149
150 if c in command_dispatch_dict:
151 command_dispatch_dict[c](c, t)
152 else:
153 print("command '%s' is not recognized" % c, file=sys.stderr)
154 # the text following an unrecognized command is discarded
155155
156156 # FUNCTION (aka TYPEDEF)
157157 #
161161
162162 l = l.strip()
163163 if verbose:
164 print('FUNCTION %s' % l, file=sys.stderr)
164 print('FUNCTION %s' % l, file=sys.stderr)
165165
166166 separator = '---'
167167
168168 if ';' in l:
169 # fpclassify has an unusual format we also need to handle
170 spliton = ';'
171 l = l.splitlines()[0]
169 # fpclassify has an unusual format we also need to handle
170 spliton = ';'
171 l = l.splitlines()[0]
172172 elif len(l.splitlines()) > 1:
173 # a few pages like mktemp have two '---' lines
174 spliton = ';'
175 o = ''
176 for i in l.splitlines():
177 if separator in i:
178 o += i + ';'
179 else:
180 o += i
181 l = o[:-1]
182 else:
183 spliton = '\n'
173 # a few pages like mktemp have two '---' lines
174 spliton = ';'
175 o = ''
176 for i in l.splitlines():
177 if separator in i:
178 o += i + ';'
179 else:
180 o += i
181 l = o[:-1]
182 else:
183 spliton = '\n'
184184
185185 namelist = []
186186 descrlist = []
187187 for a in l.split(spliton):
188 (n, d) = a.split(separator, 1)
189 namelist = namelist + n.split(',')
190 descrlist = descrlist + [d]
188 (n, d) = a.split(separator, 1)
189 namelist = namelist + n.split(',')
190 descrlist = descrlist + [d]
191191
192192 # only copysign and log1p use <[ ]> markup in descr,
193193 # only gets() uses << >> markup
200200 namelist = map(lambda v: v.strip().lstrip('<').rstrip('>'), namelist)
201201
202202 if verbose:
203 print(namelist, file=sys.stderr)
203 print(namelist, file=sys.stderr)
204204 # additional alternate names may also appear in INDEX commands
205205
206206 # create the root element if needed
207207 if rootelement is None:
208 rootelement = lxml.etree.Element('refentrycontainer')
208 rootelement = lxml.etree.Element('refentrycontainer')
209209
210210 # FUNCTION implies starting a new refentry
211211 if refentry is not None:
212 print("multiple FUNCTIONs without NEWPAGE", file=sys.stderr)
213 exit(1)
212 print("multiple FUNCTIONs without NEWPAGE", file=sys.stderr)
213 exit(1)
214214
215215 # create the refentry
216216 refentry = lxml.etree.SubElement(rootelement, 'refentry')
231231 refdescriptor.text = namelist[0]
232232 # refname elements exist for all alternate names
233233 for n in namelist:
234 refname = lxml.etree.SubElement(refnamediv, 'refname')
235 refname.text = n
234 refname = lxml.etree.SubElement(refnamediv, 'refname')
235 refname.text = n
236236 refpurpose = lxml.etree.SubElement(refnamediv, 'refpurpose')
237237 refnamediv.replace(refpurpose, lxml.etree.fromstring('<refpurpose>' + descr + '</refpurpose>'))
238238
248248 l = l.strip()
249249
250250 if verbose:
251 print('INDEX %s' % l, file=sys.stderr)
251 print('INDEX %s' % l, file=sys.stderr)
252252
253253 # discard anything after the first word
254254 l = l.split()[0]
268268
269269 # as long as it doesn't already exist
270270 if not refnamediv.xpath(('refname[.="%s"]') % l):
271 refname = lxml.etree.SubElement(refnamediv, 'refname')
272 refname.text = l
273 if verbose > 1:
274 print('added refname %s' % l, file=sys.stderr)
275 else:
276 if verbose > 1:
277 print('duplicate refname %s discarded' % l, file=sys.stderr)
271 refname = lxml.etree.SubElement(refnamediv, 'refname')
272 refname.text = l
273 if verbose > 1:
274 print('added refname %s' % l, file=sys.stderr)
275 else:
276 if verbose > 1:
277 print('duplicate refname %s discarded' % l, file=sys.stderr)
278278
279279 # to validate, it seems we need to maintain refnamediv elements in a certain order
280280 refnamediv[:] = sorted(refnamediv, key = lambda x: x.tag)
292292
293293 s = ''
294294 for l in t.splitlines():
295 if re.match('\s*(#|\[|struct)', l):
296 # preprocessor # directives, structs, comments in square brackets
297 funcsynopsisinfo = lxml.etree.SubElement(funcsynopsis, 'funcsynopsisinfo')
298 funcsynopsisinfo.text = l.strip() + '\n'
299 else:
300 s = s + l
301
302 # a prototype without a terminating ';' is an error
303 if s.endswith(')'):
304 print("'%s' missing terminating semicolon" % l, file=sys.stderr)
305 s = s + ';'
306 exit(1)
307
308 if ';' in s:
309 synopsis_for_prototype(funcsynopsis, s)
310 s = ''
295 if re.match('\s*(#|\[|struct)', l):
296 # preprocessor # directives, structs, comments in square brackets
297 funcsynopsisinfo = lxml.etree.SubElement(funcsynopsis, 'funcsynopsisinfo')
298 funcsynopsisinfo.text = l.strip() + '\n'
299 elif re.match('[Ll]ink with', l):
300 pass
301 else:
302 s = s + l
303
304 # a prototype without a terminating ';' is an error
305 if s.endswith(')'):
306 print("'%s' missing terminating semicolon" % l, file=sys.stderr)
307 s = s + ';'
308 exit(1)
309
310 if ';' in s:
311 synopsis_for_prototype(funcsynopsis, s)
312 s = ''
311313
312314 if s.strip():
313 print("surplus synopsis '%s'" % s, file=sys.stderr)
314 raise
315 print("surplus synopsis '%s'" % s, file=sys.stderr)
316 exit(1)
315317
316318 def synopsis_for_prototype(funcsynopsis, s):
317319 s = s.strip()
320322 # bare prototype into it. Fortunately, since the parameter names are marked
321323 # up, we have enough information to do this.
322324 for fp in s.split(';'):
323 fp = fp.strip()
324 if fp:
325
326 if verbose:
327 print("'%s'" % fp, file=sys.stderr)
328
329 match = re.match(r'(.*?)([\w\d]*) ?\((.*)\)', fp)
330
331 if verbose:
332 print(match.groups(), file=sys.stderr)
333
334 funcprototype = lxml.etree.SubElement(funcsynopsis, 'funcprototype')
335 funcdef = lxml.etree.SubElement(funcprototype, 'funcdef')
336 funcdef.text = match.group(1)
337 function = lxml.etree.SubElement(funcdef, 'function')
338 function.text = match.group(2)
339
340 if match.group(3).strip() == 'void':
341 void = lxml.etree.SubElement(funcprototype, 'void')
342 else:
343 # Split parameters on ',' except if it is inside ()
344 for p in re.split(',(?![^()]*\))', match.group(3)):
345 p = p.strip()
346
347 if verbose:
348 print(p, file=sys.stderr)
349
350 if p == '...':
351 varargs = lxml.etree.SubElement(funcprototype, 'varargs')
352 else:
353 paramdef = lxml.etree.SubElement(funcprototype, 'paramdef')
354 parameter = lxml.etree.SubElement(paramdef, 'parameter')
355
356 # <[ ]> enclose the parameter name
357 match2 = re.match('(.*)<\[(.*)\]>(.*)', p)
358
359 if verbose:
360 print(match2.groups(), file=sys.stderr)
361
362 paramdef.text = match2.group(1)
363 parameter.text = match2.group(2)
364 parameter.tail = match2.group(3)
325 fp = fp.strip()
326 if fp:
327
328 if verbose:
329 print("'%s'" % fp, file=sys.stderr)
330
331 match = re.match(r'(.*?)([\w\d]*) ?\((.*)\)', fp)
332
333 if verbose:
334 print(match.groups(), file=sys.stderr)
335
336 funcprototype = lxml.etree.SubElement(funcsynopsis, 'funcprototype')
337 funcdef = lxml.etree.SubElement(funcprototype, 'funcdef')
338 funcdef.text = match.group(1)
339 function = lxml.etree.SubElement(funcdef, 'function')
340 function.text = match.group(2)
341
342 if match.group(3).strip() == 'void':
343 void = lxml.etree.SubElement(funcprototype, 'void')
344 else:
345 # Split parameters on ',' except if it is inside ()
346 for p in re.split(',(?![^()]*\))', match.group(3)):
347 p = p.strip()
348
349 if verbose:
350 print(p, file=sys.stderr)
351
352 if p == '...':
353 varargs = lxml.etree.SubElement(funcprototype, 'varargs')
354 else:
355 paramdef = lxml.etree.SubElement(funcprototype, 'paramdef')
356 parameter = lxml.etree.SubElement(paramdef, 'parameter')
357
358 # <[ ]> enclose the parameter name
359 match2 = re.match('(.*)<\[(.*)\]>(.*)', p)
360
361 if verbose:
362 print(match2.groups(), file=sys.stderr)
363
364 paramdef.text = match2.group(1)
365 parameter.text = match2.group(2)
366 parameter.tail = match2.group(3)
365367
366368
367369 # DESCRIPTION
381383 title.text = t.title()
382384
383385 if verbose:
384 print('%s has %d paragraphs' % (t, len(s.split('\n\n'))) , file=sys.stderr)
386 print('%s has %d paragraphs' % (t, len(s.split('\n\n'))) , file=sys.stderr)
385387
386388 if verbose > 1:
387 dump(s, 'before lexing')
388
389 # dump out lexer token sequence
390 lex.input(s)
391 for tok in lexer:
392 print(tok, file=sys.stderr)
389 dump(s, 'before lexing')
390
391 # dump out lexer token sequence
392 lex.input(s)
393 for tok in lexer:
394 print(tok, file=sys.stderr)
393395
394396 # parse the section text for makedoc markup and the few pieces of texinfo
395397 # markup we understand, and output an XML marked-up string
418420 return
419421
420422 command_dispatch_dict = {
421 'FUNCTION' : function,
422 'TYPEDEF' : function, # TYPEDEF is not currently used, but described in doc.str
423 'INDEX' : index,
424 'TRAD_SYNOPSIS' : discarded, # K&R-style synopsis, obsolete and discarded
425 'ANSI_SYNOPSIS' : synopsis,
426 'SYNOPSIS' : synopsis,
427 'DESCRIPTION' : refsect,
428 'RETURNS' : refsect,
429 'ERRORS' : refsect,
430 'PORTABILITY' : refsect,
431 'BUGS' : refsect,
432 'WARNINGS' : refsect,
433 'SEEALSO' : seealso,
434 'NOTES' : refsect, # NOTES is not described in doc.str, so is currently discarded by makedoc, but that doesn't seem right
435 'QUICKREF' : discarded, # The intent of QUICKREF and MATHREF is not obvious, but they don't generate any output currently
436 'MATHREF' : discarded,
437 'START' : discarded, # a START command is inserted to contain the text before the first command
438 'END' : discarded, # an END command is inserted merely to terminate the text for the last command in a comment block
439 'NEWPAGE' : newpage,
423 'FUNCTION' : function,
424 'TYPEDEF' : function, # TYPEDEF is not currently used, but described in doc.str
425 'INDEX' : index,
426 'TRAD_SYNOPSIS' : discarded, # K&R-style synopsis, obsolete and discarded
427 'ANSI_SYNOPSIS' : synopsis,
428 'SYNOPSIS' : synopsis,
429 'DESCRIPTION' : refsect,
430 'RETURNS' : refsect,
431 'ERRORS' : refsect,
432 'PORTABILITY' : refsect,
433 'BUGS' : refsect,
434 'WARNINGS' : refsect,
435 'SEEALSO' : seealso,
436 'NOTES' : refsect, # NOTES is not described in doc.str, so is currently discarded by makedoc, but that doesn't seem right
437 'QUICKREF' : discarded, # The intent of QUICKREF and MATHREF is not obvious, but they don't generate any output currently
438 'MATHREF' : discarded,
439 'START' : discarded, # a START command is inserted to contain the text before the first command
440 'END' : discarded, # an END command is inserted merely to terminate the text for the last command in a comment block
441 'NEWPAGE' : newpage,
440442 }
441443
442444 #
480482 s = s.replace('@*', '</para><para>')
481483
482484 if (verbose > 3) and (s != p):
483 print('%s-> line_markup_convert ->\n%s' % (p, s), file=sys.stderr)
485 print('%s-> line_markup_convert ->\n%s' % (p, s), file=sys.stderr)
484486
485487 return s
486488
526528 # if the line starts with a known texinfo command, change t.type to the
527529 # token for that command
528530 for k in texinfo_commands.keys():
529 if t.value[1:].startswith(k):
530 t.type = texinfo_commands[k]
531 break
531 if t.value[1:].startswith(k):
532 t.type = texinfo_commands[k]
533 break
532534
533535 return t
534536
572574
573575 def t_eof(t):
574576 if hasattr(t.lexer,'at_eof'):
575 # remove eof flag ready for lexing next input
576 delattr(t.lexer,'at_eof')
577 t.lexer.lineno = 0
578 return None
577 # remove eof flag ready for lexing next input
578 delattr(t.lexer,'at_eof')
579 t.lexer.lineno = 0
580 return None
579581
580582 t.type = 'EOF'
581583 t.lexer.at_eof = True;
595597
596598 def parser_verbose(p):
597599 if verbose > 2:
598 print(p[0], file=sys.stderr)
600 print(p[0], file=sys.stderr)
599601
600602 def p_input(p):
601603 '''input : paragraph
602604 | input paragraph'''
603605 if len(p) == 3:
604 p[0] = p[1] + '\n' + p[2]
605 else:
606 p[0] = p[1]
606 p[0] = p[1] + '\n' + p[2]
607 else:
608 p[0] = p[1]
607609 parser_verbose(p)
608610
609611 # Strictly, text at top level should be paragraphs (i.e terminated by a
618620 '''paragraph_content : paragraph_line
619621 | paragraph_line paragraph_content'''
620622 if len(p) == 3:
621 p[0] = p[1] + p[2]
622 else:
623 p[0] = p[1]
623 p[0] = p[1] + p[2]
624 else:
625 p[0] = p[1]
624626 parser_verbose(p)
625627
626628 def p_paragraph_line(p):
646648 '''maybe_lines : empty
647649 | paragraph maybe_lines'''
648650 if len(p) == 3:
649 p[0] = p[1] + p[2]
650 else:
651 p[0] = p[1]
651 p[0] = p[1] + p[2]
652 else:
653 p[0] = p[1]
652654 parser_verbose(p)
653655
654656 def p_maybe_blankline(p):
665667 '''courier : COURIER
666668 | COURIER courier'''
667669 if len(p) == 3:
668 p[0] = p[1] + p[2]
669 else:
670 p[0] = p[1]
670 p[0] = p[1] + p[2]
671 else:
672 p[0] = p[1]
671673 parser_verbose(p)
672674
673675 def p_bullet(p):
674676 '''bullet : ITEM maybe_lines
675677 | ITEM BLANKLINE maybe_lines'''
676678 if len(p) == 3:
677 # Glue any text in ITEM into the first para of maybe_lines
678 # (This is an unfortunate consequence of the line-based tokenization we do)
679 if p[2].startswith('<para>'):
680 p[0] = '<listitem><para>' + p[1] + p[2][len('<para>'):] + '</listitem>'
681 else:
682 p[0] = '<listitem><para>' + p[1] + '</para>' + p[2] + '</listitem>'
683 else:
684 p[0] = '<listitem><para>' + p[1] + '</para>' + p[3] + '</listitem>'
679 # Glue any text in ITEM into the first para of maybe_lines
680 # (This is an unfortunate consequence of the line-based tokenization we do)
681 if p[2].startswith('<para>'):
682 p[0] = '<listitem><para>' + p[1] + p[2][len('<para>'):] + '</listitem>'
683 else:
684 p[0] = '<listitem><para>' + p[1] + '</para>' + p[2] + '</listitem>'
685 else:
686 p[0] = '<listitem><para>' + p[1] + '</para>' + p[3] + '</listitem>'
685687 parser_verbose(p)
686688
687689 def p_bullets(p):
688690 '''bullets : bullet
689691 | bullet bullets'''
690692 if len(p) == 3:
691 p[0] = p[1] + '\n' + p[2]
692 else:
693 p[0] = p[1]
693 p[0] = p[1] + '\n' + p[2]
694 else:
695 p[0] = p[1]
694696 parser_verbose(p)
695697
696698 def p_bulletlist(p):
702704 '''row : ITEM maybe_lines
703705 | ITEM BLANKLINE maybe_lines'''
704706 if len(p) == 3:
705 p[0] = '<row><entry><code>' + p[1] + '</code></entry><entry>' + p[2] + '</entry></row>'
706 else:
707 p[0] = '<row><entry><code>' + p[1] + '</code></entry><entry>' + p[3] + '</entry></row>'
707 p[0] = '<row><entry><code>' + p[1] + '</code></entry><entry>' + p[2] + '</entry></row>'
708 else:
709 p[0] = '<row><entry><code>' + p[1] + '</code></entry><entry>' + p[3] + '</entry></row>'
708710 parser_verbose(p)
709711
710712 def p_rows(p):
711713 '''rows : row
712714 | row rows'''
713715 if len(p) == 3:
714 p[0] = p[1] + '\n' + p[2]
715 else:
716 p[0] = p[1]
716 p[0] = p[1] + '\n' + p[2]
717 else:
718 p[0] = p[1]
717719 parser_verbose(p)
718720
719721 def p_table(p):
753755 '''mct_columns : maybe_lines
754756 | maybe_lines MCT_COLUMN_SEPARATOR mct_columns'''
755757 if len(p) == 4:
756 p[0] = '<entry>' + p[1] + '</entry>' + p[3]
757 else:
758 p[0] = '<entry>' + p[1] + '</entry>'
758 p[0] = '<entry>' + p[1] + '</entry>' + p[3]
759 else:
760 p[0] = '<entry>' + p[1] + '</entry>'
759761 parser_verbose(p)
760762
761763 def p_mct_row(p):
767769 '''mct_rows : mct_row
768770 | mct_row mct_rows'''
769771 if len(p) == 3:
770 p[0] = p[1] + '\n' + p[2]
771 else:
772 p[0] = p[1]
772 p[0] = p[1] + '\n' + p[2]
773 else:
774 p[0] = p[1]
773775 parser_verbose(p)
774776
775777 def p_mct_header(p):
807809 s = lxml.etree.tostring(rootelement, pretty_print=True)
808810
809811 if not s:
810 print('No output produced (perhaps the input has no makedoc markup?)', file=sys.stderr)
811 exit(1)
812 print('No output produced (perhaps the input has no makedoc markup?)', file=sys.stderr)
813 exit(1)
812814
813815 print(s)
814816
815817 # warn about texinfo commands which didn't get processed
816818 match = re.search('@[a-z*]+', s)
817819 if match:
818 print('texinfo command %s remains in output' % match.group(), file=sys.stderr)
820 print('texinfo command %s remains in output' % match.group(), file=sys.stderr)
819821
820822 #
821823 #
828830 (opts, args) = options.parse_args()
829831
830832 if opts.cache:
831 sys.exit()
833 sys.exit()
832834
833835 verbose = opts.verbose
834836
835837 if len(args) > 0:
836 main(open(args[0], 'rb'))
837 else:
838 main(sys.stdin)
838 main(open(args[0], 'rb'))
839 else:
840 main(sys.stdin)
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13221322 # Omit some internal or obsolete options to make the list less imposing.
13231323 # This message is too long to be a string in the A/UX 3.1 sh.
13241324 cat <<_ACEOF
1325 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1325 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13261326
13271327 Usage: $0 [OPTION]... [VAR=VALUE]...
13281328
13921392
13931393 if test -n "$ac_init_help"; then
13941394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1395 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13961396 esac
13971397 cat <<\_ACEOF
13981398
15041504 test -n "$ac_init_help" && exit $ac_status
15051505 if $ac_init_version; then
15061506 cat <<\_ACEOF
1507 newlib configure 3.1.0
1507 newlib configure 3.3.0
15081508 generated by GNU Autoconf 2.68
15091509
15101510 Copyright (C) 2010 Free Software Foundation, Inc.
17821782 This file contains any messages produced by compilers while
17831783 running configure, to aid debugging if configure makes a mistake.
17841784
1785 It was created by newlib $as_me 3.1.0, which was
1785 It was created by newlib $as_me 3.3.0, which was
17861786 generated by GNU Autoconf 2.68. Invocation command line was
17871787
17881788 $ $0 $@
28662866
28672867 # Define the identity of the package.
28682868 PACKAGE='newlib'
2869 VERSION='3.1.0'
2869 VERSION='3.3.0'
28702870
28712871
28722872 # Some tools Automake needs.
1239512395 # report actual input values of CONFIG_FILES etc. instead of their
1239612396 # values after options handling.
1239712397 ac_log="
12398 This file was extended by newlib $as_me 3.1.0, which was
12398 This file was extended by newlib $as_me 3.3.0, which was
1239912399 generated by GNU Autoconf 2.68. Invocation command line was
1240012400
1240112401 CONFIG_FILES = $CONFIG_FILES
1245212452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1245312453 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1245412454 ac_cs_version="\\
12455 newlib config.status 3.1.0
12455 newlib config.status 3.3.0
1245612456 configured by $0, generated by GNU Autoconf 2.68,
1245712457 with options \\"\$ac_cs_config\\"
1245812458
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13701370 # Omit some internal or obsolete options to make the list less imposing.
13711371 # This message is too long to be a string in the A/UX 3.1 sh.
13721372 cat <<_ACEOF
1373 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1373 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13741374
13751375 Usage: $0 [OPTION]... [VAR=VALUE]...
13761376
14401440
14411441 if test -n "$ac_init_help"; then
14421442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1443 short | recursive ) echo "Configuration of newlib 3.3.0:";;
14441444 esac
14451445 cat <<\_ACEOF
14461446
15561556 test -n "$ac_init_help" && exit $ac_status
15571557 if $ac_init_version; then
15581558 cat <<\_ACEOF
1559 newlib configure 3.1.0
1559 newlib configure 3.3.0
15601560 generated by GNU Autoconf 2.68
15611561
15621562 Copyright (C) 2010 Free Software Foundation, Inc.
18341834 This file contains any messages produced by compilers while
18351835 running configure, to aid debugging if configure makes a mistake.
18361836
1837 It was created by newlib $as_me 3.1.0, which was
1837 It was created by newlib $as_me 3.3.0, which was
18381838 generated by GNU Autoconf 2.68. Invocation command line was
18391839
18401840 $ $0 $@
29812981
29822982 # Define the identity of the package.
29832983 PACKAGE='newlib'
2984 VERSION='3.1.0'
2984 VERSION='3.3.0'
29852985
29862986
29872987 # Some tools Automake needs.
1279412794 # report actual input values of CONFIG_FILES etc. instead of their
1279512795 # values after options handling.
1279612796 ac_log="
12797 This file was extended by newlib $as_me 3.1.0, which was
12797 This file was extended by newlib $as_me 3.3.0, which was
1279812798 generated by GNU Autoconf 2.68. Invocation command line was
1279912799
1280012800 CONFIG_FILES = $CONFIG_FILES
1285112851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1285212852 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1285312853 ac_cs_version="\\
12854 newlib config.status 3.1.0
12854 newlib config.status 3.3.0
1285512855 configured by $0, generated by GNU Autoconf 2.68,
1285612856 with options \\"\$ac_cs_config\\"
1285712857
164164 {0x10A0, 37, TOLO, 7264},
165165 {0x10C7, 0, TOLO, 7264},
166166 {0x10CD, 0, TOLO, 7264},
167 {0x10D0, 42, TOUP, 3008},
168 {0x10FD, 2, TOUP, 3008},
167169 {0x13A0, 79, TOLO, 38864},
168170 {0x13F0, 5, TOLO, 8},
169171 {0x13F8, 5, TOUP, -8},
175177 {0x1C86, 0, TOUP, -6236},
176178 {0x1C87, 0, TOUP, -6181},
177179 {0x1C88, 0, TOUP, 35266},
180 {0x1C90, 42, TOLO, -3008},
181 {0x1CBD, 2, TOLO, -3008},
178182 {0x1D79, 0, TOUP, 35332},
179183 {0x1D7D, 0, TOUP, 3814},
180184 {0x1E00, 149, TO1, EVENCAP},
286290 {0xA7B1, 0, TOLO, -42282},
287291 {0xA7B2, 0, TOLO, -42261},
288292 {0xA7B3, 0, TOLO, 928},
289 {0xA7B4, 3, TO1, EVENCAP},
293 {0xA7B4, 5, TO1, EVENCAP},
290294 {0xAB53, 0, TOUP, -928},
291295 {0xAB70, 79, TOUP, -38864},
292296 {0xFF21, 25, TOLO, 32},
299303 {0x10CC0, 50, TOUP, -64},
300304 {0x118A0, 31, TOLO, 32},
301305 {0x118C0, 31, TOUP, -32},
306 {0x16E40, 31, TOLO, 32},
307 {0x16E60, 31, TOUP, -32},
302308 {0x1E900, 33, TOLO, 34},
303309 {0x1E922, 33, TOUP, -34},
1818 int mid;
1919
2020 if (ucs < table[0].first || ucs > table[max].first + table[max].delta)
21 return 0;
21 return -1;
2222 while (max >= min)
2323 {
2424 mid = (min + max) / 2;
167167 {CAT_LC, 0x0531, 37},
168168 {CAT_Lm, 0x0559, 0},
169169 {CAT_Po, 0x055A, 5},
170 {CAT_Ll, 0x0560, 0},
170171 {CAT_LC, 0x0561, 37},
171 {CAT_Ll, 0x0587, 0},
172 {CAT_Ll, 0x0587, 1},
172173 {CAT_Po, 0x0589, 0},
173174 {CAT_Pd, 0x058A, 0},
174175 {CAT_So, 0x058D, 1},
183184 {CAT_Po, 0x05C6, 0},
184185 {CAT_Mn, 0x05C7, 0},
185186 {CAT_Lo, 0x05D0, 26},
186 {CAT_Lo, 0x05F0, 2},
187 {CAT_Lo, 0x05EF, 3},
187188 {CAT_Po, 0x05F3, 1},
188189 {CAT_Cf, 0x0600, 5},
189190 {CAT_Sm, 0x0606, 2},
235236 {CAT_So, 0x07F6, 0},
236237 {CAT_Po, 0x07F7, 2},
237238 {CAT_Lm, 0x07FA, 0},
239 {CAT_Mn, 0x07FD, 0},
240 {CAT_Sc, 0x07FE, 1},
238241 {CAT_Lo, 0x0800, 21},
239242 {CAT_Mn, 0x0816, 3},
240243 {CAT_Lm, 0x081A, 0},
250253 {CAT_Lo, 0x0860, 10},
251254 {CAT_Lo, 0x08A0, 20},
252255 {CAT_Lo, 0x08B6, 7},
253 {CAT_Mn, 0x08D4, 13},
256 {CAT_Mn, 0x08D3, 14},
254257 {CAT_Cf, 0x08E2, 0},
255258 {CAT_Mn, 0x08E3, 31},
256259 {CAT_Mc, 0x0903, 0},
301304 {CAT_Sc, 0x09FB, 0},
302305 {CAT_Lo, 0x09FC, 0},
303306 {CAT_Po, 0x09FD, 0},
307 {CAT_Mn, 0x09FE, 0},
304308 {CAT_Mn, 0x0A01, 1},
305309 {CAT_Mc, 0x0A03, 0},
306310 {CAT_Lo, 0x0A05, 5},
322326 {CAT_Mn, 0x0A70, 1},
323327 {CAT_Lo, 0x0A72, 2},
324328 {CAT_Mn, 0x0A75, 0},
329 {CAT_Po, 0x0A76, 0},
325330 {CAT_Mn, 0x0A81, 1},
326331 {CAT_Mc, 0x0A83, 0},
327332 {CAT_Lo, 0x0A85, 8},
398403 {CAT_So, 0x0BFA, 0},
399404 {CAT_Mn, 0x0C00, 0},
400405 {CAT_Mc, 0x0C01, 2},
406 {CAT_Mn, 0x0C04, 0},
401407 {CAT_Lo, 0x0C05, 7},
402408 {CAT_Lo, 0x0C0E, 2},
403409 {CAT_Lo, 0x0C12, 22},
417423 {CAT_Lo, 0x0C80, 0},
418424 {CAT_Mn, 0x0C81, 0},
419425 {CAT_Mc, 0x0C82, 1},
426 {CAT_Po, 0x0C84, 0},
420427 {CAT_Lo, 0x0C85, 7},
421428 {CAT_Lo, 0x0C8E, 2},
422429 {CAT_Lo, 0x0C92, 22},
583590 {CAT_LC, 0x10A0, 37},
584591 {CAT_LC, 0x10C7, 0},
585592 {CAT_LC, 0x10CD, 0},
586 {CAT_Lo, 0x10D0, 42},
593 {CAT_LC, 0x10D0, 42},
587594 {CAT_Po, 0x10FB, 0},
588595 {CAT_Lm, 0x10FC, 0},
589 {CAT_Lo, 0x10FD, 331},
596 {CAT_LC, 0x10FD, 2},
597 {CAT_Lo, 0x1100, 328},
590598 {CAT_Lo, 0x124A, 3},
591599 {CAT_Lo, 0x1250, 6},
592600 {CAT_Lo, 0x1258, 0},
656664 {CAT_Nd, 0x1810, 9},
657665 {CAT_Lo, 0x1820, 34},
658666 {CAT_Lm, 0x1843, 0},
659 {CAT_Lo, 0x1844, 51},
667 {CAT_Lo, 0x1844, 52},
660668 {CAT_Lo, 0x1880, 4},
661669 {CAT_Mn, 0x1885, 1},
662670 {CAT_Lo, 0x1887, 33},
758766 {CAT_Lm, 0x1C78, 5},
759767 {CAT_Po, 0x1C7E, 1},
760768 {CAT_LC, 0x1C80, 8},
769 {CAT_LC, 0x1C90, 42},
770 {CAT_LC, 0x1CBD, 2},
761771 {CAT_Po, 0x1CC0, 7},
762772 {CAT_Mn, 0x1CD0, 2},
763773 {CAT_Po, 0x1CD3, 0},
10651075 {CAT_Sm, 0x2B47, 5},
10661076 {CAT_So, 0x2B4D, 38},
10671077 {CAT_So, 0x2B76, 31},
1068 {CAT_So, 0x2B98, 33},
1069 {CAT_So, 0x2BBD, 11},
1070 {CAT_So, 0x2BCA, 8},
1071 {CAT_So, 0x2BEC, 3},
1078 {CAT_So, 0x2B98, 48},
1079 {CAT_So, 0x2BCA, 52},
10721080 {CAT_LC, 0x2C00, 46},
10731081 {CAT_LC, 0x2C30, 46},
10741082 {CAT_LC, 0x2C60, 16},
11411149 {CAT_Pd, 0x2E40, 0},
11421150 {CAT_Po, 0x2E41, 0},
11431151 {CAT_Ps, 0x2E42, 0},
1144 {CAT_Po, 0x2E43, 6},
1152 {CAT_Po, 0x2E43, 11},
11451153 {CAT_So, 0x2E80, 25},
11461154 {CAT_So, 0x2E9B, 88},
11471155 {CAT_So, 0x2F00, 213},
11961204 {CAT_Po, 0x30FB, 0},
11971205 {CAT_Lm, 0x30FC, 2},
11981206 {CAT_Lo, 0x30FF, 0},
1199 {CAT_Lo, 0x3105, 41},
1207 {CAT_Lo, 0x3105, 42},
12001208 {CAT_Lo, 0x3131, 93},
12011209 {CAT_So, 0x3190, 1},
12021210 {CAT_No, 0x3192, 3},
12181226 {CAT_So, 0x3300, 255},
12191227 {CAT_Lo, 0x3400, 6581},
12201228 {CAT_So, 0x4DC0, 63},
1221 {CAT_Lo, 0x4E00, 20970},
1229 {CAT_Lo, 0x4E00, 20975},
12221230 {CAT_Lo, 0xA000, 20},
12231231 {CAT_Lm, 0xA015, 0},
12241232 {CAT_Lo, 0xA016, 1142},
12641272 {CAT_LC, 0xA790, 3},
12651273 {CAT_Ll, 0xA794, 1},
12661274 {CAT_LC, 0xA796, 24},
1267 {CAT_LC, 0xA7B0, 7},
1275 {CAT_Ll, 0xA7AF, 0},
1276 {CAT_LC, 0xA7B0, 9},
12681277 {CAT_Lo, 0xA7F7, 0},
12691278 {CAT_Lm, 0xA7F8, 1},
12701279 {CAT_Ll, 0xA7FA, 0},
12961305 {CAT_Po, 0xA8F8, 2},
12971306 {CAT_Lo, 0xA8FB, 0},
12981307 {CAT_Po, 0xA8FC, 0},
1299 {CAT_Lo, 0xA8FD, 0},
1308 {CAT_Lo, 0xA8FD, 1},
1309 {CAT_Mn, 0xA8FF, 0},
13001310 {CAT_Nd, 0xA900, 9},
13011311 {CAT_Lo, 0xA90A, 27},
13021312 {CAT_Mn, 0xA926, 7},
15981608 {CAT_Mn, 0x10A0C, 3},
15991609 {CAT_Lo, 0x10A10, 3},
16001610 {CAT_Lo, 0x10A15, 2},
1601 {CAT_Lo, 0x10A19, 26},
1611 {CAT_Lo, 0x10A19, 28},
16021612 {CAT_Mn, 0x10A38, 2},
16031613 {CAT_Mn, 0x10A3F, 0},
1604 {CAT_No, 0x10A40, 7},
1614 {CAT_No, 0x10A40, 8},
16051615 {CAT_Po, 0x10A50, 8},
16061616 {CAT_Lo, 0x10A60, 28},
16071617 {CAT_No, 0x10A7D, 1},
16271637 {CAT_LC, 0x10C80, 50},
16281638 {CAT_LC, 0x10CC0, 50},
16291639 {CAT_No, 0x10CFA, 5},
1640 {CAT_Lo, 0x10D00, 35},
1641 {CAT_Mn, 0x10D24, 3},
1642 {CAT_Nd, 0x10D30, 9},
16301643 {CAT_No, 0x10E60, 30},
1644 {CAT_Lo, 0x10F00, 28},
1645 {CAT_No, 0x10F1D, 9},
1646 {CAT_Lo, 0x10F27, 0},
1647 {CAT_Lo, 0x10F30, 21},
1648 {CAT_Mn, 0x10F46, 10},
1649 {CAT_No, 0x10F51, 3},
1650 {CAT_Po, 0x10F55, 4},
16311651 {CAT_Mc, 0x11000, 0},
16321652 {CAT_Mn, 0x11001, 0},
16331653 {CAT_Mc, 0x11002, 0},
16461666 {CAT_Po, 0x110BB, 1},
16471667 {CAT_Cf, 0x110BD, 0},
16481668 {CAT_Po, 0x110BE, 3},
1669 {CAT_Cf, 0x110CD, 0},
16491670 {CAT_Lo, 0x110D0, 24},
16501671 {CAT_Nd, 0x110F0, 9},
16511672 {CAT_Mn, 0x11100, 2},
16551676 {CAT_Mn, 0x1112D, 7},
16561677 {CAT_Nd, 0x11136, 9},
16571678 {CAT_Po, 0x11140, 3},
1679 {CAT_Lo, 0x11144, 0},
1680 {CAT_Mc, 0x11145, 1},
16581681 {CAT_Lo, 0x11150, 34},
16591682 {CAT_Mn, 0x11173, 0},
16601683 {CAT_Po, 0x11174, 1},
16661689 {CAT_Mn, 0x111B6, 8},
16671690 {CAT_Mc, 0x111BF, 1},
16681691 {CAT_Lo, 0x111C1, 3},
1669 {CAT_Po, 0x111C5, 4},
1670 {CAT_Mn, 0x111CA, 2},
1692 {CAT_Po, 0x111C5, 3},
1693 {CAT_Mn, 0x111C9, 3},
16711694 {CAT_Po, 0x111CD, 0},
16721695 {CAT_Nd, 0x111D0, 9},
16731696 {CAT_Lo, 0x111DA, 0},
17041727 {CAT_Lo, 0x1132A, 6},
17051728 {CAT_Lo, 0x11332, 1},
17061729 {CAT_Lo, 0x11335, 4},
1707 {CAT_Mn, 0x1133C, 0},
1730 {CAT_Mn, 0x1133B, 1},
17081731 {CAT_Lo, 0x1133D, 0},
17091732 {CAT_Mc, 0x1133E, 1},
17101733 {CAT_Mn, 0x11340, 0},
17291752 {CAT_Nd, 0x11450, 9},
17301753 {CAT_Po, 0x1145B, 0},
17311754 {CAT_Po, 0x1145D, 0},
1755 {CAT_Mn, 0x1145E, 0},
17321756 {CAT_Lo, 0x11480, 47},
17331757 {CAT_Mc, 0x114B0, 2},
17341758 {CAT_Mn, 0x114B3, 5},
17721796 {CAT_Mc, 0x116B6, 0},
17731797 {CAT_Mn, 0x116B7, 0},
17741798 {CAT_Nd, 0x116C0, 9},
1775 {CAT_Lo, 0x11700, 25},
1799 {CAT_Lo, 0x11700, 26},
17761800 {CAT_Mn, 0x1171D, 2},
17771801 {CAT_Mc, 0x11720, 1},
17781802 {CAT_Mn, 0x11722, 3},
17821806 {CAT_No, 0x1173A, 1},
17831807 {CAT_Po, 0x1173C, 2},
17841808 {CAT_So, 0x1173F, 0},
1809 {CAT_Lo, 0x11800, 43},
1810 {CAT_Mc, 0x1182C, 2},
1811 {CAT_Mn, 0x1182F, 8},
1812 {CAT_Mc, 0x11838, 0},
1813 {CAT_Mn, 0x11839, 1},
1814 {CAT_Po, 0x1183B, 0},
17851815 {CAT_LC, 0x118A0, 63},
17861816 {CAT_Nd, 0x118E0, 9},
17871817 {CAT_No, 0x118EA, 8},
17881818 {CAT_Lo, 0x118FF, 0},
17891819 {CAT_Lo, 0x11A00, 0},
1790 {CAT_Mn, 0x11A01, 5},
1791 {CAT_Mc, 0x11A07, 1},
1792 {CAT_Mn, 0x11A09, 1},
1820 {CAT_Mn, 0x11A01, 9},
17931821 {CAT_Lo, 0x11A0B, 39},
17941822 {CAT_Mn, 0x11A33, 5},
17951823 {CAT_Mc, 0x11A39, 0},
18071835 {CAT_Mc, 0x11A97, 0},
18081836 {CAT_Mn, 0x11A98, 1},
18091837 {CAT_Po, 0x11A9A, 2},
1838 {CAT_Lo, 0x11A9D, 0},
18101839 {CAT_Po, 0x11A9E, 4},
18111840 {CAT_Lo, 0x11AC0, 56},
18121841 {CAT_Lo, 0x11C00, 8},
18391868 {CAT_Lo, 0x11D46, 0},
18401869 {CAT_Mn, 0x11D47, 0},
18411870 {CAT_Nd, 0x11D50, 9},
1871 {CAT_Lo, 0x11D60, 5},
1872 {CAT_Lo, 0x11D67, 1},
1873 {CAT_Lo, 0x11D6A, 31},
1874 {CAT_Mc, 0x11D8A, 4},
1875 {CAT_Mn, 0x11D90, 1},
1876 {CAT_Mc, 0x11D93, 1},
1877 {CAT_Mn, 0x11D95, 0},
1878 {CAT_Mc, 0x11D96, 0},
1879 {CAT_Mn, 0x11D97, 0},
1880 {CAT_Lo, 0x11D98, 0},
1881 {CAT_Nd, 0x11DA0, 9},
1882 {CAT_Lo, 0x11EE0, 18},
1883 {CAT_Mn, 0x11EF3, 1},
1884 {CAT_Mc, 0x11EF5, 1},
1885 {CAT_Po, 0x11EF7, 1},
18421886 {CAT_Lo, 0x12000, 921},
18431887 {CAT_Nl, 0x12400, 110},
18441888 {CAT_Po, 0x12470, 4},
18631907 {CAT_No, 0x16B5B, 6},
18641908 {CAT_Lo, 0x16B63, 20},
18651909 {CAT_Lo, 0x16B7D, 18},
1910 {CAT_LC, 0x16E40, 63},
1911 {CAT_No, 0x16E80, 22},
1912 {CAT_Po, 0x16E97, 3},
18661913 {CAT_Lo, 0x16F00, 68},
18671914 {CAT_Lo, 0x16F50, 0},
18681915 {CAT_Mc, 0x16F51, 45},
18691916 {CAT_Mn, 0x16F8F, 3},
18701917 {CAT_Lm, 0x16F93, 12},
18711918 {CAT_Lm, 0x16FE0, 1},
1872 {CAT_Lo, 0x17000, 6124},
1919 {CAT_Lo, 0x17000, 6129},
18731920 {CAT_Lo, 0x18800, 754},
18741921 {CAT_Lo, 0x1B000, 286},
18751922 {CAT_Lo, 0x1B170, 395},
18981945 {CAT_So, 0x1D200, 65},
18991946 {CAT_Mn, 0x1D242, 2},
19001947 {CAT_So, 0x1D245, 0},
1948 {CAT_No, 0x1D2E0, 19},
19011949 {CAT_So, 0x1D300, 86},
1902 {CAT_No, 0x1D360, 17},
1950 {CAT_No, 0x1D360, 24},
19031951 {CAT_Lu, 0x1D400, 25},
19041952 {CAT_Ll, 0x1D41A, 25},
19051953 {CAT_Lu, 0x1D434, 25},
19942042 {CAT_Mn, 0x1E944, 6},
19952043 {CAT_Nd, 0x1E950, 9},
19962044 {CAT_Po, 0x1E95E, 1},
2045 {CAT_No, 0x1EC71, 58},
2046 {CAT_So, 0x1ECAC, 0},
2047 {CAT_No, 0x1ECAD, 2},
2048 {CAT_Sc, 0x1ECB0, 0},
2049 {CAT_No, 0x1ECB1, 3},
19972050 {CAT_Lo, 0x1EE00, 3},
19982051 {CAT_Lo, 0x1EE05, 26},
19992052 {CAT_Lo, 0x1EE21, 1},
20352088 {CAT_So, 0x1F0C1, 14},
20362089 {CAT_So, 0x1F0D1, 36},
20372090 {CAT_No, 0x1F100, 12},
2038 {CAT_So, 0x1F110, 30},
2039 {CAT_So, 0x1F130, 59},
2091 {CAT_So, 0x1F110, 91},
20402092 {CAT_So, 0x1F170, 60},
20412093 {CAT_So, 0x1F1E6, 28},
20422094 {CAT_So, 0x1F210, 43},
20472099 {CAT_Sk, 0x1F3FB, 4},
20482100 {CAT_So, 0x1F400, 724},
20492101 {CAT_So, 0x1F6E0, 12},
2050 {CAT_So, 0x1F6F0, 8},
2102 {CAT_So, 0x1F6F0, 9},
20512103 {CAT_So, 0x1F700, 115},
2052 {CAT_So, 0x1F780, 84},
2104 {CAT_So, 0x1F780, 88},
20532105 {CAT_So, 0x1F800, 11},
20542106 {CAT_So, 0x1F810, 55},
20552107 {CAT_So, 0x1F850, 9},
20572109 {CAT_So, 0x1F890, 29},
20582110 {CAT_So, 0x1F900, 11},
20592111 {CAT_So, 0x1F910, 46},
2060 {CAT_So, 0x1F940, 12},
2061 {CAT_So, 0x1F950, 27},
2062 {CAT_So, 0x1F980, 23},
2063 {CAT_So, 0x1F9C0, 0},
2064 {CAT_So, 0x1F9D0, 22},
2112 {CAT_So, 0x1F940, 48},
2113 {CAT_So, 0x1F973, 3},
2114 {CAT_So, 0x1F97A, 0},
2115 {CAT_So, 0x1F97C, 38},
2116 {CAT_So, 0x1F9B0, 9},
2117 {CAT_So, 0x1F9C0, 2},
2118 {CAT_So, 0x1F9D0, 47},
2119 {CAT_So, 0x1FA60, 13},
20652120 {CAT_Lo, 0x20000, 42710},
20662121 {CAT_Lo, 0x2A700, 4148},
20672122 {CAT_Lo, 0x2B740, 221},
44 #include <sys/cdefs.h>
55
66 #if __POSIX_VISIBLE >= 200809 || __MISC_VISIBLE || defined (_COMPILING_NEWLIB)
7 #include <xlocale.h>
7 #include <sys/_locale.h>
88 #endif
99
1010 _BEGIN_STD_C
00 /*
1 * Copyright (c) 2016 Joel Sherrill <joel@rtems.org>. All rights reserved.
1 * Copyright (c) 2016,2019 Joel Sherrill <joel@rtems.org>.
2 * All rights reserved.
23 *
34 * Redistribution and use in source and binary forms, with or without
45 * modification, are permitted provided that the following conditions
2627 #define _POSIX_DEVCTL_h_
2728
2829 /*
30 * Nothing in this file should be visible unless _POSIX_26_C_SOURCE is
31 * defined.
32 */
33 #ifdef _POSIX_26_C_SOURCE
34
35 #include <sys/cdefs.h>
36
37 #if defined(__rtems__)
38 /*
39 * The FACE Technical Standard, Edition 3.0 and later require the
40 * definition of the subcommand SOCKCLOSE in <devctl.h>.
41 *
42 * Reference: https://www.opengroup.org/face
43 *
44 * Using 'D' should avoid the letters used by other users of <sys/ioccom.h>
45 */
46 #include <sys/ioccom.h>
47
48 #define SOCKCLOSE _IO('D', 1) /* socket close */
49 #endif
50
51 /*
2952 * The posix_devctl() method is defined by POSIX 1003.26-2003. Aside
3053 * from the single method, it adds the following requirements:
3154 *
3457 * + application must define _POSIX_26_C_SOURCE to use posix_devctl().
3558 * + posix_devctl() is prototyped in <devctl.h>
3659 */
37
38 #ifdef _POSIX_26_C_SOURCE
39 #include <sys/cdefs.h>
40
4160 int posix_devctl(
4261 int fd,
4362 int dcmd,
0 /* Copyright (c) 2017 SiFive Inc. All rights reserved.
1
2 This copyrighted material is made available to anyone wishing to use,
3 modify, copy, or redistribute it subject to the terms and conditions
4 of the FreeBSD License. This program is distributed in the hope that
5 it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
6 including the implied warranties of MERCHANTABILITY or FITNESS FOR
7 A PARTICULAR PURPOSE. A copy of this license is available at
8 http://www.opensource.org/licenses.
9 */
10
11 #ifndef _FENV_H
12 #define _FENV_H
13
14 #include <sys/fenv.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 /* Exception */
21 int feclearexcept(int excepts);
22 int fegetexceptflag(fexcept_t *flagp, int excepts);
23 int feraiseexcept(int excepts);
24 int fesetexceptflag(const fexcept_t *flagp, int excepts);
25 int fetestexcept(int excepts);
26
27 /* Rounding mode */
28 int fegetround(void);
29 int fesetround(int rounding_mode);
30
31 /* Float environment */
32 int fegetenv(fenv_t *envp);
33 int feholdexcept(fenv_t *envp);
34 int fesetenv(const fenv_t *envp);
35 int feupdateenv(const fenv_t *envp);
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif
2121 #include <stddef.h>
2222
2323 #if __BSD_VISIBLE
24 #include <xlocale.h>
24 #include <sys/_locale.h>
2525 #endif
2626
2727 #define __STRINGIFY(a) #a
3131 #include <sys/cdefs.h>
3232 #include <sys/_types.h>
3333 #if __POSIX_VISIBLE >= 200809
34 #include <xlocale.h>
34 #include <sys/_locale.h>
3535 #endif
3636
3737 #ifndef _NL_ITEM_DECLARED
2222
2323 #if __POSIX_VISIBLE >= 200809 || defined (_COMPILING_NEWLIB)
2424
25 #include <xlocale.h>
25 #include <sys/_locale.h>
2626
2727 #define LC_ALL_MASK (1 << LC_ALL)
2828 #define LC_COLLATE_MASK (1 << LC_COLLATE)
408408 #define __SMALL_BITFIELDS /* 16 Bit INT */
409409 #endif
410410
411 #ifdef __PRU__
412 #define __IEEE_LITTLE_ENDIAN
413 #endif
414
411415 #ifdef __RL78__
412416 #define __IEEE_LITTLE_ENDIAN
413417 #define __SMALL_BITFIELDS /* 16 Bit INT */
451455 #define __IEEE_BIG_ENDIAN
452456 #endif
453457
458 #ifdef __AMDGCN__
459 #define __IEEE_LITTLE_ENDIAN
460 #endif
461
462 #ifdef __XTENSA_EL__
463 #define __IEEE_LITTLE_ENDIAN
464 #endif
465
454466 #ifdef __CYGWIN__
455467 #define __OBSOLETE_MATH_DEFAULT 0
456468 #endif
11 _BEGIN_STD_C
22
33 #if defined(__or1k__) || defined(__or1knd__)
4 #define _JBLEN 31 /* 32 GPRs - r0 */
4 /*
5 * r1, r2, r9, r14, r16 .. r30, SR.
6 */
7 #define _JBLEN 13
58 #define _JBTYPE unsigned long
69 #endif
710
234237 #endif
235238
236239 #ifdef __moxie__
237 #define _JBLEN 16
240 #define _JBLEN 10
238241 #endif
239242
240243 #ifdef __CRX__
346349 #ifdef __NIOS2__
347350 #define _JBLEN 40
348351 #define _JBTYPE unsigned long
352 #endif
353
354 #ifdef __PRU__
355 #define _JBLEN 48
356 #define _JBTYPE unsigned int
349357 #endif
350358
351359 #ifdef __RX__
44 #ifndef _SYS_TYPES_H
55 #error "must be included via <sys/types.h>"
66 #endif /* !_SYS_TYPES_H */
7
8 #if defined(__XMK__) && defined(___int64_t_defined)
9 typedef __uint64_t u_quad_t;
10 typedef __int64_t quad_t;
11 typedef quad_t * qaddr_t;
12 #endif
567567 #define __signgam_r(ptr) _REENT_SIGNGAM(ptr)
568568 #endif /* __MISC_VISIBLE || __XSI_VISIBLE */
569569
570 #if __SVID_VISIBLE
571 /* The exception structure passed to the matherr routine. */
572 /* We have a problem when using C++ since `exception' is a reserved
573 name in C++. */
574 #ifdef __cplusplus
575 struct __exception
576 #else
577 struct exception
578 #endif
579 {
580 int type;
581 char *name;
582 double arg1;
583 double arg2;
584 double retval;
585 int err;
586 };
587
588 #ifdef __cplusplus
589 extern int matherr (struct __exception *e);
590 #else
591 extern int matherr (struct exception *e);
592 #endif
593
594 /* Values for the type field of struct exception. */
595
596 #define DOMAIN 1
597 #define SING 2
598 #define OVERFLOW 3
599 #define UNDERFLOW 4
600 #define TLOSS 5
601 #define PLOSS 6
602
603 #endif /* __SVID_VISIBLE */
604
605570 /* Useful constants. */
606571
607572 #if __BSD_VISIBLE || __XSI_VISIBLE
641606 enum __fdlibm_version
642607 {
643608 __fdlibm_ieee = -1,
644 __fdlibm_svid,
645 __fdlibm_xopen,
646609 __fdlibm_posix
647610 };
648611
652615 extern __IMPORT _LIB_VERSION_TYPE _LIB_VERSION;
653616
654617 #define _IEEE_ __fdlibm_ieee
655 #define _SVID_ __fdlibm_svid
656 #define _XOPEN_ __fdlibm_xopen
657618 #define _POSIX_ __fdlibm_posix
658619
659620 #endif /* __BSD_VISIBLE */
0 /*-
1 * SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright (c) 1990, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Margo Seltzer.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ndbm.h 8.1 (Berkeley) 6/2/93
34 * $FreeBSD$ : src/include/ndbm.h
35 * Nov 20 19:45:28 2017 UTC by pfg
36 * SVN Revision 326024
37 */
38
39 #ifndef _NDBM_H_
40 #define _NDBM_H_
41
42 /* #include <db.h> */
43
44 /*
45 * The above header-file is directly included in `newlib/libc/search/ndbm.c`
46 * as `db.h` is present in form of `db_local.h`, inside `newlib/libc/search`
47 * directory and not in `newlib/libc/include`.
48 * Necessary data-types are mentioned in form of forward-declarations
49 */
50
51 /* Map dbm interface onto db(3). */
52 #define DBM_RDONLY O_RDONLY
53
54 /* Flags to dbm_store(). */
55 #define DBM_INSERT 0
56 #define DBM_REPLACE 1
57
58 /*
59 * The db(3) support for ndbm always appends this suffix to the
60 * file name to avoid overwriting the user's original database.
61 */
62 #define DBM_SUFFIX ".db"
63
64 typedef struct {
65 void *dptr;
66 int dsize; /* XXX Should be size_t according to 1003.1-2008. */
67 } datum;
68
69 struct __db; /* Forward-declaration */
70 typedef struct __db DB; /* Forward-declaration */
71 typedef DB DBM;
72 #define dbm_pagfno(a) DBM_PAGFNO_NOT_AVAILABLE
73
74 __BEGIN_DECLS
75 int dbm_clearerr(DBM *);
76 void dbm_close(DBM *);
77 int dbm_delete(DBM *, datum);
78 int dbm_error(DBM *);
79 datum dbm_fetch(DBM *, datum);
80 datum dbm_firstkey(DBM *);
81 datum dbm_nextkey(DBM *);
82 DBM *dbm_open(const char *, int, mode_t);
83 int dbm_store(DBM *, datum, datum, int);
84 #if __BSD_VISIBLE
85 int dbm_dirfno(DBM *);
86 #endif
87 __END_DECLS
88
89 #endif /* !_NDBM_H_ */
9191
9292 #if __GNU_VISIBLE
9393 int sched_getcpu(void);
94
95 /* The following functions should only be declared if the type
96 cpu_set_t is defined through indirect inclusion of sys/cpuset.h,
97 only available on some targets. */
98 #ifdef _SYS_CPUSET_H_
99 int sched_getaffinity (pid_t, size_t, cpu_set_t *);
100 int sched_get_thread_affinity (void *, size_t, cpu_set_t *);
101 int sched_setaffinity (pid_t, size_t, const cpu_set_t *);
102 int sched_set_thread_affinity (void *, size_t, const cpu_set_t *);
103 #endif /* _SYS_CPUSET_H_ */
104
94105 #endif
95106
96107 #ifdef __cplusplus
2626 #endif
2727
2828 #if __GNU_VISIBLE
29 #include <xlocale.h>
29 #include <sys/_locale.h>
3030 #endif
3131
3232 _BEGIN_STD_C
9393 void free (void *) _NOTHROW;
9494 char * getenv (const char *__string);
9595 char * _getenv_r (struct _reent *, const char *__string);
96 #if __GNU_VISIBLE
97 char * secure_getenv (const char *__string);
98 #endif
9699 char * _findenv (const char *, int *);
97100 char * _findenv_r (struct _reent *, const char *, int *);
98101 #if __POSIX_VISIBLE >= 200809
1616 #include <stddef.h>
1717
1818 #if __POSIX_VISIBLE >= 200809
19 #include <xlocale.h>
19 #include <sys/_locale.h>
2020 #endif
2121
2222 #if __BSD_VISIBLE
3232 #include <sys/_types.h>
3333
3434 #if __POSIX_VISIBLE >= 200809
35 #include <xlocale.h>
35 #include <sys/_locale.h>
3636 #endif
3737
3838 #ifndef _SIZE_T_DECLARED
3434 #if defined (__CYGWIN__)
3535 #define _FTMPFILE 0x800000
3636 #define _FNOATIME 0x1000000
37 #define _FPATH 0x2000000
3738 #endif
3839
3940 #define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
7980 #if __GNU_VISIBLE
8081 #define O_TMPFILE _FTMPFILE
8182 #define O_NOATIME _FNOATIME
83 #define O_PATH _FPATH
8284 #endif
8385 #endif
8486
163165 #define AT_SYMLINK_NOFOLLOW 2
164166 #define AT_SYMLINK_FOLLOW 4
165167 #define AT_REMOVEDIR 8
168 #if __GNU_VISIBLE
169 #define AT_EMPTY_PATH 16
170 #endif
166171 #endif
167172
168173 #if __BSD_VISIBLE
3636 #pragma push_macro("char")
3737 #pragma push_macro("short")
3838 #pragma push_macro("__int20")
39 #pragma push_macro("__int20__")
3940 #pragma push_macro("int")
4041 #pragma push_macro("long")
4142 #undef signed
4445 #undef short
4546 #undef int
4647 #undef __int20
48 #undef __int20__
4749 #undef long
4850 #define signed +0
4951 #define unsigned +0
5052 #define char +0
5153 #define short +1
5254 #define __int20 +2
55 #define __int20__ +2
5356 #define int +2
5457 #define long +4
5558 #if (__INTPTR_TYPE__ == 8 || __INTPTR_TYPE__ == 10)
188191 #pragma pop_macro("char")
189192 #pragma pop_macro("short")
190193 #pragma pop_macro("__int20")
194 #pragma pop_macro("__int20__")
191195 #pragma pop_macro("int")
192196 #pragma pop_macro("long")
193197
0 /* Definition of opaque POSIX-1.2008 type locale_t for userspace. */
1
2 #ifndef _SYS__LOCALE_H
3 #define _SYS__LOCALE_H
4
5 #include <newlib.h>
6 #include <sys/config.h>
7
8 struct __locale_t;
9 typedef struct __locale_t *locale_t;
10
11 #endif /* _SYS__LOCALE_H */
00 /*-
1 * SPDX-License-Identifier: BSD-3-Clause
2 *
13 * Copyright (c) 1982, 1986, 1993
24 * The Regents of the University of California. All rights reserved.
35 *
911 * 2. Redistributions in binary form must reproduce the above copyright
1012 * notice, this list of conditions and the following disclaimer in the
1113 * documentation and/or other materials provided with the distribution.
12 * 4. Neither the name of the University nor the names of its contributors
14 * 3. Neither the name of the University nor the names of its contributors
1315 * may be used to endorse or promote products derived from this software
1416 * without specific prior written permission.
1517 *
2729 *
2830 * @(#)time.h 8.5 (Berkeley) 5/4/95
2931 * from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
30 * $FreeBSD$
32 * $FreeBSD: head/sys/sys/_timespec.h 326023 2017-11-20 19:43:44Z pfg $
3133 */
3234
3335 #ifndef _SYS__TIMESPEC_H_
00 /*-
1 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
2 *
13 * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
24 * All rights reserved.
35 *
2224 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2325 * SUCH DAMAGE.
2426 *
25 * $FreeBSD$
27 * $FreeBSD: head/sys/sys/_timeval.h 326256 2017-11-27 15:01:59Z pfg $
2628 */
2729
2830 #ifndef _SYS__TIMEVAL_H_
5254 time_t tv_sec; /* seconds */
5355 suseconds_t tv_usec; /* and microseconds */
5456 };
55
56 #if __BSD_VISIBLE
57 #ifndef _KERNEL /* NetBSD/OpenBSD compatible interfaces */
58
59 #define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
60 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
61 #define timercmp(tvp, uvp, cmp) \
62 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
63 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
64 ((tvp)->tv_sec cmp (uvp)->tv_sec))
65 #define timeradd(tvp, uvp, vvp) \
66 do { \
67 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
68 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
69 if ((vvp)->tv_usec >= 1000000) { \
70 (vvp)->tv_sec++; \
71 (vvp)->tv_usec -= 1000000; \
72 } \
73 } while (0)
74 #define timersub(tvp, uvp, vvp) \
75 do { \
76 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
77 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
78 if ((vvp)->tv_usec < 0) { \
79 (vvp)->tv_sec--; \
80 (vvp)->tv_usec += 1000000; \
81 } \
82 } while (0)
83 #endif
84 #endif /* __BSD_VISIBLE */
85
8657 #endif /* _TIMEVAL_DEFINED */
8758
8859 #endif /* !_SYS__TIMEVAL_H_ */
1818 #ifndef _SYS__TYPES_H
1919 #define _SYS__TYPES_H
2020
21 #define __need_size_t
22 #define __need_wint_t
23 #include <stddef.h>
2124 #include <newlib.h>
2225 #include <sys/config.h>
2326 #include <machine/_types.h>
24 #include <sys/lock.h>
2527
2628 #ifndef __machine_blkcnt_t_defined
2729 typedef long __blkcnt_t;
153155 #endif
154156
155157 typedef _ssize_t __ssize_t;
156
157 #define __need_wint_t
158 #include <stddef.h>
159158
160159 #ifndef __machine_mbstate_t_defined
161160 /* Conversion state information. */
170169 } _mbstate_t;
171170 #endif
172171
173 #ifndef __machine_flock_t_defined
174 typedef _LOCK_RECURSIVE_T _flock_t;
175 #endif
176
177172 #ifndef __machine_iconv_t_defined
178173 /* Iconv descriptor type */
179174 typedef void *_iconv_t;
214209 typedef long __suseconds_t; /* microseconds (signed) */
215210 typedef unsigned long __useconds_t; /* microseconds (unsigned) */
216211
217 #ifdef __GNUCLIKE_BUILTIN_VARARGS
212 /*
213 * Must be identical to the __GNUCLIKE_BUILTIN_VAALIST definition in
214 * <sys/cdefs.h>. The <sys/cdefs.h> must not be included here to avoid cyclic
215 * header dependencies.
216 */
217 #if __GNUC_MINOR__ > 95 || __GNUC__ >= 3
218218 typedef __builtin_va_list __va_list;
219219 #else
220220 typedef char * __va_list;
221 #endif /* __GNUCLIKE_BUILTIN_VARARGS */
221 #endif
222222
223223 #endif /* _SYS__TYPES_H */
55
66 #ifdef __aarch64__
77 #define MALLOC_ALIGNMENT 16
8 #endif
9
10 #ifdef __AMDGCN__
11 #define __DYNAMIC_REENT__
812 #endif
913
1014 /* exceptions first */
520520 /* #define _XOPEN_UNIX -1 */
521521 #endif /* __XSI_VISIBLE */
522522
523 /* The value corresponds to UNICODE version 5.2, which is the current
524 state of newlib's wide char conversion functions. */
525 #define __STDC_ISO_10646__ 200910L
523 /*
524 * newlib's wide char conversion functions were updated on
525 * 2019-01-12
526 * to UNICODE version:
527 * 11.0.0 released 2018-06-05
528 */
529 #define __STDC_ISO_10646__ 201806L
526530
527531 #endif /* __CYGWIN__ */
528532
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 (c) Copyright 2019 Craig Howlang <craig.howland@caci.com>
3 All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8
9 1. Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer.
11
12 2. Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 #ifndef _SYS_FENV_H_
30 #define _SYS_FENV_H_
31
32 /*******************************************************************************
33 * THIS FILE IS A TEMPLATE, INTENDED TO BE USED AS A STARTING POINT FOR
34 * TARGET-SPECIFIC FLOATING-POINT IMPLEMENTATIONS. NOTES BELOW HIGHLIGHT THE
35 * BASICS OF WHAT NEEDS TO BE DEFINED. THE DEFAULT IMPLEMTATION IS
36 * DEGENERATE, WITH ALL FUNCTIONS RETURNING ERROR AND NO EXCEPTIONS AND NO
37 * ROUNDING MODES DEFINED (SINCE NONE ARE SUPPORTED).
38 * THE MACRO VALUES ARE EXAMPLES ONLY, ALTHOUGH TAKEN FROM A WORKING
39 * IMPLEMENTATION.
40 * REMOVE THIS NOTICE WHEN COPYING TO A REAL IMPLEMENTATION, REPLACING IT WITH
41 * ANY TARGET-SPECIFIC NOTES OF INTEREST. THE FENV FUNCTION MAN PAGES POINT TO
42 * THIS FILE AS A MEANS OF DETERMINING A FUNCTIONAL VS. NON-FUNCTIONAL
43 * IMPLEMENTATION.
44 ******************************************************************************/
45 /*
46 * The following macros are to be defined if the respective exception is
47 * supported by the implementation, each with a unique bit mask:
48 *
49 * FE_DIVBYZERO
50 * FE_INEXACT
51 * FE_INVALID
52 * FE_OVERFLOW
53 * FE_UNDERFLOW
54 *
55 * Other implementation-specific exceptions may be defined, and must start
56 * with FE_ followed by a capital letter.
57 *
58 * FE_ALL_EXCEPT must be defined as the logical OR of all exceptions.
59 */
60 //#define FE_DIVBYZERO 0x00000001
61 //#define FE_INEXACT 0x00000002
62 //#define FE_INVALID 0x00000004
63 //#define FE_OVERFLOW 0x00000008
64 //#define FE_UNDERFLOW 0x00000010
65
66 //#define FE_ALL_EXCEPT \
67 //(FE_DIVBYZERO|FE_INEXACT|FE_INVALID|FE_OVERFLOW|FE_UNDERFLOW)
68 #define FE_ALL_EXCEPT 0 /* NONE SUPPORTED IN PLACEHOLDER TEMPLATE */
69
70 /*
71 * The following macros are to be defined if the respective rounding
72 * direction is supported by the implementation via the fegetround() and
73 * fesetround() functions, each with a unique positive value.
74 *
75 * FE_DOWNWARD
76 * FE_TONEAREST
77 * FE_TOWARDZERO
78 * FE_UPWARD
79 *
80 * Other implementation-specific rounding modes may be defined, and must start
81 * with FE_ followed by a capital letter.
82 */
83 //#define FE_DOWNWARD 1
84 //#define FE_TONEAREST 2
85 //#define FE_TOWARDZERO 3
86 //#define FE_UPWARD 4
87
88 /*
89 * The following typedefs are required. These should be defined properly
90 * to support the architecture specific implementation. See the C and
91 * POSIX standards for details:
92 *
93 * fenv_t
94 * fexcept_t
95 */
96 typedef int fenv_t;
97 typedef int fexcept_t;
98
99 /*
100 * Lastly, a FE_DFL_ENV macro must be defined, representing a pointer
101 * to const fenv_t that contains the value of the default floating point
102 * environment.
103 *
104 * NOTE: The extern'ed variable fe_default_env_p is an implementation
105 * detail of this stub. FE_DFL_ENV must point to an instance of
106 * fenv_t with the default fenv_t. The format of fenv_t and where
107 * FE_DFL_ENV is are implementation specific.
108 */
109 extern const fenv_t *_fe_dfl_env;
110 #define FE_DFL_ENV _fe_dfl_env
111
112 #endif /* _SYS_FENV_H_ */
2727
2828 #if !defined( __Long)
2929 #include <sys/types.h>
30 #endif
31
32 #ifndef __machine_flock_t_defined
33 #include <sys/lock.h>
34 typedef _LOCK_RECURSIVE_T _flock_t;
3035 #endif
3136
3237 #ifndef __Long
492497
493498 #endif /* _REENT_GLOBAL_STDIO_STREAMS */
494499
495 /* Only add assert() calls if we are specified to debug. */
496 #ifdef _REENT_CHECK_DEBUG
500 /* Specify how to handle reent_check malloc failures. */
501 #ifdef _REENT_CHECK_VERIFY
497502 #include <assert.h>
498 #define __reent_assert(x) assert(x)
503 #define __reent_assert(x) ((x) ? (void)0 : __assert_func(__FILE__, __LINE__, (char *)0, "REENT malloc succeeded"))
499504 #else
500505 #define __reent_assert(x) ((void)0)
501506 #endif
3333 gid_t st_gid;
3434 dev_t st_rdev;
3535 off_t st_size;
36 #if defined(__rtems__)
36 #if defined(__svr4__) && !defined(__PPC__) && !defined(__sun__)
37 time_t st_atime;
38 time_t st_mtime;
39 time_t st_ctime;
40 #else
3741 struct timespec st_atim;
3842 struct timespec st_mtim;
3943 struct timespec st_ctim;
4044 blksize_t st_blksize;
4145 blkcnt_t st_blocks;
42 #else
43 /* SysV/sco doesn't have the rest... But Solaris, eabi does. */
44 #if defined(__svr4__) && !defined(__PPC__) && !defined(__sun__)
45 time_t st_atime;
46 time_t st_mtime;
47 time_t st_ctime;
48 #else
49 time_t st_atime;
50 long st_spare1;
51 time_t st_mtime;
52 long st_spare2;
53 time_t st_ctime;
54 long st_spare3;
55 blksize_t st_blksize;
56 blkcnt_t st_blocks;
57 long st_spare4[2];
46 #if !defined(__rtems__)
47 long st_spare4[2];
5848 #endif
5949 #endif
6050 };
6151
62 #if defined(__rtems__)
52 #if !(defined(__svr4__) && !defined(__PPC__) && !defined(__sun__)) && !defined(__cris__)
6353 #define st_atime st_atim.tv_sec
6454 #define st_ctime st_ctim.tv_sec
6555 #define st_mtime st_mtim.tv_sec
3232 * SUCH DAMAGE.
3333 *
3434 * @(#)time.h 8.5 (Berkeley) 5/4/95
35 * $FreeBSD: head/sys/sys/time.h 340664 2018-11-20 07:11:23Z imp $
35 * $FreeBSD: head/sys/sys/time.h 346176 2019-04-13 04:46:35Z imp $
3636 */
3737
3838 #ifndef _SYS_TIME_H_
190190 static __inline int64_t
191191 sbttons(sbintime_t _sbt)
192192 {
193
194 return ((1000000000 * _sbt) >> 32);
193 uint64_t ns;
194
195 ns = _sbt;
196 if (ns >= SBT_1S)
197 ns = (ns >> 32) * 1000000000;
198 else
199 ns = 0;
200
201 return (ns + (1000000000 * (_sbt & 0xffffffffu) >> 32));
195202 }
196203
197204 static __inline sbintime_t
332339
333340 return (((sbintime_t)_tv.tv_sec << 32) + ustosbt(_tv.tv_usec));
334341 }
342
343 /* Operations on timespecs */
344 #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0)
345 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec)
346 #define timespeccmp(tvp, uvp, cmp) \
347 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
348 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
349 ((tvp)->tv_sec cmp (uvp)->tv_sec))
350
351 #define timespecadd(tsp, usp, vsp) \
352 do { \
353 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
354 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
355 if ((vsp)->tv_nsec >= 1000000000L) { \
356 (vsp)->tv_sec++; \
357 (vsp)->tv_nsec -= 1000000000L; \
358 } \
359 } while (0)
360 #define timespecsub(tsp, usp, vsp) \
361 do { \
362 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
363 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
364 if ((vsp)->tv_nsec < 0) { \
365 (vsp)->tv_sec--; \
366 (vsp)->tv_nsec += 1000000000L; \
367 } \
368 } while (0)
369
370 #ifndef _KERNEL /* NetBSD/OpenBSD compatible interfaces */
371
372 #define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
373 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
374 #define timercmp(tvp, uvp, cmp) \
375 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
376 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
377 ((tvp)->tv_sec cmp (uvp)->tv_sec))
378 #define timeradd(tvp, uvp, vvp) \
379 do { \
380 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
381 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
382 if ((vvp)->tv_usec >= 1000000) { \
383 (vvp)->tv_sec++; \
384 (vvp)->tv_usec -= 1000000; \
385 } \
386 } while (0)
387 #define timersub(tvp, uvp, vvp) \
388 do { \
389 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
390 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
391 if ((vvp)->tv_usec < 0) { \
392 (vvp)->tv_sec--; \
393 (vvp)->tv_usec += 1000000; \
394 } \
395 } while (0)
396 #endif
335397 #endif /* __BSD_VISIBLE */
336398
337399 /*
00 /* $NetBSD: tree.h,v 1.8 2004/03/28 19:38:30 provos Exp $ */
11 /* $OpenBSD: tree.h,v 1.7 2002/10/17 21:51:54 art Exp $ */
2 /* $FreeBSD$ */
2 /* $FreeBSD: head/sys/sys/tree.h 347360 2019-05-08 18:47:00Z trasz $ */
33
44 /*-
5 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
6 *
57 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
68 * All rights reserved.
79 *
8789 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
8890 (head)->sph_root = tmp; \
8991 } while (/*CONSTCOND*/ 0)
90
92
9193 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \
9294 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
9395 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
122124 struct type *name##_SPLAY_REMOVE(struct name *, struct type *); \
123125 \
124126 /* Finds the node with the same key as elm */ \
125 static __inline struct type * \
127 static __unused __inline struct type * \
126128 name##_SPLAY_FIND(struct name *head, struct type *elm) \
127129 { \
128130 if (SPLAY_EMPTY(head)) \
133135 return (NULL); \
134136 } \
135137 \
136 static __inline struct type * \
138 static __unused __inline struct type * \
137139 name##_SPLAY_NEXT(struct name *head, struct type *elm) \
138140 { \
139141 name##_SPLAY(head, elm); \
147149 return (elm); \
148150 } \
149151 \
150 static __inline struct type * \
152 static __unused __inline struct type * \
151153 name##_SPLAY_MIN_MAX(struct name *head, int val) \
152154 { \
153155 name##_SPLAY_MINMAX(head, val); \
3535 #if ___int64_t_defined
3636 typedef __uint64_t u_int64_t;
3737 #endif
38 typedef int register_t;
38 typedef __intptr_t register_t;
3939 #define __BIT_TYPES_DEFINED__ 1
4040
41 #if defined(__rtems__) || defined(__XMK__)
42 /*
43 * The following section is RTEMS specific and is needed to more
44 * closely match the types defined in the BSD sys/types.h.
45 * This is needed to let the RTEMS/BSD TCP/IP stack compile.
46 */
47
48 /* deprecated */
49 #if ___int64_t_defined
50 typedef __uint64_t u_quad_t;
51 typedef __int64_t quad_t;
52 typedef quad_t * qaddr_t;
53 #endif
54
55 #endif /* __rtems__ || __XMK__ */
56
5741 #ifndef __need_inttypes
5842
5943 #define _SYS_TYPES_H
60 /* <stddef.h> must be before <sys/_types.h> for __size_t considerations */
61 #include <stddef.h>
6244 #include <sys/_types.h>
6345 #include <sys/_stdint.h>
6446
7759 typedef __uint16_t in_port_t;
7860 #define _IN_PORT_T_DECLARED
7961 #endif
62
63 typedef __uintptr_t u_register_t;
8064 #endif /* __BSD_VISIBLE */
8165
8266 #if __MISC_VISIBLE
10084 #endif
10185 #define _BSDTYPES_DEFINED
10286 #endif
103 #endif /*__BSD_VISIBLE || __CYGWIN__ */
87 #endif /* __MISC_VISIBLE */
10488
10589 #if __MISC_VISIBLE
10690 typedef unsigned short ushort; /* System V compatibility */
2828 #include <sys/timespec.h>
2929
3030 #if __POSIX_VISIBLE >= 200809
31 #include <xlocale.h>
31 #include <sys/_locale.h>
3232 #endif
3333
3434 _BEGIN_STD_C
248248 /* thread shall not have a CPU-time clock */
249249 /* accessible. */
250250
251 /* Flag indicating time is "absolute" with respect to the clock
252 associated with a time. Value 4 is historic. */
253
254 #define TIMER_ABSTIME 4
255
251256 /* Manifest Constants, P1003.1b-1993, p. 262 */
252257
253258 #if __GNU_VISIBLE
255260 #endif
256261
257262 #define CLOCK_REALTIME ((clockid_t) 1)
258
259 /* Flag indicating time is "absolute" with respect to the clock
260 associated with a time. */
261
262 #define TIMER_ABSTIME 4
263263
264264 /* Manifest Constants, P1003.4b/D8, p. 55 */
265265
286286 #if defined(_POSIX_MONOTONIC_CLOCK)
287287
288288 /* The identifier for the system-wide monotonic clock, which is defined
289 * as a clock whose value cannot be set via clock_settime() and which
290 * cannot have backward clock jumps. */
289 * as a clock whose value cannot be set via clock_settime() and which
290 * cannot have backward clock jumps. */
291291
292292 #define CLOCK_MONOTONIC ((clockid_t) 4)
293293
294 #endif
295
294296 #if __GNU_VISIBLE
295297
296298 #define CLOCK_MONOTONIC_RAW ((clockid_t) 5)
299301
300302 #define CLOCK_BOOTTIME ((clockid_t) 7)
301303
302 #endif
304 #define CLOCK_REALTIME_ALARM ((clockid_t) 8)
305
306 #define CLOCK_BOOTTIME_ALARM ((clockid_t) 9)
303307
304308 #endif
305309
6363 #endif
6464
6565 #if __POSIX_VISIBLE >= 200809
66 #include <xlocale.h>
66 #include <sys/_locale.h>
6767 #endif
6868
6969 _BEGIN_STD_C
77 #include <stddef.h>
88
99 #if __POSIX_VISIBLE >= 200809
10 #include <xlocale.h>
10 #include <sys/_locale.h>
1111 #endif
1212
1313 #ifndef WEOF
+0
-12
newlib/libc/include/xlocale.h less more
0 /* Definition of opaque POSIX-1.2008 type locale_t for userspace. */
1
2 #ifndef _XLOCALE_H
3 #define _XLOCALE_H
4
5 #include <newlib.h>
6 #include <sys/config.h>
7
8 struct __locale_t;
9 typedef struct __locale_t *locale_t;
10
11 #endif /* _XLOCALE_H */
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
0 ## Process this file with automake to generate Makefile.in
1
2 AUTOMAKE_OPTIONS = cygnus
3
4 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
5
6 AM_CCASFLAGS = $(INCLUDES)
7
8 noinst_LIBRARIES = lib.a
9
10 lib_a_SOURCES = abort.c exit.c atexit.c malloc_support.c getreent.c signal.c
11 lib_a_CFLAGS = $(AM_CFLAGS)
12
13 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
14 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 am__make_dryrun = \
19 { \
20 am__dry=no; \
21 case $$MAKEFLAGS in \
22 *\\[\ \ ]*) \
23 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
25 *) \
26 for am__flg in $$MAKEFLAGS; do \
27 case $$am__flg in \
28 *=*|--*) ;; \
29 *n*) am__dry=yes; break;; \
30 esac; \
31 done;; \
32 esac; \
33 test $$am__dry = yes; \
34 }
35 pkgdatadir = $(datadir)/@PACKAGE@
36 pkgincludedir = $(includedir)/@PACKAGE@
37 pkglibdir = $(libdir)/@PACKAGE@
38 pkglibexecdir = $(libexecdir)/@PACKAGE@
39 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
40 install_sh_DATA = $(install_sh) -c -m 644
41 install_sh_PROGRAM = $(install_sh) -c
42 install_sh_SCRIPT = $(install_sh) -c
43 INSTALL_HEADER = $(INSTALL_DATA)
44 transform = $(program_transform_name)
45 NORMAL_INSTALL = :
46 PRE_INSTALL = :
47 POST_INSTALL = :
48 NORMAL_UNINSTALL = :
49 PRE_UNINSTALL = :
50 POST_UNINSTALL = :
51 build_triplet = @build@
52 host_triplet = @host@
53 subdir = .
54 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
55 $(top_srcdir)/configure $(am__configure_deps) \
56 $(srcdir)/../../../../mkinstalldirs
57 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
58 am__aclocal_m4_deps = $(top_srcdir)/../../../acinclude.m4 \
59 $(top_srcdir)/configure.in
60 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
61 $(ACLOCAL_M4)
62 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
63 configure.lineno config.status.lineno
64 mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
65 CONFIG_CLEAN_FILES =
66 CONFIG_CLEAN_VPATH_FILES =
67 LIBRARIES = $(noinst_LIBRARIES)
68 ARFLAGS = cru
69 lib_a_AR = $(AR) $(ARFLAGS)
70 lib_a_LIBADD =
71 am_lib_a_OBJECTS = lib_a-abort.$(OBJEXT) lib_a-exit.$(OBJEXT) \
72 lib_a-atexit.$(OBJEXT) lib_a-malloc_support.$(OBJEXT) \
73 lib_a-getreent.$(OBJEXT) lib_a-signal.$(OBJEXT)
74 lib_a_OBJECTS = $(am_lib_a_OBJECTS)
75 DEFAULT_INCLUDES = -I.@am__isrc@
76 depcomp =
77 am__depfiles_maybe =
78 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
79 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
80 CCLD = $(CC)
81 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
82 SOURCES = $(lib_a_SOURCES)
83 am__can_run_installinfo = \
84 case $$AM_UPDATE_INFO_DIR in \
85 n|no|NO) false;; \
86 *) (install-info --version) >/dev/null 2>&1;; \
87 esac
88 ETAGS = etags
89 CTAGS = ctags
90 ACLOCAL = @ACLOCAL@
91 AMTAR = @AMTAR@
92 AR = @AR@
93 AS = @AS@
94 AUTOCONF = @AUTOCONF@
95 AUTOHEADER = @AUTOHEADER@
96 AUTOMAKE = @AUTOMAKE@
97 AWK = @AWK@
98 CC = @CC@
99 CCAS = @CCAS@
100 CCASFLAGS = @CCASFLAGS@
101 CCDEPMODE = @CCDEPMODE@
102 CYGPATH_W = @CYGPATH_W@
103 DEFS = @DEFS@
104 DEPDIR = @DEPDIR@
105 ECHO_C = @ECHO_C@
106 ECHO_N = @ECHO_N@
107 ECHO_T = @ECHO_T@
108 INSTALL = @INSTALL@
109 INSTALL_DATA = @INSTALL_DATA@
110 INSTALL_PROGRAM = @INSTALL_PROGRAM@
111 INSTALL_SCRIPT = @INSTALL_SCRIPT@
112 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
113 LDFLAGS = @LDFLAGS@
114 LIBOBJS = @LIBOBJS@
115 LIBS = @LIBS@
116 LTLIBOBJS = @LTLIBOBJS@
117 MAINT = @MAINT@
118 MAKEINFO = @MAKEINFO@
119 MKDIR_P = @MKDIR_P@
120 NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
121 NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
122 OBJEXT = @OBJEXT@
123 PACKAGE = @PACKAGE@
124 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
125 PACKAGE_NAME = @PACKAGE_NAME@
126 PACKAGE_STRING = @PACKAGE_STRING@
127 PACKAGE_TARNAME = @PACKAGE_TARNAME@
128 PACKAGE_URL = @PACKAGE_URL@
129 PACKAGE_VERSION = @PACKAGE_VERSION@
130 PATH_SEPARATOR = @PATH_SEPARATOR@
131 RANLIB = @RANLIB@
132 READELF = @READELF@
133 SET_MAKE = @SET_MAKE@
134 SHELL = @SHELL@
135 STRIP = @STRIP@
136 VERSION = @VERSION@
137 abs_builddir = @abs_builddir@
138 abs_srcdir = @abs_srcdir@
139 abs_top_builddir = @abs_top_builddir@
140 abs_top_srcdir = @abs_top_srcdir@
141 aext = @aext@
142 am__include = @am__include@
143 am__leading_dot = @am__leading_dot@
144 am__quote = @am__quote@
145 am__tar = @am__tar@
146 am__untar = @am__untar@
147 bindir = @bindir@
148 build = @build@
149 build_alias = @build_alias@
150 build_cpu = @build_cpu@
151 build_os = @build_os@
152 build_vendor = @build_vendor@
153 builddir = @builddir@
154 datadir = @datadir@
155 datarootdir = @datarootdir@
156 docdir = @docdir@
157 dvidir = @dvidir@
158 exec_prefix = @exec_prefix@
159 host = @host@
160 host_alias = @host_alias@
161 host_cpu = @host_cpu@
162 host_os = @host_os@
163 host_vendor = @host_vendor@
164 htmldir = @htmldir@
165 includedir = @includedir@
166 infodir = @infodir@
167 install_sh = @install_sh@
168 libdir = @libdir@
169 libexecdir = @libexecdir@
170 libm_machine_dir = @libm_machine_dir@
171 localedir = @localedir@
172 localstatedir = @localstatedir@
173 lpfx = @lpfx@
174 machine_dir = @machine_dir@
175 mandir = @mandir@
176 mkdir_p = @mkdir_p@
177 newlib_basedir = @newlib_basedir@
178 oext = @oext@
179 oldincludedir = @oldincludedir@
180 pdfdir = @pdfdir@
181 prefix = @prefix@
182 program_transform_name = @program_transform_name@
183 psdir = @psdir@
184 sbindir = @sbindir@
185 sharedstatedir = @sharedstatedir@
186 srcdir = @srcdir@
187 sys_dir = @sys_dir@
188 sysconfdir = @sysconfdir@
189 target_alias = @target_alias@
190 top_build_prefix = @top_build_prefix@
191 top_builddir = @top_builddir@
192 top_srcdir = @top_srcdir@
193 AUTOMAKE_OPTIONS = cygnus
194 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
195 AM_CCASFLAGS = $(INCLUDES)
196 noinst_LIBRARIES = lib.a
197 lib_a_SOURCES = abort.c exit.c atexit.c malloc_support.c getreent.c signal.c
198 lib_a_CFLAGS = $(AM_CFLAGS)
199 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
200 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
201 all: all-am
202
203 .SUFFIXES:
204 .SUFFIXES: .c .o .obj
205 am--refresh: Makefile
206 @:
207 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
208 @for dep in $?; do \
209 case '$(am__configure_deps)' in \
210 *$$dep*) \
211 echo ' cd $(srcdir) && $(AUTOMAKE) --cygnus'; \
212 $(am__cd) $(srcdir) && $(AUTOMAKE) --cygnus \
213 && exit 0; \
214 exit 1;; \
215 esac; \
216 done; \
217 echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile'; \
218 $(am__cd) $(top_srcdir) && \
219 $(AUTOMAKE) --cygnus Makefile
220 .PRECIOUS: Makefile
221 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
222 @case '$?' in \
223 *config.status*) \
224 echo ' $(SHELL) ./config.status'; \
225 $(SHELL) ./config.status;; \
226 *) \
227 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
228 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
229 esac;
230
231 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
232 $(SHELL) ./config.status --recheck
233
234 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
235 $(am__cd) $(srcdir) && $(AUTOCONF)
236 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
237 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
238 $(am__aclocal_m4_deps):
239
240 clean-noinstLIBRARIES:
241 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
242 lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES)
243 -rm -f lib.a
244 $(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
245 $(RANLIB) lib.a
246
247 mostlyclean-compile:
248 -rm -f *.$(OBJEXT)
249
250 distclean-compile:
251 -rm -f *.tab.c
252
253 .c.o:
254 $(COMPILE) -c $<
255
256 .c.obj:
257 $(COMPILE) -c `$(CYGPATH_W) '$<'`
258
259 lib_a-abort.o: abort.c
260 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-abort.o `test -f 'abort.c' || echo '$(srcdir)/'`abort.c
261
262 lib_a-abort.obj: abort.c
263 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-abort.obj `if test -f 'abort.c'; then $(CYGPATH_W) 'abort.c'; else $(CYGPATH_W) '$(srcdir)/abort.c'; fi`
264
265 lib_a-exit.o: exit.c
266 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-exit.o `test -f 'exit.c' || echo '$(srcdir)/'`exit.c
267
268 lib_a-exit.obj: exit.c
269 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-exit.obj `if test -f 'exit.c'; then $(CYGPATH_W) 'exit.c'; else $(CYGPATH_W) '$(srcdir)/exit.c'; fi`
270
271 lib_a-atexit.o: atexit.c
272 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-atexit.o `test -f 'atexit.c' || echo '$(srcdir)/'`atexit.c
273
274 lib_a-atexit.obj: atexit.c
275 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-atexit.obj `if test -f 'atexit.c'; then $(CYGPATH_W) 'atexit.c'; else $(CYGPATH_W) '$(srcdir)/atexit.c'; fi`
276
277 lib_a-malloc_support.o: malloc_support.c
278 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-malloc_support.o `test -f 'malloc_support.c' || echo '$(srcdir)/'`malloc_support.c
279
280 lib_a-malloc_support.obj: malloc_support.c
281 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-malloc_support.obj `if test -f 'malloc_support.c'; then $(CYGPATH_W) 'malloc_support.c'; else $(CYGPATH_W) '$(srcdir)/malloc_support.c'; fi`
282
283 lib_a-getreent.o: getreent.c
284 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-getreent.o `test -f 'getreent.c' || echo '$(srcdir)/'`getreent.c
285
286 lib_a-getreent.obj: getreent.c
287 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-getreent.obj `if test -f 'getreent.c'; then $(CYGPATH_W) 'getreent.c'; else $(CYGPATH_W) '$(srcdir)/getreent.c'; fi`
288
289 lib_a-signal.o: signal.c
290 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-signal.o `test -f 'signal.c' || echo '$(srcdir)/'`signal.c
291
292 lib_a-signal.obj: signal.c
293 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-signal.obj `if test -f 'signal.c'; then $(CYGPATH_W) 'signal.c'; else $(CYGPATH_W) '$(srcdir)/signal.c'; fi`
294
295 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
296 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
297 unique=`for i in $$list; do \
298 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
299 done | \
300 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
301 END { if (nonempty) { for (i in files) print i; }; }'`; \
302 mkid -fID $$unique
303 tags: TAGS
304
305 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
306 $(TAGS_FILES) $(LISP)
307 set x; \
308 here=`pwd`; \
309 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
310 unique=`for i in $$list; do \
311 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
312 done | \
313 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
314 END { if (nonempty) { for (i in files) print i; }; }'`; \
315 shift; \
316 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
317 test -n "$$unique" || unique=$$empty_fix; \
318 if test $$# -gt 0; then \
319 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
320 "$$@" $$unique; \
321 else \
322 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
323 $$unique; \
324 fi; \
325 fi
326 ctags: CTAGS
327 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
328 $(TAGS_FILES) $(LISP)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 test -z "$(CTAGS_ARGS)$$unique" \
336 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
337 $$unique
338
339 GTAGS:
340 here=`$(am__cd) $(top_builddir) && pwd` \
341 && $(am__cd) $(top_srcdir) \
342 && gtags -i $(GTAGS_ARGS) "$$here"
343
344 distclean-tags:
345 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
346 check-am:
347 check: check-am
348 all-am: Makefile $(LIBRARIES)
349 installdirs:
350 install: install-am
351 install-exec: install-exec-am
352 install-data: install-data-am
353 uninstall: uninstall-am
354
355 install-am: all-am
356 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
357
358 installcheck: installcheck-am
359 install-strip:
360 if test -z '$(STRIP)'; then \
361 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
362 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
363 install; \
364 else \
365 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
366 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
367 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
368 fi
369 mostlyclean-generic:
370
371 clean-generic:
372
373 distclean-generic:
374 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
375 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
376
377 maintainer-clean-generic:
378 @echo "This command is intended for maintainers to use"
379 @echo "it deletes files that may require special tools to rebuild."
380 clean: clean-am
381
382 clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
383
384 distclean: distclean-am
385 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
386 -rm -f Makefile
387 distclean-am: clean-am distclean-compile distclean-generic \
388 distclean-tags
389
390 dvi: dvi-am
391
392 dvi-am:
393
394 html: html-am
395
396 html-am:
397
398 info: info-am
399
400 info-am:
401
402 install-data-am:
403
404 install-dvi: install-dvi-am
405
406 install-dvi-am:
407
408 install-exec-am:
409
410 install-html: install-html-am
411
412 install-html-am:
413
414 install-info: install-info-am
415
416 install-info-am:
417
418 install-man:
419
420 install-pdf: install-pdf-am
421
422 install-pdf-am:
423
424 install-ps: install-ps-am
425
426 install-ps-am:
427
428 installcheck-am:
429
430 maintainer-clean: maintainer-clean-am
431 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
432 -rm -rf $(top_srcdir)/autom4te.cache
433 -rm -f Makefile
434 maintainer-clean-am: distclean-am maintainer-clean-generic
435
436 mostlyclean: mostlyclean-am
437
438 mostlyclean-am: mostlyclean-compile mostlyclean-generic
439
440 pdf: pdf-am
441
442 pdf-am:
443
444 ps: ps-am
445
446 ps-am:
447
448 uninstall-am:
449
450 .MAKE: install-am install-strip
451
452 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
453 clean-generic clean-noinstLIBRARIES ctags distclean \
454 distclean-compile distclean-generic distclean-tags dvi dvi-am \
455 html html-am info info-am install install-am install-data \
456 install-data-am install-dvi install-dvi-am install-exec \
457 install-exec-am install-html install-html-am install-info \
458 install-info-am install-man install-pdf install-pdf-am \
459 install-ps install-ps-am install-strip installcheck \
460 installcheck-am installdirs maintainer-clean \
461 maintainer-clean-generic mostlyclean mostlyclean-compile \
462 mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
463 uninstall-am
464
465
466 # Tell versions [3.59,3.63) of GNU make to not export all variables.
467 # Otherwise a system limit (for SysV at least) may be exceeded.
468 .NOEXPORT:
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2014-2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <unistd.h>
16 #include <signal.h>
17 #include "exit-value.h"
18
19 void __attribute__((noreturn))
20 abort (void)
21 {
22 write (2, "GCN Kernel Aborted\n", 19);
23 exit_with_status_and_signal (0, SIGABRT);
24 }
0 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
23 # Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # serial 1
30
31 # AM_AUTOMAKE_VERSION(VERSION)
32 # ----------------------------
33 # Automake X.Y traces this macro to ensure aclocal.m4 has been
34 # generated from the m4 files accompanying Automake X.Y.
35 # (This private macro should not be called outside this file.)
36 AC_DEFUN([AM_AUTOMAKE_VERSION],
37 [am__api_version='1.11'
38 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
39 dnl require some minimum version. Point them to the right macro.
40 m4_if([$1], [1.11.6], [],
41 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
42 ])
43
44 # _AM_AUTOCONF_VERSION(VERSION)
45 # -----------------------------
46 # aclocal traces this macro to find the Autoconf version.
47 # This is a private macro too. Using m4_define simplifies
48 # the logic in aclocal, which can simply ignore this definition.
49 m4_define([_AM_AUTOCONF_VERSION], [])
50
51 # AM_SET_CURRENT_AUTOMAKE_VERSION
52 # -------------------------------
53 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
54 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
55 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
56 [AM_AUTOMAKE_VERSION([1.11.6])dnl
57 m4_ifndef([AC_AUTOCONF_VERSION],
58 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
59 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
60
61 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
62
63 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
64 #
65 # This file is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
68
69 # serial 1
70
71 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
72 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
73 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
74 #
75 # Of course, Automake must honor this variable whenever it calls a
76 # tool from the auxiliary directory. The problem is that $srcdir (and
77 # therefore $ac_aux_dir as well) can be either absolute or relative,
78 # depending on how configure is run. This is pretty annoying, since
79 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
80 # source directory, any form will work fine, but in subdirectories a
81 # relative path needs to be adjusted first.
82 #
83 # $ac_aux_dir/missing
84 # fails when called from a subdirectory if $ac_aux_dir is relative
85 # $top_srcdir/$ac_aux_dir/missing
86 # fails if $ac_aux_dir is absolute,
87 # fails when called from a subdirectory in a VPATH build with
88 # a relative $ac_aux_dir
89 #
90 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
91 # are both prefixed by $srcdir. In an in-source build this is usually
92 # harmless because $srcdir is `.', but things will broke when you
93 # start a VPATH build or use an absolute $srcdir.
94 #
95 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
96 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
97 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
98 # and then we would define $MISSING as
99 # MISSING="\${SHELL} $am_aux_dir/missing"
100 # This will work as long as MISSING is not called from configure, because
101 # unfortunately $(top_srcdir) has no meaning in configure.
102 # However there are other variables, like CC, which are often used in
103 # configure, and could therefore not use this "fixed" $ac_aux_dir.
104 #
105 # Another solution, used here, is to always expand $ac_aux_dir to an
106 # absolute PATH. The drawback is that using absolute paths prevent a
107 # configured tree to be moved without reconfiguration.
108
109 AC_DEFUN([AM_AUX_DIR_EXPAND],
110 [dnl Rely on autoconf to set up CDPATH properly.
111 AC_PREREQ([2.50])dnl
112 # expand $ac_aux_dir to an absolute path
113 am_aux_dir=`cd $ac_aux_dir && pwd`
114 ])
115
116 # AM_CONDITIONAL -*- Autoconf -*-
117
118 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
119 # Free Software Foundation, Inc.
120 #
121 # This file is free software; the Free Software Foundation
122 # gives unlimited permission to copy and/or distribute it,
123 # with or without modifications, as long as this notice is preserved.
124
125 # serial 9
126
127 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
128 # -------------------------------------
129 # Define a conditional.
130 AC_DEFUN([AM_CONDITIONAL],
131 [AC_PREREQ(2.52)dnl
132 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
133 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
134 AC_SUBST([$1_TRUE])dnl
135 AC_SUBST([$1_FALSE])dnl
136 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
137 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
138 m4_define([_AM_COND_VALUE_$1], [$2])dnl
139 if $2; then
140 $1_TRUE=
141 $1_FALSE='#'
142 else
143 $1_TRUE='#'
144 $1_FALSE=
145 fi
146 AC_CONFIG_COMMANDS_PRE(
147 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148 AC_MSG_ERROR([[conditional "$1" was never defined.
149 Usually this means the macro was only invoked conditionally.]])
150 fi])])
151
152 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
153 # 2010, 2011 Free Software Foundation, Inc.
154 #
155 # This file is free software; the Free Software Foundation
156 # gives unlimited permission to copy and/or distribute it,
157 # with or without modifications, as long as this notice is preserved.
158
159 # serial 12
160
161 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
162 # written in clear, in which case automake, when reading aclocal.m4,
163 # will think it sees a *use*, and therefore will trigger all it's
164 # C support machinery. Also note that it means that autoscan, seeing
165 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
166
167
168 # _AM_DEPENDENCIES(NAME)
169 # ----------------------
170 # See how the compiler implements dependency checking.
171 # NAME is "CC", "CXX", "GCJ", or "OBJC".
172 # We try a few techniques and use that to set a single cache variable.
173 #
174 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
175 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
176 # dependency, and given that the user is not expected to run this macro,
177 # just rely on AC_PROG_CC.
178 AC_DEFUN([_AM_DEPENDENCIES],
179 [AC_REQUIRE([AM_SET_DEPDIR])dnl
180 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
181 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
182 AC_REQUIRE([AM_DEP_TRACK])dnl
183
184 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
185 [$1], CXX, [depcc="$CXX" am_compiler_list=],
186 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
187 [$1], UPC, [depcc="$UPC" am_compiler_list=],
188 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
189 [depcc="$$1" am_compiler_list=])
190
191 AC_CACHE_CHECK([dependency style of $depcc],
192 [am_cv_$1_dependencies_compiler_type],
193 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
194 # We make a subdir and do the tests there. Otherwise we can end up
195 # making bogus files that we don't know about and never remove. For
196 # instance it was reported that on HP-UX the gcc test will end up
197 # making a dummy file named `D' -- because `-MD' means `put the output
198 # in D'.
199 rm -rf conftest.dir
200 mkdir conftest.dir
201 # Copy depcomp to subdir because otherwise we won't find it if we're
202 # using a relative directory.
203 cp "$am_depcomp" conftest.dir
204 cd conftest.dir
205 # We will build objects and dependencies in a subdirectory because
206 # it helps to detect inapplicable dependency modes. For instance
207 # both Tru64's cc and ICC support -MD to output dependencies as a
208 # side effect of compilation, but ICC will put the dependencies in
209 # the current directory while Tru64 will put them in the object
210 # directory.
211 mkdir sub
212
213 am_cv_$1_dependencies_compiler_type=none
214 if test "$am_compiler_list" = ""; then
215 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
216 fi
217 am__universal=false
218 m4_case([$1], [CC],
219 [case " $depcc " in #(
220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
221 esac],
222 [CXX],
223 [case " $depcc " in #(
224 *\ -arch\ *\ -arch\ *) am__universal=true ;;
225 esac])
226
227 for depmode in $am_compiler_list; do
228 # Setup a source with many dependencies, because some compilers
229 # like to wrap large dependency lists on column 80 (with \), and
230 # we should not choose a depcomp mode which is confused by this.
231 #
232 # We need to recreate these files for each test, as the compiler may
233 # overwrite some of them when testing with obscure command lines.
234 # This happens at least with the AIX C compiler.
235 : > sub/conftest.c
236 for i in 1 2 3 4 5 6; do
237 echo '#include "conftst'$i'.h"' >> sub/conftest.c
238 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
239 # Solaris 8's {/usr,}/bin/sh.
240 touch sub/conftst$i.h
241 done
242 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
243
244 # We check with `-c' and `-o' for the sake of the "dashmstdout"
245 # mode. It turns out that the SunPro C++ compiler does not properly
246 # handle `-M -o', and we need to detect this. Also, some Intel
247 # versions had trouble with output in subdirs
248 am__obj=sub/conftest.${OBJEXT-o}
249 am__minus_obj="-o $am__obj"
250 case $depmode in
251 gcc)
252 # This depmode causes a compiler race in universal mode.
253 test "$am__universal" = false || continue
254 ;;
255 nosideeffect)
256 # after this tag, mechanisms are not by side-effect, so they'll
257 # only be used when explicitly requested
258 if test "x$enable_dependency_tracking" = xyes; then
259 continue
260 else
261 break
262 fi
263 ;;
264 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
265 # This compiler won't grok `-c -o', but also, the minuso test has
266 # not run yet. These depmodes are late enough in the game, and
267 # so weak that their functioning should not be impacted.
268 am__obj=conftest.${OBJEXT-o}
269 am__minus_obj=
270 ;;
271 none) break ;;
272 esac
273 if depmode=$depmode \
274 source=sub/conftest.c object=$am__obj \
275 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
276 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
277 >/dev/null 2>conftest.err &&
278 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
279 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
280 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
281 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
282 # icc doesn't choke on unknown options, it will just issue warnings
283 # or remarks (even with -Werror). So we grep stderr for any message
284 # that says an option was ignored or not supported.
285 # When given -MP, icc 7.0 and 7.1 complain thusly:
286 # icc: Command line warning: ignoring option '-M'; no argument required
287 # The diagnosis changed in icc 8.0:
288 # icc: Command line remark: option '-MP' not supported
289 if (grep 'ignoring option' conftest.err ||
290 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
291 am_cv_$1_dependencies_compiler_type=$depmode
292 break
293 fi
294 fi
295 done
296
297 cd ..
298 rm -rf conftest.dir
299 else
300 am_cv_$1_dependencies_compiler_type=none
301 fi
302 ])
303 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
304 AM_CONDITIONAL([am__fastdep$1], [
305 test "x$enable_dependency_tracking" != xno \
306 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
307 ])
308
309
310 # AM_SET_DEPDIR
311 # -------------
312 # Choose a directory name for dependency files.
313 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
314 AC_DEFUN([AM_SET_DEPDIR],
315 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
316 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
317 ])
318
319
320 # AM_DEP_TRACK
321 # ------------
322 AC_DEFUN([AM_DEP_TRACK],
323 [AC_ARG_ENABLE(dependency-tracking,
324 [ --disable-dependency-tracking speeds up one-time build
325 --enable-dependency-tracking do not reject slow dependency extractors])
326 if test "x$enable_dependency_tracking" != xno; then
327 am_depcomp="$ac_aux_dir/depcomp"
328 AMDEPBACKSLASH='\'
329 am__nodep='_no'
330 fi
331 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
332 AC_SUBST([AMDEPBACKSLASH])dnl
333 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
334 AC_SUBST([am__nodep])dnl
335 _AM_SUBST_NOTMAKE([am__nodep])dnl
336 ])
337
338 # Generate code to set up dependency tracking. -*- Autoconf -*-
339
340 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
341 # Free Software Foundation, Inc.
342 #
343 # This file is free software; the Free Software Foundation
344 # gives unlimited permission to copy and/or distribute it,
345 # with or without modifications, as long as this notice is preserved.
346
347 #serial 5
348
349 # _AM_OUTPUT_DEPENDENCY_COMMANDS
350 # ------------------------------
351 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
352 [{
353 # Autoconf 2.62 quotes --file arguments for eval, but not when files
354 # are listed without --file. Let's play safe and only enable the eval
355 # if we detect the quoting.
356 case $CONFIG_FILES in
357 *\'*) eval set x "$CONFIG_FILES" ;;
358 *) set x $CONFIG_FILES ;;
359 esac
360 shift
361 for mf
362 do
363 # Strip MF so we end up with the name of the file.
364 mf=`echo "$mf" | sed -e 's/:.*$//'`
365 # Check whether this is an Automake generated Makefile or not.
366 # We used to match only the files named `Makefile.in', but
367 # some people rename them; so instead we look at the file content.
368 # Grep'ing the first line is not enough: some people post-process
369 # each Makefile.in and add a new line on top of each file to say so.
370 # Grep'ing the whole file is not good either: AIX grep has a line
371 # limit of 2048, but all sed's we know have understand at least 4000.
372 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
373 dirpart=`AS_DIRNAME("$mf")`
374 else
375 continue
376 fi
377 # Extract the definition of DEPDIR, am__include, and am__quote
378 # from the Makefile without running `make'.
379 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
380 test -z "$DEPDIR" && continue
381 am__include=`sed -n 's/^am__include = //p' < "$mf"`
382 test -z "am__include" && continue
383 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
384 # When using ansi2knr, U may be empty or an underscore; expand it
385 U=`sed -n 's/^U = //p' < "$mf"`
386 # Find all dependency output files, they are included files with
387 # $(DEPDIR) in their names. We invoke sed twice because it is the
388 # simplest approach to changing $(DEPDIR) to its actual value in the
389 # expansion.
390 for file in `sed -n "
391 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
392 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
393 # Make sure the directory exists.
394 test -f "$dirpart/$file" && continue
395 fdir=`AS_DIRNAME(["$file"])`
396 AS_MKDIR_P([$dirpart/$fdir])
397 # echo "creating $dirpart/$file"
398 echo '# dummy' > "$dirpart/$file"
399 done
400 done
401 }
402 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
403
404
405 # AM_OUTPUT_DEPENDENCY_COMMANDS
406 # -----------------------------
407 # This macro should only be invoked once -- use via AC_REQUIRE.
408 #
409 # This code is only required when automatic dependency tracking
410 # is enabled. FIXME. This creates each `.P' file that we will
411 # need in order to bootstrap the dependency handling code.
412 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
413 [AC_CONFIG_COMMANDS([depfiles],
414 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
415 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
416 ])
417
418 # Do all the work for Automake. -*- Autoconf -*-
419
420 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
421 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
422 #
423 # This file is free software; the Free Software Foundation
424 # gives unlimited permission to copy and/or distribute it,
425 # with or without modifications, as long as this notice is preserved.
426
427 # serial 16
428
429 # This macro actually does too much. Some checks are only needed if
430 # your package does certain things. But this isn't really a big deal.
431
432 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
433 # AM_INIT_AUTOMAKE([OPTIONS])
434 # -----------------------------------------------
435 # The call with PACKAGE and VERSION arguments is the old style
436 # call (pre autoconf-2.50), which is being phased out. PACKAGE
437 # and VERSION should now be passed to AC_INIT and removed from
438 # the call to AM_INIT_AUTOMAKE.
439 # We support both call styles for the transition. After
440 # the next Automake release, Autoconf can make the AC_INIT
441 # arguments mandatory, and then we can depend on a new Autoconf
442 # release and drop the old call support.
443 AC_DEFUN([AM_INIT_AUTOMAKE],
444 [AC_PREREQ([2.62])dnl
445 dnl Autoconf wants to disallow AM_ names. We explicitly allow
446 dnl the ones we care about.
447 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
448 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
449 AC_REQUIRE([AC_PROG_INSTALL])dnl
450 if test "`cd $srcdir && pwd`" != "`pwd`"; then
451 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
452 # is not polluted with repeated "-I."
453 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
454 # test to see if srcdir already configured
455 if test -f $srcdir/config.status; then
456 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
457 fi
458 fi
459
460 # test whether we have cygpath
461 if test -z "$CYGPATH_W"; then
462 if (cygpath --version) >/dev/null 2>/dev/null; then
463 CYGPATH_W='cygpath -w'
464 else
465 CYGPATH_W=echo
466 fi
467 fi
468 AC_SUBST([CYGPATH_W])
469
470 # Define the identity of the package.
471 dnl Distinguish between old-style and new-style calls.
472 m4_ifval([$2],
473 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
474 AC_SUBST([PACKAGE], [$1])dnl
475 AC_SUBST([VERSION], [$2])],
476 [_AM_SET_OPTIONS([$1])dnl
477 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
478 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
479 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
480 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
481 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
482
483 _AM_IF_OPTION([no-define],,
484 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
485 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
486
487 # Some tools Automake needs.
488 AC_REQUIRE([AM_SANITY_CHECK])dnl
489 AC_REQUIRE([AC_ARG_PROGRAM])dnl
490 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
491 AM_MISSING_PROG(AUTOCONF, autoconf)
492 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
493 AM_MISSING_PROG(AUTOHEADER, autoheader)
494 AM_MISSING_PROG(MAKEINFO, makeinfo)
495 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
496 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
497 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
498 # We need awk for the "check" target. The system "awk" is bad on
499 # some platforms.
500 AC_REQUIRE([AC_PROG_AWK])dnl
501 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
502 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
503 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
504 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
505 [_AM_PROG_TAR([v7])])])
506 _AM_IF_OPTION([no-dependencies],,
507 [AC_PROVIDE_IFELSE([AC_PROG_CC],
508 [_AM_DEPENDENCIES(CC)],
509 [define([AC_PROG_CC],
510 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
511 AC_PROVIDE_IFELSE([AC_PROG_CXX],
512 [_AM_DEPENDENCIES(CXX)],
513 [define([AC_PROG_CXX],
514 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
515 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
516 [_AM_DEPENDENCIES(OBJC)],
517 [define([AC_PROG_OBJC],
518 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
519 ])
520 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
521 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
522 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
523 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
524 AC_CONFIG_COMMANDS_PRE(dnl
525 [m4_provide_if([_AM_COMPILER_EXEEXT],
526 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
527 ])
528
529 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
530 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
531 dnl mangled by Autoconf and run in a shell conditional statement.
532 m4_define([_AC_COMPILER_EXEEXT],
533 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
534
535
536 # When config.status generates a header, we must update the stamp-h file.
537 # This file resides in the same directory as the config header
538 # that is generated. The stamp files are numbered to have different names.
539
540 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
541 # loop where config.status creates the headers, so we can generate
542 # our stamp files there.
543 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
544 [# Compute $1's index in $config_headers.
545 _am_arg=$1
546 _am_stamp_count=1
547 for _am_header in $config_headers :; do
548 case $_am_header in
549 $_am_arg | $_am_arg:* )
550 break ;;
551 * )
552 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
553 esac
554 done
555 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
556
557 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
558 # Inc.
559 #
560 # This file is free software; the Free Software Foundation
561 # gives unlimited permission to copy and/or distribute it,
562 # with or without modifications, as long as this notice is preserved.
563
564 # serial 1
565
566 # AM_PROG_INSTALL_SH
567 # ------------------
568 # Define $install_sh.
569 AC_DEFUN([AM_PROG_INSTALL_SH],
570 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
571 if test x"${install_sh}" != xset; then
572 case $am_aux_dir in
573 *\ * | *\ *)
574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
575 *)
576 install_sh="\${SHELL} $am_aux_dir/install-sh"
577 esac
578 fi
579 AC_SUBST(install_sh)])
580
581 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
582 #
583 # This file is free software; the Free Software Foundation
584 # gives unlimited permission to copy and/or distribute it,
585 # with or without modifications, as long as this notice is preserved.
586
587 # serial 2
588
589 # Check whether the underlying file-system supports filenames
590 # with a leading dot. For instance MS-DOS doesn't.
591 AC_DEFUN([AM_SET_LEADING_DOT],
592 [rm -rf .tst 2>/dev/null
593 mkdir .tst 2>/dev/null
594 if test -d .tst; then
595 am__leading_dot=.
596 else
597 am__leading_dot=_
598 fi
599 rmdir .tst 2>/dev/null
600 AC_SUBST([am__leading_dot])])
601
602 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
603 # From Jim Meyering
604
605 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
606 # 2011 Free Software Foundation, Inc.
607 #
608 # This file is free software; the Free Software Foundation
609 # gives unlimited permission to copy and/or distribute it,
610 # with or without modifications, as long as this notice is preserved.
611
612 # serial 5
613
614 # AM_MAINTAINER_MODE([DEFAULT-MODE])
615 # ----------------------------------
616 # Control maintainer-specific portions of Makefiles.
617 # Default is to disable them, unless `enable' is passed literally.
618 # For symmetry, `disable' may be passed as well. Anyway, the user
619 # can override the default with the --enable/--disable switch.
620 AC_DEFUN([AM_MAINTAINER_MODE],
621 [m4_case(m4_default([$1], [disable]),
622 [enable], [m4_define([am_maintainer_other], [disable])],
623 [disable], [m4_define([am_maintainer_other], [enable])],
624 [m4_define([am_maintainer_other], [enable])
625 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
626 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
627 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
628 AC_ARG_ENABLE([maintainer-mode],
629 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
630 (and sometimes confusing) to the casual installer],
631 [USE_MAINTAINER_MODE=$enableval],
632 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
633 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
634 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
635 MAINT=$MAINTAINER_MODE_TRUE
636 AC_SUBST([MAINT])dnl
637 ]
638 )
639
640 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
641
642 # Check to see how 'make' treats includes. -*- Autoconf -*-
643
644 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
645 #
646 # This file is free software; the Free Software Foundation
647 # gives unlimited permission to copy and/or distribute it,
648 # with or without modifications, as long as this notice is preserved.
649
650 # serial 4
651
652 # AM_MAKE_INCLUDE()
653 # -----------------
654 # Check to see how make treats includes.
655 AC_DEFUN([AM_MAKE_INCLUDE],
656 [am_make=${MAKE-make}
657 cat > confinc << 'END'
658 am__doit:
659 @echo this is the am__doit target
660 .PHONY: am__doit
661 END
662 # If we don't find an include directive, just comment out the code.
663 AC_MSG_CHECKING([for style of include used by $am_make])
664 am__include="#"
665 am__quote=
666 _am_result=none
667 # First try GNU make style include.
668 echo "include confinc" > confmf
669 # Ignore all kinds of additional output from `make'.
670 case `$am_make -s -f confmf 2> /dev/null` in #(
671 *the\ am__doit\ target*)
672 am__include=include
673 am__quote=
674 _am_result=GNU
675 ;;
676 esac
677 # Now try BSD make style include.
678 if test "$am__include" = "#"; then
679 echo '.include "confinc"' > confmf
680 case `$am_make -s -f confmf 2> /dev/null` in #(
681 *the\ am__doit\ target*)
682 am__include=.include
683 am__quote="\""
684 _am_result=BSD
685 ;;
686 esac
687 fi
688 AC_SUBST([am__include])
689 AC_SUBST([am__quote])
690 AC_MSG_RESULT([$_am_result])
691 rm -f confinc confmf
692 ])
693
694 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
695
696 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
697 # Free Software Foundation, Inc.
698 #
699 # This file is free software; the Free Software Foundation
700 # gives unlimited permission to copy and/or distribute it,
701 # with or without modifications, as long as this notice is preserved.
702
703 # serial 6
704
705 # AM_MISSING_PROG(NAME, PROGRAM)
706 # ------------------------------
707 AC_DEFUN([AM_MISSING_PROG],
708 [AC_REQUIRE([AM_MISSING_HAS_RUN])
709 $1=${$1-"${am_missing_run}$2"}
710 AC_SUBST($1)])
711
712
713 # AM_MISSING_HAS_RUN
714 # ------------------
715 # Define MISSING if not defined so far and test if it supports --run.
716 # If it does, set am_missing_run to use it, otherwise, to nothing.
717 AC_DEFUN([AM_MISSING_HAS_RUN],
718 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
719 AC_REQUIRE_AUX_FILE([missing])dnl
720 if test x"${MISSING+set}" != xset; then
721 case $am_aux_dir in
722 *\ * | *\ *)
723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
724 *)
725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
726 esac
727 fi
728 # Use eval to expand $SHELL
729 if eval "$MISSING --run true"; then
730 am_missing_run="$MISSING --run "
731 else
732 am_missing_run=
733 AC_MSG_WARN([`missing' script is too old or missing])
734 fi
735 ])
736
737 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
738 # Inc.
739 #
740 # This file is free software; the Free Software Foundation
741 # gives unlimited permission to copy and/or distribute it,
742 # with or without modifications, as long as this notice is preserved.
743
744 # serial 1
745
746 # AM_PROG_MKDIR_P
747 # ---------------
748 # Check for `mkdir -p'.
749 AC_DEFUN([AM_PROG_MKDIR_P],
750 [AC_PREREQ([2.60])dnl
751 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
752 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
753 dnl while keeping a definition of mkdir_p for backward compatibility.
754 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
755 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
756 dnl Makefile.ins that do not define MKDIR_P, so we do our own
757 dnl adjustment using top_builddir (which is defined more often than
758 dnl MKDIR_P).
759 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
760 case $mkdir_p in
761 [[\\/$]]* | ?:[[\\/]]*) ;;
762 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
763 esac
764 ])
765
766 # Helper functions for option handling. -*- Autoconf -*-
767
768 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
769 # Foundation, Inc.
770 #
771 # This file is free software; the Free Software Foundation
772 # gives unlimited permission to copy and/or distribute it,
773 # with or without modifications, as long as this notice is preserved.
774
775 # serial 5
776
777 # _AM_MANGLE_OPTION(NAME)
778 # -----------------------
779 AC_DEFUN([_AM_MANGLE_OPTION],
780 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
781
782 # _AM_SET_OPTION(NAME)
783 # --------------------
784 # Set option NAME. Presently that only means defining a flag for this option.
785 AC_DEFUN([_AM_SET_OPTION],
786 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
787
788 # _AM_SET_OPTIONS(OPTIONS)
789 # ------------------------
790 # OPTIONS is a space-separated list of Automake options.
791 AC_DEFUN([_AM_SET_OPTIONS],
792 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
793
794 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
795 # -------------------------------------------
796 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
797 AC_DEFUN([_AM_IF_OPTION],
798 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
799
800 # Check to make sure that the build environment is sane. -*- Autoconf -*-
801
802 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
803 # Free Software Foundation, Inc.
804 #
805 # This file is free software; the Free Software Foundation
806 # gives unlimited permission to copy and/or distribute it,
807 # with or without modifications, as long as this notice is preserved.
808
809 # serial 5
810
811 # AM_SANITY_CHECK
812 # ---------------
813 AC_DEFUN([AM_SANITY_CHECK],
814 [AC_MSG_CHECKING([whether build environment is sane])
815 # Just in case
816 sleep 1
817 echo timestamp > conftest.file
818 # Reject unsafe characters in $srcdir or the absolute working directory
819 # name. Accept space and tab only in the latter.
820 am_lf='
821 '
822 case `pwd` in
823 *[[\\\"\#\$\&\'\`$am_lf]]*)
824 AC_MSG_ERROR([unsafe absolute working directory name]);;
825 esac
826 case $srcdir in
827 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
828 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
829 esac
830
831 # Do `set' in a subshell so we don't clobber the current shell's
832 # arguments. Must try -L first in case configure is actually a
833 # symlink; some systems play weird games with the mod time of symlinks
834 # (eg FreeBSD returns the mod time of the symlink's containing
835 # directory).
836 if (
837 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
838 if test "$[*]" = "X"; then
839 # -L didn't work.
840 set X `ls -t "$srcdir/configure" conftest.file`
841 fi
842 rm -f conftest.file
843 if test "$[*]" != "X $srcdir/configure conftest.file" \
844 && test "$[*]" != "X conftest.file $srcdir/configure"; then
845
846 # If neither matched, then we have a broken ls. This can happen
847 # if, for instance, CONFIG_SHELL is bash and it inherits a
848 # broken ls alias from the environment. This has actually
849 # happened. Such a system could not be considered "sane".
850 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
851 alias in your environment])
852 fi
853
854 test "$[2]" = conftest.file
855 )
856 then
857 # Ok.
858 :
859 else
860 AC_MSG_ERROR([newly created file is older than distributed files!
861 Check your system clock])
862 fi
863 AC_MSG_RESULT(yes)])
864
865 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
866 #
867 # This file is free software; the Free Software Foundation
868 # gives unlimited permission to copy and/or distribute it,
869 # with or without modifications, as long as this notice is preserved.
870
871 # serial 1
872
873 # AM_PROG_INSTALL_STRIP
874 # ---------------------
875 # One issue with vendor `install' (even GNU) is that you can't
876 # specify the program used to strip binaries. This is especially
877 # annoying in cross-compiling environments, where the build's strip
878 # is unlikely to handle the host's binaries.
879 # Fortunately install-sh will honor a STRIPPROG variable, so we
880 # always use install-sh in `make install-strip', and initialize
881 # STRIPPROG with the value of the STRIP variable (set by the user).
882 AC_DEFUN([AM_PROG_INSTALL_STRIP],
883 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
884 # Installed binaries are usually stripped using `strip' when the user
885 # run `make install-strip'. However `strip' might not be the right
886 # tool to use in cross-compilation environments, therefore Automake
887 # will honor the `STRIP' environment variable to overrule this program.
888 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
889 if test "$cross_compiling" != no; then
890 AC_CHECK_TOOL([STRIP], [strip], :)
891 fi
892 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
893 AC_SUBST([INSTALL_STRIP_PROGRAM])])
894
895 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
896 #
897 # This file is free software; the Free Software Foundation
898 # gives unlimited permission to copy and/or distribute it,
899 # with or without modifications, as long as this notice is preserved.
900
901 # serial 3
902
903 # _AM_SUBST_NOTMAKE(VARIABLE)
904 # ---------------------------
905 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
906 # This macro is traced by Automake.
907 AC_DEFUN([_AM_SUBST_NOTMAKE])
908
909 # AM_SUBST_NOTMAKE(VARIABLE)
910 # --------------------------
911 # Public sister of _AM_SUBST_NOTMAKE.
912 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
913
914 # Check how to create a tarball. -*- Autoconf -*-
915
916 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
917 #
918 # This file is free software; the Free Software Foundation
919 # gives unlimited permission to copy and/or distribute it,
920 # with or without modifications, as long as this notice is preserved.
921
922 # serial 2
923
924 # _AM_PROG_TAR(FORMAT)
925 # --------------------
926 # Check how to create a tarball in format FORMAT.
927 # FORMAT should be one of `v7', `ustar', or `pax'.
928 #
929 # Substitute a variable $(am__tar) that is a command
930 # writing to stdout a FORMAT-tarball containing the directory
931 # $tardir.
932 # tardir=directory && $(am__tar) > result.tar
933 #
934 # Substitute a variable $(am__untar) that extract such
935 # a tarball read from stdin.
936 # $(am__untar) < result.tar
937 AC_DEFUN([_AM_PROG_TAR],
938 [# Always define AMTAR for backward compatibility. Yes, it's still used
939 # in the wild :-( We should find a proper way to deprecate it ...
940 AC_SUBST([AMTAR], ['$${TAR-tar}'])
941 m4_if([$1], [v7],
942 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
943 [m4_case([$1], [ustar],, [pax],,
944 [m4_fatal([Unknown tar format])])
945 AC_MSG_CHECKING([how to create a $1 tar archive])
946 # Loop over all known methods to create a tar archive until one works.
947 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
948 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
949 # Do not fold the above two line into one, because Tru64 sh and
950 # Solaris sh will not grok spaces in the rhs of `-'.
951 for _am_tool in $_am_tools
952 do
953 case $_am_tool in
954 gnutar)
955 for _am_tar in tar gnutar gtar;
956 do
957 AM_RUN_LOG([$_am_tar --version]) && break
958 done
959 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
960 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
961 am__untar="$_am_tar -xf -"
962 ;;
963 plaintar)
964 # Must skip GNU tar: if it does not support --format= it doesn't create
965 # ustar tarball either.
966 (tar --version) >/dev/null 2>&1 && continue
967 am__tar='tar chf - "$$tardir"'
968 am__tar_='tar chf - "$tardir"'
969 am__untar='tar xf -'
970 ;;
971 pax)
972 am__tar='pax -L -x $1 -w "$$tardir"'
973 am__tar_='pax -L -x $1 -w "$tardir"'
974 am__untar='pax -r'
975 ;;
976 cpio)
977 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
978 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
979 am__untar='cpio -i -H $1 -d'
980 ;;
981 none)
982 am__tar=false
983 am__tar_=false
984 am__untar=false
985 ;;
986 esac
987
988 # If the value was cached, stop now. We just wanted to have am__tar
989 # and am__untar set.
990 test -n "${am_cv_prog_tar_$1}" && break
991
992 # tar/untar a dummy directory, and stop if the command works
993 rm -rf conftest.dir
994 mkdir conftest.dir
995 echo GrepMe > conftest.dir/file
996 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
997 rm -rf conftest.dir
998 if test -s conftest.tar; then
999 AM_RUN_LOG([$am__untar <conftest.tar])
1000 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1001 fi
1002 done
1003 rm -rf conftest.dir
1004
1005 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1006 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1007 AC_SUBST([am__tar])
1008 AC_SUBST([am__untar])
1009 ]) # _AM_PROG_TAR
1010
1011 m4_include([../../../acinclude.m4])
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2014-2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <stdlib.h>
16
17 int
18 atexit (void (*function)(void))
19 {
20 /* Our current implementation of exit does not run functions registered with
21 atexit, so fail here. */
22 abort ();
23 return 1;
24 }
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
3 #
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7 # Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 # Preserve -v and -x to the replacement shell.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 case $- in # ((((
222 *v*x* | *x*v* ) as_opts=-vx ;;
223 *v* ) as_opts=-v ;;
224 *x* ) as_opts=-x ;;
225 * ) as_opts= ;;
226 esac
227 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error STATUS ERROR [LINENO LOG_FD]
366 # ----------------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with STATUS, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$1; test $as_status -eq 0 && as_status=1
373 if test "$4"; then
374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
376 fi
377 $as_echo "$as_me: error: $2" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534
535 test -n "$DJDIR" || exec 7<&0 </dev/null
536 exec 6>&1
537
538 # Name of the host.
539 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
540 # so uname gets run too.
541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
542
543 #
544 # Initializations.
545 #
546 ac_default_prefix=/usr/local
547 ac_clean_files=
548 ac_config_libobj_dir=.
549 LIBOBJS=
550 cross_compiling=no
551 subdirs=
552 MFLAGS=
553 MAKEFLAGS=
554
555 # Identity of this package.
556 PACKAGE_NAME='newlib'
557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560 PACKAGE_BUGREPORT=''
561 PACKAGE_URL=''
562
563 ac_unique_file="Makefile.am"
564 ac_subst_vars='LTLIBOBJS
565 LIBOBJS
566 sys_dir
567 machine_dir
568 libm_machine_dir
569 lpfx
570 aext
571 oext
572 OBJEXT
573 USE_LIBTOOL_FALSE
574 USE_LIBTOOL_TRUE
575 ELIX_LEVEL_4_FALSE
576 ELIX_LEVEL_4_TRUE
577 ELIX_LEVEL_3_FALSE
578 ELIX_LEVEL_3_TRUE
579 ELIX_LEVEL_2_FALSE
580 ELIX_LEVEL_2_TRUE
581 ELIX_LEVEL_1_FALSE
582 ELIX_LEVEL_1_TRUE
583 ELIX_LEVEL_0_FALSE
584 ELIX_LEVEL_0_TRUE
585 LDFLAGS
586 NO_INCLUDE_LIST
587 NEWLIB_CFLAGS
588 CCASFLAGS
589 CCAS
590 MAINT
591 MAINTAINER_MODE_FALSE
592 MAINTAINER_MODE_TRUE
593 READELF
594 RANLIB
595 AR
596 AS
597 am__fastdepCC_FALSE
598 am__fastdepCC_TRUE
599 CCDEPMODE
600 am__nodep
601 AMDEPBACKSLASH
602 AMDEP_FALSE
603 AMDEP_TRUE
604 am__quote
605 am__include
606 DEPDIR
607 CC
608 am__untar
609 am__tar
610 AMTAR
611 am__leading_dot
612 SET_MAKE
613 AWK
614 mkdir_p
615 MKDIR_P
616 INSTALL_STRIP_PROGRAM
617 STRIP
618 install_sh
619 MAKEINFO
620 AUTOHEADER
621 AUTOMAKE
622 AUTOCONF
623 ACLOCAL
624 VERSION
625 PACKAGE
626 CYGPATH_W
627 am__isrc
628 INSTALL_DATA
629 INSTALL_SCRIPT
630 INSTALL_PROGRAM
631 host_os
632 host_vendor
633 host_cpu
634 host
635 build_os
636 build_vendor
637 build_cpu
638 build
639 newlib_basedir
640 MAY_SUPPLY_SYSCALLS_FALSE
641 MAY_SUPPLY_SYSCALLS_TRUE
642 target_alias
643 host_alias
644 build_alias
645 LIBS
646 ECHO_T
647 ECHO_N
648 ECHO_C
649 DEFS
650 mandir
651 localedir
652 libdir
653 psdir
654 pdfdir
655 dvidir
656 htmldir
657 infodir
658 docdir
659 oldincludedir
660 includedir
661 localstatedir
662 sharedstatedir
663 sysconfdir
664 datadir
665 datarootdir
666 libexecdir
667 sbindir
668 bindir
669 program_transform_name
670 prefix
671 exec_prefix
672 PACKAGE_URL
673 PACKAGE_BUGREPORT
674 PACKAGE_STRING
675 PACKAGE_VERSION
676 PACKAGE_TARNAME
677 PACKAGE_NAME
678 PATH_SEPARATOR
679 SHELL'
680 ac_subst_files=''
681 ac_user_opts='
682 enable_option_checking
683 enable_multilib
684 enable_target_optspace
685 enable_malloc_debugging
686 enable_newlib_multithread
687 enable_newlib_iconv
688 enable_newlib_elix_level
689 enable_newlib_io_float
690 enable_newlib_supplied_syscalls
691 enable_newlib_fno_builtin
692 enable_dependency_tracking
693 enable_maintainer_mode
694 '
695 ac_precious_vars='build_alias
696 host_alias
697 target_alias
698 CCAS
699 CCASFLAGS'
700
701
702 # Initialize some variables set by options.
703 ac_init_help=
704 ac_init_version=false
705 ac_unrecognized_opts=
706 ac_unrecognized_sep=
707 # The variables have the same names as the options, with
708 # dashes changed to underlines.
709 cache_file=/dev/null
710 exec_prefix=NONE
711 no_create=
712 no_recursion=
713 prefix=NONE
714 program_prefix=NONE
715 program_suffix=NONE
716 program_transform_name=s,x,x,
717 silent=
718 site=
719 srcdir=
720 verbose=
721 x_includes=NONE
722 x_libraries=NONE
723
724 # Installation directory options.
725 # These are left unexpanded so users can "make install exec_prefix=/foo"
726 # and all the variables that are supposed to be based on exec_prefix
727 # by default will actually change.
728 # Use braces instead of parens because sh, perl, etc. also accept them.
729 # (The list follows the same order as the GNU Coding Standards.)
730 bindir='${exec_prefix}/bin'
731 sbindir='${exec_prefix}/sbin'
732 libexecdir='${exec_prefix}/libexec'
733 datarootdir='${prefix}/share'
734 datadir='${datarootdir}'
735 sysconfdir='${prefix}/etc'
736 sharedstatedir='${prefix}/com'
737 localstatedir='${prefix}/var'
738 includedir='${prefix}/include'
739 oldincludedir='/usr/include'
740 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
741 infodir='${datarootdir}/info'
742 htmldir='${docdir}'
743 dvidir='${docdir}'
744 pdfdir='${docdir}'
745 psdir='${docdir}'
746 libdir='${exec_prefix}/lib'
747 localedir='${datarootdir}/locale'
748 mandir='${datarootdir}/man'
749
750 ac_prev=
751 ac_dashdash=
752 for ac_option
753 do
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
756 eval $ac_prev=\$ac_option
757 ac_prev=
758 continue
759 fi
760
761 case $ac_option in
762 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 *=) ac_optarg= ;;
764 *) ac_optarg=yes ;;
765 esac
766
767 # Accept the important Cygnus configure options, so we can diagnose typos.
768
769 case $ac_dashdash$ac_option in
770 --)
771 ac_dashdash=yes ;;
772
773 -bindir | --bindir | --bindi | --bind | --bin | --bi)
774 ac_prev=bindir ;;
775 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
776 bindir=$ac_optarg ;;
777
778 -build | --build | --buil | --bui | --bu)
779 ac_prev=build_alias ;;
780 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
781 build_alias=$ac_optarg ;;
782
783 -cache-file | --cache-file | --cache-fil | --cache-fi \
784 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
785 ac_prev=cache_file ;;
786 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
787 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
788 cache_file=$ac_optarg ;;
789
790 --config-cache | -C)
791 cache_file=config.cache ;;
792
793 -datadir | --datadir | --datadi | --datad)
794 ac_prev=datadir ;;
795 -datadir=* | --datadir=* | --datadi=* | --datad=*)
796 datadir=$ac_optarg ;;
797
798 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
799 | --dataroo | --dataro | --datar)
800 ac_prev=datarootdir ;;
801 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
802 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
803 datarootdir=$ac_optarg ;;
804
805 -disable-* | --disable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error $? "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
813 *"
814 "enable_$ac_useropt"
815 "*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=no ;;
820
821 -docdir | --docdir | --docdi | --doc | --do)
822 ac_prev=docdir ;;
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824 docdir=$ac_optarg ;;
825
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827 ac_prev=dvidir ;;
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829 dvidir=$ac_optarg ;;
830
831 -enable-* | --enable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error $? "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
839 *"
840 "enable_$ac_useropt"
841 "*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=\$ac_optarg ;;
846
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
855
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
859
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
866
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
871
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
877
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
884
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
889
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
894
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
901
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
906
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
913
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
918
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
922
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
926
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
930
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
939
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
944
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
951
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
958
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
975
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
980
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
985
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "with_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval with_$ac_useropt=\$ac_optarg ;;
1050
1051 -without-* | --without-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=no ;;
1066
1067 --x)
1068 # Obsolete; use --with-x.
1069 with_x=yes ;;
1070
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1077
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1084
1085 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1086 Try \`$0 --help' for more information"
1087 ;;
1088
1089 *=*)
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 case $ac_envvar in #(
1093 '' | [0-9]* | *[!_$as_cr_alnum]* )
1094 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1095 esac
1096 eval $ac_envvar=\$ac_optarg
1097 export $ac_envvar ;;
1098
1099 *)
1100 # FIXME: should be removed in autoconf 3.0.
1101 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1105 ;;
1106
1107 esac
1108 done
1109
1110 if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112 as_fn_error $? "missing argument to $ac_option"
1113 fi
1114
1115 if test -n "$ac_unrecognized_opts"; then
1116 case $enable_option_checking in
1117 no) ;;
1118 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1119 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1120 esac
1121 fi
1122
1123 # Check all directory arguments for consistency.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1128 do
1129 eval ac_val=\$$ac_var
1130 # Remove trailing slashes.
1131 case $ac_val in
1132 */ )
1133 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134 eval $ac_var=\$ac_val;;
1135 esac
1136 # Be sure to have absolute directory names.
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1142 done
1143
1144 # There might be people who depend on the old broken behavior: `$host'
1145 # used to hold the argument of --host etc.
1146 # FIXME: To remove some day.
1147 build=$build_alias
1148 host=$host_alias
1149 target=$target_alias
1150
1151 # FIXME: To remove some day.
1152 if test "x$host_alias" != x; then
1153 if test "x$build_alias" = x; then
1154 cross_compiling=maybe
1155 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1156 If a cross compiler is detected then cross compile mode will be used" >&2
1157 elif test "x$build_alias" != "x$host_alias"; then
1158 cross_compiling=yes
1159 fi
1160 fi
1161
1162 ac_tool_prefix=
1163 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164
1165 test "$silent" = yes && exec 6>/dev/null
1166
1167
1168 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1169 ac_ls_di=`ls -di .` &&
1170 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1171 as_fn_error $? "working directory cannot be determined"
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 as_fn_error $? "pwd does not report name of working directory"
1174
1175
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$as_myself" ||
1181 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$as_myself" : 'X\(//\)[^/]' \| \
1183 X"$as_myself" : 'X\(//\)$' \| \
1184 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1185 $as_echo X"$as_myself" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\).*/{
1199 s//\1/
1200 q
1201 }
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1206 fi
1207 else
1208 ac_srcdir_defaulted=no
1209 fi
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1213 fi
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1217 pwd)`
1218 # When building in place, set srcdir=.
1219 if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1221 fi
1222 # Remove unnecessary trailing slashes from srcdir.
1223 # Double slashes in file names in object file debugging info
1224 # mess up M-x gdb in Emacs.
1225 case $srcdir in
1226 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 esac
1228 for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233 done
1234
1235 #
1236 # Report the --help message.
1237 #
1238 if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
1243
1244 Usage: $0 [OPTION]... [VAR=VALUE]...
1245
1246 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247 VAR=VALUE. See below for descriptions of some of the useful variables.
1248
1249 Defaults for the options are specified in brackets.
1250
1251 Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking ...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261
1262 Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1267
1268 By default, \`make install' will install all the files in
1269 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271 for instance \`--prefix=\$HOME'.
1272
1273 For better control, use the options below.
1274
1275 Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295 _ACEOF
1296
1297 cat <<\_ACEOF
1298
1299 Program names:
1300 --program-prefix=PREFIX prepend PREFIX to installed program names
1301 --program-suffix=SUFFIX append SUFFIX to installed program names
1302 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1303
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
1313 esac
1314 cat <<\_ACEOF
1315
1316 Optional Features:
1317 --disable-option-checking ignore unrecognized --enable/--with options
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-multilib build many library versions (default)
1321 --enable-target-optspace optimize for space
1322 --enable-malloc-debugging indicate malloc debugging requested
1323 --enable-newlib-multithread enable support for multiple threads
1324 --enable-newlib-iconv enable iconv library support
1325 --enable-newlib-elix-level supply desired elix library level (1-4)
1326 --disable-newlib-io-float disable printf/scanf family float support
1327 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1328 --disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
1329 --disable-dependency-tracking speeds up one-time build
1330 --enable-dependency-tracking do not reject slow dependency extractors
1331 --enable-maintainer-mode enable make rules and dependencies not useful
1332 (and sometimes confusing) to the casual installer
1333
1334 Some influential environment variables:
1335 CCAS assembler compiler command (defaults to CC)
1336 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1337
1338 Use these variables to override the choices made by `configure' or to help
1339 it to find libraries and programs with nonstandard names/locations.
1340
1341 Report bugs to the package provider.
1342 _ACEOF
1343 ac_status=$?
1344 fi
1345
1346 if test "$ac_init_help" = "recursive"; then
1347 # If there are subdirs, report their specific --help.
1348 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1349 test -d "$ac_dir" ||
1350 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1351 continue
1352 ac_builddir=.
1353
1354 case "$ac_dir" in
1355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 *)
1357 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1358 # A ".." for each directory in $ac_dir_suffix.
1359 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1360 case $ac_top_builddir_sub in
1361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1363 esac ;;
1364 esac
1365 ac_abs_top_builddir=$ac_pwd
1366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1367 # for backward compatibility:
1368 ac_top_builddir=$ac_top_build_prefix
1369
1370 case $srcdir in
1371 .) # We are building in place.
1372 ac_srcdir=.
1373 ac_top_srcdir=$ac_top_builddir_sub
1374 ac_abs_top_srcdir=$ac_pwd ;;
1375 [\\/]* | ?:[\\/]* ) # Absolute name.
1376 ac_srcdir=$srcdir$ac_dir_suffix;
1377 ac_top_srcdir=$srcdir
1378 ac_abs_top_srcdir=$srcdir ;;
1379 *) # Relative name.
1380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1381 ac_top_srcdir=$ac_top_build_prefix$srcdir
1382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 esac
1384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385
1386 cd "$ac_dir" || { ac_status=$?; continue; }
1387 # Check for guested configure.
1388 if test -f "$ac_srcdir/configure.gnu"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1391 elif test -f "$ac_srcdir/configure"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure" --help=recursive
1394 else
1395 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 fi || ac_status=$?
1397 cd "$ac_pwd" || { ac_status=$?; break; }
1398 done
1399 fi
1400
1401 test -n "$ac_init_help" && exit $ac_status
1402 if $ac_init_version; then
1403 cat <<\_ACEOF
1404 newlib configure 3.3.0
1405 generated by GNU Autoconf 2.68
1406
1407 Copyright (C) 2010 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1410 _ACEOF
1411 exit
1412 fi
1413
1414 ## ------------------------ ##
1415 ## Autoconf initialization. ##
1416 ## ------------------------ ##
1417
1418 # ac_fn_c_try_compile LINENO
1419 # --------------------------
1420 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1421 ac_fn_c_try_compile ()
1422 {
1423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1424 rm -f conftest.$ac_objext
1425 if { { ac_try="$ac_compile"
1426 case "(($ac_try" in
1427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1428 *) ac_try_echo=$ac_try;;
1429 esac
1430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1431 $as_echo "$ac_try_echo"; } >&5
1432 (eval "$ac_compile") 2>conftest.err
1433 ac_status=$?
1434 if test -s conftest.err; then
1435 grep -v '^ *+' conftest.err >conftest.er1
1436 cat conftest.er1 >&5
1437 mv -f conftest.er1 conftest.err
1438 fi
1439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1440 test $ac_status = 0; } && {
1441 test -z "$ac_c_werror_flag" ||
1442 test ! -s conftest.err
1443 } && test -s conftest.$ac_objext; then :
1444 ac_retval=0
1445 else
1446 $as_echo "$as_me: failed program was:" >&5
1447 sed 's/^/| /' conftest.$ac_ext >&5
1448
1449 ac_retval=1
1450 fi
1451 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1452 as_fn_set_status $ac_retval
1453
1454 } # ac_fn_c_try_compile
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1458
1459 It was created by newlib $as_me 3.3.0, which was
1460 generated by GNU Autoconf 2.68. Invocation command line was
1461
1462 $ $0 $@
1463
1464 _ACEOF
1465 exec 5>>config.log
1466 {
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1471
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480
1481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488
1489 _ASUNAME
1490
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 $as_echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1499
1500 } >&5
1501
1502 cat >&5 <<_ACEOF
1503
1504
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1508
1509 _ACEOF
1510
1511
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1522 do
1523 for ac_arg
1524 do
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
1530 *\'*)
1531 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1535 2)
1536 as_fn_append ac_configure_args1 " '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
1538 ac_must_keep_next=false # Got value, back to normal.
1539 else
1540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1548 ;;
1549 -* ) ac_must_keep_next=true ;;
1550 esac
1551 fi
1552 as_fn_append ac_configure_args " '$ac_arg'"
1553 ;;
1554 esac
1555 done
1556 done
1557 { ac_configure_args0=; unset ac_configure_args0;}
1558 { ac_configure_args1=; unset ac_configure_args1;}
1559
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log. We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1567 {
1568 echo
1569
1570 $as_echo "## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##"
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1575 (
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1582 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1587 *) { eval $ac_var=; unset $ac_var;} ;;
1588 esac ;;
1589 esac
1590 done
1591 (set) 2>&1 |
1592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1594 sed -n \
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
1598 *)
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600 ;;
1601 esac |
1602 sort
1603 )
1604 echo
1605
1606 $as_echo "## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##"
1609 echo
1610 for ac_var in $ac_subst_vars
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 $as_echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619
1620 if test -n "$ac_subst_files"; then
1621 $as_echo "## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##"
1624 echo
1625 for ac_var in $ac_subst_files
1626 do
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 $as_echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1634 fi
1635
1636 if test -s confdefs.h; then
1637 $as_echo "## ----------- ##
1638 ## confdefs.h. ##
1639 ## ----------- ##"
1640 echo
1641 cat confdefs.h
1642 echo
1643 fi
1644 test "$ac_signal" != 0 &&
1645 $as_echo "$as_me: caught signal $ac_signal"
1646 $as_echo "$as_me: exit $exit_status"
1647 } >&5
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 exit $exit_status
1651 ' 0
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1654 done
1655 ac_signal=0
1656
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1659
1660 $as_echo "/* confdefs.h */" > confdefs.h
1661
1662 # Predefined preprocessor variables.
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 _ACEOF
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1670 _ACEOF
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 _ACEOF
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_STRING "$PACKAGE_STRING"
1678 _ACEOF
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 _ACEOF
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_URL "$PACKAGE_URL"
1686 _ACEOF
1687
1688
1689 # Let the site file select an alternate cache file if it wants to.
1690 # Prefer an explicitly selected file to automatically selected ones.
1691 ac_site_file1=NONE
1692 ac_site_file2=NONE
1693 if test -n "$CONFIG_SITE"; then
1694 # We do not want a PATH search for config.site.
1695 case $CONFIG_SITE in #((
1696 -*) ac_site_file1=./$CONFIG_SITE;;
1697 */*) ac_site_file1=$CONFIG_SITE;;
1698 *) ac_site_file1=./$CONFIG_SITE;;
1699 esac
1700 elif test "x$prefix" != xNONE; then
1701 ac_site_file1=$prefix/share/config.site
1702 ac_site_file2=$prefix/etc/config.site
1703 else
1704 ac_site_file1=$ac_default_prefix/share/config.site
1705 ac_site_file2=$ac_default_prefix/etc/config.site
1706 fi
1707 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1708 do
1709 test "x$ac_site_file" = xNONE && continue
1710 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1712 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1714 . "$ac_site_file" \
1715 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1717 as_fn_error $? "failed to load site script $ac_site_file
1718 See \`config.log' for more details" "$LINENO" 5; }
1719 fi
1720 done
1721
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special files
1724 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1725 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1727 $as_echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1732 fi
1733 else
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1735 $as_echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1737 fi
1738
1739 # Check that the precious variables saved in the cache have kept the same
1740 # value.
1741 ac_cache_corrupted=false
1742 for ac_var in $ac_precious_vars; do
1743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1744 eval ac_new_set=\$ac_env_${ac_var}_set
1745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1746 eval ac_new_val=\$ac_env_${ac_var}_value
1747 case $ac_old_set,$ac_new_set in
1748 set,)
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1750 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,set)
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1754 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,);;
1757 *)
1758 if test "x$ac_old_val" != "x$ac_new_val"; then
1759 # differences in whitespace do not lead to failure.
1760 ac_old_val_w=`echo x $ac_old_val`
1761 ac_new_val_w=`echo x $ac_new_val`
1762 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1764 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 ac_cache_corrupted=:
1766 else
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1768 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1769 eval $ac_var=\$ac_old_val
1770 fi
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1772 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1774 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1786 esac
1787 fi
1788 done
1789 if $ac_cache_corrupted; then
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1793 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1794 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1795 fi
1796 ## -------------------- ##
1797 ## Main body of script. ##
1798 ## -------------------- ##
1799
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807
1808
1809 ac_aux_dir=
1810 for ac_dir in ../../../.. "$srcdir"/../../../..; do
1811 if test -f "$ac_dir/install-sh"; then
1812 ac_aux_dir=$ac_dir
1813 ac_install_sh="$ac_aux_dir/install-sh -c"
1814 break
1815 elif test -f "$ac_dir/install.sh"; then
1816 ac_aux_dir=$ac_dir
1817 ac_install_sh="$ac_aux_dir/install.sh -c"
1818 break
1819 elif test -f "$ac_dir/shtool"; then
1820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/shtool install -c"
1822 break
1823 fi
1824 done
1825 if test -z "$ac_aux_dir"; then
1826 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../../.. \"$srcdir\"/../../../.." "$LINENO" 5
1827 fi
1828
1829 # These three variables are undocumented and unsupported,
1830 # and are intended to be withdrawn in a future Autoconf release.
1831 # They can cause serious problems if a builder's source tree is in a directory
1832 # whose full name contains unusual characters.
1833 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1834 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1835 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1836
1837
1838
1839
1840 # Make sure we can run config.sub.
1841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1842 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1843
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1845 $as_echo_n "checking build system type... " >&6; }
1846 if ${ac_cv_build+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 ac_build_alias=$build_alias
1850 test "x$ac_build_alias" = x &&
1851 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1852 test "x$ac_build_alias" = x &&
1853 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1854 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1855 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1856
1857 fi
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1859 $as_echo "$ac_cv_build" >&6; }
1860 case $ac_cv_build in
1861 *-*-*) ;;
1862 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1863 esac
1864 build=$ac_cv_build
1865 ac_save_IFS=$IFS; IFS='-'
1866 set x $ac_cv_build
1867 shift
1868 build_cpu=$1
1869 build_vendor=$2
1870 shift; shift
1871 # Remember, the first character of IFS is used to create $*,
1872 # except with old shells:
1873 build_os=$*
1874 IFS=$ac_save_IFS
1875 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1876
1877
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1879 $as_echo_n "checking host system type... " >&6; }
1880 if ${ac_cv_host+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 else
1883 if test "x$host_alias" = x; then
1884 ac_cv_host=$ac_cv_build
1885 else
1886 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1888 fi
1889
1890 fi
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1892 $as_echo "$ac_cv_host" >&6; }
1893 case $ac_cv_host in
1894 *-*-*) ;;
1895 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1896 esac
1897 host=$ac_cv_host
1898 ac_save_IFS=$IFS; IFS='-'
1899 set x $ac_cv_host
1900 shift
1901 host_cpu=$1
1902 host_vendor=$2
1903 shift; shift
1904 # Remember, the first character of IFS is used to create $*,
1905 # except with old shells:
1906 host_os=$*
1907 IFS=$ac_save_IFS
1908 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1909
1910
1911 am__api_version='1.11'
1912
1913 # Find a good install program. We prefer a C program (faster),
1914 # so one script is as good as another. But avoid the broken or
1915 # incompatible versions:
1916 # SysV /etc/install, /usr/sbin/install
1917 # SunOS /usr/etc/install
1918 # IRIX /sbin/install
1919 # AIX /bin/install
1920 # AmigaOS /C/install, which installs bootblocks on floppy discs
1921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1924 # OS/2's system install, which has a completely different semantic
1925 # ./install, which can be erroneously created by make from ./install.sh.
1926 # Reject install programs that cannot install multiple files.
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1928 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1929 if test -z "$INSTALL"; then
1930 if ${ac_cv_path_install+:} false; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 # Account for people who put trailing slashes in PATH elements.
1939 case $as_dir/ in #((
1940 ./ | .// | /[cC]/* | \
1941 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1942 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1943 /usr/ucb/* ) ;;
1944 *)
1945 # OSF1 and SCO ODT 3.0 have their own names for install.
1946 # Don't use installbsd from OSF since it installs stuff as root
1947 # by default.
1948 for ac_prog in ginstall scoinst install; do
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1951 if test $ac_prog = install &&
1952 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1953 # AIX install. It has an incompatible calling convention.
1954 :
1955 elif test $ac_prog = install &&
1956 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1957 # program-specific install script used by HP pwplus--don't use.
1958 :
1959 else
1960 rm -rf conftest.one conftest.two conftest.dir
1961 echo one > conftest.one
1962 echo two > conftest.two
1963 mkdir conftest.dir
1964 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1965 test -s conftest.one && test -s conftest.two &&
1966 test -s conftest.dir/conftest.one &&
1967 test -s conftest.dir/conftest.two
1968 then
1969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1970 break 3
1971 fi
1972 fi
1973 fi
1974 done
1975 done
1976 ;;
1977 esac
1978
1979 done
1980 IFS=$as_save_IFS
1981
1982 rm -rf conftest.one conftest.two conftest.dir
1983
1984 fi
1985 if test "${ac_cv_path_install+set}" = set; then
1986 INSTALL=$ac_cv_path_install
1987 else
1988 # As a last resort, use the slow shell script. Don't cache a
1989 # value for INSTALL within a source directory, because that will
1990 # break other packages using the cache if that directory is
1991 # removed, or if the value is a relative name.
1992 INSTALL=$ac_install_sh
1993 fi
1994 fi
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1996 $as_echo "$INSTALL" >&6; }
1997
1998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1999 # It thinks the first close brace ends the variable substitution.
2000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2001
2002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2003
2004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2005
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2007 $as_echo_n "checking whether build environment is sane... " >&6; }
2008 # Just in case
2009 sleep 1
2010 echo timestamp > conftest.file
2011 # Reject unsafe characters in $srcdir or the absolute working directory
2012 # name. Accept space and tab only in the latter.
2013 am_lf='
2014 '
2015 case `pwd` in
2016 *[\\\"\#\$\&\'\`$am_lf]*)
2017 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2018 esac
2019 case $srcdir in
2020 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2021 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2022 esac
2023
2024 # Do `set' in a subshell so we don't clobber the current shell's
2025 # arguments. Must try -L first in case configure is actually a
2026 # symlink; some systems play weird games with the mod time of symlinks
2027 # (eg FreeBSD returns the mod time of the symlink's containing
2028 # directory).
2029 if (
2030 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2031 if test "$*" = "X"; then
2032 # -L didn't work.
2033 set X `ls -t "$srcdir/configure" conftest.file`
2034 fi
2035 rm -f conftest.file
2036 if test "$*" != "X $srcdir/configure conftest.file" \
2037 && test "$*" != "X conftest.file $srcdir/configure"; then
2038
2039 # If neither matched, then we have a broken ls. This can happen
2040 # if, for instance, CONFIG_SHELL is bash and it inherits a
2041 # broken ls alias from the environment. This has actually
2042 # happened. Such a system could not be considered "sane".
2043 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2044 alias in your environment" "$LINENO" 5
2045 fi
2046
2047 test "$2" = conftest.file
2048 )
2049 then
2050 # Ok.
2051 :
2052 else
2053 as_fn_error $? "newly created file is older than distributed files!
2054 Check your system clock" "$LINENO" 5
2055 fi
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2057 $as_echo "yes" >&6; }
2058 test "$program_prefix" != NONE &&
2059 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2060 # Use a double $ so make ignores it.
2061 test "$program_suffix" != NONE &&
2062 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2063 # Double any \ or $.
2064 # By default was `s,x,x', remove it if useless.
2065 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2066 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2067
2068 # expand $ac_aux_dir to an absolute path
2069 am_aux_dir=`cd $ac_aux_dir && pwd`
2070
2071 if test x"${MISSING+set}" != xset; then
2072 case $am_aux_dir in
2073 *\ * | *\ *)
2074 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2075 *)
2076 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2077 esac
2078 fi
2079 # Use eval to expand $SHELL
2080 if eval "$MISSING --run true"; then
2081 am_missing_run="$MISSING --run "
2082 else
2083 am_missing_run=
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2085 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2086 fi
2087
2088 if test x"${install_sh}" != xset; then
2089 case $am_aux_dir in
2090 *\ * | *\ *)
2091 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2092 *)
2093 install_sh="\${SHELL} $am_aux_dir/install-sh"
2094 esac
2095 fi
2096
2097 # Installed binaries are usually stripped using `strip' when the user
2098 # run `make install-strip'. However `strip' might not be the right
2099 # tool to use in cross-compilation environments, therefore Automake
2100 # will honor the `STRIP' environment variable to overrule this program.
2101 if test "$cross_compiling" != no; then
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}strip; ac_word=$2
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2106 $as_echo_n "checking for $ac_word... " >&6; }
2107 if ${ac_cv_prog_STRIP+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 if test -n "$STRIP"; then
2111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2115 do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2123 fi
2124 done
2125 done
2126 IFS=$as_save_IFS
2127
2128 fi
2129 fi
2130 STRIP=$ac_cv_prog_STRIP
2131 if test -n "$STRIP"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2133 $as_echo "$STRIP" >&6; }
2134 else
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2136 $as_echo "no" >&6; }
2137 fi
2138
2139
2140 fi
2141 if test -z "$ac_cv_prog_STRIP"; then
2142 ac_ct_STRIP=$STRIP
2143 # Extract the first word of "strip", so it can be a program name with args.
2144 set dummy strip; ac_word=$2
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2146 $as_echo_n "checking for $ac_word... " >&6; }
2147 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 if test -n "$ac_ct_STRIP"; then
2151 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160 ac_cv_prog_ac_ct_STRIP="strip"
2161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 break 2
2163 fi
2164 done
2165 done
2166 IFS=$as_save_IFS
2167
2168 fi
2169 fi
2170 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2171 if test -n "$ac_ct_STRIP"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2173 $as_echo "$ac_ct_STRIP" >&6; }
2174 else
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2176 $as_echo "no" >&6; }
2177 fi
2178
2179 if test "x$ac_ct_STRIP" = x; then
2180 STRIP=":"
2181 else
2182 case $cross_compiling:$ac_tool_warned in
2183 yes:)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2186 ac_tool_warned=yes ;;
2187 esac
2188 STRIP=$ac_ct_STRIP
2189 fi
2190 else
2191 STRIP="$ac_cv_prog_STRIP"
2192 fi
2193
2194 fi
2195 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2196
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2198 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2199 if test -z "$MKDIR_P"; then
2200 if ${ac_cv_path_mkdir+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2205 do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_prog in mkdir gmkdir; do
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2211 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2212 'mkdir (GNU coreutils) '* | \
2213 'mkdir (coreutils) '* | \
2214 'mkdir (fileutils) '4.1*)
2215 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2216 break 3;;
2217 esac
2218 done
2219 done
2220 done
2221 IFS=$as_save_IFS
2222
2223 fi
2224
2225 test -d ./--version && rmdir ./--version
2226 if test "${ac_cv_path_mkdir+set}" = set; then
2227 MKDIR_P="$ac_cv_path_mkdir -p"
2228 else
2229 # As a last resort, use the slow shell script. Don't cache a
2230 # value for MKDIR_P within a source directory, because that will
2231 # break other packages using the cache if that directory is
2232 # removed, or if the value is a relative name.
2233 MKDIR_P="$ac_install_sh -d"
2234 fi
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2237 $as_echo "$MKDIR_P" >&6; }
2238
2239 mkdir_p="$MKDIR_P"
2240 case $mkdir_p in
2241 [\\/$]* | ?:[\\/]*) ;;
2242 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2243 esac
2244
2245 for ac_prog in gawk mawk nawk awk
2246 do
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2250 $as_echo_n "checking for $ac_word... " >&6; }
2251 if ${ac_cv_prog_AWK+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 if test -n "$AWK"; then
2255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 ac_cv_prog_AWK="$ac_prog"
2265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2267 fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272 fi
2273 fi
2274 AWK=$ac_cv_prog_AWK
2275 if test -n "$AWK"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2277 $as_echo "$AWK" >&6; }
2278 else
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2280 $as_echo "no" >&6; }
2281 fi
2282
2283
2284 test -n "$AWK" && break
2285 done
2286
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2288 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2289 set x ${MAKE-make}
2290 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2291 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2292 $as_echo_n "(cached) " >&6
2293 else
2294 cat >conftest.make <<\_ACEOF
2295 SHELL = /bin/sh
2296 all:
2297 @echo '@@@%%%=$(MAKE)=@@@%%%'
2298 _ACEOF
2299 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2300 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2301 *@@@%%%=?*=@@@%%%*)
2302 eval ac_cv_prog_make_${ac_make}_set=yes;;
2303 *)
2304 eval ac_cv_prog_make_${ac_make}_set=no;;
2305 esac
2306 rm -f conftest.make
2307 fi
2308 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2310 $as_echo "yes" >&6; }
2311 SET_MAKE=
2312 else
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2314 $as_echo "no" >&6; }
2315 SET_MAKE="MAKE=${MAKE-make}"
2316 fi
2317
2318 rm -rf .tst 2>/dev/null
2319 mkdir .tst 2>/dev/null
2320 if test -d .tst; then
2321 am__leading_dot=.
2322 else
2323 am__leading_dot=_
2324 fi
2325 rmdir .tst 2>/dev/null
2326
2327 DEPDIR="${am__leading_dot}deps"
2328
2329 ac_config_commands="$ac_config_commands depfiles"
2330
2331
2332 am_make=${MAKE-make}
2333 cat > confinc << 'END'
2334 am__doit:
2335 @echo this is the am__doit target
2336 .PHONY: am__doit
2337 END
2338 # If we don't find an include directive, just comment out the code.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2340 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2341 am__include="#"
2342 am__quote=
2343 _am_result=none
2344 # First try GNU make style include.
2345 echo "include confinc" > confmf
2346 # Ignore all kinds of additional output from `make'.
2347 case `$am_make -s -f confmf 2> /dev/null` in #(
2348 *the\ am__doit\ target*)
2349 am__include=include
2350 am__quote=
2351 _am_result=GNU
2352 ;;
2353 esac
2354 # Now try BSD make style include.
2355 if test "$am__include" = "#"; then
2356 echo '.include "confinc"' > confmf
2357 case `$am_make -s -f confmf 2> /dev/null` in #(
2358 *the\ am__doit\ target*)
2359 am__include=.include
2360 am__quote="\""
2361 _am_result=BSD
2362 ;;
2363 esac
2364 fi
2365
2366
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2368 $as_echo "$_am_result" >&6; }
2369 rm -f confinc confmf
2370
2371 # Check whether --enable-dependency-tracking was given.
2372 if test "${enable_dependency_tracking+set}" = set; then :
2373 enableval=$enable_dependency_tracking;
2374 fi
2375
2376 if test "x$enable_dependency_tracking" != xno; then
2377 am_depcomp="$ac_aux_dir/depcomp"
2378 AMDEPBACKSLASH='\'
2379 am__nodep='_no'
2380 fi
2381 if test "x$enable_dependency_tracking" != xno; then
2382 AMDEP_TRUE=
2383 AMDEP_FALSE='#'
2384 else
2385 AMDEP_TRUE='#'
2386 AMDEP_FALSE=
2387 fi
2388
2389
2390
2391 # Check whether --enable-multilib was given.
2392 if test "${enable_multilib+set}" = set; then :
2393 enableval=$enable_multilib; case "${enableval}" in
2394 yes) multilib=yes ;;
2395 no) multilib=no ;;
2396 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2397 esac
2398 else
2399 multilib=yes
2400 fi
2401
2402 # Check whether --enable-target-optspace was given.
2403 if test "${enable_target_optspace+set}" = set; then :
2404 enableval=$enable_target_optspace; case "${enableval}" in
2405 yes) target_optspace=yes ;;
2406 no) target_optspace=no ;;
2407 *) as_fn_error $? "bad value ${enableval} for target-optspace option" "$LINENO" 5 ;;
2408 esac
2409 else
2410 target_optspace=
2411 fi
2412
2413 # Check whether --enable-malloc-debugging was given.
2414 if test "${enable_malloc_debugging+set}" = set; then :
2415 enableval=$enable_malloc_debugging; case "${enableval}" in
2416 yes) malloc_debugging=yes ;;
2417 no) malloc_debugging=no ;;
2418 *) as_fn_error $? "bad value ${enableval} for malloc-debugging option" "$LINENO" 5 ;;
2419 esac
2420 else
2421 malloc_debugging=
2422 fi
2423
2424 # Check whether --enable-newlib-multithread was given.
2425 if test "${enable_newlib_multithread+set}" = set; then :
2426 enableval=$enable_newlib_multithread; case "${enableval}" in
2427 yes) newlib_multithread=yes ;;
2428 no) newlib_multithread=no ;;
2429 *) as_fn_error $? "bad value ${enableval} for newlib-multithread option" "$LINENO" 5 ;;
2430 esac
2431 else
2432 newlib_multithread=yes
2433 fi
2434
2435 # Check whether --enable-newlib-iconv was given.
2436 if test "${enable_newlib_iconv+set}" = set; then :
2437 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2438 case "${enableval}" in
2439 yes) newlib_iconv=yes ;;
2440 no) newlib_iconv=no ;;
2441 *) as_fn_error $? "bad value ${enableval} for newlib-iconv option" "$LINENO" 5 ;;
2442 esac
2443 fi
2444 else
2445 newlib_iconv=${newlib_iconv}
2446 fi
2447
2448 # Check whether --enable-newlib-elix-level was given.
2449 if test "${enable_newlib_elix_level+set}" = set; then :
2450 enableval=$enable_newlib_elix_level; case "${enableval}" in
2451 0) newlib_elix_level=0 ;;
2452 1) newlib_elix_level=1 ;;
2453 2) newlib_elix_level=2 ;;
2454 3) newlib_elix_level=3 ;;
2455 4) newlib_elix_level=4 ;;
2456 *) as_fn_error $? "bad value ${enableval} for newlib-elix-level option" "$LINENO" 5 ;;
2457 esac
2458 else
2459 newlib_elix_level=0
2460 fi
2461
2462 # Check whether --enable-newlib-io-float was given.
2463 if test "${enable_newlib_io_float+set}" = set; then :
2464 enableval=$enable_newlib_io_float; case "${enableval}" in
2465 yes) newlib_io_float=yes ;;
2466 no) newlib_io_float=no ;;
2467 *) as_fn_error $? "bad value ${enableval} for newlib-io-float option" "$LINENO" 5 ;;
2468 esac
2469 else
2470 newlib_io_float=yes
2471 fi
2472
2473 # Check whether --enable-newlib-supplied-syscalls was given.
2474 if test "${enable_newlib_supplied_syscalls+set}" = set; then :
2475 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2476 yes) newlib_may_supply_syscalls=yes ;;
2477 no) newlib_may_supply_syscalls=no ;;
2478 *) as_fn_error $? "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;;
2479 esac
2480 else
2481 newlib_may_supply_syscalls=yes
2482 fi
2483
2484 if test x${newlib_may_supply_syscalls} = xyes; then
2485 MAY_SUPPLY_SYSCALLS_TRUE=
2486 MAY_SUPPLY_SYSCALLS_FALSE='#'
2487 else
2488 MAY_SUPPLY_SYSCALLS_TRUE='#'
2489 MAY_SUPPLY_SYSCALLS_FALSE=
2490 fi
2491
2492
2493 # Check whether --enable-newlib-fno-builtin was given.
2494 if test "${enable_newlib_fno_builtin+set}" = set; then :
2495 enableval=$enable_newlib_fno_builtin; case "${enableval}" in
2496 yes) newlib_fno_builtin=yes ;;
2497 no) newlib_fno_builtin=no ;;
2498 *) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
2499 esac
2500 else
2501 newlib_fno_builtin=
2502 fi
2503
2504
2505
2506 test -z "${with_target_subdir}" && with_target_subdir=.
2507
2508 if test "${srcdir}" = "."; then
2509 if test "${with_target_subdir}" != "."; then
2510 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2511 else
2512 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2513 fi
2514 else
2515 newlib_basedir="${srcdir}/../../.."
2516 fi
2517
2518
2519
2520
2521 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2522 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2523 # is not polluted with repeated "-I."
2524 am__isrc=' -I$(srcdir)'
2525 # test to see if srcdir already configured
2526 if test -f $srcdir/config.status; then
2527 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2528 fi
2529 fi
2530
2531 # test whether we have cygpath
2532 if test -z "$CYGPATH_W"; then
2533 if (cygpath --version) >/dev/null 2>/dev/null; then
2534 CYGPATH_W='cygpath -w'
2535 else
2536 CYGPATH_W=echo
2537 fi
2538 fi
2539
2540
2541 # Define the identity of the package.
2542 PACKAGE='newlib'
2543 VERSION='3.3.0'
2544
2545
2546 # Some tools Automake needs.
2547
2548 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2549
2550
2551 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2552
2553
2554 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2555
2556
2557 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2558
2559
2560 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2561
2562 # We need awk for the "check" target. The system "awk" is bad on
2563 # some platforms.
2564 # Always define AMTAR for backward compatibility. Yes, it's still used
2565 # in the wild :-( We should find a proper way to deprecate it ...
2566 AMTAR='$${TAR-tar}'
2567
2568 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2569
2570
2571
2572
2573
2574
2575 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
2576 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
2577 # are probably using a cross compiler, which will not be able to fully
2578 # link an executable. This should really be fixed in autoconf
2579 # itself.
2580
2581
2582
2583
2584
2585
2586
2587 # Extract the first word of "gcc", so it can be a program name with args.
2588 set dummy gcc; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_CC+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="gcc"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2617 $as_echo "$CC" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623
2624
2625 depcc="$CC" am_compiler_list=
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2628 $as_echo_n "checking dependency style of $depcc... " >&6; }
2629 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2633 # We make a subdir and do the tests there. Otherwise we can end up
2634 # making bogus files that we don't know about and never remove. For
2635 # instance it was reported that on HP-UX the gcc test will end up
2636 # making a dummy file named `D' -- because `-MD' means `put the output
2637 # in D'.
2638 rm -rf conftest.dir
2639 mkdir conftest.dir
2640 # Copy depcomp to subdir because otherwise we won't find it if we're
2641 # using a relative directory.
2642 cp "$am_depcomp" conftest.dir
2643 cd conftest.dir
2644 # We will build objects and dependencies in a subdirectory because
2645 # it helps to detect inapplicable dependency modes. For instance
2646 # both Tru64's cc and ICC support -MD to output dependencies as a
2647 # side effect of compilation, but ICC will put the dependencies in
2648 # the current directory while Tru64 will put them in the object
2649 # directory.
2650 mkdir sub
2651
2652 am_cv_CC_dependencies_compiler_type=none
2653 if test "$am_compiler_list" = ""; then
2654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2655 fi
2656 am__universal=false
2657 case " $depcc " in #(
2658 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2659 esac
2660
2661 for depmode in $am_compiler_list; do
2662 # Setup a source with many dependencies, because some compilers
2663 # like to wrap large dependency lists on column 80 (with \), and
2664 # we should not choose a depcomp mode which is confused by this.
2665 #
2666 # We need to recreate these files for each test, as the compiler may
2667 # overwrite some of them when testing with obscure command lines.
2668 # This happens at least with the AIX C compiler.
2669 : > sub/conftest.c
2670 for i in 1 2 3 4 5 6; do
2671 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2673 # Solaris 8's {/usr,}/bin/sh.
2674 touch sub/conftst$i.h
2675 done
2676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2677
2678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2679 # mode. It turns out that the SunPro C++ compiler does not properly
2680 # handle `-M -o', and we need to detect this. Also, some Intel
2681 # versions had trouble with output in subdirs
2682 am__obj=sub/conftest.${OBJEXT-o}
2683 am__minus_obj="-o $am__obj"
2684 case $depmode in
2685 gcc)
2686 # This depmode causes a compiler race in universal mode.
2687 test "$am__universal" = false || continue
2688 ;;
2689 nosideeffect)
2690 # after this tag, mechanisms are not by side-effect, so they'll
2691 # only be used when explicitly requested
2692 if test "x$enable_dependency_tracking" = xyes; then
2693 continue
2694 else
2695 break
2696 fi
2697 ;;
2698 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
2699 # This compiler won't grok `-c -o', but also, the minuso test has
2700 # not run yet. These depmodes are late enough in the game, and
2701 # so weak that their functioning should not be impacted.
2702 am__obj=conftest.${OBJEXT-o}
2703 am__minus_obj=
2704 ;;
2705 none) break ;;
2706 esac
2707 if depmode=$depmode \
2708 source=sub/conftest.c object=$am__obj \
2709 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2710 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2711 >/dev/null 2>conftest.err &&
2712 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2713 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2714 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2715 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2716 # icc doesn't choke on unknown options, it will just issue warnings
2717 # or remarks (even with -Werror). So we grep stderr for any message
2718 # that says an option was ignored or not supported.
2719 # When given -MP, icc 7.0 and 7.1 complain thusly:
2720 # icc: Command line warning: ignoring option '-M'; no argument required
2721 # The diagnosis changed in icc 8.0:
2722 # icc: Command line remark: option '-MP' not supported
2723 if (grep 'ignoring option' conftest.err ||
2724 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2725 am_cv_CC_dependencies_compiler_type=$depmode
2726 break
2727 fi
2728 fi
2729 done
2730
2731 cd ..
2732 rm -rf conftest.dir
2733 else
2734 am_cv_CC_dependencies_compiler_type=none
2735 fi
2736
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2739 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2740 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2741
2742 if
2743 test "x$enable_dependency_tracking" != xno \
2744 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2745 am__fastdepCC_TRUE=
2746 am__fastdepCC_FALSE='#'
2747 else
2748 am__fastdepCC_TRUE='#'
2749 am__fastdepCC_FALSE=
2750 fi
2751
2752
2753 if test -z "$CC"; then
2754 # Extract the first word of "cc", so it can be a program name with args.
2755 set dummy cc; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_CC+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 ac_prog_rejected=no
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2773 ac_prog_rejected=yes
2774 continue
2775 fi
2776 ac_cv_prog_CC="cc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783
2784 if test $ac_prog_rejected = yes; then
2785 # We found a bogon in the path, so make sure we never use it.
2786 set dummy $ac_cv_prog_CC
2787 shift
2788 if test $# != 0; then
2789 # We chose a different compiler from the bogus one.
2790 # However, it has the same basename, so the bogon will be chosen
2791 # first if we set CC to just the basename; use the full file name.
2792 shift
2793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2794 fi
2795 fi
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
2809 fi
2810
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
2812 $as_echo_n "checking whether we are using GNU C... " >&6; }
2813 if ${ac_cv_c_compiler_gnu+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 cat > conftest.c <<EOF
2817 #ifdef __GNUC__
2818 yes;
2819 #endif
2820 EOF
2821 if { ac_try='${CC-cc} -E conftest.c'
2822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2826 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
2827 ac_cv_c_compiler_gnu=yes
2828 else
2829 ac_cv_c_compiler_gnu=no
2830 fi
2831 fi
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2833 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2834
2835 if test $ac_cv_c_compiler_gnu = yes; then
2836 GCC=yes
2837 ac_test_CFLAGS="${CFLAGS+set}"
2838 ac_save_CFLAGS="$CFLAGS"
2839 ac_test_CFLAGS=${CFLAGS+set}
2840 ac_save_CFLAGS=$CFLAGS
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2842 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2843 if ${ac_cv_prog_cc_g+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 ac_save_c_werror_flag=$ac_c_werror_flag
2847 ac_c_werror_flag=yes
2848 ac_cv_prog_cc_g=no
2849 CFLAGS="-g"
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2852
2853 int
2854 main ()
2855 {
2856
2857 ;
2858 return 0;
2859 }
2860 _ACEOF
2861 if ac_fn_c_try_compile "$LINENO"; then :
2862 ac_cv_prog_cc_g=yes
2863 else
2864 CFLAGS=""
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2867
2868 int
2869 main ()
2870 {
2871
2872 ;
2873 return 0;
2874 }
2875 _ACEOF
2876 if ac_fn_c_try_compile "$LINENO"; then :
2877
2878 else
2879 ac_c_werror_flag=$ac_save_c_werror_flag
2880 CFLAGS="-g"
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2883
2884 int
2885 main ()
2886 {
2887
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 if ac_fn_c_try_compile "$LINENO"; then :
2893 ac_cv_prog_cc_g=yes
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 fi
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 fi
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 ac_c_werror_flag=$ac_save_c_werror_flag
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2903 $as_echo "$ac_cv_prog_cc_g" >&6; }
2904 if test "$ac_test_CFLAGS" = set; then
2905 CFLAGS=$ac_save_CFLAGS
2906 elif test $ac_cv_prog_cc_g = yes; then
2907 if test "$GCC" = yes; then
2908 CFLAGS="-g -O2"
2909 else
2910 CFLAGS="-g"
2911 fi
2912 else
2913 if test "$GCC" = yes; then
2914 CFLAGS="-O2"
2915 else
2916 CFLAGS=
2917 fi
2918 fi
2919 if test "$ac_test_CFLAGS" = set; then
2920 CFLAGS="$ac_save_CFLAGS"
2921 elif test $ac_cv_prog_cc_g = yes; then
2922 CFLAGS="-g -O2"
2923 else
2924 CFLAGS="-O2"
2925 fi
2926 else
2927 GCC=
2928 test "${CFLAGS+set}" = set || CFLAGS="-g"
2929 fi
2930
2931
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}as; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AS+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$AS"; then
2941 ac_cv_prog_AS="$AS" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_AS="${ac_tool_prefix}as"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 AS=$ac_cv_prog_AS
2961 if test -n "$AS"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2963 $as_echo "$AS" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970 fi
2971 if test -z "$ac_cv_prog_AS"; then
2972 ac_ct_AS=$AS
2973 # Extract the first word of "as", so it can be a program name with args.
2974 set dummy as; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$ac_ct_AS"; then
2981 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_ac_ct_AS="as"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3001 if test -n "$ac_ct_AS"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3003 $as_echo "$ac_ct_AS" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009 if test "x$ac_ct_AS" = x; then
3010 AS=""
3011 else
3012 case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018 AS=$ac_ct_AS
3019 fi
3020 else
3021 AS="$ac_cv_prog_AS"
3022 fi
3023
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}ar; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_AR+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$AR"; then
3033 ac_cv_prog_AR="$AR" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_AR="${ac_tool_prefix}ar"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 AR=$ac_cv_prog_AR
3053 if test -n "$AR"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3055 $as_echo "$AR" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$ac_cv_prog_AR"; then
3064 ac_ct_AR=$AR
3065 # Extract the first word of "ar", so it can be a program name with args.
3066 set dummy ar; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$ac_ct_AR"; then
3073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_AR="ar"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3093 if test -n "$ac_ct_AR"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3095 $as_echo "$ac_ct_AR" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101 if test "x$ac_ct_AR" = x; then
3102 AR=""
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3109 esac
3110 AR=$ac_ct_AR
3111 fi
3112 else
3113 AR="$ac_cv_prog_AR"
3114 fi
3115
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_RANLIB+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$RANLIB"; then
3125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 RANLIB=$ac_cv_prog_RANLIB
3145 if test -n "$RANLIB"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3147 $as_echo "$RANLIB" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 fi
3155 if test -z "$ac_cv_prog_RANLIB"; then
3156 ac_ct_RANLIB=$RANLIB
3157 # Extract the first word of "ranlib", so it can be a program name with args.
3158 set dummy ranlib; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$ac_ct_RANLIB"; then
3165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_ac_ct_RANLIB="ranlib"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3185 if test -n "$ac_ct_RANLIB"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3187 $as_echo "$ac_ct_RANLIB" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193 if test "x$ac_ct_RANLIB" = x; then
3194 RANLIB=":"
3195 else
3196 case $cross_compiling:$ac_tool_warned in
3197 yes:)
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200 ac_tool_warned=yes ;;
3201 esac
3202 RANLIB=$ac_ct_RANLIB
3203 fi
3204 else
3205 RANLIB="$ac_cv_prog_RANLIB"
3206 fi
3207
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_READELF+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$READELF"; then
3217 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3226 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 READELF=$ac_cv_prog_READELF
3237 if test -n "$READELF"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3239 $as_echo "$READELF" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 if test -z "$ac_cv_prog_READELF"; then
3248 ac_ct_READELF=$READELF
3249 # Extract the first word of "readelf", so it can be a program name with args.
3250 set dummy readelf; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$ac_ct_READELF"; then
3257 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_ac_ct_READELF="readelf"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3277 if test -n "$ac_ct_READELF"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3279 $as_echo "$ac_ct_READELF" >&6; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285 if test "x$ac_ct_READELF" = x; then
3286 READELF=":"
3287 else
3288 case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3293 esac
3294 READELF=$ac_ct_READELF
3295 fi
3296 else
3297 READELF="$ac_cv_prog_READELF"
3298 fi
3299
3300
3301
3302
3303 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3304 ac_given_INSTALL=$INSTALL
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3308 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3309 # Check whether --enable-maintainer-mode was given.
3310 if test "${enable_maintainer_mode+set}" = set; then :
3311 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3312 else
3313 USE_MAINTAINER_MODE=no
3314 fi
3315
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3317 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3318 if test $USE_MAINTAINER_MODE = yes; then
3319 MAINTAINER_MODE_TRUE=
3320 MAINTAINER_MODE_FALSE='#'
3321 else
3322 MAINTAINER_MODE_TRUE='#'
3323 MAINTAINER_MODE_FALSE=
3324 fi
3325
3326 MAINT=$MAINTAINER_MODE_TRUE
3327
3328
3329 # By default we simply use the C compiler to build assembly code.
3330
3331 test "${CCAS+set}" = set || CCAS=$CC
3332 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3333
3334
3335
3336
3337 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3338 # at least currently, we never actually build a program, so we never
3339 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3340 # fails, because we are probably configuring with a cross compiler
3341 # which can't create executables. So we include AC_EXEEXT to keep
3342 # automake happy, but we don't execute it, since we don't care about
3343 # the result.
3344 if false; then
3345
3346 dummy_var=1
3347 fi
3348
3349 . ${newlib_basedir}/configure.host
3350
3351 NEWLIB_CFLAGS=${newlib_cflags}
3352
3353
3354 NO_INCLUDE_LIST=${noinclude}
3355
3356
3357 LDFLAGS=${ldflags}
3358
3359
3360 if test x${newlib_elix_level} = x0; then
3361 ELIX_LEVEL_0_TRUE=
3362 ELIX_LEVEL_0_FALSE='#'
3363 else
3364 ELIX_LEVEL_0_TRUE='#'
3365 ELIX_LEVEL_0_FALSE=
3366 fi
3367
3368 if test x${newlib_elix_level} = x1; then
3369 ELIX_LEVEL_1_TRUE=
3370 ELIX_LEVEL_1_FALSE='#'
3371 else
3372 ELIX_LEVEL_1_TRUE='#'
3373 ELIX_LEVEL_1_FALSE=
3374 fi
3375
3376 if test x${newlib_elix_level} = x2; then
3377 ELIX_LEVEL_2_TRUE=
3378 ELIX_LEVEL_2_FALSE='#'
3379 else
3380 ELIX_LEVEL_2_TRUE='#'
3381 ELIX_LEVEL_2_FALSE=
3382 fi
3383
3384 if test x${newlib_elix_level} = x3; then
3385 ELIX_LEVEL_3_TRUE=
3386 ELIX_LEVEL_3_FALSE='#'
3387 else
3388 ELIX_LEVEL_3_TRUE='#'
3389 ELIX_LEVEL_3_FALSE=
3390 fi
3391
3392 if test x${newlib_elix_level} = x4; then
3393 ELIX_LEVEL_4_TRUE=
3394 ELIX_LEVEL_4_FALSE='#'
3395 else
3396 ELIX_LEVEL_4_TRUE='#'
3397 ELIX_LEVEL_4_FALSE=
3398 fi
3399
3400
3401 if test x${use_libtool} = xyes; then
3402 USE_LIBTOOL_TRUE=
3403 USE_LIBTOOL_FALSE='#'
3404 else
3405 USE_LIBTOOL_TRUE='#'
3406 USE_LIBTOOL_FALSE=
3407 fi
3408
3409
3410 # Emit any target-specific warnings.
3411 if test "x${newlib_msg_warn}" != "x"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${newlib_msg_warn}" >&5
3413 $as_echo "$as_me: WARNING: ${newlib_msg_warn}" >&2;}
3414 fi
3415
3416 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3417 # use oext, which is set in configure.host based on the target platform.
3418 OBJEXT=${oext}
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430 ac_config_files="$ac_config_files Makefile"
3431
3432 cat >confcache <<\_ACEOF
3433 # This file is a shell script that caches the results of configure
3434 # tests run on this system so they can be shared between configure
3435 # scripts and configure runs, see configure's option --config-cache.
3436 # It is not useful on other systems. If it contains results you don't
3437 # want to keep, you may remove or edit it.
3438 #
3439 # config.status only pays attention to the cache file if you give it
3440 # the --recheck option to rerun configure.
3441 #
3442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3444 # following values.
3445
3446 _ACEOF
3447
3448 # The following way of writing the cache mishandles newlines in values,
3449 # but we know of no workaround that is simple, portable, and efficient.
3450 # So, we kill variables containing newlines.
3451 # Ultrix sh set writes to stderr and can't be redirected directly,
3452 # and sets the high bit in the cache file unless we assign to the vars.
3453 (
3454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3455 eval ac_val=\$$ac_var
3456 case $ac_val in #(
3457 *${as_nl}*)
3458 case $ac_var in #(
3459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3460 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3461 esac
3462 case $ac_var in #(
3463 _ | IFS | as_nl) ;; #(
3464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3465 *) { eval $ac_var=; unset $ac_var;} ;;
3466 esac ;;
3467 esac
3468 done
3469
3470 (set) 2>&1 |
3471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3472 *${as_nl}ac_space=\ *)
3473 # `set' does not quote correctly, so add quotes: double-quote
3474 # substitution turns \\\\ into \\, and sed turns \\ into \.
3475 sed -n \
3476 "s/'/'\\\\''/g;
3477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3478 ;; #(
3479 *)
3480 # `set' quotes correctly as required by POSIX, so do not add quotes.
3481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3482 ;;
3483 esac |
3484 sort
3485 ) |
3486 sed '
3487 /^ac_cv_env_/b end
3488 t clear
3489 :clear
3490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3491 t end
3492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3493 :end' >>confcache
3494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3495 if test -w "$cache_file"; then
3496 if test "x$cache_file" != "x/dev/null"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3498 $as_echo "$as_me: updating cache $cache_file" >&6;}
3499 if test ! -f "$cache_file" || test -h "$cache_file"; then
3500 cat confcache >"$cache_file"
3501 else
3502 case $cache_file in #(
3503 */* | ?:*)
3504 mv -f confcache "$cache_file"$$ &&
3505 mv -f "$cache_file"$$ "$cache_file" ;; #(
3506 *)
3507 mv -f confcache "$cache_file" ;;
3508 esac
3509 fi
3510 fi
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3513 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3514 fi
3515 fi
3516 rm -f confcache
3517
3518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3519 # Let make expand exec_prefix.
3520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3521
3522 # Transform confdefs.h into DEFS.
3523 # Protect against shell expansion while executing Makefile rules.
3524 # Protect against Makefile macro expansion.
3525 #
3526 # If the first sed substitution is executed (which looks for macros that
3527 # take arguments), then branch to the quote section. Otherwise,
3528 # look for a macro that doesn't take arguments.
3529 ac_script='
3530 :mline
3531 /\\$/{
3532 N
3533 s,\\\n,,
3534 b mline
3535 }
3536 t clear
3537 :clear
3538 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3539 t quote
3540 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3541 t quote
3542 b any
3543 :quote
3544 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3545 s/\[/\\&/g
3546 s/\]/\\&/g
3547 s/\$/$$/g
3548 H
3549 :any
3550 ${
3551 g
3552 s/^\n//
3553 s/\n/ /g
3554 p
3555 }
3556 '
3557 DEFS=`sed -n "$ac_script" confdefs.h`
3558
3559
3560 ac_libobjs=
3561 ac_ltlibobjs=
3562 U=
3563 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3564 # 1. Remove the extension, and $U if already installed.
3565 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3566 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3567 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3568 # will be set to the directory where LIBOBJS objects are built.
3569 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3570 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3571 done
3572 LIBOBJS=$ac_libobjs
3573
3574 LTLIBOBJS=$ac_ltlibobjs
3575
3576
3577 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
3578 as_fn_error $? "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
3579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3580 fi
3581
3582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3583 as_fn_error $? "conditional \"AMDEP\" was never defined.
3584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3585 fi
3586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3587 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
3588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3589 fi
3590 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3591 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
3592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3593 fi
3594 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
3595 as_fn_error $? "conditional \"ELIX_LEVEL_0\" was never defined.
3596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3597 fi
3598 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
3599 as_fn_error $? "conditional \"ELIX_LEVEL_1\" was never defined.
3600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3601 fi
3602 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
3603 as_fn_error $? "conditional \"ELIX_LEVEL_2\" was never defined.
3604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3605 fi
3606 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
3607 as_fn_error $? "conditional \"ELIX_LEVEL_3\" was never defined.
3608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3609 fi
3610 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
3611 as_fn_error $? "conditional \"ELIX_LEVEL_4\" was never defined.
3612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3613 fi
3614 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
3615 as_fn_error $? "conditional \"USE_LIBTOOL\" was never defined.
3616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3617 fi
3618
3619 : "${CONFIG_STATUS=./config.status}"
3620 ac_write_fail=0
3621 ac_clean_files_save=$ac_clean_files
3622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3625 as_write_fail=0
3626 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3627 #! $SHELL
3628 # Generated by $as_me.
3629 # Run this file to recreate the current configuration.
3630 # Compiler output produced by configure, useful for debugging
3631 # configure, is in config.log if it exists.
3632
3633 debug=false
3634 ac_cs_recheck=false
3635 ac_cs_silent=false
3636
3637 SHELL=\${CONFIG_SHELL-$SHELL}
3638 export SHELL
3639 _ASEOF
3640 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3641 ## -------------------- ##
3642 ## M4sh Initialization. ##
3643 ## -------------------- ##
3644
3645 # Be more Bourne compatible
3646 DUALCASE=1; export DUALCASE # for MKS sh
3647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3648 emulate sh
3649 NULLCMD=:
3650 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3651 # is contrary to our usage. Disable this feature.
3652 alias -g '${1+"$@"}'='"$@"'
3653 setopt NO_GLOB_SUBST
3654 else
3655 case `(set -o) 2>/dev/null` in #(
3656 *posix*) :
3657 set -o posix ;; #(
3658 *) :
3659 ;;
3660 esac
3661 fi
3662
3663
3664 as_nl='
3665 '
3666 export as_nl
3667 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3668 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3671 # Prefer a ksh shell builtin over an external printf program on Solaris,
3672 # but without wasting forks for bash or zsh.
3673 if test -z "$BASH_VERSION$ZSH_VERSION" \
3674 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3675 as_echo='print -r --'
3676 as_echo_n='print -rn --'
3677 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3678 as_echo='printf %s\n'
3679 as_echo_n='printf %s'
3680 else
3681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3682 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3683 as_echo_n='/usr/ucb/echo -n'
3684 else
3685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3686 as_echo_n_body='eval
3687 arg=$1;
3688 case $arg in #(
3689 *"$as_nl"*)
3690 expr "X$arg" : "X\\(.*\\)$as_nl";
3691 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3692 esac;
3693 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3694 '
3695 export as_echo_n_body
3696 as_echo_n='sh -c $as_echo_n_body as_echo'
3697 fi
3698 export as_echo_body
3699 as_echo='sh -c $as_echo_body as_echo'
3700 fi
3701
3702 # The user is always right.
3703 if test "${PATH_SEPARATOR+set}" != set; then
3704 PATH_SEPARATOR=:
3705 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3706 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3707 PATH_SEPARATOR=';'
3708 }
3709 fi
3710
3711
3712 # IFS
3713 # We need space, tab and new line, in precisely that order. Quoting is
3714 # there to prevent editors from complaining about space-tab.
3715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3716 # splitting by setting IFS to empty value.)
3717 IFS=" "" $as_nl"
3718
3719 # Find who we are. Look in the path if we contain no directory separator.
3720 as_myself=
3721 case $0 in #((
3722 *[\\/]* ) as_myself=$0 ;;
3723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3729 done
3730 IFS=$as_save_IFS
3731
3732 ;;
3733 esac
3734 # We did not find ourselves, most probably we were run as `sh COMMAND'
3735 # in which case we are not to be found in the path.
3736 if test "x$as_myself" = x; then
3737 as_myself=$0
3738 fi
3739 if test ! -f "$as_myself"; then
3740 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3741 exit 1
3742 fi
3743
3744 # Unset variables that we do not need and which cause bugs (e.g. in
3745 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3746 # suppresses any "Segmentation fault" message there. '((' could
3747 # trigger a bug in pdksh 5.2.14.
3748 for as_var in BASH_ENV ENV MAIL MAILPATH
3749 do eval test x\${$as_var+set} = xset \
3750 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3751 done
3752 PS1='$ '
3753 PS2='> '
3754 PS4='+ '
3755
3756 # NLS nuisances.
3757 LC_ALL=C
3758 export LC_ALL
3759 LANGUAGE=C
3760 export LANGUAGE
3761
3762 # CDPATH.
3763 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3764
3765
3766 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3767 # ----------------------------------------
3768 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3769 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3770 # script with STATUS, using 1 if that was 0.
3771 as_fn_error ()
3772 {
3773 as_status=$1; test $as_status -eq 0 && as_status=1
3774 if test "$4"; then
3775 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3776 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3777 fi
3778 $as_echo "$as_me: error: $2" >&2
3779 as_fn_exit $as_status
3780 } # as_fn_error
3781
3782
3783 # as_fn_set_status STATUS
3784 # -----------------------
3785 # Set $? to STATUS, without forking.
3786 as_fn_set_status ()
3787 {
3788 return $1
3789 } # as_fn_set_status
3790
3791 # as_fn_exit STATUS
3792 # -----------------
3793 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3794 as_fn_exit ()
3795 {
3796 set +e
3797 as_fn_set_status $1
3798 exit $1
3799 } # as_fn_exit
3800
3801 # as_fn_unset VAR
3802 # ---------------
3803 # Portably unset VAR.
3804 as_fn_unset ()
3805 {
3806 { eval $1=; unset $1;}
3807 }
3808 as_unset=as_fn_unset
3809 # as_fn_append VAR VALUE
3810 # ----------------------
3811 # Append the text in VALUE to the end of the definition contained in VAR. Take
3812 # advantage of any shell optimizations that allow amortized linear growth over
3813 # repeated appends, instead of the typical quadratic growth present in naive
3814 # implementations.
3815 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3816 eval 'as_fn_append ()
3817 {
3818 eval $1+=\$2
3819 }'
3820 else
3821 as_fn_append ()
3822 {
3823 eval $1=\$$1\$2
3824 }
3825 fi # as_fn_append
3826
3827 # as_fn_arith ARG...
3828 # ------------------
3829 # Perform arithmetic evaluation on the ARGs, and store the result in the
3830 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3831 # must be portable across $(()) and expr.
3832 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3833 eval 'as_fn_arith ()
3834 {
3835 as_val=$(( $* ))
3836 }'
3837 else
3838 as_fn_arith ()
3839 {
3840 as_val=`expr "$@" || test $? -eq 1`
3841 }
3842 fi # as_fn_arith
3843
3844
3845 if expr a : '\(a\)' >/dev/null 2>&1 &&
3846 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3847 as_expr=expr
3848 else
3849 as_expr=false
3850 fi
3851
3852 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3853 as_basename=basename
3854 else
3855 as_basename=false
3856 fi
3857
3858 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3859 as_dirname=dirname
3860 else
3861 as_dirname=false
3862 fi
3863
3864 as_me=`$as_basename -- "$0" ||
3865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3866 X"$0" : 'X\(//\)$' \| \
3867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3868 $as_echo X/"$0" |
3869 sed '/^.*\/\([^/][^/]*\)\/*$/{
3870 s//\1/
3871 q
3872 }
3873 /^X\/\(\/\/\)$/{
3874 s//\1/
3875 q
3876 }
3877 /^X\/\(\/\).*/{
3878 s//\1/
3879 q
3880 }
3881 s/.*/./; q'`
3882
3883 # Avoid depending upon Character Ranges.
3884 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3885 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3886 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3887 as_cr_digits='0123456789'
3888 as_cr_alnum=$as_cr_Letters$as_cr_digits
3889
3890 ECHO_C= ECHO_N= ECHO_T=
3891 case `echo -n x` in #(((((
3892 -n*)
3893 case `echo 'xy\c'` in
3894 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3895 xy) ECHO_C='\c';;
3896 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3897 ECHO_T=' ';;
3898 esac;;
3899 *)
3900 ECHO_N='-n';;
3901 esac
3902
3903 rm -f conf$$ conf$$.exe conf$$.file
3904 if test -d conf$$.dir; then
3905 rm -f conf$$.dir/conf$$.file
3906 else
3907 rm -f conf$$.dir
3908 mkdir conf$$.dir 2>/dev/null
3909 fi
3910 if (echo >conf$$.file) 2>/dev/null; then
3911 if ln -s conf$$.file conf$$ 2>/dev/null; then
3912 as_ln_s='ln -s'
3913 # ... but there are two gotchas:
3914 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3915 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3916 # In both cases, we have to default to `cp -p'.
3917 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3918 as_ln_s='cp -p'
3919 elif ln conf$$.file conf$$ 2>/dev/null; then
3920 as_ln_s=ln
3921 else
3922 as_ln_s='cp -p'
3923 fi
3924 else
3925 as_ln_s='cp -p'
3926 fi
3927 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3928 rmdir conf$$.dir 2>/dev/null
3929
3930
3931 # as_fn_mkdir_p
3932 # -------------
3933 # Create "$as_dir" as a directory, including parents if necessary.
3934 as_fn_mkdir_p ()
3935 {
3936
3937 case $as_dir in #(
3938 -*) as_dir=./$as_dir;;
3939 esac
3940 test -d "$as_dir" || eval $as_mkdir_p || {
3941 as_dirs=
3942 while :; do
3943 case $as_dir in #(
3944 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3945 *) as_qdir=$as_dir;;
3946 esac
3947 as_dirs="'$as_qdir' $as_dirs"
3948 as_dir=`$as_dirname -- "$as_dir" ||
3949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3950 X"$as_dir" : 'X\(//\)[^/]' \| \
3951 X"$as_dir" : 'X\(//\)$' \| \
3952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3953 $as_echo X"$as_dir" |
3954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3955 s//\1/
3956 q
3957 }
3958 /^X\(\/\/\)[^/].*/{
3959 s//\1/
3960 q
3961 }
3962 /^X\(\/\/\)$/{
3963 s//\1/
3964 q
3965 }
3966 /^X\(\/\).*/{
3967 s//\1/
3968 q
3969 }
3970 s/.*/./; q'`
3971 test -d "$as_dir" && break
3972 done
3973 test -z "$as_dirs" || eval "mkdir $as_dirs"
3974 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3975
3976
3977 } # as_fn_mkdir_p
3978 if mkdir -p . 2>/dev/null; then
3979 as_mkdir_p='mkdir -p "$as_dir"'
3980 else
3981 test -d ./-p && rmdir ./-p
3982 as_mkdir_p=false
3983 fi
3984
3985 if test -x / >/dev/null 2>&1; then
3986 as_test_x='test -x'
3987 else
3988 if ls -dL / >/dev/null 2>&1; then
3989 as_ls_L_option=L
3990 else
3991 as_ls_L_option=
3992 fi
3993 as_test_x='
3994 eval sh -c '\''
3995 if test -d "$1"; then
3996 test -d "$1/.";
3997 else
3998 case $1 in #(
3999 -*)set "./$1";;
4000 esac;
4001 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4002 ???[sx]*):;;*)false;;esac;fi
4003 '\'' sh
4004 '
4005 fi
4006 as_executable_p=$as_test_x
4007
4008 # Sed expression to map a string onto a valid CPP name.
4009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4010
4011 # Sed expression to map a string onto a valid variable name.
4012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4013
4014
4015 exec 6>&1
4016 ## ----------------------------------- ##
4017 ## Main body of $CONFIG_STATUS script. ##
4018 ## ----------------------------------- ##
4019 _ASEOF
4020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4021
4022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4023 # Save the log message, to keep $0 and so on meaningful, and to
4024 # report actual input values of CONFIG_FILES etc. instead of their
4025 # values after options handling.
4026 ac_log="
4027 This file was extended by newlib $as_me 3.3.0, which was
4028 generated by GNU Autoconf 2.68. Invocation command line was
4029
4030 CONFIG_FILES = $CONFIG_FILES
4031 CONFIG_HEADERS = $CONFIG_HEADERS
4032 CONFIG_LINKS = $CONFIG_LINKS
4033 CONFIG_COMMANDS = $CONFIG_COMMANDS
4034 $ $0 $@
4035
4036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4037 "
4038
4039 _ACEOF
4040
4041 case $ac_config_files in *"
4042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4043 esac
4044
4045
4046
4047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4048 # Files that config.status was made for.
4049 config_files="$ac_config_files"
4050 config_commands="$ac_config_commands"
4051
4052 _ACEOF
4053
4054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4055 ac_cs_usage="\
4056 \`$as_me' instantiates files and other configuration actions
4057 from templates according to the current configuration. Unless the files
4058 and actions are specified as TAGs, all are instantiated by default.
4059
4060 Usage: $0 [OPTION]... [TAG]...
4061
4062 -h, --help print this help, then exit
4063 -V, --version print version number and configuration settings, then exit
4064 --config print configuration, then exit
4065 -q, --quiet, --silent
4066 do not print progress messages
4067 -d, --debug don't remove temporary files
4068 --recheck update $as_me by reconfiguring in the same conditions
4069 --file=FILE[:TEMPLATE]
4070 instantiate the configuration file FILE
4071
4072 Configuration files:
4073 $config_files
4074
4075 Configuration commands:
4076 $config_commands
4077
4078 Report bugs to the package provider."
4079
4080 _ACEOF
4081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4083 ac_cs_version="\\
4084 newlib config.status 3.3.0
4085 configured by $0, generated by GNU Autoconf 2.68,
4086 with options \\"\$ac_cs_config\\"
4087
4088 Copyright (C) 2010 Free Software Foundation, Inc.
4089 This config.status script is free software; the Free Software Foundation
4090 gives unlimited permission to copy, distribute and modify it."
4091
4092 ac_pwd='$ac_pwd'
4093 srcdir='$srcdir'
4094 INSTALL='$INSTALL'
4095 MKDIR_P='$MKDIR_P'
4096 AWK='$AWK'
4097 test -n "\$AWK" || AWK=awk
4098 _ACEOF
4099
4100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4101 # The default lists apply if the user does not specify any file.
4102 ac_need_defaults=:
4103 while test $# != 0
4104 do
4105 case $1 in
4106 --*=?*)
4107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4109 ac_shift=:
4110 ;;
4111 --*=)
4112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4113 ac_optarg=
4114 ac_shift=:
4115 ;;
4116 *)
4117 ac_option=$1
4118 ac_optarg=$2
4119 ac_shift=shift
4120 ;;
4121 esac
4122
4123 case $ac_option in
4124 # Handling of the options.
4125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4126 ac_cs_recheck=: ;;
4127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4128 $as_echo "$ac_cs_version"; exit ;;
4129 --config | --confi | --conf | --con | --co | --c )
4130 $as_echo "$ac_cs_config"; exit ;;
4131 --debug | --debu | --deb | --de | --d | -d )
4132 debug=: ;;
4133 --file | --fil | --fi | --f )
4134 $ac_shift
4135 case $ac_optarg in
4136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4137 '') as_fn_error $? "missing file argument" ;;
4138 esac
4139 as_fn_append CONFIG_FILES " '$ac_optarg'"
4140 ac_need_defaults=false;;
4141 --he | --h | --help | --hel | -h )
4142 $as_echo "$ac_cs_usage"; exit ;;
4143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4145 ac_cs_silent=: ;;
4146
4147 # This is an error.
4148 -*) as_fn_error $? "unrecognized option: \`$1'
4149 Try \`$0 --help' for more information." ;;
4150
4151 *) as_fn_append ac_config_targets " $1"
4152 ac_need_defaults=false ;;
4153
4154 esac
4155 shift
4156 done
4157
4158 ac_configure_extra_args=
4159
4160 if $ac_cs_silent; then
4161 exec 6>/dev/null
4162 ac_configure_extra_args="$ac_configure_extra_args --silent"
4163 fi
4164
4165 _ACEOF
4166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4167 if \$ac_cs_recheck; then
4168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4169 shift
4170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4171 CONFIG_SHELL='$SHELL'
4172 export CONFIG_SHELL
4173 exec "\$@"
4174 fi
4175
4176 _ACEOF
4177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4178 exec 5>>config.log
4179 {
4180 echo
4181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4182 ## Running $as_me. ##
4183 _ASBOX
4184 $as_echo "$ac_log"
4185 } >&5
4186
4187 _ACEOF
4188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4189 #
4190 # INIT-COMMANDS
4191 #
4192 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4193
4194 _ACEOF
4195
4196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4197
4198 # Handling of arguments.
4199 for ac_config_target in $ac_config_targets
4200 do
4201 case $ac_config_target in
4202 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4204
4205 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4206 esac
4207 done
4208
4209
4210 # If the user did not use the arguments to specify the items to instantiate,
4211 # then the envvar interface is used. Set only those that are not.
4212 # We use the long form for the default assignment because of an extremely
4213 # bizarre bug on SunOS 4.1.3.
4214 if $ac_need_defaults; then
4215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4217 fi
4218
4219 # Have a temporary directory for convenience. Make it in the build tree
4220 # simply because there is no reason against having it here, and in addition,
4221 # creating and moving files from /tmp can sometimes cause problems.
4222 # Hook for its removal unless debugging.
4223 # Note that there is a small window in which the directory will not be cleaned:
4224 # after its creation but before its name has been assigned to `$tmp'.
4225 $debug ||
4226 {
4227 tmp= ac_tmp=
4228 trap 'exit_status=$?
4229 : "${ac_tmp:=$tmp}"
4230 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4231 ' 0
4232 trap 'as_fn_exit 1' 1 2 13 15
4233 }
4234 # Create a (secure) tmp directory for tmp files.
4235
4236 {
4237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4238 test -d "$tmp"
4239 } ||
4240 {
4241 tmp=./conf$$-$RANDOM
4242 (umask 077 && mkdir "$tmp")
4243 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4244 ac_tmp=$tmp
4245
4246 # Set up the scripts for CONFIG_FILES section.
4247 # No need to generate them if there are no CONFIG_FILES.
4248 # This happens for instance with `./config.status config.h'.
4249 if test -n "$CONFIG_FILES"; then
4250
4251
4252 ac_cr=`echo X | tr X '\015'`
4253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4254 # But we know of no other shell where ac_cr would be empty at this
4255 # point, so we can use a bashism as a fallback.
4256 if test "x$ac_cr" = x; then
4257 eval ac_cr=\$\'\\r\'
4258 fi
4259 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4261 ac_cs_awk_cr='\\r'
4262 else
4263 ac_cs_awk_cr=$ac_cr
4264 fi
4265
4266 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4267 _ACEOF
4268
4269
4270 {
4271 echo "cat >conf$$subs.awk <<_ACEOF" &&
4272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4273 echo "_ACEOF"
4274 } >conf$$subs.sh ||
4275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4277 ac_delim='%!_!# '
4278 for ac_last_try in false false false false false :; do
4279 . ./conf$$subs.sh ||
4280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4281
4282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4283 if test $ac_delim_n = $ac_delim_num; then
4284 break
4285 elif $ac_last_try; then
4286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4287 else
4288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4289 fi
4290 done
4291 rm -f conf$$subs.sh
4292
4293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4294 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4295 _ACEOF
4296 sed -n '
4297 h
4298 s/^/S["/; s/!.*/"]=/
4299 p
4300 g
4301 s/^[^!]*!//
4302 :repl
4303 t repl
4304 s/'"$ac_delim"'$//
4305 t delim
4306 :nl
4307 h
4308 s/\(.\{148\}\)..*/\1/
4309 t more1
4310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4311 p
4312 n
4313 b repl
4314 :more1
4315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4316 p
4317 g
4318 s/.\{148\}//
4319 t nl
4320 :delim
4321 h
4322 s/\(.\{148\}\)..*/\1/
4323 t more2
4324 s/["\\]/\\&/g; s/^/"/; s/$/"/
4325 p
4326 b
4327 :more2
4328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4329 p
4330 g
4331 s/.\{148\}//
4332 t delim
4333 ' <conf$$subs.awk | sed '
4334 /^[^""]/{
4335 N
4336 s/\n//
4337 }
4338 ' >>$CONFIG_STATUS || ac_write_fail=1
4339 rm -f conf$$subs.awk
4340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4341 _ACAWK
4342 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4343 for (key in S) S_is_set[key] = 1
4344 FS = ""
4345
4346 }
4347 {
4348 line = $ 0
4349 nfields = split(line, field, "@")
4350 substed = 0
4351 len = length(field[1])
4352 for (i = 2; i < nfields; i++) {
4353 key = field[i]
4354 keylen = length(key)
4355 if (S_is_set[key]) {
4356 value = S[key]
4357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4358 len += length(value) + length(field[++i])
4359 substed = 1
4360 } else
4361 len += 1 + keylen
4362 }
4363
4364 print line
4365 }
4366
4367 _ACAWK
4368 _ACEOF
4369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4370 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4371 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4372 else
4373 cat
4374 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4375 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4376 _ACEOF
4377
4378 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4379 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4380 # trailing colons and then remove the whole line if VPATH becomes empty
4381 # (actually we leave an empty line to preserve line numbers).
4382 if test "x$srcdir" = x.; then
4383 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4384 h
4385 s///
4386 s/^/:/
4387 s/[ ]*$/:/
4388 s/:\$(srcdir):/:/g
4389 s/:\${srcdir}:/:/g
4390 s/:@srcdir@:/:/g
4391 s/^:*//
4392 s/:*$//
4393 x
4394 s/\(=[ ]*\).*/\1/
4395 G
4396 s/\n//
4397 s/^[^=]*=[ ]*$//
4398 }'
4399 fi
4400
4401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4402 fi # test -n "$CONFIG_FILES"
4403
4404
4405 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
4406 shift
4407 for ac_tag
4408 do
4409 case $ac_tag in
4410 :[FHLC]) ac_mode=$ac_tag; continue;;
4411 esac
4412 case $ac_mode$ac_tag in
4413 :[FHL]*:*);;
4414 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4415 :[FH]-) ac_tag=-:-;;
4416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4417 esac
4418 ac_save_IFS=$IFS
4419 IFS=:
4420 set x $ac_tag
4421 IFS=$ac_save_IFS
4422 shift
4423 ac_file=$1
4424 shift
4425
4426 case $ac_mode in
4427 :L) ac_source=$1;;
4428 :[FH])
4429 ac_file_inputs=
4430 for ac_f
4431 do
4432 case $ac_f in
4433 -) ac_f="$ac_tmp/stdin";;
4434 *) # Look for the file first in the build tree, then in the source tree
4435 # (if the path is not absolute). The absolute path cannot be DOS-style,
4436 # because $ac_f cannot contain `:'.
4437 test -f "$ac_f" ||
4438 case $ac_f in
4439 [\\/$]*) false;;
4440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4441 esac ||
4442 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4443 esac
4444 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4445 as_fn_append ac_file_inputs " '$ac_f'"
4446 done
4447
4448 # Let's still pretend it is `configure' which instantiates (i.e., don't
4449 # use $as_me), people would be surprised to read:
4450 # /* config.h. Generated by config.status. */
4451 configure_input='Generated from '`
4452 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4453 `' by configure.'
4454 if test x"$ac_file" != x-; then
4455 configure_input="$ac_file. $configure_input"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4457 $as_echo "$as_me: creating $ac_file" >&6;}
4458 fi
4459 # Neutralize special characters interpreted by sed in replacement strings.
4460 case $configure_input in #(
4461 *\&* | *\|* | *\\* )
4462 ac_sed_conf_input=`$as_echo "$configure_input" |
4463 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4464 *) ac_sed_conf_input=$configure_input;;
4465 esac
4466
4467 case $ac_tag in
4468 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4470 esac
4471 ;;
4472 esac
4473
4474 ac_dir=`$as_dirname -- "$ac_file" ||
4475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4476 X"$ac_file" : 'X\(//\)[^/]' \| \
4477 X"$ac_file" : 'X\(//\)$' \| \
4478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4479 $as_echo X"$ac_file" |
4480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4481 s//\1/
4482 q
4483 }
4484 /^X\(\/\/\)[^/].*/{
4485 s//\1/
4486 q
4487 }
4488 /^X\(\/\/\)$/{
4489 s//\1/
4490 q
4491 }
4492 /^X\(\/\).*/{
4493 s//\1/
4494 q
4495 }
4496 s/.*/./; q'`
4497 as_dir="$ac_dir"; as_fn_mkdir_p
4498 ac_builddir=.
4499
4500 case "$ac_dir" in
4501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4502 *)
4503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4504 # A ".." for each directory in $ac_dir_suffix.
4505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4506 case $ac_top_builddir_sub in
4507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4509 esac ;;
4510 esac
4511 ac_abs_top_builddir=$ac_pwd
4512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4513 # for backward compatibility:
4514 ac_top_builddir=$ac_top_build_prefix
4515
4516 case $srcdir in
4517 .) # We are building in place.
4518 ac_srcdir=.
4519 ac_top_srcdir=$ac_top_builddir_sub
4520 ac_abs_top_srcdir=$ac_pwd ;;
4521 [\\/]* | ?:[\\/]* ) # Absolute name.
4522 ac_srcdir=$srcdir$ac_dir_suffix;
4523 ac_top_srcdir=$srcdir
4524 ac_abs_top_srcdir=$srcdir ;;
4525 *) # Relative name.
4526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4527 ac_top_srcdir=$ac_top_build_prefix$srcdir
4528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4529 esac
4530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4531
4532
4533 case $ac_mode in
4534 :F)
4535 #
4536 # CONFIG_FILE
4537 #
4538
4539 case $INSTALL in
4540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4542 esac
4543 ac_MKDIR_P=$MKDIR_P
4544 case $MKDIR_P in
4545 [\\/$]* | ?:[\\/]* ) ;;
4546 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
4547 esac
4548 _ACEOF
4549
4550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4551 # If the template does not know about datarootdir, expand it.
4552 # FIXME: This hack should be removed a few years after 2.60.
4553 ac_datarootdir_hack=; ac_datarootdir_seen=
4554 ac_sed_dataroot='
4555 /datarootdir/ {
4556 p
4557 q
4558 }
4559 /@datadir@/p
4560 /@docdir@/p
4561 /@infodir@/p
4562 /@localedir@/p
4563 /@mandir@/p'
4564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4565 *datarootdir*) ac_datarootdir_seen=yes;;
4566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4568 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4569 _ACEOF
4570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4571 ac_datarootdir_hack='
4572 s&@datadir@&$datadir&g
4573 s&@docdir@&$docdir&g
4574 s&@infodir@&$infodir&g
4575 s&@localedir@&$localedir&g
4576 s&@mandir@&$mandir&g
4577 s&\\\${datarootdir}&$datarootdir&g' ;;
4578 esac
4579 _ACEOF
4580
4581 # Neutralize VPATH when `$srcdir' = `.'.
4582 # Shell code in configure.ac might set extrasub.
4583 # FIXME: do we really want to maintain this feature?
4584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4585 ac_sed_extra="$ac_vpsub
4586 $extrasub
4587 _ACEOF
4588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4589 :t
4590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4591 s|@configure_input@|$ac_sed_conf_input|;t t
4592 s&@top_builddir@&$ac_top_builddir_sub&;t t
4593 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4594 s&@srcdir@&$ac_srcdir&;t t
4595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4596 s&@top_srcdir@&$ac_top_srcdir&;t t
4597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4598 s&@builddir@&$ac_builddir&;t t
4599 s&@abs_builddir@&$ac_abs_builddir&;t t
4600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4601 s&@INSTALL@&$ac_INSTALL&;t t
4602 s&@MKDIR_P@&$ac_MKDIR_P&;t t
4603 $ac_datarootdir_hack
4604 "
4605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4606 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4607
4608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4609 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4611 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4613 which seems to be undefined. Please make sure it is defined" >&5
4614 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4615 which seems to be undefined. Please make sure it is defined" >&2;}
4616
4617 rm -f "$ac_tmp/stdin"
4618 case $ac_file in
4619 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4620 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4621 esac \
4622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4623 ;;
4624
4625
4626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4627 $as_echo "$as_me: executing $ac_file commands" >&6;}
4628 ;;
4629 esac
4630
4631
4632 case $ac_file$ac_mode in
4633 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
4634 # Autoconf 2.62 quotes --file arguments for eval, but not when files
4635 # are listed without --file. Let's play safe and only enable the eval
4636 # if we detect the quoting.
4637 case $CONFIG_FILES in
4638 *\'*) eval set x "$CONFIG_FILES" ;;
4639 *) set x $CONFIG_FILES ;;
4640 esac
4641 shift
4642 for mf
4643 do
4644 # Strip MF so we end up with the name of the file.
4645 mf=`echo "$mf" | sed -e 's/:.*$//'`
4646 # Check whether this is an Automake generated Makefile or not.
4647 # We used to match only the files named `Makefile.in', but
4648 # some people rename them; so instead we look at the file content.
4649 # Grep'ing the first line is not enough: some people post-process
4650 # each Makefile.in and add a new line on top of each file to say so.
4651 # Grep'ing the whole file is not good either: AIX grep has a line
4652 # limit of 2048, but all sed's we know have understand at least 4000.
4653 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
4654 dirpart=`$as_dirname -- "$mf" ||
4655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4656 X"$mf" : 'X\(//\)[^/]' \| \
4657 X"$mf" : 'X\(//\)$' \| \
4658 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
4659 $as_echo X"$mf" |
4660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4661 s//\1/
4662 q
4663 }
4664 /^X\(\/\/\)[^/].*/{
4665 s//\1/
4666 q
4667 }
4668 /^X\(\/\/\)$/{
4669 s//\1/
4670 q
4671 }
4672 /^X\(\/\).*/{
4673 s//\1/
4674 q
4675 }
4676 s/.*/./; q'`
4677 else
4678 continue
4679 fi
4680 # Extract the definition of DEPDIR, am__include, and am__quote
4681 # from the Makefile without running `make'.
4682 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4683 test -z "$DEPDIR" && continue
4684 am__include=`sed -n 's/^am__include = //p' < "$mf"`
4685 test -z "am__include" && continue
4686 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4687 # When using ansi2knr, U may be empty or an underscore; expand it
4688 U=`sed -n 's/^U = //p' < "$mf"`
4689 # Find all dependency output files, they are included files with
4690 # $(DEPDIR) in their names. We invoke sed twice because it is the
4691 # simplest approach to changing $(DEPDIR) to its actual value in the
4692 # expansion.
4693 for file in `sed -n "
4694 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4695 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4696 # Make sure the directory exists.
4697 test -f "$dirpart/$file" && continue
4698 fdir=`$as_dirname -- "$file" ||
4699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4700 X"$file" : 'X\(//\)[^/]' \| \
4701 X"$file" : 'X\(//\)$' \| \
4702 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
4703 $as_echo X"$file" |
4704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4705 s//\1/
4706 q
4707 }
4708 /^X\(\/\/\)[^/].*/{
4709 s//\1/
4710 q
4711 }
4712 /^X\(\/\/\)$/{
4713 s//\1/
4714 q
4715 }
4716 /^X\(\/\).*/{
4717 s//\1/
4718 q
4719 }
4720 s/.*/./; q'`
4721 as_dir=$dirpart/$fdir; as_fn_mkdir_p
4722 # echo "creating $dirpart/$file"
4723 echo '# dummy' > "$dirpart/$file"
4724 done
4725 done
4726 }
4727 ;;
4728
4729 esac
4730 done # for ac_tag
4731
4732
4733 as_fn_exit 0
4734 _ACEOF
4735 ac_clean_files=$ac_clean_files_save
4736
4737 test $ac_write_fail = 0 ||
4738 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4739
4740
4741 # configure is writing to config.log, and then calls config.status.
4742 # config.status does its own redirection, appending to config.log.
4743 # Unfortunately, on DOS this fails, as config.log is still kept open
4744 # by configure, so config.status won't be able to write to it; its
4745 # output is simply discarded. So we exec the FD to /dev/null,
4746 # effectively closing config.log, so it can be properly (re)opened and
4747 # appended to by config.status. When coming back to configure, we
4748 # need to make the FD available again.
4749 if test "$no_create" != yes; then
4750 ac_cs_success=:
4751 ac_config_status_args=
4752 test "$silent" = yes &&
4753 ac_config_status_args="$ac_config_status_args --quiet"
4754 exec 5>/dev/null
4755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4756 exec 5>>config.log
4757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4758 # would make configure fail if this is the last instruction.
4759 $ac_cs_success || as_fn_exit 1
4760 fi
4761 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4763 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4764 fi
4765
0 dnl This is the newlib/libc/machine/amdgcn configure.in file.
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_PREREQ(2.59)
4 AC_INIT([newlib],[NEWLIB_VERSION])
5 AC_CONFIG_SRCDIR([Makefile.am])
6
7 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
8 AC_CONFIG_AUX_DIR(../../../..)
9
10 NEWLIB_CONFIGURE(../../..)
11
12 AC_CONFIG_FILES([Makefile])
13 AC_OUTPUT
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #ifndef _AMDGCN_EXIT_VALUE_H_
16 #define _AMDGCN_EXIT_VALUE_H_
17
18 static inline void __attribute__((noreturn))
19 exit_with_int (int val)
20 {
21 /* Write the exit value to the conventional place. */
22 int *return_value;
23 asm ("s_load_dwordx2 %0, s[8:9], 16 glc\n\t"
24 "s_waitcnt 0" : "=Sg"(return_value));
25 *return_value = val;
26
27 /* Terminate the current kernel. */
28 asm ("s_dcache_wb");
29 asm ("s_endpgm");
30 __builtin_unreachable ();
31 }
32
33 static inline void __attribute__((noreturn))
34 exit_with_status_and_signal (int val, int signal)
35 {
36 if (signal == 0)
37 val = val & 0xff;
38 else
39 {
40 val = (128 + signal) & 0xff;
41 signal = signal & 0xff;
42 }
43
44 exit_with_int ((0xffff << 16) | (signal << 8) | val);
45 }
46
47 #endif
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2014-2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <stdlib.h>
16 #include "exit-value.h"
17
18 void __attribute__((noreturn))
19 exit (int val)
20 {
21 exit_with_status_and_signal (val, 0);
22 }
0 /* get thread-specific reentrant pointer */
1
2 #include <reent.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5 #include <unistd.h>
6
7 /* Copied from the HSA documentation. */
8 typedef struct hsa_signal_s {
9 uint64_t handle;
10 } hsa_signal_t;
11 typedef struct hsa_kernel_dispatch_packet_s {
12 uint16_t header ;
13 uint16_t setup;
14 uint16_t workgroup_size_x ;
15 uint16_t workgroup_size_y ;
16 uint16_t workgroup_size_z;
17 uint16_t reserved0;
18 uint32_t grid_size_x ;
19 uint32_t grid_size_y ;
20 uint32_t grid_size_z;
21 uint32_t private_segment_size;
22 uint32_t group_segment_size;
23 uint64_t kernel_object;
24 uint64_t reserved2;
25 hsa_signal_t completion_signal;
26 } hsa_kernel_dispatch_packet_t;
27
28 struct _reent *
29 __getreent (void)
30 {
31 /* Place the reent data at the top of the stack allocation.
32 s[0:1] contains a 48-bit private segment base address.
33 s11 contains the offset to the base of the stack.
34 s[4:5] contains the dispatch pointer.
35
36 WARNING: this code will break if s[0:1] is ever used for anything! */
37 const register unsigned long buffer_descriptor asm("s0");
38 unsigned long private_segment = buffer_descriptor & 0x0000ffffffffffff;
39 const register unsigned int stack_offset asm("s11");
40 const register hsa_kernel_dispatch_packet_t *dispatch_ptr asm("s4");
41
42 struct data {
43 int marker;
44 struct _reent reent;
45 } *data;
46
47 unsigned long stack_base = private_segment + stack_offset;
48 unsigned long stack_end = stack_base + dispatch_ptr->private_segment_size * 64;
49 unsigned long addr = (stack_end - sizeof(struct data)) & ~7;
50 data = (struct data *)addr;
51
52 register long sp asm("s16");
53 if (sp >= addr)
54 goto stackoverflow;
55
56 /* Stash a marker in the unused upper 16 bits of s[0:1] to indicate that
57 the reent data is initialized. */
58 const register unsigned int s1 asm("s1");
59 unsigned int marker = s1 >> 16;
60 if (marker != 12345)
61 {
62 asm("s_and_b32\ts1, s1, 0xffff");
63 asm("s_or_b32\ts1, s1, (12345 << 16)");
64 data->marker = 12345;
65
66 __builtin_memset (&data->reent, 0, sizeof(struct _reent));
67 _REENT_INIT_PTR_ZEROED (&data->reent);
68 }
69 else if (data->marker != 12345)
70 goto stackoverflow;
71
72
73 return &data->reent;
74
75 stackoverflow:
76 write (2, "GCN Stack Overflow!\n", 20);
77 abort ();
78 }
79
0 /*
1 * Support file for AMDGCN in newlib.
2 * Copyright (c) 2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <stdlib.h>
16 #include <stdint.h>
17 #include <reent.h>
18
19 /* _sbrk_r expects us to use the real errno, not the reentrant one. */
20 #include <errno.h>
21 #undef errno
22 extern int errno;
23
24 /* The runtime passes in heap space like this. */
25 struct heap {
26 int64_t size;
27 char data[0];
28 };
29
30 static char *__heap_ptr = (char*)-1;
31 static char *__heap_end = (char*)-1;
32 static int __heap_lock = 0;
33 static void *__heap_lock_id = NULL;
34 static int __heap_lock_cnt = 0;
35
36 void *
37 sbrk (ptrdiff_t nbytes)
38 {
39 if (__heap_ptr == (char *)-1)
40 {
41 /* Find the heap from kernargs.
42 The kernargs pointer is in s[8:9].
43 This will break if the enable_sgpr_* flags are ever changed. */
44 char *kernargs;
45 asm ("s_mov_b64 %0, s[8:9]" : "=Sg"(kernargs));
46
47 /* The heap data is at kernargs[3]. */
48 struct heap *heap = *(struct heap **)(kernargs + 24);
49
50 __heap_ptr = heap->data;
51 __heap_end = __heap_ptr + heap->size;
52 }
53
54 if ((__heap_ptr + nbytes) >= __heap_end)
55 {
56 errno = ENOMEM;
57 return (void*)-1;
58 }
59
60 char *base = __heap_ptr;
61 __heap_ptr += nbytes;
62
63 return base;
64 }
65
66 void
67 __malloc_lock (struct _reent *reent)
68 {
69 void *id = reent;
70
71 if (id == __heap_lock_id)
72 {
73 if (__heap_lock_cnt < 1)
74 abort ();
75 ++__heap_lock_cnt;
76 return;
77 }
78
79 while (__sync_lock_test_and_set (&__heap_lock, 1))
80 /* A sleep seems like it should allow the wavefront to yeild (maybe?)
81 Use the shortest possible sleep time of 1*64 cycles. */
82 asm volatile ("s_sleep\t1" ::: "memory");
83
84 if (__heap_lock_id != NULL)
85 abort ();
86 if (__heap_lock_cnt != 0)
87 abort ();
88
89 __heap_lock_cnt = 1;
90 __heap_lock_id = id;
91 }
92
93 void
94 __malloc_unlock (struct _reent *reent)
95 {
96 void *id = reent;
97
98 if (id != __heap_lock_id)
99 abort ();
100 if (__heap_lock_cnt < 1)
101 abort ();
102
103 --__heap_lock_cnt;
104
105 if (__heap_lock_cnt > 0)
106 return;
107
108 __heap_lock_id = NULL;
109 __sync_lock_release (&__heap_lock);
110 }
0 #include <signal.h>
1 #include <errno.h>
2
3 _sig_func_ptr
4 signal (int sig,
5 _sig_func_ptr func)
6 {
7 errno = EINVAL;
8 return NULL;
9 }
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
2525 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626 */
2727
28 #include "acle-compat.h"
29
2830 .thumb
2931 .syntax unified
3032 .global __aeabi_memmove
4850 subs r3, r3, #1
4951 bcs 1b
5052 2:
53 #if __ARM_ARCH >= 5
54 pop {r4, pc}
55 #else
5156 pop {r4}
5257 pop {r1}
5358 bx r1
59 #endif
5460 3:
5561 movs r3, #0
5662 cmp r2, #0
2424 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2525 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626 */
27
28 #include "acle-compat.h"
2729
2830 .thumb
2931 .syntax unified
109111 cmp r4, r3
110112 bne 8b
111113 9:
114 #if __ARM_ARCH >= 5
115 pop {r4, r5, r6, pc}
116 #else
112117 pop {r4, r5, r6}
113118 pop {r1}
114119 bx r1
120 #endif
115121 10:
116122 movs r3, r0
117123 movs r4, r1
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12401240 # Omit some internal or obsolete options to make the list less imposing.
12411241 # This message is too long to be a string in the A/UX 3.1 sh.
12421242 cat <<_ACEOF
1243 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1243 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12441244
12451245 Usage: $0 [OPTION]... [VAR=VALUE]...
12461246
13101310
13111311 if test -n "$ac_init_help"; then
13121312 case $ac_init_help in
1313 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1313 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13141314 esac
13151315 cat <<\_ACEOF
13161316
14021402 test -n "$ac_init_help" && exit $ac_status
14031403 if $ac_init_version; then
14041404 cat <<\_ACEOF
1405 newlib configure 3.1.0
1405 newlib configure 3.3.0
14061406 generated by GNU Autoconf 2.68
14071407
14081408 Copyright (C) 2010 Free Software Foundation, Inc.
14571457 This file contains any messages produced by compilers while
14581458 running configure, to aid debugging if configure makes a mistake.
14591459
1460 It was created by newlib $as_me 3.1.0, which was
1460 It was created by newlib $as_me 3.3.0, which was
14611461 generated by GNU Autoconf 2.68. Invocation command line was
14621462
14631463 $ $0 $@
25412541
25422542 # Define the identity of the package.
25432543 PACKAGE='newlib'
2544 VERSION='3.1.0'
2544 VERSION='3.3.0'
25452545
25462546
25472547 # Some tools Automake needs.
40274027 # report actual input values of CONFIG_FILES etc. instead of their
40284028 # values after options handling.
40294029 ac_log="
4030 This file was extended by newlib $as_me 3.1.0, which was
4030 This file was extended by newlib $as_me 3.3.0, which was
40314031 generated by GNU Autoconf 2.68. Invocation command line was
40324032
40334033 CONFIG_FILES = $CONFIG_FILES
40844084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40854085 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40864086 ac_cs_version="\\
4087 newlib config.status 3.1.0
4087 newlib config.status 3.3.0
40884088 configured by $0, generated by GNU Autoconf 2.68,
40894089 with options \\"\$ac_cs_config\\"
40904090
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
786786 CPP'
787787 ac_subdirs_all='a29k
788788 aarch64
789 amdgcn
789790 arc
790791 arm
791792 bfin
825826 nvptx
826827 or1k
827828 powerpc
829 pru
828830 rl78
829831 rx
830832 sh
13811383 # Omit some internal or obsolete options to make the list less imposing.
13821384 # This message is too long to be a string in the A/UX 3.1 sh.
13831385 cat <<_ACEOF
1384 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1386 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13851387
13861388 Usage: $0 [OPTION]... [VAR=VALUE]...
13871389
14511453
14521454 if test -n "$ac_init_help"; then
14531455 case $ac_init_help in
1454 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1456 short | recursive ) echo "Configuration of newlib 3.3.0:";;
14551457 esac
14561458 cat <<\_ACEOF
14571459
15631565 test -n "$ac_init_help" && exit $ac_status
15641566 if $ac_init_version; then
15651567 cat <<\_ACEOF
1566 newlib configure 3.1.0
1568 newlib configure 3.3.0
15671569 generated by GNU Autoconf 2.68
15681570
15691571 Copyright (C) 2010 Free Software Foundation, Inc.
18411843 This file contains any messages produced by compilers while
18421844 running configure, to aid debugging if configure makes a mistake.
18431845
1844 It was created by newlib $as_me 3.1.0, which was
1846 It was created by newlib $as_me 3.3.0, which was
18451847 generated by GNU Autoconf 2.68. Invocation command line was
18461848
18471849 $ $0 $@
29252927
29262928 # Define the identity of the package.
29272929 PACKAGE='newlib'
2928 VERSION='3.1.0'
2930 VERSION='3.3.0'
29292931
29302932
29312933 # Some tools Automake needs.
1150111503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1150211504 lt_status=$lt_dlunknown
1150311505 cat > conftest.$ac_ext <<_LT_EOF
11504 #line 11505 "configure"
11506 #line 11507 "configure"
1150511507 #include "confdefs.h"
1150611508
1150711509 #if HAVE_DLFCN_H
1160711609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1160811610 lt_status=$lt_dlunknown
1160911611 cat > conftest.$ac_ext <<_LT_EOF
11610 #line 11611 "configure"
11612 #line 11613 "configure"
1161111613 #include "confdefs.h"
1161211614
1161311615 #if HAVE_DLFCN_H
1185311855 subdirs="$subdirs a29k"
1185411856 ;;
1185511857 aarch64) subdirs="$subdirs aarch64"
11858 ;;
11859 amdgcn) subdirs="$subdirs amdgcn"
1185611860 ;;
1185711861 arc) subdirs="$subdirs arc"
1185811862 ;;
1193211936 ;;
1193311937 powerpc) subdirs="$subdirs powerpc"
1193411938 ;;
11939 pru) subdirs="$subdirs pru"
11940 ;;
1193511941 rl78) subdirs="$subdirs rl78"
1193611942 ;;
1193711943 rx) subdirs="$subdirs rx"
1258612592 # report actual input values of CONFIG_FILES etc. instead of their
1258712593 # values after options handling.
1258812594 ac_log="
12589 This file was extended by newlib $as_me 3.1.0, which was
12595 This file was extended by newlib $as_me 3.3.0, which was
1259012596 generated by GNU Autoconf 2.68. Invocation command line was
1259112597
1259212598 CONFIG_FILES = $CONFIG_FILES
1264312649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1264412650 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1264512651 ac_cs_version="\\
12646 newlib config.status 3.1.0
12652 newlib config.status 3.3.0
1264712653 configured by $0, generated by GNU Autoconf 2.68,
1264812654 with options \\"\$ac_cs_config\\"
1264912655
2424 case ${machine_dir} in
2525 a29k) AC_CONFIG_SUBDIRS(a29k) ;;
2626 aarch64) AC_CONFIG_SUBDIRS(aarch64) ;;
27 amdgcn) AC_CONFIG_SUBDIRS(amdgcn) ;;
2728 arc) AC_CONFIG_SUBDIRS(arc) ;;
2829 arm) AC_CONFIG_SUBDIRS(arm) ;;
2930 bfin) AC_CONFIG_SUBDIRS(bfin) ;;
6364 nvptx) AC_CONFIG_SUBDIRS(nvptx) ;;
6465 or1k) AC_CONFIG_SUBDIRS(or1k) ;;
6566 powerpc) AC_CONFIG_SUBDIRS(powerpc) ;;
67 pru) AC_CONFIG_SUBDIRS(pru) ;;
6668 rl78) AC_CONFIG_SUBDIRS(rl78) ;;
6769 rx) AC_CONFIG_SUBDIRS(rx) ;;
6870 sh) AC_CONFIG_SUBDIRS(sh) ;;
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13241324 # Omit some internal or obsolete options to make the list less imposing.
13251325 # This message is too long to be a string in the A/UX 3.1 sh.
13261326 cat <<_ACEOF
1327 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1327 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13281328
13291329 Usage: $0 [OPTION]... [VAR=VALUE]...
13301330
13941394
13951395 if test -n "$ac_init_help"; then
13961396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1397 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13981398 esac
13991399 cat <<\_ACEOF
14001400
15061506 test -n "$ac_init_help" && exit $ac_status
15071507 if $ac_init_version; then
15081508 cat <<\_ACEOF
1509 newlib configure 3.1.0
1509 newlib configure 3.3.0
15101510 generated by GNU Autoconf 2.68
15111511
15121512 Copyright (C) 2010 Free Software Foundation, Inc.
17841784 This file contains any messages produced by compilers while
17851785 running configure, to aid debugging if configure makes a mistake.
17861786
1787 It was created by newlib $as_me 3.1.0, which was
1787 It was created by newlib $as_me 3.3.0, which was
17881788 generated by GNU Autoconf 2.68. Invocation command line was
17891789
17901790 $ $0 $@
28682868
28692869 # Define the identity of the package.
28702870 PACKAGE='newlib'
2871 VERSION='3.1.0'
2871 VERSION='3.3.0'
28722872
28732873
28742874 # Some tools Automake needs.
1241012410 # report actual input values of CONFIG_FILES etc. instead of their
1241112411 # values after options handling.
1241212412 ac_log="
12413 This file was extended by newlib $as_me 3.1.0, which was
12413 This file was extended by newlib $as_me 3.3.0, which was
1241412414 generated by GNU Autoconf 2.68. Invocation command line was
1241512415
1241612416 CONFIG_FILES = $CONFIG_FILES
1246712467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1246812468 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1246912469 ac_cs_version="\\
12470 newlib config.status 3.1.0
12470 newlib config.status 3.3.0
1247112471 configured by $0, generated by GNU Autoconf 2.68,
1247212472 with options \\"\$ac_cs_config\\"
1247312473
0 ../../x86_64/sys/fenv.h
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 /* A setjmp.c for Moxie
1 Copyright (C) 2009 Anthony Green
1 Copyright (C) 2009, 2019 Anthony Green
22
33 The authors hereby grant permission to use, copy, modify, distribute,
44 and license this software and its documentation for any purpose, provided
1111 they apply. */
1212
1313 # setjmp/longjmp for moxie. The jmpbuf looks like this:
14 #
15 # Register jmpbuf offset
16 # $r0 0x00
17 # $r1 0x04
18 # $r2 0x08
19 # $r3 0x0c
20 # $r4 0x10
21 # $r5 0x14
22 # $r6 0x18
23 # $r7 0x1c
24 # $r8 0x20
25 # $r9 0x24
26 # $r10 0x28
27 # $r11 0x2c
28 # $r12 0x30
29 # $r13 0x34
30 # $fp 0x38
31 # $sp 0x3c
32
33 .text
34 .global setjmp
35 .type setjmp,@function
14 #
15 # Register jmpbuf offset
16 # $r6 0x00
17 # $r7 0x04
18 # $r8 0x08
19 # $r9 0x0c
20 # $r10 0x10
21 # $fp 0x14
22 # $sp 0x18
23 # stack frame fp 0x1c
24 # stack frame ra 0x20
25 # stack frame sc 0x25
26
27 .text
28 .global setjmp
29 .type setjmp,@function
3630 setjmp:
37 st.l ($r0), $r0
38 sto.l 0x04($r0), $r1
39 sto.l 0x08($r0), $r2
40 sto.l 0x0c($r0), $r3
41 sto.l 0x10($r0), $r4
42 sto.l 0x14($r0), $r5
43 sto.l 0x18($r0), $r6
44 sto.l 0x1c($r0), $r7
45 sto.l 0x20($r0), $r8
46 sto.l 0x24($r0), $r9
47 sto.l 0x28($r0), $r10
48 sto.l 0x2c($r0), $r11
49 sto.l 0x30($r0), $r12
50 sto.l 0x34($r0), $r13
51 sto.l 0x38($r0), $sp
52 sto.l 0x3c($r0), $fp
31 st.l ($r0), $r6
32 sto.l 0x04($r0), $r7
33 sto.l 0x08($r0), $r8
34 sto.l 0x0c($r0), $r9
35 sto.l 0x10($r0), $r10
36 sto.l 0x14($r0), $sp
37 sto.l 0x18($r0), $fp
38 ldo.l $r1, 0x00($fp)
39 sto.l 0x1c($r0), $r1
40 ldo.l $r1, 0x04($fp)
41 sto.l 0x20($r0), $r1
42 ldo.l $r1, 0x08($fp)
43 sto.l 0x24($r0), $r1
5344 xor $r0, $r0
5445 ret
5546 .Lend1:
5849 .global longjmp
5950 .type longjmp,@function
6051 longjmp:
61 ldi.l $r2, 0x00
62 cmp $r1, $r2
52 ldo.l $r6, 0x00($r0)
53 ldo.l $r7, 0x04($r0)
54 ldo.l $r8, 0x08($r0)
55 ldo.l $r9, 0x0c($r0)
56 ldo.l $r10, 0x10($r0)
57 ldo.l $sp, 0x14($r0)
58 ldo.l $fp, 0x18($r0)
59 ldo.l $r2, 0x1c($r0)
60 sto.l 0x0($fp), $r2
61 ldo.l $r2, 0x20($r0)
62 sto.l 0x4($fp), $r2
63 ldo.l $r2, 0x24($r0)
64 sto.l 0x8($fp), $r2
65 ldo.l $r2, 0x08($r0)
66 mov $r0, $r1
67 xor $r2, $r2
68 cmp $r0, $r2
6369 beq .Lreturn1
64 ldo.l $r1, 0x04($r0)
65 ldo.l $r2, 0x08($r0)
66 ldo.l $r3, 0x0c($r0)
67 ldo.l $r4, 0x10($r0)
68 ldo.l $r5, 0x14($r0)
69 ldo.l $r6, 0x18($r0)
70 ldo.l $r7, 0x1c($r0)
71 ldo.l $r8, 0x20($r0)
72 ldo.l $r9, 0x24($r0)
73 ldo.l $r10, 0x28($r0)
74 ldo.l $r11, 0x2c($r0)
75 ldo.l $r12, 0x30($r0)
76 ldo.l $r13, 0x34($r0)
77 ldo.l $sp, 0x38($r0)
78 ldo.l $fp, 0x3c($r0)
79 mov $r0, $r1
8070 ret
8171 .Lreturn1:
82 ldo.l $r1, 0x04($r0)
83 ldo.l $r2, 0x08($r0)
84 ldo.l $r3, 0x0c($r0)
85 ldo.l $r4, 0x10($r0)
86 ldo.l $r5, 0x14($r0)
87 ldo.l $r6, 0x18($r0)
88 ldo.l $r7, 0x1c($r0)
89 ldo.l $r8, 0x20($r0)
90 ldo.l $r9, 0x24($r0)
91 ldo.l $r10, 0x28($r0)
92 ldo.l $r11, 0x2c($r0)
93 ldo.l $r12, 0x30($r0)
94 ldo.l $r13, 0x34($r0)
95 ldo.l $sp, 0x38($r0)
96 ldo.l $fp, 0x3c($r0)
97 ldi.l $r0, 0x01
72 inc $r0, 1
9873 ret
9974 .Lend2:
10075 .size longjmp,.Lend2-longjmp
2020
2121 noinst_LIBRARIES = lib.a
2222
23 lib_a_SOURCES = setjmp.S
23 lib_a_SOURCES = setjmp.S $(TINY_SOURCES)
2424 lib_a_CCASFLAGS=$(AM_CCASFLAGS)
2525 lib_a_CFLAGS=$(AM_CFLAGS)
2626
27 # tiny-printf.c and tiny-puts.c are derived from the nano printf/puts
28 # functions, so other supporting nano functions are required, and the tiny
29 # printf/puts will not work without them.
30 if NEWLIB_NANO_FORMATTED_IO
31 TINY_SOURCES = tiny-puts.c tiny-printf.c
32 endif
33
2734 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
2835 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
8181 ARFLAGS = cru
8282 lib_a_AR = $(AR) $(ARFLAGS)
8383 lib_a_LIBADD =
84 am_lib_a_OBJECTS = lib_a-setjmp.$(OBJEXT)
84 @NEWLIB_NANO_FORMATTED_IO_TRUE@am__objects_1 = \
85 @NEWLIB_NANO_FORMATTED_IO_TRUE@ lib_a-tiny-puts.$(OBJEXT) \
86 @NEWLIB_NANO_FORMATTED_IO_TRUE@ lib_a-tiny-printf.$(OBJEXT)
87 am_lib_a_OBJECTS = lib_a-setjmp.$(OBJEXT) $(am__objects_1)
8588 lib_a_OBJECTS = $(am_lib_a_OBJECTS)
8689 DEFAULT_INCLUDES = -I.@am__isrc@
8790 depcomp =
207210 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
208211 AM_CCASFLAGS = $(INCLUDES)
209212 noinst_LIBRARIES = lib.a
210 lib_a_SOURCES = setjmp.S
213 lib_a_SOURCES = setjmp.S $(TINY_SOURCES)
211214 lib_a_CCASFLAGS = $(AM_CCASFLAGS)
212215 lib_a_CFLAGS = $(AM_CFLAGS)
216
217 # tiny-printf.c and tiny-puts.c are derived from the nano printf/puts
218 # functions, so other supporting nano functions are required, and the tiny
219 # printf/puts will not work without them.
220 @NEWLIB_NANO_FORMATTED_IO_TRUE@TINY_SOURCES = tiny-puts.c tiny-printf.c
213221 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
214222 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
215223 all: all-am
216224
217225 .SUFFIXES:
218 .SUFFIXES: .S .o .obj
226 .SUFFIXES: .S .c .o .obj
219227 am--refresh: Makefile
220228 @:
221229 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
275283
276284 lib_a-setjmp.obj: setjmp.S
277285 $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-setjmp.obj `if test -f 'setjmp.S'; then $(CYGPATH_W) 'setjmp.S'; else $(CYGPATH_W) '$(srcdir)/setjmp.S'; fi`
286
287 .c.o:
288 $(COMPILE) -c $<
289
290 .c.obj:
291 $(COMPILE) -c `$(CYGPATH_W) '$<'`
292
293 lib_a-tiny-puts.o: tiny-puts.c
294 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-tiny-puts.o `test -f 'tiny-puts.c' || echo '$(srcdir)/'`tiny-puts.c
295
296 lib_a-tiny-puts.obj: tiny-puts.c
297 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-tiny-puts.obj `if test -f 'tiny-puts.c'; then $(CYGPATH_W) 'tiny-puts.c'; else $(CYGPATH_W) '$(srcdir)/tiny-puts.c'; fi`
298
299 lib_a-tiny-printf.o: tiny-printf.c
300 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-tiny-printf.o `test -f 'tiny-printf.c' || echo '$(srcdir)/'`tiny-printf.c
301
302 lib_a-tiny-printf.obj: tiny-printf.c
303 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-tiny-printf.obj `if test -f 'tiny-printf.c'; then $(CYGPATH_W) 'tiny-printf.c'; else $(CYGPATH_W) '$(srcdir)/tiny-printf.c'; fi`
278304
279305 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
280306 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
639639 newlib_basedir
640640 MAY_SUPPLY_SYSCALLS_FALSE
641641 MAY_SUPPLY_SYSCALLS_TRUE
642 NEWLIB_NANO_FORMATTED_IO_FALSE
643 NEWLIB_NANO_FORMATTED_IO_TRUE
642644 target_alias
643645 host_alias
644646 build_alias
680682 ac_subst_files=''
681683 ac_user_opts='
682684 enable_option_checking
685 enable_newlib_nano_formatted_io
683686 enable_multilib
684687 enable_target_optspace
685688 enable_malloc_debugging
12391242 # Omit some internal or obsolete options to make the list less imposing.
12401243 # This message is too long to be a string in the A/UX 3.1 sh.
12411244 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1245 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431246
12441247 Usage: $0 [OPTION]... [VAR=VALUE]...
12451248
13091312
13101313 if test -n "$ac_init_help"; then
13111314 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1315 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131316 esac
13141317 cat <<\_ACEOF
13151318
13171320 --disable-option-checking ignore unrecognized --enable/--with options
13181321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
13191322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-newlib-nano-formatted-io Use small-footprint nano-formatted-IO implementation
13201324 --enable-multilib build many library versions (default)
13211325 --enable-target-optspace optimize for space
13221326 --enable-malloc-debugging indicate malloc debugging requested
14011405 test -n "$ac_init_help" && exit $ac_status
14021406 if $ac_init_version; then
14031407 cat <<\_ACEOF
1404 newlib configure 3.1.0
1408 newlib configure 3.3.0
14051409 generated by GNU Autoconf 2.68
14061410
14071411 Copyright (C) 2010 Free Software Foundation, Inc.
14561460 This file contains any messages produced by compilers while
14571461 running configure, to aid debugging if configure makes a mistake.
14581462
1459 It was created by newlib $as_me 3.1.0, which was
1463 It was created by newlib $as_me 3.3.0, which was
14601464 generated by GNU Autoconf 2.68. Invocation command line was
14611465
14621466 $ $0 $@
18361840
18371841
18381842
1843 # Check whether --enable-newlib_nano_formatted_io was given.
1844 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
1845 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
1846 yes) newlib_nano_formatted_io=yes ;;
1847 no) newlib_nano_formatted_io=no ;;
1848 *) as_fn_error $? "bad value ${enableval} for newlib-nano-formatted-io" "$LINENO" 5 ;;
1849 esac
1850 else
1851 newlib_nano_formatted_io=no
1852 fi
1853
1854 if test x$newlib_nano_formatted_io = xyes; then
1855 NEWLIB_NANO_FORMATTED_IO_TRUE=
1856 NEWLIB_NANO_FORMATTED_IO_FALSE='#'
1857 else
1858 NEWLIB_NANO_FORMATTED_IO_TRUE='#'
1859 NEWLIB_NANO_FORMATTED_IO_FALSE=
1860 fi
1861
1862
18391863
18401864 # Make sure we can run config.sub.
18411865 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
25402564
25412565 # Define the identity of the package.
25422566 PACKAGE='newlib'
2543 VERSION='3.1.0'
2567 VERSION='3.3.0'
25442568
25452569
25462570 # Some tools Automake needs.
35743598 LTLIBOBJS=$ac_ltlibobjs
35753599
35763600
3601 if test -z "${NEWLIB_NANO_FORMATTED_IO_TRUE}" && test -z "${NEWLIB_NANO_FORMATTED_IO_FALSE}"; then
3602 as_fn_error $? "conditional \"NEWLIB_NANO_FORMATTED_IO\" was never defined.
3603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3604 fi
35773605 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
35783606 as_fn_error $? "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
35793607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40244052 # report actual input values of CONFIG_FILES etc. instead of their
40254053 # values after options handling.
40264054 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4055 This file was extended by newlib $as_me 3.3.0, which was
40284056 generated by GNU Autoconf 2.68. Invocation command line was
40294057
40304058 CONFIG_FILES = $CONFIG_FILES
40814109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824110 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834111 ac_cs_version="\\
4084 newlib config.status 3.1.0
4112 newlib config.status 3.3.0
40854113 configured by $0, generated by GNU Autoconf 2.68,
40864114 with options \\"\$ac_cs_config\\"
40874115
2020 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
2121 AC_CONFIG_AUX_DIR(../../../..)
2222
23 dnl Support --enable-newlib-nano-formatted-io required by tiny-printf.c
24 dnl and tiny-puts.c
25 AC_ARG_ENABLE(newlib_nano_formatted_io,
26 [ --enable-newlib-nano-formatted-io Use small-footprint nano-formatted-IO implementation],
27 [case "${enableval}" in
28 yes) newlib_nano_formatted_io=yes ;;
29 no) newlib_nano_formatted_io=no ;;
30 *) AC_MSG_ERROR(bad value ${enableval} for newlib-nano-formatted-io) ;;
31 esac],[newlib_nano_formatted_io=no])
32 AM_CONDITIONAL(NEWLIB_NANO_FORMATTED_IO, test x$newlib_nano_formatted_io = xyes)
33
2334 NEWLIB_CONFIGURE(../../..)
2435
2536 AC_CONFIG_FILES([Makefile])
0 /*
1 * Copyright (c) 1990 The Regents of the University of California.
2 * All rights reserved.
3 *
4 * This code is derived from software contributed to Berkeley by
5 * Chris Torek.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. Neither the name of the University nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32 /*
33 * Copyright (c) 2012-2014 ARM Ltd
34 * All rights reserved.
35 *
36 * Redistribution and use in source and binary forms, with or without
37 * modification, are permitted provided that the following conditions
38 * are met:
39 * 1. Redistributions of source code must retain the above copyright
40 * notice, this list of conditions and the following disclaimer.
41 * 2. Redistributions in binary form must reproduce the above copyright
42 * notice, this list of conditions and the following disclaimer in the
43 * documentation and/or other materials provided with the distribution.
44 * 3. The name of the company may not be used to endorse or promote
45 * products derived from this software without specific prior written
46 * permission.
47 *
48 * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED
49 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
50 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
51 * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
52 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
53 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
54 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
55 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
56 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
57 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58 */
59
60 #if defined(LIBC_SCCS) && !defined(lint)
61 /*static char *sccsid = "from: @(#)vfprintf.c 5.50 (Berkeley) 12/16/92";*/
62 static char *rcsid = "$Id$";
63 #endif /* LIBC_SCCS and not lint */
64
65 #include <_ansi.h>
66 #include <reent.h>
67 #include <stdio.h>
68 #include <stdlib.h>
69 #include <string.h>
70 #include <limits.h>
71 #include <stdint.h>
72 #include <wchar.h>
73 #include <sys/lock.h>
74 #include <stdarg.h>
75 #include <string.h>
76 #include <newlib.h>
77 #include "../../stdio/local.h"
78 #include "../../stdlib/local.h"
79 #include "../../stdio/fvwrite.h"
80 #include "../../stdio/nano-vfprintf_local.h"
81
82 /* Bypass *putc* fns called by the default _sfputs_r to save code size.
83 Among other things, this means there is no buffering of the string before
84 it is sent to <<write>>, but <<write>> does its own buffering so we won't
85 lose chars when buf is larger than sizeof(CIOBUF). */
86 int
87 __tiny__sfputs_r (struct _reent *ptr,
88 FILE *fp,
89 const char *buf,
90 size_t len)
91 {
92 return write (1, buf, len);
93 }
94
95 /* VFPRINTF_R from nano-vfprintf.c but:
96 - No support for reentrancy
97 - No support for streams
98 - __SINGLE_THREAD__ assumed.
99 - No STRING_ONLY variant (either way the formatted string would end up
100 being sent to <<write>> via <<__tiny__sfputs_r>>.
101 Basically, format the string as normal, and send it to write. */
102 int
103 __tiny_vfprintf_r (struct _reent *data,
104 FILE * fp,
105 const char *fmt0,
106 va_list ap)
107 {
108 register char *fmt; /* Format string. */
109 register int n, m; /* Handy integers (short term usage). */
110 register char *cp; /* Handy char pointer (short term usage). */
111 const char *flag_chars;
112 struct _prt_data_t prt_data; /* All data for decoding format string. */
113 va_list ap_copy;
114
115 /* Output function pointer. */
116 int (*pfunc)(struct _reent *, FILE *, const char *, size_t len);
117
118 pfunc = __tiny__sfputs_r;
119
120 fmt = (char *)fmt0;
121 prt_data.ret = 0;
122 prt_data.blank = ' ';
123 prt_data.zero = '0';
124
125 /* GCC PR 14577 at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14557 */
126 va_copy (ap_copy, ap);
127
128 /* Scan the format for conversions (`%' character). */
129 for (;;)
130 {
131 cp = fmt;
132 while (*fmt != '\0' && *fmt != '%')
133 fmt += 1;
134
135 if ((m = fmt - cp) != 0)
136 {
137 PRINT (cp, m);
138 prt_data.ret += m;
139 }
140 if (*fmt == '\0')
141 goto done;
142
143 fmt++; /* Skip over '%'. */
144
145 prt_data.flags = 0;
146 prt_data.width = 0;
147 prt_data.prec = -1;
148 prt_data.dprec = 0;
149 prt_data.l_buf[0] = '\0';
150 #ifdef FLOATING_POINT
151 prt_data.lead = 0;
152 #endif
153 /* The flags. */
154 /*
155 * ``Note that 0 is taken as a flag, not as the
156 * beginning of a field width.''
157 * -- ANSI X3J11
158 */
159 flag_chars = "#-0+ ";
160 for (; cp = memchr (flag_chars, *fmt, 5); fmt++)
161 prt_data.flags |= (1 << (cp - flag_chars));
162
163 if (prt_data.flags & SPACESGN)
164 prt_data.l_buf[0] = ' ';
165
166 /*
167 * ``If the space and + flags both appear, the space
168 * flag will be ignored.''
169 * -- ANSI X3J11
170 */
171 if (prt_data.flags & PLUSSGN)
172 prt_data.l_buf[0] = '+';
173
174 /* The width. */
175 if (*fmt == '*')
176 {
177 /*
178 * ``A negative field width argument is taken as a
179 * - flag followed by a positive field width.''
180 * -- ANSI X3J11
181 * They don't exclude field widths read from args.
182 */
183 prt_data.width = GET_ARG (n, ap_copy, int);
184 if (prt_data.width < 0)
185 {
186 prt_data.width = -prt_data.width;
187 prt_data.flags |= LADJUST;
188 }
189 fmt++;
190 }
191 else
192 {
193 for (; is_digit (*fmt); fmt++)
194 prt_data.width = 10 * prt_data.width + to_digit (*fmt);
195 }
196
197 /* The precision. */
198 if (*fmt == '.')
199 {
200 fmt++;
201 if (*fmt == '*')
202 {
203 fmt++;
204 prt_data.prec = GET_ARG (n, ap_copy, int);
205 if (prt_data.prec < 0)
206 prt_data.prec = -1;
207 }
208 else
209 {
210 prt_data.prec = 0;
211 for (; is_digit (*fmt); fmt++)
212 prt_data.prec = 10 * prt_data.prec + to_digit (*fmt);
213 }
214 }
215
216 /* The length modifiers. */
217 flag_chars = "hlL";
218 if ((cp = memchr (flag_chars, *fmt, 3)) != NULL)
219 {
220 prt_data.flags |= (SHORTINT << (cp - flag_chars));
221 fmt++;
222 }
223
224 /* The conversion specifiers. */
225 prt_data.code = *fmt++;
226 cp = memchr ("efgEFG", prt_data.code, 6);
227 #ifdef FLOATING_POINT
228 /* If cp is not NULL, we are facing FLOATING POINT NUMBER. */
229 if (cp)
230 {
231 /* Consume floating point argument if _printf_float is not
232 linked. */
233 if (_printf_float == NULL)
234 {
235 if (prt_data.flags & LONGDBL)
236 GET_ARG (N, ap_copy, _LONG_DOUBLE);
237 else
238 GET_ARG (N, ap_copy, double);
239 }
240 else
241 n = _printf_float (data, &prt_data, fp, pfunc, &ap_copy);
242 }
243 else
244 #endif
245 n = _printf_i (data, &prt_data, fp, pfunc, &ap_copy);
246
247 if (n == -1)
248 goto error;
249
250 prt_data.ret += n;
251 }
252 done:
253 error:
254 va_end (ap_copy);
255 return (__sferror (fp) ? EOF : prt_data.ret);
256 }
257
258 int
259 __wrap_printf (const char *__restrict fmt, ...)
260 {
261 int ret;
262 va_list ap;
263 struct _reent *ptr = _REENT;
264
265 va_start (ap, fmt);
266 ret = __tiny_vfprintf_r (ptr, _stdout_r (ptr), fmt, ap);
267 va_end (ap);
268 return ret;
269 }
270
271 int printf (const char *__restrict fmt, ...) __attribute__ ((weak, alias ("__wrap_printf")));
0 #include <stdio.h>
1 #include <stdlib.h>
2 #include <string.h>
3 #include <newlib.h>
4
5 int write (int fd, const char *buf, int len);
6
7 int
8 __wrap_puts (const char * s)
9 {
10 int res = write (1, s, strlen (s));
11 if (res == EOF)
12 {
13 write (1, "\n", 1);
14 return EOF;
15 }
16 return write (1, "\n", 1);
17 }
18
19 int puts (const char * s) __attribute__ ((weak, alias ("__wrap_puts")));
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12531253 # Omit some internal or obsolete options to make the list less imposing.
12541254 # This message is too long to be a string in the A/UX 3.1 sh.
12551255 cat <<_ACEOF
1256 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1256 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12571257
12581258 Usage: $0 [OPTION]... [VAR=VALUE]...
12591259
13231323
13241324 if test -n "$ac_init_help"; then
13251325 case $ac_init_help in
1326 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1326 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13271327 esac
13281328 cat <<\_ACEOF
13291329
14221422 test -n "$ac_init_help" && exit $ac_status
14231423 if $ac_init_version; then
14241424 cat <<\_ACEOF
1425 newlib configure 3.1.0
1425 newlib configure 3.3.0
14261426 generated by GNU Autoconf 2.68
14271427
14281428 Copyright (C) 2010 Free Software Foundation, Inc.
14771477 This file contains any messages produced by compilers while
14781478 running configure, to aid debugging if configure makes a mistake.
14791479
1480 It was created by newlib $as_me 3.1.0, which was
1480 It was created by newlib $as_me 3.3.0, which was
14811481 generated by GNU Autoconf 2.68. Invocation command line was
14821482
14831483 $ $0 $@
25612561
25622562 # Define the identity of the package.
25632563 PACKAGE='newlib'
2564 VERSION='3.1.0'
2564 VERSION='3.3.0'
25652565
25662566
25672567 # Some tools Automake needs.
50865086 # report actual input values of CONFIG_FILES etc. instead of their
50875087 # values after options handling.
50885088 ac_log="
5089 This file was extended by newlib $as_me 3.1.0, which was
5089 This file was extended by newlib $as_me 3.3.0, which was
50905090 generated by GNU Autoconf 2.68. Invocation command line was
50915091
50925092 CONFIG_FILES = $CONFIG_FILES
51435143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51445144 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
51455145 ac_cs_version="\\
5146 newlib config.status 3.1.0
5146 newlib config.status 3.3.0
51475147 configured by $0, generated by GNU Autoconf 2.68,
51485148 with options \\"\$ac_cs_config\\"
51495149
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
3434
3535 The library has an entry @code{fast_sin} which uses the machine
3636 instruction @code{fsin.l} to perform the operation. Note that the
37 built-in instructions cannot call @code{matherr} or set @code{errno}
37 built-in instructions cannot set @code{errno}
3838 in the same way that the C coded functions do. Refer to a V70
3939 instruction manual to see how errors are generated and handled.
4040
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
2828 .type setjmp,@function
2929 setjmp:
3030
31 l.sw 4(r3), r1
32 l.sw 8(r3), r2
31 l.sw 0(r3), r1
32 l.sw 4(r3), r2
3333 /* Skip r3-r8 as they are not preserved across function calls */
34 l.sw 36(r3), r9
34 l.sw 8(r3), r9
3535 /* Skip r10 as it's preserved to be used by TLS */
3636 /* Skip r11, setjmp always set it to 0 */
3737 /* The following set if registers are preserved across function calls */
38 l.sw 52(r3), r14
39 l.sw 60(r3), r16
40 l.sw 68(r3), r18
41 l.sw 76(r3), r20
42 l.sw 84(r3), r22
43 l.sw 92(r3), r24
44 l.sw 100(r3), r26
45 l.sw 108(r3), r28
46 l.sw 116(r3), r30
38 l.sw 12(r3), r14
39 l.sw 16(r3), r16
40 l.sw 20(r3), r18
41 l.sw 24(r3), r20
42 l.sw 28(r3), r22
43 l.sw 32(r3), r24
44 l.sw 36(r3), r26
45 l.sw 40(r3), r28
46 l.sw 44(r3), r30
4747 /* Save Status Register */
4848 l.mfspr r13, r0, 17
49 l.sw 124(r3), r13
49 l.sw 48(r3), r13
5050 /* Set result register to 0 and jump */
5151 // Different cases for optional delay slot
5252 #if defined(__OR1K_NODELAY__)
6969 /* If the second argument to longjmp is zero, set return address to 1,
7070 otherwise set it to the value of the second argument */
7171 l.addi r11, r0, 1
72 l.sfne r4, r0
72 l.sfeq r4, r0
7373 l.bf 1f
7474 l.nop
7575 l.addi r11, r4, 0
7676
7777 /* Load status register */
7878 1:
79 l.lwz r15, 124(r3)
79 l.lwz r15, 48(r3)
8080 l.mtspr r0, r15, 17
8181
82 l.lwz r1, 4(r3)
83 l.lwz r2, 8(r3)
82 l.lwz r1, 0(r3)
83 l.lwz r2, 4(r3)
8484 /* Skip r3-r8 as they are not preserved across function calls */
85 l.lwz r9, 36(r3)
85 l.lwz r9, 8(r3)
8686 /* Skip r11 as it's always set by longjmp */
87 l.lwz r14, 52(r3)
88 l.lwz r16, 60(r3)
89 l.lwz r18, 68(r3)
90 l.lwz r20, 76(r3)
91 l.lwz r22, 84(r3)
92 l.lwz r24, 92(r3)
93 l.lwz r26, 100(r3)
94 l.lwz r28, 108(r3)
87 l.lwz r14, 12(r3)
88 l.lwz r16, 16(r3)
89 l.lwz r18, 20(r3)
90 l.lwz r20, 24(r3)
91 l.lwz r22, 28(r3)
92 l.lwz r24, 32(r3)
93 l.lwz r26, 36(r3)
94 l.lwz r28, 40(r3)
9595
9696 // Different cases for optional delay slot
9797 #if defined(__OR1K_NODELAY__)
98 l.lwz r30, 116(r3)
98 l.lwz r30, 44(r3)
9999 l.jr r9
100100 #elif defined(__OR1K_DELAY__)
101101 l.jr r9
102 l.lwz r30, 116(r3)
102 l.lwz r30, 44(r3)
103103 #else
104 l.lwz r30, 116(r3)
104 l.lwz r30, 44(r3)
105105 l.jr r9
106106 l.nop
107107 #endif
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12401240 # Omit some internal or obsolete options to make the list less imposing.
12411241 # This message is too long to be a string in the A/UX 3.1 sh.
12421242 cat <<_ACEOF
1243 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1243 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12441244
12451245 Usage: $0 [OPTION]... [VAR=VALUE]...
12461246
13101310
13111311 if test -n "$ac_init_help"; then
13121312 case $ac_init_help in
1313 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1313 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13141314 esac
13151315 cat <<\_ACEOF
13161316
14021402 test -n "$ac_init_help" && exit $ac_status
14031403 if $ac_init_version; then
14041404 cat <<\_ACEOF
1405 newlib configure 3.1.0
1405 newlib configure 3.3.0
14061406 generated by GNU Autoconf 2.68
14071407
14081408 Copyright (C) 2010 Free Software Foundation, Inc.
14571457 This file contains any messages produced by compilers while
14581458 running configure, to aid debugging if configure makes a mistake.
14591459
1460 It was created by newlib $as_me 3.1.0, which was
1460 It was created by newlib $as_me 3.3.0, which was
14611461 generated by GNU Autoconf 2.68. Invocation command line was
14621462
14631463 $ $0 $@
25412541
25422542 # Define the identity of the package.
25432543 PACKAGE='newlib'
2544 VERSION='3.1.0'
2544 VERSION='3.3.0'
25452545
25462546
25472547 # Some tools Automake needs.
40364036 # report actual input values of CONFIG_FILES etc. instead of their
40374037 # values after options handling.
40384038 ac_log="
4039 This file was extended by newlib $as_me 3.1.0, which was
4039 This file was extended by newlib $as_me 3.3.0, which was
40404040 generated by GNU Autoconf 2.68. Invocation command line was
40414041
40424042 CONFIG_FILES = $CONFIG_FILES
40934093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40944094 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40954095 ac_cs_version="\\
4096 newlib config.status 3.1.0
4096 newlib config.status 3.3.0
40974097 configured by $0, generated by GNU Autoconf 2.68,
40984098 with options \\"\$ac_cs_config\\"
40994099
0 ## Process this file with automake to generate Makefile.in
1
2 AUTOMAKE_OPTIONS = cygnus
3
4 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
5
6 AM_CCASFLAGS = $(INCLUDES)
7
8 noinst_LIBRARIES = lib.a
9
10 lib_a_SOURCES = setjmp.s
11 lib_a_CCASFLAGS=$(AM_CCASFLAGS)
12 lib_a_CFLAGS=$(AM_CFLAGS)
13
14 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
15 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 am__make_dryrun = \
19 { \
20 am__dry=no; \
21 case $$MAKEFLAGS in \
22 *\\[\ \ ]*) \
23 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
25 *) \
26 for am__flg in $$MAKEFLAGS; do \
27 case $$am__flg in \
28 *=*|--*) ;; \
29 *n*) am__dry=yes; break;; \
30 esac; \
31 done;; \
32 esac; \
33 test $$am__dry = yes; \
34 }
35 pkgdatadir = $(datadir)/@PACKAGE@
36 pkgincludedir = $(includedir)/@PACKAGE@
37 pkglibdir = $(libdir)/@PACKAGE@
38 pkglibexecdir = $(libexecdir)/@PACKAGE@
39 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
40 install_sh_DATA = $(install_sh) -c -m 644
41 install_sh_PROGRAM = $(install_sh) -c
42 install_sh_SCRIPT = $(install_sh) -c
43 INSTALL_HEADER = $(INSTALL_DATA)
44 transform = $(program_transform_name)
45 NORMAL_INSTALL = :
46 PRE_INSTALL = :
47 POST_INSTALL = :
48 NORMAL_UNINSTALL = :
49 PRE_UNINSTALL = :
50 POST_UNINSTALL = :
51 build_triplet = @build@
52 host_triplet = @host@
53 subdir = .
54 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
55 $(top_srcdir)/configure $(am__configure_deps) \
56 $(srcdir)/../../../../mkinstalldirs
57 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
58 am__aclocal_m4_deps = $(top_srcdir)/../../../acinclude.m4 \
59 $(top_srcdir)/configure.in
60 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
61 $(ACLOCAL_M4)
62 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
63 configure.lineno config.status.lineno
64 mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
65 CONFIG_CLEAN_FILES =
66 CONFIG_CLEAN_VPATH_FILES =
67 LIBRARIES = $(noinst_LIBRARIES)
68 ARFLAGS = cru
69 lib_a_AR = $(AR) $(ARFLAGS)
70 lib_a_LIBADD =
71 am_lib_a_OBJECTS = lib_a-setjmp.$(OBJEXT)
72 lib_a_OBJECTS = $(am_lib_a_OBJECTS)
73 DEFAULT_INCLUDES = -I.@am__isrc@
74 depcomp =
75 am__depfiles_maybe =
76 CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
77 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
78 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
79 CCLD = $(CC)
80 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
81 SOURCES = $(lib_a_SOURCES)
82 am__can_run_installinfo = \
83 case $$AM_UPDATE_INFO_DIR in \
84 n|no|NO) false;; \
85 *) (install-info --version) >/dev/null 2>&1;; \
86 esac
87 ETAGS = etags
88 CTAGS = ctags
89 ACLOCAL = @ACLOCAL@
90 AMTAR = @AMTAR@
91 AR = @AR@
92 AS = @AS@
93 AUTOCONF = @AUTOCONF@
94 AUTOHEADER = @AUTOHEADER@
95 AUTOMAKE = @AUTOMAKE@
96 AWK = @AWK@
97 CC = @CC@
98 CCAS = @CCAS@
99 CCASFLAGS = @CCASFLAGS@
100 CCDEPMODE = @CCDEPMODE@
101 CYGPATH_W = @CYGPATH_W@
102 DEFS = @DEFS@
103 DEPDIR = @DEPDIR@
104 ECHO_C = @ECHO_C@
105 ECHO_N = @ECHO_N@
106 ECHO_T = @ECHO_T@
107 INSTALL = @INSTALL@
108 INSTALL_DATA = @INSTALL_DATA@
109 INSTALL_PROGRAM = @INSTALL_PROGRAM@
110 INSTALL_SCRIPT = @INSTALL_SCRIPT@
111 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
112 LDFLAGS = @LDFLAGS@
113 LIBOBJS = @LIBOBJS@
114 LIBS = @LIBS@
115 LTLIBOBJS = @LTLIBOBJS@
116 MAINT = @MAINT@
117 MAKEINFO = @MAKEINFO@
118 MKDIR_P = @MKDIR_P@
119 NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
120 NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
121 OBJEXT = @OBJEXT@
122 PACKAGE = @PACKAGE@
123 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
124 PACKAGE_NAME = @PACKAGE_NAME@
125 PACKAGE_STRING = @PACKAGE_STRING@
126 PACKAGE_TARNAME = @PACKAGE_TARNAME@
127 PACKAGE_URL = @PACKAGE_URL@
128 PACKAGE_VERSION = @PACKAGE_VERSION@
129 PATH_SEPARATOR = @PATH_SEPARATOR@
130 RANLIB = @RANLIB@
131 READELF = @READELF@
132 SET_MAKE = @SET_MAKE@
133 SHELL = @SHELL@
134 STRIP = @STRIP@
135 VERSION = @VERSION@
136 abs_builddir = @abs_builddir@
137 abs_srcdir = @abs_srcdir@
138 abs_top_builddir = @abs_top_builddir@
139 abs_top_srcdir = @abs_top_srcdir@
140 aext = @aext@
141 am__include = @am__include@
142 am__leading_dot = @am__leading_dot@
143 am__quote = @am__quote@
144 am__tar = @am__tar@
145 am__untar = @am__untar@
146 bindir = @bindir@
147 build = @build@
148 build_alias = @build_alias@
149 build_cpu = @build_cpu@
150 build_os = @build_os@
151 build_vendor = @build_vendor@
152 builddir = @builddir@
153 datadir = @datadir@
154 datarootdir = @datarootdir@
155 docdir = @docdir@
156 dvidir = @dvidir@
157 exec_prefix = @exec_prefix@
158 host = @host@
159 host_alias = @host_alias@
160 host_cpu = @host_cpu@
161 host_os = @host_os@
162 host_vendor = @host_vendor@
163 htmldir = @htmldir@
164 includedir = @includedir@
165 infodir = @infodir@
166 install_sh = @install_sh@
167 libdir = @libdir@
168 libexecdir = @libexecdir@
169 libm_machine_dir = @libm_machine_dir@
170 localedir = @localedir@
171 localstatedir = @localstatedir@
172 lpfx = @lpfx@
173 machine_dir = @machine_dir@
174 mandir = @mandir@
175 mkdir_p = @mkdir_p@
176 newlib_basedir = @newlib_basedir@
177 oext = @oext@
178 oldincludedir = @oldincludedir@
179 pdfdir = @pdfdir@
180 prefix = @prefix@
181 program_transform_name = @program_transform_name@
182 psdir = @psdir@
183 sbindir = @sbindir@
184 sharedstatedir = @sharedstatedir@
185 srcdir = @srcdir@
186 sys_dir = @sys_dir@
187 sysconfdir = @sysconfdir@
188 target_alias = @target_alias@
189 top_build_prefix = @top_build_prefix@
190 top_builddir = @top_builddir@
191 top_srcdir = @top_srcdir@
192 AUTOMAKE_OPTIONS = cygnus
193 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
194 AM_CCASFLAGS = $(INCLUDES)
195 noinst_LIBRARIES = lib.a
196 lib_a_SOURCES = setjmp.s
197 lib_a_CCASFLAGS = $(AM_CCASFLAGS)
198 lib_a_CFLAGS = $(AM_CFLAGS)
199 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
200 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
201 all: all-am
202
203 .SUFFIXES:
204 .SUFFIXES: .o .obj .s
205 am--refresh: Makefile
206 @:
207 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
208 @for dep in $?; do \
209 case '$(am__configure_deps)' in \
210 *$$dep*) \
211 echo ' cd $(srcdir) && $(AUTOMAKE) --cygnus'; \
212 $(am__cd) $(srcdir) && $(AUTOMAKE) --cygnus \
213 && exit 0; \
214 exit 1;; \
215 esac; \
216 done; \
217 echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile'; \
218 $(am__cd) $(top_srcdir) && \
219 $(AUTOMAKE) --cygnus Makefile
220 .PRECIOUS: Makefile
221 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
222 @case '$?' in \
223 *config.status*) \
224 echo ' $(SHELL) ./config.status'; \
225 $(SHELL) ./config.status;; \
226 *) \
227 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
228 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
229 esac;
230
231 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
232 $(SHELL) ./config.status --recheck
233
234 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
235 $(am__cd) $(srcdir) && $(AUTOCONF)
236 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
237 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
238 $(am__aclocal_m4_deps):
239
240 clean-noinstLIBRARIES:
241 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
242 lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES)
243 -rm -f lib.a
244 $(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
245 $(RANLIB) lib.a
246
247 mostlyclean-compile:
248 -rm -f *.$(OBJEXT)
249
250 distclean-compile:
251 -rm -f *.tab.c
252
253 .s.o:
254 $(CCASCOMPILE) -c -o $@ $<
255
256 .s.obj:
257 $(CCASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
258
259 lib_a-setjmp.o: setjmp.s
260 $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-setjmp.o `test -f 'setjmp.s' || echo '$(srcdir)/'`setjmp.s
261
262 lib_a-setjmp.obj: setjmp.s
263 $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-setjmp.obj `if test -f 'setjmp.s'; then $(CYGPATH_W) 'setjmp.s'; else $(CYGPATH_W) '$(srcdir)/setjmp.s'; fi`
264
265 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
266 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
267 unique=`for i in $$list; do \
268 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
269 done | \
270 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
271 END { if (nonempty) { for (i in files) print i; }; }'`; \
272 mkid -fID $$unique
273 tags: TAGS
274
275 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
276 $(TAGS_FILES) $(LISP)
277 set x; \
278 here=`pwd`; \
279 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
280 unique=`for i in $$list; do \
281 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
282 done | \
283 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
284 END { if (nonempty) { for (i in files) print i; }; }'`; \
285 shift; \
286 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
287 test -n "$$unique" || unique=$$empty_fix; \
288 if test $$# -gt 0; then \
289 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
290 "$$@" $$unique; \
291 else \
292 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
293 $$unique; \
294 fi; \
295 fi
296 ctags: CTAGS
297 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
298 $(TAGS_FILES) $(LISP)
299 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
300 unique=`for i in $$list; do \
301 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
302 done | \
303 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
304 END { if (nonempty) { for (i in files) print i; }; }'`; \
305 test -z "$(CTAGS_ARGS)$$unique" \
306 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
307 $$unique
308
309 GTAGS:
310 here=`$(am__cd) $(top_builddir) && pwd` \
311 && $(am__cd) $(top_srcdir) \
312 && gtags -i $(GTAGS_ARGS) "$$here"
313
314 distclean-tags:
315 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
316 check-am:
317 check: check-am
318 all-am: Makefile $(LIBRARIES)
319 installdirs:
320 install: install-am
321 install-exec: install-exec-am
322 install-data: install-data-am
323 uninstall: uninstall-am
324
325 install-am: all-am
326 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
327
328 installcheck: installcheck-am
329 install-strip:
330 if test -z '$(STRIP)'; then \
331 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
332 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
333 install; \
334 else \
335 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
336 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
337 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
338 fi
339 mostlyclean-generic:
340
341 clean-generic:
342
343 distclean-generic:
344 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
345 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
346
347 maintainer-clean-generic:
348 @echo "This command is intended for maintainers to use"
349 @echo "it deletes files that may require special tools to rebuild."
350 clean: clean-am
351
352 clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
353
354 distclean: distclean-am
355 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
356 -rm -f Makefile
357 distclean-am: clean-am distclean-compile distclean-generic \
358 distclean-tags
359
360 dvi: dvi-am
361
362 dvi-am:
363
364 html: html-am
365
366 html-am:
367
368 info: info-am
369
370 info-am:
371
372 install-data-am:
373
374 install-dvi: install-dvi-am
375
376 install-dvi-am:
377
378 install-exec-am:
379
380 install-html: install-html-am
381
382 install-html-am:
383
384 install-info: install-info-am
385
386 install-info-am:
387
388 install-man:
389
390 install-pdf: install-pdf-am
391
392 install-pdf-am:
393
394 install-ps: install-ps-am
395
396 install-ps-am:
397
398 installcheck-am:
399
400 maintainer-clean: maintainer-clean-am
401 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
402 -rm -rf $(top_srcdir)/autom4te.cache
403 -rm -f Makefile
404 maintainer-clean-am: distclean-am maintainer-clean-generic
405
406 mostlyclean: mostlyclean-am
407
408 mostlyclean-am: mostlyclean-compile mostlyclean-generic
409
410 pdf: pdf-am
411
412 pdf-am:
413
414 ps: ps-am
415
416 ps-am:
417
418 uninstall-am:
419
420 .MAKE: install-am install-strip
421
422 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
423 clean-generic clean-noinstLIBRARIES ctags distclean \
424 distclean-compile distclean-generic distclean-tags dvi dvi-am \
425 html html-am info info-am install install-am install-data \
426 install-data-am install-dvi install-dvi-am install-exec \
427 install-exec-am install-html install-html-am install-info \
428 install-info-am install-man install-pdf install-pdf-am \
429 install-ps install-ps-am install-strip installcheck \
430 installcheck-am installdirs maintainer-clean \
431 maintainer-clean-generic mostlyclean mostlyclean-compile \
432 mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
433 uninstall-am
434
435
436 # Tell versions [3.59,3.63) of GNU make to not export all variables.
437 # Otherwise a system limit (for SysV at least) may be exceeded.
438 .NOEXPORT:
0 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
23 # Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # serial 1
30
31 # AM_AUTOMAKE_VERSION(VERSION)
32 # ----------------------------
33 # Automake X.Y traces this macro to ensure aclocal.m4 has been
34 # generated from the m4 files accompanying Automake X.Y.
35 # (This private macro should not be called outside this file.)
36 AC_DEFUN([AM_AUTOMAKE_VERSION],
37 [am__api_version='1.11'
38 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
39 dnl require some minimum version. Point them to the right macro.
40 m4_if([$1], [1.11.6], [],
41 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
42 ])
43
44 # _AM_AUTOCONF_VERSION(VERSION)
45 # -----------------------------
46 # aclocal traces this macro to find the Autoconf version.
47 # This is a private macro too. Using m4_define simplifies
48 # the logic in aclocal, which can simply ignore this definition.
49 m4_define([_AM_AUTOCONF_VERSION], [])
50
51 # AM_SET_CURRENT_AUTOMAKE_VERSION
52 # -------------------------------
53 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
54 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
55 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
56 [AM_AUTOMAKE_VERSION([1.11.6])dnl
57 m4_ifndef([AC_AUTOCONF_VERSION],
58 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
59 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
60
61 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
62
63 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
64 #
65 # This file is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
68
69 # serial 1
70
71 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
72 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
73 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
74 #
75 # Of course, Automake must honor this variable whenever it calls a
76 # tool from the auxiliary directory. The problem is that $srcdir (and
77 # therefore $ac_aux_dir as well) can be either absolute or relative,
78 # depending on how configure is run. This is pretty annoying, since
79 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
80 # source directory, any form will work fine, but in subdirectories a
81 # relative path needs to be adjusted first.
82 #
83 # $ac_aux_dir/missing
84 # fails when called from a subdirectory if $ac_aux_dir is relative
85 # $top_srcdir/$ac_aux_dir/missing
86 # fails if $ac_aux_dir is absolute,
87 # fails when called from a subdirectory in a VPATH build with
88 # a relative $ac_aux_dir
89 #
90 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
91 # are both prefixed by $srcdir. In an in-source build this is usually
92 # harmless because $srcdir is `.', but things will broke when you
93 # start a VPATH build or use an absolute $srcdir.
94 #
95 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
96 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
97 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
98 # and then we would define $MISSING as
99 # MISSING="\${SHELL} $am_aux_dir/missing"
100 # This will work as long as MISSING is not called from configure, because
101 # unfortunately $(top_srcdir) has no meaning in configure.
102 # However there are other variables, like CC, which are often used in
103 # configure, and could therefore not use this "fixed" $ac_aux_dir.
104 #
105 # Another solution, used here, is to always expand $ac_aux_dir to an
106 # absolute PATH. The drawback is that using absolute paths prevent a
107 # configured tree to be moved without reconfiguration.
108
109 AC_DEFUN([AM_AUX_DIR_EXPAND],
110 [dnl Rely on autoconf to set up CDPATH properly.
111 AC_PREREQ([2.50])dnl
112 # expand $ac_aux_dir to an absolute path
113 am_aux_dir=`cd $ac_aux_dir && pwd`
114 ])
115
116 # AM_CONDITIONAL -*- Autoconf -*-
117
118 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
119 # Free Software Foundation, Inc.
120 #
121 # This file is free software; the Free Software Foundation
122 # gives unlimited permission to copy and/or distribute it,
123 # with or without modifications, as long as this notice is preserved.
124
125 # serial 9
126
127 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
128 # -------------------------------------
129 # Define a conditional.
130 AC_DEFUN([AM_CONDITIONAL],
131 [AC_PREREQ(2.52)dnl
132 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
133 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
134 AC_SUBST([$1_TRUE])dnl
135 AC_SUBST([$1_FALSE])dnl
136 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
137 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
138 m4_define([_AM_COND_VALUE_$1], [$2])dnl
139 if $2; then
140 $1_TRUE=
141 $1_FALSE='#'
142 else
143 $1_TRUE='#'
144 $1_FALSE=
145 fi
146 AC_CONFIG_COMMANDS_PRE(
147 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148 AC_MSG_ERROR([[conditional "$1" was never defined.
149 Usually this means the macro was only invoked conditionally.]])
150 fi])])
151
152 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
153 # 2010, 2011 Free Software Foundation, Inc.
154 #
155 # This file is free software; the Free Software Foundation
156 # gives unlimited permission to copy and/or distribute it,
157 # with or without modifications, as long as this notice is preserved.
158
159 # serial 12
160
161 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
162 # written in clear, in which case automake, when reading aclocal.m4,
163 # will think it sees a *use*, and therefore will trigger all it's
164 # C support machinery. Also note that it means that autoscan, seeing
165 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
166
167
168 # _AM_DEPENDENCIES(NAME)
169 # ----------------------
170 # See how the compiler implements dependency checking.
171 # NAME is "CC", "CXX", "GCJ", or "OBJC".
172 # We try a few techniques and use that to set a single cache variable.
173 #
174 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
175 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
176 # dependency, and given that the user is not expected to run this macro,
177 # just rely on AC_PROG_CC.
178 AC_DEFUN([_AM_DEPENDENCIES],
179 [AC_REQUIRE([AM_SET_DEPDIR])dnl
180 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
181 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
182 AC_REQUIRE([AM_DEP_TRACK])dnl
183
184 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
185 [$1], CXX, [depcc="$CXX" am_compiler_list=],
186 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
187 [$1], UPC, [depcc="$UPC" am_compiler_list=],
188 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
189 [depcc="$$1" am_compiler_list=])
190
191 AC_CACHE_CHECK([dependency style of $depcc],
192 [am_cv_$1_dependencies_compiler_type],
193 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
194 # We make a subdir and do the tests there. Otherwise we can end up
195 # making bogus files that we don't know about and never remove. For
196 # instance it was reported that on HP-UX the gcc test will end up
197 # making a dummy file named `D' -- because `-MD' means `put the output
198 # in D'.
199 rm -rf conftest.dir
200 mkdir conftest.dir
201 # Copy depcomp to subdir because otherwise we won't find it if we're
202 # using a relative directory.
203 cp "$am_depcomp" conftest.dir
204 cd conftest.dir
205 # We will build objects and dependencies in a subdirectory because
206 # it helps to detect inapplicable dependency modes. For instance
207 # both Tru64's cc and ICC support -MD to output dependencies as a
208 # side effect of compilation, but ICC will put the dependencies in
209 # the current directory while Tru64 will put them in the object
210 # directory.
211 mkdir sub
212
213 am_cv_$1_dependencies_compiler_type=none
214 if test "$am_compiler_list" = ""; then
215 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
216 fi
217 am__universal=false
218 m4_case([$1], [CC],
219 [case " $depcc " in #(
220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
221 esac],
222 [CXX],
223 [case " $depcc " in #(
224 *\ -arch\ *\ -arch\ *) am__universal=true ;;
225 esac])
226
227 for depmode in $am_compiler_list; do
228 # Setup a source with many dependencies, because some compilers
229 # like to wrap large dependency lists on column 80 (with \), and
230 # we should not choose a depcomp mode which is confused by this.
231 #
232 # We need to recreate these files for each test, as the compiler may
233 # overwrite some of them when testing with obscure command lines.
234 # This happens at least with the AIX C compiler.
235 : > sub/conftest.c
236 for i in 1 2 3 4 5 6; do
237 echo '#include "conftst'$i'.h"' >> sub/conftest.c
238 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
239 # Solaris 8's {/usr,}/bin/sh.
240 touch sub/conftst$i.h
241 done
242 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
243
244 # We check with `-c' and `-o' for the sake of the "dashmstdout"
245 # mode. It turns out that the SunPro C++ compiler does not properly
246 # handle `-M -o', and we need to detect this. Also, some Intel
247 # versions had trouble with output in subdirs
248 am__obj=sub/conftest.${OBJEXT-o}
249 am__minus_obj="-o $am__obj"
250 case $depmode in
251 gcc)
252 # This depmode causes a compiler race in universal mode.
253 test "$am__universal" = false || continue
254 ;;
255 nosideeffect)
256 # after this tag, mechanisms are not by side-effect, so they'll
257 # only be used when explicitly requested
258 if test "x$enable_dependency_tracking" = xyes; then
259 continue
260 else
261 break
262 fi
263 ;;
264 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
265 # This compiler won't grok `-c -o', but also, the minuso test has
266 # not run yet. These depmodes are late enough in the game, and
267 # so weak that their functioning should not be impacted.
268 am__obj=conftest.${OBJEXT-o}
269 am__minus_obj=
270 ;;
271 none) break ;;
272 esac
273 if depmode=$depmode \
274 source=sub/conftest.c object=$am__obj \
275 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
276 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
277 >/dev/null 2>conftest.err &&
278 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
279 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
280 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
281 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
282 # icc doesn't choke on unknown options, it will just issue warnings
283 # or remarks (even with -Werror). So we grep stderr for any message
284 # that says an option was ignored or not supported.
285 # When given -MP, icc 7.0 and 7.1 complain thusly:
286 # icc: Command line warning: ignoring option '-M'; no argument required
287 # The diagnosis changed in icc 8.0:
288 # icc: Command line remark: option '-MP' not supported
289 if (grep 'ignoring option' conftest.err ||
290 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
291 am_cv_$1_dependencies_compiler_type=$depmode
292 break
293 fi
294 fi
295 done
296
297 cd ..
298 rm -rf conftest.dir
299 else
300 am_cv_$1_dependencies_compiler_type=none
301 fi
302 ])
303 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
304 AM_CONDITIONAL([am__fastdep$1], [
305 test "x$enable_dependency_tracking" != xno \
306 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
307 ])
308
309
310 # AM_SET_DEPDIR
311 # -------------
312 # Choose a directory name for dependency files.
313 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
314 AC_DEFUN([AM_SET_DEPDIR],
315 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
316 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
317 ])
318
319
320 # AM_DEP_TRACK
321 # ------------
322 AC_DEFUN([AM_DEP_TRACK],
323 [AC_ARG_ENABLE(dependency-tracking,
324 [ --disable-dependency-tracking speeds up one-time build
325 --enable-dependency-tracking do not reject slow dependency extractors])
326 if test "x$enable_dependency_tracking" != xno; then
327 am_depcomp="$ac_aux_dir/depcomp"
328 AMDEPBACKSLASH='\'
329 am__nodep='_no'
330 fi
331 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
332 AC_SUBST([AMDEPBACKSLASH])dnl
333 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
334 AC_SUBST([am__nodep])dnl
335 _AM_SUBST_NOTMAKE([am__nodep])dnl
336 ])
337
338 # Generate code to set up dependency tracking. -*- Autoconf -*-
339
340 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
341 # Free Software Foundation, Inc.
342 #
343 # This file is free software; the Free Software Foundation
344 # gives unlimited permission to copy and/or distribute it,
345 # with or without modifications, as long as this notice is preserved.
346
347 #serial 5
348
349 # _AM_OUTPUT_DEPENDENCY_COMMANDS
350 # ------------------------------
351 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
352 [{
353 # Autoconf 2.62 quotes --file arguments for eval, but not when files
354 # are listed without --file. Let's play safe and only enable the eval
355 # if we detect the quoting.
356 case $CONFIG_FILES in
357 *\'*) eval set x "$CONFIG_FILES" ;;
358 *) set x $CONFIG_FILES ;;
359 esac
360 shift
361 for mf
362 do
363 # Strip MF so we end up with the name of the file.
364 mf=`echo "$mf" | sed -e 's/:.*$//'`
365 # Check whether this is an Automake generated Makefile or not.
366 # We used to match only the files named `Makefile.in', but
367 # some people rename them; so instead we look at the file content.
368 # Grep'ing the first line is not enough: some people post-process
369 # each Makefile.in and add a new line on top of each file to say so.
370 # Grep'ing the whole file is not good either: AIX grep has a line
371 # limit of 2048, but all sed's we know have understand at least 4000.
372 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
373 dirpart=`AS_DIRNAME("$mf")`
374 else
375 continue
376 fi
377 # Extract the definition of DEPDIR, am__include, and am__quote
378 # from the Makefile without running `make'.
379 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
380 test -z "$DEPDIR" && continue
381 am__include=`sed -n 's/^am__include = //p' < "$mf"`
382 test -z "am__include" && continue
383 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
384 # When using ansi2knr, U may be empty or an underscore; expand it
385 U=`sed -n 's/^U = //p' < "$mf"`
386 # Find all dependency output files, they are included files with
387 # $(DEPDIR) in their names. We invoke sed twice because it is the
388 # simplest approach to changing $(DEPDIR) to its actual value in the
389 # expansion.
390 for file in `sed -n "
391 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
392 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
393 # Make sure the directory exists.
394 test -f "$dirpart/$file" && continue
395 fdir=`AS_DIRNAME(["$file"])`
396 AS_MKDIR_P([$dirpart/$fdir])
397 # echo "creating $dirpart/$file"
398 echo '# dummy' > "$dirpart/$file"
399 done
400 done
401 }
402 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
403
404
405 # AM_OUTPUT_DEPENDENCY_COMMANDS
406 # -----------------------------
407 # This macro should only be invoked once -- use via AC_REQUIRE.
408 #
409 # This code is only required when automatic dependency tracking
410 # is enabled. FIXME. This creates each `.P' file that we will
411 # need in order to bootstrap the dependency handling code.
412 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
413 [AC_CONFIG_COMMANDS([depfiles],
414 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
415 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
416 ])
417
418 # Do all the work for Automake. -*- Autoconf -*-
419
420 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
421 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
422 #
423 # This file is free software; the Free Software Foundation
424 # gives unlimited permission to copy and/or distribute it,
425 # with or without modifications, as long as this notice is preserved.
426
427 # serial 16
428
429 # This macro actually does too much. Some checks are only needed if
430 # your package does certain things. But this isn't really a big deal.
431
432 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
433 # AM_INIT_AUTOMAKE([OPTIONS])
434 # -----------------------------------------------
435 # The call with PACKAGE and VERSION arguments is the old style
436 # call (pre autoconf-2.50), which is being phased out. PACKAGE
437 # and VERSION should now be passed to AC_INIT and removed from
438 # the call to AM_INIT_AUTOMAKE.
439 # We support both call styles for the transition. After
440 # the next Automake release, Autoconf can make the AC_INIT
441 # arguments mandatory, and then we can depend on a new Autoconf
442 # release and drop the old call support.
443 AC_DEFUN([AM_INIT_AUTOMAKE],
444 [AC_PREREQ([2.62])dnl
445 dnl Autoconf wants to disallow AM_ names. We explicitly allow
446 dnl the ones we care about.
447 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
448 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
449 AC_REQUIRE([AC_PROG_INSTALL])dnl
450 if test "`cd $srcdir && pwd`" != "`pwd`"; then
451 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
452 # is not polluted with repeated "-I."
453 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
454 # test to see if srcdir already configured
455 if test -f $srcdir/config.status; then
456 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
457 fi
458 fi
459
460 # test whether we have cygpath
461 if test -z "$CYGPATH_W"; then
462 if (cygpath --version) >/dev/null 2>/dev/null; then
463 CYGPATH_W='cygpath -w'
464 else
465 CYGPATH_W=echo
466 fi
467 fi
468 AC_SUBST([CYGPATH_W])
469
470 # Define the identity of the package.
471 dnl Distinguish between old-style and new-style calls.
472 m4_ifval([$2],
473 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
474 AC_SUBST([PACKAGE], [$1])dnl
475 AC_SUBST([VERSION], [$2])],
476 [_AM_SET_OPTIONS([$1])dnl
477 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
478 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
479 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
480 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
481 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
482
483 _AM_IF_OPTION([no-define],,
484 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
485 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
486
487 # Some tools Automake needs.
488 AC_REQUIRE([AM_SANITY_CHECK])dnl
489 AC_REQUIRE([AC_ARG_PROGRAM])dnl
490 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
491 AM_MISSING_PROG(AUTOCONF, autoconf)
492 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
493 AM_MISSING_PROG(AUTOHEADER, autoheader)
494 AM_MISSING_PROG(MAKEINFO, makeinfo)
495 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
496 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
497 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
498 # We need awk for the "check" target. The system "awk" is bad on
499 # some platforms.
500 AC_REQUIRE([AC_PROG_AWK])dnl
501 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
502 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
503 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
504 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
505 [_AM_PROG_TAR([v7])])])
506 _AM_IF_OPTION([no-dependencies],,
507 [AC_PROVIDE_IFELSE([AC_PROG_CC],
508 [_AM_DEPENDENCIES(CC)],
509 [define([AC_PROG_CC],
510 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
511 AC_PROVIDE_IFELSE([AC_PROG_CXX],
512 [_AM_DEPENDENCIES(CXX)],
513 [define([AC_PROG_CXX],
514 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
515 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
516 [_AM_DEPENDENCIES(OBJC)],
517 [define([AC_PROG_OBJC],
518 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
519 ])
520 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
521 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
522 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
523 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
524 AC_CONFIG_COMMANDS_PRE(dnl
525 [m4_provide_if([_AM_COMPILER_EXEEXT],
526 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
527 ])
528
529 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
530 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
531 dnl mangled by Autoconf and run in a shell conditional statement.
532 m4_define([_AC_COMPILER_EXEEXT],
533 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
534
535
536 # When config.status generates a header, we must update the stamp-h file.
537 # This file resides in the same directory as the config header
538 # that is generated. The stamp files are numbered to have different names.
539
540 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
541 # loop where config.status creates the headers, so we can generate
542 # our stamp files there.
543 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
544 [# Compute $1's index in $config_headers.
545 _am_arg=$1
546 _am_stamp_count=1
547 for _am_header in $config_headers :; do
548 case $_am_header in
549 $_am_arg | $_am_arg:* )
550 break ;;
551 * )
552 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
553 esac
554 done
555 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
556
557 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
558 # Inc.
559 #
560 # This file is free software; the Free Software Foundation
561 # gives unlimited permission to copy and/or distribute it,
562 # with or without modifications, as long as this notice is preserved.
563
564 # serial 1
565
566 # AM_PROG_INSTALL_SH
567 # ------------------
568 # Define $install_sh.
569 AC_DEFUN([AM_PROG_INSTALL_SH],
570 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
571 if test x"${install_sh}" != xset; then
572 case $am_aux_dir in
573 *\ * | *\ *)
574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
575 *)
576 install_sh="\${SHELL} $am_aux_dir/install-sh"
577 esac
578 fi
579 AC_SUBST(install_sh)])
580
581 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
582 #
583 # This file is free software; the Free Software Foundation
584 # gives unlimited permission to copy and/or distribute it,
585 # with or without modifications, as long as this notice is preserved.
586
587 # serial 2
588
589 # Check whether the underlying file-system supports filenames
590 # with a leading dot. For instance MS-DOS doesn't.
591 AC_DEFUN([AM_SET_LEADING_DOT],
592 [rm -rf .tst 2>/dev/null
593 mkdir .tst 2>/dev/null
594 if test -d .tst; then
595 am__leading_dot=.
596 else
597 am__leading_dot=_
598 fi
599 rmdir .tst 2>/dev/null
600 AC_SUBST([am__leading_dot])])
601
602 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
603 # From Jim Meyering
604
605 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
606 # 2011 Free Software Foundation, Inc.
607 #
608 # This file is free software; the Free Software Foundation
609 # gives unlimited permission to copy and/or distribute it,
610 # with or without modifications, as long as this notice is preserved.
611
612 # serial 5
613
614 # AM_MAINTAINER_MODE([DEFAULT-MODE])
615 # ----------------------------------
616 # Control maintainer-specific portions of Makefiles.
617 # Default is to disable them, unless `enable' is passed literally.
618 # For symmetry, `disable' may be passed as well. Anyway, the user
619 # can override the default with the --enable/--disable switch.
620 AC_DEFUN([AM_MAINTAINER_MODE],
621 [m4_case(m4_default([$1], [disable]),
622 [enable], [m4_define([am_maintainer_other], [disable])],
623 [disable], [m4_define([am_maintainer_other], [enable])],
624 [m4_define([am_maintainer_other], [enable])
625 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
626 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
627 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
628 AC_ARG_ENABLE([maintainer-mode],
629 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
630 (and sometimes confusing) to the casual installer],
631 [USE_MAINTAINER_MODE=$enableval],
632 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
633 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
634 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
635 MAINT=$MAINTAINER_MODE_TRUE
636 AC_SUBST([MAINT])dnl
637 ]
638 )
639
640 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
641
642 # Check to see how 'make' treats includes. -*- Autoconf -*-
643
644 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
645 #
646 # This file is free software; the Free Software Foundation
647 # gives unlimited permission to copy and/or distribute it,
648 # with or without modifications, as long as this notice is preserved.
649
650 # serial 4
651
652 # AM_MAKE_INCLUDE()
653 # -----------------
654 # Check to see how make treats includes.
655 AC_DEFUN([AM_MAKE_INCLUDE],
656 [am_make=${MAKE-make}
657 cat > confinc << 'END'
658 am__doit:
659 @echo this is the am__doit target
660 .PHONY: am__doit
661 END
662 # If we don't find an include directive, just comment out the code.
663 AC_MSG_CHECKING([for style of include used by $am_make])
664 am__include="#"
665 am__quote=
666 _am_result=none
667 # First try GNU make style include.
668 echo "include confinc" > confmf
669 # Ignore all kinds of additional output from `make'.
670 case `$am_make -s -f confmf 2> /dev/null` in #(
671 *the\ am__doit\ target*)
672 am__include=include
673 am__quote=
674 _am_result=GNU
675 ;;
676 esac
677 # Now try BSD make style include.
678 if test "$am__include" = "#"; then
679 echo '.include "confinc"' > confmf
680 case `$am_make -s -f confmf 2> /dev/null` in #(
681 *the\ am__doit\ target*)
682 am__include=.include
683 am__quote="\""
684 _am_result=BSD
685 ;;
686 esac
687 fi
688 AC_SUBST([am__include])
689 AC_SUBST([am__quote])
690 AC_MSG_RESULT([$_am_result])
691 rm -f confinc confmf
692 ])
693
694 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
695
696 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
697 # Free Software Foundation, Inc.
698 #
699 # This file is free software; the Free Software Foundation
700 # gives unlimited permission to copy and/or distribute it,
701 # with or without modifications, as long as this notice is preserved.
702
703 # serial 6
704
705 # AM_MISSING_PROG(NAME, PROGRAM)
706 # ------------------------------
707 AC_DEFUN([AM_MISSING_PROG],
708 [AC_REQUIRE([AM_MISSING_HAS_RUN])
709 $1=${$1-"${am_missing_run}$2"}
710 AC_SUBST($1)])
711
712
713 # AM_MISSING_HAS_RUN
714 # ------------------
715 # Define MISSING if not defined so far and test if it supports --run.
716 # If it does, set am_missing_run to use it, otherwise, to nothing.
717 AC_DEFUN([AM_MISSING_HAS_RUN],
718 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
719 AC_REQUIRE_AUX_FILE([missing])dnl
720 if test x"${MISSING+set}" != xset; then
721 case $am_aux_dir in
722 *\ * | *\ *)
723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
724 *)
725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
726 esac
727 fi
728 # Use eval to expand $SHELL
729 if eval "$MISSING --run true"; then
730 am_missing_run="$MISSING --run "
731 else
732 am_missing_run=
733 AC_MSG_WARN([`missing' script is too old or missing])
734 fi
735 ])
736
737 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
738 # Inc.
739 #
740 # This file is free software; the Free Software Foundation
741 # gives unlimited permission to copy and/or distribute it,
742 # with or without modifications, as long as this notice is preserved.
743
744 # serial 1
745
746 # AM_PROG_MKDIR_P
747 # ---------------
748 # Check for `mkdir -p'.
749 AC_DEFUN([AM_PROG_MKDIR_P],
750 [AC_PREREQ([2.60])dnl
751 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
752 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
753 dnl while keeping a definition of mkdir_p for backward compatibility.
754 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
755 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
756 dnl Makefile.ins that do not define MKDIR_P, so we do our own
757 dnl adjustment using top_builddir (which is defined more often than
758 dnl MKDIR_P).
759 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
760 case $mkdir_p in
761 [[\\/$]]* | ?:[[\\/]]*) ;;
762 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
763 esac
764 ])
765
766 # Helper functions for option handling. -*- Autoconf -*-
767
768 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
769 # Foundation, Inc.
770 #
771 # This file is free software; the Free Software Foundation
772 # gives unlimited permission to copy and/or distribute it,
773 # with or without modifications, as long as this notice is preserved.
774
775 # serial 5
776
777 # _AM_MANGLE_OPTION(NAME)
778 # -----------------------
779 AC_DEFUN([_AM_MANGLE_OPTION],
780 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
781
782 # _AM_SET_OPTION(NAME)
783 # --------------------
784 # Set option NAME. Presently that only means defining a flag for this option.
785 AC_DEFUN([_AM_SET_OPTION],
786 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
787
788 # _AM_SET_OPTIONS(OPTIONS)
789 # ------------------------
790 # OPTIONS is a space-separated list of Automake options.
791 AC_DEFUN([_AM_SET_OPTIONS],
792 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
793
794 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
795 # -------------------------------------------
796 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
797 AC_DEFUN([_AM_IF_OPTION],
798 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
799
800 # Check to make sure that the build environment is sane. -*- Autoconf -*-
801
802 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
803 # Free Software Foundation, Inc.
804 #
805 # This file is free software; the Free Software Foundation
806 # gives unlimited permission to copy and/or distribute it,
807 # with or without modifications, as long as this notice is preserved.
808
809 # serial 5
810
811 # AM_SANITY_CHECK
812 # ---------------
813 AC_DEFUN([AM_SANITY_CHECK],
814 [AC_MSG_CHECKING([whether build environment is sane])
815 # Just in case
816 sleep 1
817 echo timestamp > conftest.file
818 # Reject unsafe characters in $srcdir or the absolute working directory
819 # name. Accept space and tab only in the latter.
820 am_lf='
821 '
822 case `pwd` in
823 *[[\\\"\#\$\&\'\`$am_lf]]*)
824 AC_MSG_ERROR([unsafe absolute working directory name]);;
825 esac
826 case $srcdir in
827 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
828 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
829 esac
830
831 # Do `set' in a subshell so we don't clobber the current shell's
832 # arguments. Must try -L first in case configure is actually a
833 # symlink; some systems play weird games with the mod time of symlinks
834 # (eg FreeBSD returns the mod time of the symlink's containing
835 # directory).
836 if (
837 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
838 if test "$[*]" = "X"; then
839 # -L didn't work.
840 set X `ls -t "$srcdir/configure" conftest.file`
841 fi
842 rm -f conftest.file
843 if test "$[*]" != "X $srcdir/configure conftest.file" \
844 && test "$[*]" != "X conftest.file $srcdir/configure"; then
845
846 # If neither matched, then we have a broken ls. This can happen
847 # if, for instance, CONFIG_SHELL is bash and it inherits a
848 # broken ls alias from the environment. This has actually
849 # happened. Such a system could not be considered "sane".
850 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
851 alias in your environment])
852 fi
853
854 test "$[2]" = conftest.file
855 )
856 then
857 # Ok.
858 :
859 else
860 AC_MSG_ERROR([newly created file is older than distributed files!
861 Check your system clock])
862 fi
863 AC_MSG_RESULT(yes)])
864
865 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
866 #
867 # This file is free software; the Free Software Foundation
868 # gives unlimited permission to copy and/or distribute it,
869 # with or without modifications, as long as this notice is preserved.
870
871 # serial 1
872
873 # AM_PROG_INSTALL_STRIP
874 # ---------------------
875 # One issue with vendor `install' (even GNU) is that you can't
876 # specify the program used to strip binaries. This is especially
877 # annoying in cross-compiling environments, where the build's strip
878 # is unlikely to handle the host's binaries.
879 # Fortunately install-sh will honor a STRIPPROG variable, so we
880 # always use install-sh in `make install-strip', and initialize
881 # STRIPPROG with the value of the STRIP variable (set by the user).
882 AC_DEFUN([AM_PROG_INSTALL_STRIP],
883 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
884 # Installed binaries are usually stripped using `strip' when the user
885 # run `make install-strip'. However `strip' might not be the right
886 # tool to use in cross-compilation environments, therefore Automake
887 # will honor the `STRIP' environment variable to overrule this program.
888 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
889 if test "$cross_compiling" != no; then
890 AC_CHECK_TOOL([STRIP], [strip], :)
891 fi
892 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
893 AC_SUBST([INSTALL_STRIP_PROGRAM])])
894
895 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
896 #
897 # This file is free software; the Free Software Foundation
898 # gives unlimited permission to copy and/or distribute it,
899 # with or without modifications, as long as this notice is preserved.
900
901 # serial 3
902
903 # _AM_SUBST_NOTMAKE(VARIABLE)
904 # ---------------------------
905 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
906 # This macro is traced by Automake.
907 AC_DEFUN([_AM_SUBST_NOTMAKE])
908
909 # AM_SUBST_NOTMAKE(VARIABLE)
910 # --------------------------
911 # Public sister of _AM_SUBST_NOTMAKE.
912 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
913
914 # Check how to create a tarball. -*- Autoconf -*-
915
916 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
917 #
918 # This file is free software; the Free Software Foundation
919 # gives unlimited permission to copy and/or distribute it,
920 # with or without modifications, as long as this notice is preserved.
921
922 # serial 2
923
924 # _AM_PROG_TAR(FORMAT)
925 # --------------------
926 # Check how to create a tarball in format FORMAT.
927 # FORMAT should be one of `v7', `ustar', or `pax'.
928 #
929 # Substitute a variable $(am__tar) that is a command
930 # writing to stdout a FORMAT-tarball containing the directory
931 # $tardir.
932 # tardir=directory && $(am__tar) > result.tar
933 #
934 # Substitute a variable $(am__untar) that extract such
935 # a tarball read from stdin.
936 # $(am__untar) < result.tar
937 AC_DEFUN([_AM_PROG_TAR],
938 [# Always define AMTAR for backward compatibility. Yes, it's still used
939 # in the wild :-( We should find a proper way to deprecate it ...
940 AC_SUBST([AMTAR], ['$${TAR-tar}'])
941 m4_if([$1], [v7],
942 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
943 [m4_case([$1], [ustar],, [pax],,
944 [m4_fatal([Unknown tar format])])
945 AC_MSG_CHECKING([how to create a $1 tar archive])
946 # Loop over all known methods to create a tar archive until one works.
947 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
948 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
949 # Do not fold the above two line into one, because Tru64 sh and
950 # Solaris sh will not grok spaces in the rhs of `-'.
951 for _am_tool in $_am_tools
952 do
953 case $_am_tool in
954 gnutar)
955 for _am_tar in tar gnutar gtar;
956 do
957 AM_RUN_LOG([$_am_tar --version]) && break
958 done
959 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
960 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
961 am__untar="$_am_tar -xf -"
962 ;;
963 plaintar)
964 # Must skip GNU tar: if it does not support --format= it doesn't create
965 # ustar tarball either.
966 (tar --version) >/dev/null 2>&1 && continue
967 am__tar='tar chf - "$$tardir"'
968 am__tar_='tar chf - "$tardir"'
969 am__untar='tar xf -'
970 ;;
971 pax)
972 am__tar='pax -L -x $1 -w "$$tardir"'
973 am__tar_='pax -L -x $1 -w "$tardir"'
974 am__untar='pax -r'
975 ;;
976 cpio)
977 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
978 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
979 am__untar='cpio -i -H $1 -d'
980 ;;
981 none)
982 am__tar=false
983 am__tar_=false
984 am__untar=false
985 ;;
986 esac
987
988 # If the value was cached, stop now. We just wanted to have am__tar
989 # and am__untar set.
990 test -n "${am_cv_prog_tar_$1}" && break
991
992 # tar/untar a dummy directory, and stop if the command works
993 rm -rf conftest.dir
994 mkdir conftest.dir
995 echo GrepMe > conftest.dir/file
996 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
997 rm -rf conftest.dir
998 if test -s conftest.tar; then
999 AM_RUN_LOG([$am__untar <conftest.tar])
1000 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1001 fi
1002 done
1003 rm -rf conftest.dir
1004
1005 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1006 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1007 AC_SUBST([am__tar])
1008 AC_SUBST([am__untar])
1009 ]) # _AM_PROG_TAR
1010
1011 m4_include([../../../acinclude.m4])
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
3 #
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7 # Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 # Preserve -v and -x to the replacement shell.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 case $- in # ((((
222 *v*x* | *x*v* ) as_opts=-vx ;;
223 *v* ) as_opts=-v ;;
224 *x* ) as_opts=-x ;;
225 * ) as_opts= ;;
226 esac
227 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error STATUS ERROR [LINENO LOG_FD]
366 # ----------------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with STATUS, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$1; test $as_status -eq 0 && as_status=1
373 if test "$4"; then
374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
376 fi
377 $as_echo "$as_me: error: $2" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534
535 test -n "$DJDIR" || exec 7<&0 </dev/null
536 exec 6>&1
537
538 # Name of the host.
539 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
540 # so uname gets run too.
541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
542
543 #
544 # Initializations.
545 #
546 ac_default_prefix=/usr/local
547 ac_clean_files=
548 ac_config_libobj_dir=.
549 LIBOBJS=
550 cross_compiling=no
551 subdirs=
552 MFLAGS=
553 MAKEFLAGS=
554
555 # Identity of this package.
556 PACKAGE_NAME='newlib'
557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560 PACKAGE_BUGREPORT=''
561 PACKAGE_URL=''
562
563 ac_unique_file="setjmp.s"
564 ac_subst_vars='LTLIBOBJS
565 LIBOBJS
566 sys_dir
567 machine_dir
568 libm_machine_dir
569 lpfx
570 aext
571 oext
572 OBJEXT
573 USE_LIBTOOL_FALSE
574 USE_LIBTOOL_TRUE
575 ELIX_LEVEL_4_FALSE
576 ELIX_LEVEL_4_TRUE
577 ELIX_LEVEL_3_FALSE
578 ELIX_LEVEL_3_TRUE
579 ELIX_LEVEL_2_FALSE
580 ELIX_LEVEL_2_TRUE
581 ELIX_LEVEL_1_FALSE
582 ELIX_LEVEL_1_TRUE
583 ELIX_LEVEL_0_FALSE
584 ELIX_LEVEL_0_TRUE
585 LDFLAGS
586 NO_INCLUDE_LIST
587 NEWLIB_CFLAGS
588 CCASFLAGS
589 CCAS
590 MAINT
591 MAINTAINER_MODE_FALSE
592 MAINTAINER_MODE_TRUE
593 READELF
594 RANLIB
595 AR
596 AS
597 am__fastdepCC_FALSE
598 am__fastdepCC_TRUE
599 CCDEPMODE
600 am__nodep
601 AMDEPBACKSLASH
602 AMDEP_FALSE
603 AMDEP_TRUE
604 am__quote
605 am__include
606 DEPDIR
607 CC
608 am__untar
609 am__tar
610 AMTAR
611 am__leading_dot
612 SET_MAKE
613 AWK
614 mkdir_p
615 MKDIR_P
616 INSTALL_STRIP_PROGRAM
617 STRIP
618 install_sh
619 MAKEINFO
620 AUTOHEADER
621 AUTOMAKE
622 AUTOCONF
623 ACLOCAL
624 VERSION
625 PACKAGE
626 CYGPATH_W
627 am__isrc
628 INSTALL_DATA
629 INSTALL_SCRIPT
630 INSTALL_PROGRAM
631 host_os
632 host_vendor
633 host_cpu
634 host
635 build_os
636 build_vendor
637 build_cpu
638 build
639 newlib_basedir
640 MAY_SUPPLY_SYSCALLS_FALSE
641 MAY_SUPPLY_SYSCALLS_TRUE
642 target_alias
643 host_alias
644 build_alias
645 LIBS
646 ECHO_T
647 ECHO_N
648 ECHO_C
649 DEFS
650 mandir
651 localedir
652 libdir
653 psdir
654 pdfdir
655 dvidir
656 htmldir
657 infodir
658 docdir
659 oldincludedir
660 includedir
661 localstatedir
662 sharedstatedir
663 sysconfdir
664 datadir
665 datarootdir
666 libexecdir
667 sbindir
668 bindir
669 program_transform_name
670 prefix
671 exec_prefix
672 PACKAGE_URL
673 PACKAGE_BUGREPORT
674 PACKAGE_STRING
675 PACKAGE_VERSION
676 PACKAGE_TARNAME
677 PACKAGE_NAME
678 PATH_SEPARATOR
679 SHELL'
680 ac_subst_files=''
681 ac_user_opts='
682 enable_option_checking
683 enable_multilib
684 enable_target_optspace
685 enable_malloc_debugging
686 enable_newlib_multithread
687 enable_newlib_iconv
688 enable_newlib_elix_level
689 enable_newlib_io_float
690 enable_newlib_supplied_syscalls
691 enable_newlib_fno_builtin
692 enable_dependency_tracking
693 enable_maintainer_mode
694 '
695 ac_precious_vars='build_alias
696 host_alias
697 target_alias
698 CCAS
699 CCASFLAGS'
700
701
702 # Initialize some variables set by options.
703 ac_init_help=
704 ac_init_version=false
705 ac_unrecognized_opts=
706 ac_unrecognized_sep=
707 # The variables have the same names as the options, with
708 # dashes changed to underlines.
709 cache_file=/dev/null
710 exec_prefix=NONE
711 no_create=
712 no_recursion=
713 prefix=NONE
714 program_prefix=NONE
715 program_suffix=NONE
716 program_transform_name=s,x,x,
717 silent=
718 site=
719 srcdir=
720 verbose=
721 x_includes=NONE
722 x_libraries=NONE
723
724 # Installation directory options.
725 # These are left unexpanded so users can "make install exec_prefix=/foo"
726 # and all the variables that are supposed to be based on exec_prefix
727 # by default will actually change.
728 # Use braces instead of parens because sh, perl, etc. also accept them.
729 # (The list follows the same order as the GNU Coding Standards.)
730 bindir='${exec_prefix}/bin'
731 sbindir='${exec_prefix}/sbin'
732 libexecdir='${exec_prefix}/libexec'
733 datarootdir='${prefix}/share'
734 datadir='${datarootdir}'
735 sysconfdir='${prefix}/etc'
736 sharedstatedir='${prefix}/com'
737 localstatedir='${prefix}/var'
738 includedir='${prefix}/include'
739 oldincludedir='/usr/include'
740 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
741 infodir='${datarootdir}/info'
742 htmldir='${docdir}'
743 dvidir='${docdir}'
744 pdfdir='${docdir}'
745 psdir='${docdir}'
746 libdir='${exec_prefix}/lib'
747 localedir='${datarootdir}/locale'
748 mandir='${datarootdir}/man'
749
750 ac_prev=
751 ac_dashdash=
752 for ac_option
753 do
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
756 eval $ac_prev=\$ac_option
757 ac_prev=
758 continue
759 fi
760
761 case $ac_option in
762 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 *=) ac_optarg= ;;
764 *) ac_optarg=yes ;;
765 esac
766
767 # Accept the important Cygnus configure options, so we can diagnose typos.
768
769 case $ac_dashdash$ac_option in
770 --)
771 ac_dashdash=yes ;;
772
773 -bindir | --bindir | --bindi | --bind | --bin | --bi)
774 ac_prev=bindir ;;
775 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
776 bindir=$ac_optarg ;;
777
778 -build | --build | --buil | --bui | --bu)
779 ac_prev=build_alias ;;
780 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
781 build_alias=$ac_optarg ;;
782
783 -cache-file | --cache-file | --cache-fil | --cache-fi \
784 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
785 ac_prev=cache_file ;;
786 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
787 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
788 cache_file=$ac_optarg ;;
789
790 --config-cache | -C)
791 cache_file=config.cache ;;
792
793 -datadir | --datadir | --datadi | --datad)
794 ac_prev=datadir ;;
795 -datadir=* | --datadir=* | --datadi=* | --datad=*)
796 datadir=$ac_optarg ;;
797
798 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
799 | --dataroo | --dataro | --datar)
800 ac_prev=datarootdir ;;
801 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
802 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
803 datarootdir=$ac_optarg ;;
804
805 -disable-* | --disable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error $? "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
813 *"
814 "enable_$ac_useropt"
815 "*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=no ;;
820
821 -docdir | --docdir | --docdi | --doc | --do)
822 ac_prev=docdir ;;
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824 docdir=$ac_optarg ;;
825
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827 ac_prev=dvidir ;;
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829 dvidir=$ac_optarg ;;
830
831 -enable-* | --enable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error $? "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
839 *"
840 "enable_$ac_useropt"
841 "*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=\$ac_optarg ;;
846
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
855
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
859
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
866
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
871
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
877
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
884
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
889
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
894
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
901
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
906
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
913
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
918
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
922
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
926
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
930
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
939
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
944
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
951
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
958
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
975
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
980
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
985
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "with_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval with_$ac_useropt=\$ac_optarg ;;
1050
1051 -without-* | --without-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=no ;;
1066
1067 --x)
1068 # Obsolete; use --with-x.
1069 with_x=yes ;;
1070
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1077
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1084
1085 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1086 Try \`$0 --help' for more information"
1087 ;;
1088
1089 *=*)
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 case $ac_envvar in #(
1093 '' | [0-9]* | *[!_$as_cr_alnum]* )
1094 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1095 esac
1096 eval $ac_envvar=\$ac_optarg
1097 export $ac_envvar ;;
1098
1099 *)
1100 # FIXME: should be removed in autoconf 3.0.
1101 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1105 ;;
1106
1107 esac
1108 done
1109
1110 if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112 as_fn_error $? "missing argument to $ac_option"
1113 fi
1114
1115 if test -n "$ac_unrecognized_opts"; then
1116 case $enable_option_checking in
1117 no) ;;
1118 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1119 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1120 esac
1121 fi
1122
1123 # Check all directory arguments for consistency.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1128 do
1129 eval ac_val=\$$ac_var
1130 # Remove trailing slashes.
1131 case $ac_val in
1132 */ )
1133 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134 eval $ac_var=\$ac_val;;
1135 esac
1136 # Be sure to have absolute directory names.
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1142 done
1143
1144 # There might be people who depend on the old broken behavior: `$host'
1145 # used to hold the argument of --host etc.
1146 # FIXME: To remove some day.
1147 build=$build_alias
1148 host=$host_alias
1149 target=$target_alias
1150
1151 # FIXME: To remove some day.
1152 if test "x$host_alias" != x; then
1153 if test "x$build_alias" = x; then
1154 cross_compiling=maybe
1155 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1156 If a cross compiler is detected then cross compile mode will be used" >&2
1157 elif test "x$build_alias" != "x$host_alias"; then
1158 cross_compiling=yes
1159 fi
1160 fi
1161
1162 ac_tool_prefix=
1163 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164
1165 test "$silent" = yes && exec 6>/dev/null
1166
1167
1168 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1169 ac_ls_di=`ls -di .` &&
1170 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1171 as_fn_error $? "working directory cannot be determined"
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 as_fn_error $? "pwd does not report name of working directory"
1174
1175
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$as_myself" ||
1181 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$as_myself" : 'X\(//\)[^/]' \| \
1183 X"$as_myself" : 'X\(//\)$' \| \
1184 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1185 $as_echo X"$as_myself" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\).*/{
1199 s//\1/
1200 q
1201 }
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1206 fi
1207 else
1208 ac_srcdir_defaulted=no
1209 fi
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1213 fi
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1217 pwd)`
1218 # When building in place, set srcdir=.
1219 if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1221 fi
1222 # Remove unnecessary trailing slashes from srcdir.
1223 # Double slashes in file names in object file debugging info
1224 # mess up M-x gdb in Emacs.
1225 case $srcdir in
1226 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 esac
1228 for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233 done
1234
1235 #
1236 # Report the --help message.
1237 #
1238 if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
1243
1244 Usage: $0 [OPTION]... [VAR=VALUE]...
1245
1246 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247 VAR=VALUE. See below for descriptions of some of the useful variables.
1248
1249 Defaults for the options are specified in brackets.
1250
1251 Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking ...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261
1262 Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1267
1268 By default, \`make install' will install all the files in
1269 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271 for instance \`--prefix=\$HOME'.
1272
1273 For better control, use the options below.
1274
1275 Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295 _ACEOF
1296
1297 cat <<\_ACEOF
1298
1299 Program names:
1300 --program-prefix=PREFIX prepend PREFIX to installed program names
1301 --program-suffix=SUFFIX append SUFFIX to installed program names
1302 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1303
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
1313 esac
1314 cat <<\_ACEOF
1315
1316 Optional Features:
1317 --disable-option-checking ignore unrecognized --enable/--with options
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-multilib build many library versions (default)
1321 --enable-target-optspace optimize for space
1322 --enable-malloc-debugging indicate malloc debugging requested
1323 --enable-newlib-multithread enable support for multiple threads
1324 --enable-newlib-iconv enable iconv library support
1325 --enable-newlib-elix-level supply desired elix library level (1-4)
1326 --disable-newlib-io-float disable printf/scanf family float support
1327 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1328 --disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
1329 --disable-dependency-tracking speeds up one-time build
1330 --enable-dependency-tracking do not reject slow dependency extractors
1331 --enable-maintainer-mode enable make rules and dependencies not useful
1332 (and sometimes confusing) to the casual installer
1333
1334 Some influential environment variables:
1335 CCAS assembler compiler command (defaults to CC)
1336 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1337
1338 Use these variables to override the choices made by `configure' or to help
1339 it to find libraries and programs with nonstandard names/locations.
1340
1341 Report bugs to the package provider.
1342 _ACEOF
1343 ac_status=$?
1344 fi
1345
1346 if test "$ac_init_help" = "recursive"; then
1347 # If there are subdirs, report their specific --help.
1348 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1349 test -d "$ac_dir" ||
1350 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1351 continue
1352 ac_builddir=.
1353
1354 case "$ac_dir" in
1355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 *)
1357 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1358 # A ".." for each directory in $ac_dir_suffix.
1359 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1360 case $ac_top_builddir_sub in
1361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1363 esac ;;
1364 esac
1365 ac_abs_top_builddir=$ac_pwd
1366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1367 # for backward compatibility:
1368 ac_top_builddir=$ac_top_build_prefix
1369
1370 case $srcdir in
1371 .) # We are building in place.
1372 ac_srcdir=.
1373 ac_top_srcdir=$ac_top_builddir_sub
1374 ac_abs_top_srcdir=$ac_pwd ;;
1375 [\\/]* | ?:[\\/]* ) # Absolute name.
1376 ac_srcdir=$srcdir$ac_dir_suffix;
1377 ac_top_srcdir=$srcdir
1378 ac_abs_top_srcdir=$srcdir ;;
1379 *) # Relative name.
1380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1381 ac_top_srcdir=$ac_top_build_prefix$srcdir
1382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 esac
1384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385
1386 cd "$ac_dir" || { ac_status=$?; continue; }
1387 # Check for guested configure.
1388 if test -f "$ac_srcdir/configure.gnu"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1391 elif test -f "$ac_srcdir/configure"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure" --help=recursive
1394 else
1395 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 fi || ac_status=$?
1397 cd "$ac_pwd" || { ac_status=$?; break; }
1398 done
1399 fi
1400
1401 test -n "$ac_init_help" && exit $ac_status
1402 if $ac_init_version; then
1403 cat <<\_ACEOF
1404 newlib configure 3.3.0
1405 generated by GNU Autoconf 2.68
1406
1407 Copyright (C) 2010 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1410 _ACEOF
1411 exit
1412 fi
1413
1414 ## ------------------------ ##
1415 ## Autoconf initialization. ##
1416 ## ------------------------ ##
1417
1418 # ac_fn_c_try_compile LINENO
1419 # --------------------------
1420 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1421 ac_fn_c_try_compile ()
1422 {
1423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1424 rm -f conftest.$ac_objext
1425 if { { ac_try="$ac_compile"
1426 case "(($ac_try" in
1427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1428 *) ac_try_echo=$ac_try;;
1429 esac
1430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1431 $as_echo "$ac_try_echo"; } >&5
1432 (eval "$ac_compile") 2>conftest.err
1433 ac_status=$?
1434 if test -s conftest.err; then
1435 grep -v '^ *+' conftest.err >conftest.er1
1436 cat conftest.er1 >&5
1437 mv -f conftest.er1 conftest.err
1438 fi
1439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1440 test $ac_status = 0; } && {
1441 test -z "$ac_c_werror_flag" ||
1442 test ! -s conftest.err
1443 } && test -s conftest.$ac_objext; then :
1444 ac_retval=0
1445 else
1446 $as_echo "$as_me: failed program was:" >&5
1447 sed 's/^/| /' conftest.$ac_ext >&5
1448
1449 ac_retval=1
1450 fi
1451 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1452 as_fn_set_status $ac_retval
1453
1454 } # ac_fn_c_try_compile
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1458
1459 It was created by newlib $as_me 3.3.0, which was
1460 generated by GNU Autoconf 2.68. Invocation command line was
1461
1462 $ $0 $@
1463
1464 _ACEOF
1465 exec 5>>config.log
1466 {
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1471
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480
1481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488
1489 _ASUNAME
1490
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 $as_echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1499
1500 } >&5
1501
1502 cat >&5 <<_ACEOF
1503
1504
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1508
1509 _ACEOF
1510
1511
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1522 do
1523 for ac_arg
1524 do
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
1530 *\'*)
1531 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1535 2)
1536 as_fn_append ac_configure_args1 " '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
1538 ac_must_keep_next=false # Got value, back to normal.
1539 else
1540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1548 ;;
1549 -* ) ac_must_keep_next=true ;;
1550 esac
1551 fi
1552 as_fn_append ac_configure_args " '$ac_arg'"
1553 ;;
1554 esac
1555 done
1556 done
1557 { ac_configure_args0=; unset ac_configure_args0;}
1558 { ac_configure_args1=; unset ac_configure_args1;}
1559
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log. We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1567 {
1568 echo
1569
1570 $as_echo "## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##"
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1575 (
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1582 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1587 *) { eval $ac_var=; unset $ac_var;} ;;
1588 esac ;;
1589 esac
1590 done
1591 (set) 2>&1 |
1592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1594 sed -n \
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
1598 *)
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600 ;;
1601 esac |
1602 sort
1603 )
1604 echo
1605
1606 $as_echo "## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##"
1609 echo
1610 for ac_var in $ac_subst_vars
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 $as_echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619
1620 if test -n "$ac_subst_files"; then
1621 $as_echo "## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##"
1624 echo
1625 for ac_var in $ac_subst_files
1626 do
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 $as_echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1634 fi
1635
1636 if test -s confdefs.h; then
1637 $as_echo "## ----------- ##
1638 ## confdefs.h. ##
1639 ## ----------- ##"
1640 echo
1641 cat confdefs.h
1642 echo
1643 fi
1644 test "$ac_signal" != 0 &&
1645 $as_echo "$as_me: caught signal $ac_signal"
1646 $as_echo "$as_me: exit $exit_status"
1647 } >&5
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 exit $exit_status
1651 ' 0
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1654 done
1655 ac_signal=0
1656
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1659
1660 $as_echo "/* confdefs.h */" > confdefs.h
1661
1662 # Predefined preprocessor variables.
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 _ACEOF
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1670 _ACEOF
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 _ACEOF
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_STRING "$PACKAGE_STRING"
1678 _ACEOF
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 _ACEOF
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_URL "$PACKAGE_URL"
1686 _ACEOF
1687
1688
1689 # Let the site file select an alternate cache file if it wants to.
1690 # Prefer an explicitly selected file to automatically selected ones.
1691 ac_site_file1=NONE
1692 ac_site_file2=NONE
1693 if test -n "$CONFIG_SITE"; then
1694 # We do not want a PATH search for config.site.
1695 case $CONFIG_SITE in #((
1696 -*) ac_site_file1=./$CONFIG_SITE;;
1697 */*) ac_site_file1=$CONFIG_SITE;;
1698 *) ac_site_file1=./$CONFIG_SITE;;
1699 esac
1700 elif test "x$prefix" != xNONE; then
1701 ac_site_file1=$prefix/share/config.site
1702 ac_site_file2=$prefix/etc/config.site
1703 else
1704 ac_site_file1=$ac_default_prefix/share/config.site
1705 ac_site_file2=$ac_default_prefix/etc/config.site
1706 fi
1707 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1708 do
1709 test "x$ac_site_file" = xNONE && continue
1710 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1712 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1714 . "$ac_site_file" \
1715 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1717 as_fn_error $? "failed to load site script $ac_site_file
1718 See \`config.log' for more details" "$LINENO" 5; }
1719 fi
1720 done
1721
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special files
1724 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1725 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1727 $as_echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1732 fi
1733 else
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1735 $as_echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1737 fi
1738
1739 # Check that the precious variables saved in the cache have kept the same
1740 # value.
1741 ac_cache_corrupted=false
1742 for ac_var in $ac_precious_vars; do
1743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1744 eval ac_new_set=\$ac_env_${ac_var}_set
1745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1746 eval ac_new_val=\$ac_env_${ac_var}_value
1747 case $ac_old_set,$ac_new_set in
1748 set,)
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1750 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,set)
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1754 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,);;
1757 *)
1758 if test "x$ac_old_val" != "x$ac_new_val"; then
1759 # differences in whitespace do not lead to failure.
1760 ac_old_val_w=`echo x $ac_old_val`
1761 ac_new_val_w=`echo x $ac_new_val`
1762 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1764 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 ac_cache_corrupted=:
1766 else
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1768 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1769 eval $ac_var=\$ac_old_val
1770 fi
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1772 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1774 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1786 esac
1787 fi
1788 done
1789 if $ac_cache_corrupted; then
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1793 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1794 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1795 fi
1796 ## -------------------- ##
1797 ## Main body of script. ##
1798 ## -------------------- ##
1799
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807
1808
1809 ac_aux_dir=
1810 for ac_dir in ../../../.. "$srcdir"/../../../..; do
1811 if test -f "$ac_dir/install-sh"; then
1812 ac_aux_dir=$ac_dir
1813 ac_install_sh="$ac_aux_dir/install-sh -c"
1814 break
1815 elif test -f "$ac_dir/install.sh"; then
1816 ac_aux_dir=$ac_dir
1817 ac_install_sh="$ac_aux_dir/install.sh -c"
1818 break
1819 elif test -f "$ac_dir/shtool"; then
1820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/shtool install -c"
1822 break
1823 fi
1824 done
1825 if test -z "$ac_aux_dir"; then
1826 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../../.. \"$srcdir\"/../../../.." "$LINENO" 5
1827 fi
1828
1829 # These three variables are undocumented and unsupported,
1830 # and are intended to be withdrawn in a future Autoconf release.
1831 # They can cause serious problems if a builder's source tree is in a directory
1832 # whose full name contains unusual characters.
1833 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1834 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1835 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1836
1837
1838
1839
1840 # Make sure we can run config.sub.
1841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1842 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1843
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1845 $as_echo_n "checking build system type... " >&6; }
1846 if ${ac_cv_build+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 ac_build_alias=$build_alias
1850 test "x$ac_build_alias" = x &&
1851 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1852 test "x$ac_build_alias" = x &&
1853 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1854 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1855 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1856
1857 fi
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1859 $as_echo "$ac_cv_build" >&6; }
1860 case $ac_cv_build in
1861 *-*-*) ;;
1862 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1863 esac
1864 build=$ac_cv_build
1865 ac_save_IFS=$IFS; IFS='-'
1866 set x $ac_cv_build
1867 shift
1868 build_cpu=$1
1869 build_vendor=$2
1870 shift; shift
1871 # Remember, the first character of IFS is used to create $*,
1872 # except with old shells:
1873 build_os=$*
1874 IFS=$ac_save_IFS
1875 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1876
1877
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1879 $as_echo_n "checking host system type... " >&6; }
1880 if ${ac_cv_host+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 else
1883 if test "x$host_alias" = x; then
1884 ac_cv_host=$ac_cv_build
1885 else
1886 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1888 fi
1889
1890 fi
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1892 $as_echo "$ac_cv_host" >&6; }
1893 case $ac_cv_host in
1894 *-*-*) ;;
1895 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1896 esac
1897 host=$ac_cv_host
1898 ac_save_IFS=$IFS; IFS='-'
1899 set x $ac_cv_host
1900 shift
1901 host_cpu=$1
1902 host_vendor=$2
1903 shift; shift
1904 # Remember, the first character of IFS is used to create $*,
1905 # except with old shells:
1906 host_os=$*
1907 IFS=$ac_save_IFS
1908 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1909
1910
1911 am__api_version='1.11'
1912
1913 # Find a good install program. We prefer a C program (faster),
1914 # so one script is as good as another. But avoid the broken or
1915 # incompatible versions:
1916 # SysV /etc/install, /usr/sbin/install
1917 # SunOS /usr/etc/install
1918 # IRIX /sbin/install
1919 # AIX /bin/install
1920 # AmigaOS /C/install, which installs bootblocks on floppy discs
1921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1924 # OS/2's system install, which has a completely different semantic
1925 # ./install, which can be erroneously created by make from ./install.sh.
1926 # Reject install programs that cannot install multiple files.
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1928 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1929 if test -z "$INSTALL"; then
1930 if ${ac_cv_path_install+:} false; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 # Account for people who put trailing slashes in PATH elements.
1939 case $as_dir/ in #((
1940 ./ | .// | /[cC]/* | \
1941 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1942 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1943 /usr/ucb/* ) ;;
1944 *)
1945 # OSF1 and SCO ODT 3.0 have their own names for install.
1946 # Don't use installbsd from OSF since it installs stuff as root
1947 # by default.
1948 for ac_prog in ginstall scoinst install; do
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1951 if test $ac_prog = install &&
1952 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1953 # AIX install. It has an incompatible calling convention.
1954 :
1955 elif test $ac_prog = install &&
1956 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1957 # program-specific install script used by HP pwplus--don't use.
1958 :
1959 else
1960 rm -rf conftest.one conftest.two conftest.dir
1961 echo one > conftest.one
1962 echo two > conftest.two
1963 mkdir conftest.dir
1964 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1965 test -s conftest.one && test -s conftest.two &&
1966 test -s conftest.dir/conftest.one &&
1967 test -s conftest.dir/conftest.two
1968 then
1969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1970 break 3
1971 fi
1972 fi
1973 fi
1974 done
1975 done
1976 ;;
1977 esac
1978
1979 done
1980 IFS=$as_save_IFS
1981
1982 rm -rf conftest.one conftest.two conftest.dir
1983
1984 fi
1985 if test "${ac_cv_path_install+set}" = set; then
1986 INSTALL=$ac_cv_path_install
1987 else
1988 # As a last resort, use the slow shell script. Don't cache a
1989 # value for INSTALL within a source directory, because that will
1990 # break other packages using the cache if that directory is
1991 # removed, or if the value is a relative name.
1992 INSTALL=$ac_install_sh
1993 fi
1994 fi
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1996 $as_echo "$INSTALL" >&6; }
1997
1998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1999 # It thinks the first close brace ends the variable substitution.
2000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2001
2002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2003
2004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2005
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2007 $as_echo_n "checking whether build environment is sane... " >&6; }
2008 # Just in case
2009 sleep 1
2010 echo timestamp > conftest.file
2011 # Reject unsafe characters in $srcdir or the absolute working directory
2012 # name. Accept space and tab only in the latter.
2013 am_lf='
2014 '
2015 case `pwd` in
2016 *[\\\"\#\$\&\'\`$am_lf]*)
2017 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2018 esac
2019 case $srcdir in
2020 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2021 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2022 esac
2023
2024 # Do `set' in a subshell so we don't clobber the current shell's
2025 # arguments. Must try -L first in case configure is actually a
2026 # symlink; some systems play weird games with the mod time of symlinks
2027 # (eg FreeBSD returns the mod time of the symlink's containing
2028 # directory).
2029 if (
2030 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2031 if test "$*" = "X"; then
2032 # -L didn't work.
2033 set X `ls -t "$srcdir/configure" conftest.file`
2034 fi
2035 rm -f conftest.file
2036 if test "$*" != "X $srcdir/configure conftest.file" \
2037 && test "$*" != "X conftest.file $srcdir/configure"; then
2038
2039 # If neither matched, then we have a broken ls. This can happen
2040 # if, for instance, CONFIG_SHELL is bash and it inherits a
2041 # broken ls alias from the environment. This has actually
2042 # happened. Such a system could not be considered "sane".
2043 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2044 alias in your environment" "$LINENO" 5
2045 fi
2046
2047 test "$2" = conftest.file
2048 )
2049 then
2050 # Ok.
2051 :
2052 else
2053 as_fn_error $? "newly created file is older than distributed files!
2054 Check your system clock" "$LINENO" 5
2055 fi
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2057 $as_echo "yes" >&6; }
2058 test "$program_prefix" != NONE &&
2059 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2060 # Use a double $ so make ignores it.
2061 test "$program_suffix" != NONE &&
2062 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2063 # Double any \ or $.
2064 # By default was `s,x,x', remove it if useless.
2065 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2066 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2067
2068 # expand $ac_aux_dir to an absolute path
2069 am_aux_dir=`cd $ac_aux_dir && pwd`
2070
2071 if test x"${MISSING+set}" != xset; then
2072 case $am_aux_dir in
2073 *\ * | *\ *)
2074 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2075 *)
2076 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2077 esac
2078 fi
2079 # Use eval to expand $SHELL
2080 if eval "$MISSING --run true"; then
2081 am_missing_run="$MISSING --run "
2082 else
2083 am_missing_run=
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2085 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2086 fi
2087
2088 if test x"${install_sh}" != xset; then
2089 case $am_aux_dir in
2090 *\ * | *\ *)
2091 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2092 *)
2093 install_sh="\${SHELL} $am_aux_dir/install-sh"
2094 esac
2095 fi
2096
2097 # Installed binaries are usually stripped using `strip' when the user
2098 # run `make install-strip'. However `strip' might not be the right
2099 # tool to use in cross-compilation environments, therefore Automake
2100 # will honor the `STRIP' environment variable to overrule this program.
2101 if test "$cross_compiling" != no; then
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}strip; ac_word=$2
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2106 $as_echo_n "checking for $ac_word... " >&6; }
2107 if ${ac_cv_prog_STRIP+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 if test -n "$STRIP"; then
2111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2115 do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2123 fi
2124 done
2125 done
2126 IFS=$as_save_IFS
2127
2128 fi
2129 fi
2130 STRIP=$ac_cv_prog_STRIP
2131 if test -n "$STRIP"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2133 $as_echo "$STRIP" >&6; }
2134 else
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2136 $as_echo "no" >&6; }
2137 fi
2138
2139
2140 fi
2141 if test -z "$ac_cv_prog_STRIP"; then
2142 ac_ct_STRIP=$STRIP
2143 # Extract the first word of "strip", so it can be a program name with args.
2144 set dummy strip; ac_word=$2
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2146 $as_echo_n "checking for $ac_word... " >&6; }
2147 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 if test -n "$ac_ct_STRIP"; then
2151 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160 ac_cv_prog_ac_ct_STRIP="strip"
2161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 break 2
2163 fi
2164 done
2165 done
2166 IFS=$as_save_IFS
2167
2168 fi
2169 fi
2170 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2171 if test -n "$ac_ct_STRIP"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2173 $as_echo "$ac_ct_STRIP" >&6; }
2174 else
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2176 $as_echo "no" >&6; }
2177 fi
2178
2179 if test "x$ac_ct_STRIP" = x; then
2180 STRIP=":"
2181 else
2182 case $cross_compiling:$ac_tool_warned in
2183 yes:)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2186 ac_tool_warned=yes ;;
2187 esac
2188 STRIP=$ac_ct_STRIP
2189 fi
2190 else
2191 STRIP="$ac_cv_prog_STRIP"
2192 fi
2193
2194 fi
2195 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2196
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2198 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2199 if test -z "$MKDIR_P"; then
2200 if ${ac_cv_path_mkdir+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2205 do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_prog in mkdir gmkdir; do
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2211 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2212 'mkdir (GNU coreutils) '* | \
2213 'mkdir (coreutils) '* | \
2214 'mkdir (fileutils) '4.1*)
2215 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2216 break 3;;
2217 esac
2218 done
2219 done
2220 done
2221 IFS=$as_save_IFS
2222
2223 fi
2224
2225 test -d ./--version && rmdir ./--version
2226 if test "${ac_cv_path_mkdir+set}" = set; then
2227 MKDIR_P="$ac_cv_path_mkdir -p"
2228 else
2229 # As a last resort, use the slow shell script. Don't cache a
2230 # value for MKDIR_P within a source directory, because that will
2231 # break other packages using the cache if that directory is
2232 # removed, or if the value is a relative name.
2233 MKDIR_P="$ac_install_sh -d"
2234 fi
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2237 $as_echo "$MKDIR_P" >&6; }
2238
2239 mkdir_p="$MKDIR_P"
2240 case $mkdir_p in
2241 [\\/$]* | ?:[\\/]*) ;;
2242 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2243 esac
2244
2245 for ac_prog in gawk mawk nawk awk
2246 do
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2250 $as_echo_n "checking for $ac_word... " >&6; }
2251 if ${ac_cv_prog_AWK+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 if test -n "$AWK"; then
2255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 ac_cv_prog_AWK="$ac_prog"
2265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2267 fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272 fi
2273 fi
2274 AWK=$ac_cv_prog_AWK
2275 if test -n "$AWK"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2277 $as_echo "$AWK" >&6; }
2278 else
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2280 $as_echo "no" >&6; }
2281 fi
2282
2283
2284 test -n "$AWK" && break
2285 done
2286
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2288 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2289 set x ${MAKE-make}
2290 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2291 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2292 $as_echo_n "(cached) " >&6
2293 else
2294 cat >conftest.make <<\_ACEOF
2295 SHELL = /bin/sh
2296 all:
2297 @echo '@@@%%%=$(MAKE)=@@@%%%'
2298 _ACEOF
2299 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2300 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2301 *@@@%%%=?*=@@@%%%*)
2302 eval ac_cv_prog_make_${ac_make}_set=yes;;
2303 *)
2304 eval ac_cv_prog_make_${ac_make}_set=no;;
2305 esac
2306 rm -f conftest.make
2307 fi
2308 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2310 $as_echo "yes" >&6; }
2311 SET_MAKE=
2312 else
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2314 $as_echo "no" >&6; }
2315 SET_MAKE="MAKE=${MAKE-make}"
2316 fi
2317
2318 rm -rf .tst 2>/dev/null
2319 mkdir .tst 2>/dev/null
2320 if test -d .tst; then
2321 am__leading_dot=.
2322 else
2323 am__leading_dot=_
2324 fi
2325 rmdir .tst 2>/dev/null
2326
2327 DEPDIR="${am__leading_dot}deps"
2328
2329 ac_config_commands="$ac_config_commands depfiles"
2330
2331
2332 am_make=${MAKE-make}
2333 cat > confinc << 'END'
2334 am__doit:
2335 @echo this is the am__doit target
2336 .PHONY: am__doit
2337 END
2338 # If we don't find an include directive, just comment out the code.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2340 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2341 am__include="#"
2342 am__quote=
2343 _am_result=none
2344 # First try GNU make style include.
2345 echo "include confinc" > confmf
2346 # Ignore all kinds of additional output from `make'.
2347 case `$am_make -s -f confmf 2> /dev/null` in #(
2348 *the\ am__doit\ target*)
2349 am__include=include
2350 am__quote=
2351 _am_result=GNU
2352 ;;
2353 esac
2354 # Now try BSD make style include.
2355 if test "$am__include" = "#"; then
2356 echo '.include "confinc"' > confmf
2357 case `$am_make -s -f confmf 2> /dev/null` in #(
2358 *the\ am__doit\ target*)
2359 am__include=.include
2360 am__quote="\""
2361 _am_result=BSD
2362 ;;
2363 esac
2364 fi
2365
2366
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2368 $as_echo "$_am_result" >&6; }
2369 rm -f confinc confmf
2370
2371 # Check whether --enable-dependency-tracking was given.
2372 if test "${enable_dependency_tracking+set}" = set; then :
2373 enableval=$enable_dependency_tracking;
2374 fi
2375
2376 if test "x$enable_dependency_tracking" != xno; then
2377 am_depcomp="$ac_aux_dir/depcomp"
2378 AMDEPBACKSLASH='\'
2379 am__nodep='_no'
2380 fi
2381 if test "x$enable_dependency_tracking" != xno; then
2382 AMDEP_TRUE=
2383 AMDEP_FALSE='#'
2384 else
2385 AMDEP_TRUE='#'
2386 AMDEP_FALSE=
2387 fi
2388
2389
2390
2391 # Check whether --enable-multilib was given.
2392 if test "${enable_multilib+set}" = set; then :
2393 enableval=$enable_multilib; case "${enableval}" in
2394 yes) multilib=yes ;;
2395 no) multilib=no ;;
2396 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2397 esac
2398 else
2399 multilib=yes
2400 fi
2401
2402 # Check whether --enable-target-optspace was given.
2403 if test "${enable_target_optspace+set}" = set; then :
2404 enableval=$enable_target_optspace; case "${enableval}" in
2405 yes) target_optspace=yes ;;
2406 no) target_optspace=no ;;
2407 *) as_fn_error $? "bad value ${enableval} for target-optspace option" "$LINENO" 5 ;;
2408 esac
2409 else
2410 target_optspace=
2411 fi
2412
2413 # Check whether --enable-malloc-debugging was given.
2414 if test "${enable_malloc_debugging+set}" = set; then :
2415 enableval=$enable_malloc_debugging; case "${enableval}" in
2416 yes) malloc_debugging=yes ;;
2417 no) malloc_debugging=no ;;
2418 *) as_fn_error $? "bad value ${enableval} for malloc-debugging option" "$LINENO" 5 ;;
2419 esac
2420 else
2421 malloc_debugging=
2422 fi
2423
2424 # Check whether --enable-newlib-multithread was given.
2425 if test "${enable_newlib_multithread+set}" = set; then :
2426 enableval=$enable_newlib_multithread; case "${enableval}" in
2427 yes) newlib_multithread=yes ;;
2428 no) newlib_multithread=no ;;
2429 *) as_fn_error $? "bad value ${enableval} for newlib-multithread option" "$LINENO" 5 ;;
2430 esac
2431 else
2432 newlib_multithread=yes
2433 fi
2434
2435 # Check whether --enable-newlib-iconv was given.
2436 if test "${enable_newlib_iconv+set}" = set; then :
2437 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2438 case "${enableval}" in
2439 yes) newlib_iconv=yes ;;
2440 no) newlib_iconv=no ;;
2441 *) as_fn_error $? "bad value ${enableval} for newlib-iconv option" "$LINENO" 5 ;;
2442 esac
2443 fi
2444 else
2445 newlib_iconv=${newlib_iconv}
2446 fi
2447
2448 # Check whether --enable-newlib-elix-level was given.
2449 if test "${enable_newlib_elix_level+set}" = set; then :
2450 enableval=$enable_newlib_elix_level; case "${enableval}" in
2451 0) newlib_elix_level=0 ;;
2452 1) newlib_elix_level=1 ;;
2453 2) newlib_elix_level=2 ;;
2454 3) newlib_elix_level=3 ;;
2455 4) newlib_elix_level=4 ;;
2456 *) as_fn_error $? "bad value ${enableval} for newlib-elix-level option" "$LINENO" 5 ;;
2457 esac
2458 else
2459 newlib_elix_level=0
2460 fi
2461
2462 # Check whether --enable-newlib-io-float was given.
2463 if test "${enable_newlib_io_float+set}" = set; then :
2464 enableval=$enable_newlib_io_float; case "${enableval}" in
2465 yes) newlib_io_float=yes ;;
2466 no) newlib_io_float=no ;;
2467 *) as_fn_error $? "bad value ${enableval} for newlib-io-float option" "$LINENO" 5 ;;
2468 esac
2469 else
2470 newlib_io_float=yes
2471 fi
2472
2473 # Check whether --enable-newlib-supplied-syscalls was given.
2474 if test "${enable_newlib_supplied_syscalls+set}" = set; then :
2475 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2476 yes) newlib_may_supply_syscalls=yes ;;
2477 no) newlib_may_supply_syscalls=no ;;
2478 *) as_fn_error $? "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;;
2479 esac
2480 else
2481 newlib_may_supply_syscalls=yes
2482 fi
2483
2484 if test x${newlib_may_supply_syscalls} = xyes; then
2485 MAY_SUPPLY_SYSCALLS_TRUE=
2486 MAY_SUPPLY_SYSCALLS_FALSE='#'
2487 else
2488 MAY_SUPPLY_SYSCALLS_TRUE='#'
2489 MAY_SUPPLY_SYSCALLS_FALSE=
2490 fi
2491
2492
2493 # Check whether --enable-newlib-fno-builtin was given.
2494 if test "${enable_newlib_fno_builtin+set}" = set; then :
2495 enableval=$enable_newlib_fno_builtin; case "${enableval}" in
2496 yes) newlib_fno_builtin=yes ;;
2497 no) newlib_fno_builtin=no ;;
2498 *) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
2499 esac
2500 else
2501 newlib_fno_builtin=
2502 fi
2503
2504
2505
2506 test -z "${with_target_subdir}" && with_target_subdir=.
2507
2508 if test "${srcdir}" = "."; then
2509 if test "${with_target_subdir}" != "."; then
2510 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2511 else
2512 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2513 fi
2514 else
2515 newlib_basedir="${srcdir}/../../.."
2516 fi
2517
2518
2519
2520
2521 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2522 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2523 # is not polluted with repeated "-I."
2524 am__isrc=' -I$(srcdir)'
2525 # test to see if srcdir already configured
2526 if test -f $srcdir/config.status; then
2527 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2528 fi
2529 fi
2530
2531 # test whether we have cygpath
2532 if test -z "$CYGPATH_W"; then
2533 if (cygpath --version) >/dev/null 2>/dev/null; then
2534 CYGPATH_W='cygpath -w'
2535 else
2536 CYGPATH_W=echo
2537 fi
2538 fi
2539
2540
2541 # Define the identity of the package.
2542 PACKAGE='newlib'
2543 VERSION='3.3.0'
2544
2545
2546 # Some tools Automake needs.
2547
2548 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2549
2550
2551 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2552
2553
2554 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2555
2556
2557 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2558
2559
2560 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2561
2562 # We need awk for the "check" target. The system "awk" is bad on
2563 # some platforms.
2564 # Always define AMTAR for backward compatibility. Yes, it's still used
2565 # in the wild :-( We should find a proper way to deprecate it ...
2566 AMTAR='$${TAR-tar}'
2567
2568 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2569
2570
2571
2572
2573
2574
2575 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
2576 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
2577 # are probably using a cross compiler, which will not be able to fully
2578 # link an executable. This should really be fixed in autoconf
2579 # itself.
2580
2581
2582
2583
2584
2585
2586
2587 # Extract the first word of "gcc", so it can be a program name with args.
2588 set dummy gcc; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_CC+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="gcc"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2617 $as_echo "$CC" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623
2624
2625 depcc="$CC" am_compiler_list=
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2628 $as_echo_n "checking dependency style of $depcc... " >&6; }
2629 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2633 # We make a subdir and do the tests there. Otherwise we can end up
2634 # making bogus files that we don't know about and never remove. For
2635 # instance it was reported that on HP-UX the gcc test will end up
2636 # making a dummy file named `D' -- because `-MD' means `put the output
2637 # in D'.
2638 rm -rf conftest.dir
2639 mkdir conftest.dir
2640 # Copy depcomp to subdir because otherwise we won't find it if we're
2641 # using a relative directory.
2642 cp "$am_depcomp" conftest.dir
2643 cd conftest.dir
2644 # We will build objects and dependencies in a subdirectory because
2645 # it helps to detect inapplicable dependency modes. For instance
2646 # both Tru64's cc and ICC support -MD to output dependencies as a
2647 # side effect of compilation, but ICC will put the dependencies in
2648 # the current directory while Tru64 will put them in the object
2649 # directory.
2650 mkdir sub
2651
2652 am_cv_CC_dependencies_compiler_type=none
2653 if test "$am_compiler_list" = ""; then
2654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2655 fi
2656 am__universal=false
2657 case " $depcc " in #(
2658 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2659 esac
2660
2661 for depmode in $am_compiler_list; do
2662 # Setup a source with many dependencies, because some compilers
2663 # like to wrap large dependency lists on column 80 (with \), and
2664 # we should not choose a depcomp mode which is confused by this.
2665 #
2666 # We need to recreate these files for each test, as the compiler may
2667 # overwrite some of them when testing with obscure command lines.
2668 # This happens at least with the AIX C compiler.
2669 : > sub/conftest.c
2670 for i in 1 2 3 4 5 6; do
2671 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2673 # Solaris 8's {/usr,}/bin/sh.
2674 touch sub/conftst$i.h
2675 done
2676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2677
2678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2679 # mode. It turns out that the SunPro C++ compiler does not properly
2680 # handle `-M -o', and we need to detect this. Also, some Intel
2681 # versions had trouble with output in subdirs
2682 am__obj=sub/conftest.${OBJEXT-o}
2683 am__minus_obj="-o $am__obj"
2684 case $depmode in
2685 gcc)
2686 # This depmode causes a compiler race in universal mode.
2687 test "$am__universal" = false || continue
2688 ;;
2689 nosideeffect)
2690 # after this tag, mechanisms are not by side-effect, so they'll
2691 # only be used when explicitly requested
2692 if test "x$enable_dependency_tracking" = xyes; then
2693 continue
2694 else
2695 break
2696 fi
2697 ;;
2698 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
2699 # This compiler won't grok `-c -o', but also, the minuso test has
2700 # not run yet. These depmodes are late enough in the game, and
2701 # so weak that their functioning should not be impacted.
2702 am__obj=conftest.${OBJEXT-o}
2703 am__minus_obj=
2704 ;;
2705 none) break ;;
2706 esac
2707 if depmode=$depmode \
2708 source=sub/conftest.c object=$am__obj \
2709 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2710 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2711 >/dev/null 2>conftest.err &&
2712 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2713 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2714 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2715 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2716 # icc doesn't choke on unknown options, it will just issue warnings
2717 # or remarks (even with -Werror). So we grep stderr for any message
2718 # that says an option was ignored or not supported.
2719 # When given -MP, icc 7.0 and 7.1 complain thusly:
2720 # icc: Command line warning: ignoring option '-M'; no argument required
2721 # The diagnosis changed in icc 8.0:
2722 # icc: Command line remark: option '-MP' not supported
2723 if (grep 'ignoring option' conftest.err ||
2724 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2725 am_cv_CC_dependencies_compiler_type=$depmode
2726 break
2727 fi
2728 fi
2729 done
2730
2731 cd ..
2732 rm -rf conftest.dir
2733 else
2734 am_cv_CC_dependencies_compiler_type=none
2735 fi
2736
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2739 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2740 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2741
2742 if
2743 test "x$enable_dependency_tracking" != xno \
2744 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2745 am__fastdepCC_TRUE=
2746 am__fastdepCC_FALSE='#'
2747 else
2748 am__fastdepCC_TRUE='#'
2749 am__fastdepCC_FALSE=
2750 fi
2751
2752
2753 if test -z "$CC"; then
2754 # Extract the first word of "cc", so it can be a program name with args.
2755 set dummy cc; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_CC+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 ac_prog_rejected=no
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2773 ac_prog_rejected=yes
2774 continue
2775 fi
2776 ac_cv_prog_CC="cc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783
2784 if test $ac_prog_rejected = yes; then
2785 # We found a bogon in the path, so make sure we never use it.
2786 set dummy $ac_cv_prog_CC
2787 shift
2788 if test $# != 0; then
2789 # We chose a different compiler from the bogus one.
2790 # However, it has the same basename, so the bogon will be chosen
2791 # first if we set CC to just the basename; use the full file name.
2792 shift
2793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2794 fi
2795 fi
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
2809 fi
2810
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
2812 $as_echo_n "checking whether we are using GNU C... " >&6; }
2813 if ${ac_cv_c_compiler_gnu+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 cat > conftest.c <<EOF
2817 #ifdef __GNUC__
2818 yes;
2819 #endif
2820 EOF
2821 if { ac_try='${CC-cc} -E conftest.c'
2822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2826 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
2827 ac_cv_c_compiler_gnu=yes
2828 else
2829 ac_cv_c_compiler_gnu=no
2830 fi
2831 fi
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2833 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2834
2835 if test $ac_cv_c_compiler_gnu = yes; then
2836 GCC=yes
2837 ac_test_CFLAGS="${CFLAGS+set}"
2838 ac_save_CFLAGS="$CFLAGS"
2839 ac_test_CFLAGS=${CFLAGS+set}
2840 ac_save_CFLAGS=$CFLAGS
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2842 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2843 if ${ac_cv_prog_cc_g+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 ac_save_c_werror_flag=$ac_c_werror_flag
2847 ac_c_werror_flag=yes
2848 ac_cv_prog_cc_g=no
2849 CFLAGS="-g"
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2852
2853 int
2854 main ()
2855 {
2856
2857 ;
2858 return 0;
2859 }
2860 _ACEOF
2861 if ac_fn_c_try_compile "$LINENO"; then :
2862 ac_cv_prog_cc_g=yes
2863 else
2864 CFLAGS=""
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2867
2868 int
2869 main ()
2870 {
2871
2872 ;
2873 return 0;
2874 }
2875 _ACEOF
2876 if ac_fn_c_try_compile "$LINENO"; then :
2877
2878 else
2879 ac_c_werror_flag=$ac_save_c_werror_flag
2880 CFLAGS="-g"
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2883
2884 int
2885 main ()
2886 {
2887
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 if ac_fn_c_try_compile "$LINENO"; then :
2893 ac_cv_prog_cc_g=yes
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 fi
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 fi
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 ac_c_werror_flag=$ac_save_c_werror_flag
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2903 $as_echo "$ac_cv_prog_cc_g" >&6; }
2904 if test "$ac_test_CFLAGS" = set; then
2905 CFLAGS=$ac_save_CFLAGS
2906 elif test $ac_cv_prog_cc_g = yes; then
2907 if test "$GCC" = yes; then
2908 CFLAGS="-g -O2"
2909 else
2910 CFLAGS="-g"
2911 fi
2912 else
2913 if test "$GCC" = yes; then
2914 CFLAGS="-O2"
2915 else
2916 CFLAGS=
2917 fi
2918 fi
2919 if test "$ac_test_CFLAGS" = set; then
2920 CFLAGS="$ac_save_CFLAGS"
2921 elif test $ac_cv_prog_cc_g = yes; then
2922 CFLAGS="-g -O2"
2923 else
2924 CFLAGS="-O2"
2925 fi
2926 else
2927 GCC=
2928 test "${CFLAGS+set}" = set || CFLAGS="-g"
2929 fi
2930
2931
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}as; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AS+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$AS"; then
2941 ac_cv_prog_AS="$AS" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_AS="${ac_tool_prefix}as"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 AS=$ac_cv_prog_AS
2961 if test -n "$AS"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2963 $as_echo "$AS" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970 fi
2971 if test -z "$ac_cv_prog_AS"; then
2972 ac_ct_AS=$AS
2973 # Extract the first word of "as", so it can be a program name with args.
2974 set dummy as; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$ac_ct_AS"; then
2981 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_ac_ct_AS="as"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3001 if test -n "$ac_ct_AS"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3003 $as_echo "$ac_ct_AS" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009 if test "x$ac_ct_AS" = x; then
3010 AS=""
3011 else
3012 case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018 AS=$ac_ct_AS
3019 fi
3020 else
3021 AS="$ac_cv_prog_AS"
3022 fi
3023
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}ar; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_AR+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$AR"; then
3033 ac_cv_prog_AR="$AR" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_AR="${ac_tool_prefix}ar"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 AR=$ac_cv_prog_AR
3053 if test -n "$AR"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3055 $as_echo "$AR" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$ac_cv_prog_AR"; then
3064 ac_ct_AR=$AR
3065 # Extract the first word of "ar", so it can be a program name with args.
3066 set dummy ar; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$ac_ct_AR"; then
3073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_AR="ar"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3093 if test -n "$ac_ct_AR"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3095 $as_echo "$ac_ct_AR" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101 if test "x$ac_ct_AR" = x; then
3102 AR=""
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3109 esac
3110 AR=$ac_ct_AR
3111 fi
3112 else
3113 AR="$ac_cv_prog_AR"
3114 fi
3115
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_RANLIB+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$RANLIB"; then
3125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 RANLIB=$ac_cv_prog_RANLIB
3145 if test -n "$RANLIB"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3147 $as_echo "$RANLIB" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 fi
3155 if test -z "$ac_cv_prog_RANLIB"; then
3156 ac_ct_RANLIB=$RANLIB
3157 # Extract the first word of "ranlib", so it can be a program name with args.
3158 set dummy ranlib; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$ac_ct_RANLIB"; then
3165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_ac_ct_RANLIB="ranlib"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3185 if test -n "$ac_ct_RANLIB"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3187 $as_echo "$ac_ct_RANLIB" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193 if test "x$ac_ct_RANLIB" = x; then
3194 RANLIB=":"
3195 else
3196 case $cross_compiling:$ac_tool_warned in
3197 yes:)
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200 ac_tool_warned=yes ;;
3201 esac
3202 RANLIB=$ac_ct_RANLIB
3203 fi
3204 else
3205 RANLIB="$ac_cv_prog_RANLIB"
3206 fi
3207
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_READELF+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$READELF"; then
3217 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3226 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 READELF=$ac_cv_prog_READELF
3237 if test -n "$READELF"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3239 $as_echo "$READELF" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 if test -z "$ac_cv_prog_READELF"; then
3248 ac_ct_READELF=$READELF
3249 # Extract the first word of "readelf", so it can be a program name with args.
3250 set dummy readelf; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$ac_ct_READELF"; then
3257 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_ac_ct_READELF="readelf"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3277 if test -n "$ac_ct_READELF"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3279 $as_echo "$ac_ct_READELF" >&6; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285 if test "x$ac_ct_READELF" = x; then
3286 READELF=":"
3287 else
3288 case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3293 esac
3294 READELF=$ac_ct_READELF
3295 fi
3296 else
3297 READELF="$ac_cv_prog_READELF"
3298 fi
3299
3300
3301
3302
3303 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3304 ac_given_INSTALL=$INSTALL
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3308 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3309 # Check whether --enable-maintainer-mode was given.
3310 if test "${enable_maintainer_mode+set}" = set; then :
3311 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3312 else
3313 USE_MAINTAINER_MODE=no
3314 fi
3315
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3317 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3318 if test $USE_MAINTAINER_MODE = yes; then
3319 MAINTAINER_MODE_TRUE=
3320 MAINTAINER_MODE_FALSE='#'
3321 else
3322 MAINTAINER_MODE_TRUE='#'
3323 MAINTAINER_MODE_FALSE=
3324 fi
3325
3326 MAINT=$MAINTAINER_MODE_TRUE
3327
3328
3329 # By default we simply use the C compiler to build assembly code.
3330
3331 test "${CCAS+set}" = set || CCAS=$CC
3332 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3333
3334
3335
3336
3337 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3338 # at least currently, we never actually build a program, so we never
3339 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3340 # fails, because we are probably configuring with a cross compiler
3341 # which can't create executables. So we include AC_EXEEXT to keep
3342 # automake happy, but we don't execute it, since we don't care about
3343 # the result.
3344 if false; then
3345
3346 dummy_var=1
3347 fi
3348
3349 . ${newlib_basedir}/configure.host
3350
3351 NEWLIB_CFLAGS=${newlib_cflags}
3352
3353
3354 NO_INCLUDE_LIST=${noinclude}
3355
3356
3357 LDFLAGS=${ldflags}
3358
3359
3360 if test x${newlib_elix_level} = x0; then
3361 ELIX_LEVEL_0_TRUE=
3362 ELIX_LEVEL_0_FALSE='#'
3363 else
3364 ELIX_LEVEL_0_TRUE='#'
3365 ELIX_LEVEL_0_FALSE=
3366 fi
3367
3368 if test x${newlib_elix_level} = x1; then
3369 ELIX_LEVEL_1_TRUE=
3370 ELIX_LEVEL_1_FALSE='#'
3371 else
3372 ELIX_LEVEL_1_TRUE='#'
3373 ELIX_LEVEL_1_FALSE=
3374 fi
3375
3376 if test x${newlib_elix_level} = x2; then
3377 ELIX_LEVEL_2_TRUE=
3378 ELIX_LEVEL_2_FALSE='#'
3379 else
3380 ELIX_LEVEL_2_TRUE='#'
3381 ELIX_LEVEL_2_FALSE=
3382 fi
3383
3384 if test x${newlib_elix_level} = x3; then
3385 ELIX_LEVEL_3_TRUE=
3386 ELIX_LEVEL_3_FALSE='#'
3387 else
3388 ELIX_LEVEL_3_TRUE='#'
3389 ELIX_LEVEL_3_FALSE=
3390 fi
3391
3392 if test x${newlib_elix_level} = x4; then
3393 ELIX_LEVEL_4_TRUE=
3394 ELIX_LEVEL_4_FALSE='#'
3395 else
3396 ELIX_LEVEL_4_TRUE='#'
3397 ELIX_LEVEL_4_FALSE=
3398 fi
3399
3400
3401 if test x${use_libtool} = xyes; then
3402 USE_LIBTOOL_TRUE=
3403 USE_LIBTOOL_FALSE='#'
3404 else
3405 USE_LIBTOOL_TRUE='#'
3406 USE_LIBTOOL_FALSE=
3407 fi
3408
3409
3410 # Emit any target-specific warnings.
3411 if test "x${newlib_msg_warn}" != "x"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${newlib_msg_warn}" >&5
3413 $as_echo "$as_me: WARNING: ${newlib_msg_warn}" >&2;}
3414 fi
3415
3416 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3417 # use oext, which is set in configure.host based on the target platform.
3418 OBJEXT=${oext}
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430 ac_config_files="$ac_config_files Makefile"
3431
3432 cat >confcache <<\_ACEOF
3433 # This file is a shell script that caches the results of configure
3434 # tests run on this system so they can be shared between configure
3435 # scripts and configure runs, see configure's option --config-cache.
3436 # It is not useful on other systems. If it contains results you don't
3437 # want to keep, you may remove or edit it.
3438 #
3439 # config.status only pays attention to the cache file if you give it
3440 # the --recheck option to rerun configure.
3441 #
3442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3444 # following values.
3445
3446 _ACEOF
3447
3448 # The following way of writing the cache mishandles newlines in values,
3449 # but we know of no workaround that is simple, portable, and efficient.
3450 # So, we kill variables containing newlines.
3451 # Ultrix sh set writes to stderr and can't be redirected directly,
3452 # and sets the high bit in the cache file unless we assign to the vars.
3453 (
3454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3455 eval ac_val=\$$ac_var
3456 case $ac_val in #(
3457 *${as_nl}*)
3458 case $ac_var in #(
3459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3460 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3461 esac
3462 case $ac_var in #(
3463 _ | IFS | as_nl) ;; #(
3464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3465 *) { eval $ac_var=; unset $ac_var;} ;;
3466 esac ;;
3467 esac
3468 done
3469
3470 (set) 2>&1 |
3471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3472 *${as_nl}ac_space=\ *)
3473 # `set' does not quote correctly, so add quotes: double-quote
3474 # substitution turns \\\\ into \\, and sed turns \\ into \.
3475 sed -n \
3476 "s/'/'\\\\''/g;
3477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3478 ;; #(
3479 *)
3480 # `set' quotes correctly as required by POSIX, so do not add quotes.
3481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3482 ;;
3483 esac |
3484 sort
3485 ) |
3486 sed '
3487 /^ac_cv_env_/b end
3488 t clear
3489 :clear
3490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3491 t end
3492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3493 :end' >>confcache
3494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3495 if test -w "$cache_file"; then
3496 if test "x$cache_file" != "x/dev/null"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3498 $as_echo "$as_me: updating cache $cache_file" >&6;}
3499 if test ! -f "$cache_file" || test -h "$cache_file"; then
3500 cat confcache >"$cache_file"
3501 else
3502 case $cache_file in #(
3503 */* | ?:*)
3504 mv -f confcache "$cache_file"$$ &&
3505 mv -f "$cache_file"$$ "$cache_file" ;; #(
3506 *)
3507 mv -f confcache "$cache_file" ;;
3508 esac
3509 fi
3510 fi
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3513 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3514 fi
3515 fi
3516 rm -f confcache
3517
3518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3519 # Let make expand exec_prefix.
3520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3521
3522 # Transform confdefs.h into DEFS.
3523 # Protect against shell expansion while executing Makefile rules.
3524 # Protect against Makefile macro expansion.
3525 #
3526 # If the first sed substitution is executed (which looks for macros that
3527 # take arguments), then branch to the quote section. Otherwise,
3528 # look for a macro that doesn't take arguments.
3529 ac_script='
3530 :mline
3531 /\\$/{
3532 N
3533 s,\\\n,,
3534 b mline
3535 }
3536 t clear
3537 :clear
3538 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3539 t quote
3540 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3541 t quote
3542 b any
3543 :quote
3544 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3545 s/\[/\\&/g
3546 s/\]/\\&/g
3547 s/\$/$$/g
3548 H
3549 :any
3550 ${
3551 g
3552 s/^\n//
3553 s/\n/ /g
3554 p
3555 }
3556 '
3557 DEFS=`sed -n "$ac_script" confdefs.h`
3558
3559
3560 ac_libobjs=
3561 ac_ltlibobjs=
3562 U=
3563 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3564 # 1. Remove the extension, and $U if already installed.
3565 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3566 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3567 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3568 # will be set to the directory where LIBOBJS objects are built.
3569 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3570 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3571 done
3572 LIBOBJS=$ac_libobjs
3573
3574 LTLIBOBJS=$ac_ltlibobjs
3575
3576
3577 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
3578 as_fn_error $? "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
3579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3580 fi
3581
3582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3583 as_fn_error $? "conditional \"AMDEP\" was never defined.
3584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3585 fi
3586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3587 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
3588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3589 fi
3590 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3591 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
3592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3593 fi
3594 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
3595 as_fn_error $? "conditional \"ELIX_LEVEL_0\" was never defined.
3596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3597 fi
3598 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
3599 as_fn_error $? "conditional \"ELIX_LEVEL_1\" was never defined.
3600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3601 fi
3602 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
3603 as_fn_error $? "conditional \"ELIX_LEVEL_2\" was never defined.
3604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3605 fi
3606 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
3607 as_fn_error $? "conditional \"ELIX_LEVEL_3\" was never defined.
3608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3609 fi
3610 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
3611 as_fn_error $? "conditional \"ELIX_LEVEL_4\" was never defined.
3612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3613 fi
3614 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
3615 as_fn_error $? "conditional \"USE_LIBTOOL\" was never defined.
3616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3617 fi
3618
3619 : "${CONFIG_STATUS=./config.status}"
3620 ac_write_fail=0
3621 ac_clean_files_save=$ac_clean_files
3622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3625 as_write_fail=0
3626 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3627 #! $SHELL
3628 # Generated by $as_me.
3629 # Run this file to recreate the current configuration.
3630 # Compiler output produced by configure, useful for debugging
3631 # configure, is in config.log if it exists.
3632
3633 debug=false
3634 ac_cs_recheck=false
3635 ac_cs_silent=false
3636
3637 SHELL=\${CONFIG_SHELL-$SHELL}
3638 export SHELL
3639 _ASEOF
3640 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3641 ## -------------------- ##
3642 ## M4sh Initialization. ##
3643 ## -------------------- ##
3644
3645 # Be more Bourne compatible
3646 DUALCASE=1; export DUALCASE # for MKS sh
3647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3648 emulate sh
3649 NULLCMD=:
3650 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3651 # is contrary to our usage. Disable this feature.
3652 alias -g '${1+"$@"}'='"$@"'
3653 setopt NO_GLOB_SUBST
3654 else
3655 case `(set -o) 2>/dev/null` in #(
3656 *posix*) :
3657 set -o posix ;; #(
3658 *) :
3659 ;;
3660 esac
3661 fi
3662
3663
3664 as_nl='
3665 '
3666 export as_nl
3667 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3668 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3671 # Prefer a ksh shell builtin over an external printf program on Solaris,
3672 # but without wasting forks for bash or zsh.
3673 if test -z "$BASH_VERSION$ZSH_VERSION" \
3674 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3675 as_echo='print -r --'
3676 as_echo_n='print -rn --'
3677 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3678 as_echo='printf %s\n'
3679 as_echo_n='printf %s'
3680 else
3681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3682 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3683 as_echo_n='/usr/ucb/echo -n'
3684 else
3685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3686 as_echo_n_body='eval
3687 arg=$1;
3688 case $arg in #(
3689 *"$as_nl"*)
3690 expr "X$arg" : "X\\(.*\\)$as_nl";
3691 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3692 esac;
3693 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3694 '
3695 export as_echo_n_body
3696 as_echo_n='sh -c $as_echo_n_body as_echo'
3697 fi
3698 export as_echo_body
3699 as_echo='sh -c $as_echo_body as_echo'
3700 fi
3701
3702 # The user is always right.
3703 if test "${PATH_SEPARATOR+set}" != set; then
3704 PATH_SEPARATOR=:
3705 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3706 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3707 PATH_SEPARATOR=';'
3708 }
3709 fi
3710
3711
3712 # IFS
3713 # We need space, tab and new line, in precisely that order. Quoting is
3714 # there to prevent editors from complaining about space-tab.
3715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3716 # splitting by setting IFS to empty value.)
3717 IFS=" "" $as_nl"
3718
3719 # Find who we are. Look in the path if we contain no directory separator.
3720 as_myself=
3721 case $0 in #((
3722 *[\\/]* ) as_myself=$0 ;;
3723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3729 done
3730 IFS=$as_save_IFS
3731
3732 ;;
3733 esac
3734 # We did not find ourselves, most probably we were run as `sh COMMAND'
3735 # in which case we are not to be found in the path.
3736 if test "x$as_myself" = x; then
3737 as_myself=$0
3738 fi
3739 if test ! -f "$as_myself"; then
3740 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3741 exit 1
3742 fi
3743
3744 # Unset variables that we do not need and which cause bugs (e.g. in
3745 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3746 # suppresses any "Segmentation fault" message there. '((' could
3747 # trigger a bug in pdksh 5.2.14.
3748 for as_var in BASH_ENV ENV MAIL MAILPATH
3749 do eval test x\${$as_var+set} = xset \
3750 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3751 done
3752 PS1='$ '
3753 PS2='> '
3754 PS4='+ '
3755
3756 # NLS nuisances.
3757 LC_ALL=C
3758 export LC_ALL
3759 LANGUAGE=C
3760 export LANGUAGE
3761
3762 # CDPATH.
3763 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3764
3765
3766 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3767 # ----------------------------------------
3768 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3769 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3770 # script with STATUS, using 1 if that was 0.
3771 as_fn_error ()
3772 {
3773 as_status=$1; test $as_status -eq 0 && as_status=1
3774 if test "$4"; then
3775 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3776 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3777 fi
3778 $as_echo "$as_me: error: $2" >&2
3779 as_fn_exit $as_status
3780 } # as_fn_error
3781
3782
3783 # as_fn_set_status STATUS
3784 # -----------------------
3785 # Set $? to STATUS, without forking.
3786 as_fn_set_status ()
3787 {
3788 return $1
3789 } # as_fn_set_status
3790
3791 # as_fn_exit STATUS
3792 # -----------------
3793 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3794 as_fn_exit ()
3795 {
3796 set +e
3797 as_fn_set_status $1
3798 exit $1
3799 } # as_fn_exit
3800
3801 # as_fn_unset VAR
3802 # ---------------
3803 # Portably unset VAR.
3804 as_fn_unset ()
3805 {
3806 { eval $1=; unset $1;}
3807 }
3808 as_unset=as_fn_unset
3809 # as_fn_append VAR VALUE
3810 # ----------------------
3811 # Append the text in VALUE to the end of the definition contained in VAR. Take
3812 # advantage of any shell optimizations that allow amortized linear growth over
3813 # repeated appends, instead of the typical quadratic growth present in naive
3814 # implementations.
3815 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3816 eval 'as_fn_append ()
3817 {
3818 eval $1+=\$2
3819 }'
3820 else
3821 as_fn_append ()
3822 {
3823 eval $1=\$$1\$2
3824 }
3825 fi # as_fn_append
3826
3827 # as_fn_arith ARG...
3828 # ------------------
3829 # Perform arithmetic evaluation on the ARGs, and store the result in the
3830 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3831 # must be portable across $(()) and expr.
3832 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3833 eval 'as_fn_arith ()
3834 {
3835 as_val=$(( $* ))
3836 }'
3837 else
3838 as_fn_arith ()
3839 {
3840 as_val=`expr "$@" || test $? -eq 1`
3841 }
3842 fi # as_fn_arith
3843
3844
3845 if expr a : '\(a\)' >/dev/null 2>&1 &&
3846 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3847 as_expr=expr
3848 else
3849 as_expr=false
3850 fi
3851
3852 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3853 as_basename=basename
3854 else
3855 as_basename=false
3856 fi
3857
3858 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3859 as_dirname=dirname
3860 else
3861 as_dirname=false
3862 fi
3863
3864 as_me=`$as_basename -- "$0" ||
3865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3866 X"$0" : 'X\(//\)$' \| \
3867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3868 $as_echo X/"$0" |
3869 sed '/^.*\/\([^/][^/]*\)\/*$/{
3870 s//\1/
3871 q
3872 }
3873 /^X\/\(\/\/\)$/{
3874 s//\1/
3875 q
3876 }
3877 /^X\/\(\/\).*/{
3878 s//\1/
3879 q
3880 }
3881 s/.*/./; q'`
3882
3883 # Avoid depending upon Character Ranges.
3884 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3885 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3886 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3887 as_cr_digits='0123456789'
3888 as_cr_alnum=$as_cr_Letters$as_cr_digits
3889
3890 ECHO_C= ECHO_N= ECHO_T=
3891 case `echo -n x` in #(((((
3892 -n*)
3893 case `echo 'xy\c'` in
3894 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3895 xy) ECHO_C='\c';;
3896 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3897 ECHO_T=' ';;
3898 esac;;
3899 *)
3900 ECHO_N='-n';;
3901 esac
3902
3903 rm -f conf$$ conf$$.exe conf$$.file
3904 if test -d conf$$.dir; then
3905 rm -f conf$$.dir/conf$$.file
3906 else
3907 rm -f conf$$.dir
3908 mkdir conf$$.dir 2>/dev/null
3909 fi
3910 if (echo >conf$$.file) 2>/dev/null; then
3911 if ln -s conf$$.file conf$$ 2>/dev/null; then
3912 as_ln_s='ln -s'
3913 # ... but there are two gotchas:
3914 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3915 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3916 # In both cases, we have to default to `cp -p'.
3917 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3918 as_ln_s='cp -p'
3919 elif ln conf$$.file conf$$ 2>/dev/null; then
3920 as_ln_s=ln
3921 else
3922 as_ln_s='cp -p'
3923 fi
3924 else
3925 as_ln_s='cp -p'
3926 fi
3927 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3928 rmdir conf$$.dir 2>/dev/null
3929
3930
3931 # as_fn_mkdir_p
3932 # -------------
3933 # Create "$as_dir" as a directory, including parents if necessary.
3934 as_fn_mkdir_p ()
3935 {
3936
3937 case $as_dir in #(
3938 -*) as_dir=./$as_dir;;
3939 esac
3940 test -d "$as_dir" || eval $as_mkdir_p || {
3941 as_dirs=
3942 while :; do
3943 case $as_dir in #(
3944 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3945 *) as_qdir=$as_dir;;
3946 esac
3947 as_dirs="'$as_qdir' $as_dirs"
3948 as_dir=`$as_dirname -- "$as_dir" ||
3949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3950 X"$as_dir" : 'X\(//\)[^/]' \| \
3951 X"$as_dir" : 'X\(//\)$' \| \
3952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3953 $as_echo X"$as_dir" |
3954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3955 s//\1/
3956 q
3957 }
3958 /^X\(\/\/\)[^/].*/{
3959 s//\1/
3960 q
3961 }
3962 /^X\(\/\/\)$/{
3963 s//\1/
3964 q
3965 }
3966 /^X\(\/\).*/{
3967 s//\1/
3968 q
3969 }
3970 s/.*/./; q'`
3971 test -d "$as_dir" && break
3972 done
3973 test -z "$as_dirs" || eval "mkdir $as_dirs"
3974 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3975
3976
3977 } # as_fn_mkdir_p
3978 if mkdir -p . 2>/dev/null; then
3979 as_mkdir_p='mkdir -p "$as_dir"'
3980 else
3981 test -d ./-p && rmdir ./-p
3982 as_mkdir_p=false
3983 fi
3984
3985 if test -x / >/dev/null 2>&1; then
3986 as_test_x='test -x'
3987 else
3988 if ls -dL / >/dev/null 2>&1; then
3989 as_ls_L_option=L
3990 else
3991 as_ls_L_option=
3992 fi
3993 as_test_x='
3994 eval sh -c '\''
3995 if test -d "$1"; then
3996 test -d "$1/.";
3997 else
3998 case $1 in #(
3999 -*)set "./$1";;
4000 esac;
4001 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4002 ???[sx]*):;;*)false;;esac;fi
4003 '\'' sh
4004 '
4005 fi
4006 as_executable_p=$as_test_x
4007
4008 # Sed expression to map a string onto a valid CPP name.
4009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4010
4011 # Sed expression to map a string onto a valid variable name.
4012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4013
4014
4015 exec 6>&1
4016 ## ----------------------------------- ##
4017 ## Main body of $CONFIG_STATUS script. ##
4018 ## ----------------------------------- ##
4019 _ASEOF
4020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4021
4022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4023 # Save the log message, to keep $0 and so on meaningful, and to
4024 # report actual input values of CONFIG_FILES etc. instead of their
4025 # values after options handling.
4026 ac_log="
4027 This file was extended by newlib $as_me 3.3.0, which was
4028 generated by GNU Autoconf 2.68. Invocation command line was
4029
4030 CONFIG_FILES = $CONFIG_FILES
4031 CONFIG_HEADERS = $CONFIG_HEADERS
4032 CONFIG_LINKS = $CONFIG_LINKS
4033 CONFIG_COMMANDS = $CONFIG_COMMANDS
4034 $ $0 $@
4035
4036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4037 "
4038
4039 _ACEOF
4040
4041 case $ac_config_files in *"
4042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4043 esac
4044
4045
4046
4047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4048 # Files that config.status was made for.
4049 config_files="$ac_config_files"
4050 config_commands="$ac_config_commands"
4051
4052 _ACEOF
4053
4054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4055 ac_cs_usage="\
4056 \`$as_me' instantiates files and other configuration actions
4057 from templates according to the current configuration. Unless the files
4058 and actions are specified as TAGs, all are instantiated by default.
4059
4060 Usage: $0 [OPTION]... [TAG]...
4061
4062 -h, --help print this help, then exit
4063 -V, --version print version number and configuration settings, then exit
4064 --config print configuration, then exit
4065 -q, --quiet, --silent
4066 do not print progress messages
4067 -d, --debug don't remove temporary files
4068 --recheck update $as_me by reconfiguring in the same conditions
4069 --file=FILE[:TEMPLATE]
4070 instantiate the configuration file FILE
4071
4072 Configuration files:
4073 $config_files
4074
4075 Configuration commands:
4076 $config_commands
4077
4078 Report bugs to the package provider."
4079
4080 _ACEOF
4081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4083 ac_cs_version="\\
4084 newlib config.status 3.3.0
4085 configured by $0, generated by GNU Autoconf 2.68,
4086 with options \\"\$ac_cs_config\\"
4087
4088 Copyright (C) 2010 Free Software Foundation, Inc.
4089 This config.status script is free software; the Free Software Foundation
4090 gives unlimited permission to copy, distribute and modify it."
4091
4092 ac_pwd='$ac_pwd'
4093 srcdir='$srcdir'
4094 INSTALL='$INSTALL'
4095 MKDIR_P='$MKDIR_P'
4096 AWK='$AWK'
4097 test -n "\$AWK" || AWK=awk
4098 _ACEOF
4099
4100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4101 # The default lists apply if the user does not specify any file.
4102 ac_need_defaults=:
4103 while test $# != 0
4104 do
4105 case $1 in
4106 --*=?*)
4107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4109 ac_shift=:
4110 ;;
4111 --*=)
4112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4113 ac_optarg=
4114 ac_shift=:
4115 ;;
4116 *)
4117 ac_option=$1
4118 ac_optarg=$2
4119 ac_shift=shift
4120 ;;
4121 esac
4122
4123 case $ac_option in
4124 # Handling of the options.
4125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4126 ac_cs_recheck=: ;;
4127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4128 $as_echo "$ac_cs_version"; exit ;;
4129 --config | --confi | --conf | --con | --co | --c )
4130 $as_echo "$ac_cs_config"; exit ;;
4131 --debug | --debu | --deb | --de | --d | -d )
4132 debug=: ;;
4133 --file | --fil | --fi | --f )
4134 $ac_shift
4135 case $ac_optarg in
4136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4137 '') as_fn_error $? "missing file argument" ;;
4138 esac
4139 as_fn_append CONFIG_FILES " '$ac_optarg'"
4140 ac_need_defaults=false;;
4141 --he | --h | --help | --hel | -h )
4142 $as_echo "$ac_cs_usage"; exit ;;
4143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4145 ac_cs_silent=: ;;
4146
4147 # This is an error.
4148 -*) as_fn_error $? "unrecognized option: \`$1'
4149 Try \`$0 --help' for more information." ;;
4150
4151 *) as_fn_append ac_config_targets " $1"
4152 ac_need_defaults=false ;;
4153
4154 esac
4155 shift
4156 done
4157
4158 ac_configure_extra_args=
4159
4160 if $ac_cs_silent; then
4161 exec 6>/dev/null
4162 ac_configure_extra_args="$ac_configure_extra_args --silent"
4163 fi
4164
4165 _ACEOF
4166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4167 if \$ac_cs_recheck; then
4168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4169 shift
4170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4171 CONFIG_SHELL='$SHELL'
4172 export CONFIG_SHELL
4173 exec "\$@"
4174 fi
4175
4176 _ACEOF
4177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4178 exec 5>>config.log
4179 {
4180 echo
4181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4182 ## Running $as_me. ##
4183 _ASBOX
4184 $as_echo "$ac_log"
4185 } >&5
4186
4187 _ACEOF
4188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4189 #
4190 # INIT-COMMANDS
4191 #
4192 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4193
4194 _ACEOF
4195
4196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4197
4198 # Handling of arguments.
4199 for ac_config_target in $ac_config_targets
4200 do
4201 case $ac_config_target in
4202 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4204
4205 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4206 esac
4207 done
4208
4209
4210 # If the user did not use the arguments to specify the items to instantiate,
4211 # then the envvar interface is used. Set only those that are not.
4212 # We use the long form for the default assignment because of an extremely
4213 # bizarre bug on SunOS 4.1.3.
4214 if $ac_need_defaults; then
4215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4217 fi
4218
4219 # Have a temporary directory for convenience. Make it in the build tree
4220 # simply because there is no reason against having it here, and in addition,
4221 # creating and moving files from /tmp can sometimes cause problems.
4222 # Hook for its removal unless debugging.
4223 # Note that there is a small window in which the directory will not be cleaned:
4224 # after its creation but before its name has been assigned to `$tmp'.
4225 $debug ||
4226 {
4227 tmp= ac_tmp=
4228 trap 'exit_status=$?
4229 : "${ac_tmp:=$tmp}"
4230 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4231 ' 0
4232 trap 'as_fn_exit 1' 1 2 13 15
4233 }
4234 # Create a (secure) tmp directory for tmp files.
4235
4236 {
4237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4238 test -d "$tmp"
4239 } ||
4240 {
4241 tmp=./conf$$-$RANDOM
4242 (umask 077 && mkdir "$tmp")
4243 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4244 ac_tmp=$tmp
4245
4246 # Set up the scripts for CONFIG_FILES section.
4247 # No need to generate them if there are no CONFIG_FILES.
4248 # This happens for instance with `./config.status config.h'.
4249 if test -n "$CONFIG_FILES"; then
4250
4251
4252 ac_cr=`echo X | tr X '\015'`
4253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4254 # But we know of no other shell where ac_cr would be empty at this
4255 # point, so we can use a bashism as a fallback.
4256 if test "x$ac_cr" = x; then
4257 eval ac_cr=\$\'\\r\'
4258 fi
4259 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4261 ac_cs_awk_cr='\\r'
4262 else
4263 ac_cs_awk_cr=$ac_cr
4264 fi
4265
4266 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4267 _ACEOF
4268
4269
4270 {
4271 echo "cat >conf$$subs.awk <<_ACEOF" &&
4272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4273 echo "_ACEOF"
4274 } >conf$$subs.sh ||
4275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4277 ac_delim='%!_!# '
4278 for ac_last_try in false false false false false :; do
4279 . ./conf$$subs.sh ||
4280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4281
4282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4283 if test $ac_delim_n = $ac_delim_num; then
4284 break
4285 elif $ac_last_try; then
4286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4287 else
4288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4289 fi
4290 done
4291 rm -f conf$$subs.sh
4292
4293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4294 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4295 _ACEOF
4296 sed -n '
4297 h
4298 s/^/S["/; s/!.*/"]=/
4299 p
4300 g
4301 s/^[^!]*!//
4302 :repl
4303 t repl
4304 s/'"$ac_delim"'$//
4305 t delim
4306 :nl
4307 h
4308 s/\(.\{148\}\)..*/\1/
4309 t more1
4310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4311 p
4312 n
4313 b repl
4314 :more1
4315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4316 p
4317 g
4318 s/.\{148\}//
4319 t nl
4320 :delim
4321 h
4322 s/\(.\{148\}\)..*/\1/
4323 t more2
4324 s/["\\]/\\&/g; s/^/"/; s/$/"/
4325 p
4326 b
4327 :more2
4328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4329 p
4330 g
4331 s/.\{148\}//
4332 t delim
4333 ' <conf$$subs.awk | sed '
4334 /^[^""]/{
4335 N
4336 s/\n//
4337 }
4338 ' >>$CONFIG_STATUS || ac_write_fail=1
4339 rm -f conf$$subs.awk
4340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4341 _ACAWK
4342 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4343 for (key in S) S_is_set[key] = 1
4344 FS = ""
4345
4346 }
4347 {
4348 line = $ 0
4349 nfields = split(line, field, "@")
4350 substed = 0
4351 len = length(field[1])
4352 for (i = 2; i < nfields; i++) {
4353 key = field[i]
4354 keylen = length(key)
4355 if (S_is_set[key]) {
4356 value = S[key]
4357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4358 len += length(value) + length(field[++i])
4359 substed = 1
4360 } else
4361 len += 1 + keylen
4362 }
4363
4364 print line
4365 }
4366
4367 _ACAWK
4368 _ACEOF
4369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4370 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4371 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4372 else
4373 cat
4374 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4375 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4376 _ACEOF
4377
4378 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4379 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4380 # trailing colons and then remove the whole line if VPATH becomes empty
4381 # (actually we leave an empty line to preserve line numbers).
4382 if test "x$srcdir" = x.; then
4383 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4384 h
4385 s///
4386 s/^/:/
4387 s/[ ]*$/:/
4388 s/:\$(srcdir):/:/g
4389 s/:\${srcdir}:/:/g
4390 s/:@srcdir@:/:/g
4391 s/^:*//
4392 s/:*$//
4393 x
4394 s/\(=[ ]*\).*/\1/
4395 G
4396 s/\n//
4397 s/^[^=]*=[ ]*$//
4398 }'
4399 fi
4400
4401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4402 fi # test -n "$CONFIG_FILES"
4403
4404
4405 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
4406 shift
4407 for ac_tag
4408 do
4409 case $ac_tag in
4410 :[FHLC]) ac_mode=$ac_tag; continue;;
4411 esac
4412 case $ac_mode$ac_tag in
4413 :[FHL]*:*);;
4414 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4415 :[FH]-) ac_tag=-:-;;
4416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4417 esac
4418 ac_save_IFS=$IFS
4419 IFS=:
4420 set x $ac_tag
4421 IFS=$ac_save_IFS
4422 shift
4423 ac_file=$1
4424 shift
4425
4426 case $ac_mode in
4427 :L) ac_source=$1;;
4428 :[FH])
4429 ac_file_inputs=
4430 for ac_f
4431 do
4432 case $ac_f in
4433 -) ac_f="$ac_tmp/stdin";;
4434 *) # Look for the file first in the build tree, then in the source tree
4435 # (if the path is not absolute). The absolute path cannot be DOS-style,
4436 # because $ac_f cannot contain `:'.
4437 test -f "$ac_f" ||
4438 case $ac_f in
4439 [\\/$]*) false;;
4440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4441 esac ||
4442 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4443 esac
4444 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4445 as_fn_append ac_file_inputs " '$ac_f'"
4446 done
4447
4448 # Let's still pretend it is `configure' which instantiates (i.e., don't
4449 # use $as_me), people would be surprised to read:
4450 # /* config.h. Generated by config.status. */
4451 configure_input='Generated from '`
4452 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4453 `' by configure.'
4454 if test x"$ac_file" != x-; then
4455 configure_input="$ac_file. $configure_input"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4457 $as_echo "$as_me: creating $ac_file" >&6;}
4458 fi
4459 # Neutralize special characters interpreted by sed in replacement strings.
4460 case $configure_input in #(
4461 *\&* | *\|* | *\\* )
4462 ac_sed_conf_input=`$as_echo "$configure_input" |
4463 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4464 *) ac_sed_conf_input=$configure_input;;
4465 esac
4466
4467 case $ac_tag in
4468 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4470 esac
4471 ;;
4472 esac
4473
4474 ac_dir=`$as_dirname -- "$ac_file" ||
4475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4476 X"$ac_file" : 'X\(//\)[^/]' \| \
4477 X"$ac_file" : 'X\(//\)$' \| \
4478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4479 $as_echo X"$ac_file" |
4480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4481 s//\1/
4482 q
4483 }
4484 /^X\(\/\/\)[^/].*/{
4485 s//\1/
4486 q
4487 }
4488 /^X\(\/\/\)$/{
4489 s//\1/
4490 q
4491 }
4492 /^X\(\/\).*/{
4493 s//\1/
4494 q
4495 }
4496 s/.*/./; q'`
4497 as_dir="$ac_dir"; as_fn_mkdir_p
4498 ac_builddir=.
4499
4500 case "$ac_dir" in
4501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4502 *)
4503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4504 # A ".." for each directory in $ac_dir_suffix.
4505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4506 case $ac_top_builddir_sub in
4507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4509 esac ;;
4510 esac
4511 ac_abs_top_builddir=$ac_pwd
4512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4513 # for backward compatibility:
4514 ac_top_builddir=$ac_top_build_prefix
4515
4516 case $srcdir in
4517 .) # We are building in place.
4518 ac_srcdir=.
4519 ac_top_srcdir=$ac_top_builddir_sub
4520 ac_abs_top_srcdir=$ac_pwd ;;
4521 [\\/]* | ?:[\\/]* ) # Absolute name.
4522 ac_srcdir=$srcdir$ac_dir_suffix;
4523 ac_top_srcdir=$srcdir
4524 ac_abs_top_srcdir=$srcdir ;;
4525 *) # Relative name.
4526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4527 ac_top_srcdir=$ac_top_build_prefix$srcdir
4528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4529 esac
4530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4531
4532
4533 case $ac_mode in
4534 :F)
4535 #
4536 # CONFIG_FILE
4537 #
4538
4539 case $INSTALL in
4540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4542 esac
4543 ac_MKDIR_P=$MKDIR_P
4544 case $MKDIR_P in
4545 [\\/$]* | ?:[\\/]* ) ;;
4546 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
4547 esac
4548 _ACEOF
4549
4550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4551 # If the template does not know about datarootdir, expand it.
4552 # FIXME: This hack should be removed a few years after 2.60.
4553 ac_datarootdir_hack=; ac_datarootdir_seen=
4554 ac_sed_dataroot='
4555 /datarootdir/ {
4556 p
4557 q
4558 }
4559 /@datadir@/p
4560 /@docdir@/p
4561 /@infodir@/p
4562 /@localedir@/p
4563 /@mandir@/p'
4564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4565 *datarootdir*) ac_datarootdir_seen=yes;;
4566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4568 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4569 _ACEOF
4570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4571 ac_datarootdir_hack='
4572 s&@datadir@&$datadir&g
4573 s&@docdir@&$docdir&g
4574 s&@infodir@&$infodir&g
4575 s&@localedir@&$localedir&g
4576 s&@mandir@&$mandir&g
4577 s&\\\${datarootdir}&$datarootdir&g' ;;
4578 esac
4579 _ACEOF
4580
4581 # Neutralize VPATH when `$srcdir' = `.'.
4582 # Shell code in configure.ac might set extrasub.
4583 # FIXME: do we really want to maintain this feature?
4584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4585 ac_sed_extra="$ac_vpsub
4586 $extrasub
4587 _ACEOF
4588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4589 :t
4590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4591 s|@configure_input@|$ac_sed_conf_input|;t t
4592 s&@top_builddir@&$ac_top_builddir_sub&;t t
4593 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4594 s&@srcdir@&$ac_srcdir&;t t
4595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4596 s&@top_srcdir@&$ac_top_srcdir&;t t
4597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4598 s&@builddir@&$ac_builddir&;t t
4599 s&@abs_builddir@&$ac_abs_builddir&;t t
4600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4601 s&@INSTALL@&$ac_INSTALL&;t t
4602 s&@MKDIR_P@&$ac_MKDIR_P&;t t
4603 $ac_datarootdir_hack
4604 "
4605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4606 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4607
4608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4609 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4611 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4613 which seems to be undefined. Please make sure it is defined" >&5
4614 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4615 which seems to be undefined. Please make sure it is defined" >&2;}
4616
4617 rm -f "$ac_tmp/stdin"
4618 case $ac_file in
4619 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4620 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4621 esac \
4622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4623 ;;
4624
4625
4626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4627 $as_echo "$as_me: executing $ac_file commands" >&6;}
4628 ;;
4629 esac
4630
4631
4632 case $ac_file$ac_mode in
4633 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
4634 # Autoconf 2.62 quotes --file arguments for eval, but not when files
4635 # are listed without --file. Let's play safe and only enable the eval
4636 # if we detect the quoting.
4637 case $CONFIG_FILES in
4638 *\'*) eval set x "$CONFIG_FILES" ;;
4639 *) set x $CONFIG_FILES ;;
4640 esac
4641 shift
4642 for mf
4643 do
4644 # Strip MF so we end up with the name of the file.
4645 mf=`echo "$mf" | sed -e 's/:.*$//'`
4646 # Check whether this is an Automake generated Makefile or not.
4647 # We used to match only the files named `Makefile.in', but
4648 # some people rename them; so instead we look at the file content.
4649 # Grep'ing the first line is not enough: some people post-process
4650 # each Makefile.in and add a new line on top of each file to say so.
4651 # Grep'ing the whole file is not good either: AIX grep has a line
4652 # limit of 2048, but all sed's we know have understand at least 4000.
4653 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
4654 dirpart=`$as_dirname -- "$mf" ||
4655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4656 X"$mf" : 'X\(//\)[^/]' \| \
4657 X"$mf" : 'X\(//\)$' \| \
4658 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
4659 $as_echo X"$mf" |
4660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4661 s//\1/
4662 q
4663 }
4664 /^X\(\/\/\)[^/].*/{
4665 s//\1/
4666 q
4667 }
4668 /^X\(\/\/\)$/{
4669 s//\1/
4670 q
4671 }
4672 /^X\(\/\).*/{
4673 s//\1/
4674 q
4675 }
4676 s/.*/./; q'`
4677 else
4678 continue
4679 fi
4680 # Extract the definition of DEPDIR, am__include, and am__quote
4681 # from the Makefile without running `make'.
4682 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4683 test -z "$DEPDIR" && continue
4684 am__include=`sed -n 's/^am__include = //p' < "$mf"`
4685 test -z "am__include" && continue
4686 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4687 # When using ansi2knr, U may be empty or an underscore; expand it
4688 U=`sed -n 's/^U = //p' < "$mf"`
4689 # Find all dependency output files, they are included files with
4690 # $(DEPDIR) in their names. We invoke sed twice because it is the
4691 # simplest approach to changing $(DEPDIR) to its actual value in the
4692 # expansion.
4693 for file in `sed -n "
4694 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4695 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4696 # Make sure the directory exists.
4697 test -f "$dirpart/$file" && continue
4698 fdir=`$as_dirname -- "$file" ||
4699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4700 X"$file" : 'X\(//\)[^/]' \| \
4701 X"$file" : 'X\(//\)$' \| \
4702 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
4703 $as_echo X"$file" |
4704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4705 s//\1/
4706 q
4707 }
4708 /^X\(\/\/\)[^/].*/{
4709 s//\1/
4710 q
4711 }
4712 /^X\(\/\/\)$/{
4713 s//\1/
4714 q
4715 }
4716 /^X\(\/\).*/{
4717 s//\1/
4718 q
4719 }
4720 s/.*/./; q'`
4721 as_dir=$dirpart/$fdir; as_fn_mkdir_p
4722 # echo "creating $dirpart/$file"
4723 echo '# dummy' > "$dirpart/$file"
4724 done
4725 done
4726 }
4727 ;;
4728
4729 esac
4730 done # for ac_tag
4731
4732
4733 as_fn_exit 0
4734 _ACEOF
4735 ac_clean_files=$ac_clean_files_save
4736
4737 test $ac_write_fail = 0 ||
4738 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4739
4740
4741 # configure is writing to config.log, and then calls config.status.
4742 # config.status does its own redirection, appending to config.log.
4743 # Unfortunately, on DOS this fails, as config.log is still kept open
4744 # by configure, so config.status won't be able to write to it; its
4745 # output is simply discarded. So we exec the FD to /dev/null,
4746 # effectively closing config.log, so it can be properly (re)opened and
4747 # appended to by config.status. When coming back to configure, we
4748 # need to make the FD available again.
4749 if test "$no_create" != yes; then
4750 ac_cs_success=:
4751 ac_config_status_args=
4752 test "$silent" = yes &&
4753 ac_config_status_args="$ac_config_status_args --quiet"
4754 exec 5>/dev/null
4755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4756 exec 5>>config.log
4757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4758 # would make configure fail if this is the last instruction.
4759 $ac_cs_success || as_fn_exit 1
4760 fi
4761 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4763 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4764 fi
4765
0 dnl This is the newlib/libc/machine/pru configure.in file.
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_PREREQ(2.59)
4 AC_INIT([newlib],[NEWLIB_VERSION])
5 AC_CONFIG_SRCDIR([setjmp.s])
6
7 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
8 AC_CONFIG_AUX_DIR(../../../..)
9
10 NEWLIB_CONFIGURE(../../..)
11
12 AC_CONFIG_FILES([Makefile])
13 AC_OUTPUT
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25 .section .text
26 .align 3
27 .globl setjmp
28 .type setjmp,@function
29 .globl longjmp
30 .type longjmp,@function
31
32
33 setjmp:
34 sbbo r2, r14, 0, 4*12 /* SP, RA, FP, r5-r13 */
35 ldi r14, 0
36 ret
37
38 longjmp:
39 lbbo r2, r14, 0, 4*12 /* SP, RA, FP, r5-r13 */
40 mov r14, r15 /* copy second arg to return location */
41 qbne 1f, r14, 0 /* per stdC, we cannot return 0 */
42 ldi r14, 1
43 1:
44 ret
77
88 noinst_LIBRARIES = lib.a
99
10 lib_a_SOURCES = memset.S memcpy.c strlen.c strcpy.c strcmp.S setjmp.S ieeefp.c ffs.c
10 lib_a_SOURCES = memmove.S memmove-stub.c memset.S memcpy-asm.S memcpy.c strlen.c \
11 strcpy.c strcmp.S setjmp.S ieeefp.c ffs.c
1112 lib_a_CCASFLAGS=$(AM_CCASFLAGS)
1213 lib_a_CFLAGS=$(AM_CFLAGS)
1314
6868 ARFLAGS = cru
6969 lib_a_AR = $(AR) $(ARFLAGS)
7070 lib_a_LIBADD =
71 am_lib_a_OBJECTS = lib_a-memset.$(OBJEXT) lib_a-memcpy.$(OBJEXT) \
71 am_lib_a_OBJECTS = lib_a-memmove.$(OBJEXT) \
72 lib_a-memmove-stub.$(OBJEXT) lib_a-memset.$(OBJEXT) \
73 lib_a-memcpy-asm.$(OBJEXT) lib_a-memcpy.$(OBJEXT) \
7274 lib_a-strlen.$(OBJEXT) lib_a-strcpy.$(OBJEXT) \
7375 lib_a-strcmp.$(OBJEXT) lib_a-setjmp.$(OBJEXT) \
7476 lib_a-ieeefp.$(OBJEXT) lib_a-ffs.$(OBJEXT)
197199 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
198200 AM_CCASFLAGS = $(INCLUDES)
199201 noinst_LIBRARIES = lib.a
200 lib_a_SOURCES = memset.S memcpy.c strlen.c strcpy.c strcmp.S setjmp.S ieeefp.c ffs.c
202 lib_a_SOURCES = memmove.S memmove-stub.c memset.S memcpy-asm.S memcpy.c strlen.c \
203 strcpy.c strcmp.S setjmp.S ieeefp.c ffs.c
204
201205 lib_a_CCASFLAGS = $(AM_CCASFLAGS)
202206 lib_a_CFLAGS = $(AM_CFLAGS)
203207 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
260264 .S.obj:
261265 $(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
262266
267 lib_a-memmove.o: memmove.S
268 $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-memmove.o `test -f 'memmove.S' || echo '$(srcdir)/'`memmove.S
269
270 lib_a-memmove.obj: memmove.S
271 $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-memmove.obj `if test -f 'memmove.S'; then $(CYGPATH_W) 'memmove.S'; else $(CYGPATH_W) '$(srcdir)/memmove.S'; fi`
272
263273 lib_a-memset.o: memset.S
264274 $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-memset.o `test -f 'memset.S' || echo '$(srcdir)/'`memset.S
265275
266276 lib_a-memset.obj: memset.S
267277 $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-memset.obj `if test -f 'memset.S'; then $(CYGPATH_W) 'memset.S'; else $(CYGPATH_W) '$(srcdir)/memset.S'; fi`
268278
279 lib_a-memcpy-asm.o: memcpy-asm.S
280 $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-memcpy-asm.o `test -f 'memcpy-asm.S' || echo '$(srcdir)/'`memcpy-asm.S
281
282 lib_a-memcpy-asm.obj: memcpy-asm.S
283 $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-memcpy-asm.obj `if test -f 'memcpy-asm.S'; then $(CYGPATH_W) 'memcpy-asm.S'; else $(CYGPATH_W) '$(srcdir)/memcpy-asm.S'; fi`
284
269285 lib_a-strcmp.o: strcmp.S
270286 $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-strcmp.o `test -f 'strcmp.S' || echo '$(srcdir)/'`strcmp.S
271287
283299
284300 .c.obj:
285301 $(COMPILE) -c `$(CYGPATH_W) '$<'`
302
303 lib_a-memmove-stub.o: memmove-stub.c
304 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memmove-stub.o `test -f 'memmove-stub.c' || echo '$(srcdir)/'`memmove-stub.c
305
306 lib_a-memmove-stub.obj: memmove-stub.c
307 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memmove-stub.obj `if test -f 'memmove-stub.c'; then $(CYGPATH_W) 'memmove-stub.c'; else $(CYGPATH_W) '$(srcdir)/memmove-stub.c'; fi`
286308
287309 lib_a-memcpy.o: memcpy.c
288310 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memcpy.o `test -f 'memcpy.c' || echo '$(srcdir)/'`memcpy.c
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
1414 static void
1515 fssr(unsigned value)
1616 {
17 asm volatile ("fssr %0" :: "r"(value));
17 asm volatile ("fscsr %0" :: "r"(value));
1818 }
1919
2020 static unsigned
2121 frsr()
2222 {
2323 unsigned value;
24 asm volatile ("frsr %0" : "=r" (value));
24 asm volatile ("frcsr %0" : "=r" (value));
2525 return value;
2626 }
2727
3737 /* 4 ~ 7 is invalid value, so just retun FP_RP. */
3838 default:return FP_RP;
3939 }
40 }
41
42 static fp_except
43 frm_fp_except (unsigned except)
44 {
45 fp_except fp = 0;
46 if (except & (1 << 0))
47 fp |= FP_X_IMP;
48 if (except & (1 << 1))
49 fp |= FP_X_UFL;
50 if (except & (1 << 2))
51 fp |= FP_X_OFL;
52 if (except & (1 << 3))
53 fp |= FP_X_DX;
54 if (except & (1 << 4))
55 fp |= FP_X_INV;
56 return fp;
57 }
58
59 static unsigned
60 frm_except(fp_except fp)
61 {
62 unsigned except = 0;
63 if (fp & FP_X_IMP)
64 except |= (1 << 0);
65 if (fp & FP_X_UFL)
66 except |= (1 << 1);
67 if (fp & FP_X_OFL)
68 except |= (1 << 2);
69 if (fp & FP_X_DX)
70 except |= (1 << 3);
71 if (fp & FP_X_INV)
72 except |= (1 << 4);
73 return except;
4074 }
4175
4276 #endif /* __riscv_flen */
6296 fpgetsticky(void)
6397 {
6498 #ifdef __riscv_flen
65 return frsr () & 0x1f;
99 return frm_fp_except(frsr ());
66100 #else
67101 return 0;
68102 #endif /* __riscv_flen */
83117 unsigned new_rm;
84118 switch (rnd_dir)
85119 {
86 case FP_RN: new_rm = 0;
87 case FP_RZ: new_rm = 1;
88 case FP_RM: new_rm = 2;
89 case FP_RP: new_rm = 3;
120 case FP_RN: new_rm = 0; break;
121 case FP_RZ: new_rm = 1; break;
122 case FP_RM: new_rm = 2; break;
123 case FP_RP: new_rm = 3; break;
90124 default: return -1;
91125 }
92126 fssr (new_rm << 5 | fsr & 0x1f);
101135 {
102136 #ifdef __riscv_flen
103137 unsigned fsr = frsr ();
104 fssr (sticky & 0x1f | fsr & ~0x1f);
105 return fsr & 0x1f;
138 fssr (frm_except(sticky) | (fsr & ~0x1f));
139 return frm_fp_except(fsr);
106140 #else
107141 return -1;
108142 #endif /* __riscv_flen */
+0
-42
newlib/libc/machine/riscv/include/fenv.h less more
0 /* Copyright (c) 2017 SiFive Inc. All rights reserved.
1
2 This copyrighted material is made available to anyone wishing to use,
3 modify, copy, or redistribute it subject to the terms and conditions
4 of the FreeBSD License. This program is distributed in the hope that
5 it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
6 including the implied warranties of MERCHANTABILITY or FITNESS FOR
7 A PARTICULAR PURPOSE. A copy of this license is available at
8 http://www.opensource.org/licenses.
9 */
10
11 #ifndef _FENV_H
12 #define _FENV_H
13
14 #include <sys/fenv.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 /* Exception */
21 int feclearexcept(int excepts);
22 int fegetexceptflag(fexcept_t *flagp, int excepts);
23 int feraiseexcept(int excepts);
24 int fesetexceptflag(const fexcept_t *flagp, int excepts);
25 int fetestexcept(int excepts);
26
27 /* Rounding mode */
28 int fegetround(void);
29 int fesetround(int rounding_mode);
30
31 /* Float environment */
32 int fegetenv(fenv_t *envp);
33 int feholdexcept(fenv_t *envp);
34 int fesetenv(const fenv_t *envp);
35 int feupdateenv(const fenv_t *envp);
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif
0 /* Copyright (c) 2019 SiFive Inc. All rights reserved.
1
2 This copyrighted material is made available to anyone wishing to use,
3 modify, copy, or redistribute it subject to the terms and conditions
4 of the FreeBSD License. This program is distributed in the hope that
5 it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
6 including the implied warranties of MERCHANTABILITY or FITNESS FOR
7 A PARTICULAR PURPOSE. A copy of this license is available at
8 http://www.opensource.org/licenses.
9 */
10
11 #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
12 .text
13 .global memcpy
14 .type memcpy, @function
15 memcpy:
16 mv t1, a0
17 beqz a2, 2f
18
19 1:
20 lb t2, 0(a1)
21 sb t2, 0(t1)
22 add a2, a2, -1
23 add t1, t1, 1
24 add a1, a1, 1
25 bnez a2, 1b
26
27 2:
28 ret
29
30 .size memcpy, .-memcpy
31 #endif
77 A PARTICULAR PURPOSE. A copy of this license is available at
88 http://www.opensource.org/licenses.
99 */
10
11 #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
12 //memcpy defined in memcpy-asm.S
13 #else
1014
1115 #include <string.h>
1216 #include <stdint.h>
8084 goto small;
8185 return aa;
8286 }
87 #endif
0 /* Copyright (c) 2019 SiFive Inc. All rights reserved.
1
2 This copyrighted material is made available to anyone wishing to use,
3 modify, copy, or redistribute it subject to the terms and conditions
4 of the FreeBSD License. This program is distributed in the hope that
5 it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
6 including the implied warranties of MERCHANTABILITY or FITNESS FOR
7 A PARTICULAR PURPOSE. A copy of this license is available at
8 http://www.opensource.org/licenses.
9 */
10
11 #if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
12 #include "../../string/memmove.c"
13 #endif
0 /* Copyright (c) 2019 SiFive Inc. All rights reserved.
1
2 This copyrighted material is made available to anyone wishing to use,
3 modify, copy, or redistribute it subject to the terms and conditions
4 of the FreeBSD License. This program is distributed in the hope that
5 it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
6 including the implied warranties of MERCHANTABILITY or FITNESS FOR
7 A PARTICULAR PURPOSE. A copy of this license is available at
8 http://www.opensource.org/licenses.
9 */
10
11 #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
12 .text
13 .global memmove
14 .type memmove, @function
15 memmove:
16 beqz a2, 2f
17
18 mv t1, a0
19 li a3, 1
20 bgtu a1, a0, 1f
21
22 li a3, -1
23 addi a4, a2 , -1
24 add t1, t1, a4
25 add a1, a1, a4
26
27 1:
28 lb t2, 0(a1)
29 sb t2, 0(t1)
30 add a2, a2, -1
31 add t1, t1, a3
32 add a1, a1, a3
33 bnez a2, 1b
34
35 2:
36 ret
37
38 .size memmove, .-memmove
39 #endif
1212 .global memset
1313 .type memset, @function
1414 memset:
15 #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
16 mv t1, a0
17 beqz a2, 2f
18
19 1:
20 sb a1, 0(t1)
21 add a2, a2, -1
22 add t1, t1, 1
23 bnez a2, 1b
24
25 2:
26 ret
27
28 #else
1529 li t1, 15
1630 move a4, a0
1731 bleu a2, t1, .Ltiny
94108 add a2, a2, a5
95109 bleu a2, t1, .Ltiny
96110 j .Laligned
111 #endif
97112 .size memset, .-memset
1818 .globl strcmp
1919 .type strcmp, @function
2020 strcmp:
21 #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
22 1:
23 lbu a2, 0(a0)
24 lbu a3, 0(a1)
25 add a0, a0, 1
26 add a1, a1, 1
27 bne a2, a3, 2f
28 bnez a2, 1b
29
30 2:
31 sub a0, a2, a3
32 ret
33
34 .size strcmp, .-strcmp
35 #else
2136 or a4, a0, a1
2237 li t2, -1
2338 and a4, a4, SZREG-1
145160 mask:
146161 .dword 0x7f7f7f7f7f7f7f7f
147162 #endif
163 #endif
88 http://www.opensource.org/licenses.
99 */
1010
11 #ifndef _FENV_H_
12 #define _FENV_H_
11 #ifndef _SYS_FENV_H
12 #define _SYS_FENV_H
1313
1414 #include <stddef.h>
1515
7171 typedef size_t fenv_t;
7272 typedef size_t fexcept_t;
7373 extern const fenv_t fe_dfl_env;
74 extern const fenv_t *fe_dfl_env_p;
75
7476 #define FE_DFL_ENV fe_dfl_env_p
7577
76 #endif /* _FENV_H_ */
78 #endif /* _SYS_FENV_H */
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
556556 # Identity of this package.
557557 PACKAGE_NAME='newlib'
558558 PACKAGE_TARNAME='newlib'
559 PACKAGE_VERSION='3.1.0'
560 PACKAGE_STRING='newlib 3.1.0'
559 PACKAGE_VERSION='3.3.0'
560 PACKAGE_STRING='newlib 3.3.0'
561561 PACKAGE_BUGREPORT=''
562562 PACKAGE_URL=''
563563
12581258 # Omit some internal or obsolete options to make the list less imposing.
12591259 # This message is too long to be a string in the A/UX 3.1 sh.
12601260 cat <<_ACEOF
1261 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1261 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12621262
12631263 Usage: $0 [OPTION]... [VAR=VALUE]...
12641264
13281328
13291329 if test -n "$ac_init_help"; then
13301330 case $ac_init_help in
1331 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1331 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13321332 esac
13331333 cat <<\_ACEOF
13341334
14281428 test -n "$ac_init_help" && exit $ac_status
14291429 if $ac_init_version; then
14301430 cat <<\_ACEOF
1431 newlib configure 3.1.0
1431 newlib configure 3.3.0
14321432 generated by GNU Autoconf 2.68
14331433
14341434 Copyright (C) 2010 Free Software Foundation, Inc.
15201520 This file contains any messages produced by compilers while
15211521 running configure, to aid debugging if configure makes a mistake.
15221522
1523 It was created by newlib $as_me 3.1.0, which was
1523 It was created by newlib $as_me 3.3.0, which was
15241524 generated by GNU Autoconf 2.68. Invocation command line was
15251525
15261526 $ $0 $@
26062606
26072607 # Define the identity of the package.
26082608 PACKAGE='newlib'
2609 VERSION='3.1.0'
2609 VERSION='3.3.0'
26102610
26112611
26122612 # Some tools Automake needs.
53935393 # report actual input values of CONFIG_FILES etc. instead of their
53945394 # values after options handling.
53955395 ac_log="
5396 This file was extended by newlib $as_me 3.1.0, which was
5396 This file was extended by newlib $as_me 3.3.0, which was
53975397 generated by GNU Autoconf 2.68. Invocation command line was
53985398
53995399 CONFIG_FILES = $CONFIG_FILES
54505450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54515451 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
54525452 ac_cs_version="\\
5453 newlib config.status 3.1.0
5453 newlib config.status 3.3.0
54545454 configured by $0, generated by GNU Autoconf 2.68,
54555455 with options \\"\$ac_cs_config\\"
54565456
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12411241 # Omit some internal or obsolete options to make the list less imposing.
12421242 # This message is too long to be a string in the A/UX 3.1 sh.
12431243 cat <<_ACEOF
1244 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1244 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12451245
12461246 Usage: $0 [OPTION]... [VAR=VALUE]...
12471247
13111311
13121312 if test -n "$ac_init_help"; then
13131313 case $ac_init_help in
1314 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1314 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13151315 esac
13161316 cat <<\_ACEOF
13171317
14031403 test -n "$ac_init_help" && exit $ac_status
14041404 if $ac_init_version; then
14051405 cat <<\_ACEOF
1406 newlib configure 3.1.0
1406 newlib configure 3.3.0
14071407 generated by GNU Autoconf 2.68
14081408
14091409 Copyright (C) 2010 Free Software Foundation, Inc.
14581458 This file contains any messages produced by compilers while
14591459 running configure, to aid debugging if configure makes a mistake.
14601460
1461 It was created by newlib $as_me 3.1.0, which was
1461 It was created by newlib $as_me 3.3.0, which was
14621462 generated by GNU Autoconf 2.68. Invocation command line was
14631463
14641464 $ $0 $@
25422542
25432543 # Define the identity of the package.
25442544 PACKAGE='newlib'
2545 VERSION='3.1.0'
2545 VERSION='3.3.0'
25462546
25472547
25482548 # Some tools Automake needs.
40584058 # report actual input values of CONFIG_FILES etc. instead of their
40594059 # values after options handling.
40604060 ac_log="
4061 This file was extended by newlib $as_me 3.1.0, which was
4061 This file was extended by newlib $as_me 3.3.0, which was
40624062 generated by GNU Autoconf 2.68. Invocation command line was
40634063
40644064 CONFIG_FILES = $CONFIG_FILES
41154115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41164116 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41174117 ac_cs_version="\\
4118 newlib config.status 3.1.0
4118 newlib config.status 3.3.0
41194119 configured by $0, generated by GNU Autoconf 2.68,
41204120 with options \\"\$ac_cs_config\\"
41214121
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
0 /*
1 * SPDX-License-Identifier: BSD-2-Clause
2 *
3 * Copyright (c) 2010-2019 Red Hat, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28 #ifndef _SYS_FENV_H
29 #define _SYS_FENV_H 1
30
31 #include <sys/cdefs.h>
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37
38 /* Primary sources:
39
40 The Open Group Base Specifications Issue 6:
41 http://www.opengroup.org/onlinepubs/000095399/basedefs/fenv.h.html
42
43 C99 Language spec (draft n1256):
44 <url unknown>
45
46 Intel(R) 64 and IA-32 Architectures Software Developer's Manuals:
47 http://www.intel.com/products/processor/manuals/
48
49 GNU C library manual pages:
50 http://www.gnu.org/software/libc/manual/html_node/Control-Functions.html
51 http://www.gnu.org/software/libc/manual/html_node/Rounding.html
52 http://www.gnu.org/software/libc/manual/html_node/FP-Exceptions.html
53 http://www.gnu.org/software/libc/manual/html_node/Status-bit-operations.html
54
55 Linux online man page(s):
56 http://linux.die.net/man/3/fegetexcept
57
58 The documentation quotes these sources for reference. All definitions and
59 code have been developed solely based on the information from these specs.
60
61 */
62
63 /* Represents the entire floating-point environment. The floating-point
64 environment refers collectively to any floating-point status flags and
65 control modes supported by the implementation.
66 In this implementation, the struct contains the state information from
67 the fstenv/fnstenv instructions and a copy of the SSE MXCSR, since GCC
68 uses SSE for a lot of floating-point operations. (Cygwin assumes i686
69 or above these days, as does the compiler.) */
70
71 typedef struct _fenv_t
72 {
73 struct _fpu_env_info {
74 unsigned int _fpu_cw; /* low 16 bits only. */
75 unsigned int _fpu_sw; /* low 16 bits only. */
76 unsigned int _fpu_tagw; /* low 16 bits only. */
77 unsigned int _fpu_ipoff;
78 unsigned int _fpu_ipsel;
79 unsigned int _fpu_opoff;
80 unsigned int _fpu_opsel; /* low 16 bits only. */
81 } _fpu;
82 unsigned int _sse_mxcsr;
83 } fenv_t;
84
85 /* Represents the floating-point status flags collectively, including
86 any status the implementation associates with the flags. A floating-point
87 status flag is a system variable whose value is set (but never cleared)
88 when a floating-point exception is raised, which occurs as a side effect
89 of exceptional floating-point arithmetic to provide auxiliary information.
90 A floating-point control mode is a system variable whose value may be
91 set by the user to affect the subsequent behavior of floating-point
92 arithmetic. */
93
94 typedef __uint32_t fexcept_t;
95
96 /* The <fenv.h> header shall define the following constants if and only
97 if the implementation supports the floating-point exception by means
98 of the floating-point functions feclearexcept(), fegetexceptflag(),
99 feraiseexcept(), fesetexceptflag(), and fetestexcept(). Each expands to
100 an integer constant expression with values such that bitwise-inclusive
101 ORs of all combinations of the constants result in distinct values. */
102
103 #define FE_DIVBYZERO (1 << 2)
104 #define FE_INEXACT (1 << 5)
105 #define FE_INVALID (1 << 0)
106 #define FE_OVERFLOW (1 << 3)
107 #define FE_UNDERFLOW (1 << 4)
108
109 /* The <fenv.h> header shall define the following constant, which is
110 simply the bitwise-inclusive OR of all floating-point exception
111 constants defined above: */
112
113 /* in agreement w/ Linux the subnormal exception will always be masked */
114 #define FE_ALL_EXCEPT \
115 (FE_INEXACT | FE_UNDERFLOW | FE_OVERFLOW | FE_DIVBYZERO | FE_INVALID)
116
117 /* The <fenv.h> header shall define the following constants if and only
118 if the implementation supports getting and setting the represented
119 rounding direction by means of the fegetround() and fesetround()
120 functions. Each expands to an integer constant expression whose values
121 are distinct non-negative vales. */
122
123 #define FE_DOWNWARD (1)
124 #define FE_TONEAREST (0)
125 #define FE_TOWARDZERO (3)
126 #define FE_UPWARD (2)
127
128 /* Only Solaris and QNX implement fegetprec/fesetprec. As Solaris, use the
129 values defined by http://www.open-std.org/jtc1/sc22//WG14/www/docs/n752.htm
130 QNX defines different values. */
131 #if __MISC_VISIBLE
132 #define FE_FLTPREC (0)
133 #define FE_DBLPREC (2)
134 #define FE_LDBLPREC (3)
135 #endif
136
137 /* The <fenv.h> header shall define the following constant, which
138 represents the default floating-point environment (that is, the one
139 installed at program startup) and has type pointer to const-qualified
140 fenv_t. It can be used as an argument to the functions within the
141 <fenv.h> header that manage the floating-point environment. */
142
143 extern const fenv_t *_fe_dfl_env;
144 #define FE_DFL_ENV (_fe_dfl_env)
145
146 /* Additional implementation-defined environments, with macro
147 definitions beginning with FE_ and an uppercase letter,and having
148 type "pointer to const-qualified fenv_t",may also be specified by
149 the implementation. */
150
151 #if __GNU_VISIBLE
152 /* If possible, the GNU C Library defines a macro FE_NOMASK_ENV which
153 represents an environment where every exception raised causes a trap
154 to occur. You can test for this macro using #ifdef. It is only defined
155 if _GNU_SOURCE is defined. */
156 extern const fenv_t *_fe_nomask_env;
157 #define FE_NOMASK_ENV (_fe_nomask_env)
158 #endif /* __GNU_VISIBLE */
159
160 #ifdef __INSIDE_CYGWIN__
161 /* This is Cygwin-custom, not from the standard, for use in the Cygwin CRT. */
162 extern void _feinitialise ();
163 #endif
164
165 #ifdef __cplusplus
166 }
167 #endif
168
169 #endif /* _FENV_H */
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #ifndef HAVE_OPENDIR
11
2 /*
3 * Copyright (c) 1983 Regents of the University of California.
4 * All rights reserved.
2 /*-
3 * SPDX-License-Identifier: BSD-3-Clause
4 *
5 * Copyright (c) 1983, 1993
6 * The Regents of the University of California. All rights reserved.
57 *
68 * Redistribution and use in source and binary forms, with or without
79 * modification, are permitted provided that the following conditions
1113 * 2. Redistributions in binary form must reproduce the above copyright
1214 * notice, this list of conditions and the following disclaimer in the
1315 * documentation and/or other materials provided with the distribution.
14 * 4. Neither the name of the University nor the names of its contributors
16 * 3. Neither the name of the University nor the names of its contributors
1517 * may be used to endorse or promote products derived from this software
1618 * without specific prior written permission.
1719 *
2830 * SUCH DAMAGE.
2931 */
3032
31 #if defined(LIBC_SCCS) && !defined(lint)
32 static char sccsid[] = "@(#)scandir.c 5.10 (Berkeley) 2/23/91";
33 #endif /* LIBC_SCCS and not lint */
33 #include <sys/cdefs.h>
34 __SCCSID("@(#)scandir.c 8.3 (Berkeley) 1/2/94");
35 __FBSDID("$FreeBSD: head/lib/libc/gen/scandir.c 335898 2018-07-03 17:31:45Z jhb $");
3436
3537 /*
3638 * Scan the directory dirname calling select to make a list of selected
3941 * struct dirent (through namelist). Returns -1 if there were any errors.
4042 */
4143
42 #include <sys/types.h>
43 #include <sys/stat.h>
4444 #include <stddef.h>
4545 #include <dirent.h>
4646 #include <stdlib.h>
6262 (offsetof (struct dirent, d_name) + ((strlen((dp)->d_name)+1 + 3) &~ 3))
6363 #endif
6464
65 #ifndef __P
66 #define __P(args) ()
67 #endif
6865
6966 int
70 scandir (const char *dirname,
71 struct dirent ***namelist,
72 int (*select) __P((const struct dirent *)),
73 int (*dcomp) __P((const struct dirent **, const struct dirent **)))
67 scandir(const char *dirname, struct dirent ***namelist,
68 int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **,
69 const struct dirent **))
7470 {
75 register struct dirent *d, *p, **names;
76 register size_t nitems;
77 struct stat stb;
78 long arraysz;
71 register struct dirent *d, *p, **names = NULL;
72 register size_t arraysz, numitems;
7973 DIR *dirp;
80 int successful = 0;
81 int rc = 0;
82
83 dirp = NULL;
84 names = NULL;
8574
8675 if ((dirp = opendir(dirname)) == NULL)
8776 return(-1);
8877 #ifdef HAVE_DD_LOCK
8978 __lock_acquire_recursive(dirp->dd_lock);
9079 #endif
91 if (fstat(dirp->dd_fd, &stb) < 0)
92 goto cleanup;
9380
94 /*
95 * If there were no directory entries, then bail.
96 */
97 if (stb.st_size == 0)
98 goto cleanup;
99
100 /*
101 * estimate the array size by taking the size of the directory file
102 * and dividing it by a multiple of the minimum size entry.
103 */
104 arraysz = (stb.st_size / 24);
81 numitems = 0;
82 arraysz = 32; /* initial estimate of the array size */
10583 names = (struct dirent **)malloc(arraysz * sizeof(struct dirent *));
10684 if (names == NULL)
107 goto cleanup;
85 goto fail;
10886
109 nitems = 0;
11087 while ((d = readdir(dirp)) != NULL) {
11188 if (select != NULL && !(*select)(d))
11289 continue; /* just selected names */
11592 */
11693 p = (struct dirent *)malloc(DIRSIZ(d));
11794 if (p == NULL)
118 goto cleanup;
95 goto fail;
11996 p->d_ino = d->d_ino;
97 #ifdef DT_UNKNOWN
98 p->d_type = d->d_type;
99 #endif
120100 p->d_reclen = d->d_reclen;
121101 #ifdef _DIRENT_HAVE_D_NAMLEN
122102 p->d_namlen = d->d_namlen;
128108 * Check to make sure the array has space left and
129109 * realloc the maximum size.
130110 */
131 if (++nitems >= arraysz) {
132 if (fstat(dirp->dd_fd, &stb) < 0)
133 goto cleanup;
134 arraysz = stb.st_size / 12;
135 names = (struct dirent **)reallocf((char *)names,
136 arraysz * sizeof(struct dirent *));
137 if (names == NULL)
138 goto cleanup;
111 if (numitems >= arraysz) {
112 struct dirent **names2;
113
114 names2 = reallocarray(names, arraysz,
115 2 * sizeof(struct dirent *));
116 if (names2 == NULL) {
117 free(p);
118 goto fail;
119 }
120 names = names2;
121 arraysz *= 2;
139122 }
140 names[nitems-1] = p;
123 names[numitems++] = p;
141124 }
142 successful = 1;
143 cleanup:
144125 closedir(dirp);
145 if (successful) {
146 if (nitems && dcomp != NULL)
147 qsort(names, nitems, sizeof(struct dirent *), (void *)dcomp);
148 *namelist = names;
149 rc = nitems;
150 } else { /* We were unsuccessful, clean up storage and return -1. */
151 if ( names ) {
152 int i;
153 for (i=0; i < nitems; i++ )
154 free( names[i] );
155 free( names );
156 }
157 rc = -1;
158 }
159
126 if (numitems && dcomp != NULL)
127 qsort(names, numitems, sizeof(struct dirent *), (void *)dcomp);
128 *namelist = names;
160129 #ifdef HAVE_DD_LOCK
161130 __lock_release_recursive(dirp->dd_lock);
162131 #endif
163 return(rc);
132 return (numitems);
133
134 fail:
135 while (numitems > 0)
136 free(names[--numitems]);
137 free(names);
138 closedir(dirp);
139 #ifdef HAVE_DD_LOCK
140 __lock_release_recursive(dirp->dd_lock);
141 #endif
142 return (-1);
164143 }
165144
166145 /*
167146 * Alphabetic order comparison routine for those who want it.
147 * POSIX 2008 requires that alphasort() uses strcoll().
168148 */
169149 int
170 alphasort (const struct dirent **d1,
171 const struct dirent **d2)
150 alphasort(const struct dirent **d1, const struct dirent **d2)
172151 {
173 return(strcmp((*d1)->d_name, (*d2)->d_name));
152
153 return (strcoll((*d1)->d_name, (*d2)->d_name));
174154 }
175155
176156 #endif /* ! HAVE_OPENDIR */
172172 load math/log1p.c
173173 load math/log2.c
174174 load math/log__L.c
175 load math/matherr.c
176175 load math/modf.c
177176 load math/pow.c
178177 load math/scalb.c
88 db_local.h \
99 extern.h \
1010 hash.h \
11 ndbm.c \
1112 page.h \
1213 qsort.c
1314
7171 ARFLAGS = cru
7272 lib_a_AR = $(AR) $(ARFLAGS)
7373 lib_a_LIBADD =
74 am__objects_1 = lib_a-bsearch.$(OBJEXT) lib_a-qsort.$(OBJEXT)
74 am__objects_1 = lib_a-bsearch.$(OBJEXT) lib_a-ndbm.$(OBJEXT) \
75 lib_a-qsort.$(OBJEXT)
7576 @ELIX_LEVEL_1_FALSE@am__objects_2 = lib_a-hash.$(OBJEXT) \
7677 @ELIX_LEVEL_1_FALSE@ lib_a-hash_bigkey.$(OBJEXT) \
7778 @ELIX_LEVEL_1_FALSE@ lib_a-hash_buf.$(OBJEXT) \
9293 lib_a_OBJECTS = $(am_lib_a_OBJECTS)
9394 LTLIBRARIES = $(noinst_LTLIBRARIES)
9495 libsearch_la_LIBADD =
95 am__objects_4 = bsearch.lo qsort.lo
96 am__objects_4 = bsearch.lo ndbm.lo qsort.lo
9697 @ELIX_LEVEL_1_FALSE@am__objects_5 = hash.lo hash_bigkey.lo hash_buf.lo \
9798 @ELIX_LEVEL_1_FALSE@ hash_func.lo hash_log2.lo hash_page.lo \
9899 @ELIX_LEVEL_1_FALSE@ hcreate.lo hcreate_r.lo tdelete.lo \
278279 db_local.h \
279280 extern.h \
280281 hash.h \
282 ndbm.c \
281283 page.h \
282284 qsort.c
283285
402404
403405 lib_a-bsearch.obj: bsearch.c
404406 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-bsearch.obj `if test -f 'bsearch.c'; then $(CYGPATH_W) 'bsearch.c'; else $(CYGPATH_W) '$(srcdir)/bsearch.c'; fi`
407
408 lib_a-ndbm.o: ndbm.c
409 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-ndbm.o `test -f 'ndbm.c' || echo '$(srcdir)/'`ndbm.c
410
411 lib_a-ndbm.obj: ndbm.c
412 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-ndbm.obj `if test -f 'ndbm.c'; then $(CYGPATH_W) 'ndbm.c'; else $(CYGPATH_W) '$(srcdir)/ndbm.c'; fi`
405413
406414 lib_a-qsort.o: qsort.c
407415 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-qsort.o `test -f 'qsort.c' || echo '$(srcdir)/'`qsort.c
4242
4343 #include <sys/stat.h>
4444
45 #include <reent.h>
4546 #include <errno.h>
4647 #include <fcntl.h>
4748 #include <stdio.h>
139140 new_table = 0;
140141 if (!file || (flags & O_TRUNC) ||
141142 #ifdef __USE_INTERNAL_STAT64
142 (_stat64(file, &statbuf) && (errno == ENOENT))) {
143 (_stat64_r(_REENT, file, &statbuf) && (errno == ENOENT))) {
143144 #else
144 (stat(file, &statbuf) && (errno == ENOENT))) {
145 (_stat_r(_REENT, file, &statbuf) && (errno == ENOENT))) {
145146 #endif
146147 if (errno == ENOENT)
147148 errno = 0; /* Just in case someone looks at errno */
155156 a new .db file, then reinitialize the database */
156157 if ((flags & O_CREAT) &&
157158 #ifdef __USE_INTERNAL_STAT64
158 _fstat64(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
159 _fstat64_r(_REENT, hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
159160 #else
160 fstat(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
161 _fstat_r(_REENT, hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
161162 #endif
162163 new_table = 1;
163164
340341 /* Fix bucket size to be optimal for file system */
341342 if (file != NULL) {
342343 #ifdef __USE_INTERNAL_STAT64
343 if (_stat64(file, &statbuf))
344 if (_stat64_r(_REENT, file, &statbuf))
344345 #else
345 if (stat(file, &statbuf))
346 if (_stat_r(_REENT, file, &statbuf))
346347 #endif
347348 return (NULL);
348349 hashp->BSIZE = MIN(statbuf.st_blksize, MAX_BSIZE);
0 /*-
1 * SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright (c) 1990, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Margo Seltzer.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34 #if defined(LIBC_SCCS) && !defined(lint)
35 static char sccsid[] = "@(#)ndbm.c 8.4 (Berkeley) 7/21/94";
36 #endif /* LIBC_SCCS and not lint */
37 #include <sys/cdefs.h>
38 __FBSDID("$FreeBSD$ : src/lib/libc/db/hash/ndbm.c Nov 20 19:49:47 2017 UTC by pfg - SVN Revision 326025");
39
40 /*
41 * This package provides a dbm compatible interface to the new hashing
42 * package described in db(3).
43 */
44
45 #include <sys/param.h>
46
47 #include <stdio.h>
48 #include <string.h>
49 #include <errno.h>
50
51 #include <ndbm.h>
52 #include "hash.h"
53
54 #define __DBINTERFACE_PRIVATE /* activate prototypes from db_local.h */
55 #include "db_local.h"
56
57 /*
58 * Returns:
59 * *DBM on success
60 * NULL on failure
61 */
62 extern DBM *
63 dbm_open(const char *file, int flags, mode_t mode)
64 {
65 HASHINFO info;
66 char path[MAXPATHLEN];
67
68 info.bsize = 4096;
69 info.ffactor = 40;
70 info.nelem = 1;
71 info.cachesize = 0;
72 info.hash = NULL;
73 info.lorder = 0;
74
75 if( strlen(file) >= sizeof(path) - strlen(DBM_SUFFIX)) {
76 errno = ENAMETOOLONG;
77 return(NULL);
78 }
79 (void)strcpy(path, file);
80 (void)strcat(path, DBM_SUFFIX);
81 return ((DBM *)__hash_open(path, flags, mode, 0, &info));
82 }
83
84 extern void
85 dbm_close(DBM *db)
86 {
87 (void)(db->close)(db);
88 }
89
90 /*
91 * Returns:
92 * DATUM on success
93 * NULL on failure
94 */
95 extern datum
96 dbm_fetch(DBM *db, datum key)
97 {
98 datum retdata;
99 int status;
100 DBT dbtkey, dbtretdata;
101
102 dbtkey.data = key.dptr;
103 dbtkey.size = key.dsize;
104 status = (db->get)(db, &dbtkey, &dbtretdata, 0);
105 if (status) {
106 dbtretdata.data = NULL;
107 dbtretdata.size = 0;
108 }
109 retdata.dptr = dbtretdata.data;
110 retdata.dsize = dbtretdata.size;
111 return (retdata);
112 }
113
114 /*
115 * Returns:
116 * DATUM on success
117 * NULL on failure
118 */
119 extern datum
120 dbm_firstkey(DBM *db)
121 {
122 int status;
123 datum retkey;
124 DBT dbtretkey, dbtretdata;
125
126 status = (db->seq)(db, &dbtretkey, &dbtretdata, R_FIRST);
127 if (status)
128 dbtretkey.data = NULL;
129 retkey.dptr = dbtretkey.data;
130 retkey.dsize = dbtretkey.size;
131 return (retkey);
132 }
133
134 /*
135 * Returns:
136 * DATUM on success
137 * NULL on failure
138 */
139 extern datum
140 dbm_nextkey(DBM *db)
141 {
142 int status;
143 datum retkey;
144 DBT dbtretkey, dbtretdata;
145
146 status = (db->seq)(db, &dbtretkey, &dbtretdata, R_NEXT);
147 if (status)
148 dbtretkey.data = NULL;
149 retkey.dptr = dbtretkey.data;
150 retkey.dsize = dbtretkey.size;
151 return (retkey);
152 }
153
154 /*
155 * Returns:
156 * 0 on success
157 * <0 failure
158 */
159 extern int
160 dbm_delete(DBM *db, datum key)
161 {
162 int status;
163 DBT dbtkey;
164
165 dbtkey.data = key.dptr;
166 dbtkey.size = key.dsize;
167 status = (db->del)(db, &dbtkey, 0);
168 if (status)
169 return (-1);
170 else
171 return (0);
172 }
173
174 /*
175 * Returns:
176 * 0 on success
177 * <0 failure
178 * 1 if DBM_INSERT and entry exists
179 */
180 extern int
181 dbm_store(DBM *db, datum key, datum data, int flags)
182 {
183 DBT dbtkey, dbtdata;
184
185 dbtkey.data = key.dptr;
186 dbtkey.size = key.dsize;
187 dbtdata.data = data.dptr;
188 dbtdata.size = data.dsize;
189 return ((db->put)(db, &dbtkey, &dbtdata,
190 (flags == DBM_INSERT) ? R_NOOVERWRITE : 0));
191 }
192
193 extern int
194 dbm_error(DBM *db)
195 {
196 HTAB *hp;
197
198 hp = (HTAB *)db->internal;
199 return (hp->error);
200 }
201
202 extern int
203 dbm_clearerr(DBM *db)
204 {
205 HTAB *hp;
206
207 hp = (HTAB *)db->internal;
208 hp->error = 0;
209 return (0);
210 }
211
212 extern int
213 dbm_dirfno(DBM *db)
214 {
215 return(((HTAB *)db->internal)->fp);
216 }
44 #include <string.h>
55 #include <unistd.h>
66
7 #if defined(__AMDGCN__)
8 /* GCN does not support constructors, yet. */
9 uintptr_t __stack_chk_guard = 0x00000aff; /* 0, 0, '\n', 255 */
10
11 #else
712 uintptr_t __stack_chk_guard = 0;
813
914 void
2328 ((unsigned char *)&__stack_chk_guard)[3] = 255;
2429 #endif
2530 }
31 #endif
2632
2733 void
2834 __attribute__((__noreturn__))
8888 break;
8989 }
9090 }
91 #if defined (O_TEXT) && !defined (__CYGWIN__)
92 if (!(m | O_BINARY))
93 m |= O_TEXT;
94 #endif
9591 *optr = m | o;
9692 return ret;
9793 }
140140 switch (whence)
141141 {
142142 case SEEK_CUR:
143 /*
144 * In order to seek relative to the current stream offset,
145 * we have to first find the current stream offset a la
146 * ftell (see ftell for details).
147 */
148 _fflush_r (ptr, fp); /* may adjust seek offset on append stream */
149 if (fp->_flags & __SOFF)
150 curoff = fp->_offset;
151 else
152 {
153 curoff = seekfn (ptr, fp->_cookie, (_fpos_t) 0, SEEK_CUR);
154 if (curoff == -1L)
155 {
156 _newlib_flockfile_exit (fp);
157 return EOF;
158 }
159 }
160 if (fp->_flags & __SRD)
161 {
162 curoff -= fp->_r;
163 if (HASUB (fp))
164 curoff -= fp->_ur;
165 }
166 else if (fp->_flags & __SWR && fp->_p != NULL)
167 curoff += fp->_p - fp->_bf._base;
143 curoff = _ftello_r(ptr, fp);
144 if (curoff == -1L)
145 {
146 _newlib_flockfile_exit (fp);
147 return EOF;
148 }
168149
169150 offset += curoff;
170151 whence = SEEK_SET;
601601 case L'*':
602602 if ((flags & (CHAR | SHORT | LONG | LONGDBL | SUPPRESS | MALLOC))
603603 || width)
604 goto match_failure;
604605 flags |= SUPPRESS;
605606 goto again;
606607 case L'l':
141141 switch (whence)
142142 {
143143 case SEEK_CUR:
144 /*
145 * In order to seek relative to the current stream offset,
146 * we have to first find the current stream offset a la
147 * ftell (see ftell for details).
148 */
149 _fflush_r (ptr, fp); /* may adjust seek offset on append stream */
150 if (fp->_flags & __SOFF)
151 curoff = fp->_offset;
152 else
153 {
154 curoff = seekfn (ptr, fp->_cookie, (_fpos64_t) 0, SEEK_CUR);
155 if (curoff == -1L)
156 {
157 _newlib_flockfile_exit(fp);
158 return EOF;
159 }
160 }
161 if (fp->_flags & __SRD)
162 {
163 curoff -= fp->_r;
164 if (HASUB (fp))
165 curoff -= fp->_ur;
166 }
167 else if (fp->_flags & __SWR && fp->_p != NULL)
168 curoff += fp->_p - fp->_bf._base;
144 curoff = _ftello64_r(ptr, fp);
145 if (curoff == -1L)
146 {
147 _newlib_flockfile_exit (fp);
148 return EOF;
149 }
169150
170151 offset += curoff;
171152 whence = SEEK_SET;
422422 for (_REENT_MP_RESULT_K(ptr) = 0; sizeof (_Bigint) - sizeof (__ULong) + j <= i;
423423 j <<= 1)
424424 _REENT_MP_RESULT_K(ptr)++;
425 _REENT_MP_RESULT(ptr) = Balloc (ptr, _REENT_MP_RESULT_K(ptr));
425 _REENT_MP_RESULT(ptr) = eBalloc (ptr, _REENT_MP_RESULT_K(ptr));
426426 s = s0 = (char *) _REENT_MP_RESULT(ptr);
427427
428428 if (ilim >= 0 && ilim <= Quick_max && try_quick)
742742 mlo = mhi;
743743 if (spec_case)
744744 {
745 mhi = Balloc (ptr, mhi->_k);
745 mhi = eBalloc (ptr, mhi->_k);
746746 Bcopy (mhi, mlo);
747747 mhi = lshift (ptr, mhi, Log2P);
748748 }
9292 {
9393 if (p == start)
9494 *buf++ = '0';
95 *buf++ = '.';
95 if (decpt < 0 && ndigit > 0)
96 *buf++ = '.';
9697 while (decpt < 0 && ndigit > 0)
9798 {
9899 *buf++ = '0';
147148 }
148149
149150 *buf++ = *p++;
150 if (dot || ndigit != 0)
151 *buf++ = '.';
151 if (ndigit > 0)
152 dot = 1;
152153
153154 while (*p && ndigit > 0)
154155 {
156 if (dot) {
157 *buf++ = '.';
158 dot = 0;
159 }
155160 *buf++ = *p++;
156161 ndigit--;
157162 }
167172 {
168173 while (ndigit > 0)
169174 {
175 if (dot) {
176 *buf++ = '.';
177 dot = 0;
178 }
170179 *buf++ = '0';
171180 ndigit--;
172181 }
234243
235244 save = fcvt_buf;
236245
237 if (invalue < 1.0 && invalue > -1.0)
238 {
239 p = _dtoa_r (reent, invalue, 2, ndigit, decpt, sign, &end);
240 }
241 else
242 {
243 p = _dtoa_r (reent, invalue, 3, ndigit, decpt, sign, &end);
244 }
246 p = _dtoa_r (reent, invalue, 3, ndigit, decpt, sign, &end);
245247
246248 /* Now copy */
247249
355357 char *end;
356358 char *p;
357359
358 if (invalue < 1.0)
359 {
360 /* what we want is ndigits after the point */
361 p = _dtoa_r (ptr, invalue, 3, ndigit, &decpt, &sign, &end);
362 }
363 else
364 {
365 p = _dtoa_r (ptr, invalue, 2, ndigit, &decpt, &sign, &end);
366 }
360 /* We always want ndigits of precision, even if that means printing
361 * a bunch of leading zeros for numbers < 1.0
362 */
363 p = _dtoa_r (ptr, invalue, 2, ndigit, &decpt, &sign, &end);
367364
368365 if (decpt == 9999)
369366 {
389386 if (buf == save)
390387 *buf++ = '0';
391388 *buf++ = '.';
392 while (decpt < 0 && ndigit > 0)
389
390 /* Leading zeros don't count towards 'ndigit' */
391 while (decpt < 0)
393392 {
394393 *buf++ = '0';
395394 decpt++;
396 ndigit--;
397395 }
398396
399397 /* Print rest of stuff */
101101 #include <stdlib.h>
102102 #include "local.h"
103103
104 char * ecvtbuf (double, int, int*, int*, char *);
105 char * fcvtbuf (double, int, int*, int*, char *);
106
104107 char *
105108 fcvt (double d,
106109 int ndigit,
117120 int *sign)
118121 {
119122 return fcvt ((float) d, ndigit, decpt, sign);
123 }
124
125
126 char *
127 gcvt (double d,
128 int ndigit,
129 char *buf)
130 {
131 char *tbuf = buf;
132 if (d < 0) {
133 *buf = '-';
134 buf++;
135 ndigit--;
136 }
137 return (_gcvt (_REENT, d, ndigit, buf, 'g', 0) ? tbuf : 0);
120138 }
121139
122140
147165 {
148166 return ecvt ((double) d, ndigit, decpt, sign);
149167 }
150
151
152 char *
153 gcvt (double d,
154 int ndigit,
155 char *buf)
156 {
157 char *tbuf = buf;
158 if (d < 0) {
159 *buf = '-';
160 buf++;
161 ndigit--;
162 }
163 return (_gcvt (_REENT, d, ndigit, buf, 'g', 0) ? tbuf : 0);
164 }
128128 #endif
129129 {
130130 if (b->_wds >= b->_maxwds) {
131 b1 = Balloc(ptr, b->_k+1);
131 b1 = eBalloc(ptr, b->_k+1);
132132 Bcopy(b1, b);
133133 Bfree(ptr, b);
134134 b = b1;
218218 n = s1 - s0 - 1;
219219 for(k = 0; n > 7; n >>= 1)
220220 k++;
221 b = Balloc(ptr, k);
221 b = eBalloc(ptr, k);
222222 x = b->_x;
223223 n = 0;
224224 L = 0;
29222922 for (_REENT_MP_RESULT_K (ptr) = 0;
29232923 sizeof (_Bigint) - sizeof (__ULong) + j <= i; j <<= 1)
29242924 _REENT_MP_RESULT_K (ptr)++;
2925 _REENT_MP_RESULT (ptr) = Balloc (ptr, _REENT_MP_RESULT_K (ptr));
2925 _REENT_MP_RESULT (ptr) = eBalloc (ptr, _REENT_MP_RESULT_K (ptr));
29262926
29272927 /* Copy from internal temporary buffer to permanent buffer. */
29282928 outstr = (char *) _REENT_MP_RESULT (ptr);
177177 {
178178 if (wds >= b->_maxwds)
179179 {
180 b1 = Balloc (ptr, b->_k + 1);
180 b1 = eBalloc (ptr, b->_k + 1);
181181 Bcopy (b1, b);
182182 Bfree (ptr, b);
183183 b = b1;
202202 x = (nd + 8) / 9;
203203 for (k = 0, y = 1; x > y; y <<= 1, k++);
204204 #ifdef Pack_32
205 b = Balloc (ptr, k);
205 b = eBalloc (ptr, k);
206206 b->_x[0] = y9;
207207 b->_wds = 1;
208208 #else
209 b = Balloc (ptr, k + 1);
209 b = eBalloc (ptr, k + 1);
210210 b->_x[0] = y9 & 0xffff;
211211 b->_wds = (b->_x[1] = y9 >> 16) ? 2 : 1;
212212 #endif
316316 {
317317 _Bigint *b;
318318
319 b = Balloc (ptr, 1);
319 b = eBalloc (ptr, 1);
320320 b->_x[0] = i;
321321 b->_wds = 1;
322322 return b;
345345 wc = wa + wb;
346346 if (wc > a->_maxwds)
347347 k++;
348 c = Balloc (ptr, k);
348 c = eBalloc (ptr, k);
349349 for (x = c->_x, xa = x + wc; x < xa; x++)
350350 *x = 0;
351351 xa = a->_x;
469469 n1 = n + b->_wds + 1;
470470 for (i = b->_maxwds; n1 > i; i <<= 1)
471471 k1++;
472 b1 = Balloc (ptr, k1);
472 b1 = eBalloc (ptr, k1);
473473 x1 = b1->_x;
474474 for (i = 0; i < n; i++)
475475 *x1++ = 0;
558558 i = cmp (a, b);
559559 if (!i)
560560 {
561 c = Balloc (ptr, 0);
561 c = eBalloc (ptr, 0);
562562 c->_wds = 1;
563563 c->_x[0] = 0;
564564 return c;
572572 }
573573 else
574574 i = 0;
575 c = Balloc (ptr, a->_k);
575 c = eBalloc (ptr, a->_k);
576576 c->_sign = i;
577577 wa = a->_wds;
578578 xa = a->_x;
774774 #endif
775775
776776 #ifdef Pack_32
777 b = Balloc (ptr, 1);
778 #else
779 b = Balloc (ptr, 2);
777 b = eBalloc (ptr, 1);
778 #else
779 b = eBalloc (ptr, 2);
780780 #endif
781781 x = b->_x;
782782
2929 #include <math.h>
3030 #include <float.h>
3131 #include <errno.h>
32 #include <assert.h>
3233 #include <sys/config.h>
3334 #include <sys/types.h>
3435 #include "../locale/setlocale.h"
339340 #define copybits __copybits
340341 #define hexnan __hexnan
341342
343 #define eBalloc(__reent_ptr, __len) ({ \
344 void *__ptr = Balloc(__reent_ptr, __len); \
345 if (__ptr == NULL) \
346 __assert_func(__FILE__, __LINE__, (char *)0, "Balloc succeeded"); \
347 __ptr; \
348 })
349
342350 #if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__) && !defined(_SMALL_HEXDIG)
343351 #define __get_hexdig(x) __hexdig[x] /* NOTE: must evaluate arg only once */
344352 #else /* !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__) && !defined(_SMALL_HEXDIG) */
6262 if (a->_wds < b->_wds) {
6363 c = b; b = a; a = c;
6464 }
65 c = Balloc(p, a->_k);
65 c = eBalloc(p, a->_k);
6666 c->_wds = a->_wds;
6767 carry = 0;
6868 xa = a->_x;
102102 #endif
103103 if (carry) {
104104 if (c->_wds == c->_maxwds) {
105 b = Balloc(p, c->_k + 1);
105 b = eBalloc(p, c->_k + 1);
106106 Bcopy(b, c);
107107 Bfree(p, c);
108108 c = b;
189189 #endif
190190 {
191191 if (b->_wds >= b->_maxwds) {
192 b1 = Balloc(p,b->_k+1);
192 b1 = eBalloc(p,b->_k+1);
193193 Bcopy(b1,b);
194194 Bfree(p,b);
195195 b = b1;
252252 k = (n + ((1 << kshift) - 1)) >> kshift;
253253 if (b->_k < k) {
254254 Bfree(p,b);
255 b = Balloc(p,k);
255 b = eBalloc(p,k);
256256 }
257257 k = n >> kshift;
258258 if (n &= kmask)
347347 if (k > nb || fpi->sudden_underflow) {
348348 b->_wds = inex = 0;
349349 *irv = STRTOG_Underflow | STRTOG_Inexlo;
350 #ifndef NO_ERRNO
351 errno = ERANGE;
352 #endif
350353 }
351354 else {
352355 k1 = k - 1;
361364 if (carry) {
362365 b = increment(p, b);
363366 inex = STRTOG_Inexhi | STRTOG_Underflow;
367 #ifndef NO_ERRNO
368 errno = ERANGE;
369 #endif
364370 }
365371 else if (lostbits)
366372 inex = STRTOG_Inexlo | STRTOG_Underflow;
373 #ifndef NO_ERRNO
374 errno = ERANGE;
375 #endif
367376 }
368377 }
369378 else if (e > fpi->emax) {
760769 rvb->_x[0] = 0;
761770 *exp = emin;
762771 irv = STRTOG_Underflow | STRTOG_Inexlo;
772 #ifndef NO_ERRNO
773 errno = ERANGE;
774 #endif
763775 goto ret;
764776 }
765777 rvb->_x[0] = rvb->_wds = rvbits = 1;
779791 bd0 = s2b(p, s0, nd0, nd, y);
780792
781793 for(;;) {
782 bd = Balloc(p,bd0->_k);
794 bd = eBalloc(p,bd0->_k);
783795 Bcopy(bd, bd0);
784 bb = Balloc(p,rvb->_k);
796 bb = eBalloc(p,rvb->_k);
785797 Bcopy(bb, rvb);
786798 bbbits = rvbits - bb0;
787799 bbe = rve + bb0;
939951 rvb->_wds = 0;
940952 rve = emin;
941953 irv = STRTOG_Underflow | STRTOG_Inexlo;
954 #ifndef NO_ERRNO
955 errno = ERANGE;
956 #endif
942957 break;
943958 }
944959 adj0 = dval(adj) = 1.;
10821097 if (sudden_underflow) {
10831098 rvb->_wds = 0;
10841099 irv = STRTOG_Underflow | STRTOG_Inexlo;
1100 #ifndef NO_ERRNO
1101 errno = ERANGE;
1102 #endif
10851103 }
10861104 else {
10871105 irv = (irv & ~STRTOG_Retmask) |
10881106 (rvb->_wds > 0 ? STRTOG_Denormal : STRTOG_Zero);
10891107 if (irv & STRTOG_Inexact)
10901108 irv |= STRTOG_Underflow;
1109 #ifndef NO_ERRNO
1110 errno = ERANGE;
1111 #endif
10911112 }
10921113 }
10931114 if (se)
139139 register unsigned long cutoff;
140140 register int neg = 0, any, cutlim;
141141
142 if (base < 0 || base == 1 || base > 36) {
143 errno = EINVAL;
144 return 0;
145 }
146
142147 /*
143148 * Skip white space and pick up leading +/- sign if any.
144149 * If base is 0, allow 0x for hex and 0 for octal, else
192197 break;
193198 if (c >= base)
194199 break;
195 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
200 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) {
196201 any = -1;
197 else {
202 } else {
198203 any = 1;
199204 acc *= base;
200205 acc += c;
55 { 0x06D6, 0x06DD }, { 0x06DF, 0x06E4 }, { 0x06E7, 0x06E8 },
66 { 0x06EA, 0x06ED }, { 0x070F, 0x070F }, { 0x0711, 0x0711 },
77 { 0x0730, 0x074A }, { 0x07A6, 0x07B0 }, { 0x07EB, 0x07F3 },
8 { 0x0816, 0x0819 }, { 0x081B, 0x0823 }, { 0x0825, 0x0827 },
9 { 0x0829, 0x082D }, { 0x0859, 0x085B }, { 0x08D4, 0x0902 },
10 { 0x093A, 0x093A }, { 0x093C, 0x093C }, { 0x0941, 0x0948 },
11 { 0x094D, 0x094D }, { 0x0951, 0x0957 }, { 0x0962, 0x0963 },
12 { 0x0981, 0x0981 }, { 0x09BC, 0x09BC }, { 0x09C1, 0x09C4 },
13 { 0x09CD, 0x09CD }, { 0x09E2, 0x09E3 }, { 0x0A01, 0x0A02 },
14 { 0x0A3C, 0x0A3C }, { 0x0A41, 0x0A42 }, { 0x0A47, 0x0A48 },
15 { 0x0A4B, 0x0A4D }, { 0x0A51, 0x0A51 }, { 0x0A70, 0x0A71 },
16 { 0x0A75, 0x0A75 }, { 0x0A81, 0x0A82 }, { 0x0ABC, 0x0ABC },
17 { 0x0AC1, 0x0AC5 }, { 0x0AC7, 0x0AC8 }, { 0x0ACD, 0x0ACD },
18 { 0x0AE2, 0x0AE3 }, { 0x0AFA, 0x0AFF }, { 0x0B01, 0x0B01 },
19 { 0x0B3C, 0x0B3C }, { 0x0B3F, 0x0B3F }, { 0x0B41, 0x0B44 },
20 { 0x0B4D, 0x0B4D }, { 0x0B56, 0x0B56 }, { 0x0B62, 0x0B63 },
21 { 0x0B82, 0x0B82 }, { 0x0BC0, 0x0BC0 }, { 0x0BCD, 0x0BCD },
22 { 0x0C00, 0x0C00 }, { 0x0C3E, 0x0C40 }, { 0x0C46, 0x0C48 },
8 { 0x07FD, 0x07FD }, { 0x0816, 0x0819 }, { 0x081B, 0x0823 },
9 { 0x0825, 0x0827 }, { 0x0829, 0x082D }, { 0x0859, 0x085B },
10 { 0x08D3, 0x0902 }, { 0x093A, 0x093A }, { 0x093C, 0x093C },
11 { 0x0941, 0x0948 }, { 0x094D, 0x094D }, { 0x0951, 0x0957 },
12 { 0x0962, 0x0963 }, { 0x0981, 0x0981 }, { 0x09BC, 0x09BC },
13 { 0x09C1, 0x09C4 }, { 0x09CD, 0x09CD }, { 0x09E2, 0x09E3 },
14 { 0x09FE, 0x09FE }, { 0x0A01, 0x0A02 }, { 0x0A3C, 0x0A3C },
15 { 0x0A41, 0x0A42 }, { 0x0A47, 0x0A48 }, { 0x0A4B, 0x0A4D },
16 { 0x0A51, 0x0A51 }, { 0x0A70, 0x0A71 }, { 0x0A75, 0x0A75 },
17 { 0x0A81, 0x0A82 }, { 0x0ABC, 0x0ABC }, { 0x0AC1, 0x0AC5 },
18 { 0x0AC7, 0x0AC8 }, { 0x0ACD, 0x0ACD }, { 0x0AE2, 0x0AE3 },
19 { 0x0AFA, 0x0AFF }, { 0x0B01, 0x0B01 }, { 0x0B3C, 0x0B3C },
20 { 0x0B3F, 0x0B3F }, { 0x0B41, 0x0B44 }, { 0x0B4D, 0x0B4D },
21 { 0x0B56, 0x0B56 }, { 0x0B62, 0x0B63 }, { 0x0B82, 0x0B82 },
22 { 0x0BC0, 0x0BC0 }, { 0x0BCD, 0x0BCD }, { 0x0C00, 0x0C00 },
23 { 0x0C04, 0x0C04 }, { 0x0C3E, 0x0C40 }, { 0x0C46, 0x0C48 },
2324 { 0x0C4A, 0x0C4D }, { 0x0C55, 0x0C56 }, { 0x0C62, 0x0C63 },
2425 { 0x0C81, 0x0C81 }, { 0x0CBC, 0x0CBC }, { 0x0CBF, 0x0CBF },
2526 { 0x0CC6, 0x0CC6 }, { 0x0CCC, 0x0CCD }, { 0x0CE2, 0x0CE3 },
5960 { 0xA674, 0xA67D }, { 0xA69E, 0xA69F }, { 0xA6F0, 0xA6F1 },
6061 { 0xA802, 0xA802 }, { 0xA806, 0xA806 }, { 0xA80B, 0xA80B },
6162 { 0xA825, 0xA826 }, { 0xA8C4, 0xA8C5 }, { 0xA8E0, 0xA8F1 },
62 { 0xA926, 0xA92D }, { 0xA947, 0xA951 }, { 0xA980, 0xA982 },
63 { 0xA9B3, 0xA9B3 }, { 0xA9B6, 0xA9B9 }, { 0xA9BC, 0xA9BC },
64 { 0xA9E5, 0xA9E5 }, { 0xAA29, 0xAA2E }, { 0xAA31, 0xAA32 },
65 { 0xAA35, 0xAA36 }, { 0xAA43, 0xAA43 }, { 0xAA4C, 0xAA4C },
66 { 0xAA7C, 0xAA7C }, { 0xAAB0, 0xAAB0 }, { 0xAAB2, 0xAAB4 },
67 { 0xAAB7, 0xAAB8 }, { 0xAABE, 0xAABF }, { 0xAAC1, 0xAAC1 },
68 { 0xAAEC, 0xAAED }, { 0xAAF6, 0xAAF6 }, { 0xABE5, 0xABE5 },
69 { 0xABE8, 0xABE8 }, { 0xABED, 0xABED }, { 0xD7B0, 0xD7C6 },
70 { 0xD7CB, 0xD7FB }, { 0xFB1E, 0xFB1E }, { 0xFE00, 0xFE0F },
71 { 0xFE20, 0xFE2F }, { 0xFEFF, 0xFEFF }, { 0xFFF9, 0xFFFB },
72 { 0x101FD, 0x101FD }, { 0x102E0, 0x102E0 }, { 0x10376, 0x1037A },
73 { 0x10A01, 0x10A03 }, { 0x10A05, 0x10A06 }, { 0x10A0C, 0x10A0F },
74 { 0x10A38, 0x10A3A }, { 0x10A3F, 0x10A3F }, { 0x10AE5, 0x10AE6 },
63 { 0xA8FF, 0xA8FF }, { 0xA926, 0xA92D }, { 0xA947, 0xA951 },
64 { 0xA980, 0xA982 }, { 0xA9B3, 0xA9B3 }, { 0xA9B6, 0xA9B9 },
65 { 0xA9BC, 0xA9BC }, { 0xA9E5, 0xA9E5 }, { 0xAA29, 0xAA2E },
66 { 0xAA31, 0xAA32 }, { 0xAA35, 0xAA36 }, { 0xAA43, 0xAA43 },
67 { 0xAA4C, 0xAA4C }, { 0xAA7C, 0xAA7C }, { 0xAAB0, 0xAAB0 },
68 { 0xAAB2, 0xAAB4 }, { 0xAAB7, 0xAAB8 }, { 0xAABE, 0xAABF },
69 { 0xAAC1, 0xAAC1 }, { 0xAAEC, 0xAAED }, { 0xAAF6, 0xAAF6 },
70 { 0xABE5, 0xABE5 }, { 0xABE8, 0xABE8 }, { 0xABED, 0xABED },
71 { 0xD7B0, 0xD7C6 }, { 0xD7CB, 0xD7FB }, { 0xFB1E, 0xFB1E },
72 { 0xFE00, 0xFE0F }, { 0xFE20, 0xFE2F }, { 0xFEFF, 0xFEFF },
73 { 0xFFF9, 0xFFFB }, { 0x101FD, 0x101FD }, { 0x102E0, 0x102E0 },
74 { 0x10376, 0x1037A }, { 0x10A01, 0x10A03 }, { 0x10A05, 0x10A06 },
75 { 0x10A0C, 0x10A0F }, { 0x10A38, 0x10A3A }, { 0x10A3F, 0x10A3F },
76 { 0x10AE5, 0x10AE6 }, { 0x10D24, 0x10D27 }, { 0x10F46, 0x10F50 },
7577 { 0x11001, 0x11001 }, { 0x11038, 0x11046 }, { 0x1107F, 0x11081 },
7678 { 0x110B3, 0x110B6 }, { 0x110B9, 0x110BA }, { 0x110BD, 0x110BD },
77 { 0x11100, 0x11102 }, { 0x11127, 0x1112B }, { 0x1112D, 0x11134 },
78 { 0x11173, 0x11173 }, { 0x11180, 0x11181 }, { 0x111B6, 0x111BE },
79 { 0x111CA, 0x111CC }, { 0x1122F, 0x11231 }, { 0x11234, 0x11234 },
80 { 0x11236, 0x11237 }, { 0x1123E, 0x1123E }, { 0x112DF, 0x112DF },
81 { 0x112E3, 0x112EA }, { 0x11300, 0x11301 }, { 0x1133C, 0x1133C },
82 { 0x11340, 0x11340 }, { 0x11366, 0x1136C }, { 0x11370, 0x11374 },
83 { 0x11438, 0x1143F }, { 0x11442, 0x11444 }, { 0x11446, 0x11446 },
84 { 0x114B3, 0x114B8 }, { 0x114BA, 0x114BA }, { 0x114BF, 0x114C0 },
85 { 0x114C2, 0x114C3 }, { 0x115B2, 0x115B5 }, { 0x115BC, 0x115BD },
86 { 0x115BF, 0x115C0 }, { 0x115DC, 0x115DD }, { 0x11633, 0x1163A },
87 { 0x1163D, 0x1163D }, { 0x1163F, 0x11640 }, { 0x116AB, 0x116AB },
88 { 0x116AD, 0x116AD }, { 0x116B0, 0x116B5 }, { 0x116B7, 0x116B7 },
89 { 0x1171D, 0x1171F }, { 0x11722, 0x11725 }, { 0x11727, 0x1172B },
90 { 0x11A01, 0x11A06 }, { 0x11A09, 0x11A0A }, { 0x11A33, 0x11A38 },
79 { 0x110CD, 0x110CD }, { 0x11100, 0x11102 }, { 0x11127, 0x1112B },
80 { 0x1112D, 0x11134 }, { 0x11173, 0x11173 }, { 0x11180, 0x11181 },
81 { 0x111B6, 0x111BE }, { 0x111C9, 0x111CC }, { 0x1122F, 0x11231 },
82 { 0x11234, 0x11234 }, { 0x11236, 0x11237 }, { 0x1123E, 0x1123E },
83 { 0x112DF, 0x112DF }, { 0x112E3, 0x112EA }, { 0x11300, 0x11301 },
84 { 0x1133B, 0x1133C }, { 0x11340, 0x11340 }, { 0x11366, 0x1136C },
85 { 0x11370, 0x11374 }, { 0x11438, 0x1143F }, { 0x11442, 0x11444 },
86 { 0x11446, 0x11446 }, { 0x1145E, 0x1145E }, { 0x114B3, 0x114B8 },
87 { 0x114BA, 0x114BA }, { 0x114BF, 0x114C0 }, { 0x114C2, 0x114C3 },
88 { 0x115B2, 0x115B5 }, { 0x115BC, 0x115BD }, { 0x115BF, 0x115C0 },
89 { 0x115DC, 0x115DD }, { 0x11633, 0x1163A }, { 0x1163D, 0x1163D },
90 { 0x1163F, 0x11640 }, { 0x116AB, 0x116AB }, { 0x116AD, 0x116AD },
91 { 0x116B0, 0x116B5 }, { 0x116B7, 0x116B7 }, { 0x1171D, 0x1171F },
92 { 0x11722, 0x11725 }, { 0x11727, 0x1172B }, { 0x1182F, 0x11837 },
93 { 0x11839, 0x1183A }, { 0x11A01, 0x11A0A }, { 0x11A33, 0x11A38 },
9194 { 0x11A3B, 0x11A3E }, { 0x11A47, 0x11A47 }, { 0x11A51, 0x11A56 },
9295 { 0x11A59, 0x11A5B }, { 0x11A8A, 0x11A96 }, { 0x11A98, 0x11A99 },
9396 { 0x11C30, 0x11C36 }, { 0x11C38, 0x11C3D }, { 0x11C3F, 0x11C3F },
9497 { 0x11C92, 0x11CA7 }, { 0x11CAA, 0x11CB0 }, { 0x11CB2, 0x11CB3 },
9598 { 0x11CB5, 0x11CB6 }, { 0x11D31, 0x11D36 }, { 0x11D3A, 0x11D3A },
9699 { 0x11D3C, 0x11D3D }, { 0x11D3F, 0x11D45 }, { 0x11D47, 0x11D47 },
97 { 0x16AF0, 0x16AF4 }, { 0x16B30, 0x16B36 }, { 0x16F8F, 0x16F92 },
98 { 0x1BC9D, 0x1BC9E }, { 0x1BCA0, 0x1BCA3 }, { 0x1D167, 0x1D169 },
99 { 0x1D173, 0x1D182 }, { 0x1D185, 0x1D18B }, { 0x1D1AA, 0x1D1AD },
100 { 0x1D242, 0x1D244 }, { 0x1DA00, 0x1DA36 }, { 0x1DA3B, 0x1DA6C },
101 { 0x1DA75, 0x1DA75 }, { 0x1DA84, 0x1DA84 }, { 0x1DA9B, 0x1DA9F },
102 { 0x1DAA1, 0x1DAAF }, { 0x1E000, 0x1E006 }, { 0x1E008, 0x1E018 },
103 { 0x1E01B, 0x1E021 }, { 0x1E023, 0x1E024 }, { 0x1E026, 0x1E02A },
104 { 0x1E8D0, 0x1E8D6 }, { 0x1E944, 0x1E94A }, { 0xE0001, 0xE0001 },
105 { 0xE0020, 0xE007F }, { 0xE0100, 0xE01EF }
100 { 0x11D90, 0x11D91 }, { 0x11D95, 0x11D95 }, { 0x11D97, 0x11D97 },
101 { 0x11EF3, 0x11EF4 }, { 0x16AF0, 0x16AF4 }, { 0x16B30, 0x16B36 },
102 { 0x16F8F, 0x16F92 }, { 0x1BC9D, 0x1BC9E }, { 0x1BCA0, 0x1BCA3 },
103 { 0x1D167, 0x1D169 }, { 0x1D173, 0x1D182 }, { 0x1D185, 0x1D18B },
104 { 0x1D1AA, 0x1D1AD }, { 0x1D242, 0x1D244 }, { 0x1DA00, 0x1DA36 },
105 { 0x1DA3B, 0x1DA6C }, { 0x1DA75, 0x1DA75 }, { 0x1DA84, 0x1DA84 },
106 { 0x1DA9B, 0x1DA9F }, { 0x1DAA1, 0x1DAAF }, { 0x1E000, 0x1E006 },
107 { 0x1E008, 0x1E018 }, { 0x1E01B, 0x1E021 }, { 0x1E023, 0x1E024 },
108 { 0x1E026, 0x1E02A }, { 0x1E8D0, 0x1E8D6 }, { 0x1E944, 0x1E94A },
109 { 0xE0001, 0xE0001 }, { 0xE0020, 0xE007F }, { 0xE0100, 0xE01EF }
106110 };
0 /* Byte-wise substring search, using the Two-Way algorithm.
1 * Copyright (C) 2008 Eric Blake
2 * Permission to use, copy, modify, and distribute this software
3 * is freely granted, provided that this notice is preserved.
4 */
0 /* Optimized memmem function.
1 Copyright (c) 2018 Arm Ltd. All rights reserved.
2
3 SPDX-License-Identifier: BSD-3-Clause
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright
11 notice, this list of conditions and the following disclaimer in the
12 documentation and/or other materials provided with the distribution.
13 3. The name of the company may not be used to endorse or promote
14 products derived from this software without specific prior written
15 permission.
16
17 THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED
18 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
22 TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
527
628 /*
729 FUNCTION
1234
1335 SYNOPSIS
1436 #include <string.h>
15 char *memmem(const void *<[s1]>, size_t <[l1]>, const void *<[s2]>,
37 void *memmem(const void *<[s1]>, size_t <[l1]>, const void *<[s2]>,
1638 size_t <[l2]>);
1739
1840 DESCRIPTION
2042 Locates the first occurrence in the memory region pointed to
2143 by <[s1]> with length <[l1]> of the sequence of bytes pointed
2244 to by <[s2]> of length <[l2]>. If you already know the
23 lengths of your haystack and needle, <<memmem>> can be much
24 faster than <<strstr>>.
45 lengths of your haystack and needle, <<memmem>> is much faster
46 than <<strstr>>.
2547
2648 RETURNS
2749 Returns a pointer to the located segment, or a null pointer if
3759 */
3860
3961 #include <string.h>
62 #include <stdint.h>
4063
41 #if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
64 #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
65
66 /* Small and efficient memmem implementation (quadratic worst-case). */
67 void *
68 memmem (const void *haystack, size_t hs_len, const void *needle, size_t ne_len)
69 {
70 const char *hs = haystack;
71 const char *ne = needle;
72
73 if (ne_len == 0)
74 return (void *)hs;
75 int i;
76 int c = ne[0];
77 const char *end = hs + hs_len - ne_len;
78
79 for ( ; hs <= end; hs++)
80 {
81 if (hs[0] != c)
82 continue;
83 for (i = ne_len - 1; i != 0; i--)
84 if (hs[i] != ne[i])
85 break;
86 if (i == 0)
87 return (void *)hs;
88 }
89
90 return NULL;
91 }
92
93 #else
94
4295 # define RETURN_TYPE void *
4396 # define AVAILABLE(h, h_l, j, n_l) ((j) <= (h_l) - (n_l))
4497 # include "str-two-way.h"
45 #endif
4698
99 #define hash2(p) (((size_t)(p)[0] - ((size_t)(p)[-1] << 3)) % sizeof (shift))
100
101 /* Fast memmem algorithm with guaranteed linear-time performance.
102 Small needles up to size 2 use a dedicated linear search. Longer needles
103 up to size 256 use a novel modified Horspool algorithm. It hashes pairs
104 of characters to quickly skip past mismatches. The main search loop only
105 exits if the last 2 characters match, avoiding unnecessary calls to memcmp
106 and allowing for a larger skip if there is no match. A self-adapting
107 filtering check is used to quickly detect mismatches in long needles.
108 By limiting the needle length to 256, the shift table can be reduced to 8
109 bits per entry, lowering preprocessing overhead and minimizing cache effects.
110 The limit also implies worst-case performance is linear.
111 Needles larger than 256 characters use the linear-time Two-Way algorithm. */
47112 void *
48 memmem (const void *haystack_start,
49 size_t haystack_len,
50 const void *needle_start,
51 size_t needle_len)
113 memmem (const void *haystack, size_t hs_len, const void *needle, size_t ne_len)
52114 {
53 /* Abstract memory is considered to be an array of 'unsigned char' values,
54 not an array of 'char' values. See ISO C 99 section 6.2.6.1. */
55 const unsigned char *haystack = (const unsigned char *) haystack_start;
56 const unsigned char *needle = (const unsigned char *) needle_start;
115 const unsigned char *hs = haystack;
116 const unsigned char *ne = needle;
57117
58 if (needle_len == 0)
59 /* The first occurrence of the empty string is deemed to occur at
60 the beginning of the string. */
61 return (void *) haystack;
118 if (ne_len == 0)
119 return (void *) hs;
120 if (ne_len == 1)
121 return (void *) memchr (hs, ne[0], hs_len);
62122
63 #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
123 /* Ensure haystack length is >= needle length. */
124 if (hs_len < ne_len)
125 return NULL;
64126
65 /* Less code size, but quadratic performance in the worst case. */
66 while (needle_len <= haystack_len)
127 const unsigned char *end = hs + hs_len - ne_len;
128
129 if (ne_len == 2)
67130 {
68 if (!memcmp (haystack, needle, needle_len))
69 return (void *) haystack;
70 haystack++;
71 haystack_len--;
131 uint32_t nw = ne[0] << 16 | ne[1], hw = hs[0] << 16 | hs[1];
132 for (hs++; hs <= end && hw != nw; )
133 hw = hw << 16 | *++hs;
134 return hw == nw ? (void *)(hs - 1) : NULL;
135 }
136
137 /* Use Two-Way algorithm for very long needles. */
138 if (__builtin_expect (ne_len > 256, 0))
139 return two_way_long_needle (hs, hs_len, ne, ne_len);
140
141 uint8_t shift[256];
142 size_t tmp, shift1;
143 size_t m1 = ne_len - 1;
144 size_t offset = 0;
145 int i;
146
147 /* Initialize bad character shift hash table. */
148 memset (shift, 0, sizeof (shift));
149 for (i = 1; i < m1; i++)
150 shift[hash2 (ne + i)] = i;
151 shift1 = m1 - shift[hash2 (ne + m1)];
152 shift[hash2 (ne + m1)] = m1;
153
154 for ( ; hs <= end; )
155 {
156 /* Skip past character pairs not in the needle. */
157 do
158 {
159 hs += m1;
160 tmp = shift[hash2 (hs)];
161 }
162 while (hs <= end && tmp == 0);
163
164 /* If the match is not at the end of the needle, shift to the end
165 and continue until we match the last 2 characters. */
166 hs -= tmp;
167 if (tmp < m1)
168 continue;
169
170 /* The last 2 characters match. If the needle is long, check a
171 fixed number of characters first to quickly filter out mismatches. */
172 if (m1 <= 15 || memcmp (hs + offset, ne + offset, sizeof (long)) == 0)
173 {
174 if (memcmp (hs, ne, m1) == 0)
175 return (void *) hs;
176
177 /* Adjust filter offset when it doesn't find the mismatch. */
178 offset = (offset >= sizeof (long) ? offset : m1) - sizeof (long);
179 }
180
181 /* Skip based on matching the last 2 characters. */
182 hs += shift1;
72183 }
73184 return NULL;
74
75 #else /* compilation for speed */
76
77 /* Larger code size, but guaranteed linear performance. */
78
79 /* Sanity check, otherwise the loop might search through the whole
80 memory. */
81 if (haystack_len < needle_len)
82 return NULL;
83
84 /* Use optimizations in memchr when possible, to reduce the search
85 size of haystack using a linear algorithm with a smaller
86 coefficient. However, avoid memchr for long needles, since we
87 can often achieve sublinear performance. */
88 if (needle_len < LONG_NEEDLE_THRESHOLD)
89 {
90 haystack = memchr (haystack, *needle, haystack_len);
91 if (!haystack || needle_len == 1)
92 return (void *) haystack;
93 haystack_len -= haystack - (const unsigned char *) haystack_start;
94 if (haystack_len < needle_len)
95 return NULL;
96 return two_way_short_needle (haystack, haystack_len, needle, needle_len);
97 }
98 return two_way_long_needle (haystack, haystack_len, needle, needle_len);
99 #endif /* compilation for speed */
100185 }
186 #endif /* Compilation for speed. */
3030
3131 #include <limits.h>
3232 #include <stdint.h>
33 #include <_ansi.h>
3334
3435 /* We use the Two-Way string matching algorithm, which guarantees
3536 linear complexity with constant space. Additionally, for long
287288 If AVAILABLE modifies HAYSTACK_LEN (as in strstr), then at most 3 *
288289 HAYSTACK_LEN - NEEDLE_LEN comparisons occur in searching, and
289290 sublinear performance is not possible. */
290 static RETURN_TYPE
291 _NOINLINE_STATIC RETURN_TYPE
291292 two_way_long_needle (const unsigned char *haystack, size_t haystack_len,
292293 const unsigned char *needle, size_t needle_len)
293294 {
101101 {
102102 uint32_t h1 = (ne[0] << 16) | ne[1];
103103 uint32_t h2 = 0;
104 for (int c = hs[0]; h1 != h2 && c != 0; c = *++hs)
104 int c;
105 for (c = hs[0]; h1 != h2 && c != 0; c = *++hs)
105106 h2 = (h2 << 16) | c;
106107 return h1 == h2 ? (char *)hs - 2 : NULL;
107108 }
111112 {
112113 uint32_t h1 = (ne[0] << 24) | (ne[1] << 16) | (ne[2] << 8);
113114 uint32_t h2 = 0;
114 for (int c = hs[0]; h1 != h2 && c != 0; c = *++hs)
115 int c;
116 for (c = hs[0]; h1 != h2 && c != 0; c = *++hs)
115117 h2 = (h2 | c) << 8;
116118 return h1 == h2 ? (char *)hs - 3 : NULL;
117119 }
121123 {
122124 uint32_t h1 = (ne[0] << 24) | (ne[1] << 16) | (ne[2] << 8) | ne[3];
123125 uint32_t h2 = 0;
124 for (int c = hs[0]; c != 0 && h1 != h2; c = *++hs)
126 int c;
127 for (c = hs[0]; c != 0 && h1 != h2; c = *++hs)
125128 h2 = (h2 << 8) | c;
126129 return h1 == h2 ? (char *)hs - 4 : NULL;
127130 }
141144 {
142145 const unsigned char *hs = (const unsigned char *) haystack;
143146 const unsigned char *ne = (const unsigned char *) needle;
147 int i;
144148
145149 /* Handle short needle special cases first. */
146150 if (ne[0] == '\0')
169173
170174 /* Initialize bad character shift hash table. */
171175 memset (shift, ne_len + 1, sizeof (shift));
172 for (int i = 0; i < ne_len; i++)
176 for (i = 0; i < ne_len; i++)
173177 shift[ne[i] % sizeof (shift)] = ne_len - i;
174178
175179 do
0 //# EastAsianWidth-10.0.0.txt
1 //# Blocks-10.0.0.txt
0 //# EastAsianWidth-11.0.0.txt
1 //# Blocks-11.0.0.txt
22 {
33 { 0x1100, 0x115F }, { 0x231A, 0x231B }, { 0x2329, 0x232A },
44 { 0x23E9, 0x23EC }, { 0x23F0, 0x23F0 }, { 0x23F3, 0x23F3 },
2525 { 0x1F4FF, 0x1F53D }, { 0x1F54B, 0x1F54E }, { 0x1F550, 0x1F567 },
2626 { 0x1F57A, 0x1F57A }, { 0x1F595, 0x1F596 }, { 0x1F5A4, 0x1F5A4 },
2727 { 0x1F5FB, 0x1F64F }, { 0x1F680, 0x1F6C5 }, { 0x1F6CC, 0x1F6CC },
28 { 0x1F6D0, 0x1F6D2 }, { 0x1F6EB, 0x1F6EC }, { 0x1F6F4, 0x1F6F8 },
29 { 0x1F910, 0x1F93E }, { 0x1F940, 0x1F94C }, { 0x1F950, 0x1F96B },
30 { 0x1F980, 0x1F997 }, { 0x1F9C0, 0x1F9C0 }, { 0x1F9D0, 0x1F9E6 },
31 { 0x20000, 0x2FFFD }, { 0x30000, 0x3FFFD }
28 { 0x1F6D0, 0x1F6D2 }, { 0x1F6EB, 0x1F6EC }, { 0x1F6F4, 0x1F6F9 },
29 { 0x1F910, 0x1F93E }, { 0x1F940, 0x1F970 }, { 0x1F973, 0x1F976 },
30 { 0x1F97A, 0x1F97A }, { 0x1F97C, 0x1F9A2 }, { 0x1F9B0, 0x1F9B9 },
31 { 0x1F9C0, 0x1F9C2 }, { 0x1F9D0, 0x1F9FF }, { 0x20000, 0x2FFFD },
32 { 0x30000, 0x3FFFD }
3233 };
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
0 ## Process this file with automake to generate Makefile.in
1
2 AUTOMAKE_OPTIONS = cygnus
3
4 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
5
6 AM_CCASFLAGS = $(INCLUDES) $(CFLAGS)
7
8 noinst_LIBRARIES = lib.a
9
10 lib_a_SOURCES = close.c fstat.c isatty.c lseek.c read.c write.c \
11 fcntl.c getpid.c kill.c open.c raise.c stat.c unlink.c
12 lib_a_CCASFLAGS = $(AM_CCASFLAGS)
13 lib_a_CFLAGS = $(AM_CFLAGS)
14
15 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
16 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 am__make_dryrun = \
19 { \
20 am__dry=no; \
21 case $$MAKEFLAGS in \
22 *\\[\ \ ]*) \
23 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
25 *) \
26 for am__flg in $$MAKEFLAGS; do \
27 case $$am__flg in \
28 *=*|--*) ;; \
29 *n*) am__dry=yes; break;; \
30 esac; \
31 done;; \
32 esac; \
33 test $$am__dry = yes; \
34 }
35 pkgdatadir = $(datadir)/@PACKAGE@
36 pkgincludedir = $(includedir)/@PACKAGE@
37 pkglibdir = $(libdir)/@PACKAGE@
38 pkglibexecdir = $(libexecdir)/@PACKAGE@
39 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
40 install_sh_DATA = $(install_sh) -c -m 644
41 install_sh_PROGRAM = $(install_sh) -c
42 install_sh_SCRIPT = $(install_sh) -c
43 INSTALL_HEADER = $(INSTALL_DATA)
44 transform = $(program_transform_name)
45 NORMAL_INSTALL = :
46 PRE_INSTALL = :
47 POST_INSTALL = :
48 NORMAL_UNINSTALL = :
49 PRE_UNINSTALL = :
50 POST_UNINSTALL = :
51 build_triplet = @build@
52 host_triplet = @host@
53 subdir = .
54 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
55 $(top_srcdir)/configure $(am__configure_deps) \
56 $(srcdir)/../../../../mkinstalldirs
57 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
58 am__aclocal_m4_deps = $(top_srcdir)/../../../acinclude.m4 \
59 $(top_srcdir)/configure.in
60 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
61 $(ACLOCAL_M4)
62 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
63 configure.lineno config.status.lineno
64 mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
65 CONFIG_CLEAN_FILES =
66 CONFIG_CLEAN_VPATH_FILES =
67 LIBRARIES = $(noinst_LIBRARIES)
68 ARFLAGS = cru
69 lib_a_AR = $(AR) $(ARFLAGS)
70 lib_a_LIBADD =
71 am_lib_a_OBJECTS = lib_a-close.$(OBJEXT) lib_a-fstat.$(OBJEXT) \
72 lib_a-isatty.$(OBJEXT) lib_a-lseek.$(OBJEXT) \
73 lib_a-read.$(OBJEXT) lib_a-write.$(OBJEXT) \
74 lib_a-fcntl.$(OBJEXT) lib_a-getpid.$(OBJEXT) \
75 lib_a-kill.$(OBJEXT) lib_a-open.$(OBJEXT) \
76 lib_a-raise.$(OBJEXT) lib_a-stat.$(OBJEXT) \
77 lib_a-unlink.$(OBJEXT)
78 lib_a_OBJECTS = $(am_lib_a_OBJECTS)
79 DEFAULT_INCLUDES = -I.@am__isrc@
80 depcomp =
81 am__depfiles_maybe =
82 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
83 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
84 CCLD = $(CC)
85 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
86 SOURCES = $(lib_a_SOURCES)
87 am__can_run_installinfo = \
88 case $$AM_UPDATE_INFO_DIR in \
89 n|no|NO) false;; \
90 *) (install-info --version) >/dev/null 2>&1;; \
91 esac
92 ETAGS = etags
93 CTAGS = ctags
94 ACLOCAL = @ACLOCAL@
95 AMTAR = @AMTAR@
96 AR = @AR@
97 AS = @AS@
98 AUTOCONF = @AUTOCONF@
99 AUTOHEADER = @AUTOHEADER@
100 AUTOMAKE = @AUTOMAKE@
101 AWK = @AWK@
102 CC = @CC@
103 CCAS = @CCAS@
104 CCASFLAGS = @CCASFLAGS@
105 CCDEPMODE = @CCDEPMODE@
106 CYGPATH_W = @CYGPATH_W@
107 DEFS = @DEFS@
108 DEPDIR = @DEPDIR@
109 ECHO_C = @ECHO_C@
110 ECHO_N = @ECHO_N@
111 ECHO_T = @ECHO_T@
112 INSTALL = @INSTALL@
113 INSTALL_DATA = @INSTALL_DATA@
114 INSTALL_PROGRAM = @INSTALL_PROGRAM@
115 INSTALL_SCRIPT = @INSTALL_SCRIPT@
116 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
117 LDFLAGS = @LDFLAGS@
118 LIBOBJS = @LIBOBJS@
119 LIBS = @LIBS@
120 LTLIBOBJS = @LTLIBOBJS@
121 MAINT = @MAINT@
122 MAKEINFO = @MAKEINFO@
123 MKDIR_P = @MKDIR_P@
124 NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
125 NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
126 OBJEXT = @OBJEXT@
127 PACKAGE = @PACKAGE@
128 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
129 PACKAGE_NAME = @PACKAGE_NAME@
130 PACKAGE_STRING = @PACKAGE_STRING@
131 PACKAGE_TARNAME = @PACKAGE_TARNAME@
132 PACKAGE_URL = @PACKAGE_URL@
133 PACKAGE_VERSION = @PACKAGE_VERSION@
134 PATH_SEPARATOR = @PATH_SEPARATOR@
135 RANLIB = @RANLIB@
136 READELF = @READELF@
137 SET_MAKE = @SET_MAKE@
138 SHELL = @SHELL@
139 STRIP = @STRIP@
140 VERSION = @VERSION@
141 abs_builddir = @abs_builddir@
142 abs_srcdir = @abs_srcdir@
143 abs_top_builddir = @abs_top_builddir@
144 abs_top_srcdir = @abs_top_srcdir@
145 aext = @aext@
146 am__include = @am__include@
147 am__leading_dot = @am__leading_dot@
148 am__quote = @am__quote@
149 am__tar = @am__tar@
150 am__untar = @am__untar@
151 bindir = @bindir@
152 build = @build@
153 build_alias = @build_alias@
154 build_cpu = @build_cpu@
155 build_os = @build_os@
156 build_vendor = @build_vendor@
157 builddir = @builddir@
158 datadir = @datadir@
159 datarootdir = @datarootdir@
160 docdir = @docdir@
161 dvidir = @dvidir@
162 exec_prefix = @exec_prefix@
163 host = @host@
164 host_alias = @host_alias@
165 host_cpu = @host_cpu@
166 host_os = @host_os@
167 host_vendor = @host_vendor@
168 htmldir = @htmldir@
169 includedir = @includedir@
170 infodir = @infodir@
171 install_sh = @install_sh@
172 libdir = @libdir@
173 libexecdir = @libexecdir@
174 libm_machine_dir = @libm_machine_dir@
175 localedir = @localedir@
176 localstatedir = @localstatedir@
177 lpfx = @lpfx@
178 machine_dir = @machine_dir@
179 mandir = @mandir@
180 mkdir_p = @mkdir_p@
181 newlib_basedir = @newlib_basedir@
182 oext = @oext@
183 oldincludedir = @oldincludedir@
184 pdfdir = @pdfdir@
185 prefix = @prefix@
186 program_transform_name = @program_transform_name@
187 psdir = @psdir@
188 sbindir = @sbindir@
189 sharedstatedir = @sharedstatedir@
190 srcdir = @srcdir@
191 sys_dir = @sys_dir@
192 sysconfdir = @sysconfdir@
193 target_alias = @target_alias@
194 top_build_prefix = @top_build_prefix@
195 top_builddir = @top_builddir@
196 top_srcdir = @top_srcdir@
197 AUTOMAKE_OPTIONS = cygnus
198 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
199 AM_CCASFLAGS = $(INCLUDES) $(CFLAGS)
200 noinst_LIBRARIES = lib.a
201 lib_a_SOURCES = close.c fstat.c isatty.c lseek.c read.c write.c \
202 fcntl.c getpid.c kill.c open.c raise.c stat.c unlink.c
203
204 lib_a_CCASFLAGS = $(AM_CCASFLAGS)
205 lib_a_CFLAGS = $(AM_CFLAGS)
206 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
207 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
208 all: all-am
209
210 .SUFFIXES:
211 .SUFFIXES: .c .o .obj
212 am--refresh: Makefile
213 @:
214 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
215 @for dep in $?; do \
216 case '$(am__configure_deps)' in \
217 *$$dep*) \
218 echo ' cd $(srcdir) && $(AUTOMAKE) --cygnus'; \
219 $(am__cd) $(srcdir) && $(AUTOMAKE) --cygnus \
220 && exit 0; \
221 exit 1;; \
222 esac; \
223 done; \
224 echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile'; \
225 $(am__cd) $(top_srcdir) && \
226 $(AUTOMAKE) --cygnus Makefile
227 .PRECIOUS: Makefile
228 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
229 @case '$?' in \
230 *config.status*) \
231 echo ' $(SHELL) ./config.status'; \
232 $(SHELL) ./config.status;; \
233 *) \
234 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
235 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
236 esac;
237
238 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
239 $(SHELL) ./config.status --recheck
240
241 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
242 $(am__cd) $(srcdir) && $(AUTOCONF)
243 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
244 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
245 $(am__aclocal_m4_deps):
246
247 clean-noinstLIBRARIES:
248 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
249 lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES)
250 -rm -f lib.a
251 $(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
252 $(RANLIB) lib.a
253
254 mostlyclean-compile:
255 -rm -f *.$(OBJEXT)
256
257 distclean-compile:
258 -rm -f *.tab.c
259
260 .c.o:
261 $(COMPILE) -c $<
262
263 .c.obj:
264 $(COMPILE) -c `$(CYGPATH_W) '$<'`
265
266 lib_a-close.o: close.c
267 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-close.o `test -f 'close.c' || echo '$(srcdir)/'`close.c
268
269 lib_a-close.obj: close.c
270 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-close.obj `if test -f 'close.c'; then $(CYGPATH_W) 'close.c'; else $(CYGPATH_W) '$(srcdir)/close.c'; fi`
271
272 lib_a-fstat.o: fstat.c
273 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fstat.o `test -f 'fstat.c' || echo '$(srcdir)/'`fstat.c
274
275 lib_a-fstat.obj: fstat.c
276 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fstat.obj `if test -f 'fstat.c'; then $(CYGPATH_W) 'fstat.c'; else $(CYGPATH_W) '$(srcdir)/fstat.c'; fi`
277
278 lib_a-isatty.o: isatty.c
279 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isatty.o `test -f 'isatty.c' || echo '$(srcdir)/'`isatty.c
280
281 lib_a-isatty.obj: isatty.c
282 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isatty.obj `if test -f 'isatty.c'; then $(CYGPATH_W) 'isatty.c'; else $(CYGPATH_W) '$(srcdir)/isatty.c'; fi`
283
284 lib_a-lseek.o: lseek.c
285 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-lseek.o `test -f 'lseek.c' || echo '$(srcdir)/'`lseek.c
286
287 lib_a-lseek.obj: lseek.c
288 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-lseek.obj `if test -f 'lseek.c'; then $(CYGPATH_W) 'lseek.c'; else $(CYGPATH_W) '$(srcdir)/lseek.c'; fi`
289
290 lib_a-read.o: read.c
291 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-read.o `test -f 'read.c' || echo '$(srcdir)/'`read.c
292
293 lib_a-read.obj: read.c
294 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-read.obj `if test -f 'read.c'; then $(CYGPATH_W) 'read.c'; else $(CYGPATH_W) '$(srcdir)/read.c'; fi`
295
296 lib_a-write.o: write.c
297 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-write.o `test -f 'write.c' || echo '$(srcdir)/'`write.c
298
299 lib_a-write.obj: write.c
300 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-write.obj `if test -f 'write.c'; then $(CYGPATH_W) 'write.c'; else $(CYGPATH_W) '$(srcdir)/write.c'; fi`
301
302 lib_a-fcntl.o: fcntl.c
303 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fcntl.o `test -f 'fcntl.c' || echo '$(srcdir)/'`fcntl.c
304
305 lib_a-fcntl.obj: fcntl.c
306 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fcntl.obj `if test -f 'fcntl.c'; then $(CYGPATH_W) 'fcntl.c'; else $(CYGPATH_W) '$(srcdir)/fcntl.c'; fi`
307
308 lib_a-getpid.o: getpid.c
309 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-getpid.o `test -f 'getpid.c' || echo '$(srcdir)/'`getpid.c
310
311 lib_a-getpid.obj: getpid.c
312 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-getpid.obj `if test -f 'getpid.c'; then $(CYGPATH_W) 'getpid.c'; else $(CYGPATH_W) '$(srcdir)/getpid.c'; fi`
313
314 lib_a-kill.o: kill.c
315 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-kill.o `test -f 'kill.c' || echo '$(srcdir)/'`kill.c
316
317 lib_a-kill.obj: kill.c
318 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-kill.obj `if test -f 'kill.c'; then $(CYGPATH_W) 'kill.c'; else $(CYGPATH_W) '$(srcdir)/kill.c'; fi`
319
320 lib_a-open.o: open.c
321 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-open.o `test -f 'open.c' || echo '$(srcdir)/'`open.c
322
323 lib_a-open.obj: open.c
324 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-open.obj `if test -f 'open.c'; then $(CYGPATH_W) 'open.c'; else $(CYGPATH_W) '$(srcdir)/open.c'; fi`
325
326 lib_a-raise.o: raise.c
327 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-raise.o `test -f 'raise.c' || echo '$(srcdir)/'`raise.c
328
329 lib_a-raise.obj: raise.c
330 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-raise.obj `if test -f 'raise.c'; then $(CYGPATH_W) 'raise.c'; else $(CYGPATH_W) '$(srcdir)/raise.c'; fi`
331
332 lib_a-stat.o: stat.c
333 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-stat.o `test -f 'stat.c' || echo '$(srcdir)/'`stat.c
334
335 lib_a-stat.obj: stat.c
336 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-stat.obj `if test -f 'stat.c'; then $(CYGPATH_W) 'stat.c'; else $(CYGPATH_W) '$(srcdir)/stat.c'; fi`
337
338 lib_a-unlink.o: unlink.c
339 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-unlink.o `test -f 'unlink.c' || echo '$(srcdir)/'`unlink.c
340
341 lib_a-unlink.obj: unlink.c
342 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-unlink.obj `if test -f 'unlink.c'; then $(CYGPATH_W) 'unlink.c'; else $(CYGPATH_W) '$(srcdir)/unlink.c'; fi`
343
344 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 mkid -fID $$unique
352 tags: TAGS
353
354 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 set x; \
357 here=`pwd`; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 shift; \
365 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
366 test -n "$$unique" || unique=$$empty_fix; \
367 if test $$# -gt 0; then \
368 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
369 "$$@" $$unique; \
370 else \
371 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
372 $$unique; \
373 fi; \
374 fi
375 ctags: CTAGS
376 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
377 $(TAGS_FILES) $(LISP)
378 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
379 unique=`for i in $$list; do \
380 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
381 done | \
382 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
383 END { if (nonempty) { for (i in files) print i; }; }'`; \
384 test -z "$(CTAGS_ARGS)$$unique" \
385 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
386 $$unique
387
388 GTAGS:
389 here=`$(am__cd) $(top_builddir) && pwd` \
390 && $(am__cd) $(top_srcdir) \
391 && gtags -i $(GTAGS_ARGS) "$$here"
392
393 distclean-tags:
394 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
395 check-am:
396 check: check-am
397 all-am: Makefile $(LIBRARIES)
398 installdirs:
399 install: install-am
400 install-exec: install-exec-am
401 install-data: install-data-am
402 uninstall: uninstall-am
403
404 install-am: all-am
405 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
406
407 installcheck: installcheck-am
408 install-strip:
409 if test -z '$(STRIP)'; then \
410 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
411 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
412 install; \
413 else \
414 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
415 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
416 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
417 fi
418 mostlyclean-generic:
419
420 clean-generic:
421
422 distclean-generic:
423 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
424 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
425
426 maintainer-clean-generic:
427 @echo "This command is intended for maintainers to use"
428 @echo "it deletes files that may require special tools to rebuild."
429 clean: clean-am
430
431 clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
432
433 distclean: distclean-am
434 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
435 -rm -f Makefile
436 distclean-am: clean-am distclean-compile distclean-generic \
437 distclean-tags
438
439 dvi: dvi-am
440
441 dvi-am:
442
443 html: html-am
444
445 html-am:
446
447 info: info-am
448
449 info-am:
450
451 install-data-am:
452
453 install-dvi: install-dvi-am
454
455 install-dvi-am:
456
457 install-exec-am:
458
459 install-html: install-html-am
460
461 install-html-am:
462
463 install-info: install-info-am
464
465 install-info-am:
466
467 install-man:
468
469 install-pdf: install-pdf-am
470
471 install-pdf-am:
472
473 install-ps: install-ps-am
474
475 install-ps-am:
476
477 installcheck-am:
478
479 maintainer-clean: maintainer-clean-am
480 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
481 -rm -rf $(top_srcdir)/autom4te.cache
482 -rm -f Makefile
483 maintainer-clean-am: distclean-am maintainer-clean-generic
484
485 mostlyclean: mostlyclean-am
486
487 mostlyclean-am: mostlyclean-compile mostlyclean-generic
488
489 pdf: pdf-am
490
491 pdf-am:
492
493 ps: ps-am
494
495 ps-am:
496
497 uninstall-am:
498
499 .MAKE: install-am install-strip
500
501 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
502 clean-generic clean-noinstLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-tags dvi dvi-am \
504 html html-am info info-am install install-am install-data \
505 install-data-am install-dvi install-dvi-am install-exec \
506 install-exec-am install-html install-html-am install-info \
507 install-info-am install-man install-pdf install-pdf-am \
508 install-ps install-ps-am install-strip installcheck \
509 installcheck-am installdirs maintainer-clean \
510 maintainer-clean-generic mostlyclean mostlyclean-compile \
511 mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
512 uninstall-am
513
514
515 # Tell versions [3.59,3.63) of GNU make to not export all variables.
516 # Otherwise a system limit (for SysV at least) may be exceeded.
517 .NOEXPORT:
0 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
23 # Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # serial 1
30
31 # AM_AUTOMAKE_VERSION(VERSION)
32 # ----------------------------
33 # Automake X.Y traces this macro to ensure aclocal.m4 has been
34 # generated from the m4 files accompanying Automake X.Y.
35 # (This private macro should not be called outside this file.)
36 AC_DEFUN([AM_AUTOMAKE_VERSION],
37 [am__api_version='1.11'
38 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
39 dnl require some minimum version. Point them to the right macro.
40 m4_if([$1], [1.11.6], [],
41 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
42 ])
43
44 # _AM_AUTOCONF_VERSION(VERSION)
45 # -----------------------------
46 # aclocal traces this macro to find the Autoconf version.
47 # This is a private macro too. Using m4_define simplifies
48 # the logic in aclocal, which can simply ignore this definition.
49 m4_define([_AM_AUTOCONF_VERSION], [])
50
51 # AM_SET_CURRENT_AUTOMAKE_VERSION
52 # -------------------------------
53 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
54 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
55 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
56 [AM_AUTOMAKE_VERSION([1.11.6])dnl
57 m4_ifndef([AC_AUTOCONF_VERSION],
58 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
59 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
60
61 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
62
63 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
64 #
65 # This file is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
68
69 # serial 1
70
71 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
72 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
73 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
74 #
75 # Of course, Automake must honor this variable whenever it calls a
76 # tool from the auxiliary directory. The problem is that $srcdir (and
77 # therefore $ac_aux_dir as well) can be either absolute or relative,
78 # depending on how configure is run. This is pretty annoying, since
79 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
80 # source directory, any form will work fine, but in subdirectories a
81 # relative path needs to be adjusted first.
82 #
83 # $ac_aux_dir/missing
84 # fails when called from a subdirectory if $ac_aux_dir is relative
85 # $top_srcdir/$ac_aux_dir/missing
86 # fails if $ac_aux_dir is absolute,
87 # fails when called from a subdirectory in a VPATH build with
88 # a relative $ac_aux_dir
89 #
90 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
91 # are both prefixed by $srcdir. In an in-source build this is usually
92 # harmless because $srcdir is `.', but things will broke when you
93 # start a VPATH build or use an absolute $srcdir.
94 #
95 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
96 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
97 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
98 # and then we would define $MISSING as
99 # MISSING="\${SHELL} $am_aux_dir/missing"
100 # This will work as long as MISSING is not called from configure, because
101 # unfortunately $(top_srcdir) has no meaning in configure.
102 # However there are other variables, like CC, which are often used in
103 # configure, and could therefore not use this "fixed" $ac_aux_dir.
104 #
105 # Another solution, used here, is to always expand $ac_aux_dir to an
106 # absolute PATH. The drawback is that using absolute paths prevent a
107 # configured tree to be moved without reconfiguration.
108
109 AC_DEFUN([AM_AUX_DIR_EXPAND],
110 [dnl Rely on autoconf to set up CDPATH properly.
111 AC_PREREQ([2.50])dnl
112 # expand $ac_aux_dir to an absolute path
113 am_aux_dir=`cd $ac_aux_dir && pwd`
114 ])
115
116 # AM_CONDITIONAL -*- Autoconf -*-
117
118 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
119 # Free Software Foundation, Inc.
120 #
121 # This file is free software; the Free Software Foundation
122 # gives unlimited permission to copy and/or distribute it,
123 # with or without modifications, as long as this notice is preserved.
124
125 # serial 9
126
127 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
128 # -------------------------------------
129 # Define a conditional.
130 AC_DEFUN([AM_CONDITIONAL],
131 [AC_PREREQ(2.52)dnl
132 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
133 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
134 AC_SUBST([$1_TRUE])dnl
135 AC_SUBST([$1_FALSE])dnl
136 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
137 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
138 m4_define([_AM_COND_VALUE_$1], [$2])dnl
139 if $2; then
140 $1_TRUE=
141 $1_FALSE='#'
142 else
143 $1_TRUE='#'
144 $1_FALSE=
145 fi
146 AC_CONFIG_COMMANDS_PRE(
147 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148 AC_MSG_ERROR([[conditional "$1" was never defined.
149 Usually this means the macro was only invoked conditionally.]])
150 fi])])
151
152 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
153 # 2010, 2011 Free Software Foundation, Inc.
154 #
155 # This file is free software; the Free Software Foundation
156 # gives unlimited permission to copy and/or distribute it,
157 # with or without modifications, as long as this notice is preserved.
158
159 # serial 12
160
161 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
162 # written in clear, in which case automake, when reading aclocal.m4,
163 # will think it sees a *use*, and therefore will trigger all it's
164 # C support machinery. Also note that it means that autoscan, seeing
165 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
166
167
168 # _AM_DEPENDENCIES(NAME)
169 # ----------------------
170 # See how the compiler implements dependency checking.
171 # NAME is "CC", "CXX", "GCJ", or "OBJC".
172 # We try a few techniques and use that to set a single cache variable.
173 #
174 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
175 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
176 # dependency, and given that the user is not expected to run this macro,
177 # just rely on AC_PROG_CC.
178 AC_DEFUN([_AM_DEPENDENCIES],
179 [AC_REQUIRE([AM_SET_DEPDIR])dnl
180 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
181 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
182 AC_REQUIRE([AM_DEP_TRACK])dnl
183
184 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
185 [$1], CXX, [depcc="$CXX" am_compiler_list=],
186 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
187 [$1], UPC, [depcc="$UPC" am_compiler_list=],
188 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
189 [depcc="$$1" am_compiler_list=])
190
191 AC_CACHE_CHECK([dependency style of $depcc],
192 [am_cv_$1_dependencies_compiler_type],
193 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
194 # We make a subdir and do the tests there. Otherwise we can end up
195 # making bogus files that we don't know about and never remove. For
196 # instance it was reported that on HP-UX the gcc test will end up
197 # making a dummy file named `D' -- because `-MD' means `put the output
198 # in D'.
199 rm -rf conftest.dir
200 mkdir conftest.dir
201 # Copy depcomp to subdir because otherwise we won't find it if we're
202 # using a relative directory.
203 cp "$am_depcomp" conftest.dir
204 cd conftest.dir
205 # We will build objects and dependencies in a subdirectory because
206 # it helps to detect inapplicable dependency modes. For instance
207 # both Tru64's cc and ICC support -MD to output dependencies as a
208 # side effect of compilation, but ICC will put the dependencies in
209 # the current directory while Tru64 will put them in the object
210 # directory.
211 mkdir sub
212
213 am_cv_$1_dependencies_compiler_type=none
214 if test "$am_compiler_list" = ""; then
215 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
216 fi
217 am__universal=false
218 m4_case([$1], [CC],
219 [case " $depcc " in #(
220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
221 esac],
222 [CXX],
223 [case " $depcc " in #(
224 *\ -arch\ *\ -arch\ *) am__universal=true ;;
225 esac])
226
227 for depmode in $am_compiler_list; do
228 # Setup a source with many dependencies, because some compilers
229 # like to wrap large dependency lists on column 80 (with \), and
230 # we should not choose a depcomp mode which is confused by this.
231 #
232 # We need to recreate these files for each test, as the compiler may
233 # overwrite some of them when testing with obscure command lines.
234 # This happens at least with the AIX C compiler.
235 : > sub/conftest.c
236 for i in 1 2 3 4 5 6; do
237 echo '#include "conftst'$i'.h"' >> sub/conftest.c
238 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
239 # Solaris 8's {/usr,}/bin/sh.
240 touch sub/conftst$i.h
241 done
242 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
243
244 # We check with `-c' and `-o' for the sake of the "dashmstdout"
245 # mode. It turns out that the SunPro C++ compiler does not properly
246 # handle `-M -o', and we need to detect this. Also, some Intel
247 # versions had trouble with output in subdirs
248 am__obj=sub/conftest.${OBJEXT-o}
249 am__minus_obj="-o $am__obj"
250 case $depmode in
251 gcc)
252 # This depmode causes a compiler race in universal mode.
253 test "$am__universal" = false || continue
254 ;;
255 nosideeffect)
256 # after this tag, mechanisms are not by side-effect, so they'll
257 # only be used when explicitly requested
258 if test "x$enable_dependency_tracking" = xyes; then
259 continue
260 else
261 break
262 fi
263 ;;
264 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
265 # This compiler won't grok `-c -o', but also, the minuso test has
266 # not run yet. These depmodes are late enough in the game, and
267 # so weak that their functioning should not be impacted.
268 am__obj=conftest.${OBJEXT-o}
269 am__minus_obj=
270 ;;
271 none) break ;;
272 esac
273 if depmode=$depmode \
274 source=sub/conftest.c object=$am__obj \
275 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
276 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
277 >/dev/null 2>conftest.err &&
278 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
279 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
280 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
281 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
282 # icc doesn't choke on unknown options, it will just issue warnings
283 # or remarks (even with -Werror). So we grep stderr for any message
284 # that says an option was ignored or not supported.
285 # When given -MP, icc 7.0 and 7.1 complain thusly:
286 # icc: Command line warning: ignoring option '-M'; no argument required
287 # The diagnosis changed in icc 8.0:
288 # icc: Command line remark: option '-MP' not supported
289 if (grep 'ignoring option' conftest.err ||
290 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
291 am_cv_$1_dependencies_compiler_type=$depmode
292 break
293 fi
294 fi
295 done
296
297 cd ..
298 rm -rf conftest.dir
299 else
300 am_cv_$1_dependencies_compiler_type=none
301 fi
302 ])
303 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
304 AM_CONDITIONAL([am__fastdep$1], [
305 test "x$enable_dependency_tracking" != xno \
306 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
307 ])
308
309
310 # AM_SET_DEPDIR
311 # -------------
312 # Choose a directory name for dependency files.
313 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
314 AC_DEFUN([AM_SET_DEPDIR],
315 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
316 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
317 ])
318
319
320 # AM_DEP_TRACK
321 # ------------
322 AC_DEFUN([AM_DEP_TRACK],
323 [AC_ARG_ENABLE(dependency-tracking,
324 [ --disable-dependency-tracking speeds up one-time build
325 --enable-dependency-tracking do not reject slow dependency extractors])
326 if test "x$enable_dependency_tracking" != xno; then
327 am_depcomp="$ac_aux_dir/depcomp"
328 AMDEPBACKSLASH='\'
329 am__nodep='_no'
330 fi
331 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
332 AC_SUBST([AMDEPBACKSLASH])dnl
333 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
334 AC_SUBST([am__nodep])dnl
335 _AM_SUBST_NOTMAKE([am__nodep])dnl
336 ])
337
338 # Generate code to set up dependency tracking. -*- Autoconf -*-
339
340 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
341 # Free Software Foundation, Inc.
342 #
343 # This file is free software; the Free Software Foundation
344 # gives unlimited permission to copy and/or distribute it,
345 # with or without modifications, as long as this notice is preserved.
346
347 #serial 5
348
349 # _AM_OUTPUT_DEPENDENCY_COMMANDS
350 # ------------------------------
351 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
352 [{
353 # Autoconf 2.62 quotes --file arguments for eval, but not when files
354 # are listed without --file. Let's play safe and only enable the eval
355 # if we detect the quoting.
356 case $CONFIG_FILES in
357 *\'*) eval set x "$CONFIG_FILES" ;;
358 *) set x $CONFIG_FILES ;;
359 esac
360 shift
361 for mf
362 do
363 # Strip MF so we end up with the name of the file.
364 mf=`echo "$mf" | sed -e 's/:.*$//'`
365 # Check whether this is an Automake generated Makefile or not.
366 # We used to match only the files named `Makefile.in', but
367 # some people rename them; so instead we look at the file content.
368 # Grep'ing the first line is not enough: some people post-process
369 # each Makefile.in and add a new line on top of each file to say so.
370 # Grep'ing the whole file is not good either: AIX grep has a line
371 # limit of 2048, but all sed's we know have understand at least 4000.
372 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
373 dirpart=`AS_DIRNAME("$mf")`
374 else
375 continue
376 fi
377 # Extract the definition of DEPDIR, am__include, and am__quote
378 # from the Makefile without running `make'.
379 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
380 test -z "$DEPDIR" && continue
381 am__include=`sed -n 's/^am__include = //p' < "$mf"`
382 test -z "am__include" && continue
383 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
384 # When using ansi2knr, U may be empty or an underscore; expand it
385 U=`sed -n 's/^U = //p' < "$mf"`
386 # Find all dependency output files, they are included files with
387 # $(DEPDIR) in their names. We invoke sed twice because it is the
388 # simplest approach to changing $(DEPDIR) to its actual value in the
389 # expansion.
390 for file in `sed -n "
391 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
392 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
393 # Make sure the directory exists.
394 test -f "$dirpart/$file" && continue
395 fdir=`AS_DIRNAME(["$file"])`
396 AS_MKDIR_P([$dirpart/$fdir])
397 # echo "creating $dirpart/$file"
398 echo '# dummy' > "$dirpart/$file"
399 done
400 done
401 }
402 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
403
404
405 # AM_OUTPUT_DEPENDENCY_COMMANDS
406 # -----------------------------
407 # This macro should only be invoked once -- use via AC_REQUIRE.
408 #
409 # This code is only required when automatic dependency tracking
410 # is enabled. FIXME. This creates each `.P' file that we will
411 # need in order to bootstrap the dependency handling code.
412 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
413 [AC_CONFIG_COMMANDS([depfiles],
414 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
415 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
416 ])
417
418 # Do all the work for Automake. -*- Autoconf -*-
419
420 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
421 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
422 #
423 # This file is free software; the Free Software Foundation
424 # gives unlimited permission to copy and/or distribute it,
425 # with or without modifications, as long as this notice is preserved.
426
427 # serial 16
428
429 # This macro actually does too much. Some checks are only needed if
430 # your package does certain things. But this isn't really a big deal.
431
432 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
433 # AM_INIT_AUTOMAKE([OPTIONS])
434 # -----------------------------------------------
435 # The call with PACKAGE and VERSION arguments is the old style
436 # call (pre autoconf-2.50), which is being phased out. PACKAGE
437 # and VERSION should now be passed to AC_INIT and removed from
438 # the call to AM_INIT_AUTOMAKE.
439 # We support both call styles for the transition. After
440 # the next Automake release, Autoconf can make the AC_INIT
441 # arguments mandatory, and then we can depend on a new Autoconf
442 # release and drop the old call support.
443 AC_DEFUN([AM_INIT_AUTOMAKE],
444 [AC_PREREQ([2.62])dnl
445 dnl Autoconf wants to disallow AM_ names. We explicitly allow
446 dnl the ones we care about.
447 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
448 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
449 AC_REQUIRE([AC_PROG_INSTALL])dnl
450 if test "`cd $srcdir && pwd`" != "`pwd`"; then
451 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
452 # is not polluted with repeated "-I."
453 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
454 # test to see if srcdir already configured
455 if test -f $srcdir/config.status; then
456 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
457 fi
458 fi
459
460 # test whether we have cygpath
461 if test -z "$CYGPATH_W"; then
462 if (cygpath --version) >/dev/null 2>/dev/null; then
463 CYGPATH_W='cygpath -w'
464 else
465 CYGPATH_W=echo
466 fi
467 fi
468 AC_SUBST([CYGPATH_W])
469
470 # Define the identity of the package.
471 dnl Distinguish between old-style and new-style calls.
472 m4_ifval([$2],
473 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
474 AC_SUBST([PACKAGE], [$1])dnl
475 AC_SUBST([VERSION], [$2])],
476 [_AM_SET_OPTIONS([$1])dnl
477 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
478 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
479 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
480 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
481 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
482
483 _AM_IF_OPTION([no-define],,
484 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
485 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
486
487 # Some tools Automake needs.
488 AC_REQUIRE([AM_SANITY_CHECK])dnl
489 AC_REQUIRE([AC_ARG_PROGRAM])dnl
490 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
491 AM_MISSING_PROG(AUTOCONF, autoconf)
492 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
493 AM_MISSING_PROG(AUTOHEADER, autoheader)
494 AM_MISSING_PROG(MAKEINFO, makeinfo)
495 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
496 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
497 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
498 # We need awk for the "check" target. The system "awk" is bad on
499 # some platforms.
500 AC_REQUIRE([AC_PROG_AWK])dnl
501 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
502 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
503 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
504 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
505 [_AM_PROG_TAR([v7])])])
506 _AM_IF_OPTION([no-dependencies],,
507 [AC_PROVIDE_IFELSE([AC_PROG_CC],
508 [_AM_DEPENDENCIES(CC)],
509 [define([AC_PROG_CC],
510 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
511 AC_PROVIDE_IFELSE([AC_PROG_CXX],
512 [_AM_DEPENDENCIES(CXX)],
513 [define([AC_PROG_CXX],
514 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
515 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
516 [_AM_DEPENDENCIES(OBJC)],
517 [define([AC_PROG_OBJC],
518 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
519 ])
520 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
521 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
522 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
523 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
524 AC_CONFIG_COMMANDS_PRE(dnl
525 [m4_provide_if([_AM_COMPILER_EXEEXT],
526 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
527 ])
528
529 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
530 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
531 dnl mangled by Autoconf and run in a shell conditional statement.
532 m4_define([_AC_COMPILER_EXEEXT],
533 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
534
535
536 # When config.status generates a header, we must update the stamp-h file.
537 # This file resides in the same directory as the config header
538 # that is generated. The stamp files are numbered to have different names.
539
540 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
541 # loop where config.status creates the headers, so we can generate
542 # our stamp files there.
543 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
544 [# Compute $1's index in $config_headers.
545 _am_arg=$1
546 _am_stamp_count=1
547 for _am_header in $config_headers :; do
548 case $_am_header in
549 $_am_arg | $_am_arg:* )
550 break ;;
551 * )
552 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
553 esac
554 done
555 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
556
557 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
558 # Inc.
559 #
560 # This file is free software; the Free Software Foundation
561 # gives unlimited permission to copy and/or distribute it,
562 # with or without modifications, as long as this notice is preserved.
563
564 # serial 1
565
566 # AM_PROG_INSTALL_SH
567 # ------------------
568 # Define $install_sh.
569 AC_DEFUN([AM_PROG_INSTALL_SH],
570 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
571 if test x"${install_sh}" != xset; then
572 case $am_aux_dir in
573 *\ * | *\ *)
574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
575 *)
576 install_sh="\${SHELL} $am_aux_dir/install-sh"
577 esac
578 fi
579 AC_SUBST(install_sh)])
580
581 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
582 #
583 # This file is free software; the Free Software Foundation
584 # gives unlimited permission to copy and/or distribute it,
585 # with or without modifications, as long as this notice is preserved.
586
587 # serial 2
588
589 # Check whether the underlying file-system supports filenames
590 # with a leading dot. For instance MS-DOS doesn't.
591 AC_DEFUN([AM_SET_LEADING_DOT],
592 [rm -rf .tst 2>/dev/null
593 mkdir .tst 2>/dev/null
594 if test -d .tst; then
595 am__leading_dot=.
596 else
597 am__leading_dot=_
598 fi
599 rmdir .tst 2>/dev/null
600 AC_SUBST([am__leading_dot])])
601
602 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
603 # From Jim Meyering
604
605 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
606 # 2011 Free Software Foundation, Inc.
607 #
608 # This file is free software; the Free Software Foundation
609 # gives unlimited permission to copy and/or distribute it,
610 # with or without modifications, as long as this notice is preserved.
611
612 # serial 5
613
614 # AM_MAINTAINER_MODE([DEFAULT-MODE])
615 # ----------------------------------
616 # Control maintainer-specific portions of Makefiles.
617 # Default is to disable them, unless `enable' is passed literally.
618 # For symmetry, `disable' may be passed as well. Anyway, the user
619 # can override the default with the --enable/--disable switch.
620 AC_DEFUN([AM_MAINTAINER_MODE],
621 [m4_case(m4_default([$1], [disable]),
622 [enable], [m4_define([am_maintainer_other], [disable])],
623 [disable], [m4_define([am_maintainer_other], [enable])],
624 [m4_define([am_maintainer_other], [enable])
625 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
626 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
627 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
628 AC_ARG_ENABLE([maintainer-mode],
629 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
630 (and sometimes confusing) to the casual installer],
631 [USE_MAINTAINER_MODE=$enableval],
632 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
633 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
634 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
635 MAINT=$MAINTAINER_MODE_TRUE
636 AC_SUBST([MAINT])dnl
637 ]
638 )
639
640 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
641
642 # Check to see how 'make' treats includes. -*- Autoconf -*-
643
644 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
645 #
646 # This file is free software; the Free Software Foundation
647 # gives unlimited permission to copy and/or distribute it,
648 # with or without modifications, as long as this notice is preserved.
649
650 # serial 4
651
652 # AM_MAKE_INCLUDE()
653 # -----------------
654 # Check to see how make treats includes.
655 AC_DEFUN([AM_MAKE_INCLUDE],
656 [am_make=${MAKE-make}
657 cat > confinc << 'END'
658 am__doit:
659 @echo this is the am__doit target
660 .PHONY: am__doit
661 END
662 # If we don't find an include directive, just comment out the code.
663 AC_MSG_CHECKING([for style of include used by $am_make])
664 am__include="#"
665 am__quote=
666 _am_result=none
667 # First try GNU make style include.
668 echo "include confinc" > confmf
669 # Ignore all kinds of additional output from `make'.
670 case `$am_make -s -f confmf 2> /dev/null` in #(
671 *the\ am__doit\ target*)
672 am__include=include
673 am__quote=
674 _am_result=GNU
675 ;;
676 esac
677 # Now try BSD make style include.
678 if test "$am__include" = "#"; then
679 echo '.include "confinc"' > confmf
680 case `$am_make -s -f confmf 2> /dev/null` in #(
681 *the\ am__doit\ target*)
682 am__include=.include
683 am__quote="\""
684 _am_result=BSD
685 ;;
686 esac
687 fi
688 AC_SUBST([am__include])
689 AC_SUBST([am__quote])
690 AC_MSG_RESULT([$_am_result])
691 rm -f confinc confmf
692 ])
693
694 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
695
696 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
697 # Free Software Foundation, Inc.
698 #
699 # This file is free software; the Free Software Foundation
700 # gives unlimited permission to copy and/or distribute it,
701 # with or without modifications, as long as this notice is preserved.
702
703 # serial 6
704
705 # AM_MISSING_PROG(NAME, PROGRAM)
706 # ------------------------------
707 AC_DEFUN([AM_MISSING_PROG],
708 [AC_REQUIRE([AM_MISSING_HAS_RUN])
709 $1=${$1-"${am_missing_run}$2"}
710 AC_SUBST($1)])
711
712
713 # AM_MISSING_HAS_RUN
714 # ------------------
715 # Define MISSING if not defined so far and test if it supports --run.
716 # If it does, set am_missing_run to use it, otherwise, to nothing.
717 AC_DEFUN([AM_MISSING_HAS_RUN],
718 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
719 AC_REQUIRE_AUX_FILE([missing])dnl
720 if test x"${MISSING+set}" != xset; then
721 case $am_aux_dir in
722 *\ * | *\ *)
723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
724 *)
725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
726 esac
727 fi
728 # Use eval to expand $SHELL
729 if eval "$MISSING --run true"; then
730 am_missing_run="$MISSING --run "
731 else
732 am_missing_run=
733 AC_MSG_WARN([`missing' script is too old or missing])
734 fi
735 ])
736
737 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
738 # Inc.
739 #
740 # This file is free software; the Free Software Foundation
741 # gives unlimited permission to copy and/or distribute it,
742 # with or without modifications, as long as this notice is preserved.
743
744 # serial 1
745
746 # AM_PROG_MKDIR_P
747 # ---------------
748 # Check for `mkdir -p'.
749 AC_DEFUN([AM_PROG_MKDIR_P],
750 [AC_PREREQ([2.60])dnl
751 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
752 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
753 dnl while keeping a definition of mkdir_p for backward compatibility.
754 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
755 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
756 dnl Makefile.ins that do not define MKDIR_P, so we do our own
757 dnl adjustment using top_builddir (which is defined more often than
758 dnl MKDIR_P).
759 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
760 case $mkdir_p in
761 [[\\/$]]* | ?:[[\\/]]*) ;;
762 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
763 esac
764 ])
765
766 # Helper functions for option handling. -*- Autoconf -*-
767
768 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
769 # Foundation, Inc.
770 #
771 # This file is free software; the Free Software Foundation
772 # gives unlimited permission to copy and/or distribute it,
773 # with or without modifications, as long as this notice is preserved.
774
775 # serial 5
776
777 # _AM_MANGLE_OPTION(NAME)
778 # -----------------------
779 AC_DEFUN([_AM_MANGLE_OPTION],
780 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
781
782 # _AM_SET_OPTION(NAME)
783 # --------------------
784 # Set option NAME. Presently that only means defining a flag for this option.
785 AC_DEFUN([_AM_SET_OPTION],
786 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
787
788 # _AM_SET_OPTIONS(OPTIONS)
789 # ------------------------
790 # OPTIONS is a space-separated list of Automake options.
791 AC_DEFUN([_AM_SET_OPTIONS],
792 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
793
794 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
795 # -------------------------------------------
796 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
797 AC_DEFUN([_AM_IF_OPTION],
798 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
799
800 # Check to make sure that the build environment is sane. -*- Autoconf -*-
801
802 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
803 # Free Software Foundation, Inc.
804 #
805 # This file is free software; the Free Software Foundation
806 # gives unlimited permission to copy and/or distribute it,
807 # with or without modifications, as long as this notice is preserved.
808
809 # serial 5
810
811 # AM_SANITY_CHECK
812 # ---------------
813 AC_DEFUN([AM_SANITY_CHECK],
814 [AC_MSG_CHECKING([whether build environment is sane])
815 # Just in case
816 sleep 1
817 echo timestamp > conftest.file
818 # Reject unsafe characters in $srcdir or the absolute working directory
819 # name. Accept space and tab only in the latter.
820 am_lf='
821 '
822 case `pwd` in
823 *[[\\\"\#\$\&\'\`$am_lf]]*)
824 AC_MSG_ERROR([unsafe absolute working directory name]);;
825 esac
826 case $srcdir in
827 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
828 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
829 esac
830
831 # Do `set' in a subshell so we don't clobber the current shell's
832 # arguments. Must try -L first in case configure is actually a
833 # symlink; some systems play weird games with the mod time of symlinks
834 # (eg FreeBSD returns the mod time of the symlink's containing
835 # directory).
836 if (
837 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
838 if test "$[*]" = "X"; then
839 # -L didn't work.
840 set X `ls -t "$srcdir/configure" conftest.file`
841 fi
842 rm -f conftest.file
843 if test "$[*]" != "X $srcdir/configure conftest.file" \
844 && test "$[*]" != "X conftest.file $srcdir/configure"; then
845
846 # If neither matched, then we have a broken ls. This can happen
847 # if, for instance, CONFIG_SHELL is bash and it inherits a
848 # broken ls alias from the environment. This has actually
849 # happened. Such a system could not be considered "sane".
850 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
851 alias in your environment])
852 fi
853
854 test "$[2]" = conftest.file
855 )
856 then
857 # Ok.
858 :
859 else
860 AC_MSG_ERROR([newly created file is older than distributed files!
861 Check your system clock])
862 fi
863 AC_MSG_RESULT(yes)])
864
865 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
866 #
867 # This file is free software; the Free Software Foundation
868 # gives unlimited permission to copy and/or distribute it,
869 # with or without modifications, as long as this notice is preserved.
870
871 # serial 1
872
873 # AM_PROG_INSTALL_STRIP
874 # ---------------------
875 # One issue with vendor `install' (even GNU) is that you can't
876 # specify the program used to strip binaries. This is especially
877 # annoying in cross-compiling environments, where the build's strip
878 # is unlikely to handle the host's binaries.
879 # Fortunately install-sh will honor a STRIPPROG variable, so we
880 # always use install-sh in `make install-strip', and initialize
881 # STRIPPROG with the value of the STRIP variable (set by the user).
882 AC_DEFUN([AM_PROG_INSTALL_STRIP],
883 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
884 # Installed binaries are usually stripped using `strip' when the user
885 # run `make install-strip'. However `strip' might not be the right
886 # tool to use in cross-compilation environments, therefore Automake
887 # will honor the `STRIP' environment variable to overrule this program.
888 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
889 if test "$cross_compiling" != no; then
890 AC_CHECK_TOOL([STRIP], [strip], :)
891 fi
892 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
893 AC_SUBST([INSTALL_STRIP_PROGRAM])])
894
895 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
896 #
897 # This file is free software; the Free Software Foundation
898 # gives unlimited permission to copy and/or distribute it,
899 # with or without modifications, as long as this notice is preserved.
900
901 # serial 3
902
903 # _AM_SUBST_NOTMAKE(VARIABLE)
904 # ---------------------------
905 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
906 # This macro is traced by Automake.
907 AC_DEFUN([_AM_SUBST_NOTMAKE])
908
909 # AM_SUBST_NOTMAKE(VARIABLE)
910 # --------------------------
911 # Public sister of _AM_SUBST_NOTMAKE.
912 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
913
914 # Check how to create a tarball. -*- Autoconf -*-
915
916 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
917 #
918 # This file is free software; the Free Software Foundation
919 # gives unlimited permission to copy and/or distribute it,
920 # with or without modifications, as long as this notice is preserved.
921
922 # serial 2
923
924 # _AM_PROG_TAR(FORMAT)
925 # --------------------
926 # Check how to create a tarball in format FORMAT.
927 # FORMAT should be one of `v7', `ustar', or `pax'.
928 #
929 # Substitute a variable $(am__tar) that is a command
930 # writing to stdout a FORMAT-tarball containing the directory
931 # $tardir.
932 # tardir=directory && $(am__tar) > result.tar
933 #
934 # Substitute a variable $(am__untar) that extract such
935 # a tarball read from stdin.
936 # $(am__untar) < result.tar
937 AC_DEFUN([_AM_PROG_TAR],
938 [# Always define AMTAR for backward compatibility. Yes, it's still used
939 # in the wild :-( We should find a proper way to deprecate it ...
940 AC_SUBST([AMTAR], ['$${TAR-tar}'])
941 m4_if([$1], [v7],
942 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
943 [m4_case([$1], [ustar],, [pax],,
944 [m4_fatal([Unknown tar format])])
945 AC_MSG_CHECKING([how to create a $1 tar archive])
946 # Loop over all known methods to create a tar archive until one works.
947 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
948 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
949 # Do not fold the above two line into one, because Tru64 sh and
950 # Solaris sh will not grok spaces in the rhs of `-'.
951 for _am_tool in $_am_tools
952 do
953 case $_am_tool in
954 gnutar)
955 for _am_tar in tar gnutar gtar;
956 do
957 AM_RUN_LOG([$_am_tar --version]) && break
958 done
959 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
960 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
961 am__untar="$_am_tar -xf -"
962 ;;
963 plaintar)
964 # Must skip GNU tar: if it does not support --format= it doesn't create
965 # ustar tarball either.
966 (tar --version) >/dev/null 2>&1 && continue
967 am__tar='tar chf - "$$tardir"'
968 am__tar_='tar chf - "$tardir"'
969 am__untar='tar xf -'
970 ;;
971 pax)
972 am__tar='pax -L -x $1 -w "$$tardir"'
973 am__tar_='pax -L -x $1 -w "$tardir"'
974 am__untar='pax -r'
975 ;;
976 cpio)
977 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
978 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
979 am__untar='cpio -i -H $1 -d'
980 ;;
981 none)
982 am__tar=false
983 am__tar_=false
984 am__untar=false
985 ;;
986 esac
987
988 # If the value was cached, stop now. We just wanted to have am__tar
989 # and am__untar set.
990 test -n "${am_cv_prog_tar_$1}" && break
991
992 # tar/untar a dummy directory, and stop if the command works
993 rm -rf conftest.dir
994 mkdir conftest.dir
995 echo GrepMe > conftest.dir/file
996 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
997 rm -rf conftest.dir
998 if test -s conftest.tar; then
999 AM_RUN_LOG([$am__untar <conftest.tar])
1000 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1001 fi
1002 done
1003 rm -rf conftest.dir
1004
1005 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1006 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1007 AC_SUBST([am__tar])
1008 AC_SUBST([am__untar])
1009 ]) # _AM_PROG_TAR
1010
1011 m4_include([../../../acinclude.m4])
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <unistd.h>
16 #include <errno.h>
17
18 int close(int fildes)
19 {
20 errno = EIO;
21 return -1;
22 }
23
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
3 #
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7 # Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 # Preserve -v and -x to the replacement shell.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 case $- in # ((((
222 *v*x* | *x*v* ) as_opts=-vx ;;
223 *v* ) as_opts=-v ;;
224 *x* ) as_opts=-x ;;
225 * ) as_opts= ;;
226 esac
227 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error STATUS ERROR [LINENO LOG_FD]
366 # ----------------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with STATUS, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$1; test $as_status -eq 0 && as_status=1
373 if test "$4"; then
374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
376 fi
377 $as_echo "$as_me: error: $2" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534
535 test -n "$DJDIR" || exec 7<&0 </dev/null
536 exec 6>&1
537
538 # Name of the host.
539 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
540 # so uname gets run too.
541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
542
543 #
544 # Initializations.
545 #
546 ac_default_prefix=/usr/local
547 ac_clean_files=
548 ac_config_libobj_dir=.
549 LIBOBJS=
550 cross_compiling=no
551 subdirs=
552 MFLAGS=
553 MAKEFLAGS=
554
555 # Identity of this package.
556 PACKAGE_NAME='newlib'
557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560 PACKAGE_BUGREPORT=''
561 PACKAGE_URL=''
562
563 ac_unique_file="close.c"
564 ac_subst_vars='LTLIBOBJS
565 LIBOBJS
566 sys_dir
567 machine_dir
568 libm_machine_dir
569 lpfx
570 aext
571 oext
572 OBJEXT
573 USE_LIBTOOL_FALSE
574 USE_LIBTOOL_TRUE
575 ELIX_LEVEL_4_FALSE
576 ELIX_LEVEL_4_TRUE
577 ELIX_LEVEL_3_FALSE
578 ELIX_LEVEL_3_TRUE
579 ELIX_LEVEL_2_FALSE
580 ELIX_LEVEL_2_TRUE
581 ELIX_LEVEL_1_FALSE
582 ELIX_LEVEL_1_TRUE
583 ELIX_LEVEL_0_FALSE
584 ELIX_LEVEL_0_TRUE
585 LDFLAGS
586 NO_INCLUDE_LIST
587 NEWLIB_CFLAGS
588 CCASFLAGS
589 CCAS
590 MAINT
591 MAINTAINER_MODE_FALSE
592 MAINTAINER_MODE_TRUE
593 READELF
594 RANLIB
595 AR
596 AS
597 am__fastdepCC_FALSE
598 am__fastdepCC_TRUE
599 CCDEPMODE
600 am__nodep
601 AMDEPBACKSLASH
602 AMDEP_FALSE
603 AMDEP_TRUE
604 am__quote
605 am__include
606 DEPDIR
607 CC
608 am__untar
609 am__tar
610 AMTAR
611 am__leading_dot
612 SET_MAKE
613 AWK
614 mkdir_p
615 MKDIR_P
616 INSTALL_STRIP_PROGRAM
617 STRIP
618 install_sh
619 MAKEINFO
620 AUTOHEADER
621 AUTOMAKE
622 AUTOCONF
623 ACLOCAL
624 VERSION
625 PACKAGE
626 CYGPATH_W
627 am__isrc
628 INSTALL_DATA
629 INSTALL_SCRIPT
630 INSTALL_PROGRAM
631 host_os
632 host_vendor
633 host_cpu
634 host
635 build_os
636 build_vendor
637 build_cpu
638 build
639 newlib_basedir
640 MAY_SUPPLY_SYSCALLS_FALSE
641 MAY_SUPPLY_SYSCALLS_TRUE
642 target_alias
643 host_alias
644 build_alias
645 LIBS
646 ECHO_T
647 ECHO_N
648 ECHO_C
649 DEFS
650 mandir
651 localedir
652 libdir
653 psdir
654 pdfdir
655 dvidir
656 htmldir
657 infodir
658 docdir
659 oldincludedir
660 includedir
661 localstatedir
662 sharedstatedir
663 sysconfdir
664 datadir
665 datarootdir
666 libexecdir
667 sbindir
668 bindir
669 program_transform_name
670 prefix
671 exec_prefix
672 PACKAGE_URL
673 PACKAGE_BUGREPORT
674 PACKAGE_STRING
675 PACKAGE_VERSION
676 PACKAGE_TARNAME
677 PACKAGE_NAME
678 PATH_SEPARATOR
679 SHELL'
680 ac_subst_files=''
681 ac_user_opts='
682 enable_option_checking
683 enable_multilib
684 enable_target_optspace
685 enable_malloc_debugging
686 enable_newlib_multithread
687 enable_newlib_iconv
688 enable_newlib_elix_level
689 enable_newlib_io_float
690 enable_newlib_supplied_syscalls
691 enable_newlib_fno_builtin
692 enable_dependency_tracking
693 enable_maintainer_mode
694 '
695 ac_precious_vars='build_alias
696 host_alias
697 target_alias
698 CCAS
699 CCASFLAGS'
700
701
702 # Initialize some variables set by options.
703 ac_init_help=
704 ac_init_version=false
705 ac_unrecognized_opts=
706 ac_unrecognized_sep=
707 # The variables have the same names as the options, with
708 # dashes changed to underlines.
709 cache_file=/dev/null
710 exec_prefix=NONE
711 no_create=
712 no_recursion=
713 prefix=NONE
714 program_prefix=NONE
715 program_suffix=NONE
716 program_transform_name=s,x,x,
717 silent=
718 site=
719 srcdir=
720 verbose=
721 x_includes=NONE
722 x_libraries=NONE
723
724 # Installation directory options.
725 # These are left unexpanded so users can "make install exec_prefix=/foo"
726 # and all the variables that are supposed to be based on exec_prefix
727 # by default will actually change.
728 # Use braces instead of parens because sh, perl, etc. also accept them.
729 # (The list follows the same order as the GNU Coding Standards.)
730 bindir='${exec_prefix}/bin'
731 sbindir='${exec_prefix}/sbin'
732 libexecdir='${exec_prefix}/libexec'
733 datarootdir='${prefix}/share'
734 datadir='${datarootdir}'
735 sysconfdir='${prefix}/etc'
736 sharedstatedir='${prefix}/com'
737 localstatedir='${prefix}/var'
738 includedir='${prefix}/include'
739 oldincludedir='/usr/include'
740 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
741 infodir='${datarootdir}/info'
742 htmldir='${docdir}'
743 dvidir='${docdir}'
744 pdfdir='${docdir}'
745 psdir='${docdir}'
746 libdir='${exec_prefix}/lib'
747 localedir='${datarootdir}/locale'
748 mandir='${datarootdir}/man'
749
750 ac_prev=
751 ac_dashdash=
752 for ac_option
753 do
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
756 eval $ac_prev=\$ac_option
757 ac_prev=
758 continue
759 fi
760
761 case $ac_option in
762 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 *=) ac_optarg= ;;
764 *) ac_optarg=yes ;;
765 esac
766
767 # Accept the important Cygnus configure options, so we can diagnose typos.
768
769 case $ac_dashdash$ac_option in
770 --)
771 ac_dashdash=yes ;;
772
773 -bindir | --bindir | --bindi | --bind | --bin | --bi)
774 ac_prev=bindir ;;
775 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
776 bindir=$ac_optarg ;;
777
778 -build | --build | --buil | --bui | --bu)
779 ac_prev=build_alias ;;
780 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
781 build_alias=$ac_optarg ;;
782
783 -cache-file | --cache-file | --cache-fil | --cache-fi \
784 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
785 ac_prev=cache_file ;;
786 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
787 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
788 cache_file=$ac_optarg ;;
789
790 --config-cache | -C)
791 cache_file=config.cache ;;
792
793 -datadir | --datadir | --datadi | --datad)
794 ac_prev=datadir ;;
795 -datadir=* | --datadir=* | --datadi=* | --datad=*)
796 datadir=$ac_optarg ;;
797
798 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
799 | --dataroo | --dataro | --datar)
800 ac_prev=datarootdir ;;
801 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
802 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
803 datarootdir=$ac_optarg ;;
804
805 -disable-* | --disable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error $? "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
813 *"
814 "enable_$ac_useropt"
815 "*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=no ;;
820
821 -docdir | --docdir | --docdi | --doc | --do)
822 ac_prev=docdir ;;
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824 docdir=$ac_optarg ;;
825
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827 ac_prev=dvidir ;;
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829 dvidir=$ac_optarg ;;
830
831 -enable-* | --enable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error $? "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
839 *"
840 "enable_$ac_useropt"
841 "*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=\$ac_optarg ;;
846
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
855
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
859
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
866
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
871
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
877
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
884
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
889
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
894
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
901
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
906
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
913
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
918
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
922
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
926
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
930
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
939
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
944
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
951
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
958
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
975
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
980
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
985
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "with_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval with_$ac_useropt=\$ac_optarg ;;
1050
1051 -without-* | --without-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=no ;;
1066
1067 --x)
1068 # Obsolete; use --with-x.
1069 with_x=yes ;;
1070
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1077
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1084
1085 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1086 Try \`$0 --help' for more information"
1087 ;;
1088
1089 *=*)
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 case $ac_envvar in #(
1093 '' | [0-9]* | *[!_$as_cr_alnum]* )
1094 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1095 esac
1096 eval $ac_envvar=\$ac_optarg
1097 export $ac_envvar ;;
1098
1099 *)
1100 # FIXME: should be removed in autoconf 3.0.
1101 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1105 ;;
1106
1107 esac
1108 done
1109
1110 if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112 as_fn_error $? "missing argument to $ac_option"
1113 fi
1114
1115 if test -n "$ac_unrecognized_opts"; then
1116 case $enable_option_checking in
1117 no) ;;
1118 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1119 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1120 esac
1121 fi
1122
1123 # Check all directory arguments for consistency.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1128 do
1129 eval ac_val=\$$ac_var
1130 # Remove trailing slashes.
1131 case $ac_val in
1132 */ )
1133 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134 eval $ac_var=\$ac_val;;
1135 esac
1136 # Be sure to have absolute directory names.
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1142 done
1143
1144 # There might be people who depend on the old broken behavior: `$host'
1145 # used to hold the argument of --host etc.
1146 # FIXME: To remove some day.
1147 build=$build_alias
1148 host=$host_alias
1149 target=$target_alias
1150
1151 # FIXME: To remove some day.
1152 if test "x$host_alias" != x; then
1153 if test "x$build_alias" = x; then
1154 cross_compiling=maybe
1155 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1156 If a cross compiler is detected then cross compile mode will be used" >&2
1157 elif test "x$build_alias" != "x$host_alias"; then
1158 cross_compiling=yes
1159 fi
1160 fi
1161
1162 ac_tool_prefix=
1163 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164
1165 test "$silent" = yes && exec 6>/dev/null
1166
1167
1168 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1169 ac_ls_di=`ls -di .` &&
1170 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1171 as_fn_error $? "working directory cannot be determined"
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 as_fn_error $? "pwd does not report name of working directory"
1174
1175
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$as_myself" ||
1181 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$as_myself" : 'X\(//\)[^/]' \| \
1183 X"$as_myself" : 'X\(//\)$' \| \
1184 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1185 $as_echo X"$as_myself" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\).*/{
1199 s//\1/
1200 q
1201 }
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1206 fi
1207 else
1208 ac_srcdir_defaulted=no
1209 fi
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1213 fi
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1217 pwd)`
1218 # When building in place, set srcdir=.
1219 if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1221 fi
1222 # Remove unnecessary trailing slashes from srcdir.
1223 # Double slashes in file names in object file debugging info
1224 # mess up M-x gdb in Emacs.
1225 case $srcdir in
1226 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 esac
1228 for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233 done
1234
1235 #
1236 # Report the --help message.
1237 #
1238 if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
1243
1244 Usage: $0 [OPTION]... [VAR=VALUE]...
1245
1246 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247 VAR=VALUE. See below for descriptions of some of the useful variables.
1248
1249 Defaults for the options are specified in brackets.
1250
1251 Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking ...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261
1262 Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1267
1268 By default, \`make install' will install all the files in
1269 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271 for instance \`--prefix=\$HOME'.
1272
1273 For better control, use the options below.
1274
1275 Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295 _ACEOF
1296
1297 cat <<\_ACEOF
1298
1299 Program names:
1300 --program-prefix=PREFIX prepend PREFIX to installed program names
1301 --program-suffix=SUFFIX append SUFFIX to installed program names
1302 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1303
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
1313 esac
1314 cat <<\_ACEOF
1315
1316 Optional Features:
1317 --disable-option-checking ignore unrecognized --enable/--with options
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-multilib build many library versions (default)
1321 --enable-target-optspace optimize for space
1322 --enable-malloc-debugging indicate malloc debugging requested
1323 --enable-newlib-multithread enable support for multiple threads
1324 --enable-newlib-iconv enable iconv library support
1325 --enable-newlib-elix-level supply desired elix library level (1-4)
1326 --disable-newlib-io-float disable printf/scanf family float support
1327 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1328 --disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
1329 --disable-dependency-tracking speeds up one-time build
1330 --enable-dependency-tracking do not reject slow dependency extractors
1331 --enable-maintainer-mode enable make rules and dependencies not useful
1332 (and sometimes confusing) to the casual installer
1333
1334 Some influential environment variables:
1335 CCAS assembler compiler command (defaults to CC)
1336 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1337
1338 Use these variables to override the choices made by `configure' or to help
1339 it to find libraries and programs with nonstandard names/locations.
1340
1341 Report bugs to the package provider.
1342 _ACEOF
1343 ac_status=$?
1344 fi
1345
1346 if test "$ac_init_help" = "recursive"; then
1347 # If there are subdirs, report their specific --help.
1348 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1349 test -d "$ac_dir" ||
1350 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1351 continue
1352 ac_builddir=.
1353
1354 case "$ac_dir" in
1355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 *)
1357 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1358 # A ".." for each directory in $ac_dir_suffix.
1359 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1360 case $ac_top_builddir_sub in
1361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1363 esac ;;
1364 esac
1365 ac_abs_top_builddir=$ac_pwd
1366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1367 # for backward compatibility:
1368 ac_top_builddir=$ac_top_build_prefix
1369
1370 case $srcdir in
1371 .) # We are building in place.
1372 ac_srcdir=.
1373 ac_top_srcdir=$ac_top_builddir_sub
1374 ac_abs_top_srcdir=$ac_pwd ;;
1375 [\\/]* | ?:[\\/]* ) # Absolute name.
1376 ac_srcdir=$srcdir$ac_dir_suffix;
1377 ac_top_srcdir=$srcdir
1378 ac_abs_top_srcdir=$srcdir ;;
1379 *) # Relative name.
1380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1381 ac_top_srcdir=$ac_top_build_prefix$srcdir
1382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 esac
1384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385
1386 cd "$ac_dir" || { ac_status=$?; continue; }
1387 # Check for guested configure.
1388 if test -f "$ac_srcdir/configure.gnu"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1391 elif test -f "$ac_srcdir/configure"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure" --help=recursive
1394 else
1395 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 fi || ac_status=$?
1397 cd "$ac_pwd" || { ac_status=$?; break; }
1398 done
1399 fi
1400
1401 test -n "$ac_init_help" && exit $ac_status
1402 if $ac_init_version; then
1403 cat <<\_ACEOF
1404 newlib configure 3.3.0
1405 generated by GNU Autoconf 2.68
1406
1407 Copyright (C) 2010 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1410 _ACEOF
1411 exit
1412 fi
1413
1414 ## ------------------------ ##
1415 ## Autoconf initialization. ##
1416 ## ------------------------ ##
1417
1418 # ac_fn_c_try_compile LINENO
1419 # --------------------------
1420 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1421 ac_fn_c_try_compile ()
1422 {
1423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1424 rm -f conftest.$ac_objext
1425 if { { ac_try="$ac_compile"
1426 case "(($ac_try" in
1427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1428 *) ac_try_echo=$ac_try;;
1429 esac
1430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1431 $as_echo "$ac_try_echo"; } >&5
1432 (eval "$ac_compile") 2>conftest.err
1433 ac_status=$?
1434 if test -s conftest.err; then
1435 grep -v '^ *+' conftest.err >conftest.er1
1436 cat conftest.er1 >&5
1437 mv -f conftest.er1 conftest.err
1438 fi
1439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1440 test $ac_status = 0; } && {
1441 test -z "$ac_c_werror_flag" ||
1442 test ! -s conftest.err
1443 } && test -s conftest.$ac_objext; then :
1444 ac_retval=0
1445 else
1446 $as_echo "$as_me: failed program was:" >&5
1447 sed 's/^/| /' conftest.$ac_ext >&5
1448
1449 ac_retval=1
1450 fi
1451 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1452 as_fn_set_status $ac_retval
1453
1454 } # ac_fn_c_try_compile
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1458
1459 It was created by newlib $as_me 3.3.0, which was
1460 generated by GNU Autoconf 2.68. Invocation command line was
1461
1462 $ $0 $@
1463
1464 _ACEOF
1465 exec 5>>config.log
1466 {
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1471
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480
1481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488
1489 _ASUNAME
1490
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 $as_echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1499
1500 } >&5
1501
1502 cat >&5 <<_ACEOF
1503
1504
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1508
1509 _ACEOF
1510
1511
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1522 do
1523 for ac_arg
1524 do
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
1530 *\'*)
1531 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1535 2)
1536 as_fn_append ac_configure_args1 " '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
1538 ac_must_keep_next=false # Got value, back to normal.
1539 else
1540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1548 ;;
1549 -* ) ac_must_keep_next=true ;;
1550 esac
1551 fi
1552 as_fn_append ac_configure_args " '$ac_arg'"
1553 ;;
1554 esac
1555 done
1556 done
1557 { ac_configure_args0=; unset ac_configure_args0;}
1558 { ac_configure_args1=; unset ac_configure_args1;}
1559
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log. We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1567 {
1568 echo
1569
1570 $as_echo "## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##"
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1575 (
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1582 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1587 *) { eval $ac_var=; unset $ac_var;} ;;
1588 esac ;;
1589 esac
1590 done
1591 (set) 2>&1 |
1592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1594 sed -n \
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
1598 *)
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600 ;;
1601 esac |
1602 sort
1603 )
1604 echo
1605
1606 $as_echo "## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##"
1609 echo
1610 for ac_var in $ac_subst_vars
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 $as_echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619
1620 if test -n "$ac_subst_files"; then
1621 $as_echo "## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##"
1624 echo
1625 for ac_var in $ac_subst_files
1626 do
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 $as_echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1634 fi
1635
1636 if test -s confdefs.h; then
1637 $as_echo "## ----------- ##
1638 ## confdefs.h. ##
1639 ## ----------- ##"
1640 echo
1641 cat confdefs.h
1642 echo
1643 fi
1644 test "$ac_signal" != 0 &&
1645 $as_echo "$as_me: caught signal $ac_signal"
1646 $as_echo "$as_me: exit $exit_status"
1647 } >&5
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 exit $exit_status
1651 ' 0
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1654 done
1655 ac_signal=0
1656
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1659
1660 $as_echo "/* confdefs.h */" > confdefs.h
1661
1662 # Predefined preprocessor variables.
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 _ACEOF
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1670 _ACEOF
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 _ACEOF
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_STRING "$PACKAGE_STRING"
1678 _ACEOF
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 _ACEOF
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_URL "$PACKAGE_URL"
1686 _ACEOF
1687
1688
1689 # Let the site file select an alternate cache file if it wants to.
1690 # Prefer an explicitly selected file to automatically selected ones.
1691 ac_site_file1=NONE
1692 ac_site_file2=NONE
1693 if test -n "$CONFIG_SITE"; then
1694 # We do not want a PATH search for config.site.
1695 case $CONFIG_SITE in #((
1696 -*) ac_site_file1=./$CONFIG_SITE;;
1697 */*) ac_site_file1=$CONFIG_SITE;;
1698 *) ac_site_file1=./$CONFIG_SITE;;
1699 esac
1700 elif test "x$prefix" != xNONE; then
1701 ac_site_file1=$prefix/share/config.site
1702 ac_site_file2=$prefix/etc/config.site
1703 else
1704 ac_site_file1=$ac_default_prefix/share/config.site
1705 ac_site_file2=$ac_default_prefix/etc/config.site
1706 fi
1707 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1708 do
1709 test "x$ac_site_file" = xNONE && continue
1710 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1712 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1714 . "$ac_site_file" \
1715 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1717 as_fn_error $? "failed to load site script $ac_site_file
1718 See \`config.log' for more details" "$LINENO" 5; }
1719 fi
1720 done
1721
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special files
1724 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1725 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1727 $as_echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1732 fi
1733 else
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1735 $as_echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1737 fi
1738
1739 # Check that the precious variables saved in the cache have kept the same
1740 # value.
1741 ac_cache_corrupted=false
1742 for ac_var in $ac_precious_vars; do
1743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1744 eval ac_new_set=\$ac_env_${ac_var}_set
1745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1746 eval ac_new_val=\$ac_env_${ac_var}_value
1747 case $ac_old_set,$ac_new_set in
1748 set,)
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1750 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,set)
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1754 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,);;
1757 *)
1758 if test "x$ac_old_val" != "x$ac_new_val"; then
1759 # differences in whitespace do not lead to failure.
1760 ac_old_val_w=`echo x $ac_old_val`
1761 ac_new_val_w=`echo x $ac_new_val`
1762 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1764 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 ac_cache_corrupted=:
1766 else
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1768 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1769 eval $ac_var=\$ac_old_val
1770 fi
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1772 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1774 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1786 esac
1787 fi
1788 done
1789 if $ac_cache_corrupted; then
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1793 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1794 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1795 fi
1796 ## -------------------- ##
1797 ## Main body of script. ##
1798 ## -------------------- ##
1799
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807
1808
1809 ac_aux_dir=
1810 for ac_dir in ../../../.. "$srcdir"/../../../..; do
1811 if test -f "$ac_dir/install-sh"; then
1812 ac_aux_dir=$ac_dir
1813 ac_install_sh="$ac_aux_dir/install-sh -c"
1814 break
1815 elif test -f "$ac_dir/install.sh"; then
1816 ac_aux_dir=$ac_dir
1817 ac_install_sh="$ac_aux_dir/install.sh -c"
1818 break
1819 elif test -f "$ac_dir/shtool"; then
1820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/shtool install -c"
1822 break
1823 fi
1824 done
1825 if test -z "$ac_aux_dir"; then
1826 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../../.. \"$srcdir\"/../../../.." "$LINENO" 5
1827 fi
1828
1829 # These three variables are undocumented and unsupported,
1830 # and are intended to be withdrawn in a future Autoconf release.
1831 # They can cause serious problems if a builder's source tree is in a directory
1832 # whose full name contains unusual characters.
1833 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1834 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1835 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1836
1837
1838
1839
1840 # Make sure we can run config.sub.
1841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1842 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1843
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1845 $as_echo_n "checking build system type... " >&6; }
1846 if ${ac_cv_build+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 ac_build_alias=$build_alias
1850 test "x$ac_build_alias" = x &&
1851 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1852 test "x$ac_build_alias" = x &&
1853 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1854 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1855 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1856
1857 fi
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1859 $as_echo "$ac_cv_build" >&6; }
1860 case $ac_cv_build in
1861 *-*-*) ;;
1862 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1863 esac
1864 build=$ac_cv_build
1865 ac_save_IFS=$IFS; IFS='-'
1866 set x $ac_cv_build
1867 shift
1868 build_cpu=$1
1869 build_vendor=$2
1870 shift; shift
1871 # Remember, the first character of IFS is used to create $*,
1872 # except with old shells:
1873 build_os=$*
1874 IFS=$ac_save_IFS
1875 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1876
1877
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1879 $as_echo_n "checking host system type... " >&6; }
1880 if ${ac_cv_host+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 else
1883 if test "x$host_alias" = x; then
1884 ac_cv_host=$ac_cv_build
1885 else
1886 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1888 fi
1889
1890 fi
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1892 $as_echo "$ac_cv_host" >&6; }
1893 case $ac_cv_host in
1894 *-*-*) ;;
1895 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1896 esac
1897 host=$ac_cv_host
1898 ac_save_IFS=$IFS; IFS='-'
1899 set x $ac_cv_host
1900 shift
1901 host_cpu=$1
1902 host_vendor=$2
1903 shift; shift
1904 # Remember, the first character of IFS is used to create $*,
1905 # except with old shells:
1906 host_os=$*
1907 IFS=$ac_save_IFS
1908 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1909
1910
1911 am__api_version='1.11'
1912
1913 # Find a good install program. We prefer a C program (faster),
1914 # so one script is as good as another. But avoid the broken or
1915 # incompatible versions:
1916 # SysV /etc/install, /usr/sbin/install
1917 # SunOS /usr/etc/install
1918 # IRIX /sbin/install
1919 # AIX /bin/install
1920 # AmigaOS /C/install, which installs bootblocks on floppy discs
1921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1924 # OS/2's system install, which has a completely different semantic
1925 # ./install, which can be erroneously created by make from ./install.sh.
1926 # Reject install programs that cannot install multiple files.
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1928 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1929 if test -z "$INSTALL"; then
1930 if ${ac_cv_path_install+:} false; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 # Account for people who put trailing slashes in PATH elements.
1939 case $as_dir/ in #((
1940 ./ | .// | /[cC]/* | \
1941 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1942 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1943 /usr/ucb/* ) ;;
1944 *)
1945 # OSF1 and SCO ODT 3.0 have their own names for install.
1946 # Don't use installbsd from OSF since it installs stuff as root
1947 # by default.
1948 for ac_prog in ginstall scoinst install; do
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1951 if test $ac_prog = install &&
1952 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1953 # AIX install. It has an incompatible calling convention.
1954 :
1955 elif test $ac_prog = install &&
1956 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1957 # program-specific install script used by HP pwplus--don't use.
1958 :
1959 else
1960 rm -rf conftest.one conftest.two conftest.dir
1961 echo one > conftest.one
1962 echo two > conftest.two
1963 mkdir conftest.dir
1964 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1965 test -s conftest.one && test -s conftest.two &&
1966 test -s conftest.dir/conftest.one &&
1967 test -s conftest.dir/conftest.two
1968 then
1969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1970 break 3
1971 fi
1972 fi
1973 fi
1974 done
1975 done
1976 ;;
1977 esac
1978
1979 done
1980 IFS=$as_save_IFS
1981
1982 rm -rf conftest.one conftest.two conftest.dir
1983
1984 fi
1985 if test "${ac_cv_path_install+set}" = set; then
1986 INSTALL=$ac_cv_path_install
1987 else
1988 # As a last resort, use the slow shell script. Don't cache a
1989 # value for INSTALL within a source directory, because that will
1990 # break other packages using the cache if that directory is
1991 # removed, or if the value is a relative name.
1992 INSTALL=$ac_install_sh
1993 fi
1994 fi
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1996 $as_echo "$INSTALL" >&6; }
1997
1998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1999 # It thinks the first close brace ends the variable substitution.
2000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2001
2002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2003
2004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2005
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2007 $as_echo_n "checking whether build environment is sane... " >&6; }
2008 # Just in case
2009 sleep 1
2010 echo timestamp > conftest.file
2011 # Reject unsafe characters in $srcdir or the absolute working directory
2012 # name. Accept space and tab only in the latter.
2013 am_lf='
2014 '
2015 case `pwd` in
2016 *[\\\"\#\$\&\'\`$am_lf]*)
2017 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2018 esac
2019 case $srcdir in
2020 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2021 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2022 esac
2023
2024 # Do `set' in a subshell so we don't clobber the current shell's
2025 # arguments. Must try -L first in case configure is actually a
2026 # symlink; some systems play weird games with the mod time of symlinks
2027 # (eg FreeBSD returns the mod time of the symlink's containing
2028 # directory).
2029 if (
2030 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2031 if test "$*" = "X"; then
2032 # -L didn't work.
2033 set X `ls -t "$srcdir/configure" conftest.file`
2034 fi
2035 rm -f conftest.file
2036 if test "$*" != "X $srcdir/configure conftest.file" \
2037 && test "$*" != "X conftest.file $srcdir/configure"; then
2038
2039 # If neither matched, then we have a broken ls. This can happen
2040 # if, for instance, CONFIG_SHELL is bash and it inherits a
2041 # broken ls alias from the environment. This has actually
2042 # happened. Such a system could not be considered "sane".
2043 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2044 alias in your environment" "$LINENO" 5
2045 fi
2046
2047 test "$2" = conftest.file
2048 )
2049 then
2050 # Ok.
2051 :
2052 else
2053 as_fn_error $? "newly created file is older than distributed files!
2054 Check your system clock" "$LINENO" 5
2055 fi
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2057 $as_echo "yes" >&6; }
2058 test "$program_prefix" != NONE &&
2059 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2060 # Use a double $ so make ignores it.
2061 test "$program_suffix" != NONE &&
2062 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2063 # Double any \ or $.
2064 # By default was `s,x,x', remove it if useless.
2065 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2066 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2067
2068 # expand $ac_aux_dir to an absolute path
2069 am_aux_dir=`cd $ac_aux_dir && pwd`
2070
2071 if test x"${MISSING+set}" != xset; then
2072 case $am_aux_dir in
2073 *\ * | *\ *)
2074 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2075 *)
2076 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2077 esac
2078 fi
2079 # Use eval to expand $SHELL
2080 if eval "$MISSING --run true"; then
2081 am_missing_run="$MISSING --run "
2082 else
2083 am_missing_run=
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2085 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2086 fi
2087
2088 if test x"${install_sh}" != xset; then
2089 case $am_aux_dir in
2090 *\ * | *\ *)
2091 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2092 *)
2093 install_sh="\${SHELL} $am_aux_dir/install-sh"
2094 esac
2095 fi
2096
2097 # Installed binaries are usually stripped using `strip' when the user
2098 # run `make install-strip'. However `strip' might not be the right
2099 # tool to use in cross-compilation environments, therefore Automake
2100 # will honor the `STRIP' environment variable to overrule this program.
2101 if test "$cross_compiling" != no; then
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}strip; ac_word=$2
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2106 $as_echo_n "checking for $ac_word... " >&6; }
2107 if ${ac_cv_prog_STRIP+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 if test -n "$STRIP"; then
2111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2115 do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2123 fi
2124 done
2125 done
2126 IFS=$as_save_IFS
2127
2128 fi
2129 fi
2130 STRIP=$ac_cv_prog_STRIP
2131 if test -n "$STRIP"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2133 $as_echo "$STRIP" >&6; }
2134 else
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2136 $as_echo "no" >&6; }
2137 fi
2138
2139
2140 fi
2141 if test -z "$ac_cv_prog_STRIP"; then
2142 ac_ct_STRIP=$STRIP
2143 # Extract the first word of "strip", so it can be a program name with args.
2144 set dummy strip; ac_word=$2
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2146 $as_echo_n "checking for $ac_word... " >&6; }
2147 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 if test -n "$ac_ct_STRIP"; then
2151 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160 ac_cv_prog_ac_ct_STRIP="strip"
2161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 break 2
2163 fi
2164 done
2165 done
2166 IFS=$as_save_IFS
2167
2168 fi
2169 fi
2170 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2171 if test -n "$ac_ct_STRIP"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2173 $as_echo "$ac_ct_STRIP" >&6; }
2174 else
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2176 $as_echo "no" >&6; }
2177 fi
2178
2179 if test "x$ac_ct_STRIP" = x; then
2180 STRIP=":"
2181 else
2182 case $cross_compiling:$ac_tool_warned in
2183 yes:)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2186 ac_tool_warned=yes ;;
2187 esac
2188 STRIP=$ac_ct_STRIP
2189 fi
2190 else
2191 STRIP="$ac_cv_prog_STRIP"
2192 fi
2193
2194 fi
2195 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2196
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2198 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2199 if test -z "$MKDIR_P"; then
2200 if ${ac_cv_path_mkdir+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2205 do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_prog in mkdir gmkdir; do
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2211 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2212 'mkdir (GNU coreutils) '* | \
2213 'mkdir (coreutils) '* | \
2214 'mkdir (fileutils) '4.1*)
2215 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2216 break 3;;
2217 esac
2218 done
2219 done
2220 done
2221 IFS=$as_save_IFS
2222
2223 fi
2224
2225 test -d ./--version && rmdir ./--version
2226 if test "${ac_cv_path_mkdir+set}" = set; then
2227 MKDIR_P="$ac_cv_path_mkdir -p"
2228 else
2229 # As a last resort, use the slow shell script. Don't cache a
2230 # value for MKDIR_P within a source directory, because that will
2231 # break other packages using the cache if that directory is
2232 # removed, or if the value is a relative name.
2233 MKDIR_P="$ac_install_sh -d"
2234 fi
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2237 $as_echo "$MKDIR_P" >&6; }
2238
2239 mkdir_p="$MKDIR_P"
2240 case $mkdir_p in
2241 [\\/$]* | ?:[\\/]*) ;;
2242 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2243 esac
2244
2245 for ac_prog in gawk mawk nawk awk
2246 do
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2250 $as_echo_n "checking for $ac_word... " >&6; }
2251 if ${ac_cv_prog_AWK+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 if test -n "$AWK"; then
2255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 ac_cv_prog_AWK="$ac_prog"
2265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2267 fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272 fi
2273 fi
2274 AWK=$ac_cv_prog_AWK
2275 if test -n "$AWK"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2277 $as_echo "$AWK" >&6; }
2278 else
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2280 $as_echo "no" >&6; }
2281 fi
2282
2283
2284 test -n "$AWK" && break
2285 done
2286
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2288 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2289 set x ${MAKE-make}
2290 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2291 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2292 $as_echo_n "(cached) " >&6
2293 else
2294 cat >conftest.make <<\_ACEOF
2295 SHELL = /bin/sh
2296 all:
2297 @echo '@@@%%%=$(MAKE)=@@@%%%'
2298 _ACEOF
2299 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2300 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2301 *@@@%%%=?*=@@@%%%*)
2302 eval ac_cv_prog_make_${ac_make}_set=yes;;
2303 *)
2304 eval ac_cv_prog_make_${ac_make}_set=no;;
2305 esac
2306 rm -f conftest.make
2307 fi
2308 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2310 $as_echo "yes" >&6; }
2311 SET_MAKE=
2312 else
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2314 $as_echo "no" >&6; }
2315 SET_MAKE="MAKE=${MAKE-make}"
2316 fi
2317
2318 rm -rf .tst 2>/dev/null
2319 mkdir .tst 2>/dev/null
2320 if test -d .tst; then
2321 am__leading_dot=.
2322 else
2323 am__leading_dot=_
2324 fi
2325 rmdir .tst 2>/dev/null
2326
2327 DEPDIR="${am__leading_dot}deps"
2328
2329 ac_config_commands="$ac_config_commands depfiles"
2330
2331
2332 am_make=${MAKE-make}
2333 cat > confinc << 'END'
2334 am__doit:
2335 @echo this is the am__doit target
2336 .PHONY: am__doit
2337 END
2338 # If we don't find an include directive, just comment out the code.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2340 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2341 am__include="#"
2342 am__quote=
2343 _am_result=none
2344 # First try GNU make style include.
2345 echo "include confinc" > confmf
2346 # Ignore all kinds of additional output from `make'.
2347 case `$am_make -s -f confmf 2> /dev/null` in #(
2348 *the\ am__doit\ target*)
2349 am__include=include
2350 am__quote=
2351 _am_result=GNU
2352 ;;
2353 esac
2354 # Now try BSD make style include.
2355 if test "$am__include" = "#"; then
2356 echo '.include "confinc"' > confmf
2357 case `$am_make -s -f confmf 2> /dev/null` in #(
2358 *the\ am__doit\ target*)
2359 am__include=.include
2360 am__quote="\""
2361 _am_result=BSD
2362 ;;
2363 esac
2364 fi
2365
2366
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2368 $as_echo "$_am_result" >&6; }
2369 rm -f confinc confmf
2370
2371 # Check whether --enable-dependency-tracking was given.
2372 if test "${enable_dependency_tracking+set}" = set; then :
2373 enableval=$enable_dependency_tracking;
2374 fi
2375
2376 if test "x$enable_dependency_tracking" != xno; then
2377 am_depcomp="$ac_aux_dir/depcomp"
2378 AMDEPBACKSLASH='\'
2379 am__nodep='_no'
2380 fi
2381 if test "x$enable_dependency_tracking" != xno; then
2382 AMDEP_TRUE=
2383 AMDEP_FALSE='#'
2384 else
2385 AMDEP_TRUE='#'
2386 AMDEP_FALSE=
2387 fi
2388
2389
2390
2391 # Check whether --enable-multilib was given.
2392 if test "${enable_multilib+set}" = set; then :
2393 enableval=$enable_multilib; case "${enableval}" in
2394 yes) multilib=yes ;;
2395 no) multilib=no ;;
2396 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2397 esac
2398 else
2399 multilib=yes
2400 fi
2401
2402 # Check whether --enable-target-optspace was given.
2403 if test "${enable_target_optspace+set}" = set; then :
2404 enableval=$enable_target_optspace; case "${enableval}" in
2405 yes) target_optspace=yes ;;
2406 no) target_optspace=no ;;
2407 *) as_fn_error $? "bad value ${enableval} for target-optspace option" "$LINENO" 5 ;;
2408 esac
2409 else
2410 target_optspace=
2411 fi
2412
2413 # Check whether --enable-malloc-debugging was given.
2414 if test "${enable_malloc_debugging+set}" = set; then :
2415 enableval=$enable_malloc_debugging; case "${enableval}" in
2416 yes) malloc_debugging=yes ;;
2417 no) malloc_debugging=no ;;
2418 *) as_fn_error $? "bad value ${enableval} for malloc-debugging option" "$LINENO" 5 ;;
2419 esac
2420 else
2421 malloc_debugging=
2422 fi
2423
2424 # Check whether --enable-newlib-multithread was given.
2425 if test "${enable_newlib_multithread+set}" = set; then :
2426 enableval=$enable_newlib_multithread; case "${enableval}" in
2427 yes) newlib_multithread=yes ;;
2428 no) newlib_multithread=no ;;
2429 *) as_fn_error $? "bad value ${enableval} for newlib-multithread option" "$LINENO" 5 ;;
2430 esac
2431 else
2432 newlib_multithread=yes
2433 fi
2434
2435 # Check whether --enable-newlib-iconv was given.
2436 if test "${enable_newlib_iconv+set}" = set; then :
2437 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2438 case "${enableval}" in
2439 yes) newlib_iconv=yes ;;
2440 no) newlib_iconv=no ;;
2441 *) as_fn_error $? "bad value ${enableval} for newlib-iconv option" "$LINENO" 5 ;;
2442 esac
2443 fi
2444 else
2445 newlib_iconv=${newlib_iconv}
2446 fi
2447
2448 # Check whether --enable-newlib-elix-level was given.
2449 if test "${enable_newlib_elix_level+set}" = set; then :
2450 enableval=$enable_newlib_elix_level; case "${enableval}" in
2451 0) newlib_elix_level=0 ;;
2452 1) newlib_elix_level=1 ;;
2453 2) newlib_elix_level=2 ;;
2454 3) newlib_elix_level=3 ;;
2455 4) newlib_elix_level=4 ;;
2456 *) as_fn_error $? "bad value ${enableval} for newlib-elix-level option" "$LINENO" 5 ;;
2457 esac
2458 else
2459 newlib_elix_level=0
2460 fi
2461
2462 # Check whether --enable-newlib-io-float was given.
2463 if test "${enable_newlib_io_float+set}" = set; then :
2464 enableval=$enable_newlib_io_float; case "${enableval}" in
2465 yes) newlib_io_float=yes ;;
2466 no) newlib_io_float=no ;;
2467 *) as_fn_error $? "bad value ${enableval} for newlib-io-float option" "$LINENO" 5 ;;
2468 esac
2469 else
2470 newlib_io_float=yes
2471 fi
2472
2473 # Check whether --enable-newlib-supplied-syscalls was given.
2474 if test "${enable_newlib_supplied_syscalls+set}" = set; then :
2475 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2476 yes) newlib_may_supply_syscalls=yes ;;
2477 no) newlib_may_supply_syscalls=no ;;
2478 *) as_fn_error $? "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;;
2479 esac
2480 else
2481 newlib_may_supply_syscalls=yes
2482 fi
2483
2484 if test x${newlib_may_supply_syscalls} = xyes; then
2485 MAY_SUPPLY_SYSCALLS_TRUE=
2486 MAY_SUPPLY_SYSCALLS_FALSE='#'
2487 else
2488 MAY_SUPPLY_SYSCALLS_TRUE='#'
2489 MAY_SUPPLY_SYSCALLS_FALSE=
2490 fi
2491
2492
2493 # Check whether --enable-newlib-fno-builtin was given.
2494 if test "${enable_newlib_fno_builtin+set}" = set; then :
2495 enableval=$enable_newlib_fno_builtin; case "${enableval}" in
2496 yes) newlib_fno_builtin=yes ;;
2497 no) newlib_fno_builtin=no ;;
2498 *) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
2499 esac
2500 else
2501 newlib_fno_builtin=
2502 fi
2503
2504
2505
2506 test -z "${with_target_subdir}" && with_target_subdir=.
2507
2508 if test "${srcdir}" = "."; then
2509 if test "${with_target_subdir}" != "."; then
2510 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2511 else
2512 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2513 fi
2514 else
2515 newlib_basedir="${srcdir}/../../.."
2516 fi
2517
2518
2519
2520
2521 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2522 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2523 # is not polluted with repeated "-I."
2524 am__isrc=' -I$(srcdir)'
2525 # test to see if srcdir already configured
2526 if test -f $srcdir/config.status; then
2527 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2528 fi
2529 fi
2530
2531 # test whether we have cygpath
2532 if test -z "$CYGPATH_W"; then
2533 if (cygpath --version) >/dev/null 2>/dev/null; then
2534 CYGPATH_W='cygpath -w'
2535 else
2536 CYGPATH_W=echo
2537 fi
2538 fi
2539
2540
2541 # Define the identity of the package.
2542 PACKAGE='newlib'
2543 VERSION='3.3.0'
2544
2545
2546 # Some tools Automake needs.
2547
2548 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2549
2550
2551 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2552
2553
2554 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2555
2556
2557 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2558
2559
2560 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2561
2562 # We need awk for the "check" target. The system "awk" is bad on
2563 # some platforms.
2564 # Always define AMTAR for backward compatibility. Yes, it's still used
2565 # in the wild :-( We should find a proper way to deprecate it ...
2566 AMTAR='$${TAR-tar}'
2567
2568 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2569
2570
2571
2572
2573
2574
2575 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
2576 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
2577 # are probably using a cross compiler, which will not be able to fully
2578 # link an executable. This should really be fixed in autoconf
2579 # itself.
2580
2581
2582
2583
2584
2585
2586
2587 # Extract the first word of "gcc", so it can be a program name with args.
2588 set dummy gcc; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_CC+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="gcc"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2617 $as_echo "$CC" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623
2624
2625 depcc="$CC" am_compiler_list=
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2628 $as_echo_n "checking dependency style of $depcc... " >&6; }
2629 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2633 # We make a subdir and do the tests there. Otherwise we can end up
2634 # making bogus files that we don't know about and never remove. For
2635 # instance it was reported that on HP-UX the gcc test will end up
2636 # making a dummy file named `D' -- because `-MD' means `put the output
2637 # in D'.
2638 rm -rf conftest.dir
2639 mkdir conftest.dir
2640 # Copy depcomp to subdir because otherwise we won't find it if we're
2641 # using a relative directory.
2642 cp "$am_depcomp" conftest.dir
2643 cd conftest.dir
2644 # We will build objects and dependencies in a subdirectory because
2645 # it helps to detect inapplicable dependency modes. For instance
2646 # both Tru64's cc and ICC support -MD to output dependencies as a
2647 # side effect of compilation, but ICC will put the dependencies in
2648 # the current directory while Tru64 will put them in the object
2649 # directory.
2650 mkdir sub
2651
2652 am_cv_CC_dependencies_compiler_type=none
2653 if test "$am_compiler_list" = ""; then
2654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2655 fi
2656 am__universal=false
2657 case " $depcc " in #(
2658 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2659 esac
2660
2661 for depmode in $am_compiler_list; do
2662 # Setup a source with many dependencies, because some compilers
2663 # like to wrap large dependency lists on column 80 (with \), and
2664 # we should not choose a depcomp mode which is confused by this.
2665 #
2666 # We need to recreate these files for each test, as the compiler may
2667 # overwrite some of them when testing with obscure command lines.
2668 # This happens at least with the AIX C compiler.
2669 : > sub/conftest.c
2670 for i in 1 2 3 4 5 6; do
2671 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2673 # Solaris 8's {/usr,}/bin/sh.
2674 touch sub/conftst$i.h
2675 done
2676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2677
2678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2679 # mode. It turns out that the SunPro C++ compiler does not properly
2680 # handle `-M -o', and we need to detect this. Also, some Intel
2681 # versions had trouble with output in subdirs
2682 am__obj=sub/conftest.${OBJEXT-o}
2683 am__minus_obj="-o $am__obj"
2684 case $depmode in
2685 gcc)
2686 # This depmode causes a compiler race in universal mode.
2687 test "$am__universal" = false || continue
2688 ;;
2689 nosideeffect)
2690 # after this tag, mechanisms are not by side-effect, so they'll
2691 # only be used when explicitly requested
2692 if test "x$enable_dependency_tracking" = xyes; then
2693 continue
2694 else
2695 break
2696 fi
2697 ;;
2698 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
2699 # This compiler won't grok `-c -o', but also, the minuso test has
2700 # not run yet. These depmodes are late enough in the game, and
2701 # so weak that their functioning should not be impacted.
2702 am__obj=conftest.${OBJEXT-o}
2703 am__minus_obj=
2704 ;;
2705 none) break ;;
2706 esac
2707 if depmode=$depmode \
2708 source=sub/conftest.c object=$am__obj \
2709 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2710 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2711 >/dev/null 2>conftest.err &&
2712 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2713 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2714 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2715 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2716 # icc doesn't choke on unknown options, it will just issue warnings
2717 # or remarks (even with -Werror). So we grep stderr for any message
2718 # that says an option was ignored or not supported.
2719 # When given -MP, icc 7.0 and 7.1 complain thusly:
2720 # icc: Command line warning: ignoring option '-M'; no argument required
2721 # The diagnosis changed in icc 8.0:
2722 # icc: Command line remark: option '-MP' not supported
2723 if (grep 'ignoring option' conftest.err ||
2724 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2725 am_cv_CC_dependencies_compiler_type=$depmode
2726 break
2727 fi
2728 fi
2729 done
2730
2731 cd ..
2732 rm -rf conftest.dir
2733 else
2734 am_cv_CC_dependencies_compiler_type=none
2735 fi
2736
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2739 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2740 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2741
2742 if
2743 test "x$enable_dependency_tracking" != xno \
2744 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2745 am__fastdepCC_TRUE=
2746 am__fastdepCC_FALSE='#'
2747 else
2748 am__fastdepCC_TRUE='#'
2749 am__fastdepCC_FALSE=
2750 fi
2751
2752
2753 if test -z "$CC"; then
2754 # Extract the first word of "cc", so it can be a program name with args.
2755 set dummy cc; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_CC+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 ac_prog_rejected=no
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2773 ac_prog_rejected=yes
2774 continue
2775 fi
2776 ac_cv_prog_CC="cc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783
2784 if test $ac_prog_rejected = yes; then
2785 # We found a bogon in the path, so make sure we never use it.
2786 set dummy $ac_cv_prog_CC
2787 shift
2788 if test $# != 0; then
2789 # We chose a different compiler from the bogus one.
2790 # However, it has the same basename, so the bogon will be chosen
2791 # first if we set CC to just the basename; use the full file name.
2792 shift
2793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2794 fi
2795 fi
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
2809 fi
2810
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
2812 $as_echo_n "checking whether we are using GNU C... " >&6; }
2813 if ${ac_cv_c_compiler_gnu+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 cat > conftest.c <<EOF
2817 #ifdef __GNUC__
2818 yes;
2819 #endif
2820 EOF
2821 if { ac_try='${CC-cc} -E conftest.c'
2822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2826 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
2827 ac_cv_c_compiler_gnu=yes
2828 else
2829 ac_cv_c_compiler_gnu=no
2830 fi
2831 fi
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2833 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2834
2835 if test $ac_cv_c_compiler_gnu = yes; then
2836 GCC=yes
2837 ac_test_CFLAGS="${CFLAGS+set}"
2838 ac_save_CFLAGS="$CFLAGS"
2839 ac_test_CFLAGS=${CFLAGS+set}
2840 ac_save_CFLAGS=$CFLAGS
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2842 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2843 if ${ac_cv_prog_cc_g+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 ac_save_c_werror_flag=$ac_c_werror_flag
2847 ac_c_werror_flag=yes
2848 ac_cv_prog_cc_g=no
2849 CFLAGS="-g"
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2852
2853 int
2854 main ()
2855 {
2856
2857 ;
2858 return 0;
2859 }
2860 _ACEOF
2861 if ac_fn_c_try_compile "$LINENO"; then :
2862 ac_cv_prog_cc_g=yes
2863 else
2864 CFLAGS=""
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2867
2868 int
2869 main ()
2870 {
2871
2872 ;
2873 return 0;
2874 }
2875 _ACEOF
2876 if ac_fn_c_try_compile "$LINENO"; then :
2877
2878 else
2879 ac_c_werror_flag=$ac_save_c_werror_flag
2880 CFLAGS="-g"
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2883
2884 int
2885 main ()
2886 {
2887
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 if ac_fn_c_try_compile "$LINENO"; then :
2893 ac_cv_prog_cc_g=yes
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 fi
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 fi
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 ac_c_werror_flag=$ac_save_c_werror_flag
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2903 $as_echo "$ac_cv_prog_cc_g" >&6; }
2904 if test "$ac_test_CFLAGS" = set; then
2905 CFLAGS=$ac_save_CFLAGS
2906 elif test $ac_cv_prog_cc_g = yes; then
2907 if test "$GCC" = yes; then
2908 CFLAGS="-g -O2"
2909 else
2910 CFLAGS="-g"
2911 fi
2912 else
2913 if test "$GCC" = yes; then
2914 CFLAGS="-O2"
2915 else
2916 CFLAGS=
2917 fi
2918 fi
2919 if test "$ac_test_CFLAGS" = set; then
2920 CFLAGS="$ac_save_CFLAGS"
2921 elif test $ac_cv_prog_cc_g = yes; then
2922 CFLAGS="-g -O2"
2923 else
2924 CFLAGS="-O2"
2925 fi
2926 else
2927 GCC=
2928 test "${CFLAGS+set}" = set || CFLAGS="-g"
2929 fi
2930
2931
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}as; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AS+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$AS"; then
2941 ac_cv_prog_AS="$AS" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_AS="${ac_tool_prefix}as"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 AS=$ac_cv_prog_AS
2961 if test -n "$AS"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2963 $as_echo "$AS" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970 fi
2971 if test -z "$ac_cv_prog_AS"; then
2972 ac_ct_AS=$AS
2973 # Extract the first word of "as", so it can be a program name with args.
2974 set dummy as; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$ac_ct_AS"; then
2981 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_ac_ct_AS="as"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3001 if test -n "$ac_ct_AS"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3003 $as_echo "$ac_ct_AS" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009 if test "x$ac_ct_AS" = x; then
3010 AS=""
3011 else
3012 case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018 AS=$ac_ct_AS
3019 fi
3020 else
3021 AS="$ac_cv_prog_AS"
3022 fi
3023
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}ar; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_AR+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$AR"; then
3033 ac_cv_prog_AR="$AR" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_AR="${ac_tool_prefix}ar"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 AR=$ac_cv_prog_AR
3053 if test -n "$AR"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3055 $as_echo "$AR" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$ac_cv_prog_AR"; then
3064 ac_ct_AR=$AR
3065 # Extract the first word of "ar", so it can be a program name with args.
3066 set dummy ar; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$ac_ct_AR"; then
3073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_AR="ar"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3093 if test -n "$ac_ct_AR"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3095 $as_echo "$ac_ct_AR" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101 if test "x$ac_ct_AR" = x; then
3102 AR=""
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3109 esac
3110 AR=$ac_ct_AR
3111 fi
3112 else
3113 AR="$ac_cv_prog_AR"
3114 fi
3115
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_RANLIB+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$RANLIB"; then
3125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 RANLIB=$ac_cv_prog_RANLIB
3145 if test -n "$RANLIB"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3147 $as_echo "$RANLIB" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 fi
3155 if test -z "$ac_cv_prog_RANLIB"; then
3156 ac_ct_RANLIB=$RANLIB
3157 # Extract the first word of "ranlib", so it can be a program name with args.
3158 set dummy ranlib; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$ac_ct_RANLIB"; then
3165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_ac_ct_RANLIB="ranlib"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3185 if test -n "$ac_ct_RANLIB"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3187 $as_echo "$ac_ct_RANLIB" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193 if test "x$ac_ct_RANLIB" = x; then
3194 RANLIB=":"
3195 else
3196 case $cross_compiling:$ac_tool_warned in
3197 yes:)
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200 ac_tool_warned=yes ;;
3201 esac
3202 RANLIB=$ac_ct_RANLIB
3203 fi
3204 else
3205 RANLIB="$ac_cv_prog_RANLIB"
3206 fi
3207
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_READELF+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$READELF"; then
3217 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3226 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 READELF=$ac_cv_prog_READELF
3237 if test -n "$READELF"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3239 $as_echo "$READELF" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 if test -z "$ac_cv_prog_READELF"; then
3248 ac_ct_READELF=$READELF
3249 # Extract the first word of "readelf", so it can be a program name with args.
3250 set dummy readelf; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$ac_ct_READELF"; then
3257 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_ac_ct_READELF="readelf"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3277 if test -n "$ac_ct_READELF"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3279 $as_echo "$ac_ct_READELF" >&6; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285 if test "x$ac_ct_READELF" = x; then
3286 READELF=":"
3287 else
3288 case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3293 esac
3294 READELF=$ac_ct_READELF
3295 fi
3296 else
3297 READELF="$ac_cv_prog_READELF"
3298 fi
3299
3300
3301
3302
3303 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3304 ac_given_INSTALL=$INSTALL
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3308 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3309 # Check whether --enable-maintainer-mode was given.
3310 if test "${enable_maintainer_mode+set}" = set; then :
3311 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3312 else
3313 USE_MAINTAINER_MODE=no
3314 fi
3315
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3317 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3318 if test $USE_MAINTAINER_MODE = yes; then
3319 MAINTAINER_MODE_TRUE=
3320 MAINTAINER_MODE_FALSE='#'
3321 else
3322 MAINTAINER_MODE_TRUE='#'
3323 MAINTAINER_MODE_FALSE=
3324 fi
3325
3326 MAINT=$MAINTAINER_MODE_TRUE
3327
3328
3329 # By default we simply use the C compiler to build assembly code.
3330
3331 test "${CCAS+set}" = set || CCAS=$CC
3332 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3333
3334
3335
3336
3337 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3338 # at least currently, we never actually build a program, so we never
3339 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3340 # fails, because we are probably configuring with a cross compiler
3341 # which can't create executables. So we include AC_EXEEXT to keep
3342 # automake happy, but we don't execute it, since we don't care about
3343 # the result.
3344 if false; then
3345
3346 dummy_var=1
3347 fi
3348
3349 . ${newlib_basedir}/configure.host
3350
3351 NEWLIB_CFLAGS=${newlib_cflags}
3352
3353
3354 NO_INCLUDE_LIST=${noinclude}
3355
3356
3357 LDFLAGS=${ldflags}
3358
3359
3360 if test x${newlib_elix_level} = x0; then
3361 ELIX_LEVEL_0_TRUE=
3362 ELIX_LEVEL_0_FALSE='#'
3363 else
3364 ELIX_LEVEL_0_TRUE='#'
3365 ELIX_LEVEL_0_FALSE=
3366 fi
3367
3368 if test x${newlib_elix_level} = x1; then
3369 ELIX_LEVEL_1_TRUE=
3370 ELIX_LEVEL_1_FALSE='#'
3371 else
3372 ELIX_LEVEL_1_TRUE='#'
3373 ELIX_LEVEL_1_FALSE=
3374 fi
3375
3376 if test x${newlib_elix_level} = x2; then
3377 ELIX_LEVEL_2_TRUE=
3378 ELIX_LEVEL_2_FALSE='#'
3379 else
3380 ELIX_LEVEL_2_TRUE='#'
3381 ELIX_LEVEL_2_FALSE=
3382 fi
3383
3384 if test x${newlib_elix_level} = x3; then
3385 ELIX_LEVEL_3_TRUE=
3386 ELIX_LEVEL_3_FALSE='#'
3387 else
3388 ELIX_LEVEL_3_TRUE='#'
3389 ELIX_LEVEL_3_FALSE=
3390 fi
3391
3392 if test x${newlib_elix_level} = x4; then
3393 ELIX_LEVEL_4_TRUE=
3394 ELIX_LEVEL_4_FALSE='#'
3395 else
3396 ELIX_LEVEL_4_TRUE='#'
3397 ELIX_LEVEL_4_FALSE=
3398 fi
3399
3400
3401 if test x${use_libtool} = xyes; then
3402 USE_LIBTOOL_TRUE=
3403 USE_LIBTOOL_FALSE='#'
3404 else
3405 USE_LIBTOOL_TRUE='#'
3406 USE_LIBTOOL_FALSE=
3407 fi
3408
3409
3410 # Emit any target-specific warnings.
3411 if test "x${newlib_msg_warn}" != "x"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${newlib_msg_warn}" >&5
3413 $as_echo "$as_me: WARNING: ${newlib_msg_warn}" >&2;}
3414 fi
3415
3416 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3417 # use oext, which is set in configure.host based on the target platform.
3418 OBJEXT=${oext}
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430 ac_config_files="$ac_config_files Makefile"
3431
3432 cat >confcache <<\_ACEOF
3433 # This file is a shell script that caches the results of configure
3434 # tests run on this system so they can be shared between configure
3435 # scripts and configure runs, see configure's option --config-cache.
3436 # It is not useful on other systems. If it contains results you don't
3437 # want to keep, you may remove or edit it.
3438 #
3439 # config.status only pays attention to the cache file if you give it
3440 # the --recheck option to rerun configure.
3441 #
3442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3444 # following values.
3445
3446 _ACEOF
3447
3448 # The following way of writing the cache mishandles newlines in values,
3449 # but we know of no workaround that is simple, portable, and efficient.
3450 # So, we kill variables containing newlines.
3451 # Ultrix sh set writes to stderr and can't be redirected directly,
3452 # and sets the high bit in the cache file unless we assign to the vars.
3453 (
3454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3455 eval ac_val=\$$ac_var
3456 case $ac_val in #(
3457 *${as_nl}*)
3458 case $ac_var in #(
3459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3460 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3461 esac
3462 case $ac_var in #(
3463 _ | IFS | as_nl) ;; #(
3464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3465 *) { eval $ac_var=; unset $ac_var;} ;;
3466 esac ;;
3467 esac
3468 done
3469
3470 (set) 2>&1 |
3471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3472 *${as_nl}ac_space=\ *)
3473 # `set' does not quote correctly, so add quotes: double-quote
3474 # substitution turns \\\\ into \\, and sed turns \\ into \.
3475 sed -n \
3476 "s/'/'\\\\''/g;
3477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3478 ;; #(
3479 *)
3480 # `set' quotes correctly as required by POSIX, so do not add quotes.
3481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3482 ;;
3483 esac |
3484 sort
3485 ) |
3486 sed '
3487 /^ac_cv_env_/b end
3488 t clear
3489 :clear
3490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3491 t end
3492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3493 :end' >>confcache
3494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3495 if test -w "$cache_file"; then
3496 if test "x$cache_file" != "x/dev/null"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3498 $as_echo "$as_me: updating cache $cache_file" >&6;}
3499 if test ! -f "$cache_file" || test -h "$cache_file"; then
3500 cat confcache >"$cache_file"
3501 else
3502 case $cache_file in #(
3503 */* | ?:*)
3504 mv -f confcache "$cache_file"$$ &&
3505 mv -f "$cache_file"$$ "$cache_file" ;; #(
3506 *)
3507 mv -f confcache "$cache_file" ;;
3508 esac
3509 fi
3510 fi
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3513 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3514 fi
3515 fi
3516 rm -f confcache
3517
3518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3519 # Let make expand exec_prefix.
3520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3521
3522 # Transform confdefs.h into DEFS.
3523 # Protect against shell expansion while executing Makefile rules.
3524 # Protect against Makefile macro expansion.
3525 #
3526 # If the first sed substitution is executed (which looks for macros that
3527 # take arguments), then branch to the quote section. Otherwise,
3528 # look for a macro that doesn't take arguments.
3529 ac_script='
3530 :mline
3531 /\\$/{
3532 N
3533 s,\\\n,,
3534 b mline
3535 }
3536 t clear
3537 :clear
3538 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3539 t quote
3540 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3541 t quote
3542 b any
3543 :quote
3544 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3545 s/\[/\\&/g
3546 s/\]/\\&/g
3547 s/\$/$$/g
3548 H
3549 :any
3550 ${
3551 g
3552 s/^\n//
3553 s/\n/ /g
3554 p
3555 }
3556 '
3557 DEFS=`sed -n "$ac_script" confdefs.h`
3558
3559
3560 ac_libobjs=
3561 ac_ltlibobjs=
3562 U=
3563 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3564 # 1. Remove the extension, and $U if already installed.
3565 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3566 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3567 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3568 # will be set to the directory where LIBOBJS objects are built.
3569 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3570 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3571 done
3572 LIBOBJS=$ac_libobjs
3573
3574 LTLIBOBJS=$ac_ltlibobjs
3575
3576
3577 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
3578 as_fn_error $? "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
3579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3580 fi
3581
3582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3583 as_fn_error $? "conditional \"AMDEP\" was never defined.
3584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3585 fi
3586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3587 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
3588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3589 fi
3590 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3591 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
3592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3593 fi
3594 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
3595 as_fn_error $? "conditional \"ELIX_LEVEL_0\" was never defined.
3596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3597 fi
3598 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
3599 as_fn_error $? "conditional \"ELIX_LEVEL_1\" was never defined.
3600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3601 fi
3602 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
3603 as_fn_error $? "conditional \"ELIX_LEVEL_2\" was never defined.
3604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3605 fi
3606 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
3607 as_fn_error $? "conditional \"ELIX_LEVEL_3\" was never defined.
3608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3609 fi
3610 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
3611 as_fn_error $? "conditional \"ELIX_LEVEL_4\" was never defined.
3612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3613 fi
3614 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
3615 as_fn_error $? "conditional \"USE_LIBTOOL\" was never defined.
3616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3617 fi
3618
3619 : "${CONFIG_STATUS=./config.status}"
3620 ac_write_fail=0
3621 ac_clean_files_save=$ac_clean_files
3622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3625 as_write_fail=0
3626 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3627 #! $SHELL
3628 # Generated by $as_me.
3629 # Run this file to recreate the current configuration.
3630 # Compiler output produced by configure, useful for debugging
3631 # configure, is in config.log if it exists.
3632
3633 debug=false
3634 ac_cs_recheck=false
3635 ac_cs_silent=false
3636
3637 SHELL=\${CONFIG_SHELL-$SHELL}
3638 export SHELL
3639 _ASEOF
3640 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3641 ## -------------------- ##
3642 ## M4sh Initialization. ##
3643 ## -------------------- ##
3644
3645 # Be more Bourne compatible
3646 DUALCASE=1; export DUALCASE # for MKS sh
3647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3648 emulate sh
3649 NULLCMD=:
3650 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3651 # is contrary to our usage. Disable this feature.
3652 alias -g '${1+"$@"}'='"$@"'
3653 setopt NO_GLOB_SUBST
3654 else
3655 case `(set -o) 2>/dev/null` in #(
3656 *posix*) :
3657 set -o posix ;; #(
3658 *) :
3659 ;;
3660 esac
3661 fi
3662
3663
3664 as_nl='
3665 '
3666 export as_nl
3667 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3668 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3671 # Prefer a ksh shell builtin over an external printf program on Solaris,
3672 # but without wasting forks for bash or zsh.
3673 if test -z "$BASH_VERSION$ZSH_VERSION" \
3674 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3675 as_echo='print -r --'
3676 as_echo_n='print -rn --'
3677 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3678 as_echo='printf %s\n'
3679 as_echo_n='printf %s'
3680 else
3681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3682 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3683 as_echo_n='/usr/ucb/echo -n'
3684 else
3685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3686 as_echo_n_body='eval
3687 arg=$1;
3688 case $arg in #(
3689 *"$as_nl"*)
3690 expr "X$arg" : "X\\(.*\\)$as_nl";
3691 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3692 esac;
3693 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3694 '
3695 export as_echo_n_body
3696 as_echo_n='sh -c $as_echo_n_body as_echo'
3697 fi
3698 export as_echo_body
3699 as_echo='sh -c $as_echo_body as_echo'
3700 fi
3701
3702 # The user is always right.
3703 if test "${PATH_SEPARATOR+set}" != set; then
3704 PATH_SEPARATOR=:
3705 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3706 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3707 PATH_SEPARATOR=';'
3708 }
3709 fi
3710
3711
3712 # IFS
3713 # We need space, tab and new line, in precisely that order. Quoting is
3714 # there to prevent editors from complaining about space-tab.
3715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3716 # splitting by setting IFS to empty value.)
3717 IFS=" "" $as_nl"
3718
3719 # Find who we are. Look in the path if we contain no directory separator.
3720 as_myself=
3721 case $0 in #((
3722 *[\\/]* ) as_myself=$0 ;;
3723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3729 done
3730 IFS=$as_save_IFS
3731
3732 ;;
3733 esac
3734 # We did not find ourselves, most probably we were run as `sh COMMAND'
3735 # in which case we are not to be found in the path.
3736 if test "x$as_myself" = x; then
3737 as_myself=$0
3738 fi
3739 if test ! -f "$as_myself"; then
3740 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3741 exit 1
3742 fi
3743
3744 # Unset variables that we do not need and which cause bugs (e.g. in
3745 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3746 # suppresses any "Segmentation fault" message there. '((' could
3747 # trigger a bug in pdksh 5.2.14.
3748 for as_var in BASH_ENV ENV MAIL MAILPATH
3749 do eval test x\${$as_var+set} = xset \
3750 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3751 done
3752 PS1='$ '
3753 PS2='> '
3754 PS4='+ '
3755
3756 # NLS nuisances.
3757 LC_ALL=C
3758 export LC_ALL
3759 LANGUAGE=C
3760 export LANGUAGE
3761
3762 # CDPATH.
3763 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3764
3765
3766 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3767 # ----------------------------------------
3768 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3769 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3770 # script with STATUS, using 1 if that was 0.
3771 as_fn_error ()
3772 {
3773 as_status=$1; test $as_status -eq 0 && as_status=1
3774 if test "$4"; then
3775 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3776 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3777 fi
3778 $as_echo "$as_me: error: $2" >&2
3779 as_fn_exit $as_status
3780 } # as_fn_error
3781
3782
3783 # as_fn_set_status STATUS
3784 # -----------------------
3785 # Set $? to STATUS, without forking.
3786 as_fn_set_status ()
3787 {
3788 return $1
3789 } # as_fn_set_status
3790
3791 # as_fn_exit STATUS
3792 # -----------------
3793 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3794 as_fn_exit ()
3795 {
3796 set +e
3797 as_fn_set_status $1
3798 exit $1
3799 } # as_fn_exit
3800
3801 # as_fn_unset VAR
3802 # ---------------
3803 # Portably unset VAR.
3804 as_fn_unset ()
3805 {
3806 { eval $1=; unset $1;}
3807 }
3808 as_unset=as_fn_unset
3809 # as_fn_append VAR VALUE
3810 # ----------------------
3811 # Append the text in VALUE to the end of the definition contained in VAR. Take
3812 # advantage of any shell optimizations that allow amortized linear growth over
3813 # repeated appends, instead of the typical quadratic growth present in naive
3814 # implementations.
3815 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3816 eval 'as_fn_append ()
3817 {
3818 eval $1+=\$2
3819 }'
3820 else
3821 as_fn_append ()
3822 {
3823 eval $1=\$$1\$2
3824 }
3825 fi # as_fn_append
3826
3827 # as_fn_arith ARG...
3828 # ------------------
3829 # Perform arithmetic evaluation on the ARGs, and store the result in the
3830 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3831 # must be portable across $(()) and expr.
3832 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3833 eval 'as_fn_arith ()
3834 {
3835 as_val=$(( $* ))
3836 }'
3837 else
3838 as_fn_arith ()
3839 {
3840 as_val=`expr "$@" || test $? -eq 1`
3841 }
3842 fi # as_fn_arith
3843
3844
3845 if expr a : '\(a\)' >/dev/null 2>&1 &&
3846 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3847 as_expr=expr
3848 else
3849 as_expr=false
3850 fi
3851
3852 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3853 as_basename=basename
3854 else
3855 as_basename=false
3856 fi
3857
3858 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3859 as_dirname=dirname
3860 else
3861 as_dirname=false
3862 fi
3863
3864 as_me=`$as_basename -- "$0" ||
3865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3866 X"$0" : 'X\(//\)$' \| \
3867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3868 $as_echo X/"$0" |
3869 sed '/^.*\/\([^/][^/]*\)\/*$/{
3870 s//\1/
3871 q
3872 }
3873 /^X\/\(\/\/\)$/{
3874 s//\1/
3875 q
3876 }
3877 /^X\/\(\/\).*/{
3878 s//\1/
3879 q
3880 }
3881 s/.*/./; q'`
3882
3883 # Avoid depending upon Character Ranges.
3884 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3885 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3886 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3887 as_cr_digits='0123456789'
3888 as_cr_alnum=$as_cr_Letters$as_cr_digits
3889
3890 ECHO_C= ECHO_N= ECHO_T=
3891 case `echo -n x` in #(((((
3892 -n*)
3893 case `echo 'xy\c'` in
3894 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3895 xy) ECHO_C='\c';;
3896 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3897 ECHO_T=' ';;
3898 esac;;
3899 *)
3900 ECHO_N='-n';;
3901 esac
3902
3903 rm -f conf$$ conf$$.exe conf$$.file
3904 if test -d conf$$.dir; then
3905 rm -f conf$$.dir/conf$$.file
3906 else
3907 rm -f conf$$.dir
3908 mkdir conf$$.dir 2>/dev/null
3909 fi
3910 if (echo >conf$$.file) 2>/dev/null; then
3911 if ln -s conf$$.file conf$$ 2>/dev/null; then
3912 as_ln_s='ln -s'
3913 # ... but there are two gotchas:
3914 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3915 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3916 # In both cases, we have to default to `cp -p'.
3917 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3918 as_ln_s='cp -p'
3919 elif ln conf$$.file conf$$ 2>/dev/null; then
3920 as_ln_s=ln
3921 else
3922 as_ln_s='cp -p'
3923 fi
3924 else
3925 as_ln_s='cp -p'
3926 fi
3927 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3928 rmdir conf$$.dir 2>/dev/null
3929
3930
3931 # as_fn_mkdir_p
3932 # -------------
3933 # Create "$as_dir" as a directory, including parents if necessary.
3934 as_fn_mkdir_p ()
3935 {
3936
3937 case $as_dir in #(
3938 -*) as_dir=./$as_dir;;
3939 esac
3940 test -d "$as_dir" || eval $as_mkdir_p || {
3941 as_dirs=
3942 while :; do
3943 case $as_dir in #(
3944 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3945 *) as_qdir=$as_dir;;
3946 esac
3947 as_dirs="'$as_qdir' $as_dirs"
3948 as_dir=`$as_dirname -- "$as_dir" ||
3949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3950 X"$as_dir" : 'X\(//\)[^/]' \| \
3951 X"$as_dir" : 'X\(//\)$' \| \
3952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3953 $as_echo X"$as_dir" |
3954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3955 s//\1/
3956 q
3957 }
3958 /^X\(\/\/\)[^/].*/{
3959 s//\1/
3960 q
3961 }
3962 /^X\(\/\/\)$/{
3963 s//\1/
3964 q
3965 }
3966 /^X\(\/\).*/{
3967 s//\1/
3968 q
3969 }
3970 s/.*/./; q'`
3971 test -d "$as_dir" && break
3972 done
3973 test -z "$as_dirs" || eval "mkdir $as_dirs"
3974 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3975
3976
3977 } # as_fn_mkdir_p
3978 if mkdir -p . 2>/dev/null; then
3979 as_mkdir_p='mkdir -p "$as_dir"'
3980 else
3981 test -d ./-p && rmdir ./-p
3982 as_mkdir_p=false
3983 fi
3984
3985 if test -x / >/dev/null 2>&1; then
3986 as_test_x='test -x'
3987 else
3988 if ls -dL / >/dev/null 2>&1; then
3989 as_ls_L_option=L
3990 else
3991 as_ls_L_option=
3992 fi
3993 as_test_x='
3994 eval sh -c '\''
3995 if test -d "$1"; then
3996 test -d "$1/.";
3997 else
3998 case $1 in #(
3999 -*)set "./$1";;
4000 esac;
4001 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4002 ???[sx]*):;;*)false;;esac;fi
4003 '\'' sh
4004 '
4005 fi
4006 as_executable_p=$as_test_x
4007
4008 # Sed expression to map a string onto a valid CPP name.
4009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4010
4011 # Sed expression to map a string onto a valid variable name.
4012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4013
4014
4015 exec 6>&1
4016 ## ----------------------------------- ##
4017 ## Main body of $CONFIG_STATUS script. ##
4018 ## ----------------------------------- ##
4019 _ASEOF
4020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4021
4022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4023 # Save the log message, to keep $0 and so on meaningful, and to
4024 # report actual input values of CONFIG_FILES etc. instead of their
4025 # values after options handling.
4026 ac_log="
4027 This file was extended by newlib $as_me 3.3.0, which was
4028 generated by GNU Autoconf 2.68. Invocation command line was
4029
4030 CONFIG_FILES = $CONFIG_FILES
4031 CONFIG_HEADERS = $CONFIG_HEADERS
4032 CONFIG_LINKS = $CONFIG_LINKS
4033 CONFIG_COMMANDS = $CONFIG_COMMANDS
4034 $ $0 $@
4035
4036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4037 "
4038
4039 _ACEOF
4040
4041 case $ac_config_files in *"
4042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4043 esac
4044
4045
4046
4047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4048 # Files that config.status was made for.
4049 config_files="$ac_config_files"
4050 config_commands="$ac_config_commands"
4051
4052 _ACEOF
4053
4054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4055 ac_cs_usage="\
4056 \`$as_me' instantiates files and other configuration actions
4057 from templates according to the current configuration. Unless the files
4058 and actions are specified as TAGs, all are instantiated by default.
4059
4060 Usage: $0 [OPTION]... [TAG]...
4061
4062 -h, --help print this help, then exit
4063 -V, --version print version number and configuration settings, then exit
4064 --config print configuration, then exit
4065 -q, --quiet, --silent
4066 do not print progress messages
4067 -d, --debug don't remove temporary files
4068 --recheck update $as_me by reconfiguring in the same conditions
4069 --file=FILE[:TEMPLATE]
4070 instantiate the configuration file FILE
4071
4072 Configuration files:
4073 $config_files
4074
4075 Configuration commands:
4076 $config_commands
4077
4078 Report bugs to the package provider."
4079
4080 _ACEOF
4081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4083 ac_cs_version="\\
4084 newlib config.status 3.3.0
4085 configured by $0, generated by GNU Autoconf 2.68,
4086 with options \\"\$ac_cs_config\\"
4087
4088 Copyright (C) 2010 Free Software Foundation, Inc.
4089 This config.status script is free software; the Free Software Foundation
4090 gives unlimited permission to copy, distribute and modify it."
4091
4092 ac_pwd='$ac_pwd'
4093 srcdir='$srcdir'
4094 INSTALL='$INSTALL'
4095 MKDIR_P='$MKDIR_P'
4096 AWK='$AWK'
4097 test -n "\$AWK" || AWK=awk
4098 _ACEOF
4099
4100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4101 # The default lists apply if the user does not specify any file.
4102 ac_need_defaults=:
4103 while test $# != 0
4104 do
4105 case $1 in
4106 --*=?*)
4107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4109 ac_shift=:
4110 ;;
4111 --*=)
4112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4113 ac_optarg=
4114 ac_shift=:
4115 ;;
4116 *)
4117 ac_option=$1
4118 ac_optarg=$2
4119 ac_shift=shift
4120 ;;
4121 esac
4122
4123 case $ac_option in
4124 # Handling of the options.
4125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4126 ac_cs_recheck=: ;;
4127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4128 $as_echo "$ac_cs_version"; exit ;;
4129 --config | --confi | --conf | --con | --co | --c )
4130 $as_echo "$ac_cs_config"; exit ;;
4131 --debug | --debu | --deb | --de | --d | -d )
4132 debug=: ;;
4133 --file | --fil | --fi | --f )
4134 $ac_shift
4135 case $ac_optarg in
4136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4137 '') as_fn_error $? "missing file argument" ;;
4138 esac
4139 as_fn_append CONFIG_FILES " '$ac_optarg'"
4140 ac_need_defaults=false;;
4141 --he | --h | --help | --hel | -h )
4142 $as_echo "$ac_cs_usage"; exit ;;
4143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4145 ac_cs_silent=: ;;
4146
4147 # This is an error.
4148 -*) as_fn_error $? "unrecognized option: \`$1'
4149 Try \`$0 --help' for more information." ;;
4150
4151 *) as_fn_append ac_config_targets " $1"
4152 ac_need_defaults=false ;;
4153
4154 esac
4155 shift
4156 done
4157
4158 ac_configure_extra_args=
4159
4160 if $ac_cs_silent; then
4161 exec 6>/dev/null
4162 ac_configure_extra_args="$ac_configure_extra_args --silent"
4163 fi
4164
4165 _ACEOF
4166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4167 if \$ac_cs_recheck; then
4168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4169 shift
4170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4171 CONFIG_SHELL='$SHELL'
4172 export CONFIG_SHELL
4173 exec "\$@"
4174 fi
4175
4176 _ACEOF
4177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4178 exec 5>>config.log
4179 {
4180 echo
4181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4182 ## Running $as_me. ##
4183 _ASBOX
4184 $as_echo "$ac_log"
4185 } >&5
4186
4187 _ACEOF
4188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4189 #
4190 # INIT-COMMANDS
4191 #
4192 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4193
4194 _ACEOF
4195
4196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4197
4198 # Handling of arguments.
4199 for ac_config_target in $ac_config_targets
4200 do
4201 case $ac_config_target in
4202 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4204
4205 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4206 esac
4207 done
4208
4209
4210 # If the user did not use the arguments to specify the items to instantiate,
4211 # then the envvar interface is used. Set only those that are not.
4212 # We use the long form for the default assignment because of an extremely
4213 # bizarre bug on SunOS 4.1.3.
4214 if $ac_need_defaults; then
4215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4217 fi
4218
4219 # Have a temporary directory for convenience. Make it in the build tree
4220 # simply because there is no reason against having it here, and in addition,
4221 # creating and moving files from /tmp can sometimes cause problems.
4222 # Hook for its removal unless debugging.
4223 # Note that there is a small window in which the directory will not be cleaned:
4224 # after its creation but before its name has been assigned to `$tmp'.
4225 $debug ||
4226 {
4227 tmp= ac_tmp=
4228 trap 'exit_status=$?
4229 : "${ac_tmp:=$tmp}"
4230 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4231 ' 0
4232 trap 'as_fn_exit 1' 1 2 13 15
4233 }
4234 # Create a (secure) tmp directory for tmp files.
4235
4236 {
4237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4238 test -d "$tmp"
4239 } ||
4240 {
4241 tmp=./conf$$-$RANDOM
4242 (umask 077 && mkdir "$tmp")
4243 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4244 ac_tmp=$tmp
4245
4246 # Set up the scripts for CONFIG_FILES section.
4247 # No need to generate them if there are no CONFIG_FILES.
4248 # This happens for instance with `./config.status config.h'.
4249 if test -n "$CONFIG_FILES"; then
4250
4251
4252 ac_cr=`echo X | tr X '\015'`
4253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4254 # But we know of no other shell where ac_cr would be empty at this
4255 # point, so we can use a bashism as a fallback.
4256 if test "x$ac_cr" = x; then
4257 eval ac_cr=\$\'\\r\'
4258 fi
4259 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4261 ac_cs_awk_cr='\\r'
4262 else
4263 ac_cs_awk_cr=$ac_cr
4264 fi
4265
4266 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4267 _ACEOF
4268
4269
4270 {
4271 echo "cat >conf$$subs.awk <<_ACEOF" &&
4272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4273 echo "_ACEOF"
4274 } >conf$$subs.sh ||
4275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4277 ac_delim='%!_!# '
4278 for ac_last_try in false false false false false :; do
4279 . ./conf$$subs.sh ||
4280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4281
4282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4283 if test $ac_delim_n = $ac_delim_num; then
4284 break
4285 elif $ac_last_try; then
4286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4287 else
4288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4289 fi
4290 done
4291 rm -f conf$$subs.sh
4292
4293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4294 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4295 _ACEOF
4296 sed -n '
4297 h
4298 s/^/S["/; s/!.*/"]=/
4299 p
4300 g
4301 s/^[^!]*!//
4302 :repl
4303 t repl
4304 s/'"$ac_delim"'$//
4305 t delim
4306 :nl
4307 h
4308 s/\(.\{148\}\)..*/\1/
4309 t more1
4310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4311 p
4312 n
4313 b repl
4314 :more1
4315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4316 p
4317 g
4318 s/.\{148\}//
4319 t nl
4320 :delim
4321 h
4322 s/\(.\{148\}\)..*/\1/
4323 t more2
4324 s/["\\]/\\&/g; s/^/"/; s/$/"/
4325 p
4326 b
4327 :more2
4328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4329 p
4330 g
4331 s/.\{148\}//
4332 t delim
4333 ' <conf$$subs.awk | sed '
4334 /^[^""]/{
4335 N
4336 s/\n//
4337 }
4338 ' >>$CONFIG_STATUS || ac_write_fail=1
4339 rm -f conf$$subs.awk
4340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4341 _ACAWK
4342 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4343 for (key in S) S_is_set[key] = 1
4344 FS = ""
4345
4346 }
4347 {
4348 line = $ 0
4349 nfields = split(line, field, "@")
4350 substed = 0
4351 len = length(field[1])
4352 for (i = 2; i < nfields; i++) {
4353 key = field[i]
4354 keylen = length(key)
4355 if (S_is_set[key]) {
4356 value = S[key]
4357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4358 len += length(value) + length(field[++i])
4359 substed = 1
4360 } else
4361 len += 1 + keylen
4362 }
4363
4364 print line
4365 }
4366
4367 _ACAWK
4368 _ACEOF
4369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4370 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4371 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4372 else
4373 cat
4374 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4375 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4376 _ACEOF
4377
4378 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4379 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4380 # trailing colons and then remove the whole line if VPATH becomes empty
4381 # (actually we leave an empty line to preserve line numbers).
4382 if test "x$srcdir" = x.; then
4383 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4384 h
4385 s///
4386 s/^/:/
4387 s/[ ]*$/:/
4388 s/:\$(srcdir):/:/g
4389 s/:\${srcdir}:/:/g
4390 s/:@srcdir@:/:/g
4391 s/^:*//
4392 s/:*$//
4393 x
4394 s/\(=[ ]*\).*/\1/
4395 G
4396 s/\n//
4397 s/^[^=]*=[ ]*$//
4398 }'
4399 fi
4400
4401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4402 fi # test -n "$CONFIG_FILES"
4403
4404
4405 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
4406 shift
4407 for ac_tag
4408 do
4409 case $ac_tag in
4410 :[FHLC]) ac_mode=$ac_tag; continue;;
4411 esac
4412 case $ac_mode$ac_tag in
4413 :[FHL]*:*);;
4414 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4415 :[FH]-) ac_tag=-:-;;
4416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4417 esac
4418 ac_save_IFS=$IFS
4419 IFS=:
4420 set x $ac_tag
4421 IFS=$ac_save_IFS
4422 shift
4423 ac_file=$1
4424 shift
4425
4426 case $ac_mode in
4427 :L) ac_source=$1;;
4428 :[FH])
4429 ac_file_inputs=
4430 for ac_f
4431 do
4432 case $ac_f in
4433 -) ac_f="$ac_tmp/stdin";;
4434 *) # Look for the file first in the build tree, then in the source tree
4435 # (if the path is not absolute). The absolute path cannot be DOS-style,
4436 # because $ac_f cannot contain `:'.
4437 test -f "$ac_f" ||
4438 case $ac_f in
4439 [\\/$]*) false;;
4440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4441 esac ||
4442 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4443 esac
4444 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4445 as_fn_append ac_file_inputs " '$ac_f'"
4446 done
4447
4448 # Let's still pretend it is `configure' which instantiates (i.e., don't
4449 # use $as_me), people would be surprised to read:
4450 # /* config.h. Generated by config.status. */
4451 configure_input='Generated from '`
4452 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4453 `' by configure.'
4454 if test x"$ac_file" != x-; then
4455 configure_input="$ac_file. $configure_input"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4457 $as_echo "$as_me: creating $ac_file" >&6;}
4458 fi
4459 # Neutralize special characters interpreted by sed in replacement strings.
4460 case $configure_input in #(
4461 *\&* | *\|* | *\\* )
4462 ac_sed_conf_input=`$as_echo "$configure_input" |
4463 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4464 *) ac_sed_conf_input=$configure_input;;
4465 esac
4466
4467 case $ac_tag in
4468 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4470 esac
4471 ;;
4472 esac
4473
4474 ac_dir=`$as_dirname -- "$ac_file" ||
4475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4476 X"$ac_file" : 'X\(//\)[^/]' \| \
4477 X"$ac_file" : 'X\(//\)$' \| \
4478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4479 $as_echo X"$ac_file" |
4480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4481 s//\1/
4482 q
4483 }
4484 /^X\(\/\/\)[^/].*/{
4485 s//\1/
4486 q
4487 }
4488 /^X\(\/\/\)$/{
4489 s//\1/
4490 q
4491 }
4492 /^X\(\/\).*/{
4493 s//\1/
4494 q
4495 }
4496 s/.*/./; q'`
4497 as_dir="$ac_dir"; as_fn_mkdir_p
4498 ac_builddir=.
4499
4500 case "$ac_dir" in
4501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4502 *)
4503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4504 # A ".." for each directory in $ac_dir_suffix.
4505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4506 case $ac_top_builddir_sub in
4507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4509 esac ;;
4510 esac
4511 ac_abs_top_builddir=$ac_pwd
4512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4513 # for backward compatibility:
4514 ac_top_builddir=$ac_top_build_prefix
4515
4516 case $srcdir in
4517 .) # We are building in place.
4518 ac_srcdir=.
4519 ac_top_srcdir=$ac_top_builddir_sub
4520 ac_abs_top_srcdir=$ac_pwd ;;
4521 [\\/]* | ?:[\\/]* ) # Absolute name.
4522 ac_srcdir=$srcdir$ac_dir_suffix;
4523 ac_top_srcdir=$srcdir
4524 ac_abs_top_srcdir=$srcdir ;;
4525 *) # Relative name.
4526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4527 ac_top_srcdir=$ac_top_build_prefix$srcdir
4528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4529 esac
4530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4531
4532
4533 case $ac_mode in
4534 :F)
4535 #
4536 # CONFIG_FILE
4537 #
4538
4539 case $INSTALL in
4540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4542 esac
4543 ac_MKDIR_P=$MKDIR_P
4544 case $MKDIR_P in
4545 [\\/$]* | ?:[\\/]* ) ;;
4546 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
4547 esac
4548 _ACEOF
4549
4550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4551 # If the template does not know about datarootdir, expand it.
4552 # FIXME: This hack should be removed a few years after 2.60.
4553 ac_datarootdir_hack=; ac_datarootdir_seen=
4554 ac_sed_dataroot='
4555 /datarootdir/ {
4556 p
4557 q
4558 }
4559 /@datadir@/p
4560 /@docdir@/p
4561 /@infodir@/p
4562 /@localedir@/p
4563 /@mandir@/p'
4564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4565 *datarootdir*) ac_datarootdir_seen=yes;;
4566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4568 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4569 _ACEOF
4570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4571 ac_datarootdir_hack='
4572 s&@datadir@&$datadir&g
4573 s&@docdir@&$docdir&g
4574 s&@infodir@&$infodir&g
4575 s&@localedir@&$localedir&g
4576 s&@mandir@&$mandir&g
4577 s&\\\${datarootdir}&$datarootdir&g' ;;
4578 esac
4579 _ACEOF
4580
4581 # Neutralize VPATH when `$srcdir' = `.'.
4582 # Shell code in configure.ac might set extrasub.
4583 # FIXME: do we really want to maintain this feature?
4584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4585 ac_sed_extra="$ac_vpsub
4586 $extrasub
4587 _ACEOF
4588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4589 :t
4590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4591 s|@configure_input@|$ac_sed_conf_input|;t t
4592 s&@top_builddir@&$ac_top_builddir_sub&;t t
4593 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4594 s&@srcdir@&$ac_srcdir&;t t
4595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4596 s&@top_srcdir@&$ac_top_srcdir&;t t
4597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4598 s&@builddir@&$ac_builddir&;t t
4599 s&@abs_builddir@&$ac_abs_builddir&;t t
4600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4601 s&@INSTALL@&$ac_INSTALL&;t t
4602 s&@MKDIR_P@&$ac_MKDIR_P&;t t
4603 $ac_datarootdir_hack
4604 "
4605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4606 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4607
4608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4609 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4611 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4613 which seems to be undefined. Please make sure it is defined" >&5
4614 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4615 which seems to be undefined. Please make sure it is defined" >&2;}
4616
4617 rm -f "$ac_tmp/stdin"
4618 case $ac_file in
4619 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4620 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4621 esac \
4622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4623 ;;
4624
4625
4626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4627 $as_echo "$as_me: executing $ac_file commands" >&6;}
4628 ;;
4629 esac
4630
4631
4632 case $ac_file$ac_mode in
4633 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
4634 # Autoconf 2.62 quotes --file arguments for eval, but not when files
4635 # are listed without --file. Let's play safe and only enable the eval
4636 # if we detect the quoting.
4637 case $CONFIG_FILES in
4638 *\'*) eval set x "$CONFIG_FILES" ;;
4639 *) set x $CONFIG_FILES ;;
4640 esac
4641 shift
4642 for mf
4643 do
4644 # Strip MF so we end up with the name of the file.
4645 mf=`echo "$mf" | sed -e 's/:.*$//'`
4646 # Check whether this is an Automake generated Makefile or not.
4647 # We used to match only the files named `Makefile.in', but
4648 # some people rename them; so instead we look at the file content.
4649 # Grep'ing the first line is not enough: some people post-process
4650 # each Makefile.in and add a new line on top of each file to say so.
4651 # Grep'ing the whole file is not good either: AIX grep has a line
4652 # limit of 2048, but all sed's we know have understand at least 4000.
4653 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
4654 dirpart=`$as_dirname -- "$mf" ||
4655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4656 X"$mf" : 'X\(//\)[^/]' \| \
4657 X"$mf" : 'X\(//\)$' \| \
4658 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
4659 $as_echo X"$mf" |
4660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4661 s//\1/
4662 q
4663 }
4664 /^X\(\/\/\)[^/].*/{
4665 s//\1/
4666 q
4667 }
4668 /^X\(\/\/\)$/{
4669 s//\1/
4670 q
4671 }
4672 /^X\(\/\).*/{
4673 s//\1/
4674 q
4675 }
4676 s/.*/./; q'`
4677 else
4678 continue
4679 fi
4680 # Extract the definition of DEPDIR, am__include, and am__quote
4681 # from the Makefile without running `make'.
4682 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4683 test -z "$DEPDIR" && continue
4684 am__include=`sed -n 's/^am__include = //p' < "$mf"`
4685 test -z "am__include" && continue
4686 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4687 # When using ansi2knr, U may be empty or an underscore; expand it
4688 U=`sed -n 's/^U = //p' < "$mf"`
4689 # Find all dependency output files, they are included files with
4690 # $(DEPDIR) in their names. We invoke sed twice because it is the
4691 # simplest approach to changing $(DEPDIR) to its actual value in the
4692 # expansion.
4693 for file in `sed -n "
4694 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4695 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4696 # Make sure the directory exists.
4697 test -f "$dirpart/$file" && continue
4698 fdir=`$as_dirname -- "$file" ||
4699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4700 X"$file" : 'X\(//\)[^/]' \| \
4701 X"$file" : 'X\(//\)$' \| \
4702 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
4703 $as_echo X"$file" |
4704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4705 s//\1/
4706 q
4707 }
4708 /^X\(\/\/\)[^/].*/{
4709 s//\1/
4710 q
4711 }
4712 /^X\(\/\/\)$/{
4713 s//\1/
4714 q
4715 }
4716 /^X\(\/\).*/{
4717 s//\1/
4718 q
4719 }
4720 s/.*/./; q'`
4721 as_dir=$dirpart/$fdir; as_fn_mkdir_p
4722 # echo "creating $dirpart/$file"
4723 echo '# dummy' > "$dirpart/$file"
4724 done
4725 done
4726 }
4727 ;;
4728
4729 esac
4730 done # for ac_tag
4731
4732
4733 as_fn_exit 0
4734 _ACEOF
4735 ac_clean_files=$ac_clean_files_save
4736
4737 test $ac_write_fail = 0 ||
4738 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4739
4740
4741 # configure is writing to config.log, and then calls config.status.
4742 # config.status does its own redirection, appending to config.log.
4743 # Unfortunately, on DOS this fails, as config.log is still kept open
4744 # by configure, so config.status won't be able to write to it; its
4745 # output is simply discarded. So we exec the FD to /dev/null,
4746 # effectively closing config.log, so it can be properly (re)opened and
4747 # appended to by config.status. When coming back to configure, we
4748 # need to make the FD available again.
4749 if test "$no_create" != yes; then
4750 ac_cs_success=:
4751 ac_config_status_args=
4752 test "$silent" = yes &&
4753 ac_config_status_args="$ac_config_status_args --quiet"
4754 exec 5>/dev/null
4755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4756 exec 5>>config.log
4757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4758 # would make configure fail if this is the last instruction.
4759 $ac_cs_success || as_fn_exit 1
4760 fi
4761 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4763 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4764 fi
4765
0 dnl This is the newlib/libc/sys/amdgcn configure.in file.
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_PREREQ(2.59)
4 AC_INIT([newlib],[NEWLIB_VERSION])
5 AC_CONFIG_SRCDIR([close.c])
6
7 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
8 AC_CONFIG_AUX_DIR(../../../..)
9
10 NEWLIB_CONFIGURE(../../..)
11
12 AC_CONFIG_FILES([Makefile])
13 AC_OUTPUT
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2019 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <errno.h>
16
17 int fcntl (int fd,
18 int flag,
19 int arg)
20 {
21 errno = EINVAL;
22 return -1;
23 }
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <sys/types.h>
16 #include <sys/stat.h>
17 #include <unistd.h>
18 #include <errno.h>
19
20 int fstat(int fildes, struct stat *buf)
21 {
22 errno = EIO;
23 return -1;
24 }
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2019 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 int
16 getpid (void)
17 {
18 return 0;
19 }
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <unistd.h>
16 #include <errno.h>
17
18 int isatty(int fd)
19 {
20 errno = EINVAL;
21 return 0;
22 }
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2019 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <errno.h>
16
17 int kill (int pid,
18 int sig)
19 {
20 errno = ESRCH;
21 return -1;
22 }
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <unistd.h>
16 #include <errno.h>
17
18 off_t lseek(int fildes, off_t offset, int whence)
19 {
20 errno = ESPIPE;
21 return -1;
22 }
23
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2019 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <unistd.h>
16 #include <errno.h>
17
18 int
19 open (const char *file,
20 int flags, ...)
21 {
22 errno = EACCES;
23 return -1;
24 }
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2019 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 int
16 raise (int sig)
17 {
18 return -1;
19 }
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <stdio.h>
16
17 _READ_WRITE_RETURN_TYPE read (int fildes, void *buf, size_t nbyte)
18 {
19 return 0;
20 }
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2019 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <errno.h>
16
17 int
18 stat (const char *file,
19 struct stat *pstat)
20 {
21 errno = EACCES;
22 return -1;
23 }
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2019 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <errno.h>
16
17 int
18 unlink (const char *file)
19 {
20 errno = EACCES;
21 return -1;
22 }
0 /*
1 * Support file for amdgcn in newlib.
2 * Copyright (c) 2014, 2017 Mentor Graphics.
3 *
4 * The authors hereby grant permission to use, copy, modify, distribute,
5 * and license this software and its documentation for any purpose, provided
6 * that existing copyright notices are retained in all copies and that this
7 * notice is included verbatim in any distributions. No written agreement,
8 * license, or royalty fee is required for any of the authorized uses.
9 * Modifications to this software may be copyrighted by their authors
10 * and need not follow the licensing terms described here, provided that
11 * the new terms are clearly indicated on the first page of each file where
12 * they apply.
13 */
14
15 #include <stdlib.h>
16 #include <stdio.h>
17 #include <unistd.h>
18 #include <errno.h>
19 #include <string.h>
20
21 /* This struct must match the one used by gcn-run and libgomp.
22 It holds all the data output from a kernel (besides mapping data).
23
24 The base address pointer can be found at kernargs+16.
25
26 The next_output counter must be atomically incremented for each
27 print output. Only when the print data is fully written can the
28 "written" flag be set.
29
30 The buffer is circular; the host increments the consumed counter
31 and clears the written flag as it goes, opening up slots for reuse.
32 The counters always use absolute numbers. */
33 struct output {
34 int return_value;
35 unsigned int next_output;
36 struct printf_data {
37 int written;
38 char msg[128];
39 int type;
40 union {
41 int64_t ivalue;
42 double dvalue;
43 char text[128];
44 };
45 } queue[1024];
46 unsigned int consumed;
47 };
48
49 _READ_WRITE_RETURN_TYPE write (int fd, const void *buf, size_t count)
50 {
51 if (fd != 1 && fd != 2)
52 {
53 errno = EBADF;
54 return -1;
55 }
56
57 /* The output data is at ((void*)kernargs)[2]. */
58 register void **kernargs asm("s8");
59 struct output *data = (struct output *)kernargs[2];
60
61 /* Each output slot allows 256 bytes, so reserve as many as we need. */
62 unsigned int slot_count = ((count+1)/256)+1;
63 unsigned int index = __atomic_fetch_add (&data->next_output, slot_count,
64 __ATOMIC_ACQUIRE);
65
66 if ((unsigned int)(index + slot_count) < data->consumed)
67 {
68 /* Overflow. */
69 errno = EFBIG;
70 return 0;
71 }
72
73 for (int c = count;
74 c >= 0;
75 buf += 256, c -= 256, index++)
76 {
77 unsigned int slot = index % 1024;
78
79 /* Spinlock while the host catches up. */
80 if (index >= 1024)
81 while (__atomic_load_n (&data->consumed, __ATOMIC_ACQUIRE)
82 <= (index - 1024))
83 asm ("s_sleep 64");
84
85 if (c < 128)
86 {
87 memcpy (data->queue[slot].msg, buf, c);
88 data->queue[slot].msg[c] = '\0';
89 data->queue[slot].text[0] = '\0';
90 }
91 else if (c < 256)
92 {
93 memcpy (data->queue[slot].msg, buf, 128);
94 memcpy (data->queue[slot].text, buf+128, c-128);
95 data->queue[slot].text[c-128] = '\0';
96 }
97 else
98 {
99 memcpy (data->queue[slot].msg, buf, 128);
100 memcpy (data->queue[slot].text, buf+128, 128);
101 }
102
103 data->queue[slot].type = 3; /* Raw. */
104 __atomic_store_n (&data->queue[slot].written, 1, __ATOMIC_RELEASE);
105 }
106
107 return count;
108 }
6060 # define HAVE_CALL_INDIRECT
6161 #endif
6262
63 /* A and R profiles (and legacy Arm).
64 Current Program Status Register (CPSR)
65 M[4:0] Mode bits. M[4] is always 1 for 32-bit modes.
66 T[5] 1: Thumb, 0: ARM instruction set
67 F[6] 1: disables FIQ
68 I[7] 1: disables IRQ
69 A[8] 1: disables imprecise aborts
70 E[9] 0: Little-endian, 1: Big-endian
71 J[24] 1: Jazelle instruction set
72 */
73 #define CPSR_M_USR 0x00 /* User mode. */
74 #define CPSR_M_FIQ 0x01 /* Fast Interrupt mode. */
75 #define CPSR_M_IRQ 0x02 /* Interrupt mode. */
76 #define CPSR_M_SVR 0x03 /* Supervisor mode. */
77 #define CPSR_M_MON 0x06 /* Monitor mode. */
78 #define CPSR_M_ABT 0x07 /* Abort mode. */
79 #define CPSR_M_HYP 0x0A /* Hypervisor mode. */
80 #define CPSR_M_UND 0x0B /* Undefined mode. */
81 #define CPSR_M_SYS 0x0F /* System mode. */
82 #define CPSR_M_32BIT 0x10 /* 32-bit mode. */
83 #define CPSR_T_BIT 0x20 /* Thumb bit. */
84 #define CPSR_F_MASK 0x40 /* FIQ bit. */
85 #define CPSR_I_MASK 0x80 /* IRQ bit. */
86
87 #define CPSR_M_MASK 0x0F /* Mode mask except M[4]. */
88
6389 #endif /* _LIBGLOSS_ARM_H */
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
4949 .global \name
5050 .thumb_func
5151 \name:
52 .endm
52 .endm
5353 #else
5454 .code 32
5555 .macro FUNC_START name
56 .global \name
56 .global \name
5757 \name:
58 .endm
59 #endif
58 .endm
59 #endif
60
61 /* Annotation for EABI unwinding tables. */
62 .macro FN_EH_START
63 #if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
64 .fnstart
65 #endif
66 .endm
67
68 .macro FN_EH_END
69 #if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
70 /* Protect against unhandled exceptions. */
71 .cantunwind
72 .fnend
73 #endif
74 .endm
6075
6176 .macro indirect_call reg
6277 #ifdef HAVE_CALL_INDIRECT
6782 #endif
6883 .endm
6984
85 /* For armv4t and newer, toolchains will transparently convert
86 'bx lr' to 'mov pc, lr' if needed. GCC has deprecated support
87 for anything older than armv4t, but this should handle that
88 corner case in case anyone needs it anyway. */
89 .macro FN_RETURN
90 #if __ARM_ARCH <= 4 && __ARM_ARCH_ISA_THUMB == 0
91 mov pc, lr
92 #else
93 bx lr
94 #endif
95 .endm
96
97
98
99 /******************************************************************************
100 * User mode only: This routine makes default target specific Stack
101 * +-----+ <- SL_sys, Pointer initialization for different processor modes:
102 * | | SL_usr FIQ, Abort, IRQ, Undefined, Supervisor, System (User)
103 * | SYS | and setups a default Stack Limit in-case the code has
104 * | USR | -=0x10000 been compiled with "-mapcs-stack-check" for FIQ and
105 * | | System (User) modes.
106 * | |
107 * +-----+ <- initial SP,
108 * becomes SP_sys Hard-wiring SL value is not ideal, since there is
109 * and SL_usr currently no support for checking that the heap and
110 * stack have not collided, or that this default 64k is
111 * All modes: is enough for the program being executed. However,
112 * +-----+ <- SL_sys, it ensures that this simple crt0 world will not
113 * | | SL_usr immediately cause an overflow event.
114 * | SYS |
115 * | USR | -=0x10000 We go through all execution modes and set up SP
116 * | | for each of them.
117 * +-----+ <- SP_sys,
118 * | | SP_usr Notes:
119 * | SVC | -= 0x8000 - This code will not work as intended if the system
120 * | | starts in secure mode. In particular the methods
121 * +-----+ <- SP_svc of getting in and out of secure state are not as
122 * | | simple as writing to the CPSR mode bits.
123 * | IRQ | -= 0x2000 - Mode switch via CPSR is not allowed once in
124 * | | non-privileged mode, so we take care not to enter
125 * ^ +-----+ <- SP_und "User" to set up its SP, and also skip most
126 * s | | operations if already in that mode.
127 * t | UND | -= 0x1000
128 * a | | Input parameters:
129 * c +-----+ <- SP_und - sp - Initialized SP
130 * k | | - r2 - May contain SL value from semihosting
131 * | ABT | -= 0x1000 SYS_HEAPINFO call
132 * g | | Scratch registers:
133 * r +-----+ <- SP_abt, - r1 - new value of CPSR
134 * o | | SL_fiq - r2 - intermediate value (in standalone mode)
135 * w | FIQ | -= 0x1000 - r3 - new SP value
136 * t | | - r4 - save/restore CPSR on entry/exit
137 * h +-----+ <- initial SP,
138 * becomes SP_fiq Declared as "weak" so that user can write and use
139 * his own implementation if current doesn't fit.
140 *
141 ******************************************************************************/
142 .align 0
143 FUNC_START _stack_init
144 .weak FUNCTION (_stack_init)
145 FN_EH_START
146
147 /* M profile doesn't have CPSR register. */
148 #if (__ARM_ARCH_PROFILE != 'M')
149 /* Following code is compatible for both ARM and Thumb ISA. */
150 mrs r4, CPSR
151 /* Test mode bits - in User of all are 0. */
152 tst r4, #(CPSR_M_MASK)
153 /* "eq" means r4 AND #0x0F is 0. */
154 beq .Lskip_cpu_modes
155
156 mov r3, sp /* Save input SP value. */
157
158 /* FIQ mode, interrupts disabled. */
159 mov r1, #(CPSR_M_FIQ|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
160 msr CPSR_c, r1
161 mov sp, r3
162 sub sl, sp, #0x1000 /* FIQ mode has its own SL. */
163
164 /* Abort mode, interrupts disabled. */
165 mov r3, sl
166 mov r1, #(CPSR_M_ABT|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
167 msr CPSR_c, r1
168 mov sp, r3
169 sub r3, r3, #0x1000
170
171 /* Undefined mode, interrupts disabled. */
172 mov r1, #(CPSR_M_UND|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
173 msr CPSR_c, r1
174 mov sp, r3
175 sub r3, r3, #0x1000
176
177 /* IRQ mode, interrupts disabled. */
178 mov r1, #(CPSR_M_IRQ|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
179 msr CPSR_c, r1
180 mov sp, r3
181 sub r3, r3, #0x2000
182
183 /* Supervisory mode, interrupts disabled. */
184 mov r1, #(CPSR_M_SVR|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
185 msr CPSR_c, r1
186 mov sp, r3
187
188 sub r3, r3, #0x8000 /* Min size 32k. */
189 bic r3, r3, #0x00FF /* Align with current 64k block. */
190 bic r3, r3, #0xFF00
191
192 # if __ARM_ARCH >= 4
193 /* System (shares regs with User) mode, interrupts disabled. */
194 mov r1, #(CPSR_M_SYS|CPSR_M_32BIT|CPSR_I_MASK|CPSR_F_MASK)
195 msr CPSR_c, r1
196 mov sp, r3
197 # else
198 /* Keep this for ARMv3, but GCC actually dropped it. */
199 /* Move value into user mode SP without changing modes, */
200 /* via '^' form of ldm. */
201 str r3, [r3, #-4]
202 ldmdb r3, {sp}^
203 # endif
204
205 /* Back to original mode, presumably SVC, with diabled FIQ/IRQ. */
206 orr r4, r4, #(CPSR_I_MASK|CPSR_F_MASK)
207 msr CPSR_c, r4
208
209 .Lskip_cpu_modes:
210 #endif
211
212 /* Set SL register. */
213 #if defined (ARM_RDI_MONITOR) /* semihosting */
214 cmp r2, #0
215 beq .Lsl_forced_zero
216 /* Allow slop for stack overflow handling and small frames. */
217 # ifdef THUMB1_ONLY
218 adds r2, #128
219 adds r2, #128
220 mov sl, r2
221 # else
222 add sl, r2, #256
223 # endif
224 .Lsl_forced_zero:
225
226 #else /* standalone */
227 /* r3 contains SP for System/User mode. Set SL = SP - 0x10000. */
228 #ifdef THUMB1_ONLY
229 movs r2, #64
230 lsls r2, r2, #10
231 subs r2, r3, r2
232 mov sl, r2
233 #else
234 /* Still assumes 256bytes below SL. */
235 sub sl, r3, #64 << 10
236 #endif
237 #endif
238
239 FN_RETURN
240 FN_EH_END
241
242
243 /*******************************************************************************
244 * Main library startup code.
245 *******************************************************************************/
70246 .align 0
71
72247 FUNC_START _mainCRTStartup
73248 FUNC_START _start
74 #if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
75 /* Annotation for EABI unwinding tables. */
76 .fnstart
77 #endif
249 FN_EH_START
78250
79251 /* Start by setting up a stack. */
80252 #ifdef ARM_RDP_MONITOR
84256
85257 /* Stack limit is at end of data. */
86258 /* Allow slop for stack overflow handling and small frames. */
87 #ifdef __ARM_ARCH_6M__
259 #ifdef THUMB1_ONLY
88260 ldr r0, .LC2
89261 adds r0, #128
90262 adds r0, #128
109281 #endif
110282 ldr r0, .LC0 /* Point at values read. */
111283
284 /* Set __heap_limit. */
285 ldr r1, [r0, #4]
286 cmp r1, #0
287 beq .LC33
288 ldr r2, =__heap_limit
289 str r1, [r2]
290 .LC33:
112291 ldr r1, [r0, #0]
113292 cmp r1, #0
114293 bne .LC32
121300 .LC32:
122301 ldr r1, [r0, #8]
123302 ldr r2, [r0, #12]
124 /* We skip setting sp/sl if 0 returned from semihosting.
303 /* We skip setting SP/SL if 0 returned from semihosting.
125304 - According to semihosting docs, if 0 returned from semihosting,
126305 the system was unable to calculate the real value, so it's ok
127 to skip setting sp/sl to 0 here.
306 to skip setting SP/SL to 0 here.
128307 - Considering M-profile processors, We might want to initialize
129 sp by the first entry of vector table and return 0 to SYS_HEAPINFO
130 semihosting call, which will be skipped here. */
308 SP by the first entry of vector table and return 0 to SYS_HEAPINFO
309 semihosting call, which will be skipped here.
310 - Considering R-profile processors there is no automatic SP init by hardware
311 so we need to initialize it by default value. */
312 ldr r3, .Lstack
131313 cmp r1, #0
132314 beq .LC26
133 mov sp, r1
315 mov r3, r1
134316 .LC26:
135 cmp r2, #0
136 beq .LC27
137
138 /* Allow slop for stack overflow handling and small frames. */
139 #ifdef __ARM_ARCH_6M__
140 adds r2, #128
141 adds r2, #128
142 mov sl, r2
143 #else
144 add sl, r2, #256
145 #endif
146
147 .LC27:
148 #else
149 /* Set up the stack pointer to a fixed value. */
317 mov sp, r3
318
319 /* r2 (SL value) will be used in _stack_init. */
320 bl FUNCTION (_stack_init)
321
322
323 #else /* standalone */
324 /* Set up the stack pointer to a fixed value. */
150325 /* Changes by toralf:
151326 - Allow linker script to provide stack via __stack symbol - see
152327 defintion of .Lstack
153328 - Provide "hooks" that may be used by the application to add
154 custom init code - see .Lhwinit and .Lswinit
155 - Go through all execution modes and set up stack for each of them.
156 Loosely based on init.s from ARM/Motorola example code.
157 Note: Mode switch via CPSR is not allowed once in non-privileged
158 mode, so we take care not to enter "User" to set up its sp,
159 and also skip most operations if already in that mode. */
329 custom init code - see .Lhwinit and .Lswinit. */
160330
161331 ldr r3, .Lstack
162332 cmp r3, #0
163333 #ifdef __thumb2__
164334 it eq
165335 #endif
166 #ifdef __ARM_ARCH_6M__
336 #ifdef THUMB1_ONLY
167337 bne .LC28
168338 ldr r3, .LC0
169339 .LC28:
171341 ldreq r3, .LC0
172342 #endif
173343 /* Note: This 'mov' is essential when starting in User, and ensures we
174 always get *some* sp value for the initial mode, even if we
344 always get *some* SP value for the initial mode, even if we
175345 have somehow missed it below (in which case it gets the same
176346 value as FIQ - not ideal, but better than nothing). */
177347 mov sp, r3
178 #ifdef PREFER_THUMB
179 /* XXX Fill in stack assignments for interrupt modes. */
180 #else
181 mrs r2, CPSR
182 tst r2, #0x0F /* Test mode bits - in User of all are 0. */
183 beq .LC23 /* "eq" means r2 AND #0x0F is 0. */
184 msr CPSR_c, #0xD1 /* FIRQ mode, interrupts disabled. */
185 mov sp, r3
186 sub sl, sp, #0x1000 /* This mode also has its own sl (see below). */
187
188 mov r3, sl
189 msr CPSR_c, #0xD7 /* Abort mode, interrupts disabled. */
190 mov sp, r3
191 sub r3, r3, #0x1000
192
193 msr CPSR_c, #0xDB /* Undefined mode, interrupts disabled. */
194 mov sp, r3
195 sub r3, r3, #0x1000
196
197 msr CPSR_c, #0xD2 /* IRQ mode, interrupts disabled. */
198 mov sp, r3
199 sub r3, r3, #0x2000
200
201 msr CPSR_c, #0xD3 /* Supervisory mode, interrupts disabled. */
202
203 mov sp, r3
204 sub r3, r3, #0x8000 /* Min size 32k. */
205 bic r3, r3, #0x00FF /* Align with current 64k block. */
206 bic r3, r3, #0xFF00
207
208 str r3, [r3, #-4] /* Move value into user mode sp without */
209 ldmdb r3, {sp}^ /* changing modes, via '^' form of ldm. */
210 orr r2, r2, #0xC0 /* Back to original mode, presumably SVC, */
211 msr CPSR_c, r2 /* with FIQ/IRQ disable bits forced to 1. */
212 #endif
213 .LC23:
214 /* Setup a default stack-limit in-case the code has been
215 compiled with "-mapcs-stack-check". Hard-wiring this value
216 is not ideal, since there is currently no support for
217 checking that the heap and stack have not collided, or that
218 this default 64k is enough for the program being executed.
219 However, it ensures that this simple crt0 world will not
220 immediately cause an overflow event: */
221 #ifdef __ARM_ARCH_6M__
222 movs r2, #64
223 lsls r2, r2, #10
224 subs r2, r3, r2
225 mov sl, r2
226 #else
227 sub sl, r3, #64 << 10 /* Still assumes 256bytes below sl. */
228 #endif
348
349 /* We don't care of r2 value in standalone. */
350 bl FUNCTION (_stack_init)
351
229352 #endif
230353 #endif
231354 /* Zero the memory in the .bss section. */
276399 movs r1, r0
277400 #else
278401 movs r0, #AngelSWI_Reason_GetCmdLine
279 adr r1, .LC30 /* Space for command line. */
402 ldr r1, .LC30 /* Space for command line. */
280403 #ifdef THUMB_VXM
281404 bkpt AngelSWI
282405 #else
283406 AngelSWIAsm AngelSWI
284407 #endif
285408 ldr r1, .LC30
409 ldr r1, [r1]
286410 #endif
287411 /* Parse string at r1. */
288412 movs r0, #0 /* Count of arguments so far. */
393517 for _fini to be called at program exit. */
394518 movs r4, r0
395519 movs r5, r1
520 #ifdef _LITE_EXIT
521 /* Make reference to atexit weak to avoid unconditionally pulling in
522 support code. Refer to comments in __atexit.c for more details. */
523 .weak FUNCTION(atexit)
524 ldr r0, .Latexit
525 cmp r0, #0
526 beq .Lweak_atexit
527 #endif
396528 ldr r0, .Lfini
397529 bl FUNCTION (atexit)
530 .Lweak_atexit:
398531 bl FUNCTION (_init)
399532 movs r0, r4
400533 movs r1, r5
401 #endif
534 #endif
402535 bl FUNCTION (main)
403536
404537 bl FUNCTION (exit) /* Should not return. */
414547 /* Halt the execution. This code should never be executed. */
415548 /* With no debug monitor, this probably aborts (eventually).
416549 With a Demon debug monitor, this halts cleanly.
417 With an Angel debug monitor, this will report 'Unknown SWI'. */
550 With an Angel debug monitor, this will report 'Unknown SWI'. */
418551 swi SWI_Exit
419552 #endif
420553
554 FN_EH_END
555
421556 /* For Thumb, constants must be after the code since only
422 positive offsets are supported for PC relative addresses. */
557 positive offsets are supported for PC relative addresses. */
423558 .align 0
424559 .LC0:
425560 #ifdef ARM_RDI_MONITOR
429564 /* Changes by toralf: Provide alternative "stack" variable whose value
430565 may be defined externally; .Lstack will be used instead of .LC0 if
431566 it points to a non-0 value. Also set up references to "hooks" that
432 may be used by the application to provide additional init code. */
567 may be used by the application to provide additional init code. */
433568 #ifdef __pe__
434569 .word 0x800000
435570 #else
436571 .word 0x80000 /* Top of RAM on the PIE board. */
437572 #endif
438
439 .Lstack:
440 .word __stack
441573 .Lhwinit:
442574 .word FUNCTION (hardware_init_hook)
443575 .Lswinit:
448580 runtime (meaning "ignore setting") for the variables, when the user
449581 does not provide the symbols. (The linker uses a weak symbol if,
450582 and only if, a normal version of the same symbol isn't provided
451 e.g. by a linker script or another object file). */
452
453 .weak __stack
583 e.g. by a linker script or another object file.) */
584
454585 .weak FUNCTION (hardware_init_hook)
455586 .weak FUNCTION (software_init_hook)
456587 #endif
457588
458589 #endif
459 #if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
460 /* Protect against unhandled exceptions. */
461 .cantunwind
462 .fnend
463 #endif
590
591 .Lstack:
592 .word __stack
593 .weak __stack
594
464595 .LC1:
465596 .word __bss_start__
466597 .LC2:
467598 .word __bss_end__
468599 #ifdef __USES_INITFINI__
600 #ifdef _LITE_EXIT
601 .Latexit:
602 .word FUNCTION(atexit)
603
604 /* Weak reference _fini in case of lite exit. */
605 .weak FUNCTION(_fini)
606 #endif
469607 .Lfini:
470608 .word FUNCTION(_fini)
471609 #endif
472610 #ifdef ARM_RDI_MONITOR
473611 .LC30:
474 .word CommandLine
475 .word 255
612 .word AngelSWIArgs
476613 .LC31:
477614 .word __end__
478615
485622 __stack_base__: .word 0
486623 StackLimit: .word 0
487624 CommandLine: .space 256,0 /* Maximum length of 255 chars handled. */
625 AngelSWIArgs:
626 .word CommandLine
627 .word 255
488628 #endif
489629
490630 #ifdef __pe__
+0
-25
newlib/libc/sys/arm/sys/param.h less more
0 /* ARM configuration file; HZ is 100 rather than the default 60 */
1
2 #ifndef _SYS_PARAM_H
3 # define _SYS_PARAM_H
4
5 #include <machine/param.h>
6 #include <machine/endian.h>
7
8 #ifndef NBBY
9 # define NBBY 8 /* number of bits in a byte */
10 #endif
11 #ifndef HZ
12 # define HZ (60)
13 #endif
14 #ifndef NOFILE
15 # define NOFILE (60)
16 #endif
17 #ifndef PATHSIZE
18 # define PATHSIZE (1024)
19 #endif
20
21 #define MAX(a,b) ((a) > (b) ? (a) : (b))
22 #define MIN(a,b) ((a) < (b) ? (a) : (b))
23
24 #endif
113113 initialise_monitor_handles (void)
114114 {
115115 int i;
116
117 /* Open the standard file descriptors by opening the special
118 * teletype device, ":tt", read-only to obtain a descriptor for
119 * standard input and write-only to obtain a descriptor for standard
120 * output. Finally, open ":tt" in append mode to obtain a descriptor
121 * for standard error. Since this is a write mode, most kernels will
122 * probably return the same value as for standard output, but the
123 * kernel can differentiate the two using the mode flag and return a
124 * different descriptor for standard error.
125 */
116126
117127 #ifdef ARM_RDI_MONITOR
118128 int volatile block[3];
162172 return do_AngelSWI (AngelSWI_Reason_Errno, NULL);
163173 #else
164174 register int r0 asm("r0");
165 asm ("swi %a1" : "=r"(r0): "i" (SWI_GetErrno));
175 asm ("swi %a1" : "=r"(r0) : "i" (SWI_GetErrno));
166176 return r0;
167177 #endif
168178 }
169179
180 /* Set errno and return result. */
170181 static int
171182 error (int result)
172183 {
182193 return result;
183194 }
184195
185 /* Returns # chars not! written. */
196 /* file, is a valid user file handle.
197 ptr, is a null terminated string.
198 len, is the length in bytes to read.
199 Returns the number of bytes *not* written. */
186200 int
187201 _swiread (int file, void * ptr, size_t len)
188202 {
206220 #endif
207221 }
208222
223 /* file, is a valid user file handle.
224 Translates the return of _swiread into
225 bytes read. */
209226 int __attribute__((weak))
210227 _read (int file, void * ptr, size_t len)
211228 {
222239 return len - x;
223240 }
224241
242 /* file, is a user file descriptor. */
225243 off_t
226244 _swilseek (int file, off_t ptr, int dir)
227245 {
228246 _off_t res;
229247 int fh = remap_handle (file);
230248 int slot = findslot (fh);
231 #ifdef ARM_RDI_MONITOR
232 int block[2];
233 #endif
234249
235250 if (dir == SEEK_CUR)
236251 {
248263 }
249264
250265 #ifdef ARM_RDI_MONITOR
266 int block[2];
251267 if (dir == SEEK_END)
252268 {
253269 block[0] = fh;
293309 return wrap (_swilseek (file, ptr, dir));
294310 }
295311
296 /* Returns #chars not! written. */
312 /* file, is a valid internal file handle.
313 Returns the number of bytes *not* written. */
297314 int
298315 _swiwrite (int file, const void * ptr, size_t len)
299316 {
318335 #endif
319336 }
320337
338 /* file, is a user file descriptor. */
321339 int __attribute__((weak))
322340 _write (int file, const void * ptr, size_t len)
323341 {
365383
366384 if (flags & O_APPEND)
367385 {
368 aflags &= ~4; /* Can't ask for w AND a; means just 'a'. */
386 aflags &= ~4; /* Can't ask for w AND a; means just 'a'. */
369387 aflags |= 8;
370388 }
371389
486504 return (pid_t)1;
487505 }
488506
507 /* Heap limit returned from SYS_HEAPINFO Angel semihost call. */
508 uint __heap_limit = 0xcafedead;
509
489510 void * __attribute__((weak))
490511 _sbrk (ptrdiff_t incr)
491512 {
492 extern char end asm ("end"); /* Defined by the linker. */
513 extern char end asm ("end"); /* Defined by the linker. */
493514 static char * heap_end;
494515 char * prev_heap_end;
495516
498519
499520 prev_heap_end = heap_end;
500521
501 if (heap_end + incr > stack_ptr)
522 if ((heap_end + incr > stack_ptr)
523 /* Honour heap limit if it's valid. */
524 || (__heap_limit != 0xcafedead && heap_end + incr > (char *)__heap_limit))
502525 {
503526 /* Some of the libstdc++-v3 tests rely upon detecting
504527 out of memory errors, so do not abort here. */
521544
522545 extern void memset (struct stat *, int, unsigned int);
523546
524 int
547 int __attribute__((weak))
525548 _fstat (int file, struct stat * st)
526549 {
527550 memset (st, 0, sizeof (* st));
531554 file = file;
532555 }
533556
534 int _stat (const char *fname, struct stat *st)
557 int __attribute__((weak))
558 _stat (const char *fname, struct stat *st)
535559 {
536560 int file;
537561
547571 return 0;
548572 }
549573
550 int
551 _link (const char *__path1 __attribute__ ((unused)),
552 const char *__path2 __attribute__ ((unused)))
574 int __attribute__((weak))
575 _link (const char *__path1 __attribute__ ((unused)), const char *__path2 __attribute__ ((unused)))
553576 {
554577 errno = ENOSYS;
555578 return -1;
556579 }
557580
558581 int
559 _unlink (const char *path __attribute__ ((unused)))
582 _unlink (const char *path)
560583 {
561584 #ifdef ARM_RDI_MONITOR
562585 int block[2];
563 block[0] = (int) path;
586 block[0] = (int)path;
564587 block[1] = strlen(path);
565588 return wrap (do_AngelSWI (AngelSWI_Reason_Remove, block)) ? -1 : 0;
566589 #else
653676 meaning to its return value. Try to do something reasonable.... */
654677 if (!s)
655678 return 1; /* maybe there is a shell available? we can hope. :-P */
656 block[0] = (int) s;
679 block[0] = (int)s;
657680 block[1] = strlen (s);
658681 e = wrap (do_AngelSWI (AngelSWI_Reason_System, block));
659682 if ((e >= 0) && (e < 256))
660683 {
661684 /* We have to convert e, an exit status to the encoded status of
662 the command. To avoid hard coding the exit status, we simply
685 the command. To avoid hard coding the exit status, we simply
663686 loop until we find the right position. */
664687 int exit_code;
665688
00 /* Run-time exception support */
1 #if !defined(__thumb2__)
1 #ifndef __ARM_EABI__
22 #include "swi.h"
33
44 /* .text is used instead of .section .text so it works with arm-aout too. */
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
786786 CPPFLAGS
787787 CPP'
788788 ac_subdirs_all='a29khif
789 amdgcn
789790 arm
790791 d10v
791792 decstation
13531354 # Omit some internal or obsolete options to make the list less imposing.
13541355 # This message is too long to be a string in the A/UX 3.1 sh.
13551356 cat <<_ACEOF
1356 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1357 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13571358
13581359 Usage: $0 [OPTION]... [VAR=VALUE]...
13591360
14231424
14241425 if test -n "$ac_init_help"; then
14251426 case $ac_init_help in
1426 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1427 short | recursive ) echo "Configuration of newlib 3.3.0:";;
14271428 esac
14281429 cat <<\_ACEOF
14291430
15351536 test -n "$ac_init_help" && exit $ac_status
15361537 if $ac_init_version; then
15371538 cat <<\_ACEOF
1538 newlib configure 3.1.0
1539 newlib configure 3.3.0
15391540 generated by GNU Autoconf 2.68
15401541
15411542 Copyright (C) 2010 Free Software Foundation, Inc.
18131814 This file contains any messages produced by compilers while
18141815 running configure, to aid debugging if configure makes a mistake.
18151816
1816 It was created by newlib $as_me 3.1.0, which was
1817 It was created by newlib $as_me 3.3.0, which was
18171818 generated by GNU Autoconf 2.68. Invocation command line was
18181819
18191820 $ $0 $@
28972898
28982899 # Define the identity of the package.
28992900 PACKAGE='newlib'
2900 VERSION='3.1.0'
2901 VERSION='3.3.0'
29012902
29022903
29032904 # Some tools Automake needs.
1147311474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1147411475 lt_status=$lt_dlunknown
1147511476 cat > conftest.$ac_ext <<_LT_EOF
11476 #line 11477 "configure"
11477 #line 11478 "configure"
1147711478 #include "confdefs.h"
1147811479
1147911480 #if HAVE_DLFCN_H
1157911580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1158011581 lt_status=$lt_dlunknown
1158111582 cat > conftest.$ac_ext <<_LT_EOF
11582 #line 11583 "configure"
11583 #line 11584 "configure"
1158311584 #include "confdefs.h"
1158411585
1158511586 #if HAVE_DLFCN_H
1182311824 a29khif)
1182411825
1182511826 subdirs="$subdirs a29khif"
11827 ;;
11828 amdgcn) subdirs="$subdirs amdgcn"
1182611829 ;;
1182711830 arm) subdirs="$subdirs arm"
1182811831 ;;
1250612509 # report actual input values of CONFIG_FILES etc. instead of their
1250712510 # values after options handling.
1250812511 ac_log="
12509 This file was extended by newlib $as_me 3.1.0, which was
12512 This file was extended by newlib $as_me 3.3.0, which was
1251012513 generated by GNU Autoconf 2.68. Invocation command line was
1251112514
1251212515 CONFIG_FILES = $CONFIG_FILES
1256312566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1256412567 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1256512568 ac_cs_version="\\
12566 newlib config.status 3.1.0
12569 newlib config.status 3.3.0
1256712570 configured by $0, generated by GNU Autoconf 2.68,
1256812571 with options \\"\$ac_cs_config\\"
1256912572
2222 if test -n "${sys_dir}"; then
2323 case ${sys_dir} in
2424 a29khif) AC_CONFIG_SUBDIRS(a29khif) ;;
25 amdgcn) AC_CONFIG_SUBDIRS(amdgcn) ;;
2526 arm) AC_CONFIG_SUBDIRS(arm) ;;
2627 d10v) AC_CONFIG_SUBDIRS(d10v) ;;
2728 decstation) AC_CONFIG_SUBDIRS(decstation) ;;
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13281328 # Omit some internal or obsolete options to make the list less imposing.
13291329 # This message is too long to be a string in the A/UX 3.1 sh.
13301330 cat <<_ACEOF
1331 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1331 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13321332
13331333 Usage: $0 [OPTION]... [VAR=VALUE]...
13341334
13981398
13991399 if test -n "$ac_init_help"; then
14001400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1401 short | recursive ) echo "Configuration of newlib 3.3.0:";;
14021402 esac
14031403 cat <<\_ACEOF
14041404
15101510 test -n "$ac_init_help" && exit $ac_status
15111511 if $ac_init_version; then
15121512 cat <<\_ACEOF
1513 newlib configure 3.1.0
1513 newlib configure 3.3.0
15141514 generated by GNU Autoconf 2.68
15151515
15161516 Copyright (C) 2010 Free Software Foundation, Inc.
17881788 This file contains any messages produced by compilers while
17891789 running configure, to aid debugging if configure makes a mistake.
17901790
1791 It was created by newlib $as_me 3.1.0, which was
1791 It was created by newlib $as_me 3.3.0, which was
17921792 generated by GNU Autoconf 2.68. Invocation command line was
17931793
17941794 $ $0 $@
28722872
28732873 # Define the identity of the package.
28742874 PACKAGE='newlib'
2875 VERSION='3.1.0'
2875 VERSION='3.3.0'
28762876
28772877
28782878 # Some tools Automake needs.
1247612476 # report actual input values of CONFIG_FILES etc. instead of their
1247712477 # values after options handling.
1247812478 ac_log="
12479 This file was extended by newlib $as_me 3.1.0, which was
12479 This file was extended by newlib $as_me 3.3.0, which was
1248012480 generated by GNU Autoconf 2.68. Invocation command line was
1248112481
1248212482 CONFIG_FILES = $CONFIG_FILES
1253312533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1253412534 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1253512535 ac_cs_version="\\
12536 newlib config.status 3.1.0
12536 newlib config.status 3.3.0
1253712537 configured by $0, generated by GNU Autoconf 2.68,
1253812538 with options \\"\$ac_cs_config\\"
1253912539
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13261326 # Omit some internal or obsolete options to make the list less imposing.
13271327 # This message is too long to be a string in the A/UX 3.1 sh.
13281328 cat <<_ACEOF
1329 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1329 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13301330
13311331 Usage: $0 [OPTION]... [VAR=VALUE]...
13321332
13961396
13971397 if test -n "$ac_init_help"; then
13981398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1399 short | recursive ) echo "Configuration of newlib 3.3.0:";;
14001400 esac
14011401 cat <<\_ACEOF
14021402
15081508 test -n "$ac_init_help" && exit $ac_status
15091509 if $ac_init_version; then
15101510 cat <<\_ACEOF
1511 newlib configure 3.1.0
1511 newlib configure 3.3.0
15121512 generated by GNU Autoconf 2.68
15131513
15141514 Copyright (C) 2010 Free Software Foundation, Inc.
17861786 This file contains any messages produced by compilers while
17871787 running configure, to aid debugging if configure makes a mistake.
17881788
1789 It was created by newlib $as_me 3.1.0, which was
1789 It was created by newlib $as_me 3.3.0, which was
17901790 generated by GNU Autoconf 2.68. Invocation command line was
17911791
17921792 $ $0 $@
28702870
28712871 # Define the identity of the package.
28722872 PACKAGE='newlib'
2873 VERSION='3.1.0'
2873 VERSION='3.3.0'
28742874
28752875
28762876 # Some tools Automake needs.
1245312453 # report actual input values of CONFIG_FILES etc. instead of their
1245412454 # values after options handling.
1245512455 ac_log="
12456 This file was extended by newlib $as_me 3.1.0, which was
12456 This file was extended by newlib $as_me 3.3.0, which was
1245712457 generated by GNU Autoconf 2.68. Invocation command line was
1245812458
1245912459 CONFIG_FILES = $CONFIG_FILES
1251012510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1251112511 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1251212512 ac_cs_version="\\
12513 newlib config.status 3.1.0
12513 newlib config.status 3.3.0
1251412514 configured by $0, generated by GNU Autoconf 2.68,
1251512515 with options \\"\$ac_cs_config\\"
1251612516
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13261326 # Omit some internal or obsolete options to make the list less imposing.
13271327 # This message is too long to be a string in the A/UX 3.1 sh.
13281328 cat <<_ACEOF
1329 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1329 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13301330
13311331 Usage: $0 [OPTION]... [VAR=VALUE]...
13321332
13961396
13971397 if test -n "$ac_init_help"; then
13981398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1399 short | recursive ) echo "Configuration of newlib 3.3.0:";;
14001400 esac
14011401 cat <<\_ACEOF
14021402
15081508 test -n "$ac_init_help" && exit $ac_status
15091509 if $ac_init_version; then
15101510 cat <<\_ACEOF
1511 newlib configure 3.1.0
1511 newlib configure 3.3.0
15121512 generated by GNU Autoconf 2.68
15131513
15141514 Copyright (C) 2010 Free Software Foundation, Inc.
17861786 This file contains any messages produced by compilers while
17871787 running configure, to aid debugging if configure makes a mistake.
17881788
1789 It was created by newlib $as_me 3.1.0, which was
1789 It was created by newlib $as_me 3.3.0, which was
17901790 generated by GNU Autoconf 2.68. Invocation command line was
17911791
17921792 $ $0 $@
28702870
28712871 # Define the identity of the package.
28722872 PACKAGE='newlib'
2873 VERSION='3.1.0'
2873 VERSION='3.3.0'
28742874
28752875
28762876 # Some tools Automake needs.
1242112421 # report actual input values of CONFIG_FILES etc. instead of their
1242212422 # values after options handling.
1242312423 ac_log="
12424 This file was extended by newlib $as_me 3.1.0, which was
12424 This file was extended by newlib $as_me 3.3.0, which was
1242512425 generated by GNU Autoconf 2.68. Invocation command line was
1242612426
1242712427 CONFIG_FILES = $CONFIG_FILES
1247812478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1247912479 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1248012480 ac_cs_version="\\
12481 newlib config.status 3.1.0
12481 newlib config.status 3.3.0
1248212482 configured by $0, generated by GNU Autoconf 2.68,
1248312483 with options \\"\$ac_cs_config\\"
1248412484
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13221322 # Omit some internal or obsolete options to make the list less imposing.
13231323 # This message is too long to be a string in the A/UX 3.1 sh.
13241324 cat <<_ACEOF
1325 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1325 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13261326
13271327 Usage: $0 [OPTION]... [VAR=VALUE]...
13281328
13921392
13931393 if test -n "$ac_init_help"; then
13941394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1395 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13961396 esac
13971397 cat <<\_ACEOF
13981398
15041504 test -n "$ac_init_help" && exit $ac_status
15051505 if $ac_init_version; then
15061506 cat <<\_ACEOF
1507 newlib configure 3.1.0
1507 newlib configure 3.3.0
15081508 generated by GNU Autoconf 2.68
15091509
15101510 Copyright (C) 2010 Free Software Foundation, Inc.
17821782 This file contains any messages produced by compilers while
17831783 running configure, to aid debugging if configure makes a mistake.
17841784
1785 It was created by newlib $as_me 3.1.0, which was
1785 It was created by newlib $as_me 3.3.0, which was
17861786 generated by GNU Autoconf 2.68. Invocation command line was
17871787
17881788 $ $0 $@
28662866
28672867 # Define the identity of the package.
28682868 PACKAGE='newlib'
2869 VERSION='3.1.0'
2869 VERSION='3.3.0'
28702870
28712871
28722872 # Some tools Automake needs.
1243712437 # report actual input values of CONFIG_FILES etc. instead of their
1243812438 # values after options handling.
1243912439 ac_log="
12440 This file was extended by newlib $as_me 3.1.0, which was
12440 This file was extended by newlib $as_me 3.3.0, which was
1244112441 generated by GNU Autoconf 2.68. Invocation command line was
1244212442
1244312443 CONFIG_FILES = $CONFIG_FILES
1249412494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1249512495 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1249612496 ac_cs_version="\\
12497 newlib config.status 3.1.0
12497 newlib config.status 3.3.0
1249812498 configured by $0, generated by GNU Autoconf 2.68,
1249912499 with options \\"\$ac_cs_config\\"
1250012500
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13271327 # Omit some internal or obsolete options to make the list less imposing.
13281328 # This message is too long to be a string in the A/UX 3.1 sh.
13291329 cat <<_ACEOF
1330 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1330 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13311331
13321332 Usage: $0 [OPTION]... [VAR=VALUE]...
13331333
13971397
13981398 if test -n "$ac_init_help"; then
13991399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1400 short | recursive ) echo "Configuration of newlib 3.3.0:";;
14011401 esac
14021402 cat <<\_ACEOF
14031403
15091509 test -n "$ac_init_help" && exit $ac_status
15101510 if $ac_init_version; then
15111511 cat <<\_ACEOF
1512 newlib configure 3.1.0
1512 newlib configure 3.3.0
15131513 generated by GNU Autoconf 2.68
15141514
15151515 Copyright (C) 2010 Free Software Foundation, Inc.
17871787 This file contains any messages produced by compilers while
17881788 running configure, to aid debugging if configure makes a mistake.
17891789
1790 It was created by newlib $as_me 3.1.0, which was
1790 It was created by newlib $as_me 3.3.0, which was
17911791 generated by GNU Autoconf 2.68. Invocation command line was
17921792
17931793 $ $0 $@
28712871
28722872 # Define the identity of the package.
28732873 PACKAGE='newlib'
2874 VERSION='3.1.0'
2874 VERSION='3.3.0'
28752875
28762876
28772877 # Some tools Automake needs.
1242812428 # report actual input values of CONFIG_FILES etc. instead of their
1242912429 # values after options handling.
1243012430 ac_log="
12431 This file was extended by newlib $as_me 3.1.0, which was
12431 This file was extended by newlib $as_me 3.3.0, which was
1243212432 generated by GNU Autoconf 2.68. Invocation command line was
1243312433
1243412434 CONFIG_FILES = $CONFIG_FILES
1248512485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1248612486 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1248712487 ac_cs_version="\\
12488 newlib config.status 3.1.0
12488 newlib config.status 3.3.0
1248912489 configured by $0, generated by GNU Autoconf 2.68,
1249012490 with options \\"\$ac_cs_config\\"
1249112491
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13221322 # Omit some internal or obsolete options to make the list less imposing.
13231323 # This message is too long to be a string in the A/UX 3.1 sh.
13241324 cat <<_ACEOF
1325 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1325 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13261326
13271327 Usage: $0 [OPTION]... [VAR=VALUE]...
13281328
13921392
13931393 if test -n "$ac_init_help"; then
13941394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1395 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13961396 esac
13971397 cat <<\_ACEOF
13981398
15041504 test -n "$ac_init_help" && exit $ac_status
15051505 if $ac_init_version; then
15061506 cat <<\_ACEOF
1507 newlib configure 3.1.0
1507 newlib configure 3.3.0
15081508 generated by GNU Autoconf 2.68
15091509
15101510 Copyright (C) 2010 Free Software Foundation, Inc.
17821782 This file contains any messages produced by compilers while
17831783 running configure, to aid debugging if configure makes a mistake.
17841784
1785 It was created by newlib $as_me 3.1.0, which was
1785 It was created by newlib $as_me 3.3.0, which was
17861786 generated by GNU Autoconf 2.68. Invocation command line was
17871787
17881788 $ $0 $@
28662866
28672867 # Define the identity of the package.
28682868 PACKAGE='newlib'
2869 VERSION='3.1.0'
2869 VERSION='3.3.0'
28702870
28712871
28722872 # Some tools Automake needs.
1243712437 # report actual input values of CONFIG_FILES etc. instead of their
1243812438 # values after options handling.
1243912439 ac_log="
12440 This file was extended by newlib $as_me 3.1.0, which was
12440 This file was extended by newlib $as_me 3.3.0, which was
1244112441 generated by GNU Autoconf 2.68. Invocation command line was
1244212442
1244312443 CONFIG_FILES = $CONFIG_FILES
1249412494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1249512495 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1249612496 ac_cs_version="\\
12497 newlib config.status 3.1.0
12497 newlib config.status 3.3.0
1249812498 configured by $0, generated by GNU Autoconf 2.68,
1249912499 with options \\"\$ac_cs_config\\"
1250012500
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12421242 # Omit some internal or obsolete options to make the list less imposing.
12431243 # This message is too long to be a string in the A/UX 3.1 sh.
12441244 cat <<_ACEOF
1245 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1245 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12461246
12471247 Usage: $0 [OPTION]... [VAR=VALUE]...
12481248
13121312
13131313 if test -n "$ac_init_help"; then
13141314 case $ac_init_help in
1315 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1315 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13161316 esac
13171317 cat <<\_ACEOF
13181318
14041404 test -n "$ac_init_help" && exit $ac_status
14051405 if $ac_init_version; then
14061406 cat <<\_ACEOF
1407 newlib configure 3.1.0
1407 newlib configure 3.3.0
14081408 generated by GNU Autoconf 2.68
14091409
14101410 Copyright (C) 2010 Free Software Foundation, Inc.
14591459 This file contains any messages produced by compilers while
14601460 running configure, to aid debugging if configure makes a mistake.
14611461
1462 It was created by newlib $as_me 3.1.0, which was
1462 It was created by newlib $as_me 3.3.0, which was
14631463 generated by GNU Autoconf 2.68. Invocation command line was
14641464
14651465 $ $0 $@
25432543
25442544 # Define the identity of the package.
25452545 PACKAGE='newlib'
2546 VERSION='3.1.0'
2546 VERSION='3.3.0'
25472547
25482548
25492549 # Some tools Automake needs.
40354035 # report actual input values of CONFIG_FILES etc. instead of their
40364036 # values after options handling.
40374037 ac_log="
4038 This file was extended by newlib $as_me 3.1.0, which was
4038 This file was extended by newlib $as_me 3.3.0, which was
40394039 generated by GNU Autoconf 2.68. Invocation command line was
40404040
40414041 CONFIG_FILES = $CONFIG_FILES
40924092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40934093 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40944094 ac_cs_version="\\
4095 newlib config.status 3.1.0
4095 newlib config.status 3.3.0
40964096 configured by $0, generated by GNU Autoconf 2.68,
40974097 with options \\"\$ac_cs_config\\"
40984098
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
6161 #define _LWPID_T_DECLARED
6262 #endif
6363
64 #if ___int64_t_defined
65 typedef __uint64_t u_quad_t;
66 typedef __int64_t quad_t;
67 typedef quad_t * qaddr_t;
68 #endif
69
6470 #ifndef _RLIM_T_DECLARED
6571 typedef __rlim_t rlim_t; /* resource limit */
6672 #define _RLIM_T_DECLARED
2828 * SUCH DAMAGE.
2929 *
3030 * @(#)if.h 8.1 (Berkeley) 6/10/93
31 * $FreeBSD: head/sys/net/if.h 340968 2018-11-26 13:42:18Z markj $
31 * $FreeBSD: head/sys/net/if.h 352458 2019-09-17 18:49:13Z kib $
3232 */
3333
3434 #ifndef _NET_IF_H_
245245 #define IFCAP_HWSTATS 0x800000 /* manages counters internally */
246246 #define IFCAP_TXRTLMT 0x1000000 /* hardware supports TX rate limiting */
247247 #define IFCAP_HWRXTSTMP 0x2000000 /* hardware rx timestamping */
248 #define IFCAP_NOMAP 0x4000000 /* can TX unmapped mbufs */
249 #define IFCAP_TXTLS4 0x8000000 /* can do TLS encryption and segmentation for TCP */
250 #define IFCAP_TXTLS6 0x10000000 /* can do TLS encryption and segmentation for TCP6 */
248251
249252 #define IFCAP_HWCSUM_IPV6 (IFCAP_RXCSUM_IPV6 | IFCAP_TXCSUM_IPV6)
250253
252255 #define IFCAP_TSO (IFCAP_TSO4 | IFCAP_TSO6)
253256 #define IFCAP_WOL (IFCAP_WOL_UCAST | IFCAP_WOL_MCAST | IFCAP_WOL_MAGIC)
254257 #define IFCAP_TOE (IFCAP_TOE4 | IFCAP_TOE6)
258 #define IFCAP_TXTLS (IFCAP_TXTLS4 | IFCAP_TXTLS6)
255259
256260 #define IFCAP_CANTCHANGE (IFCAP_NETMAP)
257261
580584
581585 #define IFNET_PCP_NONE 0xff /* PCP disabled */
582586
587 #define IFDR_MSG_SIZE 64
588 #define IFDR_REASON_MSG 1
589 #define IFDR_REASON_VENDOR 2
590 struct ifdownreason {
591 char ifdr_name[IFNAMSIZ];
592 uint32_t ifdr_reason;
593 uint32_t ifdr_vendor;
594 char ifdr_msg[IFDR_MSG_SIZE];
595 };
596
583597 #endif /* __BSD_VISIBLE */
584598
585599 #ifndef _KERNEL
5252 /*
5353 * @(#)netdb.h 8.1 (Berkeley) 6/2/93
5454 * From: Id: netdb.h,v 8.9 1996/11/19 08:39:29 vixie Exp $
55 * $FreeBSD: head/include/netdb.h 326695 2017-12-08 15:57:29Z pfg $
55 * $FreeBSD: head/include/netdb.h 342383 2018-12-23 20:51:13Z pfg $
5656 */
5757
5858 #ifndef _NETDB_H_
158158 #define NO_ADDRESS NO_DATA /* no address, look for MX record */
159159
160160 /*
161 * Error return codes from getaddrinfo()
161 * Error return codes from gai_strerror(3), see RFC 3493.
162162 */
163163 #if 0
164 /* obsoleted */
164 /* Obsoleted on RFC 2553bis-02 */
165165 #define EAI_ADDRFAMILY 1 /* address family for hostname not supported */
166166 #endif
167 #define EAI_AGAIN 2 /* temporary failure in name resolution */
168 #define EAI_BADFLAGS 3 /* invalid value for ai_flags */
167 #define EAI_AGAIN 2 /* name could not be resolved at this time */
168 #define EAI_BADFLAGS 3 /* flags parameter had an invalid value */
169169 #define EAI_FAIL 4 /* non-recoverable failure in name resolution */
170 #define EAI_FAMILY 5 /* ai_family not supported */
170 #define EAI_FAMILY 5 /* address family not recognized */
171171 #define EAI_MEMORY 6 /* memory allocation failure */
172172 #if 0
173 /* obsoleted */
173 /* Obsoleted on RFC 2553bis-02 */
174174 #define EAI_NODATA 7 /* no address associated with hostname */
175175 #endif
176 #define EAI_NONAME 8 /* hostname nor servname provided, or not known */
177 #define EAI_SERVICE 9 /* servname not supported for ai_socktype */
178 #define EAI_SOCKTYPE 10 /* ai_socktype not supported */
176 #define EAI_NONAME 8 /* name does not resolve */
177 #define EAI_SERVICE 9 /* service not recognized for socket type */
178 #define EAI_SOCKTYPE 10 /* intended socket type was not recognized */
179179 #define EAI_SYSTEM 11 /* system error returned in errno */
180180 #define EAI_BADHINTS 12 /* invalid value for hints */
181181 #define EAI_PROTOCOL 13 /* resolved protocol is unknown */
2828 * SUCH DAMAGE.
2929 *
3030 * @(#)in.h 8.3 (Berkeley) 1/3/94
31 * $FreeBSD: head/sys/netinet/in.h 326023 2017-11-20 19:43:44Z pfg $
31 * $FreeBSD: head/sys/netinet/in.h 350749 2019-08-08 11:43:09Z thj $
3232 */
3333
3434 #ifndef _NETINET_IN_H_
168168 #define IPPROTO_BLT 30 /* Bulk Data Transfer */
169169 #define IPPROTO_NSP 31 /* Network Services */
170170 #define IPPROTO_INP 32 /* Merit Internodal */
171 #define IPPROTO_SEP 33 /* Sequential Exchange */
171 #define IPPROTO_DCCP 33 /* Datagram Congestion Control Protocol */
172172 #define IPPROTO_3PC 34 /* Third Party Connect */
173173 #define IPPROTO_IDPR 35 /* InterDomain Policy Routing */
174174 #define IPPROTO_XTP 36 /* XTP */
504504 #define IP_DEFAULT_MULTICAST_LOOP 1 /* normally hear sends if a member */
505505
506506 /*
507 * The imo_membership vector for each socket is now dynamically allocated at
508 * run-time, bounded by USHRT_MAX, and is reallocated when needed, sized
509 * according to a power-of-two increment.
510 */
511 #define IP_MIN_MEMBERSHIPS 31
507 * Limit for IPv4 multicast memberships
508 */
512509 #define IP_MAX_MEMBERSHIPS 4095
513 #define IP_MAX_SOURCE_FILTER 1024 /* XXX to be unused */
514510
515511 /*
516512 * Default resource limits for IPv4 multicast source filtering.
2828 * SUCH DAMAGE.
2929 *
3030 * @(#)tcp.h 8.1 (Berkeley) 6/10/93
31 * $FreeBSD: head/sys/netinet/tcp.h 334804 2018-06-07 18:18:13Z rrs $
31 * $FreeBSD: head/sys/netinet/tcp.h 351522 2019-08-27 00:01:56Z jhb $
3232 */
3333
3434 #ifndef _NETINET_TCP_H_
173173 #define TCP_LOGDUMP 37 /* dump connection log events to device */
174174 #define TCP_LOGDUMPID 38 /* dump events from connections with same ID to
175175 device */
176 #define TCP_TXTLS_ENABLE 39 /* TLS framing and encryption for transmit */
177 #define TCP_TXTLS_MODE 40 /* Transmit TLS mode */
176178 #define TCP_CONGESTION 64 /* get/set congestion control algorithm */
177179 #define TCP_CCALGOOPT 65 /* get/set cc algorithm specific options */
178180 #define TCP_DELACK 72 /* socket option for delayed ack */
200202 #define TCP_RACK_TLP_THRESH 1063 /* RACK TLP theshold i.e. srtt+(srtt/N) */
201203 #define TCP_RACK_PKT_DELAY 1064 /* RACK added ms i.e. rack-rtt + reord + N */
202204 #define TCP_RACK_TLP_INC_VAR 1065 /* Does TLP include rtt variance in t-o */
203 #define TCP_RACK_SESS_CWV 1066 /* Enable RFC7611 cwnd validation on sess */
204205 #define TCP_BBR_IWINTSO 1067 /* Initial TSO window for BBRs first sends */
205 #define TCP_BBR_RECFORCE 1068 /* Enter recovery force out a segment disregard pacer */
206 #define TCP_BBR_RECFORCE 1068 /* Enter recovery force out a segment disregard pacer no longer valid */
206207 #define TCP_BBR_STARTUP_PG 1069 /* Startup pacing gain */
207208 #define TCP_BBR_DRAIN_PG 1070 /* Drain pacing gain */
208209 #define TCP_BBR_RWND_IS_APP 1071 /* Rwnd limited is considered app limited */
210211 #define TCP_BBR_ONE_RETRAN 1073 /* Is only one segment allowed out during retran */
211212 #define TCP_BBR_STARTUP_LOSS_EXIT 1074 /* Do we exit a loss during startup if not 20% incr */
212213 #define TCP_BBR_USE_LOWGAIN 1075 /* lower the gain in PROBE_BW enable */
213 #define TCP_BBR_LOWGAIN_THRESH 1076 /* How many cycles do we stay in lowgain */
214 #define TCP_BBR_LOWGAIN_HALF 1077 /* Do we halfstep lowgain down */
215 #define TCP_BBR_LOWGAIN_FD 1078 /* Do we force a drain when lowgain in place */
214 #define TCP_BBR_LOWGAIN_THRESH 1076 /* Unused after 2.3 morphs to TSLIMITS >= 2.3 */
215 #define TCP_BBR_TSLIMITS 1076 /* Do we use experimental Timestamp limiting for our algo */
216 #define TCP_BBR_LOWGAIN_HALF 1077 /* Unused after 2.3 */
217 #define TCP_BBR_PACE_OH 1077 /* Reused in 4.2 for pacing overhead setting */
218 #define TCP_BBR_LOWGAIN_FD 1078 /* Unused after 2.3 */
219 #define TCP_BBR_HOLD_TARGET 1078 /* For 4.3 on */
216220 #define TCP_BBR_USEDEL_RATE 1079 /* Enable use of delivery rate for loss recovery */
217221 #define TCP_BBR_MIN_RTO 1080 /* Min RTO in milliseconds */
218222 #define TCP_BBR_MAX_RTO 1081 /* Max RTO in milliseconds */
219223 #define TCP_BBR_REC_OVER_HPTS 1082 /* Recovery override htps settings 0/1/3 */
220 #define TCP_BBR_UNLIMITED 1083 /* Does BBR, in non-recovery not use cwnd */
224 #define TCP_BBR_UNLIMITED 1083 /* Not used before 2.3 and morphs to algorithm >= 2.3 */
225 #define TCP_BBR_ALGORITHM 1083 /* What measurement algo does BBR use netflix=0, google=1 */
221226 #define TCP_BBR_DRAIN_INC_EXTRA 1084 /* Does the 3/4 drain target include the extra gain */
222227 #define TCP_BBR_STARTUP_EXIT_EPOCH 1085 /* what epoch gets us out of startup */
223228 #define TCP_BBR_PACE_PER_SEC 1086
226231 #define TCP_BBR_PACE_SEG_MIN 1089
227232 #define TCP_BBR_PACE_CROSS 1090
228233 #define TCP_RACK_IDLE_REDUCE_HIGH 1092 /* Reduce the highest cwnd seen to IW on idle */
229 #define TCP_RACK_IDLE_REDUCE_HIGH 1092 /* Reduce the highest cwnd seen to IW on idle */
230234 #define TCP_RACK_MIN_PACE 1093 /* Do we enforce rack min pace time */
231235 #define TCP_RACK_MIN_PACE_SEG 1094 /* If so what is the seg threshould */
236 #define TCP_RACK_GP_INCREASE 1094 /* After 4.1 its the GP increase */
232237 #define TCP_RACK_TLP_USE 1095
233238 #define TCP_BBR_ACK_COMP_ALG 1096 /* Not used */
239 #define TCP_BBR_TMR_PACE_OH 1096 /* Recycled in 4.2 */
234240 #define TCP_BBR_EXTRA_GAIN 1097
235241 #define TCP_BBR_RACK_RTT_USE 1098 /* what RTT should we use 0, 1, or 2? */
236242 #define TCP_BBR_RETRAN_WTSO 1099
237243 #define TCP_DATA_AFTER_CLOSE 1100
238244 #define TCP_BBR_PROBE_RTT_GAIN 1101
239245 #define TCP_BBR_PROBE_RTT_LEN 1102
246 #define TCP_BBR_SEND_IWND_IN_TSO 1103 /* Do we burst out whole iwin size chunks at start? */
247 #define TCP_BBR_USE_RACK_CHEAT 1104 /* Do we use the rack cheat for pacing rxt's */
248 #define TCP_BBR_HDWR_PACE 1105 /* Enable/disable hardware pacing */
249 #define TCP_BBR_UTTER_MAX_TSO 1106 /* Do we enforce an utter max TSO size */
250 #define TCP_BBR_EXTRA_STATE 1107 /* Special exit-persist catch up */
251 #define TCP_BBR_FLOOR_MIN_TSO 1108 /* The min tso size */
252 #define TCP_BBR_MIN_TOPACEOUT 1109 /* Do we suspend pacing until */
253 #define TCP_BBR_TSTMP_RAISES 1110 /* Can a timestamp measurement raise the b/w */
254 #define TCP_BBR_POLICER_DETECT 1111 /* Turn on/off google mode policer detection */
240255
241256
242257 /* Start of reserved space for third-party user-settable options. */
336351 uint32_t pcbcnt;
337352 };
338353
354 /* TLS modes for TCP_TXTLS_MODE */
355 #define TCP_TLS_MODE_NONE 0
356 #define TCP_TLS_MODE_SW 1
357 #define TCP_TLS_MODE_IFNET 2
358
359 /*
360 * TCP Control message types
361 */
362 #define TLS_SET_RECORD_TYPE 1
363
339364 #endif /* !_NETINET_TCP_H_ */
5959 * SUCH DAMAGE.
6060 *
6161 * @(#)in.h 8.3 (Berkeley) 1/3/94
62 * $FreeBSD: head/sys/netinet6/in6.h 337783 2018-08-14 17:27:41Z jtl $
62 * $FreeBSD: head/sys/netinet6/in6.h 349369 2019-06-25 11:54:41Z hselasky $
6363 */
6464
6565 #ifndef __KAME_NETINET_IN_H_INCLUDED_
394394 #define IPV6_DEFAULT_MULTICAST_LOOP 1 /* normally hear sends if a member */
395395
396396 /*
397 * The im6o_membership vector for each socket is now dynamically allocated at
398 * run-time, bounded by USHRT_MAX, and is reallocated when needed, sized
399 * according to a power-of-two increment.
400 */
401 #define IPV6_MIN_MEMBERSHIPS 31
397 * Limit for IPv6 multicast memberships
398 */
402399 #define IPV6_MAX_MEMBERSHIPS 4095
403400
404401 /*
2828 * SUCH DAMAGE.
2929 *
3030 * @(#)termios.h 8.3 (Berkeley) 3/28/94
31 * $FreeBSD: head/sys/sys/_termios.h 326023 2017-11-20 19:43:44Z pfg $
31 * $FreeBSD: head/sys/sys/_termios.h 348999 2019-06-12 18:07:04Z shurd $
3232 */
3333
3434 #ifndef _SYS__TERMIOS_H_
142142 #define CDTR_IFLOW 0x00040000 /* DTR flow control of input */
143143 #define CDSR_OFLOW 0x00080000 /* DSR flow control of output */
144144 #define CCAR_OFLOW 0x00100000 /* DCD flow control of output */
145 #define CNO_RTSDTR 0x00200000 /* Do not assert RTS or DTR automatically */
145146 #endif
146147
147148
2828 * SUCH DAMAGE.
2929 *
3030 * @(#)mman.h 8.2 (Berkeley) 1/9/95
31 * $FreeBSD: head/sys/sys/mman.h 326023 2017-11-20 19:43:44Z pfg $
31 * $FreeBSD: head/sys/sys/mman.h 349240 2019-06-20 18:24:16Z brooks $
3232 */
3333
3434 #ifndef _SYS_MMAN_H_
5454 #define PROT_READ 0x01 /* pages can be read */
5555 #define PROT_WRITE 0x02 /* pages can be written */
5656 #define PROT_EXEC 0x04 /* pages can be executed */
57 #if __BSD_VISIBLE
58 #define _PROT_ALL (PROT_READ | PROT_WRITE | PROT_EXEC)
59 #define PROT_EXTRACT(prot) ((prot) & _PROT_ALL)
60
61 #define _PROT_MAX_SHIFT 16
62 #define PROT_MAX(prot) ((prot) << _PROT_MAX_SHIFT)
63 #define PROT_MAX_EXTRACT(prot) (((prot) >> _PROT_MAX_SHIFT) & _PROT_ALL)
64 #endif
5765
5866 /*
5967 * Flags contain sharing type and options.
2828 * SUCH DAMAGE.
2929 *
3030 * @(#)sockio.h 8.1 (Berkeley) 3/28/94
31 * $FreeBSD: head/sys/sys/sockio.h 331622 2018-03-27 15:29:32Z kib $
31 * $FreeBSD: head/sys/sys/sockio.h 352458 2019-09-17 18:49:13Z kib $
3232 */
3333
3434 #ifndef _SYS_SOCKIO_H_
142142 #define SIOCGLANPCP _IOWR('i', 152, struct ifreq) /* Get (V)LAN PCP */
143143 #define SIOCSLANPCP _IOW('i', 153, struct ifreq) /* Set (V)LAN PCP */
144144
145 #define SIOCGIFDOWNREASON _IOWR('i', 154, struct ifdownreason)
146
145147 #endif /* !_SYS_SOCKIO_H_ */
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
77 MATHDIR = math
88 endif
99
10 SUBDIRS = $(MATHDIR) common complex machine
10 SUBDIRS = $(MATHDIR) common complex fenv machine
1111
1212 libm_la_LDFLAGS = -Xcompiler -nostdlib
1313
1414 if USE_LIBTOOL
15 SUBLIBS = $(MATHDIR)/lib$(MATHDIR).$(aext) common/libcommon.$(aext) complex/libcomplex.$(aext) $(LIBM_MACHINE_LIB)
15 SUBLIBS = $(MATHDIR)/lib$(MATHDIR).$(aext) common/libcommon.$(aext) complex/libcomplex.$(aext) fenv/libfenv.$(aext) $(LIBM_MACHINE_LIB)
1616 noinst_LTLIBRARIES = libm.la
1717 libm_la_SOURCES =
1818 libm_la_LIBADD = $(SUBLIBS)
1919 else
20 SUBLIBS = $(MATHDIR)/lib.$(aext) common/lib.$(aext) complex/lib.$(aext) $(LIBM_MACHINE_LIB)
20 SUBLIBS = $(MATHDIR)/lib.$(aext) common/lib.$(aext) complex/lib.$(aext) fenv/lib.$(aext) $(LIBM_MACHINE_LIB)
2121 noinst_LIBRARIES = libm.a
2222 libm.a: $(SUBLIBS)
2323 rm -f $@
3838
3939 libm_TEXINFOS = targetdep.tex
4040
41 libm.dvi: targetdep.tex math/stmp-def complex/stmp-def
41 libm.dvi: targetdep.tex math/stmp-def complex/stmp-def fenv/stmp-def
4242
4343 stmp-targetdep: force
4444 rm -f tmp.texi
5656 math/stmp-def: stmp-targetdep ; @true
5757
5858 complex/stmp-def: stmp-targetdep ; @true
59
60 fenv/stmp-def: stmp-targetdep ; @true
5961
6062 docbook-recursive: force
6163 for d in $(SUBDIRS); do \
7979 am__DEPENDENCIES_1 =
8080 @USE_LIBTOOL_FALSE@am__DEPENDENCIES_2 = $(MATHDIR)/lib.$(aext) \
8181 @USE_LIBTOOL_FALSE@ common/lib.$(aext) complex/lib.$(aext) \
82 @USE_LIBTOOL_FALSE@ $(am__DEPENDENCIES_1)
82 @USE_LIBTOOL_FALSE@ fenv/lib.$(aext) $(am__DEPENDENCIES_1)
8383 @USE_LIBTOOL_TRUE@am__DEPENDENCIES_2 = \
8484 @USE_LIBTOOL_TRUE@ $(MATHDIR)/lib$(MATHDIR).$(aext) \
8585 @USE_LIBTOOL_TRUE@ common/libcommon.$(aext) \
8686 @USE_LIBTOOL_TRUE@ complex/libcomplex.$(aext) \
87 @USE_LIBTOOL_TRUE@ $(am__DEPENDENCIES_1)
87 @USE_LIBTOOL_TRUE@ fenv/libfenv.$(aext) $(am__DEPENDENCIES_1)
8888 @USE_LIBTOOL_TRUE@libm_la_DEPENDENCIES = $(am__DEPENDENCIES_2)
8989 am_libm_la_OBJECTS =
9090 libm_la_OBJECTS = $(am_libm_la_OBJECTS)
167167 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS
168168 ETAGS = etags
169169 CTAGS = ctags
170 DIST_SUBDIRS = math mathfp common complex machine
170 DIST_SUBDIRS = math mathfp common complex fenv machine
171171 ACLOCAL = @ACLOCAL@
172172 AMTAR = @AMTAR@
173173 AR = @AR@
298298 AUTOMAKE_OPTIONS = cygnus
299299 @NEWLIB_HW_FP_FALSE@MATHDIR = math
300300 @NEWLIB_HW_FP_TRUE@MATHDIR = mathfp
301 SUBDIRS = $(MATHDIR) common complex machine
301 SUBDIRS = $(MATHDIR) common complex fenv machine
302302 libm_la_LDFLAGS = -Xcompiler -nostdlib
303 @USE_LIBTOOL_FALSE@SUBLIBS = $(MATHDIR)/lib.$(aext) common/lib.$(aext) complex/lib.$(aext) $(LIBM_MACHINE_LIB)
304 @USE_LIBTOOL_TRUE@SUBLIBS = $(MATHDIR)/lib$(MATHDIR).$(aext) common/libcommon.$(aext) complex/libcomplex.$(aext) $(LIBM_MACHINE_LIB)
303 @USE_LIBTOOL_FALSE@SUBLIBS = $(MATHDIR)/lib.$(aext) common/lib.$(aext) complex/lib.$(aext) fenv/lib.$(aext) $(LIBM_MACHINE_LIB)
304 @USE_LIBTOOL_TRUE@SUBLIBS = $(MATHDIR)/lib$(MATHDIR).$(aext) common/libcommon.$(aext) complex/libcomplex.$(aext) fenv/libfenv.$(aext) $(LIBM_MACHINE_LIB)
305305 @USE_LIBTOOL_TRUE@noinst_LTLIBRARIES = libm.la
306306 @USE_LIBTOOL_TRUE@libm_la_SOURCES =
307307 @USE_LIBTOOL_TRUE@libm_la_LIBADD = $(SUBLIBS)
906906
907907 $(SUBLIBS):
908908
909 libm.dvi: targetdep.tex math/stmp-def complex/stmp-def
909 libm.dvi: targetdep.tex math/stmp-def complex/stmp-def fenv/stmp-def
910910
911911 stmp-targetdep: force
912912 rm -f tmp.texi
925925
926926 complex/stmp-def: stmp-targetdep ; @true
927927
928 fenv/stmp-def: stmp-targetdep ; @true
929
928930 docbook-recursive: force
929931 for d in $(SUBDIRS); do \
930932 if test "$$d" != "."; then \
77 s_cbrt.c s_exp10.c s_expm1.c s_ilogb.c \
88 s_infinity.c s_isinf.c s_isinfd.c s_isnan.c s_isnand.c \
99 s_log1p.c s_nan.c s_nextafter.c s_pow10.c \
10 s_rint.c s_logb.c s_log2.c s_matherr.c s_lib_ver.c \
10 s_rint.c s_logb.c s_log2.c s_lib_ver.c \
1111 s_fdim.c s_fma.c s_fmax.c s_fmin.c s_fpclassify.c \
1212 s_lrint.c s_llrint.c \
1313 s_lround.c s_llround.c s_nearbyint.c s_remquo.c s_round.c s_scalbln.c \
6161 include $(srcdir)/../../Makefile.shared
6262
6363 CHEWOUT_FILES = s_cbrt.def s_copysign.def s_exp10.def s_expm1.def s_ilogb.def \
64 s_infinity.def s_isnan.def s_log1p.def s_matherr.def s_modf.def \
64 s_infinity.def s_isnan.def s_log1p.def s_modf.def \
6565 s_nan.def s_nextafter.def s_pow10.def s_scalbn.def \
6666 s_fdim.def s_fma.def s_fmax.def s_fmin.def \
6767 s_logb.def s_log2.def s_lrint.def s_lround.def s_nearbyint.def \
8484 lib_a-s_nan.$(OBJEXT) lib_a-s_nextafter.$(OBJEXT) \
8585 lib_a-s_pow10.$(OBJEXT) lib_a-s_rint.$(OBJEXT) \
8686 lib_a-s_logb.$(OBJEXT) lib_a-s_log2.$(OBJEXT) \
87 lib_a-s_matherr.$(OBJEXT) lib_a-s_lib_ver.$(OBJEXT) \
88 lib_a-s_fdim.$(OBJEXT) lib_a-s_fma.$(OBJEXT) \
89 lib_a-s_fmax.$(OBJEXT) lib_a-s_fmin.$(OBJEXT) \
90 lib_a-s_fpclassify.$(OBJEXT) lib_a-s_lrint.$(OBJEXT) \
91 lib_a-s_llrint.$(OBJEXT) lib_a-s_lround.$(OBJEXT) \
92 lib_a-s_llround.$(OBJEXT) lib_a-s_nearbyint.$(OBJEXT) \
93 lib_a-s_remquo.$(OBJEXT) lib_a-s_round.$(OBJEXT) \
94 lib_a-s_scalbln.$(OBJEXT) lib_a-s_signbit.$(OBJEXT) \
95 lib_a-s_trunc.$(OBJEXT) lib_a-exp.$(OBJEXT) \
96 lib_a-exp2.$(OBJEXT) lib_a-exp_data.$(OBJEXT) \
97 lib_a-math_err.$(OBJEXT) lib_a-log.$(OBJEXT) \
98 lib_a-log_data.$(OBJEXT) lib_a-log2.$(OBJEXT) \
99 lib_a-log2_data.$(OBJEXT) lib_a-pow.$(OBJEXT) \
100 lib_a-pow_log_data.$(OBJEXT)
87 lib_a-s_lib_ver.$(OBJEXT) lib_a-s_fdim.$(OBJEXT) \
88 lib_a-s_fma.$(OBJEXT) lib_a-s_fmax.$(OBJEXT) \
89 lib_a-s_fmin.$(OBJEXT) lib_a-s_fpclassify.$(OBJEXT) \
90 lib_a-s_lrint.$(OBJEXT) lib_a-s_llrint.$(OBJEXT) \
91 lib_a-s_lround.$(OBJEXT) lib_a-s_llround.$(OBJEXT) \
92 lib_a-s_nearbyint.$(OBJEXT) lib_a-s_remquo.$(OBJEXT) \
93 lib_a-s_round.$(OBJEXT) lib_a-s_scalbln.$(OBJEXT) \
94 lib_a-s_signbit.$(OBJEXT) lib_a-s_trunc.$(OBJEXT) \
95 lib_a-exp.$(OBJEXT) lib_a-exp2.$(OBJEXT) \
96 lib_a-exp_data.$(OBJEXT) lib_a-math_err.$(OBJEXT) \
97 lib_a-log.$(OBJEXT) lib_a-log_data.$(OBJEXT) \
98 lib_a-log2.$(OBJEXT) lib_a-log2_data.$(OBJEXT) \
99 lib_a-pow.$(OBJEXT) lib_a-pow_log_data.$(OBJEXT)
101100 am__objects_2 = lib_a-sf_finite.$(OBJEXT) lib_a-sf_copysign.$(OBJEXT) \
102101 lib_a-sf_modf.$(OBJEXT) lib_a-sf_scalbn.$(OBJEXT) \
103102 lib_a-sf_cbrt.$(OBJEXT) lib_a-sf_exp10.$(OBJEXT) \
163162 s_cbrt.lo s_exp10.lo s_expm1.lo s_ilogb.lo s_infinity.lo \
164163 s_isinf.lo s_isinfd.lo s_isnan.lo s_isnand.lo s_log1p.lo \
165164 s_nan.lo s_nextafter.lo s_pow10.lo s_rint.lo s_logb.lo \
166 s_log2.lo s_matherr.lo s_lib_ver.lo s_fdim.lo s_fma.lo \
167 s_fmax.lo s_fmin.lo s_fpclassify.lo s_lrint.lo s_llrint.lo \
168 s_lround.lo s_llround.lo s_nearbyint.lo s_remquo.lo s_round.lo \
165 s_log2.lo s_lib_ver.lo s_fdim.lo s_fma.lo s_fmax.lo s_fmin.lo \
166 s_fpclassify.lo s_lrint.lo s_llrint.lo s_lround.lo \
167 s_llround.lo s_nearbyint.lo s_remquo.lo s_round.lo \
169168 s_scalbln.lo s_signbit.lo s_trunc.lo exp.lo exp2.lo \
170169 exp_data.lo math_err.lo log.lo log_data.lo log2.lo \
171170 log2_data.lo pow.lo pow_log_data.lo
354353 s_cbrt.c s_exp10.c s_expm1.c s_ilogb.c \
355354 s_infinity.c s_isinf.c s_isinfd.c s_isnan.c s_isnand.c \
356355 s_log1p.c s_nan.c s_nextafter.c s_pow10.c \
357 s_rint.c s_logb.c s_log2.c s_matherr.c s_lib_ver.c \
356 s_rint.c s_logb.c s_log2.c s_lib_ver.c \
358357 s_fdim.c s_fma.c s_fmax.c s_fmin.c s_fpclassify.c \
359358 s_lrint.c s_llrint.c \
360359 s_lround.c s_llround.c s_nearbyint.c s_remquo.c s_round.c s_scalbln.c \
405404 DOCBOOK_CHAPTERS = $(CHAPTERS:.tex=.xml)
406405 CLEANFILES = $(CHEWOUT_FILES) $(DOCBOOK_OUT_FILES)
407406 CHEWOUT_FILES = s_cbrt.def s_copysign.def s_exp10.def s_expm1.def s_ilogb.def \
408 s_infinity.def s_isnan.def s_log1p.def s_matherr.def s_modf.def \
407 s_infinity.def s_isnan.def s_log1p.def s_modf.def \
409408 s_nan.def s_nextafter.def s_pow10.def s_scalbn.def \
410409 s_fdim.def s_fma.def s_fmax.def s_fmin.def \
411410 s_logb.def s_log2.def s_lrint.def s_lround.def s_nearbyint.def \
601600
602601 lib_a-s_log2.obj: s_log2.c
603602 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-s_log2.obj `if test -f 's_log2.c'; then $(CYGPATH_W) 's_log2.c'; else $(CYGPATH_W) '$(srcdir)/s_log2.c'; fi`
604
605 lib_a-s_matherr.o: s_matherr.c
606 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-s_matherr.o `test -f 's_matherr.c' || echo '$(srcdir)/'`s_matherr.c
607
608 lib_a-s_matherr.obj: s_matherr.c
609 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-s_matherr.obj `if test -f 's_matherr.c'; then $(CYGPATH_W) 's_matherr.c'; else $(CYGPATH_W) '$(srcdir)/s_matherr.c'; fi`
610603
611604 lib_a-s_lib_ver.o: s_lib_ver.c
612605 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-s_lib_ver.o `test -f 's_lib_ver.c' || echo '$(srcdir)/'`s_lib_ver.c
1414 #include <math.h>
1515 #include <sys/types.h>
1616 #include <machine/ieeefp.h>
17
18 /* REDHAT LOCAL: Default to XOPEN_MODE. */
19 #define _XOPEN_MODE
2017
2118 /* Most routines need to check whether a float is finite, infinite, or not a
2219 number, and many need to know whether the result of an operation will
5151 if ((! finitel (z)) && finitel (x) && finitel (y))
5252 {
5353 /* hypot (finite, finite) overflow. */
54 struct exception exc;
55
56 exc.type = OVERFLOW;
57 exc.name = "hypotl";
58 exc.err = 0;
59 exc.arg1 = x;
60 exc.arg2 = y;
61
62 if (_LIB_VERSION == _SVID_)
63 exc.retval = HUGE;
64 else
65 {
66 #ifndef HUGE_VAL
67 #define HUGE_VAL inf
68 double inf = 0.0;
69
70 SET_HIGH_WORD (inf, 0x7ff00000); /* Set inf to infinite. */
71 #endif
72 exc.retval = HUGE_VAL;
73 }
74
75 if (_LIB_VERSION == _POSIX_)
76 errno = ERANGE;
77 else if (! matherr (& exc))
78 errno = ERANGE;
79
80 if (exc.err != 0)
81 errno = exc.err;
82
83 return (long double) exc.retval;
54 errno = ERANGE;
55 return (long double) HUGE_VAL;
8456 }
8557
8658 return z;
2626 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
2727
2828 #include "fdlibm.h"
29 #if !__OBSOLETE_MATH
30
3129 #include "math_config.h"
3230
3331 #if WANT_ERRNO
5250 return with_errnof (y, ERANGE);
5351 }
5452
53 #if !__OBSOLETE_MATH
5554 HIDDEN float
5655 __math_uflowf (uint32_t sign)
5756 {
6766 return xflowf (sign, 0x1.4p-75f);
6867 }
6968 #endif
69 #endif /* !__OBSOLETE_MATH */
7070
7171 HIDDEN float
7272 __math_oflowf (uint32_t sign)
8787 float y = (x - x) / (x - x);
8888 return isnan (x) ? y : with_errnof (y, EDOM);
8989 }
90 #endif /* !__OBSOLETE_MATH */
3333 $10^x$
3434 @end tex
3535
36 You can use the (non-ANSI) function <<matherr>> to specify
37 error handling for these functions.
38
3936 RETURNS
4037 On success, <<exp10>> and <<exp10f>> return the calculated value.
4138 If the result underflows, the returned value is <<0>>. If the
141141 */
142142
143143 #include "fdlibm.h"
144 #include "math_config.h"
144145
145146 #ifndef _DOUBLE_IS_32BITS
146147
189190 return x+x; /* NaN */
190191 else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */
191192 }
192 if(x > o_threshold) return huge*huge; /* overflow */
193 if(x > o_threshold) return __math_oflow (0); /* overflow */
193194 }
194195 if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */
195196 if(x+tiny<0.0) /* raise inexact */
2323 _LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
2424 #else
2525 #ifdef _XOPEN_MODE
26 _LIB_VERSION_TYPE _LIB_VERSION = _XOPEN_;
26 #error _XOPEN_MODE is unsupported
2727 #else
2828 #ifdef _SVID3_MODE
29 _LIB_VERSION_TYPE _LIB_VERSION = _SVID_;
29 #error _SVID3_MODE is unsupported
3030 #else /* default _IEEE_MODE */
3131 _LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
3232 #endif
112112 */
113113
114114 #include "fdlibm.h"
115 #include "math_config.h"
115116
116117 #ifndef _DOUBLE_IS_32BITS
117118
153154 k = 1;
154155 if (hx < 0x3FDA827A) { /* x < 0.41422 */
155156 if(ax>=0x3ff00000) { /* x <= -1.0 */
156 if(x==-1.0) return -two54/zero; /* log1p(-1)=+inf */
157 else return (x-x)/(x-x); /* log1p(x<-1)=NaN */
157 if(x==-1.0)
158 return __math_divzero (1); /* log1p(-1)=-inf */
159 else
160 return __math_invalid (x); /* log1p(x<-1)=NaN */
158161 }
159162 if(ax<0x3e200000) { /* |x| < 2**-29 */
160163 if(two54+x>zero /* raise inexact */
3737 . #define log2f(x) (logf (x) / (float) _M_LN2)
3838 To use the functions instead, just undefine the macros first.
3939
40 You can use the (non-ANSI) function <<matherr>> to specify error
41 handling for these functions, indirectly through the respective <<log>>
42 function.
43
4440 RETURNS
4541 The <<log2>> functions return
4642 @ifnottex
5349 When <[x]> is zero, the
5450 returned value is <<-HUGE_VAL>> and <<errno>> is set to <<ERANGE>>.
5551 When <[x]> is negative, the returned value is NaN (not a number) and
56 <<errno>> is set to <<EDOM>>. You can control the error behavior via
57 <<matherr>>.
52 <<errno>> is set to <<EDOM>>.
5853
5954 PORTABILITY
6055 C99, POSIX, System V Interface Definition (Issue 6).
+0
-118
newlib/libm/common/s_matherr.c less more
0
1 /* @(#)s_matherr.c 5.1 93/09/24 */
2 /*
3 * ====================================================
4 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5 *
6 * Developed at SunPro, a Sun Microsystems, Inc. business.
7 * Permission to use, copy, modify, and distribute this
8 * software is freely granted, provided that this notice
9 * is preserved.
10 * ====================================================
11 */
12
13 /*
14
15 FUNCTION
16 <<matherr>>---modifiable math error handler
17
18 INDEX
19 matherr
20
21 SYNOPSIS
22 #include <math.h>
23 int matherr(struct exception *<[e]>);
24
25 DESCRIPTION
26 <<matherr>> is called whenever a math library function generates an error.
27 You can replace <<matherr>> by your own subroutine to customize
28 error treatment. The customized <<matherr>> must return 0 if
29 it fails to resolve the error, and non-zero if the error is resolved.
30
31 When <<matherr>> returns a nonzero value, no error message is printed
32 and the value of <<errno>> is not modified. You can accomplish either
33 or both of these things in your own <<matherr>> using the information
34 passed in the structure <<*<[e]>>>.
35
36 This is the <<exception>> structure (defined in `<<math.h>>'):
37 . struct exception {
38 . int type;
39 . char *name;
40 . double arg1, arg2, retval;
41 . int err;
42 . };
43
44 The members of the exception structure have the following meanings:
45 o+
46 o type
47 The type of mathematical error that occured; macros encoding error
48 types are also defined in `<<math.h>>'.
49
50 o name
51 a pointer to a null-terminated string holding the
52 name of the math library function where the error occurred.
53
54 o arg1, arg2
55 The arguments which caused the error.
56
57 o retval
58 The error return value (what the calling function will return).
59
60 o err
61 If set to be non-zero, this is the new value assigned to <<errno>>.
62 o-
63
64 The error types defined in `<<math.h>>' represent possible mathematical
65 errors as follows:
66
67 o+
68 o DOMAIN
69 An argument was not in the domain of the function; e.g. <<log(-1.0)>>.
70
71 o SING
72 The requested calculation would result in a singularity; e.g. <<pow(0.0,-2.0)>>
73
74 o OVERFLOW
75 A calculation would produce a result too large to represent; e.g.
76 <<exp(1000.0)>>.
77
78 o UNDERFLOW
79 A calculation would produce a result too small to represent; e.g.
80 <<exp(-1000.0)>>.
81
82 o TLOSS
83 Total loss of precision. The result would have no significant digits;
84 e.g. <<sin(10e70)>>.
85
86 o PLOSS
87 Partial loss of precision.
88 o-
89
90
91 RETURNS
92 The library definition for <<matherr>> returns <<0>> in all cases.
93
94 You can change the calling function's result from a customized <<matherr>>
95 by modifying <<e->retval>>, which propagates backs to the caller.
96
97 If <<matherr>> returns <<0>> (indicating that it was not able to resolve
98 the error) the caller sets <<errno>> to an appropriate value, and prints
99 an error message.
100
101 PORTABILITY
102 <<matherr>> is not ANSI C.
103 */
104
105 #include "fdlibm.h"
106
107 #ifdef __STDC__
108 int matherr(struct exception *x)
109 #else
110 int matherr(x)
111 struct exception *x;
112 #endif
113 {
114 int n=0;
115 if(x->arg1!=x->arg1) return 0;
116 return n;
117 }
3333 $10^x$
3434 @end tex
3535
36 You can use the (non-ANSI) function <<matherr>> to specify
37 error handling for these functions.
38
3936 RETURNS
4037 On success, <<pow10>> and <<pow10f>> return the calculated value.
4138 If the result underflows, the returned value is <<0>>. If the
1313 */
1414
1515 #include "fdlibm.h"
16 #include "math_config.h"
1617
1718 #ifdef __v810__
1819 #define const
5960 if(FLT_UWORD_IS_INFINITE(hx))
6061 return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */
6162 if(xsb == 0 && hx > FLT_UWORD_LOG_MAX) /* if x>=o_threshold */
62 return huge*huge; /* overflow */
63 return __math_oflowf (0); /* overflow */
6364 if(xsb!=0) { /* x < -27*ln2, return -1.0 with inexact */
6465 if(x+tiny<(float)0.0) /* raise inexact */
6566 return tiny-one; /* return -1 */
1313 */
1414
1515 #include "fdlibm.h"
16 #include "math_config.h"
1617
1718 #ifdef __STDC__
1819 static const float
5354 if (!FLT_UWORD_IS_FINITE(hx)) return x+x;
5455 if (hx < 0x3ed413d7) { /* x < 0.41422 */
5556 if(ax>=0x3f800000) { /* x <= -1.0 */
56 if(x==(float)-1.0) return -two25/zero; /* log1p(-1)=+inf */
57 else return (x-x)/(x-x); /* log1p(x<-1)=NaN */
57 if(x==(float)-1.0)
58 return __math_divzerof (1); /* log1p(-1)=-inf */
59 else
60 return __math_invalidf (x); /* log1p(x<-1)=NaN */
5861 }
5962 if(ax<0x31000000) { /* |x| < 2**-29 */
6063 if(two25+x>zero /* raise inexact */
270270 prefix = @prefix@
271271 program_transform_name = @program_transform_name@
272272 psdir = @psdir@
273 runstatedir = @runstatedir@
274273 sbindir = @sbindir@
275274 sharedstatedir = @sharedstatedir@
276275 srcdir = @srcdir@
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13301330 # Omit some internal or obsolete options to make the list less imposing.
13311331 # This message is too long to be a string in the A/UX 3.1 sh.
13321332 cat <<_ACEOF
1333 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1333 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13341334
13351335 Usage: $0 [OPTION]... [VAR=VALUE]...
13361336
14001400
14011401 if test -n "$ac_init_help"; then
14021402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1403 short | recursive ) echo "Configuration of newlib 3.3.0:";;
14041404 esac
14051405 cat <<\_ACEOF
14061406
15131513 test -n "$ac_init_help" && exit $ac_status
15141514 if $ac_init_version; then
15151515 cat <<\_ACEOF
1516 newlib configure 3.1.0
1516 newlib configure 3.3.0
15171517 generated by GNU Autoconf 2.68
15181518
15191519 Copyright (C) 2010 Free Software Foundation, Inc.
17911791 This file contains any messages produced by compilers while
17921792 running configure, to aid debugging if configure makes a mistake.
17931793
1794 It was created by newlib $as_me 3.1.0, which was
1794 It was created by newlib $as_me 3.3.0, which was
17951795 generated by GNU Autoconf 2.68. Invocation command line was
17961796
17971797 $ $0 $@
29302930
29312931 # Define the identity of the package.
29322932 PACKAGE='newlib'
2933 VERSION='3.1.0'
2933 VERSION='3.3.0'
29342934
29352935
29362936 # Some tools Automake needs.
1186711867
1186811868
1186911869
11870 ac_config_files="$ac_config_files Makefile math/Makefile mathfp/Makefile common/Makefile complex/Makefile"
11870 ac_config_files="$ac_config_files Makefile math/Makefile mathfp/Makefile common/Makefile complex/Makefile fenv/Makefile"
1187111871
1187211872 cat >confcache <<\_ACEOF
1187311873 # This file is a shell script that caches the results of configure
1248312483 # report actual input values of CONFIG_FILES etc. instead of their
1248412484 # values after options handling.
1248512485 ac_log="
12486 This file was extended by newlib $as_me 3.1.0, which was
12486 This file was extended by newlib $as_me 3.3.0, which was
1248712487 generated by GNU Autoconf 2.68. Invocation command line was
1248812488
1248912489 CONFIG_FILES = $CONFIG_FILES
1254012540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1254112541 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1254212542 ac_cs_version="\\
12543 newlib config.status 3.1.0
12543 newlib config.status 3.3.0
1254412544 configured by $0, generated by GNU Autoconf 2.68,
1254512545 with options \\"\$ac_cs_config\\"
1254612546
1292912929 "mathfp/Makefile") CONFIG_FILES="$CONFIG_FILES mathfp/Makefile" ;;
1293012930 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
1293112931 "complex/Makefile") CONFIG_FILES="$CONFIG_FILES complex/Makefile" ;;
12932 "fenv/Makefile") CONFIG_FILES="$CONFIG_FILES fenv/Makefile" ;;
1293212933
1293312934 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1293412935 esac
6161
6262 AC_SUBST(LIBM_MACHINE_LIB)
6363
64 AC_CONFIG_FILES([Makefile math/Makefile mathfp/Makefile common/Makefile complex/Makefile])
64 AC_CONFIG_FILES([Makefile math/Makefile mathfp/Makefile common/Makefile complex/Makefile fenv/Makefile])
6565 AC_OUTPUT
0 ## Process this file with automake to generate Makefile.in
1
2 AUTOMAKE_OPTIONS = cygnus
3
4 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
5
6 src = feclearexcept.c fe_dfl_env.c fegetenv.c fegetexceptflag.c \
7 fegetround.c feholdexcept.c feraiseexcept.c fesetenv.c \
8 fesetexceptflag.c fesetround.c fetestexcept.c feupdateenv.c
9
10 libcommon_la_LDFLAGS = -Xcompiler -nostdlib
11 lib_a_CFLAGS = -fbuiltin -fno-math-errno
12
13 if USE_LIBTOOL
14 noinst_LTLIBRARIES = libcommon.la
15 libcommon_la_SOURCES = $(src)
16 noinst_DATA = objectlist.awk.in
17 else
18 noinst_LIBRARIES = lib.a
19 lib_a_SOURCES = $(src)
20 lib_a_CFLAGS += $(AM_CFLAGS)
21 noinst_DATA =
22 endif # USE_LIBTOOL
23
24 include $(srcdir)/../../Makefile.shared
25
26 CHEWOUT_FILES = feclearexcept.def fegetenv.def \
27 fegetexceptflag.def fegetround.def feholdexcept.def \
28 feraiseexcept.def fesetenv.def fesetexceptflag.def fesetround.def \
29 fetestexcept.def feupdateenv.def
30
31 CHAPTERS = fenv.tex
32
33 # A partial dependency list.
34
35 $(lib_a_OBJECTS): $(srcdir)/../../libc/include/fenv.h
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17
18
19 VPATH = @srcdir@
20 am__make_dryrun = \
21 { \
22 am__dry=no; \
23 case $$MAKEFLAGS in \
24 *\\[\ \ ]*) \
25 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
26 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
27 *) \
28 for am__flg in $$MAKEFLAGS; do \
29 case $$am__flg in \
30 *=*|--*) ;; \
31 *n*) am__dry=yes; break;; \
32 esac; \
33 done;; \
34 esac; \
35 test $$am__dry = yes; \
36 }
37 pkgdatadir = $(datadir)/@PACKAGE@
38 pkgincludedir = $(includedir)/@PACKAGE@
39 pkglibdir = $(libdir)/@PACKAGE@
40 pkglibexecdir = $(libexecdir)/@PACKAGE@
41 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
42 install_sh_DATA = $(install_sh) -c -m 644
43 install_sh_PROGRAM = $(install_sh) -c
44 install_sh_SCRIPT = $(install_sh) -c
45 INSTALL_HEADER = $(INSTALL_DATA)
46 transform = $(program_transform_name)
47 NORMAL_INSTALL = :
48 PRE_INSTALL = :
49 POST_INSTALL = :
50 NORMAL_UNINSTALL = :
51 PRE_UNINSTALL = :
52 POST_UNINSTALL = :
53 build_triplet = @build@
54 host_triplet = @host@
55 @USE_LIBTOOL_FALSE@am__append_1 = $(AM_CFLAGS)
56 DIST_COMMON = $(srcdir)/../../Makefile.shared $(srcdir)/Makefile.in \
57 $(srcdir)/Makefile.am
58 subdir = fenv
59 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
60 am__aclocal_m4_deps = $(top_srcdir)/../../libtool.m4 \
61 $(top_srcdir)/../../ltoptions.m4 \
62 $(top_srcdir)/../../ltsugar.m4 \
63 $(top_srcdir)/../../ltversion.m4 \
64 $(top_srcdir)/../../lt~obsolete.m4 \
65 $(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.in
66 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
67 $(ACLOCAL_M4)
68 mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
69 CONFIG_CLEAN_FILES =
70 CONFIG_CLEAN_VPATH_FILES =
71 LIBRARIES = $(noinst_LIBRARIES)
72 ARFLAGS = cru
73 lib_a_AR = $(AR) $(ARFLAGS)
74 lib_a_LIBADD =
75 am__objects_1 = lib_a-feclearexcept.$(OBJEXT) \
76 lib_a-fe_dfl_env.$(OBJEXT) lib_a-fegetenv.$(OBJEXT) \
77 lib_a-fegetexceptflag.$(OBJEXT) lib_a-fegetround.$(OBJEXT) \
78 lib_a-feholdexcept.$(OBJEXT) lib_a-feraiseexcept.$(OBJEXT) \
79 lib_a-fesetenv.$(OBJEXT) lib_a-fesetexceptflag.$(OBJEXT) \
80 lib_a-fesetround.$(OBJEXT) lib_a-fetestexcept.$(OBJEXT) \
81 lib_a-feupdateenv.$(OBJEXT)
82 @USE_LIBTOOL_FALSE@am_lib_a_OBJECTS = $(am__objects_1)
83 lib_a_OBJECTS = $(am_lib_a_OBJECTS)
84 LTLIBRARIES = $(noinst_LTLIBRARIES)
85 libcommon_la_LIBADD =
86 am__objects_2 = feclearexcept.lo fe_dfl_env.lo fegetenv.lo \
87 fegetexceptflag.lo fegetround.lo feholdexcept.lo \
88 feraiseexcept.lo fesetenv.lo fesetexceptflag.lo fesetround.lo \
89 fetestexcept.lo feupdateenv.lo
90 @USE_LIBTOOL_TRUE@am_libcommon_la_OBJECTS = $(am__objects_2)
91 libcommon_la_OBJECTS = $(am_libcommon_la_OBJECTS)
92 libcommon_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
93 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
94 $(libcommon_la_LDFLAGS) $(LDFLAGS) -o $@
95 @USE_LIBTOOL_TRUE@am_libcommon_la_rpath =
96 DEFAULT_INCLUDES = -I.@am__isrc@
97 depcomp =
98 am__depfiles_maybe =
99 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
100 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
101 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
102 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
103 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
104 CCLD = $(CC)
105 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
106 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
107 $(LDFLAGS) -o $@
108 SOURCES = $(lib_a_SOURCES) $(libcommon_la_SOURCES)
109 am__can_run_installinfo = \
110 case $$AM_UPDATE_INFO_DIR in \
111 n|no|NO) false;; \
112 *) (install-info --version) >/dev/null 2>&1;; \
113 esac
114 DATA = $(noinst_DATA)
115 ETAGS = etags
116 CTAGS = ctags
117 ACLOCAL = @ACLOCAL@
118 AMTAR = @AMTAR@
119 AR = @AR@
120 AS = @AS@
121 AUTOCONF = @AUTOCONF@
122 AUTOHEADER = @AUTOHEADER@
123 AUTOMAKE = @AUTOMAKE@
124 AWK = @AWK@
125 CC = @CC@
126 CCAS = @CCAS@
127 CCASFLAGS = @CCASFLAGS@
128 CCDEPMODE = @CCDEPMODE@
129 CFLAGS = @CFLAGS@
130 CPP = @CPP@
131 CPPFLAGS = @CPPFLAGS@
132 CYGPATH_W = @CYGPATH_W@
133 DEFS = @DEFS@
134 DEPDIR = @DEPDIR@
135 DLLTOOL = @DLLTOOL@
136 DSYMUTIL = @DSYMUTIL@
137 DUMPBIN = @DUMPBIN@
138 ECHO_C = @ECHO_C@
139 ECHO_N = @ECHO_N@
140 ECHO_T = @ECHO_T@
141 EGREP = @EGREP@
142 EXEEXT = @EXEEXT@
143 FGREP = @FGREP@
144 GREP = @GREP@
145 INSTALL = @INSTALL@
146 INSTALL_DATA = @INSTALL_DATA@
147 INSTALL_PROGRAM = @INSTALL_PROGRAM@
148 INSTALL_SCRIPT = @INSTALL_SCRIPT@
149 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
150 LD = @LD@
151 LDFLAGS = @LDFLAGS@
152 LIBM_MACHINE_LIB = @LIBM_MACHINE_LIB@
153 LIBOBJS = @LIBOBJS@
154 LIBS = @LIBS@
155 LIBTOOL = @LIBTOOL@
156 LIPO = @LIPO@
157 LN_S = @LN_S@
158 LTLIBOBJS = @LTLIBOBJS@
159 MAINT = @MAINT@
160 MAKEINFO = @MAKEINFO@
161 MKDIR_P = @MKDIR_P@
162 NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
163 NM = @NM@
164 NMEDIT = @NMEDIT@
165 NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
166 OBJDUMP = @OBJDUMP@
167 OBJEXT = @OBJEXT@
168 OTOOL = @OTOOL@
169 OTOOL64 = @OTOOL64@
170 PACKAGE = @PACKAGE@
171 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
172 PACKAGE_NAME = @PACKAGE_NAME@
173 PACKAGE_STRING = @PACKAGE_STRING@
174 PACKAGE_TARNAME = @PACKAGE_TARNAME@
175 PACKAGE_URL = @PACKAGE_URL@
176 PACKAGE_VERSION = @PACKAGE_VERSION@
177 PATH_SEPARATOR = @PATH_SEPARATOR@
178 RANLIB = @RANLIB@
179 READELF = @READELF@
180 SED = @SED@
181 SET_MAKE = @SET_MAKE@
182 SHELL = @SHELL@
183 STRIP = @STRIP@
184 VERSION = @VERSION@
185 abs_builddir = @abs_builddir@
186 abs_srcdir = @abs_srcdir@
187 abs_top_builddir = @abs_top_builddir@
188 abs_top_srcdir = @abs_top_srcdir@
189 ac_ct_CC = @ac_ct_CC@
190 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
191 aext = @aext@
192 am__include = @am__include@
193 am__leading_dot = @am__leading_dot@
194 am__quote = @am__quote@
195 am__tar = @am__tar@
196 am__untar = @am__untar@
197 bindir = @bindir@
198 build = @build@
199 build_alias = @build_alias@
200 build_cpu = @build_cpu@
201 build_os = @build_os@
202 build_vendor = @build_vendor@
203 builddir = @builddir@
204 datadir = @datadir@
205 datarootdir = @datarootdir@
206 docdir = @docdir@
207 dvidir = @dvidir@
208 exec_prefix = @exec_prefix@
209 host = @host@
210 host_alias = @host_alias@
211 host_cpu = @host_cpu@
212 host_os = @host_os@
213 host_vendor = @host_vendor@
214 htmldir = @htmldir@
215 includedir = @includedir@
216 infodir = @infodir@
217 install_sh = @install_sh@
218 libdir = @libdir@
219 libexecdir = @libexecdir@
220 libm_machine_dir = @libm_machine_dir@
221 localedir = @localedir@
222 localstatedir = @localstatedir@
223 lpfx = @lpfx@
224 machine_dir = @machine_dir@
225 mandir = @mandir@
226 mkdir_p = @mkdir_p@
227 newlib_basedir = @newlib_basedir@
228 oext = @oext@
229 oldincludedir = @oldincludedir@
230 pdfdir = @pdfdir@
231 prefix = @prefix@
232 program_transform_name = @program_transform_name@
233 psdir = @psdir@
234 sbindir = @sbindir@
235 sharedstatedir = @sharedstatedir@
236 srcdir = @srcdir@
237 subdirs = @subdirs@
238 sys_dir = @sys_dir@
239 sysconfdir = @sysconfdir@
240 target_alias = @target_alias@
241 top_build_prefix = @top_build_prefix@
242 top_builddir = @top_builddir@
243 top_srcdir = @top_srcdir@
244 AUTOMAKE_OPTIONS = cygnus
245 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
246 src = feclearexcept.c fe_dfl_env.c fegetenv.c fegetexceptflag.c \
247 fegetround.c feholdexcept.c feraiseexcept.c fesetenv.c \
248 fesetexceptflag.c fesetround.c fetestexcept.c feupdateenv.c
249
250 libcommon_la_LDFLAGS = -Xcompiler -nostdlib
251 lib_a_CFLAGS = -fbuiltin -fno-math-errno $(am__append_1)
252 @USE_LIBTOOL_TRUE@noinst_LTLIBRARIES = libcommon.la
253 @USE_LIBTOOL_TRUE@libcommon_la_SOURCES = $(src)
254 @USE_LIBTOOL_FALSE@noinst_DATA =
255 @USE_LIBTOOL_TRUE@noinst_DATA = objectlist.awk.in
256 @USE_LIBTOOL_FALSE@noinst_LIBRARIES = lib.a
257 @USE_LIBTOOL_FALSE@lib_a_SOURCES = $(src)
258
259 #
260 # documentation rules
261 #
262 SUFFIXES = .def .xml
263 CHEW = ${top_builddir}/../doc/makedoc -f $(top_srcdir)/../doc/doc.str
264 DOCBOOK_CHEW = ${top_srcdir}/../doc/makedocbook.py
265 DOCBOOK_OUT_FILES = $(CHEWOUT_FILES:.def=.xml)
266 DOCBOOK_CHAPTERS = $(CHAPTERS:.tex=.xml)
267 CLEANFILES = $(CHEWOUT_FILES) $(DOCBOOK_OUT_FILES)
268 CHEWOUT_FILES = feclearexcept.def fegetenv.def \
269 fegetexceptflag.def fegetround.def feholdexcept.def \
270 feraiseexcept.def fesetenv.def fesetexceptflag.def fesetround.def \
271 fetestexcept.def feupdateenv.def
272
273 CHAPTERS = fenv.tex
274 all: all-am
275
276 .SUFFIXES:
277 .SUFFIXES: .def .xml .c .lo .o .obj
278 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../Makefile.shared $(am__configure_deps)
279 @for dep in $?; do \
280 case '$(am__configure_deps)' in \
281 *$$dep*) \
282 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
283 && { if test -f $@; then exit 0; else break; fi; }; \
284 exit 1;; \
285 esac; \
286 done; \
287 echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus fenv/Makefile'; \
288 $(am__cd) $(top_srcdir) && \
289 $(AUTOMAKE) --cygnus fenv/Makefile
290 .PRECIOUS: Makefile
291 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
292 @case '$?' in \
293 *config.status*) \
294 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
295 *) \
296 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
297 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
298 esac;
299 $(srcdir)/../../Makefile.shared:
300
301 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
302 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
303
304 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
305 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
306 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
307 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
308 $(am__aclocal_m4_deps):
309
310 clean-noinstLIBRARIES:
311 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
312 lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES)
313 -rm -f lib.a
314 $(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
315 $(RANLIB) lib.a
316
317 clean-noinstLTLIBRARIES:
318 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
319 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
320 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
321 test "$$dir" != "$$p" || dir=.; \
322 echo "rm -f \"$${dir}/so_locations\""; \
323 rm -f "$${dir}/so_locations"; \
324 done
325 libcommon.la: $(libcommon_la_OBJECTS) $(libcommon_la_DEPENDENCIES) $(EXTRA_libcommon_la_DEPENDENCIES)
326 $(libcommon_la_LINK) $(am_libcommon_la_rpath) $(libcommon_la_OBJECTS) $(libcommon_la_LIBADD) $(LIBS)
327
328 mostlyclean-compile:
329 -rm -f *.$(OBJEXT)
330
331 distclean-compile:
332 -rm -f *.tab.c
333
334 .c.o:
335 $(COMPILE) -c $<
336
337 .c.obj:
338 $(COMPILE) -c `$(CYGPATH_W) '$<'`
339
340 .c.lo:
341 $(LTCOMPILE) -c -o $@ $<
342
343 lib_a-feclearexcept.o: feclearexcept.c
344 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feclearexcept.o `test -f 'feclearexcept.c' || echo '$(srcdir)/'`feclearexcept.c
345
346 lib_a-feclearexcept.obj: feclearexcept.c
347 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feclearexcept.obj `if test -f 'feclearexcept.c'; then $(CYGPATH_W) 'feclearexcept.c'; else $(CYGPATH_W) '$(srcdir)/feclearexcept.c'; fi`
348
349 lib_a-fe_dfl_env.o: fe_dfl_env.c
350 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fe_dfl_env.o `test -f 'fe_dfl_env.c' || echo '$(srcdir)/'`fe_dfl_env.c
351
352 lib_a-fe_dfl_env.obj: fe_dfl_env.c
353 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fe_dfl_env.obj `if test -f 'fe_dfl_env.c'; then $(CYGPATH_W) 'fe_dfl_env.c'; else $(CYGPATH_W) '$(srcdir)/fe_dfl_env.c'; fi`
354
355 lib_a-fegetenv.o: fegetenv.c
356 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetenv.o `test -f 'fegetenv.c' || echo '$(srcdir)/'`fegetenv.c
357
358 lib_a-fegetenv.obj: fegetenv.c
359 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetenv.obj `if test -f 'fegetenv.c'; then $(CYGPATH_W) 'fegetenv.c'; else $(CYGPATH_W) '$(srcdir)/fegetenv.c'; fi`
360
361 lib_a-fegetexceptflag.o: fegetexceptflag.c
362 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetexceptflag.o `test -f 'fegetexceptflag.c' || echo '$(srcdir)/'`fegetexceptflag.c
363
364 lib_a-fegetexceptflag.obj: fegetexceptflag.c
365 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetexceptflag.obj `if test -f 'fegetexceptflag.c'; then $(CYGPATH_W) 'fegetexceptflag.c'; else $(CYGPATH_W) '$(srcdir)/fegetexceptflag.c'; fi`
366
367 lib_a-fegetround.o: fegetround.c
368 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetround.o `test -f 'fegetround.c' || echo '$(srcdir)/'`fegetround.c
369
370 lib_a-fegetround.obj: fegetround.c
371 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetround.obj `if test -f 'fegetround.c'; then $(CYGPATH_W) 'fegetround.c'; else $(CYGPATH_W) '$(srcdir)/fegetround.c'; fi`
372
373 lib_a-feholdexcept.o: feholdexcept.c
374 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feholdexcept.o `test -f 'feholdexcept.c' || echo '$(srcdir)/'`feholdexcept.c
375
376 lib_a-feholdexcept.obj: feholdexcept.c
377 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feholdexcept.obj `if test -f 'feholdexcept.c'; then $(CYGPATH_W) 'feholdexcept.c'; else $(CYGPATH_W) '$(srcdir)/feholdexcept.c'; fi`
378
379 lib_a-feraiseexcept.o: feraiseexcept.c
380 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feraiseexcept.o `test -f 'feraiseexcept.c' || echo '$(srcdir)/'`feraiseexcept.c
381
382 lib_a-feraiseexcept.obj: feraiseexcept.c
383 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feraiseexcept.obj `if test -f 'feraiseexcept.c'; then $(CYGPATH_W) 'feraiseexcept.c'; else $(CYGPATH_W) '$(srcdir)/feraiseexcept.c'; fi`
384
385 lib_a-fesetenv.o: fesetenv.c
386 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetenv.o `test -f 'fesetenv.c' || echo '$(srcdir)/'`fesetenv.c
387
388 lib_a-fesetenv.obj: fesetenv.c
389 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetenv.obj `if test -f 'fesetenv.c'; then $(CYGPATH_W) 'fesetenv.c'; else $(CYGPATH_W) '$(srcdir)/fesetenv.c'; fi`
390
391 lib_a-fesetexceptflag.o: fesetexceptflag.c
392 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetexceptflag.o `test -f 'fesetexceptflag.c' || echo '$(srcdir)/'`fesetexceptflag.c
393
394 lib_a-fesetexceptflag.obj: fesetexceptflag.c
395 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetexceptflag.obj `if test -f 'fesetexceptflag.c'; then $(CYGPATH_W) 'fesetexceptflag.c'; else $(CYGPATH_W) '$(srcdir)/fesetexceptflag.c'; fi`
396
397 lib_a-fesetround.o: fesetround.c
398 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetround.o `test -f 'fesetround.c' || echo '$(srcdir)/'`fesetround.c
399
400 lib_a-fesetround.obj: fesetround.c
401 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetround.obj `if test -f 'fesetround.c'; then $(CYGPATH_W) 'fesetround.c'; else $(CYGPATH_W) '$(srcdir)/fesetround.c'; fi`
402
403 lib_a-fetestexcept.o: fetestexcept.c
404 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fetestexcept.o `test -f 'fetestexcept.c' || echo '$(srcdir)/'`fetestexcept.c
405
406 lib_a-fetestexcept.obj: fetestexcept.c
407 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fetestexcept.obj `if test -f 'fetestexcept.c'; then $(CYGPATH_W) 'fetestexcept.c'; else $(CYGPATH_W) '$(srcdir)/fetestexcept.c'; fi`
408
409 lib_a-feupdateenv.o: feupdateenv.c
410 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feupdateenv.o `test -f 'feupdateenv.c' || echo '$(srcdir)/'`feupdateenv.c
411
412 lib_a-feupdateenv.obj: feupdateenv.c
413 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feupdateenv.obj `if test -f 'feupdateenv.c'; then $(CYGPATH_W) 'feupdateenv.c'; else $(CYGPATH_W) '$(srcdir)/feupdateenv.c'; fi`
414
415 mostlyclean-libtool:
416 -rm -f *.lo
417
418 clean-libtool:
419 -rm -rf .libs _libs
420
421 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
422 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
423 unique=`for i in $$list; do \
424 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
425 done | \
426 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
427 END { if (nonempty) { for (i in files) print i; }; }'`; \
428 mkid -fID $$unique
429 tags: TAGS
430
431 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
432 $(TAGS_FILES) $(LISP)
433 set x; \
434 here=`pwd`; \
435 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
436 unique=`for i in $$list; do \
437 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
438 done | \
439 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
440 END { if (nonempty) { for (i in files) print i; }; }'`; \
441 shift; \
442 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
443 test -n "$$unique" || unique=$$empty_fix; \
444 if test $$# -gt 0; then \
445 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
446 "$$@" $$unique; \
447 else \
448 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
449 $$unique; \
450 fi; \
451 fi
452 ctags: CTAGS
453 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
454 $(TAGS_FILES) $(LISP)
455 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
456 unique=`for i in $$list; do \
457 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
458 done | \
459 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
460 END { if (nonempty) { for (i in files) print i; }; }'`; \
461 test -z "$(CTAGS_ARGS)$$unique" \
462 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
463 $$unique
464
465 GTAGS:
466 here=`$(am__cd) $(top_builddir) && pwd` \
467 && $(am__cd) $(top_srcdir) \
468 && gtags -i $(GTAGS_ARGS) "$$here"
469
470 distclean-tags:
471 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
472 check-am:
473 check: check-am
474 all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA)
475 installdirs:
476 install: install-am
477 install-exec: install-exec-am
478 install-data: install-data-am
479 uninstall: uninstall-am
480
481 install-am: all-am
482 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
483
484 installcheck: installcheck-am
485 install-strip:
486 if test -z '$(STRIP)'; then \
487 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
488 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
489 install; \
490 else \
491 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
492 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
493 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
494 fi
495 mostlyclean-generic:
496
497 clean-generic:
498 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
499
500 distclean-generic:
501 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
502 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
503
504 maintainer-clean-generic:
505 @echo "This command is intended for maintainers to use"
506 @echo "it deletes files that may require special tools to rebuild."
507 clean: clean-am
508
509 clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
510 clean-noinstLTLIBRARIES mostlyclean-am
511
512 distclean: distclean-am
513 -rm -f Makefile
514 distclean-am: clean-am distclean-compile distclean-generic \
515 distclean-tags
516
517 dvi: dvi-am
518
519 dvi-am:
520
521 html: html-am
522
523 html-am:
524
525 info: info-am
526
527 info-am:
528
529 install-data-am:
530
531 install-dvi: install-dvi-am
532
533 install-dvi-am:
534
535 install-exec-am:
536
537 install-html: install-html-am
538
539 install-html-am:
540
541 install-info: install-info-am
542
543 install-info-am:
544
545 install-man:
546
547 install-pdf: install-pdf-am
548
549 install-pdf-am:
550
551 install-ps: install-ps-am
552
553 install-ps-am:
554
555 installcheck-am:
556
557 maintainer-clean: maintainer-clean-am
558 -rm -f Makefile
559 maintainer-clean-am: distclean-am maintainer-clean-generic
560
561 mostlyclean: mostlyclean-am
562
563 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
564 mostlyclean-libtool
565
566 pdf: pdf-am
567
568 pdf-am:
569
570 ps: ps-am
571
572 ps-am:
573
574 uninstall-am:
575
576 .MAKE: install-am install-strip
577
578 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
579 clean-libtool clean-noinstLIBRARIES clean-noinstLTLIBRARIES \
580 ctags distclean distclean-compile distclean-generic \
581 distclean-libtool distclean-tags dvi dvi-am html html-am info \
582 info-am install install-am install-data install-data-am \
583 install-dvi install-dvi-am install-exec install-exec-am \
584 install-html install-html-am install-info install-info-am \
585 install-man install-pdf install-pdf-am install-ps \
586 install-ps-am install-strip installcheck installcheck-am \
587 installdirs maintainer-clean maintainer-clean-generic \
588 mostlyclean mostlyclean-compile mostlyclean-generic \
589 mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
590 uninstall-am
591
592 objectlist.awk.in: $(noinst_LTLIBRARIES)
593 -rm -f objectlist.awk.in
594 for i in `ls *.lo` ; \
595 do \
596 echo $$i `pwd`/$$i >> objectlist.awk.in ; \
597 done
598
599 .c.def:
600 $(CHEW) < $< > $*.def || ( rm $*.def && false )
601 @touch stmp-def
602
603 TARGETDOC ?= ../tmp.texi
604
605 doc: $(CHEWOUT_FILES)
606 for chapter in $(CHAPTERS) ; \
607 do \
608 cat $(srcdir)/$$chapter >> $(TARGETDOC) ; \
609 done
610
611 .c.xml:
612 $(DOCBOOK_CHEW) < $< > $*.xml || ( rm $*.xml && false )
613 @touch stmp-xml
614
615 docbook: $(DOCBOOK_OUT_FILES)
616 for chapter in $(DOCBOOK_CHAPTERS) ; \
617 do \
618 ${top_srcdir}/../doc/chapter-texi2docbook.py <$(srcdir)/$${chapter%.xml}.tex >../$$chapter ; \
619 done
620
621 # A partial dependency list.
622
623 $(lib_a_OBJECTS): $(srcdir)/../../libc/include/fenv.h
624
625 # Tell versions [3.59,3.63) of GNU make to not export all variables.
626 # Otherwise a system limit (for SysV at least) may be exceeded.
627 .NOEXPORT:
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <fenv.h>
29
30 /*
31 * This is a non-functional implementation that should be overridden
32 * by an architecture specific implementation in newlib/libm/machine/ARCH.
33 *
34 * The implementation must define FE_DFL_ENV to point to a default
35 * environment of type fenv_t.
36 */
37
38 /* Non-static and writable to allow initialization at startup. */
39 fenv_t __fe_dfl_env = { 0 };
40
41 const fenv_t *_fe_dfl_env = &__fe_dfl_env;
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 /*
29 FUNCTION
30 <<feclearexcept>>---clear floating-point exception
31
32 INDEX
33 feclearexcept
34 SYNOPSIS
35 #include <fenv.h>
36 int feclearexcept(int <[except]>);
37
38 Link with -lm.
39
40 DESCRIPTION
41 This method attempts to clear the floating-point exceptions specified
42 in <[except]>.
43
44 RETURNS
45 If the <[except]> argument is zero or all requested exceptions were
46 successfully cleared, this method returns zero. Otherwise, a non-zero
47 value is returned.
48
49 PORTABILITY
50 ANSI C requires <<feclearexcept>>.
51
52 Not all Newlib targets have a working implementation. Refer to
53 the file <<sys/fenv.h>> to see the status for your target.
54 */
55
56 #include <fenv.h>
57 #include <errno.h>
58
59 /*
60 * This is a non-functional implementation that should be overridden
61 * by an architecture specific implementation in newlib/libm/machine/ARCH.
62 */
63 int feclearexcept(int excepts)
64 {
65 return (excepts ? -ENOTSUP : 0);
66 }
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <fenv.h>
29 #include <errno.h>
30
31 /*
32 FUNCTION
33 <<fegetenv>>---get current floating-point environment
34
35 INDEX
36 fegetenv
37
38 SYNOPSIS
39 #include <fenv.h>
40 int fegetenv(fenv_t *<[envp]>);
41
42 Link with -lm.
43
44 DESCRIPTION
45 This method attempts to return the floating-point environment
46 in the area specified by <[envp]>.
47
48 RETURNS
49 If floating-point environment was successfully returned, then
50 this method returns zero. Otherwise, a non-zero value is returned.
51
52 PORTABILITY
53 ANSI C requires <<fegetenv>>.
54
55 Not all Newlib targets have a working implementation. Refer to
56 the file <<sys/fenv.h>> to see the status for your target.
57 */
58
59 /*
60 * This is a non-functional implementation that should be overridden
61 * by an architecture specific implementation in newlib/libm/machine/ARCH.
62 */
63 int fegetenv(fenv_t *envp)
64 {
65 return -ENOTSUP;
66 }
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <fenv.h>
29 #include <errno.h>
30
31 /*
32 FUNCTION
33 <<fegetexceptflag>>---get floating-point status flags
34
35 INDEX
36 fegetexceptflag
37
38 SYNOPSIS
39 #include <fenv.h>
40 int fegetexceptflag(fexcept_t *<[flagp]>, int <[excepts]>);
41
42 Link with -lm.
43
44 DESCRIPTION
45 This method attempts to store an implementation-defined representation
46 of the states of the floating-point status flags specified by <[excepts]>
47 in the memory pointed to by <[flagp]>.
48
49 RETURNS
50 If the information was successfully returned, this method returns
51 zero. Otherwise, a non-zero value is returned.
52
53 PORTABILITY
54 ANSI C requires <<fegetexceptflag>>.
55
56 Not all Newlib targets have a working implementation. Refer to
57 the file <<sys/fenv.h>> to see the status for your target.
58 */
59
60 /*
61 * This is a non-functional implementation that should be overridden
62 * by an architecture specific implementation in newlib/libm/machine/ARCH.
63 */
64 int fegetexceptflag(fexcept_t *flagp, int excepts)
65 {
66 return -ENOTSUP;
67 }
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <fenv.h>
29 #include <errno.h>
30
31 /*
32 FUNCTION
33 <<fegetround>>---get current rounding direction
34
35 INDEX
36 fegetround
37 SYNOPSIS
38 #include <fenv.h>
39 int fegetround(void);
40
41 Link with -lm.
42
43 DESCRIPTION
44 This method returns the current rounding direction.
45
46 RETURNS
47 This method returns the rounding direction, corresponding to the value
48 of the respective rouding macro. If the current rounding direction cannot
49 be determined, then a negative value is returned.
50
51 PORTABILITY
52 ANSI C requires <<fegetround>>.
53
54 Not all Newlib targets have a working implementation. Refer to
55 the file <<sys/fenv.h>> to see the status for your target.
56 */
57
58 /*
59 * This is a non-functional implementation that should be overridden
60 * by an architecture specific implementation in newlib/libm/machine/ARCH.
61 */
62 int fegetround(void)
63 {
64 return -ENOTSUP;
65 }
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <fenv.h>
29 #include <errno.h>
30
31 /*
32 FUNCTION
33 <<feholdexcept>>---save current floating-point environment
34
35 INDEX
36 feholdexcept
37
38 SYNOPSIS
39 #include <fenv.h>
40 int feholdexcept(fenv_t *<[envp]>);
41
42 Link with -lm.
43
44 DESCRIPTION
45 This method attempts to save the current floating-point environment
46 in the fenv_t instance pointed to by <[envp]>, clear the floating
47 point status flags, and then, if supported by the target architecture,
48 install a "non-stop" (e.g. continue on floating point exceptions) mode
49 for all floating-point exceptions.
50
51 RETURNS
52 This method will return zero if the non-stop floating-point exception
53 handler was installed. Otherwise, a non-zero value is returned.
54
55 PORTABILITY
56 ANSI C requires <<feholdexcept>>.
57
58 Not all Newlib targets have a working implementation. Refer to
59 the file <<sys/fenv.h>> to see the status for your target.
60 */
61
62 /*
63 * This is a non-functional implementation that should be overridden
64 * by an architecture specific implementation in newlib/libm/machine/ARCH.
65 */
66 int feholdexcept(fenv_t *envp)
67 {
68 return -ENOTSUP;
69 }
0 @node Fenv
1 @chapter Floating-Point Environment (@file{fenv.h})
2
3 This chapter groups the methods used to manipulate the floating-point
4 status flags. Floating-point operations modify the floating-point
5 status flags to indicate abnormal result information.
6
7 The implementation of these methods is architecture specific.
8
9 @menu
10 * feclearexcept:: Clear floating-point exception
11 * fegetenv:: Get current floating-point environment
12 * fegetexceptflag:: Get floating-point status flags
13 * fegetround:: Get current rounding direction
14 * feholdexcept:: Save current floating-point environment
15 * feraiseexcept:: Raise floating-point exception
16 * fesetenv:: Set current floating-point environment
17 * fesetexceptflag:: Set floating-point status flags
18 * fesetround:: Set current rounding direction
19 * fetestexcept:: Test floating-point exception flags
20 * feupdateenv:: Update current floating-point environment
21 @end menu
22
23 @page
24 @include fenv/feclearexcept.def
25 @page
26 @include fenv/fegetenv.def
27 @page
28 @include fenv/fegetexceptflag.def
29 @page
30 @include fenv/fegetround.def
31 @page
32 @include fenv/feholdexcept.def
33 @page
34 @include fenv/feraiseexcept.def
35 @page
36 @include fenv/fesetenv.def
37 @page
38 @include fenv/fesetexceptflag.def
39 @page
40 @include fenv/fesetround.def
41 @page
42 @include fenv/fetestexcept.def
43 @page
44 @include fenv/feupdateenv.def
0 /*
1 * SPDX-License-Identifier: BSD-2-Clause
2 *
3 * (c) Copyright 2019 Joel Sherrill <joel@rtems.org
4 */
5
6 /*
7 * This file is intentionally empty.
8 *
9 * Newlib's build infrastructure needs a machine specific fiel to override
10 * the generic implementation in the library. When a target
11 * implementation of the fenv.h methods puts all methods in a single file
12 * (e.g. fenv.c) or some as inline methods in its <sys/fenv.h>, it will need
13 * to override the default implementation found in a file in this directory.
14 *
15 * For each file that the target's machine directory needs to override,
16 * this file should be symbolically linked to that specific file name
17 * in the target directory. For example, the target may use fe_dfl_env.c
18 * from the default implementation but need to override all others.
19 */
20
21 /* deliberately empty */
22
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <fenv.h>
29 #include <errno.h>
30
31 /*
32 FUNCTION
33 <<feraiseexcept>>---raise floating-point exception
34
35 INDEX
36 feraiseexcept
37 SYNOPSIS
38 #include <fenv.h>
39 int feraiseexcept(int <[excepts]>);
40
41 Link with -lm.
42
43 DESCRIPTION
44 This method attempts to raise the floating-point exceptions specified
45 in <[excepts]>.
46
47 RETURNS
48 If the <[excepts]> argument is zero or all requested exceptions were
49 successfully raised, this method returns zero. Otherwise, a non-zero
50 value is returned.
51
52 PORTABILITY
53 ANSI C requires <<feraiseexcept>>.
54
55 Not all Newlib targets have a working implementation. Refer to
56 the file <<sys/fenv.h>> to see the status for your target.
57 */
58
59 /*
60 * This is a non-functional implementation that should be overridden
61 * by an architecture specific implementation in newlib/libm/machine/ARCH.
62 */
63 int feraiseexcept(int excepts)
64 {
65 return (excepts ? -ENOTSUP : 0);
66 }
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <fenv.h>
29 #include <errno.h>
30
31 /*
32 FUNCTION
33 <<fesetenv>>---set current floating-point environment
34
35 INDEX
36 fesetenv
37
38 SYNOPSIS
39 #include <fenv.h>
40 int fesetenv(const fenv_t *<[envp]>);
41
42 Link with -lm.
43
44 DESCRIPTION
45 This method attempts to establish the floating-point environment
46 pointed to by <[envp]>. The argument <[envp]> must point to a
47 floating-point environment obtained via <<fegetenv>> or <<feholdexcept>>
48 or a floating-point environment macro such as <<FE_DFL_ENV>>.
49
50 It only sets the states of the flags as recorded in its argument, and
51 does not actually raise the associated floating-point exceptions.
52
53 RETURNS
54 If floating-point environment was successfully established, then
55 this method returns zero. Otherwise, a non-zero value is returned.
56
57 PORTABILITY
58 ANSI C requires <<fesetenv>>.
59
60 Not all Newlib targets have a working implementation. Refer to
61 the file <<sys/fenv.h>> to see the status for your target.
62 */
63
64 /*
65 * This is a non-functional implementation that should be overridden
66 * by an architecture specific implementation in newlib/libm/machine/ARCH.
67 */
68 int fesetenv(const fenv_t *envp)
69 {
70 return -ENOTSUP;
71 }
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <fenv.h>
29 #include <errno.h>
30
31 /*
32 FUNCTION
33 <<fesetexceptflag>>---set floating-point status flags
34
35 INDEX
36 fesetexceptflag
37
38 SYNOPSIS
39 #include <fenv.h>
40 int fesetexceptflag(const fexcept_t *<[flagp]>, int <[excepts]>);
41
42 Link with -lm.
43
44 DESCRIPTION
45 This method attempts to set the floating-point status flags specified
46 by <[excepts]> to the states indicated by <[flagp]>. The argument
47 <[flagp]> must point to an fexcept_t instance obtained via calling
48 <<fegetexceptflag>> with at least the floating-point exceptions specified
49 by the argument <[excepts]>.
50
51 This method does not raise any floating-point exceptions. It only
52 sets the state of the flags.
53
54 RETURNS
55 If the information was successfully returned, this method returns
56 zero. Otherwise, a non-zero value is returned.
57
58 PORTABILITY
59 ANSI C requires <<fesetexceptflag>>.
60
61 Not all Newlib targets have a working implementation. Refer to
62 the file <<sys/fenv.h>> to see the status for your target.
63 */
64
65 /*
66 * This is a non-functional implementation that should be overridden
67 * by an architecture specific implementation in newlib/libm/machine/ARCH.
68 */
69 int fesetexceptflag(const fexcept_t *flagp, int excepts)
70 {
71 return -ENOTSUP;
72 }
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <fenv.h>
29 #include <errno.h>
30
31 /*
32 FUNCTION
33 <<fesetround>>---set current rounding direction
34
35 INDEX
36 fesetround
37 SYNOPSIS
38 #include <fenv.h>
39 int fesetround(int <[round]>);
40
41 Link with -lm.
42
43 DESCRIPTION
44 This method attempts to set the current rounding direction represented
45 by <[round]>. <[round]> must be the value of one of the
46 rounding-direction macros.
47
48 RETURNS
49 If the rounding mode was successfully established, this method returns
50 zero. Otherwise, a non-zero value is returned.
51
52 PORTABILITY
53 ANSI C requires <<fesetround>>.
54
55 Not all Newlib targets have a working implementation. Refer to
56 the file <<sys/fenv.h>> to see the status for your target.
57 */
58
59 /*
60 * This is a non-functional implementation that should be overridden
61 * by an architecture specific implementation in newlib/libm/machine/ARCH.
62 */
63 int fesetround(int round)
64 {
65 return -ENOTSUP;
66 }
0
1 /*
2 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
3 All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8
9 1. Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer.
11
12 2. Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 #include <fenv.h>
30 #include <errno.h>
31
32 /*
33 FUNCTION
34 <<fetestexcept>>---test floating-point exception flags
35
36 INDEX
37 fetestexcept
38 SYNOPSIS
39 #include <fenv.h>
40 int fetestexcept(int <[except]>);
41
42 Link with -lm.
43
44 DESCRIPTION
45 This method test the current floating-point exceptions to determine
46 which of those specified in <[except]> are currently set.
47
48 RETURNS
49 This method returns the bitwise-inclusive OR of the floating point
50 exception macros which correspond to the currently set floating point
51 exceptions.
52
53 PORTABILITY
54 ANSI C requires <<fetestexcept>>.
55
56 Not all Newlib targets have a working implementation. Refer to
57 the file <<sys/fenv.h>> to see the status for your target.
58 */
59
60 /*
61 * This is a non-functional implementation that should be overridden
62 * by an architecture specific implementation in newlib/libm/machine/ARCH.
63 */
64 int fetestexcept(int excepts)
65 {
66 return 0;
67 }
0 /*
1 (c) Copyright 2019 Joel Sherrill <joel@rtems.org
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <fenv.h>
29 #include <errno.h>
30
31 /*
32 FUNCTION
33 <<feupdateenv>>---update current floating-point environment
34
35 INDEX
36 feupdateenv
37
38 SYNOPSIS
39 #include <fenv.h>
40 int feupdateenv(const fenv_t *<[envp]>);
41
42 Link with -lm.
43
44 DESCRIPTION
45 This method attempts to save the currently raised floating point
46 exceptions in its automatic storage, install the floating point
47 environment specified by <[envp]>, and raise the saved floating
48 point exceptions.
49
50 The argument <[envp]> must point to a floating-point environment
51 obtained via <<fegetenv>> or <<feholdexcept>>.
52
53 RETURNS
54 If all actions are completed successfully, then this method returns zero.
55 Otherwise, a non-zero value is returned.
56
57 PORTABILITY
58 ANSI C requires <<feupdateenv>>.
59
60 Not all Newlib targets have a working implementation. Refer to
61 the file <<sys/fenv.h>> to see the status for your target.
62 */
63
64 /*
65 * This is a non-functional implementation that should be overridden
66 * by an architecture specific implementation in newlib/libm/machine/ARCH.
67 */
68 int feupdateenv(const fenv_t *envp)
69 {
70 return -ENOTSUP;
71 }
66
77 <xi:include href="complex.xml"/>
88 <xi:include href="math.xml"/>
9 <xi:include href="fenv.xml"/>
910
1011 <!-- processing should insert index here -->
1112 <index/>
9393 @menu
9494 * Math:: The mathematical functions (`math.h').
9595 * Complex:: The mathematical complex functions (`complex.h').
96 * Fenv:: The floating point environment functions ('fenv.h').
9697 * Reentrancy:: The functions in libm are not reentrant by default.
9798 * Long Double Functions:: The long double function support of libm.
9899 * Document Index::
106107 @cindex reentrancy
107108 @cindex @code{matherr} and reentrancy
108109 When a libm function detects an exceptional case, @code{errno} may be
109 set, the @code{matherr} function may be called, and a error message
110 may be written to the standard error stream. This behavior may not
111 be reentrant.
110 set.
112111
113112 @c The exact behavior depends on the currently selected error handling
114 @c mode (IEEE, POSIX, X/Open, or SVID).
113 @c mode (IEEE or POSIX).
115114
116 With reentrant C libraries like the Red Hat newlib C library, @code{errno} is
117 a macro which expands to the per-thread error value. This makes it thread
118 safe.
119
120 When the user provides his own @code{matherr} function it must be
121 reentrant for the math library as a whole to be reentrant.
122
123 In normal debugged programs, there are usually no math subroutine
124 errors---and therefore no assignments to @code{errno} and no @code{matherr}
125 calls; in that situation, the math functions behave reentrantly.
115 @code{errno} is a macro which expands to the per-thread error value.
116 This makes it thread safe, and therefore reentrant.
126117
127118 @node Long Double Functions
128119 @chapter The long double function support of @code{libm}
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
789789 arm
790790 i386
791791 nds32
792 pru
792793 spu
793 riscv'
794 riscv
795 x86_64'
794796
795797 # Initialize some variables set by options.
796798 ac_init_help=
13321334 # Omit some internal or obsolete options to make the list less imposing.
13331335 # This message is too long to be a string in the A/UX 3.1 sh.
13341336 cat <<_ACEOF
1335 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1337 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13361338
13371339 Usage: $0 [OPTION]... [VAR=VALUE]...
13381340
14021404
14031405 if test -n "$ac_init_help"; then
14041406 case $ac_init_help in
1405 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1407 short | recursive ) echo "Configuration of newlib 3.3.0:";;
14061408 esac
14071409 cat <<\_ACEOF
14081410
15141516 test -n "$ac_init_help" && exit $ac_status
15151517 if $ac_init_version; then
15161518 cat <<\_ACEOF
1517 newlib configure 3.1.0
1519 newlib configure 3.3.0
15181520 generated by GNU Autoconf 2.68
15191521
15201522 Copyright (C) 2010 Free Software Foundation, Inc.
17921794 This file contains any messages produced by compilers while
17931795 running configure, to aid debugging if configure makes a mistake.
17941796
1795 It was created by newlib $as_me 3.1.0, which was
1797 It was created by newlib $as_me 3.3.0, which was
17961798 generated by GNU Autoconf 2.68. Invocation command line was
17971799
17981800 $ $0 $@
28762878
28772879 # Define the identity of the package.
28782880 PACKAGE='newlib'
2879 VERSION='3.1.0'
2881 VERSION='3.3.0'
28802882
28812883
28822884 # Some tools Automake needs.
1145211454 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1145311455 lt_status=$lt_dlunknown
1145411456 cat > conftest.$ac_ext <<_LT_EOF
11455 #line 11456 "configure"
11457 #line 11458 "configure"
1145611458 #include "confdefs.h"
1145711459
1145811460 #if HAVE_DLFCN_H
1155811560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1155911561 lt_status=$lt_dlunknown
1156011562 cat > conftest.$ac_ext <<_LT_EOF
11561 #line 11562 "configure"
11563 #line 11564 "configure"
1156211564 #include "confdefs.h"
1156311565
1156411566 #if HAVE_DLFCN_H
1181111813 ;;
1181211814 nds32) subdirs="$subdirs nds32"
1181311815 ;;
11816 pru) subdirs="$subdirs pru"
11817 ;;
1181411818 spu) subdirs="$subdirs spu"
1181511819 ;;
1181611820 riscv) subdirs="$subdirs riscv"
11821 ;;
11822 x86_64) subdirs="$subdirs x86_64"
1181711823 ;;
1181811824 esac;
1181911825 if test "${use_libtool}" = "yes"; then
1244612452 # report actual input values of CONFIG_FILES etc. instead of their
1244712453 # values after options handling.
1244812454 ac_log="
12449 This file was extended by newlib $as_me 3.1.0, which was
12455 This file was extended by newlib $as_me 3.3.0, which was
1245012456 generated by GNU Autoconf 2.68. Invocation command line was
1245112457
1245212458 CONFIG_FILES = $CONFIG_FILES
1250312509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1250412510 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1250512511 ac_cs_version="\\
12506 newlib config.status 3.1.0
12512 newlib config.status 3.3.0
1250712513 configured by $0, generated by GNU Autoconf 2.68,
1250812514 with options \\"\$ac_cs_config\\"
1250912515
2828 arm) AC_CONFIG_SUBDIRS(arm) ;;
2929 i386) AC_CONFIG_SUBDIRS(i386) ;;
3030 nds32) AC_CONFIG_SUBDIRS(nds32) ;;
31 pru) AC_CONFIG_SUBDIRS(pru) ;;
3132 spu) AC_CONFIG_SUBDIRS(spu) ;;
3233 riscv) AC_CONFIG_SUBDIRS(riscv) ;;
34 x86_64) AC_CONFIG_SUBDIRS(x86_64) ;;
3335 esac;
3436 if test "${use_libtool}" = "yes"; then
3537 machlib=${libm_machine_dir}/lib${libm_machine_dir}.${aext}
1111 f_log.S f_logf.S f_log10.S f_log10f.S \
1212 f_ldexp.S f_ldexpf.S f_lrint.c f_lrintf.c f_lrintl.c \
1313 f_pow.c f_powf.c f_rint.c f_rintf.c f_rintl.c \
14 f_tan.S f_tanf.S f_math.h \
15 i386mach.h
14 f_tan.S f_tanf.S f_math.h i386mach.h \
15 fenv.c feclearexcept.c fegetenv.c fegetexceptflag.c \
16 fegetround.c feholdexcept.c feraiseexcept.c fesetenv.c \
17 fesetexceptflag.c fesetround.c fetestexcept.c feupdateenv.c
1618
1719 libi386_la_LDFLAGS = -Xcompiler -nostdlib
1820
8686 lib_a-f_pow.$(OBJEXT) lib_a-f_powf.$(OBJEXT) \
8787 lib_a-f_rint.$(OBJEXT) lib_a-f_rintf.$(OBJEXT) \
8888 lib_a-f_rintl.$(OBJEXT) lib_a-f_tan.$(OBJEXT) \
89 lib_a-f_tanf.$(OBJEXT)
89 lib_a-f_tanf.$(OBJEXT) lib_a-fenv.$(OBJEXT) \
90 lib_a-feclearexcept.$(OBJEXT) lib_a-fegetenv.$(OBJEXT) \
91 lib_a-fegetexceptflag.$(OBJEXT) lib_a-fegetround.$(OBJEXT) \
92 lib_a-feholdexcept.$(OBJEXT) lib_a-feraiseexcept.$(OBJEXT) \
93 lib_a-fesetenv.$(OBJEXT) lib_a-fesetexceptflag.$(OBJEXT) \
94 lib_a-fesetround.$(OBJEXT) lib_a-fetestexcept.$(OBJEXT) \
95 lib_a-feupdateenv.$(OBJEXT)
9096 @USE_LIBTOOL_FALSE@am_lib_a_OBJECTS = $(am__objects_1)
9197 lib_a_OBJECTS = $(am_lib_a_OBJECTS)
9298 LTLIBRARIES = $(noinst_LTLIBRARIES)
95101 f_frexpf.lo f_llrint.lo f_llrintf.lo f_llrintl.lo f_log.lo \
96102 f_logf.lo f_log10.lo f_log10f.lo f_ldexp.lo f_ldexpf.lo \
97103 f_lrint.lo f_lrintf.lo f_lrintl.lo f_pow.lo f_powf.lo \
98 f_rint.lo f_rintf.lo f_rintl.lo f_tan.lo f_tanf.lo
104 f_rint.lo f_rintf.lo f_rintl.lo f_tan.lo f_tanf.lo fenv.lo \
105 feclearexcept.lo fegetenv.lo fegetexceptflag.lo fegetround.lo \
106 feholdexcept.lo feraiseexcept.lo fesetenv.lo \
107 fesetexceptflag.lo fesetround.lo fetestexcept.lo \
108 feupdateenv.lo
99109 @USE_LIBTOOL_TRUE@am_libi386_la_OBJECTS = $(am__objects_2)
100110 libi386_la_OBJECTS = $(am_libi386_la_OBJECTS)
101111 libi386_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
262272 f_log.S f_logf.S f_log10.S f_log10f.S \
263273 f_ldexp.S f_ldexpf.S f_lrint.c f_lrintf.c f_lrintl.c \
264274 f_pow.c f_powf.c f_rint.c f_rintf.c f_rintl.c \
265 f_tan.S f_tanf.S f_math.h \
266 i386mach.h
275 f_tan.S f_tanf.S f_math.h i386mach.h \
276 fenv.c feclearexcept.c fegetenv.c fegetexceptflag.c \
277 fegetround.c feholdexcept.c feraiseexcept.c fesetenv.c \
278 fesetexceptflag.c fesetround.c fetestexcept.c feupdateenv.c
267279
268280 libi386_la_LDFLAGS = -Xcompiler -nostdlib
269281 @USE_LIBTOOL_TRUE@noinst_LTLIBRARIES = libi386.la
517529
518530 lib_a-f_rintl.obj: f_rintl.c
519531 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-f_rintl.obj `if test -f 'f_rintl.c'; then $(CYGPATH_W) 'f_rintl.c'; else $(CYGPATH_W) '$(srcdir)/f_rintl.c'; fi`
532
533 lib_a-fenv.o: fenv.c
534 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fenv.o `test -f 'fenv.c' || echo '$(srcdir)/'`fenv.c
535
536 lib_a-fenv.obj: fenv.c
537 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fenv.obj `if test -f 'fenv.c'; then $(CYGPATH_W) 'fenv.c'; else $(CYGPATH_W) '$(srcdir)/fenv.c'; fi`
538
539 lib_a-feclearexcept.o: feclearexcept.c
540 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feclearexcept.o `test -f 'feclearexcept.c' || echo '$(srcdir)/'`feclearexcept.c
541
542 lib_a-feclearexcept.obj: feclearexcept.c
543 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feclearexcept.obj `if test -f 'feclearexcept.c'; then $(CYGPATH_W) 'feclearexcept.c'; else $(CYGPATH_W) '$(srcdir)/feclearexcept.c'; fi`
544
545 lib_a-fegetenv.o: fegetenv.c
546 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetenv.o `test -f 'fegetenv.c' || echo '$(srcdir)/'`fegetenv.c
547
548 lib_a-fegetenv.obj: fegetenv.c
549 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetenv.obj `if test -f 'fegetenv.c'; then $(CYGPATH_W) 'fegetenv.c'; else $(CYGPATH_W) '$(srcdir)/fegetenv.c'; fi`
550
551 lib_a-fegetexceptflag.o: fegetexceptflag.c
552 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetexceptflag.o `test -f 'fegetexceptflag.c' || echo '$(srcdir)/'`fegetexceptflag.c
553
554 lib_a-fegetexceptflag.obj: fegetexceptflag.c
555 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetexceptflag.obj `if test -f 'fegetexceptflag.c'; then $(CYGPATH_W) 'fegetexceptflag.c'; else $(CYGPATH_W) '$(srcdir)/fegetexceptflag.c'; fi`
556
557 lib_a-fegetround.o: fegetround.c
558 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetround.o `test -f 'fegetround.c' || echo '$(srcdir)/'`fegetround.c
559
560 lib_a-fegetround.obj: fegetround.c
561 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetround.obj `if test -f 'fegetround.c'; then $(CYGPATH_W) 'fegetround.c'; else $(CYGPATH_W) '$(srcdir)/fegetround.c'; fi`
562
563 lib_a-feholdexcept.o: feholdexcept.c
564 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feholdexcept.o `test -f 'feholdexcept.c' || echo '$(srcdir)/'`feholdexcept.c
565
566 lib_a-feholdexcept.obj: feholdexcept.c
567 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feholdexcept.obj `if test -f 'feholdexcept.c'; then $(CYGPATH_W) 'feholdexcept.c'; else $(CYGPATH_W) '$(srcdir)/feholdexcept.c'; fi`
568
569 lib_a-feraiseexcept.o: feraiseexcept.c
570 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feraiseexcept.o `test -f 'feraiseexcept.c' || echo '$(srcdir)/'`feraiseexcept.c
571
572 lib_a-feraiseexcept.obj: feraiseexcept.c
573 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feraiseexcept.obj `if test -f 'feraiseexcept.c'; then $(CYGPATH_W) 'feraiseexcept.c'; else $(CYGPATH_W) '$(srcdir)/feraiseexcept.c'; fi`
574
575 lib_a-fesetenv.o: fesetenv.c
576 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetenv.o `test -f 'fesetenv.c' || echo '$(srcdir)/'`fesetenv.c
577
578 lib_a-fesetenv.obj: fesetenv.c
579 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetenv.obj `if test -f 'fesetenv.c'; then $(CYGPATH_W) 'fesetenv.c'; else $(CYGPATH_W) '$(srcdir)/fesetenv.c'; fi`
580
581 lib_a-fesetexceptflag.o: fesetexceptflag.c
582 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetexceptflag.o `test -f 'fesetexceptflag.c' || echo '$(srcdir)/'`fesetexceptflag.c
583
584 lib_a-fesetexceptflag.obj: fesetexceptflag.c
585 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetexceptflag.obj `if test -f 'fesetexceptflag.c'; then $(CYGPATH_W) 'fesetexceptflag.c'; else $(CYGPATH_W) '$(srcdir)/fesetexceptflag.c'; fi`
586
587 lib_a-fesetround.o: fesetround.c
588 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetround.o `test -f 'fesetround.c' || echo '$(srcdir)/'`fesetround.c
589
590 lib_a-fesetround.obj: fesetround.c
591 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetround.obj `if test -f 'fesetround.c'; then $(CYGPATH_W) 'fesetround.c'; else $(CYGPATH_W) '$(srcdir)/fesetround.c'; fi`
592
593 lib_a-fetestexcept.o: fetestexcept.c
594 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fetestexcept.o `test -f 'fetestexcept.c' || echo '$(srcdir)/'`fetestexcept.c
595
596 lib_a-fetestexcept.obj: fetestexcept.c
597 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fetestexcept.obj `if test -f 'fetestexcept.c'; then $(CYGPATH_W) 'fetestexcept.c'; else $(CYGPATH_W) '$(srcdir)/fetestexcept.c'; fi`
598
599 lib_a-feupdateenv.o: feupdateenv.c
600 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feupdateenv.o `test -f 'feupdateenv.c' || echo '$(srcdir)/'`feupdateenv.c
601
602 lib_a-feupdateenv.obj: feupdateenv.c
603 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feupdateenv.obj `if test -f 'feupdateenv.c'; then $(CYGPATH_W) 'feupdateenv.c'; else $(CYGPATH_W) '$(srcdir)/feupdateenv.c'; fi`
520604
521605 mostlyclean-libtool:
522606 -rm -f *.lo
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='newlib'
568568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.1.0'
570 PACKAGE_STRING='newlib 3.1.0'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13221322 # Omit some internal or obsolete options to make the list less imposing.
13231323 # This message is too long to be a string in the A/UX 3.1 sh.
13241324 cat <<_ACEOF
1325 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1325 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
13261326
13271327 Usage: $0 [OPTION]... [VAR=VALUE]...
13281328
13921392
13931393 if test -n "$ac_init_help"; then
13941394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1395 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13961396 esac
13971397 cat <<\_ACEOF
13981398
15041504 test -n "$ac_init_help" && exit $ac_status
15051505 if $ac_init_version; then
15061506 cat <<\_ACEOF
1507 newlib configure 3.1.0
1507 newlib configure 3.3.0
15081508 generated by GNU Autoconf 2.68
15091509
15101510 Copyright (C) 2010 Free Software Foundation, Inc.
17821782 This file contains any messages produced by compilers while
17831783 running configure, to aid debugging if configure makes a mistake.
17841784
1785 It was created by newlib $as_me 3.1.0, which was
1785 It was created by newlib $as_me 3.3.0, which was
17861786 generated by GNU Autoconf 2.68. Invocation command line was
17871787
17881788 $ $0 $@
28662866
28672867 # Define the identity of the package.
28682868 PACKAGE='newlib'
2869 VERSION='3.1.0'
2869 VERSION='3.3.0'
28702870
28712871
28722872 # Some tools Automake needs.
1239512395 # report actual input values of CONFIG_FILES etc. instead of their
1239612396 # values after options handling.
1239712397 ac_log="
12398 This file was extended by newlib $as_me 3.1.0, which was
12398 This file was extended by newlib $as_me 3.3.0, which was
1239912399 generated by GNU Autoconf 2.68. Invocation command line was
1240012400
1240112401 CONFIG_FILES = $CONFIG_FILES
1245212452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1245312453 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1245412454 ac_cs_version="\\
12455 newlib config.status 3.1.0
12455 newlib config.status 3.3.0
1245612456 configured by $0, generated by GNU Autoconf 2.68,
1245712457 with options \\"\$ac_cs_config\\"
1245812458
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
0 ../x86_64/fenv.c
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12551255 # Omit some internal or obsolete options to make the list less imposing.
12561256 # This message is too long to be a string in the A/UX 3.1 sh.
12571257 cat <<_ACEOF
1258 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1258 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12591259
12601260 Usage: $0 [OPTION]... [VAR=VALUE]...
12611261
13251325
13261326 if test -n "$ac_init_help"; then
13271327 case $ac_init_help in
1328 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1328 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13291329 esac
13301330 cat <<\_ACEOF
13311331
14241424 test -n "$ac_init_help" && exit $ac_status
14251425 if $ac_init_version; then
14261426 cat <<\_ACEOF
1427 newlib configure 3.1.0
1427 newlib configure 3.3.0
14281428 generated by GNU Autoconf 2.68
14291429
14301430 Copyright (C) 2010 Free Software Foundation, Inc.
14791479 This file contains any messages produced by compilers while
14801480 running configure, to aid debugging if configure makes a mistake.
14811481
1482 It was created by newlib $as_me 3.1.0, which was
1482 It was created by newlib $as_me 3.3.0, which was
14831483 generated by GNU Autoconf 2.68. Invocation command line was
14841484
14851485 $ $0 $@
25632563
25642564 # Define the identity of the package.
25652565 PACKAGE='newlib'
2566 VERSION='3.1.0'
2566 VERSION='3.3.0'
25672567
25682568
25692569 # Some tools Automake needs.
51215121 # report actual input values of CONFIG_FILES etc. instead of their
51225122 # values after options handling.
51235123 ac_log="
5124 This file was extended by newlib $as_me 3.1.0, which was
5124 This file was extended by newlib $as_me 3.3.0, which was
51255125 generated by GNU Autoconf 2.68. Invocation command line was
51265126
51275127 CONFIG_FILES = $CONFIG_FILES
51785178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51795179 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
51805180 ac_cs_version="\\
5181 newlib config.status 3.1.0
5181 newlib config.status 3.3.0
51825182 configured by $0, generated by GNU Autoconf 2.68,
51835183 with options \\"\$ac_cs_config\\"
51845184
0 ## Process this file with automake to generate Makefile.in
1
2 INCLUDES = -I $(newlib_basedir)/../newlib/libm/common $(NEWLIB_CFLAGS) \
3 $(CROSS_CFLAGS) $(TARGET_CFLAGS)
4
5 LIB_SOURCES = \
6 fpclassify.c fpclassifyf.c isfinite.c isfinitef.c isinf.c \
7 isinff.c isnan.c isnanf.c isnormal.c isnormalf.c
8
9 noinst_LIBRARIES = lib.a
10 lib_a_SOURCES = $(LIB_SOURCES)
11 lib_a_CFLAGS = $(AM_CFLAGS)
12 lib_a_CCASFLAGS = $(AM_CCASFLAGS)
13 noinst_DATA =
14
15 include $(srcdir)/../../../Makefile.shared
16
17 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
18 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17
18 VPATH = @srcdir@
19 am__make_dryrun = \
20 { \
21 am__dry=no; \
22 case $$MAKEFLAGS in \
23 *\\[\ \ ]*) \
24 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26 *) \
27 for am__flg in $$MAKEFLAGS; do \
28 case $$am__flg in \
29 *=*|--*) ;; \
30 *n*) am__dry=yes; break;; \
31 esac; \
32 done;; \
33 esac; \
34 test $$am__dry = yes; \
35 }
36 pkgdatadir = $(datadir)/@PACKAGE@
37 pkgincludedir = $(includedir)/@PACKAGE@
38 pkglibdir = $(libdir)/@PACKAGE@
39 pkglibexecdir = $(libexecdir)/@PACKAGE@
40 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
41 install_sh_DATA = $(install_sh) -c -m 644
42 install_sh_PROGRAM = $(install_sh) -c
43 install_sh_SCRIPT = $(install_sh) -c
44 INSTALL_HEADER = $(INSTALL_DATA)
45 transform = $(program_transform_name)
46 NORMAL_INSTALL = :
47 PRE_INSTALL = :
48 POST_INSTALL = :
49 NORMAL_UNINSTALL = :
50 PRE_UNINSTALL = :
51 POST_UNINSTALL = :
52 build_triplet = @build@
53 host_triplet = @host@
54 DIST_COMMON = $(srcdir)/../../../Makefile.shared $(srcdir)/Makefile.in \
55 $(srcdir)/Makefile.am $(top_srcdir)/configure \
56 $(am__configure_deps) $(srcdir)/../../../../mkinstalldirs
57 subdir = .
58 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
59 am__aclocal_m4_deps = $(top_srcdir)/../../../acinclude.m4 \
60 $(top_srcdir)/configure.in
61 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
62 $(ACLOCAL_M4)
63 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
64 configure.lineno config.status.lineno
65 mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
66 CONFIG_CLEAN_FILES =
67 CONFIG_CLEAN_VPATH_FILES =
68 LIBRARIES = $(noinst_LIBRARIES)
69 ARFLAGS = cru
70 lib_a_AR = $(AR) $(ARFLAGS)
71 lib_a_LIBADD =
72 am__objects_1 = lib_a-fpclassify.$(OBJEXT) lib_a-fpclassifyf.$(OBJEXT) \
73 lib_a-isfinite.$(OBJEXT) lib_a-isfinitef.$(OBJEXT) \
74 lib_a-isinf.$(OBJEXT) lib_a-isinff.$(OBJEXT) \
75 lib_a-isnan.$(OBJEXT) lib_a-isnanf.$(OBJEXT) \
76 lib_a-isnormal.$(OBJEXT) lib_a-isnormalf.$(OBJEXT)
77 am_lib_a_OBJECTS = $(am__objects_1)
78 lib_a_OBJECTS = $(am_lib_a_OBJECTS)
79 DEFAULT_INCLUDES = -I.@am__isrc@
80 depcomp =
81 am__depfiles_maybe =
82 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
83 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
84 CCLD = $(CC)
85 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
86 SOURCES = $(lib_a_SOURCES)
87 am__can_run_installinfo = \
88 case $$AM_UPDATE_INFO_DIR in \
89 n|no|NO) false;; \
90 *) (install-info --version) >/dev/null 2>&1;; \
91 esac
92 DATA = $(noinst_DATA)
93 ETAGS = etags
94 CTAGS = ctags
95 ACLOCAL = @ACLOCAL@
96 AMTAR = @AMTAR@
97 AR = @AR@
98 AS = @AS@
99 AUTOCONF = @AUTOCONF@
100 AUTOHEADER = @AUTOHEADER@
101 AUTOMAKE = @AUTOMAKE@
102 AWK = @AWK@
103 CC = @CC@
104 CCAS = @CCAS@
105 CCASFLAGS = @CCASFLAGS@
106 CCDEPMODE = @CCDEPMODE@
107 CYGPATH_W = @CYGPATH_W@
108 DEFS = @DEFS@
109 DEPDIR = @DEPDIR@
110 ECHO_C = @ECHO_C@
111 ECHO_N = @ECHO_N@
112 ECHO_T = @ECHO_T@
113 INSTALL = @INSTALL@
114 INSTALL_DATA = @INSTALL_DATA@
115 INSTALL_PROGRAM = @INSTALL_PROGRAM@
116 INSTALL_SCRIPT = @INSTALL_SCRIPT@
117 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
118 LDFLAGS = @LDFLAGS@
119 LIBOBJS = @LIBOBJS@
120 LIBS = @LIBS@
121 LTLIBOBJS = @LTLIBOBJS@
122 MAINT = @MAINT@
123 MAKEINFO = @MAKEINFO@
124 MKDIR_P = @MKDIR_P@
125 NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
126 NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
127 OBJEXT = @OBJEXT@
128 PACKAGE = @PACKAGE@
129 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
130 PACKAGE_NAME = @PACKAGE_NAME@
131 PACKAGE_STRING = @PACKAGE_STRING@
132 PACKAGE_TARNAME = @PACKAGE_TARNAME@
133 PACKAGE_URL = @PACKAGE_URL@
134 PACKAGE_VERSION = @PACKAGE_VERSION@
135 PATH_SEPARATOR = @PATH_SEPARATOR@
136 RANLIB = @RANLIB@
137 READELF = @READELF@
138 SET_MAKE = @SET_MAKE@
139 SHELL = @SHELL@
140 STRIP = @STRIP@
141 VERSION = @VERSION@
142 abs_builddir = @abs_builddir@
143 abs_srcdir = @abs_srcdir@
144 abs_top_builddir = @abs_top_builddir@
145 abs_top_srcdir = @abs_top_srcdir@
146 aext = @aext@
147 am__include = @am__include@
148 am__leading_dot = @am__leading_dot@
149 am__quote = @am__quote@
150 am__tar = @am__tar@
151 am__untar = @am__untar@
152 bindir = @bindir@
153 build = @build@
154 build_alias = @build_alias@
155 build_cpu = @build_cpu@
156 build_os = @build_os@
157 build_vendor = @build_vendor@
158 builddir = @builddir@
159 datadir = @datadir@
160 datarootdir = @datarootdir@
161 docdir = @docdir@
162 dvidir = @dvidir@
163 exec_prefix = @exec_prefix@
164 host = @host@
165 host_alias = @host_alias@
166 host_cpu = @host_cpu@
167 host_os = @host_os@
168 host_vendor = @host_vendor@
169 htmldir = @htmldir@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = @libdir@
174 libexecdir = @libexecdir@
175 libm_machine_dir = @libm_machine_dir@
176 localedir = @localedir@
177 localstatedir = @localstatedir@
178 lpfx = @lpfx@
179 machine_dir = @machine_dir@
180 mandir = @mandir@
181 mkdir_p = @mkdir_p@
182 newlib_basedir = @newlib_basedir@
183 oext = @oext@
184 oldincludedir = @oldincludedir@
185 pdfdir = @pdfdir@
186 prefix = @prefix@
187 program_transform_name = @program_transform_name@
188 psdir = @psdir@
189 sbindir = @sbindir@
190 sharedstatedir = @sharedstatedir@
191 srcdir = @srcdir@
192 sys_dir = @sys_dir@
193 sysconfdir = @sysconfdir@
194 target_alias = @target_alias@
195 top_build_prefix = @top_build_prefix@
196 top_builddir = @top_builddir@
197 top_srcdir = @top_srcdir@
198 INCLUDES = -I $(newlib_basedir)/../newlib/libm/common $(NEWLIB_CFLAGS) \
199 $(CROSS_CFLAGS) $(TARGET_CFLAGS)
200
201 LIB_SOURCES = \
202 fpclassify.c fpclassifyf.c isfinite.c isfinitef.c isinf.c \
203 isinff.c isnan.c isnanf.c isnormal.c isnormalf.c
204
205 noinst_LIBRARIES = lib.a
206 lib_a_SOURCES = $(LIB_SOURCES)
207 lib_a_CFLAGS = $(AM_CFLAGS)
208 lib_a_CCASFLAGS = $(AM_CCASFLAGS)
209 noinst_DATA =
210
211 #
212 # documentation rules
213 #
214 SUFFIXES = .def .xml
215 CHEW = ${top_builddir}/../doc/makedoc -f $(top_srcdir)/../doc/doc.str
216 DOCBOOK_CHEW = ${top_srcdir}/../doc/makedocbook.py
217 DOCBOOK_OUT_FILES = $(CHEWOUT_FILES:.def=.xml)
218 DOCBOOK_CHAPTERS = $(CHAPTERS:.tex=.xml)
219 CLEANFILES = $(CHEWOUT_FILES) $(DOCBOOK_OUT_FILES)
220 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
221 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
222 all: all-am
223
224 .SUFFIXES:
225 .SUFFIXES: .def .xml .c .o .obj
226 am--refresh: Makefile
227 @:
228 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../../Makefile.shared $(am__configure_deps)
229 @for dep in $?; do \
230 case '$(am__configure_deps)' in \
231 *$$dep*) \
232 echo ' cd $(srcdir) && $(AUTOMAKE) --cygnus'; \
233 $(am__cd) $(srcdir) && $(AUTOMAKE) --cygnus \
234 && exit 0; \
235 exit 1;; \
236 esac; \
237 done; \
238 echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile'; \
239 $(am__cd) $(top_srcdir) && \
240 $(AUTOMAKE) --cygnus Makefile
241 .PRECIOUS: Makefile
242 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
243 @case '$?' in \
244 *config.status*) \
245 echo ' $(SHELL) ./config.status'; \
246 $(SHELL) ./config.status;; \
247 *) \
248 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
249 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
250 esac;
251 $(srcdir)/../../../Makefile.shared:
252
253 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
254 $(SHELL) ./config.status --recheck
255
256 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
257 $(am__cd) $(srcdir) && $(AUTOCONF)
258 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
259 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
260 $(am__aclocal_m4_deps):
261
262 clean-noinstLIBRARIES:
263 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
264 lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES)
265 -rm -f lib.a
266 $(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
267 $(RANLIB) lib.a
268
269 mostlyclean-compile:
270 -rm -f *.$(OBJEXT)
271
272 distclean-compile:
273 -rm -f *.tab.c
274
275 .c.o:
276 $(COMPILE) -c $<
277
278 .c.obj:
279 $(COMPILE) -c `$(CYGPATH_W) '$<'`
280
281 lib_a-fpclassify.o: fpclassify.c
282 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fpclassify.o `test -f 'fpclassify.c' || echo '$(srcdir)/'`fpclassify.c
283
284 lib_a-fpclassify.obj: fpclassify.c
285 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fpclassify.obj `if test -f 'fpclassify.c'; then $(CYGPATH_W) 'fpclassify.c'; else $(CYGPATH_W) '$(srcdir)/fpclassify.c'; fi`
286
287 lib_a-fpclassifyf.o: fpclassifyf.c
288 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fpclassifyf.o `test -f 'fpclassifyf.c' || echo '$(srcdir)/'`fpclassifyf.c
289
290 lib_a-fpclassifyf.obj: fpclassifyf.c
291 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fpclassifyf.obj `if test -f 'fpclassifyf.c'; then $(CYGPATH_W) 'fpclassifyf.c'; else $(CYGPATH_W) '$(srcdir)/fpclassifyf.c'; fi`
292
293 lib_a-isfinite.o: isfinite.c
294 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isfinite.o `test -f 'isfinite.c' || echo '$(srcdir)/'`isfinite.c
295
296 lib_a-isfinite.obj: isfinite.c
297 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isfinite.obj `if test -f 'isfinite.c'; then $(CYGPATH_W) 'isfinite.c'; else $(CYGPATH_W) '$(srcdir)/isfinite.c'; fi`
298
299 lib_a-isfinitef.o: isfinitef.c
300 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isfinitef.o `test -f 'isfinitef.c' || echo '$(srcdir)/'`isfinitef.c
301
302 lib_a-isfinitef.obj: isfinitef.c
303 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isfinitef.obj `if test -f 'isfinitef.c'; then $(CYGPATH_W) 'isfinitef.c'; else $(CYGPATH_W) '$(srcdir)/isfinitef.c'; fi`
304
305 lib_a-isinf.o: isinf.c
306 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isinf.o `test -f 'isinf.c' || echo '$(srcdir)/'`isinf.c
307
308 lib_a-isinf.obj: isinf.c
309 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isinf.obj `if test -f 'isinf.c'; then $(CYGPATH_W) 'isinf.c'; else $(CYGPATH_W) '$(srcdir)/isinf.c'; fi`
310
311 lib_a-isinff.o: isinff.c
312 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isinff.o `test -f 'isinff.c' || echo '$(srcdir)/'`isinff.c
313
314 lib_a-isinff.obj: isinff.c
315 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isinff.obj `if test -f 'isinff.c'; then $(CYGPATH_W) 'isinff.c'; else $(CYGPATH_W) '$(srcdir)/isinff.c'; fi`
316
317 lib_a-isnan.o: isnan.c
318 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isnan.o `test -f 'isnan.c' || echo '$(srcdir)/'`isnan.c
319
320 lib_a-isnan.obj: isnan.c
321 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isnan.obj `if test -f 'isnan.c'; then $(CYGPATH_W) 'isnan.c'; else $(CYGPATH_W) '$(srcdir)/isnan.c'; fi`
322
323 lib_a-isnanf.o: isnanf.c
324 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isnanf.o `test -f 'isnanf.c' || echo '$(srcdir)/'`isnanf.c
325
326 lib_a-isnanf.obj: isnanf.c
327 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isnanf.obj `if test -f 'isnanf.c'; then $(CYGPATH_W) 'isnanf.c'; else $(CYGPATH_W) '$(srcdir)/isnanf.c'; fi`
328
329 lib_a-isnormal.o: isnormal.c
330 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isnormal.o `test -f 'isnormal.c' || echo '$(srcdir)/'`isnormal.c
331
332 lib_a-isnormal.obj: isnormal.c
333 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isnormal.obj `if test -f 'isnormal.c'; then $(CYGPATH_W) 'isnormal.c'; else $(CYGPATH_W) '$(srcdir)/isnormal.c'; fi`
334
335 lib_a-isnormalf.o: isnormalf.c
336 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isnormalf.o `test -f 'isnormalf.c' || echo '$(srcdir)/'`isnormalf.c
337
338 lib_a-isnormalf.obj: isnormalf.c
339 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isnormalf.obj `if test -f 'isnormalf.c'; then $(CYGPATH_W) 'isnormalf.c'; else $(CYGPATH_W) '$(srcdir)/isnormalf.c'; fi`
340
341 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 mkid -fID $$unique
349 tags: TAGS
350
351 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
352 $(TAGS_FILES) $(LISP)
353 set x; \
354 here=`pwd`; \
355 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
356 unique=`for i in $$list; do \
357 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
358 done | \
359 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
360 END { if (nonempty) { for (i in files) print i; }; }'`; \
361 shift; \
362 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 if test $$# -gt 0; then \
365 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
366 "$$@" $$unique; \
367 else \
368 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
369 $$unique; \
370 fi; \
371 fi
372 ctags: CTAGS
373 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
374 $(TAGS_FILES) $(LISP)
375 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
376 unique=`for i in $$list; do \
377 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378 done | \
379 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
380 END { if (nonempty) { for (i in files) print i; }; }'`; \
381 test -z "$(CTAGS_ARGS)$$unique" \
382 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
383 $$unique
384
385 GTAGS:
386 here=`$(am__cd) $(top_builddir) && pwd` \
387 && $(am__cd) $(top_srcdir) \
388 && gtags -i $(GTAGS_ARGS) "$$here"
389
390 distclean-tags:
391 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
392 check-am:
393 check: check-am
394 all-am: Makefile $(LIBRARIES) $(DATA)
395 installdirs:
396 install: install-am
397 install-exec: install-exec-am
398 install-data: install-data-am
399 uninstall: uninstall-am
400
401 install-am: all-am
402 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
403
404 installcheck: installcheck-am
405 install-strip:
406 if test -z '$(STRIP)'; then \
407 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
408 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
409 install; \
410 else \
411 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
412 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
413 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
414 fi
415 mostlyclean-generic:
416
417 clean-generic:
418 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
419
420 distclean-generic:
421 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
422 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
423
424 maintainer-clean-generic:
425 @echo "This command is intended for maintainers to use"
426 @echo "it deletes files that may require special tools to rebuild."
427 clean: clean-am
428
429 clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
430
431 distclean: distclean-am
432 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
433 -rm -f Makefile
434 distclean-am: clean-am distclean-compile distclean-generic \
435 distclean-tags
436
437 dvi: dvi-am
438
439 dvi-am:
440
441 html: html-am
442
443 html-am:
444
445 info: info-am
446
447 info-am:
448
449 install-data-am:
450
451 install-dvi: install-dvi-am
452
453 install-dvi-am:
454
455 install-exec-am:
456
457 install-html: install-html-am
458
459 install-html-am:
460
461 install-info: install-info-am
462
463 install-info-am:
464
465 install-man:
466
467 install-pdf: install-pdf-am
468
469 install-pdf-am:
470
471 install-ps: install-ps-am
472
473 install-ps-am:
474
475 installcheck-am:
476
477 maintainer-clean: maintainer-clean-am
478 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
479 -rm -rf $(top_srcdir)/autom4te.cache
480 -rm -f Makefile
481 maintainer-clean-am: distclean-am maintainer-clean-generic
482
483 mostlyclean: mostlyclean-am
484
485 mostlyclean-am: mostlyclean-compile mostlyclean-generic
486
487 pdf: pdf-am
488
489 pdf-am:
490
491 ps: ps-am
492
493 ps-am:
494
495 uninstall-am:
496
497 .MAKE: install-am install-strip
498
499 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
500 clean-generic clean-noinstLIBRARIES ctags distclean \
501 distclean-compile distclean-generic distclean-tags dvi dvi-am \
502 html html-am info info-am install install-am install-data \
503 install-data-am install-dvi install-dvi-am install-exec \
504 install-exec-am install-html install-html-am install-info \
505 install-info-am install-man install-pdf install-pdf-am \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
510 uninstall-am
511
512 objectlist.awk.in: $(noinst_LTLIBRARIES)
513 -rm -f objectlist.awk.in
514 for i in `ls *.lo` ; \
515 do \
516 echo $$i `pwd`/$$i >> objectlist.awk.in ; \
517 done
518
519 .c.def:
520 $(CHEW) < $< > $*.def || ( rm $*.def && false )
521 @touch stmp-def
522
523 TARGETDOC ?= ../tmp.texi
524
525 doc: $(CHEWOUT_FILES)
526 for chapter in $(CHAPTERS) ; \
527 do \
528 cat $(srcdir)/$$chapter >> $(TARGETDOC) ; \
529 done
530
531 .c.xml:
532 $(DOCBOOK_CHEW) < $< > $*.xml || ( rm $*.xml && false )
533 @touch stmp-xml
534
535 docbook: $(DOCBOOK_OUT_FILES)
536 for chapter in $(DOCBOOK_CHAPTERS) ; \
537 do \
538 ${top_srcdir}/../doc/chapter-texi2docbook.py <$(srcdir)/$${chapter%.xml}.tex >../$$chapter ; \
539 done
540
541 # Tell versions [3.59,3.63) of GNU make to not export all variables.
542 # Otherwise a system limit (for SysV at least) may be exceeded.
543 .NOEXPORT:
0 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
23 # Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # serial 1
30
31 # AM_AUTOMAKE_VERSION(VERSION)
32 # ----------------------------
33 # Automake X.Y traces this macro to ensure aclocal.m4 has been
34 # generated from the m4 files accompanying Automake X.Y.
35 # (This private macro should not be called outside this file.)
36 AC_DEFUN([AM_AUTOMAKE_VERSION],
37 [am__api_version='1.11'
38 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
39 dnl require some minimum version. Point them to the right macro.
40 m4_if([$1], [1.11.6], [],
41 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
42 ])
43
44 # _AM_AUTOCONF_VERSION(VERSION)
45 # -----------------------------
46 # aclocal traces this macro to find the Autoconf version.
47 # This is a private macro too. Using m4_define simplifies
48 # the logic in aclocal, which can simply ignore this definition.
49 m4_define([_AM_AUTOCONF_VERSION], [])
50
51 # AM_SET_CURRENT_AUTOMAKE_VERSION
52 # -------------------------------
53 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
54 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
55 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
56 [AM_AUTOMAKE_VERSION([1.11.6])dnl
57 m4_ifndef([AC_AUTOCONF_VERSION],
58 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
59 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
60
61 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
62
63 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
64 #
65 # This file is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
68
69 # serial 1
70
71 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
72 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
73 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
74 #
75 # Of course, Automake must honor this variable whenever it calls a
76 # tool from the auxiliary directory. The problem is that $srcdir (and
77 # therefore $ac_aux_dir as well) can be either absolute or relative,
78 # depending on how configure is run. This is pretty annoying, since
79 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
80 # source directory, any form will work fine, but in subdirectories a
81 # relative path needs to be adjusted first.
82 #
83 # $ac_aux_dir/missing
84 # fails when called from a subdirectory if $ac_aux_dir is relative
85 # $top_srcdir/$ac_aux_dir/missing
86 # fails if $ac_aux_dir is absolute,
87 # fails when called from a subdirectory in a VPATH build with
88 # a relative $ac_aux_dir
89 #
90 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
91 # are both prefixed by $srcdir. In an in-source build this is usually
92 # harmless because $srcdir is `.', but things will broke when you
93 # start a VPATH build or use an absolute $srcdir.
94 #
95 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
96 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
97 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
98 # and then we would define $MISSING as
99 # MISSING="\${SHELL} $am_aux_dir/missing"
100 # This will work as long as MISSING is not called from configure, because
101 # unfortunately $(top_srcdir) has no meaning in configure.
102 # However there are other variables, like CC, which are often used in
103 # configure, and could therefore not use this "fixed" $ac_aux_dir.
104 #
105 # Another solution, used here, is to always expand $ac_aux_dir to an
106 # absolute PATH. The drawback is that using absolute paths prevent a
107 # configured tree to be moved without reconfiguration.
108
109 AC_DEFUN([AM_AUX_DIR_EXPAND],
110 [dnl Rely on autoconf to set up CDPATH properly.
111 AC_PREREQ([2.50])dnl
112 # expand $ac_aux_dir to an absolute path
113 am_aux_dir=`cd $ac_aux_dir && pwd`
114 ])
115
116 # AM_CONDITIONAL -*- Autoconf -*-
117
118 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
119 # Free Software Foundation, Inc.
120 #
121 # This file is free software; the Free Software Foundation
122 # gives unlimited permission to copy and/or distribute it,
123 # with or without modifications, as long as this notice is preserved.
124
125 # serial 9
126
127 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
128 # -------------------------------------
129 # Define a conditional.
130 AC_DEFUN([AM_CONDITIONAL],
131 [AC_PREREQ(2.52)dnl
132 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
133 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
134 AC_SUBST([$1_TRUE])dnl
135 AC_SUBST([$1_FALSE])dnl
136 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
137 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
138 m4_define([_AM_COND_VALUE_$1], [$2])dnl
139 if $2; then
140 $1_TRUE=
141 $1_FALSE='#'
142 else
143 $1_TRUE='#'
144 $1_FALSE=
145 fi
146 AC_CONFIG_COMMANDS_PRE(
147 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148 AC_MSG_ERROR([[conditional "$1" was never defined.
149 Usually this means the macro was only invoked conditionally.]])
150 fi])])
151
152 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
153 # 2010, 2011 Free Software Foundation, Inc.
154 #
155 # This file is free software; the Free Software Foundation
156 # gives unlimited permission to copy and/or distribute it,
157 # with or without modifications, as long as this notice is preserved.
158
159 # serial 12
160
161 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
162 # written in clear, in which case automake, when reading aclocal.m4,
163 # will think it sees a *use*, and therefore will trigger all it's
164 # C support machinery. Also note that it means that autoscan, seeing
165 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
166
167
168 # _AM_DEPENDENCIES(NAME)
169 # ----------------------
170 # See how the compiler implements dependency checking.
171 # NAME is "CC", "CXX", "GCJ", or "OBJC".
172 # We try a few techniques and use that to set a single cache variable.
173 #
174 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
175 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
176 # dependency, and given that the user is not expected to run this macro,
177 # just rely on AC_PROG_CC.
178 AC_DEFUN([_AM_DEPENDENCIES],
179 [AC_REQUIRE([AM_SET_DEPDIR])dnl
180 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
181 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
182 AC_REQUIRE([AM_DEP_TRACK])dnl
183
184 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
185 [$1], CXX, [depcc="$CXX" am_compiler_list=],
186 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
187 [$1], UPC, [depcc="$UPC" am_compiler_list=],
188 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
189 [depcc="$$1" am_compiler_list=])
190
191 AC_CACHE_CHECK([dependency style of $depcc],
192 [am_cv_$1_dependencies_compiler_type],
193 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
194 # We make a subdir and do the tests there. Otherwise we can end up
195 # making bogus files that we don't know about and never remove. For
196 # instance it was reported that on HP-UX the gcc test will end up
197 # making a dummy file named `D' -- because `-MD' means `put the output
198 # in D'.
199 rm -rf conftest.dir
200 mkdir conftest.dir
201 # Copy depcomp to subdir because otherwise we won't find it if we're
202 # using a relative directory.
203 cp "$am_depcomp" conftest.dir
204 cd conftest.dir
205 # We will build objects and dependencies in a subdirectory because
206 # it helps to detect inapplicable dependency modes. For instance
207 # both Tru64's cc and ICC support -MD to output dependencies as a
208 # side effect of compilation, but ICC will put the dependencies in
209 # the current directory while Tru64 will put them in the object
210 # directory.
211 mkdir sub
212
213 am_cv_$1_dependencies_compiler_type=none
214 if test "$am_compiler_list" = ""; then
215 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
216 fi
217 am__universal=false
218 m4_case([$1], [CC],
219 [case " $depcc " in #(
220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
221 esac],
222 [CXX],
223 [case " $depcc " in #(
224 *\ -arch\ *\ -arch\ *) am__universal=true ;;
225 esac])
226
227 for depmode in $am_compiler_list; do
228 # Setup a source with many dependencies, because some compilers
229 # like to wrap large dependency lists on column 80 (with \), and
230 # we should not choose a depcomp mode which is confused by this.
231 #
232 # We need to recreate these files for each test, as the compiler may
233 # overwrite some of them when testing with obscure command lines.
234 # This happens at least with the AIX C compiler.
235 : > sub/conftest.c
236 for i in 1 2 3 4 5 6; do
237 echo '#include "conftst'$i'.h"' >> sub/conftest.c
238 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
239 # Solaris 8's {/usr,}/bin/sh.
240 touch sub/conftst$i.h
241 done
242 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
243
244 # We check with `-c' and `-o' for the sake of the "dashmstdout"
245 # mode. It turns out that the SunPro C++ compiler does not properly
246 # handle `-M -o', and we need to detect this. Also, some Intel
247 # versions had trouble with output in subdirs
248 am__obj=sub/conftest.${OBJEXT-o}
249 am__minus_obj="-o $am__obj"
250 case $depmode in
251 gcc)
252 # This depmode causes a compiler race in universal mode.
253 test "$am__universal" = false || continue
254 ;;
255 nosideeffect)
256 # after this tag, mechanisms are not by side-effect, so they'll
257 # only be used when explicitly requested
258 if test "x$enable_dependency_tracking" = xyes; then
259 continue
260 else
261 break
262 fi
263 ;;
264 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
265 # This compiler won't grok `-c -o', but also, the minuso test has
266 # not run yet. These depmodes are late enough in the game, and
267 # so weak that their functioning should not be impacted.
268 am__obj=conftest.${OBJEXT-o}
269 am__minus_obj=
270 ;;
271 none) break ;;
272 esac
273 if depmode=$depmode \
274 source=sub/conftest.c object=$am__obj \
275 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
276 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
277 >/dev/null 2>conftest.err &&
278 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
279 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
280 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
281 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
282 # icc doesn't choke on unknown options, it will just issue warnings
283 # or remarks (even with -Werror). So we grep stderr for any message
284 # that says an option was ignored or not supported.
285 # When given -MP, icc 7.0 and 7.1 complain thusly:
286 # icc: Command line warning: ignoring option '-M'; no argument required
287 # The diagnosis changed in icc 8.0:
288 # icc: Command line remark: option '-MP' not supported
289 if (grep 'ignoring option' conftest.err ||
290 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
291 am_cv_$1_dependencies_compiler_type=$depmode
292 break
293 fi
294 fi
295 done
296
297 cd ..
298 rm -rf conftest.dir
299 else
300 am_cv_$1_dependencies_compiler_type=none
301 fi
302 ])
303 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
304 AM_CONDITIONAL([am__fastdep$1], [
305 test "x$enable_dependency_tracking" != xno \
306 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
307 ])
308
309
310 # AM_SET_DEPDIR
311 # -------------
312 # Choose a directory name for dependency files.
313 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
314 AC_DEFUN([AM_SET_DEPDIR],
315 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
316 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
317 ])
318
319
320 # AM_DEP_TRACK
321 # ------------
322 AC_DEFUN([AM_DEP_TRACK],
323 [AC_ARG_ENABLE(dependency-tracking,
324 [ --disable-dependency-tracking speeds up one-time build
325 --enable-dependency-tracking do not reject slow dependency extractors])
326 if test "x$enable_dependency_tracking" != xno; then
327 am_depcomp="$ac_aux_dir/depcomp"
328 AMDEPBACKSLASH='\'
329 am__nodep='_no'
330 fi
331 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
332 AC_SUBST([AMDEPBACKSLASH])dnl
333 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
334 AC_SUBST([am__nodep])dnl
335 _AM_SUBST_NOTMAKE([am__nodep])dnl
336 ])
337
338 # Generate code to set up dependency tracking. -*- Autoconf -*-
339
340 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
341 # Free Software Foundation, Inc.
342 #
343 # This file is free software; the Free Software Foundation
344 # gives unlimited permission to copy and/or distribute it,
345 # with or without modifications, as long as this notice is preserved.
346
347 #serial 5
348
349 # _AM_OUTPUT_DEPENDENCY_COMMANDS
350 # ------------------------------
351 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
352 [{
353 # Autoconf 2.62 quotes --file arguments for eval, but not when files
354 # are listed without --file. Let's play safe and only enable the eval
355 # if we detect the quoting.
356 case $CONFIG_FILES in
357 *\'*) eval set x "$CONFIG_FILES" ;;
358 *) set x $CONFIG_FILES ;;
359 esac
360 shift
361 for mf
362 do
363 # Strip MF so we end up with the name of the file.
364 mf=`echo "$mf" | sed -e 's/:.*$//'`
365 # Check whether this is an Automake generated Makefile or not.
366 # We used to match only the files named `Makefile.in', but
367 # some people rename them; so instead we look at the file content.
368 # Grep'ing the first line is not enough: some people post-process
369 # each Makefile.in and add a new line on top of each file to say so.
370 # Grep'ing the whole file is not good either: AIX grep has a line
371 # limit of 2048, but all sed's we know have understand at least 4000.
372 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
373 dirpart=`AS_DIRNAME("$mf")`
374 else
375 continue
376 fi
377 # Extract the definition of DEPDIR, am__include, and am__quote
378 # from the Makefile without running `make'.
379 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
380 test -z "$DEPDIR" && continue
381 am__include=`sed -n 's/^am__include = //p' < "$mf"`
382 test -z "am__include" && continue
383 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
384 # When using ansi2knr, U may be empty or an underscore; expand it
385 U=`sed -n 's/^U = //p' < "$mf"`
386 # Find all dependency output files, they are included files with
387 # $(DEPDIR) in their names. We invoke sed twice because it is the
388 # simplest approach to changing $(DEPDIR) to its actual value in the
389 # expansion.
390 for file in `sed -n "
391 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
392 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
393 # Make sure the directory exists.
394 test -f "$dirpart/$file" && continue
395 fdir=`AS_DIRNAME(["$file"])`
396 AS_MKDIR_P([$dirpart/$fdir])
397 # echo "creating $dirpart/$file"
398 echo '# dummy' > "$dirpart/$file"
399 done
400 done
401 }
402 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
403
404
405 # AM_OUTPUT_DEPENDENCY_COMMANDS
406 # -----------------------------
407 # This macro should only be invoked once -- use via AC_REQUIRE.
408 #
409 # This code is only required when automatic dependency tracking
410 # is enabled. FIXME. This creates each `.P' file that we will
411 # need in order to bootstrap the dependency handling code.
412 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
413 [AC_CONFIG_COMMANDS([depfiles],
414 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
415 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
416 ])
417
418 # Do all the work for Automake. -*- Autoconf -*-
419
420 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
421 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
422 #
423 # This file is free software; the Free Software Foundation
424 # gives unlimited permission to copy and/or distribute it,
425 # with or without modifications, as long as this notice is preserved.
426
427 # serial 16
428
429 # This macro actually does too much. Some checks are only needed if
430 # your package does certain things. But this isn't really a big deal.
431
432 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
433 # AM_INIT_AUTOMAKE([OPTIONS])
434 # -----------------------------------------------
435 # The call with PACKAGE and VERSION arguments is the old style
436 # call (pre autoconf-2.50), which is being phased out. PACKAGE
437 # and VERSION should now be passed to AC_INIT and removed from
438 # the call to AM_INIT_AUTOMAKE.
439 # We support both call styles for the transition. After
440 # the next Automake release, Autoconf can make the AC_INIT
441 # arguments mandatory, and then we can depend on a new Autoconf
442 # release and drop the old call support.
443 AC_DEFUN([AM_INIT_AUTOMAKE],
444 [AC_PREREQ([2.62])dnl
445 dnl Autoconf wants to disallow AM_ names. We explicitly allow
446 dnl the ones we care about.
447 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
448 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
449 AC_REQUIRE([AC_PROG_INSTALL])dnl
450 if test "`cd $srcdir && pwd`" != "`pwd`"; then
451 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
452 # is not polluted with repeated "-I."
453 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
454 # test to see if srcdir already configured
455 if test -f $srcdir/config.status; then
456 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
457 fi
458 fi
459
460 # test whether we have cygpath
461 if test -z "$CYGPATH_W"; then
462 if (cygpath --version) >/dev/null 2>/dev/null; then
463 CYGPATH_W='cygpath -w'
464 else
465 CYGPATH_W=echo
466 fi
467 fi
468 AC_SUBST([CYGPATH_W])
469
470 # Define the identity of the package.
471 dnl Distinguish between old-style and new-style calls.
472 m4_ifval([$2],
473 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
474 AC_SUBST([PACKAGE], [$1])dnl
475 AC_SUBST([VERSION], [$2])],
476 [_AM_SET_OPTIONS([$1])dnl
477 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
478 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
479 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
480 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
481 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
482
483 _AM_IF_OPTION([no-define],,
484 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
485 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
486
487 # Some tools Automake needs.
488 AC_REQUIRE([AM_SANITY_CHECK])dnl
489 AC_REQUIRE([AC_ARG_PROGRAM])dnl
490 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
491 AM_MISSING_PROG(AUTOCONF, autoconf)
492 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
493 AM_MISSING_PROG(AUTOHEADER, autoheader)
494 AM_MISSING_PROG(MAKEINFO, makeinfo)
495 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
496 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
497 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
498 # We need awk for the "check" target. The system "awk" is bad on
499 # some platforms.
500 AC_REQUIRE([AC_PROG_AWK])dnl
501 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
502 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
503 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
504 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
505 [_AM_PROG_TAR([v7])])])
506 _AM_IF_OPTION([no-dependencies],,
507 [AC_PROVIDE_IFELSE([AC_PROG_CC],
508 [_AM_DEPENDENCIES(CC)],
509 [define([AC_PROG_CC],
510 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
511 AC_PROVIDE_IFELSE([AC_PROG_CXX],
512 [_AM_DEPENDENCIES(CXX)],
513 [define([AC_PROG_CXX],
514 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
515 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
516 [_AM_DEPENDENCIES(OBJC)],
517 [define([AC_PROG_OBJC],
518 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
519 ])
520 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
521 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
522 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
523 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
524 AC_CONFIG_COMMANDS_PRE(dnl
525 [m4_provide_if([_AM_COMPILER_EXEEXT],
526 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
527 ])
528
529 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
530 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
531 dnl mangled by Autoconf and run in a shell conditional statement.
532 m4_define([_AC_COMPILER_EXEEXT],
533 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
534
535
536 # When config.status generates a header, we must update the stamp-h file.
537 # This file resides in the same directory as the config header
538 # that is generated. The stamp files are numbered to have different names.
539
540 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
541 # loop where config.status creates the headers, so we can generate
542 # our stamp files there.
543 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
544 [# Compute $1's index in $config_headers.
545 _am_arg=$1
546 _am_stamp_count=1
547 for _am_header in $config_headers :; do
548 case $_am_header in
549 $_am_arg | $_am_arg:* )
550 break ;;
551 * )
552 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
553 esac
554 done
555 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
556
557 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
558 # Inc.
559 #
560 # This file is free software; the Free Software Foundation
561 # gives unlimited permission to copy and/or distribute it,
562 # with or without modifications, as long as this notice is preserved.
563
564 # serial 1
565
566 # AM_PROG_INSTALL_SH
567 # ------------------
568 # Define $install_sh.
569 AC_DEFUN([AM_PROG_INSTALL_SH],
570 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
571 if test x"${install_sh}" != xset; then
572 case $am_aux_dir in
573 *\ * | *\ *)
574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
575 *)
576 install_sh="\${SHELL} $am_aux_dir/install-sh"
577 esac
578 fi
579 AC_SUBST(install_sh)])
580
581 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
582 #
583 # This file is free software; the Free Software Foundation
584 # gives unlimited permission to copy and/or distribute it,
585 # with or without modifications, as long as this notice is preserved.
586
587 # serial 2
588
589 # Check whether the underlying file-system supports filenames
590 # with a leading dot. For instance MS-DOS doesn't.
591 AC_DEFUN([AM_SET_LEADING_DOT],
592 [rm -rf .tst 2>/dev/null
593 mkdir .tst 2>/dev/null
594 if test -d .tst; then
595 am__leading_dot=.
596 else
597 am__leading_dot=_
598 fi
599 rmdir .tst 2>/dev/null
600 AC_SUBST([am__leading_dot])])
601
602 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
603 # From Jim Meyering
604
605 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
606 # 2011 Free Software Foundation, Inc.
607 #
608 # This file is free software; the Free Software Foundation
609 # gives unlimited permission to copy and/or distribute it,
610 # with or without modifications, as long as this notice is preserved.
611
612 # serial 5
613
614 # AM_MAINTAINER_MODE([DEFAULT-MODE])
615 # ----------------------------------
616 # Control maintainer-specific portions of Makefiles.
617 # Default is to disable them, unless `enable' is passed literally.
618 # For symmetry, `disable' may be passed as well. Anyway, the user
619 # can override the default with the --enable/--disable switch.
620 AC_DEFUN([AM_MAINTAINER_MODE],
621 [m4_case(m4_default([$1], [disable]),
622 [enable], [m4_define([am_maintainer_other], [disable])],
623 [disable], [m4_define([am_maintainer_other], [enable])],
624 [m4_define([am_maintainer_other], [enable])
625 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
626 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
627 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
628 AC_ARG_ENABLE([maintainer-mode],
629 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
630 (and sometimes confusing) to the casual installer],
631 [USE_MAINTAINER_MODE=$enableval],
632 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
633 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
634 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
635 MAINT=$MAINTAINER_MODE_TRUE
636 AC_SUBST([MAINT])dnl
637 ]
638 )
639
640 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
641
642 # Check to see how 'make' treats includes. -*- Autoconf -*-
643
644 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
645 #
646 # This file is free software; the Free Software Foundation
647 # gives unlimited permission to copy and/or distribute it,
648 # with or without modifications, as long as this notice is preserved.
649
650 # serial 4
651
652 # AM_MAKE_INCLUDE()
653 # -----------------
654 # Check to see how make treats includes.
655 AC_DEFUN([AM_MAKE_INCLUDE],
656 [am_make=${MAKE-make}
657 cat > confinc << 'END'
658 am__doit:
659 @echo this is the am__doit target
660 .PHONY: am__doit
661 END
662 # If we don't find an include directive, just comment out the code.
663 AC_MSG_CHECKING([for style of include used by $am_make])
664 am__include="#"
665 am__quote=
666 _am_result=none
667 # First try GNU make style include.
668 echo "include confinc" > confmf
669 # Ignore all kinds of additional output from `make'.
670 case `$am_make -s -f confmf 2> /dev/null` in #(
671 *the\ am__doit\ target*)
672 am__include=include
673 am__quote=
674 _am_result=GNU
675 ;;
676 esac
677 # Now try BSD make style include.
678 if test "$am__include" = "#"; then
679 echo '.include "confinc"' > confmf
680 case `$am_make -s -f confmf 2> /dev/null` in #(
681 *the\ am__doit\ target*)
682 am__include=.include
683 am__quote="\""
684 _am_result=BSD
685 ;;
686 esac
687 fi
688 AC_SUBST([am__include])
689 AC_SUBST([am__quote])
690 AC_MSG_RESULT([$_am_result])
691 rm -f confinc confmf
692 ])
693
694 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
695
696 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
697 # Free Software Foundation, Inc.
698 #
699 # This file is free software; the Free Software Foundation
700 # gives unlimited permission to copy and/or distribute it,
701 # with or without modifications, as long as this notice is preserved.
702
703 # serial 6
704
705 # AM_MISSING_PROG(NAME, PROGRAM)
706 # ------------------------------
707 AC_DEFUN([AM_MISSING_PROG],
708 [AC_REQUIRE([AM_MISSING_HAS_RUN])
709 $1=${$1-"${am_missing_run}$2"}
710 AC_SUBST($1)])
711
712
713 # AM_MISSING_HAS_RUN
714 # ------------------
715 # Define MISSING if not defined so far and test if it supports --run.
716 # If it does, set am_missing_run to use it, otherwise, to nothing.
717 AC_DEFUN([AM_MISSING_HAS_RUN],
718 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
719 AC_REQUIRE_AUX_FILE([missing])dnl
720 if test x"${MISSING+set}" != xset; then
721 case $am_aux_dir in
722 *\ * | *\ *)
723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
724 *)
725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
726 esac
727 fi
728 # Use eval to expand $SHELL
729 if eval "$MISSING --run true"; then
730 am_missing_run="$MISSING --run "
731 else
732 am_missing_run=
733 AC_MSG_WARN([`missing' script is too old or missing])
734 fi
735 ])
736
737 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
738 # Inc.
739 #
740 # This file is free software; the Free Software Foundation
741 # gives unlimited permission to copy and/or distribute it,
742 # with or without modifications, as long as this notice is preserved.
743
744 # serial 1
745
746 # AM_PROG_MKDIR_P
747 # ---------------
748 # Check for `mkdir -p'.
749 AC_DEFUN([AM_PROG_MKDIR_P],
750 [AC_PREREQ([2.60])dnl
751 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
752 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
753 dnl while keeping a definition of mkdir_p for backward compatibility.
754 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
755 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
756 dnl Makefile.ins that do not define MKDIR_P, so we do our own
757 dnl adjustment using top_builddir (which is defined more often than
758 dnl MKDIR_P).
759 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
760 case $mkdir_p in
761 [[\\/$]]* | ?:[[\\/]]*) ;;
762 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
763 esac
764 ])
765
766 # Helper functions for option handling. -*- Autoconf -*-
767
768 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
769 # Foundation, Inc.
770 #
771 # This file is free software; the Free Software Foundation
772 # gives unlimited permission to copy and/or distribute it,
773 # with or without modifications, as long as this notice is preserved.
774
775 # serial 5
776
777 # _AM_MANGLE_OPTION(NAME)
778 # -----------------------
779 AC_DEFUN([_AM_MANGLE_OPTION],
780 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
781
782 # _AM_SET_OPTION(NAME)
783 # --------------------
784 # Set option NAME. Presently that only means defining a flag for this option.
785 AC_DEFUN([_AM_SET_OPTION],
786 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
787
788 # _AM_SET_OPTIONS(OPTIONS)
789 # ------------------------
790 # OPTIONS is a space-separated list of Automake options.
791 AC_DEFUN([_AM_SET_OPTIONS],
792 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
793
794 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
795 # -------------------------------------------
796 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
797 AC_DEFUN([_AM_IF_OPTION],
798 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
799
800 # Check to make sure that the build environment is sane. -*- Autoconf -*-
801
802 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
803 # Free Software Foundation, Inc.
804 #
805 # This file is free software; the Free Software Foundation
806 # gives unlimited permission to copy and/or distribute it,
807 # with or without modifications, as long as this notice is preserved.
808
809 # serial 5
810
811 # AM_SANITY_CHECK
812 # ---------------
813 AC_DEFUN([AM_SANITY_CHECK],
814 [AC_MSG_CHECKING([whether build environment is sane])
815 # Just in case
816 sleep 1
817 echo timestamp > conftest.file
818 # Reject unsafe characters in $srcdir or the absolute working directory
819 # name. Accept space and tab only in the latter.
820 am_lf='
821 '
822 case `pwd` in
823 *[[\\\"\#\$\&\'\`$am_lf]]*)
824 AC_MSG_ERROR([unsafe absolute working directory name]);;
825 esac
826 case $srcdir in
827 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
828 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
829 esac
830
831 # Do `set' in a subshell so we don't clobber the current shell's
832 # arguments. Must try -L first in case configure is actually a
833 # symlink; some systems play weird games with the mod time of symlinks
834 # (eg FreeBSD returns the mod time of the symlink's containing
835 # directory).
836 if (
837 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
838 if test "$[*]" = "X"; then
839 # -L didn't work.
840 set X `ls -t "$srcdir/configure" conftest.file`
841 fi
842 rm -f conftest.file
843 if test "$[*]" != "X $srcdir/configure conftest.file" \
844 && test "$[*]" != "X conftest.file $srcdir/configure"; then
845
846 # If neither matched, then we have a broken ls. This can happen
847 # if, for instance, CONFIG_SHELL is bash and it inherits a
848 # broken ls alias from the environment. This has actually
849 # happened. Such a system could not be considered "sane".
850 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
851 alias in your environment])
852 fi
853
854 test "$[2]" = conftest.file
855 )
856 then
857 # Ok.
858 :
859 else
860 AC_MSG_ERROR([newly created file is older than distributed files!
861 Check your system clock])
862 fi
863 AC_MSG_RESULT(yes)])
864
865 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
866 #
867 # This file is free software; the Free Software Foundation
868 # gives unlimited permission to copy and/or distribute it,
869 # with or without modifications, as long as this notice is preserved.
870
871 # serial 1
872
873 # AM_PROG_INSTALL_STRIP
874 # ---------------------
875 # One issue with vendor `install' (even GNU) is that you can't
876 # specify the program used to strip binaries. This is especially
877 # annoying in cross-compiling environments, where the build's strip
878 # is unlikely to handle the host's binaries.
879 # Fortunately install-sh will honor a STRIPPROG variable, so we
880 # always use install-sh in `make install-strip', and initialize
881 # STRIPPROG with the value of the STRIP variable (set by the user).
882 AC_DEFUN([AM_PROG_INSTALL_STRIP],
883 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
884 # Installed binaries are usually stripped using `strip' when the user
885 # run `make install-strip'. However `strip' might not be the right
886 # tool to use in cross-compilation environments, therefore Automake
887 # will honor the `STRIP' environment variable to overrule this program.
888 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
889 if test "$cross_compiling" != no; then
890 AC_CHECK_TOOL([STRIP], [strip], :)
891 fi
892 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
893 AC_SUBST([INSTALL_STRIP_PROGRAM])])
894
895 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
896 #
897 # This file is free software; the Free Software Foundation
898 # gives unlimited permission to copy and/or distribute it,
899 # with or without modifications, as long as this notice is preserved.
900
901 # serial 3
902
903 # _AM_SUBST_NOTMAKE(VARIABLE)
904 # ---------------------------
905 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
906 # This macro is traced by Automake.
907 AC_DEFUN([_AM_SUBST_NOTMAKE])
908
909 # AM_SUBST_NOTMAKE(VARIABLE)
910 # --------------------------
911 # Public sister of _AM_SUBST_NOTMAKE.
912 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
913
914 # Check how to create a tarball. -*- Autoconf -*-
915
916 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
917 #
918 # This file is free software; the Free Software Foundation
919 # gives unlimited permission to copy and/or distribute it,
920 # with or without modifications, as long as this notice is preserved.
921
922 # serial 2
923
924 # _AM_PROG_TAR(FORMAT)
925 # --------------------
926 # Check how to create a tarball in format FORMAT.
927 # FORMAT should be one of `v7', `ustar', or `pax'.
928 #
929 # Substitute a variable $(am__tar) that is a command
930 # writing to stdout a FORMAT-tarball containing the directory
931 # $tardir.
932 # tardir=directory && $(am__tar) > result.tar
933 #
934 # Substitute a variable $(am__untar) that extract such
935 # a tarball read from stdin.
936 # $(am__untar) < result.tar
937 AC_DEFUN([_AM_PROG_TAR],
938 [# Always define AMTAR for backward compatibility. Yes, it's still used
939 # in the wild :-( We should find a proper way to deprecate it ...
940 AC_SUBST([AMTAR], ['$${TAR-tar}'])
941 m4_if([$1], [v7],
942 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
943 [m4_case([$1], [ustar],, [pax],,
944 [m4_fatal([Unknown tar format])])
945 AC_MSG_CHECKING([how to create a $1 tar archive])
946 # Loop over all known methods to create a tar archive until one works.
947 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
948 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
949 # Do not fold the above two line into one, because Tru64 sh and
950 # Solaris sh will not grok spaces in the rhs of `-'.
951 for _am_tool in $_am_tools
952 do
953 case $_am_tool in
954 gnutar)
955 for _am_tar in tar gnutar gtar;
956 do
957 AM_RUN_LOG([$_am_tar --version]) && break
958 done
959 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
960 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
961 am__untar="$_am_tar -xf -"
962 ;;
963 plaintar)
964 # Must skip GNU tar: if it does not support --format= it doesn't create
965 # ustar tarball either.
966 (tar --version) >/dev/null 2>&1 && continue
967 am__tar='tar chf - "$$tardir"'
968 am__tar_='tar chf - "$tardir"'
969 am__untar='tar xf -'
970 ;;
971 pax)
972 am__tar='pax -L -x $1 -w "$$tardir"'
973 am__tar_='pax -L -x $1 -w "$tardir"'
974 am__untar='pax -r'
975 ;;
976 cpio)
977 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
978 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
979 am__untar='cpio -i -H $1 -d'
980 ;;
981 none)
982 am__tar=false
983 am__tar_=false
984 am__untar=false
985 ;;
986 esac
987
988 # If the value was cached, stop now. We just wanted to have am__tar
989 # and am__untar set.
990 test -n "${am_cv_prog_tar_$1}" && break
991
992 # tar/untar a dummy directory, and stop if the command works
993 rm -rf conftest.dir
994 mkdir conftest.dir
995 echo GrepMe > conftest.dir/file
996 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
997 rm -rf conftest.dir
998 if test -s conftest.tar; then
999 AM_RUN_LOG([$am__untar <conftest.tar])
1000 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1001 fi
1002 done
1003 rm -rf conftest.dir
1004
1005 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1006 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1007 AC_SUBST([am__tar])
1008 AC_SUBST([am__untar])
1009 ]) # _AM_PROG_TAR
1010
1011 m4_include([../../../acinclude.m4])
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
3 #
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7 # Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 # Preserve -v and -x to the replacement shell.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 case $- in # ((((
222 *v*x* | *x*v* ) as_opts=-vx ;;
223 *v* ) as_opts=-v ;;
224 *x* ) as_opts=-x ;;
225 * ) as_opts= ;;
226 esac
227 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error STATUS ERROR [LINENO LOG_FD]
366 # ----------------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with STATUS, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$1; test $as_status -eq 0 && as_status=1
373 if test "$4"; then
374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
376 fi
377 $as_echo "$as_me: error: $2" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534
535 test -n "$DJDIR" || exec 7<&0 </dev/null
536 exec 6>&1
537
538 # Name of the host.
539 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
540 # so uname gets run too.
541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
542
543 #
544 # Initializations.
545 #
546 ac_default_prefix=/usr/local
547 ac_clean_files=
548 ac_config_libobj_dir=.
549 LIBOBJS=
550 cross_compiling=no
551 subdirs=
552 MFLAGS=
553 MAKEFLAGS=
554
555 # Identity of this package.
556 PACKAGE_NAME='newlib'
557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560 PACKAGE_BUGREPORT=''
561 PACKAGE_URL=''
562
563 ac_unique_file="Makefile.am"
564 ac_subst_vars='LTLIBOBJS
565 LIBOBJS
566 sys_dir
567 machine_dir
568 libm_machine_dir
569 lpfx
570 aext
571 oext
572 OBJEXT
573 USE_LIBTOOL_FALSE
574 USE_LIBTOOL_TRUE
575 ELIX_LEVEL_4_FALSE
576 ELIX_LEVEL_4_TRUE
577 ELIX_LEVEL_3_FALSE
578 ELIX_LEVEL_3_TRUE
579 ELIX_LEVEL_2_FALSE
580 ELIX_LEVEL_2_TRUE
581 ELIX_LEVEL_1_FALSE
582 ELIX_LEVEL_1_TRUE
583 ELIX_LEVEL_0_FALSE
584 ELIX_LEVEL_0_TRUE
585 LDFLAGS
586 NO_INCLUDE_LIST
587 NEWLIB_CFLAGS
588 CCASFLAGS
589 CCAS
590 MAINT
591 MAINTAINER_MODE_FALSE
592 MAINTAINER_MODE_TRUE
593 READELF
594 RANLIB
595 AR
596 AS
597 am__fastdepCC_FALSE
598 am__fastdepCC_TRUE
599 CCDEPMODE
600 am__nodep
601 AMDEPBACKSLASH
602 AMDEP_FALSE
603 AMDEP_TRUE
604 am__quote
605 am__include
606 DEPDIR
607 CC
608 am__untar
609 am__tar
610 AMTAR
611 am__leading_dot
612 SET_MAKE
613 AWK
614 mkdir_p
615 MKDIR_P
616 INSTALL_STRIP_PROGRAM
617 STRIP
618 install_sh
619 MAKEINFO
620 AUTOHEADER
621 AUTOMAKE
622 AUTOCONF
623 ACLOCAL
624 VERSION
625 PACKAGE
626 CYGPATH_W
627 am__isrc
628 INSTALL_DATA
629 INSTALL_SCRIPT
630 INSTALL_PROGRAM
631 host_os
632 host_vendor
633 host_cpu
634 host
635 build_os
636 build_vendor
637 build_cpu
638 build
639 newlib_basedir
640 MAY_SUPPLY_SYSCALLS_FALSE
641 MAY_SUPPLY_SYSCALLS_TRUE
642 target_alias
643 host_alias
644 build_alias
645 LIBS
646 ECHO_T
647 ECHO_N
648 ECHO_C
649 DEFS
650 mandir
651 localedir
652 libdir
653 psdir
654 pdfdir
655 dvidir
656 htmldir
657 infodir
658 docdir
659 oldincludedir
660 includedir
661 localstatedir
662 sharedstatedir
663 sysconfdir
664 datadir
665 datarootdir
666 libexecdir
667 sbindir
668 bindir
669 program_transform_name
670 prefix
671 exec_prefix
672 PACKAGE_URL
673 PACKAGE_BUGREPORT
674 PACKAGE_STRING
675 PACKAGE_VERSION
676 PACKAGE_TARNAME
677 PACKAGE_NAME
678 PATH_SEPARATOR
679 SHELL'
680 ac_subst_files=''
681 ac_user_opts='
682 enable_option_checking
683 enable_multilib
684 enable_target_optspace
685 enable_malloc_debugging
686 enable_newlib_multithread
687 enable_newlib_iconv
688 enable_newlib_elix_level
689 enable_newlib_io_float
690 enable_newlib_supplied_syscalls
691 enable_newlib_fno_builtin
692 enable_dependency_tracking
693 enable_maintainer_mode
694 '
695 ac_precious_vars='build_alias
696 host_alias
697 target_alias
698 CCAS
699 CCASFLAGS'
700
701
702 # Initialize some variables set by options.
703 ac_init_help=
704 ac_init_version=false
705 ac_unrecognized_opts=
706 ac_unrecognized_sep=
707 # The variables have the same names as the options, with
708 # dashes changed to underlines.
709 cache_file=/dev/null
710 exec_prefix=NONE
711 no_create=
712 no_recursion=
713 prefix=NONE
714 program_prefix=NONE
715 program_suffix=NONE
716 program_transform_name=s,x,x,
717 silent=
718 site=
719 srcdir=
720 verbose=
721 x_includes=NONE
722 x_libraries=NONE
723
724 # Installation directory options.
725 # These are left unexpanded so users can "make install exec_prefix=/foo"
726 # and all the variables that are supposed to be based on exec_prefix
727 # by default will actually change.
728 # Use braces instead of parens because sh, perl, etc. also accept them.
729 # (The list follows the same order as the GNU Coding Standards.)
730 bindir='${exec_prefix}/bin'
731 sbindir='${exec_prefix}/sbin'
732 libexecdir='${exec_prefix}/libexec'
733 datarootdir='${prefix}/share'
734 datadir='${datarootdir}'
735 sysconfdir='${prefix}/etc'
736 sharedstatedir='${prefix}/com'
737 localstatedir='${prefix}/var'
738 includedir='${prefix}/include'
739 oldincludedir='/usr/include'
740 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
741 infodir='${datarootdir}/info'
742 htmldir='${docdir}'
743 dvidir='${docdir}'
744 pdfdir='${docdir}'
745 psdir='${docdir}'
746 libdir='${exec_prefix}/lib'
747 localedir='${datarootdir}/locale'
748 mandir='${datarootdir}/man'
749
750 ac_prev=
751 ac_dashdash=
752 for ac_option
753 do
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
756 eval $ac_prev=\$ac_option
757 ac_prev=
758 continue
759 fi
760
761 case $ac_option in
762 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 *=) ac_optarg= ;;
764 *) ac_optarg=yes ;;
765 esac
766
767 # Accept the important Cygnus configure options, so we can diagnose typos.
768
769 case $ac_dashdash$ac_option in
770 --)
771 ac_dashdash=yes ;;
772
773 -bindir | --bindir | --bindi | --bind | --bin | --bi)
774 ac_prev=bindir ;;
775 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
776 bindir=$ac_optarg ;;
777
778 -build | --build | --buil | --bui | --bu)
779 ac_prev=build_alias ;;
780 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
781 build_alias=$ac_optarg ;;
782
783 -cache-file | --cache-file | --cache-fil | --cache-fi \
784 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
785 ac_prev=cache_file ;;
786 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
787 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
788 cache_file=$ac_optarg ;;
789
790 --config-cache | -C)
791 cache_file=config.cache ;;
792
793 -datadir | --datadir | --datadi | --datad)
794 ac_prev=datadir ;;
795 -datadir=* | --datadir=* | --datadi=* | --datad=*)
796 datadir=$ac_optarg ;;
797
798 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
799 | --dataroo | --dataro | --datar)
800 ac_prev=datarootdir ;;
801 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
802 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
803 datarootdir=$ac_optarg ;;
804
805 -disable-* | --disable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error $? "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
813 *"
814 "enable_$ac_useropt"
815 "*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=no ;;
820
821 -docdir | --docdir | --docdi | --doc | --do)
822 ac_prev=docdir ;;
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824 docdir=$ac_optarg ;;
825
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827 ac_prev=dvidir ;;
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829 dvidir=$ac_optarg ;;
830
831 -enable-* | --enable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error $? "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
839 *"
840 "enable_$ac_useropt"
841 "*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=\$ac_optarg ;;
846
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
855
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
859
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
866
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
871
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
877
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
884
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
889
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
894
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
901
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
906
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
913
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
918
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
922
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
926
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
930
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
939
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
944
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
951
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
958
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
975
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
980
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
985
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "with_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval with_$ac_useropt=\$ac_optarg ;;
1050
1051 -without-* | --without-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=no ;;
1066
1067 --x)
1068 # Obsolete; use --with-x.
1069 with_x=yes ;;
1070
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1077
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1084
1085 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1086 Try \`$0 --help' for more information"
1087 ;;
1088
1089 *=*)
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 case $ac_envvar in #(
1093 '' | [0-9]* | *[!_$as_cr_alnum]* )
1094 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1095 esac
1096 eval $ac_envvar=\$ac_optarg
1097 export $ac_envvar ;;
1098
1099 *)
1100 # FIXME: should be removed in autoconf 3.0.
1101 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1105 ;;
1106
1107 esac
1108 done
1109
1110 if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112 as_fn_error $? "missing argument to $ac_option"
1113 fi
1114
1115 if test -n "$ac_unrecognized_opts"; then
1116 case $enable_option_checking in
1117 no) ;;
1118 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1119 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1120 esac
1121 fi
1122
1123 # Check all directory arguments for consistency.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1128 do
1129 eval ac_val=\$$ac_var
1130 # Remove trailing slashes.
1131 case $ac_val in
1132 */ )
1133 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134 eval $ac_var=\$ac_val;;
1135 esac
1136 # Be sure to have absolute directory names.
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1142 done
1143
1144 # There might be people who depend on the old broken behavior: `$host'
1145 # used to hold the argument of --host etc.
1146 # FIXME: To remove some day.
1147 build=$build_alias
1148 host=$host_alias
1149 target=$target_alias
1150
1151 # FIXME: To remove some day.
1152 if test "x$host_alias" != x; then
1153 if test "x$build_alias" = x; then
1154 cross_compiling=maybe
1155 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1156 If a cross compiler is detected then cross compile mode will be used" >&2
1157 elif test "x$build_alias" != "x$host_alias"; then
1158 cross_compiling=yes
1159 fi
1160 fi
1161
1162 ac_tool_prefix=
1163 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164
1165 test "$silent" = yes && exec 6>/dev/null
1166
1167
1168 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1169 ac_ls_di=`ls -di .` &&
1170 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1171 as_fn_error $? "working directory cannot be determined"
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 as_fn_error $? "pwd does not report name of working directory"
1174
1175
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$as_myself" ||
1181 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$as_myself" : 'X\(//\)[^/]' \| \
1183 X"$as_myself" : 'X\(//\)$' \| \
1184 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1185 $as_echo X"$as_myself" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\).*/{
1199 s//\1/
1200 q
1201 }
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1206 fi
1207 else
1208 ac_srcdir_defaulted=no
1209 fi
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1213 fi
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1217 pwd)`
1218 # When building in place, set srcdir=.
1219 if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1221 fi
1222 # Remove unnecessary trailing slashes from srcdir.
1223 # Double slashes in file names in object file debugging info
1224 # mess up M-x gdb in Emacs.
1225 case $srcdir in
1226 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 esac
1228 for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233 done
1234
1235 #
1236 # Report the --help message.
1237 #
1238 if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
1243
1244 Usage: $0 [OPTION]... [VAR=VALUE]...
1245
1246 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247 VAR=VALUE. See below for descriptions of some of the useful variables.
1248
1249 Defaults for the options are specified in brackets.
1250
1251 Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking ...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261
1262 Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1267
1268 By default, \`make install' will install all the files in
1269 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271 for instance \`--prefix=\$HOME'.
1272
1273 For better control, use the options below.
1274
1275 Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295 _ACEOF
1296
1297 cat <<\_ACEOF
1298
1299 Program names:
1300 --program-prefix=PREFIX prepend PREFIX to installed program names
1301 --program-suffix=SUFFIX append SUFFIX to installed program names
1302 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1303
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
1313 esac
1314 cat <<\_ACEOF
1315
1316 Optional Features:
1317 --disable-option-checking ignore unrecognized --enable/--with options
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-multilib build many library versions (default)
1321 --enable-target-optspace optimize for space
1322 --enable-malloc-debugging indicate malloc debugging requested
1323 --enable-newlib-multithread enable support for multiple threads
1324 --enable-newlib-iconv enable iconv library support
1325 --enable-newlib-elix-level supply desired elix library level (1-4)
1326 --disable-newlib-io-float disable printf/scanf family float support
1327 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1328 --disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
1329 --disable-dependency-tracking speeds up one-time build
1330 --enable-dependency-tracking do not reject slow dependency extractors
1331 --enable-maintainer-mode enable make rules and dependencies not useful
1332 (and sometimes confusing) to the casual installer
1333
1334 Some influential environment variables:
1335 CCAS assembler compiler command (defaults to CC)
1336 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1337
1338 Use these variables to override the choices made by `configure' or to help
1339 it to find libraries and programs with nonstandard names/locations.
1340
1341 Report bugs to the package provider.
1342 _ACEOF
1343 ac_status=$?
1344 fi
1345
1346 if test "$ac_init_help" = "recursive"; then
1347 # If there are subdirs, report their specific --help.
1348 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1349 test -d "$ac_dir" ||
1350 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1351 continue
1352 ac_builddir=.
1353
1354 case "$ac_dir" in
1355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 *)
1357 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1358 # A ".." for each directory in $ac_dir_suffix.
1359 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1360 case $ac_top_builddir_sub in
1361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1363 esac ;;
1364 esac
1365 ac_abs_top_builddir=$ac_pwd
1366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1367 # for backward compatibility:
1368 ac_top_builddir=$ac_top_build_prefix
1369
1370 case $srcdir in
1371 .) # We are building in place.
1372 ac_srcdir=.
1373 ac_top_srcdir=$ac_top_builddir_sub
1374 ac_abs_top_srcdir=$ac_pwd ;;
1375 [\\/]* | ?:[\\/]* ) # Absolute name.
1376 ac_srcdir=$srcdir$ac_dir_suffix;
1377 ac_top_srcdir=$srcdir
1378 ac_abs_top_srcdir=$srcdir ;;
1379 *) # Relative name.
1380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1381 ac_top_srcdir=$ac_top_build_prefix$srcdir
1382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 esac
1384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385
1386 cd "$ac_dir" || { ac_status=$?; continue; }
1387 # Check for guested configure.
1388 if test -f "$ac_srcdir/configure.gnu"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1391 elif test -f "$ac_srcdir/configure"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure" --help=recursive
1394 else
1395 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 fi || ac_status=$?
1397 cd "$ac_pwd" || { ac_status=$?; break; }
1398 done
1399 fi
1400
1401 test -n "$ac_init_help" && exit $ac_status
1402 if $ac_init_version; then
1403 cat <<\_ACEOF
1404 newlib configure 3.3.0
1405 generated by GNU Autoconf 2.68
1406
1407 Copyright (C) 2010 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1410 _ACEOF
1411 exit
1412 fi
1413
1414 ## ------------------------ ##
1415 ## Autoconf initialization. ##
1416 ## ------------------------ ##
1417
1418 # ac_fn_c_try_compile LINENO
1419 # --------------------------
1420 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1421 ac_fn_c_try_compile ()
1422 {
1423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1424 rm -f conftest.$ac_objext
1425 if { { ac_try="$ac_compile"
1426 case "(($ac_try" in
1427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1428 *) ac_try_echo=$ac_try;;
1429 esac
1430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1431 $as_echo "$ac_try_echo"; } >&5
1432 (eval "$ac_compile") 2>conftest.err
1433 ac_status=$?
1434 if test -s conftest.err; then
1435 grep -v '^ *+' conftest.err >conftest.er1
1436 cat conftest.er1 >&5
1437 mv -f conftest.er1 conftest.err
1438 fi
1439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1440 test $ac_status = 0; } && {
1441 test -z "$ac_c_werror_flag" ||
1442 test ! -s conftest.err
1443 } && test -s conftest.$ac_objext; then :
1444 ac_retval=0
1445 else
1446 $as_echo "$as_me: failed program was:" >&5
1447 sed 's/^/| /' conftest.$ac_ext >&5
1448
1449 ac_retval=1
1450 fi
1451 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1452 as_fn_set_status $ac_retval
1453
1454 } # ac_fn_c_try_compile
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1458
1459 It was created by newlib $as_me 3.3.0, which was
1460 generated by GNU Autoconf 2.68. Invocation command line was
1461
1462 $ $0 $@
1463
1464 _ACEOF
1465 exec 5>>config.log
1466 {
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1471
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480
1481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488
1489 _ASUNAME
1490
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 $as_echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1499
1500 } >&5
1501
1502 cat >&5 <<_ACEOF
1503
1504
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1508
1509 _ACEOF
1510
1511
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1522 do
1523 for ac_arg
1524 do
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
1530 *\'*)
1531 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1535 2)
1536 as_fn_append ac_configure_args1 " '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
1538 ac_must_keep_next=false # Got value, back to normal.
1539 else
1540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1548 ;;
1549 -* ) ac_must_keep_next=true ;;
1550 esac
1551 fi
1552 as_fn_append ac_configure_args " '$ac_arg'"
1553 ;;
1554 esac
1555 done
1556 done
1557 { ac_configure_args0=; unset ac_configure_args0;}
1558 { ac_configure_args1=; unset ac_configure_args1;}
1559
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log. We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1567 {
1568 echo
1569
1570 $as_echo "## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##"
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1575 (
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1582 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1587 *) { eval $ac_var=; unset $ac_var;} ;;
1588 esac ;;
1589 esac
1590 done
1591 (set) 2>&1 |
1592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1594 sed -n \
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
1598 *)
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600 ;;
1601 esac |
1602 sort
1603 )
1604 echo
1605
1606 $as_echo "## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##"
1609 echo
1610 for ac_var in $ac_subst_vars
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 $as_echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619
1620 if test -n "$ac_subst_files"; then
1621 $as_echo "## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##"
1624 echo
1625 for ac_var in $ac_subst_files
1626 do
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 $as_echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1634 fi
1635
1636 if test -s confdefs.h; then
1637 $as_echo "## ----------- ##
1638 ## confdefs.h. ##
1639 ## ----------- ##"
1640 echo
1641 cat confdefs.h
1642 echo
1643 fi
1644 test "$ac_signal" != 0 &&
1645 $as_echo "$as_me: caught signal $ac_signal"
1646 $as_echo "$as_me: exit $exit_status"
1647 } >&5
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 exit $exit_status
1651 ' 0
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1654 done
1655 ac_signal=0
1656
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1659
1660 $as_echo "/* confdefs.h */" > confdefs.h
1661
1662 # Predefined preprocessor variables.
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 _ACEOF
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1670 _ACEOF
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 _ACEOF
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_STRING "$PACKAGE_STRING"
1678 _ACEOF
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 _ACEOF
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_URL "$PACKAGE_URL"
1686 _ACEOF
1687
1688
1689 # Let the site file select an alternate cache file if it wants to.
1690 # Prefer an explicitly selected file to automatically selected ones.
1691 ac_site_file1=NONE
1692 ac_site_file2=NONE
1693 if test -n "$CONFIG_SITE"; then
1694 # We do not want a PATH search for config.site.
1695 case $CONFIG_SITE in #((
1696 -*) ac_site_file1=./$CONFIG_SITE;;
1697 */*) ac_site_file1=$CONFIG_SITE;;
1698 *) ac_site_file1=./$CONFIG_SITE;;
1699 esac
1700 elif test "x$prefix" != xNONE; then
1701 ac_site_file1=$prefix/share/config.site
1702 ac_site_file2=$prefix/etc/config.site
1703 else
1704 ac_site_file1=$ac_default_prefix/share/config.site
1705 ac_site_file2=$ac_default_prefix/etc/config.site
1706 fi
1707 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1708 do
1709 test "x$ac_site_file" = xNONE && continue
1710 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1712 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1714 . "$ac_site_file" \
1715 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1717 as_fn_error $? "failed to load site script $ac_site_file
1718 See \`config.log' for more details" "$LINENO" 5; }
1719 fi
1720 done
1721
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special files
1724 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1725 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1727 $as_echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1732 fi
1733 else
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1735 $as_echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1737 fi
1738
1739 # Check that the precious variables saved in the cache have kept the same
1740 # value.
1741 ac_cache_corrupted=false
1742 for ac_var in $ac_precious_vars; do
1743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1744 eval ac_new_set=\$ac_env_${ac_var}_set
1745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1746 eval ac_new_val=\$ac_env_${ac_var}_value
1747 case $ac_old_set,$ac_new_set in
1748 set,)
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1750 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,set)
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1754 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,);;
1757 *)
1758 if test "x$ac_old_val" != "x$ac_new_val"; then
1759 # differences in whitespace do not lead to failure.
1760 ac_old_val_w=`echo x $ac_old_val`
1761 ac_new_val_w=`echo x $ac_new_val`
1762 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1764 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 ac_cache_corrupted=:
1766 else
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1768 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1769 eval $ac_var=\$ac_old_val
1770 fi
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1772 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1774 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1786 esac
1787 fi
1788 done
1789 if $ac_cache_corrupted; then
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1793 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1794 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1795 fi
1796 ## -------------------- ##
1797 ## Main body of script. ##
1798 ## -------------------- ##
1799
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807
1808
1809 ac_aux_dir=
1810 for ac_dir in ../../../.. "$srcdir"/../../../..; do
1811 if test -f "$ac_dir/install-sh"; then
1812 ac_aux_dir=$ac_dir
1813 ac_install_sh="$ac_aux_dir/install-sh -c"
1814 break
1815 elif test -f "$ac_dir/install.sh"; then
1816 ac_aux_dir=$ac_dir
1817 ac_install_sh="$ac_aux_dir/install.sh -c"
1818 break
1819 elif test -f "$ac_dir/shtool"; then
1820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/shtool install -c"
1822 break
1823 fi
1824 done
1825 if test -z "$ac_aux_dir"; then
1826 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../../.. \"$srcdir\"/../../../.." "$LINENO" 5
1827 fi
1828
1829 # These three variables are undocumented and unsupported,
1830 # and are intended to be withdrawn in a future Autoconf release.
1831 # They can cause serious problems if a builder's source tree is in a directory
1832 # whose full name contains unusual characters.
1833 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1834 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1835 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1836
1837
1838
1839
1840 # Make sure we can run config.sub.
1841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1842 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1843
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1845 $as_echo_n "checking build system type... " >&6; }
1846 if ${ac_cv_build+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 ac_build_alias=$build_alias
1850 test "x$ac_build_alias" = x &&
1851 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1852 test "x$ac_build_alias" = x &&
1853 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1854 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1855 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1856
1857 fi
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1859 $as_echo "$ac_cv_build" >&6; }
1860 case $ac_cv_build in
1861 *-*-*) ;;
1862 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1863 esac
1864 build=$ac_cv_build
1865 ac_save_IFS=$IFS; IFS='-'
1866 set x $ac_cv_build
1867 shift
1868 build_cpu=$1
1869 build_vendor=$2
1870 shift; shift
1871 # Remember, the first character of IFS is used to create $*,
1872 # except with old shells:
1873 build_os=$*
1874 IFS=$ac_save_IFS
1875 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1876
1877
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1879 $as_echo_n "checking host system type... " >&6; }
1880 if ${ac_cv_host+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 else
1883 if test "x$host_alias" = x; then
1884 ac_cv_host=$ac_cv_build
1885 else
1886 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1888 fi
1889
1890 fi
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1892 $as_echo "$ac_cv_host" >&6; }
1893 case $ac_cv_host in
1894 *-*-*) ;;
1895 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1896 esac
1897 host=$ac_cv_host
1898 ac_save_IFS=$IFS; IFS='-'
1899 set x $ac_cv_host
1900 shift
1901 host_cpu=$1
1902 host_vendor=$2
1903 shift; shift
1904 # Remember, the first character of IFS is used to create $*,
1905 # except with old shells:
1906 host_os=$*
1907 IFS=$ac_save_IFS
1908 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1909
1910
1911 am__api_version='1.11'
1912
1913 # Find a good install program. We prefer a C program (faster),
1914 # so one script is as good as another. But avoid the broken or
1915 # incompatible versions:
1916 # SysV /etc/install, /usr/sbin/install
1917 # SunOS /usr/etc/install
1918 # IRIX /sbin/install
1919 # AIX /bin/install
1920 # AmigaOS /C/install, which installs bootblocks on floppy discs
1921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1924 # OS/2's system install, which has a completely different semantic
1925 # ./install, which can be erroneously created by make from ./install.sh.
1926 # Reject install programs that cannot install multiple files.
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1928 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1929 if test -z "$INSTALL"; then
1930 if ${ac_cv_path_install+:} false; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 # Account for people who put trailing slashes in PATH elements.
1939 case $as_dir/ in #((
1940 ./ | .// | /[cC]/* | \
1941 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1942 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1943 /usr/ucb/* ) ;;
1944 *)
1945 # OSF1 and SCO ODT 3.0 have their own names for install.
1946 # Don't use installbsd from OSF since it installs stuff as root
1947 # by default.
1948 for ac_prog in ginstall scoinst install; do
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1951 if test $ac_prog = install &&
1952 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1953 # AIX install. It has an incompatible calling convention.
1954 :
1955 elif test $ac_prog = install &&
1956 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1957 # program-specific install script used by HP pwplus--don't use.
1958 :
1959 else
1960 rm -rf conftest.one conftest.two conftest.dir
1961 echo one > conftest.one
1962 echo two > conftest.two
1963 mkdir conftest.dir
1964 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1965 test -s conftest.one && test -s conftest.two &&
1966 test -s conftest.dir/conftest.one &&
1967 test -s conftest.dir/conftest.two
1968 then
1969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1970 break 3
1971 fi
1972 fi
1973 fi
1974 done
1975 done
1976 ;;
1977 esac
1978
1979 done
1980 IFS=$as_save_IFS
1981
1982 rm -rf conftest.one conftest.two conftest.dir
1983
1984 fi
1985 if test "${ac_cv_path_install+set}" = set; then
1986 INSTALL=$ac_cv_path_install
1987 else
1988 # As a last resort, use the slow shell script. Don't cache a
1989 # value for INSTALL within a source directory, because that will
1990 # break other packages using the cache if that directory is
1991 # removed, or if the value is a relative name.
1992 INSTALL=$ac_install_sh
1993 fi
1994 fi
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1996 $as_echo "$INSTALL" >&6; }
1997
1998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1999 # It thinks the first close brace ends the variable substitution.
2000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2001
2002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2003
2004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2005
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2007 $as_echo_n "checking whether build environment is sane... " >&6; }
2008 # Just in case
2009 sleep 1
2010 echo timestamp > conftest.file
2011 # Reject unsafe characters in $srcdir or the absolute working directory
2012 # name. Accept space and tab only in the latter.
2013 am_lf='
2014 '
2015 case `pwd` in
2016 *[\\\"\#\$\&\'\`$am_lf]*)
2017 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2018 esac
2019 case $srcdir in
2020 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2021 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2022 esac
2023
2024 # Do `set' in a subshell so we don't clobber the current shell's
2025 # arguments. Must try -L first in case configure is actually a
2026 # symlink; some systems play weird games with the mod time of symlinks
2027 # (eg FreeBSD returns the mod time of the symlink's containing
2028 # directory).
2029 if (
2030 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2031 if test "$*" = "X"; then
2032 # -L didn't work.
2033 set X `ls -t "$srcdir/configure" conftest.file`
2034 fi
2035 rm -f conftest.file
2036 if test "$*" != "X $srcdir/configure conftest.file" \
2037 && test "$*" != "X conftest.file $srcdir/configure"; then
2038
2039 # If neither matched, then we have a broken ls. This can happen
2040 # if, for instance, CONFIG_SHELL is bash and it inherits a
2041 # broken ls alias from the environment. This has actually
2042 # happened. Such a system could not be considered "sane".
2043 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2044 alias in your environment" "$LINENO" 5
2045 fi
2046
2047 test "$2" = conftest.file
2048 )
2049 then
2050 # Ok.
2051 :
2052 else
2053 as_fn_error $? "newly created file is older than distributed files!
2054 Check your system clock" "$LINENO" 5
2055 fi
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2057 $as_echo "yes" >&6; }
2058 test "$program_prefix" != NONE &&
2059 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2060 # Use a double $ so make ignores it.
2061 test "$program_suffix" != NONE &&
2062 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2063 # Double any \ or $.
2064 # By default was `s,x,x', remove it if useless.
2065 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2066 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2067
2068 # expand $ac_aux_dir to an absolute path
2069 am_aux_dir=`cd $ac_aux_dir && pwd`
2070
2071 if test x"${MISSING+set}" != xset; then
2072 case $am_aux_dir in
2073 *\ * | *\ *)
2074 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2075 *)
2076 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2077 esac
2078 fi
2079 # Use eval to expand $SHELL
2080 if eval "$MISSING --run true"; then
2081 am_missing_run="$MISSING --run "
2082 else
2083 am_missing_run=
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2085 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2086 fi
2087
2088 if test x"${install_sh}" != xset; then
2089 case $am_aux_dir in
2090 *\ * | *\ *)
2091 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2092 *)
2093 install_sh="\${SHELL} $am_aux_dir/install-sh"
2094 esac
2095 fi
2096
2097 # Installed binaries are usually stripped using `strip' when the user
2098 # run `make install-strip'. However `strip' might not be the right
2099 # tool to use in cross-compilation environments, therefore Automake
2100 # will honor the `STRIP' environment variable to overrule this program.
2101 if test "$cross_compiling" != no; then
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}strip; ac_word=$2
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2106 $as_echo_n "checking for $ac_word... " >&6; }
2107 if ${ac_cv_prog_STRIP+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 if test -n "$STRIP"; then
2111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2115 do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2123 fi
2124 done
2125 done
2126 IFS=$as_save_IFS
2127
2128 fi
2129 fi
2130 STRIP=$ac_cv_prog_STRIP
2131 if test -n "$STRIP"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2133 $as_echo "$STRIP" >&6; }
2134 else
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2136 $as_echo "no" >&6; }
2137 fi
2138
2139
2140 fi
2141 if test -z "$ac_cv_prog_STRIP"; then
2142 ac_ct_STRIP=$STRIP
2143 # Extract the first word of "strip", so it can be a program name with args.
2144 set dummy strip; ac_word=$2
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2146 $as_echo_n "checking for $ac_word... " >&6; }
2147 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 if test -n "$ac_ct_STRIP"; then
2151 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160 ac_cv_prog_ac_ct_STRIP="strip"
2161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 break 2
2163 fi
2164 done
2165 done
2166 IFS=$as_save_IFS
2167
2168 fi
2169 fi
2170 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2171 if test -n "$ac_ct_STRIP"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2173 $as_echo "$ac_ct_STRIP" >&6; }
2174 else
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2176 $as_echo "no" >&6; }
2177 fi
2178
2179 if test "x$ac_ct_STRIP" = x; then
2180 STRIP=":"
2181 else
2182 case $cross_compiling:$ac_tool_warned in
2183 yes:)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2186 ac_tool_warned=yes ;;
2187 esac
2188 STRIP=$ac_ct_STRIP
2189 fi
2190 else
2191 STRIP="$ac_cv_prog_STRIP"
2192 fi
2193
2194 fi
2195 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2196
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2198 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2199 if test -z "$MKDIR_P"; then
2200 if ${ac_cv_path_mkdir+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2205 do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_prog in mkdir gmkdir; do
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2211 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2212 'mkdir (GNU coreutils) '* | \
2213 'mkdir (coreutils) '* | \
2214 'mkdir (fileutils) '4.1*)
2215 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2216 break 3;;
2217 esac
2218 done
2219 done
2220 done
2221 IFS=$as_save_IFS
2222
2223 fi
2224
2225 test -d ./--version && rmdir ./--version
2226 if test "${ac_cv_path_mkdir+set}" = set; then
2227 MKDIR_P="$ac_cv_path_mkdir -p"
2228 else
2229 # As a last resort, use the slow shell script. Don't cache a
2230 # value for MKDIR_P within a source directory, because that will
2231 # break other packages using the cache if that directory is
2232 # removed, or if the value is a relative name.
2233 MKDIR_P="$ac_install_sh -d"
2234 fi
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2237 $as_echo "$MKDIR_P" >&6; }
2238
2239 mkdir_p="$MKDIR_P"
2240 case $mkdir_p in
2241 [\\/$]* | ?:[\\/]*) ;;
2242 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2243 esac
2244
2245 for ac_prog in gawk mawk nawk awk
2246 do
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2250 $as_echo_n "checking for $ac_word... " >&6; }
2251 if ${ac_cv_prog_AWK+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 if test -n "$AWK"; then
2255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 ac_cv_prog_AWK="$ac_prog"
2265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2267 fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272 fi
2273 fi
2274 AWK=$ac_cv_prog_AWK
2275 if test -n "$AWK"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2277 $as_echo "$AWK" >&6; }
2278 else
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2280 $as_echo "no" >&6; }
2281 fi
2282
2283
2284 test -n "$AWK" && break
2285 done
2286
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2288 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2289 set x ${MAKE-make}
2290 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2291 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2292 $as_echo_n "(cached) " >&6
2293 else
2294 cat >conftest.make <<\_ACEOF
2295 SHELL = /bin/sh
2296 all:
2297 @echo '@@@%%%=$(MAKE)=@@@%%%'
2298 _ACEOF
2299 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2300 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2301 *@@@%%%=?*=@@@%%%*)
2302 eval ac_cv_prog_make_${ac_make}_set=yes;;
2303 *)
2304 eval ac_cv_prog_make_${ac_make}_set=no;;
2305 esac
2306 rm -f conftest.make
2307 fi
2308 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2310 $as_echo "yes" >&6; }
2311 SET_MAKE=
2312 else
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2314 $as_echo "no" >&6; }
2315 SET_MAKE="MAKE=${MAKE-make}"
2316 fi
2317
2318 rm -rf .tst 2>/dev/null
2319 mkdir .tst 2>/dev/null
2320 if test -d .tst; then
2321 am__leading_dot=.
2322 else
2323 am__leading_dot=_
2324 fi
2325 rmdir .tst 2>/dev/null
2326
2327 DEPDIR="${am__leading_dot}deps"
2328
2329 ac_config_commands="$ac_config_commands depfiles"
2330
2331
2332 am_make=${MAKE-make}
2333 cat > confinc << 'END'
2334 am__doit:
2335 @echo this is the am__doit target
2336 .PHONY: am__doit
2337 END
2338 # If we don't find an include directive, just comment out the code.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2340 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2341 am__include="#"
2342 am__quote=
2343 _am_result=none
2344 # First try GNU make style include.
2345 echo "include confinc" > confmf
2346 # Ignore all kinds of additional output from `make'.
2347 case `$am_make -s -f confmf 2> /dev/null` in #(
2348 *the\ am__doit\ target*)
2349 am__include=include
2350 am__quote=
2351 _am_result=GNU
2352 ;;
2353 esac
2354 # Now try BSD make style include.
2355 if test "$am__include" = "#"; then
2356 echo '.include "confinc"' > confmf
2357 case `$am_make -s -f confmf 2> /dev/null` in #(
2358 *the\ am__doit\ target*)
2359 am__include=.include
2360 am__quote="\""
2361 _am_result=BSD
2362 ;;
2363 esac
2364 fi
2365
2366
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2368 $as_echo "$_am_result" >&6; }
2369 rm -f confinc confmf
2370
2371 # Check whether --enable-dependency-tracking was given.
2372 if test "${enable_dependency_tracking+set}" = set; then :
2373 enableval=$enable_dependency_tracking;
2374 fi
2375
2376 if test "x$enable_dependency_tracking" != xno; then
2377 am_depcomp="$ac_aux_dir/depcomp"
2378 AMDEPBACKSLASH='\'
2379 am__nodep='_no'
2380 fi
2381 if test "x$enable_dependency_tracking" != xno; then
2382 AMDEP_TRUE=
2383 AMDEP_FALSE='#'
2384 else
2385 AMDEP_TRUE='#'
2386 AMDEP_FALSE=
2387 fi
2388
2389
2390
2391 # Check whether --enable-multilib was given.
2392 if test "${enable_multilib+set}" = set; then :
2393 enableval=$enable_multilib; case "${enableval}" in
2394 yes) multilib=yes ;;
2395 no) multilib=no ;;
2396 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2397 esac
2398 else
2399 multilib=yes
2400 fi
2401
2402 # Check whether --enable-target-optspace was given.
2403 if test "${enable_target_optspace+set}" = set; then :
2404 enableval=$enable_target_optspace; case "${enableval}" in
2405 yes) target_optspace=yes ;;
2406 no) target_optspace=no ;;
2407 *) as_fn_error $? "bad value ${enableval} for target-optspace option" "$LINENO" 5 ;;
2408 esac
2409 else
2410 target_optspace=
2411 fi
2412
2413 # Check whether --enable-malloc-debugging was given.
2414 if test "${enable_malloc_debugging+set}" = set; then :
2415 enableval=$enable_malloc_debugging; case "${enableval}" in
2416 yes) malloc_debugging=yes ;;
2417 no) malloc_debugging=no ;;
2418 *) as_fn_error $? "bad value ${enableval} for malloc-debugging option" "$LINENO" 5 ;;
2419 esac
2420 else
2421 malloc_debugging=
2422 fi
2423
2424 # Check whether --enable-newlib-multithread was given.
2425 if test "${enable_newlib_multithread+set}" = set; then :
2426 enableval=$enable_newlib_multithread; case "${enableval}" in
2427 yes) newlib_multithread=yes ;;
2428 no) newlib_multithread=no ;;
2429 *) as_fn_error $? "bad value ${enableval} for newlib-multithread option" "$LINENO" 5 ;;
2430 esac
2431 else
2432 newlib_multithread=yes
2433 fi
2434
2435 # Check whether --enable-newlib-iconv was given.
2436 if test "${enable_newlib_iconv+set}" = set; then :
2437 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2438 case "${enableval}" in
2439 yes) newlib_iconv=yes ;;
2440 no) newlib_iconv=no ;;
2441 *) as_fn_error $? "bad value ${enableval} for newlib-iconv option" "$LINENO" 5 ;;
2442 esac
2443 fi
2444 else
2445 newlib_iconv=${newlib_iconv}
2446 fi
2447
2448 # Check whether --enable-newlib-elix-level was given.
2449 if test "${enable_newlib_elix_level+set}" = set; then :
2450 enableval=$enable_newlib_elix_level; case "${enableval}" in
2451 0) newlib_elix_level=0 ;;
2452 1) newlib_elix_level=1 ;;
2453 2) newlib_elix_level=2 ;;
2454 3) newlib_elix_level=3 ;;
2455 4) newlib_elix_level=4 ;;
2456 *) as_fn_error $? "bad value ${enableval} for newlib-elix-level option" "$LINENO" 5 ;;
2457 esac
2458 else
2459 newlib_elix_level=0
2460 fi
2461
2462 # Check whether --enable-newlib-io-float was given.
2463 if test "${enable_newlib_io_float+set}" = set; then :
2464 enableval=$enable_newlib_io_float; case "${enableval}" in
2465 yes) newlib_io_float=yes ;;
2466 no) newlib_io_float=no ;;
2467 *) as_fn_error $? "bad value ${enableval} for newlib-io-float option" "$LINENO" 5 ;;
2468 esac
2469 else
2470 newlib_io_float=yes
2471 fi
2472
2473 # Check whether --enable-newlib-supplied-syscalls was given.
2474 if test "${enable_newlib_supplied_syscalls+set}" = set; then :
2475 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2476 yes) newlib_may_supply_syscalls=yes ;;
2477 no) newlib_may_supply_syscalls=no ;;
2478 *) as_fn_error $? "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;;
2479 esac
2480 else
2481 newlib_may_supply_syscalls=yes
2482 fi
2483
2484 if test x${newlib_may_supply_syscalls} = xyes; then
2485 MAY_SUPPLY_SYSCALLS_TRUE=
2486 MAY_SUPPLY_SYSCALLS_FALSE='#'
2487 else
2488 MAY_SUPPLY_SYSCALLS_TRUE='#'
2489 MAY_SUPPLY_SYSCALLS_FALSE=
2490 fi
2491
2492
2493 # Check whether --enable-newlib-fno-builtin was given.
2494 if test "${enable_newlib_fno_builtin+set}" = set; then :
2495 enableval=$enable_newlib_fno_builtin; case "${enableval}" in
2496 yes) newlib_fno_builtin=yes ;;
2497 no) newlib_fno_builtin=no ;;
2498 *) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
2499 esac
2500 else
2501 newlib_fno_builtin=
2502 fi
2503
2504
2505
2506 test -z "${with_target_subdir}" && with_target_subdir=.
2507
2508 if test "${srcdir}" = "."; then
2509 if test "${with_target_subdir}" != "."; then
2510 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2511 else
2512 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2513 fi
2514 else
2515 newlib_basedir="${srcdir}/../../.."
2516 fi
2517
2518
2519
2520
2521 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2522 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2523 # is not polluted with repeated "-I."
2524 am__isrc=' -I$(srcdir)'
2525 # test to see if srcdir already configured
2526 if test -f $srcdir/config.status; then
2527 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2528 fi
2529 fi
2530
2531 # test whether we have cygpath
2532 if test -z "$CYGPATH_W"; then
2533 if (cygpath --version) >/dev/null 2>/dev/null; then
2534 CYGPATH_W='cygpath -w'
2535 else
2536 CYGPATH_W=echo
2537 fi
2538 fi
2539
2540
2541 # Define the identity of the package.
2542 PACKAGE='newlib'
2543 VERSION='3.3.0'
2544
2545
2546 # Some tools Automake needs.
2547
2548 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2549
2550
2551 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2552
2553
2554 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2555
2556
2557 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2558
2559
2560 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2561
2562 # We need awk for the "check" target. The system "awk" is bad on
2563 # some platforms.
2564 # Always define AMTAR for backward compatibility. Yes, it's still used
2565 # in the wild :-( We should find a proper way to deprecate it ...
2566 AMTAR='$${TAR-tar}'
2567
2568 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2569
2570
2571
2572
2573
2574
2575 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
2576 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
2577 # are probably using a cross compiler, which will not be able to fully
2578 # link an executable. This should really be fixed in autoconf
2579 # itself.
2580
2581
2582
2583
2584
2585
2586
2587 # Extract the first word of "gcc", so it can be a program name with args.
2588 set dummy gcc; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_CC+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="gcc"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2617 $as_echo "$CC" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623
2624
2625 depcc="$CC" am_compiler_list=
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2628 $as_echo_n "checking dependency style of $depcc... " >&6; }
2629 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2633 # We make a subdir and do the tests there. Otherwise we can end up
2634 # making bogus files that we don't know about and never remove. For
2635 # instance it was reported that on HP-UX the gcc test will end up
2636 # making a dummy file named `D' -- because `-MD' means `put the output
2637 # in D'.
2638 rm -rf conftest.dir
2639 mkdir conftest.dir
2640 # Copy depcomp to subdir because otherwise we won't find it if we're
2641 # using a relative directory.
2642 cp "$am_depcomp" conftest.dir
2643 cd conftest.dir
2644 # We will build objects and dependencies in a subdirectory because
2645 # it helps to detect inapplicable dependency modes. For instance
2646 # both Tru64's cc and ICC support -MD to output dependencies as a
2647 # side effect of compilation, but ICC will put the dependencies in
2648 # the current directory while Tru64 will put them in the object
2649 # directory.
2650 mkdir sub
2651
2652 am_cv_CC_dependencies_compiler_type=none
2653 if test "$am_compiler_list" = ""; then
2654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2655 fi
2656 am__universal=false
2657 case " $depcc " in #(
2658 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2659 esac
2660
2661 for depmode in $am_compiler_list; do
2662 # Setup a source with many dependencies, because some compilers
2663 # like to wrap large dependency lists on column 80 (with \), and
2664 # we should not choose a depcomp mode which is confused by this.
2665 #
2666 # We need to recreate these files for each test, as the compiler may
2667 # overwrite some of them when testing with obscure command lines.
2668 # This happens at least with the AIX C compiler.
2669 : > sub/conftest.c
2670 for i in 1 2 3 4 5 6; do
2671 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2673 # Solaris 8's {/usr,}/bin/sh.
2674 touch sub/conftst$i.h
2675 done
2676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2677
2678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2679 # mode. It turns out that the SunPro C++ compiler does not properly
2680 # handle `-M -o', and we need to detect this. Also, some Intel
2681 # versions had trouble with output in subdirs
2682 am__obj=sub/conftest.${OBJEXT-o}
2683 am__minus_obj="-o $am__obj"
2684 case $depmode in
2685 gcc)
2686 # This depmode causes a compiler race in universal mode.
2687 test "$am__universal" = false || continue
2688 ;;
2689 nosideeffect)
2690 # after this tag, mechanisms are not by side-effect, so they'll
2691 # only be used when explicitly requested
2692 if test "x$enable_dependency_tracking" = xyes; then
2693 continue
2694 else
2695 break
2696 fi
2697 ;;
2698 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
2699 # This compiler won't grok `-c -o', but also, the minuso test has
2700 # not run yet. These depmodes are late enough in the game, and
2701 # so weak that their functioning should not be impacted.
2702 am__obj=conftest.${OBJEXT-o}
2703 am__minus_obj=
2704 ;;
2705 none) break ;;
2706 esac
2707 if depmode=$depmode \
2708 source=sub/conftest.c object=$am__obj \
2709 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2710 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2711 >/dev/null 2>conftest.err &&
2712 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2713 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2714 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2715 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2716 # icc doesn't choke on unknown options, it will just issue warnings
2717 # or remarks (even with -Werror). So we grep stderr for any message
2718 # that says an option was ignored or not supported.
2719 # When given -MP, icc 7.0 and 7.1 complain thusly:
2720 # icc: Command line warning: ignoring option '-M'; no argument required
2721 # The diagnosis changed in icc 8.0:
2722 # icc: Command line remark: option '-MP' not supported
2723 if (grep 'ignoring option' conftest.err ||
2724 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2725 am_cv_CC_dependencies_compiler_type=$depmode
2726 break
2727 fi
2728 fi
2729 done
2730
2731 cd ..
2732 rm -rf conftest.dir
2733 else
2734 am_cv_CC_dependencies_compiler_type=none
2735 fi
2736
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2739 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2740 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2741
2742 if
2743 test "x$enable_dependency_tracking" != xno \
2744 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2745 am__fastdepCC_TRUE=
2746 am__fastdepCC_FALSE='#'
2747 else
2748 am__fastdepCC_TRUE='#'
2749 am__fastdepCC_FALSE=
2750 fi
2751
2752
2753 if test -z "$CC"; then
2754 # Extract the first word of "cc", so it can be a program name with args.
2755 set dummy cc; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_CC+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 ac_prog_rejected=no
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2773 ac_prog_rejected=yes
2774 continue
2775 fi
2776 ac_cv_prog_CC="cc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783
2784 if test $ac_prog_rejected = yes; then
2785 # We found a bogon in the path, so make sure we never use it.
2786 set dummy $ac_cv_prog_CC
2787 shift
2788 if test $# != 0; then
2789 # We chose a different compiler from the bogus one.
2790 # However, it has the same basename, so the bogon will be chosen
2791 # first if we set CC to just the basename; use the full file name.
2792 shift
2793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2794 fi
2795 fi
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
2809 fi
2810
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
2812 $as_echo_n "checking whether we are using GNU C... " >&6; }
2813 if ${ac_cv_c_compiler_gnu+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 cat > conftest.c <<EOF
2817 #ifdef __GNUC__
2818 yes;
2819 #endif
2820 EOF
2821 if { ac_try='${CC-cc} -E conftest.c'
2822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2826 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
2827 ac_cv_c_compiler_gnu=yes
2828 else
2829 ac_cv_c_compiler_gnu=no
2830 fi
2831 fi
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2833 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2834
2835 if test $ac_cv_c_compiler_gnu = yes; then
2836 GCC=yes
2837 ac_test_CFLAGS="${CFLAGS+set}"
2838 ac_save_CFLAGS="$CFLAGS"
2839 ac_test_CFLAGS=${CFLAGS+set}
2840 ac_save_CFLAGS=$CFLAGS
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2842 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2843 if ${ac_cv_prog_cc_g+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 ac_save_c_werror_flag=$ac_c_werror_flag
2847 ac_c_werror_flag=yes
2848 ac_cv_prog_cc_g=no
2849 CFLAGS="-g"
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2852
2853 int
2854 main ()
2855 {
2856
2857 ;
2858 return 0;
2859 }
2860 _ACEOF
2861 if ac_fn_c_try_compile "$LINENO"; then :
2862 ac_cv_prog_cc_g=yes
2863 else
2864 CFLAGS=""
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2867
2868 int
2869 main ()
2870 {
2871
2872 ;
2873 return 0;
2874 }
2875 _ACEOF
2876 if ac_fn_c_try_compile "$LINENO"; then :
2877
2878 else
2879 ac_c_werror_flag=$ac_save_c_werror_flag
2880 CFLAGS="-g"
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2883
2884 int
2885 main ()
2886 {
2887
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 if ac_fn_c_try_compile "$LINENO"; then :
2893 ac_cv_prog_cc_g=yes
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 fi
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 fi
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 ac_c_werror_flag=$ac_save_c_werror_flag
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2903 $as_echo "$ac_cv_prog_cc_g" >&6; }
2904 if test "$ac_test_CFLAGS" = set; then
2905 CFLAGS=$ac_save_CFLAGS
2906 elif test $ac_cv_prog_cc_g = yes; then
2907 if test "$GCC" = yes; then
2908 CFLAGS="-g -O2"
2909 else
2910 CFLAGS="-g"
2911 fi
2912 else
2913 if test "$GCC" = yes; then
2914 CFLAGS="-O2"
2915 else
2916 CFLAGS=
2917 fi
2918 fi
2919 if test "$ac_test_CFLAGS" = set; then
2920 CFLAGS="$ac_save_CFLAGS"
2921 elif test $ac_cv_prog_cc_g = yes; then
2922 CFLAGS="-g -O2"
2923 else
2924 CFLAGS="-O2"
2925 fi
2926 else
2927 GCC=
2928 test "${CFLAGS+set}" = set || CFLAGS="-g"
2929 fi
2930
2931
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}as; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AS+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$AS"; then
2941 ac_cv_prog_AS="$AS" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_AS="${ac_tool_prefix}as"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 AS=$ac_cv_prog_AS
2961 if test -n "$AS"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2963 $as_echo "$AS" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970 fi
2971 if test -z "$ac_cv_prog_AS"; then
2972 ac_ct_AS=$AS
2973 # Extract the first word of "as", so it can be a program name with args.
2974 set dummy as; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$ac_ct_AS"; then
2981 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_ac_ct_AS="as"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3001 if test -n "$ac_ct_AS"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3003 $as_echo "$ac_ct_AS" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009 if test "x$ac_ct_AS" = x; then
3010 AS=""
3011 else
3012 case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018 AS=$ac_ct_AS
3019 fi
3020 else
3021 AS="$ac_cv_prog_AS"
3022 fi
3023
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}ar; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_AR+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$AR"; then
3033 ac_cv_prog_AR="$AR" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_AR="${ac_tool_prefix}ar"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 AR=$ac_cv_prog_AR
3053 if test -n "$AR"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3055 $as_echo "$AR" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$ac_cv_prog_AR"; then
3064 ac_ct_AR=$AR
3065 # Extract the first word of "ar", so it can be a program name with args.
3066 set dummy ar; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$ac_ct_AR"; then
3073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_AR="ar"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3093 if test -n "$ac_ct_AR"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3095 $as_echo "$ac_ct_AR" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101 if test "x$ac_ct_AR" = x; then
3102 AR=""
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3109 esac
3110 AR=$ac_ct_AR
3111 fi
3112 else
3113 AR="$ac_cv_prog_AR"
3114 fi
3115
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_RANLIB+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$RANLIB"; then
3125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 RANLIB=$ac_cv_prog_RANLIB
3145 if test -n "$RANLIB"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3147 $as_echo "$RANLIB" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 fi
3155 if test -z "$ac_cv_prog_RANLIB"; then
3156 ac_ct_RANLIB=$RANLIB
3157 # Extract the first word of "ranlib", so it can be a program name with args.
3158 set dummy ranlib; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$ac_ct_RANLIB"; then
3165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_ac_ct_RANLIB="ranlib"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3185 if test -n "$ac_ct_RANLIB"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3187 $as_echo "$ac_ct_RANLIB" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193 if test "x$ac_ct_RANLIB" = x; then
3194 RANLIB=":"
3195 else
3196 case $cross_compiling:$ac_tool_warned in
3197 yes:)
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200 ac_tool_warned=yes ;;
3201 esac
3202 RANLIB=$ac_ct_RANLIB
3203 fi
3204 else
3205 RANLIB="$ac_cv_prog_RANLIB"
3206 fi
3207
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_READELF+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$READELF"; then
3217 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3226 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 READELF=$ac_cv_prog_READELF
3237 if test -n "$READELF"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3239 $as_echo "$READELF" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 if test -z "$ac_cv_prog_READELF"; then
3248 ac_ct_READELF=$READELF
3249 # Extract the first word of "readelf", so it can be a program name with args.
3250 set dummy readelf; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$ac_ct_READELF"; then
3257 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_ac_ct_READELF="readelf"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3277 if test -n "$ac_ct_READELF"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3279 $as_echo "$ac_ct_READELF" >&6; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285 if test "x$ac_ct_READELF" = x; then
3286 READELF=":"
3287 else
3288 case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3293 esac
3294 READELF=$ac_ct_READELF
3295 fi
3296 else
3297 READELF="$ac_cv_prog_READELF"
3298 fi
3299
3300
3301
3302
3303 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3304 ac_given_INSTALL=$INSTALL
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3308 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3309 # Check whether --enable-maintainer-mode was given.
3310 if test "${enable_maintainer_mode+set}" = set; then :
3311 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3312 else
3313 USE_MAINTAINER_MODE=no
3314 fi
3315
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3317 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3318 if test $USE_MAINTAINER_MODE = yes; then
3319 MAINTAINER_MODE_TRUE=
3320 MAINTAINER_MODE_FALSE='#'
3321 else
3322 MAINTAINER_MODE_TRUE='#'
3323 MAINTAINER_MODE_FALSE=
3324 fi
3325
3326 MAINT=$MAINTAINER_MODE_TRUE
3327
3328
3329 # By default we simply use the C compiler to build assembly code.
3330
3331 test "${CCAS+set}" = set || CCAS=$CC
3332 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3333
3334
3335
3336
3337 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3338 # at least currently, we never actually build a program, so we never
3339 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3340 # fails, because we are probably configuring with a cross compiler
3341 # which can't create executables. So we include AC_EXEEXT to keep
3342 # automake happy, but we don't execute it, since we don't care about
3343 # the result.
3344 if false; then
3345
3346 dummy_var=1
3347 fi
3348
3349 . ${newlib_basedir}/configure.host
3350
3351 NEWLIB_CFLAGS=${newlib_cflags}
3352
3353
3354 NO_INCLUDE_LIST=${noinclude}
3355
3356
3357 LDFLAGS=${ldflags}
3358
3359
3360 if test x${newlib_elix_level} = x0; then
3361 ELIX_LEVEL_0_TRUE=
3362 ELIX_LEVEL_0_FALSE='#'
3363 else
3364 ELIX_LEVEL_0_TRUE='#'
3365 ELIX_LEVEL_0_FALSE=
3366 fi
3367
3368 if test x${newlib_elix_level} = x1; then
3369 ELIX_LEVEL_1_TRUE=
3370 ELIX_LEVEL_1_FALSE='#'
3371 else
3372 ELIX_LEVEL_1_TRUE='#'
3373 ELIX_LEVEL_1_FALSE=
3374 fi
3375
3376 if test x${newlib_elix_level} = x2; then
3377 ELIX_LEVEL_2_TRUE=
3378 ELIX_LEVEL_2_FALSE='#'
3379 else
3380 ELIX_LEVEL_2_TRUE='#'
3381 ELIX_LEVEL_2_FALSE=
3382 fi
3383
3384 if test x${newlib_elix_level} = x3; then
3385 ELIX_LEVEL_3_TRUE=
3386 ELIX_LEVEL_3_FALSE='#'
3387 else
3388 ELIX_LEVEL_3_TRUE='#'
3389 ELIX_LEVEL_3_FALSE=
3390 fi
3391
3392 if test x${newlib_elix_level} = x4; then
3393 ELIX_LEVEL_4_TRUE=
3394 ELIX_LEVEL_4_FALSE='#'
3395 else
3396 ELIX_LEVEL_4_TRUE='#'
3397 ELIX_LEVEL_4_FALSE=
3398 fi
3399
3400
3401 if test x${use_libtool} = xyes; then
3402 USE_LIBTOOL_TRUE=
3403 USE_LIBTOOL_FALSE='#'
3404 else
3405 USE_LIBTOOL_TRUE='#'
3406 USE_LIBTOOL_FALSE=
3407 fi
3408
3409
3410 # Emit any target-specific warnings.
3411 if test "x${newlib_msg_warn}" != "x"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${newlib_msg_warn}" >&5
3413 $as_echo "$as_me: WARNING: ${newlib_msg_warn}" >&2;}
3414 fi
3415
3416 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3417 # use oext, which is set in configure.host based on the target platform.
3418 OBJEXT=${oext}
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430 ac_config_files="$ac_config_files Makefile"
3431
3432 cat >confcache <<\_ACEOF
3433 # This file is a shell script that caches the results of configure
3434 # tests run on this system so they can be shared between configure
3435 # scripts and configure runs, see configure's option --config-cache.
3436 # It is not useful on other systems. If it contains results you don't
3437 # want to keep, you may remove or edit it.
3438 #
3439 # config.status only pays attention to the cache file if you give it
3440 # the --recheck option to rerun configure.
3441 #
3442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3444 # following values.
3445
3446 _ACEOF
3447
3448 # The following way of writing the cache mishandles newlines in values,
3449 # but we know of no workaround that is simple, portable, and efficient.
3450 # So, we kill variables containing newlines.
3451 # Ultrix sh set writes to stderr and can't be redirected directly,
3452 # and sets the high bit in the cache file unless we assign to the vars.
3453 (
3454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3455 eval ac_val=\$$ac_var
3456 case $ac_val in #(
3457 *${as_nl}*)
3458 case $ac_var in #(
3459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3460 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3461 esac
3462 case $ac_var in #(
3463 _ | IFS | as_nl) ;; #(
3464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3465 *) { eval $ac_var=; unset $ac_var;} ;;
3466 esac ;;
3467 esac
3468 done
3469
3470 (set) 2>&1 |
3471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3472 *${as_nl}ac_space=\ *)
3473 # `set' does not quote correctly, so add quotes: double-quote
3474 # substitution turns \\\\ into \\, and sed turns \\ into \.
3475 sed -n \
3476 "s/'/'\\\\''/g;
3477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3478 ;; #(
3479 *)
3480 # `set' quotes correctly as required by POSIX, so do not add quotes.
3481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3482 ;;
3483 esac |
3484 sort
3485 ) |
3486 sed '
3487 /^ac_cv_env_/b end
3488 t clear
3489 :clear
3490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3491 t end
3492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3493 :end' >>confcache
3494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3495 if test -w "$cache_file"; then
3496 if test "x$cache_file" != "x/dev/null"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3498 $as_echo "$as_me: updating cache $cache_file" >&6;}
3499 if test ! -f "$cache_file" || test -h "$cache_file"; then
3500 cat confcache >"$cache_file"
3501 else
3502 case $cache_file in #(
3503 */* | ?:*)
3504 mv -f confcache "$cache_file"$$ &&
3505 mv -f "$cache_file"$$ "$cache_file" ;; #(
3506 *)
3507 mv -f confcache "$cache_file" ;;
3508 esac
3509 fi
3510 fi
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3513 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3514 fi
3515 fi
3516 rm -f confcache
3517
3518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3519 # Let make expand exec_prefix.
3520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3521
3522 # Transform confdefs.h into DEFS.
3523 # Protect against shell expansion while executing Makefile rules.
3524 # Protect against Makefile macro expansion.
3525 #
3526 # If the first sed substitution is executed (which looks for macros that
3527 # take arguments), then branch to the quote section. Otherwise,
3528 # look for a macro that doesn't take arguments.
3529 ac_script='
3530 :mline
3531 /\\$/{
3532 N
3533 s,\\\n,,
3534 b mline
3535 }
3536 t clear
3537 :clear
3538 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3539 t quote
3540 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3541 t quote
3542 b any
3543 :quote
3544 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3545 s/\[/\\&/g
3546 s/\]/\\&/g
3547 s/\$/$$/g
3548 H
3549 :any
3550 ${
3551 g
3552 s/^\n//
3553 s/\n/ /g
3554 p
3555 }
3556 '
3557 DEFS=`sed -n "$ac_script" confdefs.h`
3558
3559
3560 ac_libobjs=
3561 ac_ltlibobjs=
3562 U=
3563 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3564 # 1. Remove the extension, and $U if already installed.
3565 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3566 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3567 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3568 # will be set to the directory where LIBOBJS objects are built.
3569 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3570 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3571 done
3572 LIBOBJS=$ac_libobjs
3573
3574 LTLIBOBJS=$ac_ltlibobjs
3575
3576
3577 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
3578 as_fn_error $? "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
3579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3580 fi
3581
3582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3583 as_fn_error $? "conditional \"AMDEP\" was never defined.
3584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3585 fi
3586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3587 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
3588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3589 fi
3590 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3591 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
3592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3593 fi
3594 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
3595 as_fn_error $? "conditional \"ELIX_LEVEL_0\" was never defined.
3596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3597 fi
3598 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
3599 as_fn_error $? "conditional \"ELIX_LEVEL_1\" was never defined.
3600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3601 fi
3602 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
3603 as_fn_error $? "conditional \"ELIX_LEVEL_2\" was never defined.
3604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3605 fi
3606 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
3607 as_fn_error $? "conditional \"ELIX_LEVEL_3\" was never defined.
3608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3609 fi
3610 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
3611 as_fn_error $? "conditional \"ELIX_LEVEL_4\" was never defined.
3612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3613 fi
3614 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
3615 as_fn_error $? "conditional \"USE_LIBTOOL\" was never defined.
3616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3617 fi
3618
3619 : "${CONFIG_STATUS=./config.status}"
3620 ac_write_fail=0
3621 ac_clean_files_save=$ac_clean_files
3622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3625 as_write_fail=0
3626 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3627 #! $SHELL
3628 # Generated by $as_me.
3629 # Run this file to recreate the current configuration.
3630 # Compiler output produced by configure, useful for debugging
3631 # configure, is in config.log if it exists.
3632
3633 debug=false
3634 ac_cs_recheck=false
3635 ac_cs_silent=false
3636
3637 SHELL=\${CONFIG_SHELL-$SHELL}
3638 export SHELL
3639 _ASEOF
3640 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3641 ## -------------------- ##
3642 ## M4sh Initialization. ##
3643 ## -------------------- ##
3644
3645 # Be more Bourne compatible
3646 DUALCASE=1; export DUALCASE # for MKS sh
3647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3648 emulate sh
3649 NULLCMD=:
3650 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3651 # is contrary to our usage. Disable this feature.
3652 alias -g '${1+"$@"}'='"$@"'
3653 setopt NO_GLOB_SUBST
3654 else
3655 case `(set -o) 2>/dev/null` in #(
3656 *posix*) :
3657 set -o posix ;; #(
3658 *) :
3659 ;;
3660 esac
3661 fi
3662
3663
3664 as_nl='
3665 '
3666 export as_nl
3667 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3668 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3671 # Prefer a ksh shell builtin over an external printf program on Solaris,
3672 # but without wasting forks for bash or zsh.
3673 if test -z "$BASH_VERSION$ZSH_VERSION" \
3674 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3675 as_echo='print -r --'
3676 as_echo_n='print -rn --'
3677 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3678 as_echo='printf %s\n'
3679 as_echo_n='printf %s'
3680 else
3681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3682 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3683 as_echo_n='/usr/ucb/echo -n'
3684 else
3685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3686 as_echo_n_body='eval
3687 arg=$1;
3688 case $arg in #(
3689 *"$as_nl"*)
3690 expr "X$arg" : "X\\(.*\\)$as_nl";
3691 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3692 esac;
3693 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3694 '
3695 export as_echo_n_body
3696 as_echo_n='sh -c $as_echo_n_body as_echo'
3697 fi
3698 export as_echo_body
3699 as_echo='sh -c $as_echo_body as_echo'
3700 fi
3701
3702 # The user is always right.
3703 if test "${PATH_SEPARATOR+set}" != set; then
3704 PATH_SEPARATOR=:
3705 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3706 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3707 PATH_SEPARATOR=';'
3708 }
3709 fi
3710
3711
3712 # IFS
3713 # We need space, tab and new line, in precisely that order. Quoting is
3714 # there to prevent editors from complaining about space-tab.
3715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3716 # splitting by setting IFS to empty value.)
3717 IFS=" "" $as_nl"
3718
3719 # Find who we are. Look in the path if we contain no directory separator.
3720 as_myself=
3721 case $0 in #((
3722 *[\\/]* ) as_myself=$0 ;;
3723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3729 done
3730 IFS=$as_save_IFS
3731
3732 ;;
3733 esac
3734 # We did not find ourselves, most probably we were run as `sh COMMAND'
3735 # in which case we are not to be found in the path.
3736 if test "x$as_myself" = x; then
3737 as_myself=$0
3738 fi
3739 if test ! -f "$as_myself"; then
3740 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3741 exit 1
3742 fi
3743
3744 # Unset variables that we do not need and which cause bugs (e.g. in
3745 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3746 # suppresses any "Segmentation fault" message there. '((' could
3747 # trigger a bug in pdksh 5.2.14.
3748 for as_var in BASH_ENV ENV MAIL MAILPATH
3749 do eval test x\${$as_var+set} = xset \
3750 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3751 done
3752 PS1='$ '
3753 PS2='> '
3754 PS4='+ '
3755
3756 # NLS nuisances.
3757 LC_ALL=C
3758 export LC_ALL
3759 LANGUAGE=C
3760 export LANGUAGE
3761
3762 # CDPATH.
3763 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3764
3765
3766 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3767 # ----------------------------------------
3768 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3769 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3770 # script with STATUS, using 1 if that was 0.
3771 as_fn_error ()
3772 {
3773 as_status=$1; test $as_status -eq 0 && as_status=1
3774 if test "$4"; then
3775 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3776 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3777 fi
3778 $as_echo "$as_me: error: $2" >&2
3779 as_fn_exit $as_status
3780 } # as_fn_error
3781
3782
3783 # as_fn_set_status STATUS
3784 # -----------------------
3785 # Set $? to STATUS, without forking.
3786 as_fn_set_status ()
3787 {
3788 return $1
3789 } # as_fn_set_status
3790
3791 # as_fn_exit STATUS
3792 # -----------------
3793 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3794 as_fn_exit ()
3795 {
3796 set +e
3797 as_fn_set_status $1
3798 exit $1
3799 } # as_fn_exit
3800
3801 # as_fn_unset VAR
3802 # ---------------
3803 # Portably unset VAR.
3804 as_fn_unset ()
3805 {
3806 { eval $1=; unset $1;}
3807 }
3808 as_unset=as_fn_unset
3809 # as_fn_append VAR VALUE
3810 # ----------------------
3811 # Append the text in VALUE to the end of the definition contained in VAR. Take
3812 # advantage of any shell optimizations that allow amortized linear growth over
3813 # repeated appends, instead of the typical quadratic growth present in naive
3814 # implementations.
3815 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3816 eval 'as_fn_append ()
3817 {
3818 eval $1+=\$2
3819 }'
3820 else
3821 as_fn_append ()
3822 {
3823 eval $1=\$$1\$2
3824 }
3825 fi # as_fn_append
3826
3827 # as_fn_arith ARG...
3828 # ------------------
3829 # Perform arithmetic evaluation on the ARGs, and store the result in the
3830 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3831 # must be portable across $(()) and expr.
3832 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3833 eval 'as_fn_arith ()
3834 {
3835 as_val=$(( $* ))
3836 }'
3837 else
3838 as_fn_arith ()
3839 {
3840 as_val=`expr "$@" || test $? -eq 1`
3841 }
3842 fi # as_fn_arith
3843
3844
3845 if expr a : '\(a\)' >/dev/null 2>&1 &&
3846 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3847 as_expr=expr
3848 else
3849 as_expr=false
3850 fi
3851
3852 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3853 as_basename=basename
3854 else
3855 as_basename=false
3856 fi
3857
3858 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3859 as_dirname=dirname
3860 else
3861 as_dirname=false
3862 fi
3863
3864 as_me=`$as_basename -- "$0" ||
3865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3866 X"$0" : 'X\(//\)$' \| \
3867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3868 $as_echo X/"$0" |
3869 sed '/^.*\/\([^/][^/]*\)\/*$/{
3870 s//\1/
3871 q
3872 }
3873 /^X\/\(\/\/\)$/{
3874 s//\1/
3875 q
3876 }
3877 /^X\/\(\/\).*/{
3878 s//\1/
3879 q
3880 }
3881 s/.*/./; q'`
3882
3883 # Avoid depending upon Character Ranges.
3884 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3885 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3886 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3887 as_cr_digits='0123456789'
3888 as_cr_alnum=$as_cr_Letters$as_cr_digits
3889
3890 ECHO_C= ECHO_N= ECHO_T=
3891 case `echo -n x` in #(((((
3892 -n*)
3893 case `echo 'xy\c'` in
3894 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3895 xy) ECHO_C='\c';;
3896 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3897 ECHO_T=' ';;
3898 esac;;
3899 *)
3900 ECHO_N='-n';;
3901 esac
3902
3903 rm -f conf$$ conf$$.exe conf$$.file
3904 if test -d conf$$.dir; then
3905 rm -f conf$$.dir/conf$$.file
3906 else
3907 rm -f conf$$.dir
3908 mkdir conf$$.dir 2>/dev/null
3909 fi
3910 if (echo >conf$$.file) 2>/dev/null; then
3911 if ln -s conf$$.file conf$$ 2>/dev/null; then
3912 as_ln_s='ln -s'
3913 # ... but there are two gotchas:
3914 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3915 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3916 # In both cases, we have to default to `cp -p'.
3917 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3918 as_ln_s='cp -p'
3919 elif ln conf$$.file conf$$ 2>/dev/null; then
3920 as_ln_s=ln
3921 else
3922 as_ln_s='cp -p'
3923 fi
3924 else
3925 as_ln_s='cp -p'
3926 fi
3927 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3928 rmdir conf$$.dir 2>/dev/null
3929
3930
3931 # as_fn_mkdir_p
3932 # -------------
3933 # Create "$as_dir" as a directory, including parents if necessary.
3934 as_fn_mkdir_p ()
3935 {
3936
3937 case $as_dir in #(
3938 -*) as_dir=./$as_dir;;
3939 esac
3940 test -d "$as_dir" || eval $as_mkdir_p || {
3941 as_dirs=
3942 while :; do
3943 case $as_dir in #(
3944 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3945 *) as_qdir=$as_dir;;
3946 esac
3947 as_dirs="'$as_qdir' $as_dirs"
3948 as_dir=`$as_dirname -- "$as_dir" ||
3949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3950 X"$as_dir" : 'X\(//\)[^/]' \| \
3951 X"$as_dir" : 'X\(//\)$' \| \
3952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3953 $as_echo X"$as_dir" |
3954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3955 s//\1/
3956 q
3957 }
3958 /^X\(\/\/\)[^/].*/{
3959 s//\1/
3960 q
3961 }
3962 /^X\(\/\/\)$/{
3963 s//\1/
3964 q
3965 }
3966 /^X\(\/\).*/{
3967 s//\1/
3968 q
3969 }
3970 s/.*/./; q'`
3971 test -d "$as_dir" && break
3972 done
3973 test -z "$as_dirs" || eval "mkdir $as_dirs"
3974 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3975
3976
3977 } # as_fn_mkdir_p
3978 if mkdir -p . 2>/dev/null; then
3979 as_mkdir_p='mkdir -p "$as_dir"'
3980 else
3981 test -d ./-p && rmdir ./-p
3982 as_mkdir_p=false
3983 fi
3984
3985 if test -x / >/dev/null 2>&1; then
3986 as_test_x='test -x'
3987 else
3988 if ls -dL / >/dev/null 2>&1; then
3989 as_ls_L_option=L
3990 else
3991 as_ls_L_option=
3992 fi
3993 as_test_x='
3994 eval sh -c '\''
3995 if test -d "$1"; then
3996 test -d "$1/.";
3997 else
3998 case $1 in #(
3999 -*)set "./$1";;
4000 esac;
4001 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4002 ???[sx]*):;;*)false;;esac;fi
4003 '\'' sh
4004 '
4005 fi
4006 as_executable_p=$as_test_x
4007
4008 # Sed expression to map a string onto a valid CPP name.
4009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4010
4011 # Sed expression to map a string onto a valid variable name.
4012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4013
4014
4015 exec 6>&1
4016 ## ----------------------------------- ##
4017 ## Main body of $CONFIG_STATUS script. ##
4018 ## ----------------------------------- ##
4019 _ASEOF
4020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4021
4022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4023 # Save the log message, to keep $0 and so on meaningful, and to
4024 # report actual input values of CONFIG_FILES etc. instead of their
4025 # values after options handling.
4026 ac_log="
4027 This file was extended by newlib $as_me 3.3.0, which was
4028 generated by GNU Autoconf 2.68. Invocation command line was
4029
4030 CONFIG_FILES = $CONFIG_FILES
4031 CONFIG_HEADERS = $CONFIG_HEADERS
4032 CONFIG_LINKS = $CONFIG_LINKS
4033 CONFIG_COMMANDS = $CONFIG_COMMANDS
4034 $ $0 $@
4035
4036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4037 "
4038
4039 _ACEOF
4040
4041 case $ac_config_files in *"
4042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4043 esac
4044
4045
4046
4047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4048 # Files that config.status was made for.
4049 config_files="$ac_config_files"
4050 config_commands="$ac_config_commands"
4051
4052 _ACEOF
4053
4054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4055 ac_cs_usage="\
4056 \`$as_me' instantiates files and other configuration actions
4057 from templates according to the current configuration. Unless the files
4058 and actions are specified as TAGs, all are instantiated by default.
4059
4060 Usage: $0 [OPTION]... [TAG]...
4061
4062 -h, --help print this help, then exit
4063 -V, --version print version number and configuration settings, then exit
4064 --config print configuration, then exit
4065 -q, --quiet, --silent
4066 do not print progress messages
4067 -d, --debug don't remove temporary files
4068 --recheck update $as_me by reconfiguring in the same conditions
4069 --file=FILE[:TEMPLATE]
4070 instantiate the configuration file FILE
4071
4072 Configuration files:
4073 $config_files
4074
4075 Configuration commands:
4076 $config_commands
4077
4078 Report bugs to the package provider."
4079
4080 _ACEOF
4081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4083 ac_cs_version="\\
4084 newlib config.status 3.3.0
4085 configured by $0, generated by GNU Autoconf 2.68,
4086 with options \\"\$ac_cs_config\\"
4087
4088 Copyright (C) 2010 Free Software Foundation, Inc.
4089 This config.status script is free software; the Free Software Foundation
4090 gives unlimited permission to copy, distribute and modify it."
4091
4092 ac_pwd='$ac_pwd'
4093 srcdir='$srcdir'
4094 INSTALL='$INSTALL'
4095 MKDIR_P='$MKDIR_P'
4096 AWK='$AWK'
4097 test -n "\$AWK" || AWK=awk
4098 _ACEOF
4099
4100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4101 # The default lists apply if the user does not specify any file.
4102 ac_need_defaults=:
4103 while test $# != 0
4104 do
4105 case $1 in
4106 --*=?*)
4107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4109 ac_shift=:
4110 ;;
4111 --*=)
4112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4113 ac_optarg=
4114 ac_shift=:
4115 ;;
4116 *)
4117 ac_option=$1
4118 ac_optarg=$2
4119 ac_shift=shift
4120 ;;
4121 esac
4122
4123 case $ac_option in
4124 # Handling of the options.
4125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4126 ac_cs_recheck=: ;;
4127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4128 $as_echo "$ac_cs_version"; exit ;;
4129 --config | --confi | --conf | --con | --co | --c )
4130 $as_echo "$ac_cs_config"; exit ;;
4131 --debug | --debu | --deb | --de | --d | -d )
4132 debug=: ;;
4133 --file | --fil | --fi | --f )
4134 $ac_shift
4135 case $ac_optarg in
4136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4137 '') as_fn_error $? "missing file argument" ;;
4138 esac
4139 as_fn_append CONFIG_FILES " '$ac_optarg'"
4140 ac_need_defaults=false;;
4141 --he | --h | --help | --hel | -h )
4142 $as_echo "$ac_cs_usage"; exit ;;
4143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4145 ac_cs_silent=: ;;
4146
4147 # This is an error.
4148 -*) as_fn_error $? "unrecognized option: \`$1'
4149 Try \`$0 --help' for more information." ;;
4150
4151 *) as_fn_append ac_config_targets " $1"
4152 ac_need_defaults=false ;;
4153
4154 esac
4155 shift
4156 done
4157
4158 ac_configure_extra_args=
4159
4160 if $ac_cs_silent; then
4161 exec 6>/dev/null
4162 ac_configure_extra_args="$ac_configure_extra_args --silent"
4163 fi
4164
4165 _ACEOF
4166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4167 if \$ac_cs_recheck; then
4168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4169 shift
4170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4171 CONFIG_SHELL='$SHELL'
4172 export CONFIG_SHELL
4173 exec "\$@"
4174 fi
4175
4176 _ACEOF
4177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4178 exec 5>>config.log
4179 {
4180 echo
4181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4182 ## Running $as_me. ##
4183 _ASBOX
4184 $as_echo "$ac_log"
4185 } >&5
4186
4187 _ACEOF
4188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4189 #
4190 # INIT-COMMANDS
4191 #
4192 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4193
4194 _ACEOF
4195
4196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4197
4198 # Handling of arguments.
4199 for ac_config_target in $ac_config_targets
4200 do
4201 case $ac_config_target in
4202 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4204
4205 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4206 esac
4207 done
4208
4209
4210 # If the user did not use the arguments to specify the items to instantiate,
4211 # then the envvar interface is used. Set only those that are not.
4212 # We use the long form for the default assignment because of an extremely
4213 # bizarre bug on SunOS 4.1.3.
4214 if $ac_need_defaults; then
4215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4217 fi
4218
4219 # Have a temporary directory for convenience. Make it in the build tree
4220 # simply because there is no reason against having it here, and in addition,
4221 # creating and moving files from /tmp can sometimes cause problems.
4222 # Hook for its removal unless debugging.
4223 # Note that there is a small window in which the directory will not be cleaned:
4224 # after its creation but before its name has been assigned to `$tmp'.
4225 $debug ||
4226 {
4227 tmp= ac_tmp=
4228 trap 'exit_status=$?
4229 : "${ac_tmp:=$tmp}"
4230 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4231 ' 0
4232 trap 'as_fn_exit 1' 1 2 13 15
4233 }
4234 # Create a (secure) tmp directory for tmp files.
4235
4236 {
4237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4238 test -d "$tmp"
4239 } ||
4240 {
4241 tmp=./conf$$-$RANDOM
4242 (umask 077 && mkdir "$tmp")
4243 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4244 ac_tmp=$tmp
4245
4246 # Set up the scripts for CONFIG_FILES section.
4247 # No need to generate them if there are no CONFIG_FILES.
4248 # This happens for instance with `./config.status config.h'.
4249 if test -n "$CONFIG_FILES"; then
4250
4251
4252 ac_cr=`echo X | tr X '\015'`
4253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4254 # But we know of no other shell where ac_cr would be empty at this
4255 # point, so we can use a bashism as a fallback.
4256 if test "x$ac_cr" = x; then
4257 eval ac_cr=\$\'\\r\'
4258 fi
4259 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4261 ac_cs_awk_cr='\\r'
4262 else
4263 ac_cs_awk_cr=$ac_cr
4264 fi
4265
4266 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4267 _ACEOF
4268
4269
4270 {
4271 echo "cat >conf$$subs.awk <<_ACEOF" &&
4272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4273 echo "_ACEOF"
4274 } >conf$$subs.sh ||
4275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4277 ac_delim='%!_!# '
4278 for ac_last_try in false false false false false :; do
4279 . ./conf$$subs.sh ||
4280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4281
4282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4283 if test $ac_delim_n = $ac_delim_num; then
4284 break
4285 elif $ac_last_try; then
4286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4287 else
4288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4289 fi
4290 done
4291 rm -f conf$$subs.sh
4292
4293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4294 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4295 _ACEOF
4296 sed -n '
4297 h
4298 s/^/S["/; s/!.*/"]=/
4299 p
4300 g
4301 s/^[^!]*!//
4302 :repl
4303 t repl
4304 s/'"$ac_delim"'$//
4305 t delim
4306 :nl
4307 h
4308 s/\(.\{148\}\)..*/\1/
4309 t more1
4310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4311 p
4312 n
4313 b repl
4314 :more1
4315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4316 p
4317 g
4318 s/.\{148\}//
4319 t nl
4320 :delim
4321 h
4322 s/\(.\{148\}\)..*/\1/
4323 t more2
4324 s/["\\]/\\&/g; s/^/"/; s/$/"/
4325 p
4326 b
4327 :more2
4328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4329 p
4330 g
4331 s/.\{148\}//
4332 t delim
4333 ' <conf$$subs.awk | sed '
4334 /^[^""]/{
4335 N
4336 s/\n//
4337 }
4338 ' >>$CONFIG_STATUS || ac_write_fail=1
4339 rm -f conf$$subs.awk
4340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4341 _ACAWK
4342 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4343 for (key in S) S_is_set[key] = 1
4344 FS = ""
4345
4346 }
4347 {
4348 line = $ 0
4349 nfields = split(line, field, "@")
4350 substed = 0
4351 len = length(field[1])
4352 for (i = 2; i < nfields; i++) {
4353 key = field[i]
4354 keylen = length(key)
4355 if (S_is_set[key]) {
4356 value = S[key]
4357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4358 len += length(value) + length(field[++i])
4359 substed = 1
4360 } else
4361 len += 1 + keylen
4362 }
4363
4364 print line
4365 }
4366
4367 _ACAWK
4368 _ACEOF
4369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4370 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4371 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4372 else
4373 cat
4374 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4375 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4376 _ACEOF
4377
4378 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4379 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4380 # trailing colons and then remove the whole line if VPATH becomes empty
4381 # (actually we leave an empty line to preserve line numbers).
4382 if test "x$srcdir" = x.; then
4383 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4384 h
4385 s///
4386 s/^/:/
4387 s/[ ]*$/:/
4388 s/:\$(srcdir):/:/g
4389 s/:\${srcdir}:/:/g
4390 s/:@srcdir@:/:/g
4391 s/^:*//
4392 s/:*$//
4393 x
4394 s/\(=[ ]*\).*/\1/
4395 G
4396 s/\n//
4397 s/^[^=]*=[ ]*$//
4398 }'
4399 fi
4400
4401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4402 fi # test -n "$CONFIG_FILES"
4403
4404
4405 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
4406 shift
4407 for ac_tag
4408 do
4409 case $ac_tag in
4410 :[FHLC]) ac_mode=$ac_tag; continue;;
4411 esac
4412 case $ac_mode$ac_tag in
4413 :[FHL]*:*);;
4414 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4415 :[FH]-) ac_tag=-:-;;
4416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4417 esac
4418 ac_save_IFS=$IFS
4419 IFS=:
4420 set x $ac_tag
4421 IFS=$ac_save_IFS
4422 shift
4423 ac_file=$1
4424 shift
4425
4426 case $ac_mode in
4427 :L) ac_source=$1;;
4428 :[FH])
4429 ac_file_inputs=
4430 for ac_f
4431 do
4432 case $ac_f in
4433 -) ac_f="$ac_tmp/stdin";;
4434 *) # Look for the file first in the build tree, then in the source tree
4435 # (if the path is not absolute). The absolute path cannot be DOS-style,
4436 # because $ac_f cannot contain `:'.
4437 test -f "$ac_f" ||
4438 case $ac_f in
4439 [\\/$]*) false;;
4440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4441 esac ||
4442 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4443 esac
4444 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4445 as_fn_append ac_file_inputs " '$ac_f'"
4446 done
4447
4448 # Let's still pretend it is `configure' which instantiates (i.e., don't
4449 # use $as_me), people would be surprised to read:
4450 # /* config.h. Generated by config.status. */
4451 configure_input='Generated from '`
4452 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4453 `' by configure.'
4454 if test x"$ac_file" != x-; then
4455 configure_input="$ac_file. $configure_input"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4457 $as_echo "$as_me: creating $ac_file" >&6;}
4458 fi
4459 # Neutralize special characters interpreted by sed in replacement strings.
4460 case $configure_input in #(
4461 *\&* | *\|* | *\\* )
4462 ac_sed_conf_input=`$as_echo "$configure_input" |
4463 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4464 *) ac_sed_conf_input=$configure_input;;
4465 esac
4466
4467 case $ac_tag in
4468 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4470 esac
4471 ;;
4472 esac
4473
4474 ac_dir=`$as_dirname -- "$ac_file" ||
4475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4476 X"$ac_file" : 'X\(//\)[^/]' \| \
4477 X"$ac_file" : 'X\(//\)$' \| \
4478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4479 $as_echo X"$ac_file" |
4480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4481 s//\1/
4482 q
4483 }
4484 /^X\(\/\/\)[^/].*/{
4485 s//\1/
4486 q
4487 }
4488 /^X\(\/\/\)$/{
4489 s//\1/
4490 q
4491 }
4492 /^X\(\/\).*/{
4493 s//\1/
4494 q
4495 }
4496 s/.*/./; q'`
4497 as_dir="$ac_dir"; as_fn_mkdir_p
4498 ac_builddir=.
4499
4500 case "$ac_dir" in
4501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4502 *)
4503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4504 # A ".." for each directory in $ac_dir_suffix.
4505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4506 case $ac_top_builddir_sub in
4507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4509 esac ;;
4510 esac
4511 ac_abs_top_builddir=$ac_pwd
4512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4513 # for backward compatibility:
4514 ac_top_builddir=$ac_top_build_prefix
4515
4516 case $srcdir in
4517 .) # We are building in place.
4518 ac_srcdir=.
4519 ac_top_srcdir=$ac_top_builddir_sub
4520 ac_abs_top_srcdir=$ac_pwd ;;
4521 [\\/]* | ?:[\\/]* ) # Absolute name.
4522 ac_srcdir=$srcdir$ac_dir_suffix;
4523 ac_top_srcdir=$srcdir
4524 ac_abs_top_srcdir=$srcdir ;;
4525 *) # Relative name.
4526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4527 ac_top_srcdir=$ac_top_build_prefix$srcdir
4528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4529 esac
4530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4531
4532
4533 case $ac_mode in
4534 :F)
4535 #
4536 # CONFIG_FILE
4537 #
4538
4539 case $INSTALL in
4540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4542 esac
4543 ac_MKDIR_P=$MKDIR_P
4544 case $MKDIR_P in
4545 [\\/$]* | ?:[\\/]* ) ;;
4546 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
4547 esac
4548 _ACEOF
4549
4550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4551 # If the template does not know about datarootdir, expand it.
4552 # FIXME: This hack should be removed a few years after 2.60.
4553 ac_datarootdir_hack=; ac_datarootdir_seen=
4554 ac_sed_dataroot='
4555 /datarootdir/ {
4556 p
4557 q
4558 }
4559 /@datadir@/p
4560 /@docdir@/p
4561 /@infodir@/p
4562 /@localedir@/p
4563 /@mandir@/p'
4564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4565 *datarootdir*) ac_datarootdir_seen=yes;;
4566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4568 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4569 _ACEOF
4570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4571 ac_datarootdir_hack='
4572 s&@datadir@&$datadir&g
4573 s&@docdir@&$docdir&g
4574 s&@infodir@&$infodir&g
4575 s&@localedir@&$localedir&g
4576 s&@mandir@&$mandir&g
4577 s&\\\${datarootdir}&$datarootdir&g' ;;
4578 esac
4579 _ACEOF
4580
4581 # Neutralize VPATH when `$srcdir' = `.'.
4582 # Shell code in configure.ac might set extrasub.
4583 # FIXME: do we really want to maintain this feature?
4584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4585 ac_sed_extra="$ac_vpsub
4586 $extrasub
4587 _ACEOF
4588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4589 :t
4590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4591 s|@configure_input@|$ac_sed_conf_input|;t t
4592 s&@top_builddir@&$ac_top_builddir_sub&;t t
4593 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4594 s&@srcdir@&$ac_srcdir&;t t
4595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4596 s&@top_srcdir@&$ac_top_srcdir&;t t
4597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4598 s&@builddir@&$ac_builddir&;t t
4599 s&@abs_builddir@&$ac_abs_builddir&;t t
4600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4601 s&@INSTALL@&$ac_INSTALL&;t t
4602 s&@MKDIR_P@&$ac_MKDIR_P&;t t
4603 $ac_datarootdir_hack
4604 "
4605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4606 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4607
4608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4609 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4611 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4613 which seems to be undefined. Please make sure it is defined" >&5
4614 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4615 which seems to be undefined. Please make sure it is defined" >&2;}
4616
4617 rm -f "$ac_tmp/stdin"
4618 case $ac_file in
4619 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4620 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4621 esac \
4622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4623 ;;
4624
4625
4626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4627 $as_echo "$as_me: executing $ac_file commands" >&6;}
4628 ;;
4629 esac
4630
4631
4632 case $ac_file$ac_mode in
4633 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
4634 # Autoconf 2.62 quotes --file arguments for eval, but not when files
4635 # are listed without --file. Let's play safe and only enable the eval
4636 # if we detect the quoting.
4637 case $CONFIG_FILES in
4638 *\'*) eval set x "$CONFIG_FILES" ;;
4639 *) set x $CONFIG_FILES ;;
4640 esac
4641 shift
4642 for mf
4643 do
4644 # Strip MF so we end up with the name of the file.
4645 mf=`echo "$mf" | sed -e 's/:.*$//'`
4646 # Check whether this is an Automake generated Makefile or not.
4647 # We used to match only the files named `Makefile.in', but
4648 # some people rename them; so instead we look at the file content.
4649 # Grep'ing the first line is not enough: some people post-process
4650 # each Makefile.in and add a new line on top of each file to say so.
4651 # Grep'ing the whole file is not good either: AIX grep has a line
4652 # limit of 2048, but all sed's we know have understand at least 4000.
4653 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
4654 dirpart=`$as_dirname -- "$mf" ||
4655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4656 X"$mf" : 'X\(//\)[^/]' \| \
4657 X"$mf" : 'X\(//\)$' \| \
4658 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
4659 $as_echo X"$mf" |
4660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4661 s//\1/
4662 q
4663 }
4664 /^X\(\/\/\)[^/].*/{
4665 s//\1/
4666 q
4667 }
4668 /^X\(\/\/\)$/{
4669 s//\1/
4670 q
4671 }
4672 /^X\(\/\).*/{
4673 s//\1/
4674 q
4675 }
4676 s/.*/./; q'`
4677 else
4678 continue
4679 fi
4680 # Extract the definition of DEPDIR, am__include, and am__quote
4681 # from the Makefile without running `make'.
4682 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4683 test -z "$DEPDIR" && continue
4684 am__include=`sed -n 's/^am__include = //p' < "$mf"`
4685 test -z "am__include" && continue
4686 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4687 # When using ansi2knr, U may be empty or an underscore; expand it
4688 U=`sed -n 's/^U = //p' < "$mf"`
4689 # Find all dependency output files, they are included files with
4690 # $(DEPDIR) in their names. We invoke sed twice because it is the
4691 # simplest approach to changing $(DEPDIR) to its actual value in the
4692 # expansion.
4693 for file in `sed -n "
4694 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4695 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4696 # Make sure the directory exists.
4697 test -f "$dirpart/$file" && continue
4698 fdir=`$as_dirname -- "$file" ||
4699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4700 X"$file" : 'X\(//\)[^/]' \| \
4701 X"$file" : 'X\(//\)$' \| \
4702 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
4703 $as_echo X"$file" |
4704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4705 s//\1/
4706 q
4707 }
4708 /^X\(\/\/\)[^/].*/{
4709 s//\1/
4710 q
4711 }
4712 /^X\(\/\/\)$/{
4713 s//\1/
4714 q
4715 }
4716 /^X\(\/\).*/{
4717 s//\1/
4718 q
4719 }
4720 s/.*/./; q'`
4721 as_dir=$dirpart/$fdir; as_fn_mkdir_p
4722 # echo "creating $dirpart/$file"
4723 echo '# dummy' > "$dirpart/$file"
4724 done
4725 done
4726 }
4727 ;;
4728
4729 esac
4730 done # for ac_tag
4731
4732
4733 as_fn_exit 0
4734 _ACEOF
4735 ac_clean_files=$ac_clean_files_save
4736
4737 test $ac_write_fail = 0 ||
4738 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4739
4740
4741 # configure is writing to config.log, and then calls config.status.
4742 # config.status does its own redirection, appending to config.log.
4743 # Unfortunately, on DOS this fails, as config.log is still kept open
4744 # by configure, so config.status won't be able to write to it; its
4745 # output is simply discarded. So we exec the FD to /dev/null,
4746 # effectively closing config.log, so it can be properly (re)opened and
4747 # appended to by config.status. When coming back to configure, we
4748 # need to make the FD available again.
4749 if test "$no_create" != yes; then
4750 ac_cs_success=:
4751 ac_config_status_args=
4752 test "$silent" = yes &&
4753 ac_config_status_args="$ac_config_status_args --quiet"
4754 exec 5>/dev/null
4755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4756 exec 5>>config.log
4757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4758 # would make configure fail if this is the last instruction.
4759 $ac_cs_success || as_fn_exit 1
4760 fi
4761 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4763 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4764 fi
4765
0
1 AC_PREREQ(2.59)
2 AC_INIT([newlib],[NEWLIB_VERSION])
3 AC_CONFIG_SRCDIR([Makefile.am])
4
5 AC_CONFIG_AUX_DIR(../../../..)
6
7 NEWLIB_CONFIGURE(../../..)
8
9 AC_CONFIG_FILES([Makefile])
10 AC_OUTPUT
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include <math.h>
27
28 /* GCC will not generate code calling this function, since the corresponding
29 builtin will produce code that uses simple ops only. In order to support
30 linking against TI CLPRU objects, though, provide the function mandated
31 by TI ABI. */
32 int __pruabi_fpclassify(double a)
33 {
34 return fpclassify(a);
35 }
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include <math.h>
27
28 /* GCC will not generate code calling this function, since the corresponding
29 builtin will produce code that uses simple ops only. In order to support
30 linking against TI CLPRU objects, though, provide the function mandated
31 by TI ABI. */
32 int __pruabi_fpclassifyf(float a)
33 {
34 return fpclassifyf(a);
35 }
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include <math.h>
27
28 /* GCC will not generate code calling this function, since the corresponding
29 builtin will produce code that uses simple ops only. In order to support
30 linking against TI CLPRU objects, though, provide the function mandated
31 by TI ABI. */
32 int __pruabi_isfinite(double a)
33 {
34 return isfinite(a);
35 }
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include <math.h>
27
28 /* GCC will not generate code calling this function, since the corresponding
29 builtin will produce code that uses simple ops only. In order to support
30 linking against TI CLPRU objects, though, provide the function mandated
31 by TI ABI. */
32 int __pruabi_isfinitef(float a)
33 {
34 return isfinite(a);
35 }
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include <math.h>
27
28 /* GCC will not generate code calling this function, since the corresponding
29 builtin will produce code that uses simple ops only. In order to support
30 linking against TI CLPRU objects, though, provide the function mandated
31 by TI ABI. */
32 int __pruabi_isinf(double a)
33 {
34 return isinf(a);
35 }
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include <math.h>
27
28 /* GCC will not generate code calling this function, since the corresponding
29 builtin will produce code that uses simple ops only. In order to support
30 linking against TI CLPRU objects, though, provide the function mandated
31 by TI ABI. */
32 int __pruabi_isinff(float a)
33 {
34 return isinf(a);
35 }
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include <math.h>
27
28 /* GCC will not generate code calling this function, since the corresponding
29 builtin will produce code that uses simple ops only. In order to support
30 linking against TI CLPRU objects, though, provide the function mandated
31 by TI ABI. */
32 int __pruabi_isnan(double a)
33 {
34 return isnan(a);
35 }
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include <math.h>
27
28 /* GCC will not generate code calling this function, since the corresponding
29 builtin will produce code that uses simple ops only. In order to support
30 linking against TI CLPRU objects, though, provide the function mandated
31 by TI ABI. */
32 int __pruabi_isnanf(float a)
33 {
34 return isnan(a);
35 }
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include <math.h>
27
28 /* GCC will not generate code calling this function, since the corresponding
29 builtin will produce code that uses simple ops only. In order to support
30 linking against TI CLPRU objects, though, provide the function mandated
31 by TI ABI. */
32 int __pruabi_isnormal(double a)
33 {
34 return isnormal(a);
35 }
0 /* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
1 *
2 * Copyright (c) 2018-2019 Dimitar Dimitrov <dimitar@dinux.eu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include <math.h>
27
28 /* GCC will not generate code calling this function, since the corresponding
29 builtin will produce code that uses simple ops only. In order to support
30 linking against TI CLPRU objects, though, provide the function mandated
31 by TI ABI. */
32 int __pruabi_isnormalf(float a)
33 {
34 return isnormal(a);
35 }
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.1.0.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
555555 # Identity of this package.
556556 PACKAGE_NAME='newlib'
557557 PACKAGE_TARNAME='newlib'
558 PACKAGE_VERSION='3.1.0'
559 PACKAGE_STRING='newlib 3.1.0'
558 PACKAGE_VERSION='3.3.0'
559 PACKAGE_STRING='newlib 3.3.0'
560560 PACKAGE_BUGREPORT=''
561561 PACKAGE_URL=''
562562
12391239 # Omit some internal or obsolete options to make the list less imposing.
12401240 # This message is too long to be a string in the A/UX 3.1 sh.
12411241 cat <<_ACEOF
1242 \`configure' configures newlib 3.1.0 to adapt to many kinds of systems.
1242 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
12431243
12441244 Usage: $0 [OPTION]... [VAR=VALUE]...
12451245
13091309
13101310 if test -n "$ac_init_help"; then
13111311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of newlib 3.1.0:";;
1312 short | recursive ) echo "Configuration of newlib 3.3.0:";;
13131313 esac
13141314 cat <<\_ACEOF
13151315
14011401 test -n "$ac_init_help" && exit $ac_status
14021402 if $ac_init_version; then
14031403 cat <<\_ACEOF
1404 newlib configure 3.1.0
1404 newlib configure 3.3.0
14051405 generated by GNU Autoconf 2.68
14061406
14071407 Copyright (C) 2010 Free Software Foundation, Inc.
14561456 This file contains any messages produced by compilers while
14571457 running configure, to aid debugging if configure makes a mistake.
14581458
1459 It was created by newlib $as_me 3.1.0, which was
1459 It was created by newlib $as_me 3.3.0, which was
14601460 generated by GNU Autoconf 2.68. Invocation command line was
14611461
14621462 $ $0 $@
25402540
25412541 # Define the identity of the package.
25422542 PACKAGE='newlib'
2543 VERSION='3.1.0'
2543 VERSION='3.3.0'
25442544
25452545
25462546 # Some tools Automake needs.
40244024 # report actual input values of CONFIG_FILES etc. instead of their
40254025 # values after options handling.
40264026 ac_log="
4027 This file was extended by newlib $as_me 3.1.0, which was
4027 This file was extended by newlib $as_me 3.3.0, which was
40284028 generated by GNU Autoconf 2.68. Invocation command line was
40294029
40304030 CONFIG_FILES = $CONFIG_FILES
40814081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40824082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40834083 ac_cs_version="\\
4084 newlib config.status 3.1.0
4084 newlib config.status 3.3.0
40854085 configured by $0, generated by GNU Autoconf 2.68,
40864086 with options \\"\$ac_cs_config\\"
40874087
0 ## Process this file with automake to generate Makefile.in
1
2 INCLUDES = -I $(newlib_basedir)/../newlib/libm/common $(NEWLIB_CFLAGS) \
3 $(CROSS_CFLAGS) $(TARGET_CFLAGS)
4
5 LIB_SOURCES = \
6 feclearexcept.c fegetenv.c fegetexceptflag.c fegetround.c \
7 feholdexcept.c fenv.c feraiseexcept.c fesetenv.c fesetexceptflag.c \
8 fesetround.c fetestexcept.c feupdateenv.c
9
10 libx86_64_la_LDFLAGS = -Xcompiler -nostdlib
11
12 if USE_LIBTOOL
13 noinst_LTLIBRARIES = libx86_64.la
14 libx86_64_la_SOURCES = $(LIB_SOURCES)
15 noinst_DATA = objectlist.awk.in
16 else
17 noinst_LIBRARIES = lib.a
18 lib_a_SOURCES = $(LIB_SOURCES)
19 lib_a_CFLAGS = $(AM_CFLAGS)
20 lib_a_CCASFLAGS = $(AM_CCASFLAGS)
21 noinst_DATA =
22 endif # USE_LIBTOOL
23
24 include $(srcdir)/../../../Makefile.shared
25
26 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
27 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
0 # Makefile.in generated by automake 1.11.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17
18
19 VPATH = @srcdir@
20 am__make_dryrun = \
21 { \
22 am__dry=no; \
23 case $$MAKEFLAGS in \
24 *\\[\ \ ]*) \
25 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
26 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
27 *) \
28 for am__flg in $$MAKEFLAGS; do \
29 case $$am__flg in \
30 *=*|--*) ;; \
31 *n*) am__dry=yes; break;; \
32 esac; \
33 done;; \
34 esac; \
35 test $$am__dry = yes; \
36 }
37 pkgdatadir = $(datadir)/@PACKAGE@
38 pkgincludedir = $(includedir)/@PACKAGE@
39 pkglibdir = $(libdir)/@PACKAGE@
40 pkglibexecdir = $(libexecdir)/@PACKAGE@
41 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
42 install_sh_DATA = $(install_sh) -c -m 644
43 install_sh_PROGRAM = $(install_sh) -c
44 install_sh_SCRIPT = $(install_sh) -c
45 INSTALL_HEADER = $(INSTALL_DATA)
46 transform = $(program_transform_name)
47 NORMAL_INSTALL = :
48 PRE_INSTALL = :
49 POST_INSTALL = :
50 NORMAL_UNINSTALL = :
51 PRE_UNINSTALL = :
52 POST_UNINSTALL = :
53 build_triplet = @build@
54 host_triplet = @host@
55 DIST_COMMON = $(srcdir)/../../../Makefile.shared $(srcdir)/Makefile.in \
56 $(srcdir)/Makefile.am $(top_srcdir)/configure \
57 $(am__configure_deps) $(srcdir)/../../../../mkinstalldirs
58 subdir = .
59 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
60 am__aclocal_m4_deps = $(top_srcdir)/../../../../libtool.m4 \
61 $(top_srcdir)/../../../../ltoptions.m4 \
62 $(top_srcdir)/../../../../ltsugar.m4 \
63 $(top_srcdir)/../../../../ltversion.m4 \
64 $(top_srcdir)/../../../../lt~obsolete.m4 \
65 $(top_srcdir)/../../../acinclude.m4 $(top_srcdir)/configure.in
66 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
67 $(ACLOCAL_M4)
68 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
69 configure.lineno config.status.lineno
70 mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
71 CONFIG_CLEAN_FILES =
72 CONFIG_CLEAN_VPATH_FILES =
73 LIBRARIES = $(noinst_LIBRARIES)
74 ARFLAGS = cru
75 lib_a_AR = $(AR) $(ARFLAGS)
76 lib_a_LIBADD =
77 am__objects_1 = lib_a-feclearexcept.$(OBJEXT) lib_a-fegetenv.$(OBJEXT) \
78 lib_a-fegetexceptflag.$(OBJEXT) lib_a-fegetround.$(OBJEXT) \
79 lib_a-feholdexcept.$(OBJEXT) lib_a-fenv.$(OBJEXT) \
80 lib_a-feraiseexcept.$(OBJEXT) lib_a-fesetenv.$(OBJEXT) \
81 lib_a-fesetexceptflag.$(OBJEXT) lib_a-fesetround.$(OBJEXT) \
82 lib_a-fetestexcept.$(OBJEXT) lib_a-feupdateenv.$(OBJEXT)
83 @USE_LIBTOOL_FALSE@am_lib_a_OBJECTS = $(am__objects_1)
84 lib_a_OBJECTS = $(am_lib_a_OBJECTS)
85 LTLIBRARIES = $(noinst_LTLIBRARIES)
86 libx86_64_la_LIBADD =
87 am__objects_2 = feclearexcept.lo fegetenv.lo fegetexceptflag.lo \
88 fegetround.lo feholdexcept.lo fenv.lo feraiseexcept.lo \
89 fesetenv.lo fesetexceptflag.lo fesetround.lo fetestexcept.lo \
90 feupdateenv.lo
91 @USE_LIBTOOL_TRUE@am_libx86_64_la_OBJECTS = $(am__objects_2)
92 libx86_64_la_OBJECTS = $(am_libx86_64_la_OBJECTS)
93 libx86_64_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
94 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
95 $(libx86_64_la_LDFLAGS) $(LDFLAGS) -o $@
96 @USE_LIBTOOL_TRUE@am_libx86_64_la_rpath =
97 DEFAULT_INCLUDES = -I.@am__isrc@
98 depcomp =
99 am__depfiles_maybe =
100 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
101 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
102 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
103 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
104 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
105 CCLD = $(CC)
106 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
107 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
108 $(LDFLAGS) -o $@
109 SOURCES = $(lib_a_SOURCES) $(libx86_64_la_SOURCES)
110 am__can_run_installinfo = \
111 case $$AM_UPDATE_INFO_DIR in \
112 n|no|NO) false;; \
113 *) (install-info --version) >/dev/null 2>&1;; \
114 esac
115 DATA = $(noinst_DATA)
116 ETAGS = etags
117 CTAGS = ctags
118 ACLOCAL = @ACLOCAL@
119 AMTAR = @AMTAR@
120 AR = @AR@
121 AS = @AS@
122 AUTOCONF = @AUTOCONF@
123 AUTOHEADER = @AUTOHEADER@
124 AUTOMAKE = @AUTOMAKE@
125 AWK = @AWK@
126 CC = @CC@
127 CCAS = @CCAS@
128 CCASFLAGS = @CCASFLAGS@
129 CCDEPMODE = @CCDEPMODE@
130 CFLAGS = @CFLAGS@
131 CPP = @CPP@
132 CPPFLAGS = @CPPFLAGS@
133 CYGPATH_W = @CYGPATH_W@
134 DEFS = @DEFS@
135 DEPDIR = @DEPDIR@
136 DLLTOOL = @DLLTOOL@
137 DSYMUTIL = @DSYMUTIL@
138 DUMPBIN = @DUMPBIN@
139 ECHO_C = @ECHO_C@
140 ECHO_N = @ECHO_N@
141 ECHO_T = @ECHO_T@
142 EGREP = @EGREP@
143 EXEEXT = @EXEEXT@
144 FGREP = @FGREP@
145 GREP = @GREP@
146 INSTALL = @INSTALL@
147 INSTALL_DATA = @INSTALL_DATA@
148 INSTALL_PROGRAM = @INSTALL_PROGRAM@
149 INSTALL_SCRIPT = @INSTALL_SCRIPT@
150 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
151 LD = @LD@
152 LDFLAGS = @LDFLAGS@
153 LIBOBJS = @LIBOBJS@
154 LIBS = @LIBS@
155 LIBTOOL = @LIBTOOL@
156 LIPO = @LIPO@
157 LN_S = @LN_S@
158 LTLIBOBJS = @LTLIBOBJS@
159 MAINT = @MAINT@
160 MAKEINFO = @MAKEINFO@
161 MKDIR_P = @MKDIR_P@
162 NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
163 NM = @NM@
164 NMEDIT = @NMEDIT@
165 NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
166 OBJDUMP = @OBJDUMP@
167 OBJEXT = @OBJEXT@
168 OTOOL = @OTOOL@
169 OTOOL64 = @OTOOL64@
170 PACKAGE = @PACKAGE@
171 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
172 PACKAGE_NAME = @PACKAGE_NAME@
173 PACKAGE_STRING = @PACKAGE_STRING@
174 PACKAGE_TARNAME = @PACKAGE_TARNAME@
175 PACKAGE_URL = @PACKAGE_URL@
176 PACKAGE_VERSION = @PACKAGE_VERSION@
177 PATH_SEPARATOR = @PATH_SEPARATOR@
178 RANLIB = @RANLIB@
179 READELF = @READELF@
180 SED = @SED@
181 SET_MAKE = @SET_MAKE@
182 SHELL = @SHELL@
183 STRIP = @STRIP@
184 VERSION = @VERSION@
185 abs_builddir = @abs_builddir@
186 abs_srcdir = @abs_srcdir@
187 abs_top_builddir = @abs_top_builddir@
188 abs_top_srcdir = @abs_top_srcdir@
189 ac_ct_CC = @ac_ct_CC@
190 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
191 aext = @aext@
192 am__include = @am__include@
193 am__leading_dot = @am__leading_dot@
194 am__quote = @am__quote@
195 am__tar = @am__tar@
196 am__untar = @am__untar@
197 bindir = @bindir@
198 build = @build@
199 build_alias = @build_alias@
200 build_cpu = @build_cpu@
201 build_os = @build_os@
202 build_vendor = @build_vendor@
203 builddir = @builddir@
204 datadir = @datadir@
205 datarootdir = @datarootdir@
206 docdir = @docdir@
207 dvidir = @dvidir@
208 exec_prefix = @exec_prefix@
209 host = @host@
210 host_alias = @host_alias@
211 host_cpu = @host_cpu@
212 host_os = @host_os@
213 host_vendor = @host_vendor@
214 htmldir = @htmldir@
215 includedir = @includedir@
216 infodir = @infodir@
217 install_sh = @install_sh@
218 libdir = @libdir@
219 libexecdir = @libexecdir@
220 libm_machine_dir = @libm_machine_dir@
221 localedir = @localedir@
222 localstatedir = @localstatedir@
223 lpfx = @lpfx@
224 machine_dir = @machine_dir@
225 mandir = @mandir@
226 mkdir_p = @mkdir_p@
227 newlib_basedir = @newlib_basedir@
228 oext = @oext@
229 oldincludedir = @oldincludedir@
230 pdfdir = @pdfdir@
231 prefix = @prefix@
232 program_transform_name = @program_transform_name@
233 psdir = @psdir@
234 sbindir = @sbindir@
235 sharedstatedir = @sharedstatedir@
236 srcdir = @srcdir@
237 sys_dir = @sys_dir@
238 sysconfdir = @sysconfdir@
239 target_alias = @target_alias@
240 top_build_prefix = @top_build_prefix@
241 top_builddir = @top_builddir@
242 top_srcdir = @top_srcdir@
243 INCLUDES = -I $(newlib_basedir)/../newlib/libm/common $(NEWLIB_CFLAGS) \
244 $(CROSS_CFLAGS) $(TARGET_CFLAGS)
245
246 LIB_SOURCES = \
247 feclearexcept.c fegetenv.c fegetexceptflag.c fegetround.c \
248 feholdexcept.c fenv.c feraiseexcept.c fesetenv.c fesetexceptflag.c \
249 fesetround.c fetestexcept.c feupdateenv.c
250
251 libx86_64_la_LDFLAGS = -Xcompiler -nostdlib
252 @USE_LIBTOOL_TRUE@noinst_LTLIBRARIES = libx86_64.la
253 @USE_LIBTOOL_TRUE@libx86_64_la_SOURCES = $(LIB_SOURCES)
254 @USE_LIBTOOL_FALSE@noinst_DATA =
255 @USE_LIBTOOL_TRUE@noinst_DATA = objectlist.awk.in
256 @USE_LIBTOOL_FALSE@noinst_LIBRARIES = lib.a
257 @USE_LIBTOOL_FALSE@lib_a_SOURCES = $(LIB_SOURCES)
258 @USE_LIBTOOL_FALSE@lib_a_CFLAGS = $(AM_CFLAGS)
259 @USE_LIBTOOL_FALSE@lib_a_CCASFLAGS = $(AM_CCASFLAGS)
260
261 #
262 # documentation rules
263 #
264 SUFFIXES = .def .xml
265 CHEW = ${top_builddir}/../doc/makedoc -f $(top_srcdir)/../doc/doc.str
266 DOCBOOK_CHEW = ${top_srcdir}/../doc/makedocbook.py
267 DOCBOOK_OUT_FILES = $(CHEWOUT_FILES:.def=.xml)
268 DOCBOOK_CHAPTERS = $(CHAPTERS:.tex=.xml)
269 CLEANFILES = $(CHEWOUT_FILES) $(DOCBOOK_OUT_FILES)
270 ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
271 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
272 all: all-am
273
274 .SUFFIXES:
275 .SUFFIXES: .def .xml .c .lo .o .obj
276 am--refresh: Makefile
277 @:
278 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../../Makefile.shared $(am__configure_deps)
279 @for dep in $?; do \
280 case '$(am__configure_deps)' in \
281 *$$dep*) \
282 echo ' cd $(srcdir) && $(AUTOMAKE) --cygnus'; \
283 $(am__cd) $(srcdir) && $(AUTOMAKE) --cygnus \
284 && exit 0; \
285 exit 1;; \
286 esac; \
287 done; \
288 echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile'; \
289 $(am__cd) $(top_srcdir) && \
290 $(AUTOMAKE) --cygnus Makefile
291 .PRECIOUS: Makefile
292 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
293 @case '$?' in \
294 *config.status*) \
295 echo ' $(SHELL) ./config.status'; \
296 $(SHELL) ./config.status;; \
297 *) \
298 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
299 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
300 esac;
301 $(srcdir)/../../../Makefile.shared:
302
303 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
304 $(SHELL) ./config.status --recheck
305
306 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
307 $(am__cd) $(srcdir) && $(AUTOCONF)
308 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
309 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
310 $(am__aclocal_m4_deps):
311
312 clean-noinstLIBRARIES:
313 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
314 lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES)
315 -rm -f lib.a
316 $(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
317 $(RANLIB) lib.a
318
319 clean-noinstLTLIBRARIES:
320 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
321 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
322 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
323 test "$$dir" != "$$p" || dir=.; \
324 echo "rm -f \"$${dir}/so_locations\""; \
325 rm -f "$${dir}/so_locations"; \
326 done
327 libx86_64.la: $(libx86_64_la_OBJECTS) $(libx86_64_la_DEPENDENCIES) $(EXTRA_libx86_64_la_DEPENDENCIES)
328 $(libx86_64_la_LINK) $(am_libx86_64_la_rpath) $(libx86_64_la_OBJECTS) $(libx86_64_la_LIBADD) $(LIBS)
329
330 mostlyclean-compile:
331 -rm -f *.$(OBJEXT)
332
333 distclean-compile:
334 -rm -f *.tab.c
335
336 .c.o:
337 $(COMPILE) -c $<
338
339 .c.obj:
340 $(COMPILE) -c `$(CYGPATH_W) '$<'`
341
342 .c.lo:
343 $(LTCOMPILE) -c -o $@ $<
344
345 lib_a-feclearexcept.o: feclearexcept.c
346 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feclearexcept.o `test -f 'feclearexcept.c' || echo '$(srcdir)/'`feclearexcept.c
347
348 lib_a-feclearexcept.obj: feclearexcept.c
349 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feclearexcept.obj `if test -f 'feclearexcept.c'; then $(CYGPATH_W) 'feclearexcept.c'; else $(CYGPATH_W) '$(srcdir)/feclearexcept.c'; fi`
350
351 lib_a-fegetenv.o: fegetenv.c
352 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetenv.o `test -f 'fegetenv.c' || echo '$(srcdir)/'`fegetenv.c
353
354 lib_a-fegetenv.obj: fegetenv.c
355 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetenv.obj `if test -f 'fegetenv.c'; then $(CYGPATH_W) 'fegetenv.c'; else $(CYGPATH_W) '$(srcdir)/fegetenv.c'; fi`
356
357 lib_a-fegetexceptflag.o: fegetexceptflag.c
358 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetexceptflag.o `test -f 'fegetexceptflag.c' || echo '$(srcdir)/'`fegetexceptflag.c
359
360 lib_a-fegetexceptflag.obj: fegetexceptflag.c
361 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetexceptflag.obj `if test -f 'fegetexceptflag.c'; then $(CYGPATH_W) 'fegetexceptflag.c'; else $(CYGPATH_W) '$(srcdir)/fegetexceptflag.c'; fi`
362
363 lib_a-fegetround.o: fegetround.c
364 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetround.o `test -f 'fegetround.c' || echo '$(srcdir)/'`fegetround.c
365
366 lib_a-fegetround.obj: fegetround.c
367 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fegetround.obj `if test -f 'fegetround.c'; then $(CYGPATH_W) 'fegetround.c'; else $(CYGPATH_W) '$(srcdir)/fegetround.c'; fi`
368
369 lib_a-feholdexcept.o: feholdexcept.c
370 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feholdexcept.o `test -f 'feholdexcept.c' || echo '$(srcdir)/'`feholdexcept.c
371
372 lib_a-feholdexcept.obj: feholdexcept.c
373 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feholdexcept.obj `if test -f 'feholdexcept.c'; then $(CYGPATH_W) 'feholdexcept.c'; else $(CYGPATH_W) '$(srcdir)/feholdexcept.c'; fi`
374
375 lib_a-fenv.o: fenv.c
376 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fenv.o `test -f 'fenv.c' || echo '$(srcdir)/'`fenv.c
377
378 lib_a-fenv.obj: fenv.c
379 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fenv.obj `if test -f 'fenv.c'; then $(CYGPATH_W) 'fenv.c'; else $(CYGPATH_W) '$(srcdir)/fenv.c'; fi`
380
381 lib_a-feraiseexcept.o: feraiseexcept.c
382 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feraiseexcept.o `test -f 'feraiseexcept.c' || echo '$(srcdir)/'`feraiseexcept.c
383
384 lib_a-feraiseexcept.obj: feraiseexcept.c
385 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feraiseexcept.obj `if test -f 'feraiseexcept.c'; then $(CYGPATH_W) 'feraiseexcept.c'; else $(CYGPATH_W) '$(srcdir)/feraiseexcept.c'; fi`
386
387 lib_a-fesetenv.o: fesetenv.c
388 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetenv.o `test -f 'fesetenv.c' || echo '$(srcdir)/'`fesetenv.c
389
390 lib_a-fesetenv.obj: fesetenv.c
391 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetenv.obj `if test -f 'fesetenv.c'; then $(CYGPATH_W) 'fesetenv.c'; else $(CYGPATH_W) '$(srcdir)/fesetenv.c'; fi`
392
393 lib_a-fesetexceptflag.o: fesetexceptflag.c
394 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetexceptflag.o `test -f 'fesetexceptflag.c' || echo '$(srcdir)/'`fesetexceptflag.c
395
396 lib_a-fesetexceptflag.obj: fesetexceptflag.c
397 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetexceptflag.obj `if test -f 'fesetexceptflag.c'; then $(CYGPATH_W) 'fesetexceptflag.c'; else $(CYGPATH_W) '$(srcdir)/fesetexceptflag.c'; fi`
398
399 lib_a-fesetround.o: fesetround.c
400 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetround.o `test -f 'fesetround.c' || echo '$(srcdir)/'`fesetround.c
401
402 lib_a-fesetround.obj: fesetround.c
403 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fesetround.obj `if test -f 'fesetround.c'; then $(CYGPATH_W) 'fesetround.c'; else $(CYGPATH_W) '$(srcdir)/fesetround.c'; fi`
404
405 lib_a-fetestexcept.o: fetestexcept.c
406 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fetestexcept.o `test -f 'fetestexcept.c' || echo '$(srcdir)/'`fetestexcept.c
407
408 lib_a-fetestexcept.obj: fetestexcept.c
409 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fetestexcept.obj `if test -f 'fetestexcept.c'; then $(CYGPATH_W) 'fetestexcept.c'; else $(CYGPATH_W) '$(srcdir)/fetestexcept.c'; fi`
410
411 lib_a-feupdateenv.o: feupdateenv.c
412 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feupdateenv.o `test -f 'feupdateenv.c' || echo '$(srcdir)/'`feupdateenv.c
413
414 lib_a-feupdateenv.obj: feupdateenv.c
415 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-feupdateenv.obj `if test -f 'feupdateenv.c'; then $(CYGPATH_W) 'feupdateenv.c'; else $(CYGPATH_W) '$(srcdir)/feupdateenv.c'; fi`
416
417 mostlyclean-libtool:
418 -rm -f *.lo
419
420 clean-libtool:
421 -rm -rf .libs _libs
422
423 distclean-libtool:
424 -rm -f libtool config.lt
425
426 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
427 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
428 unique=`for i in $$list; do \
429 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
430 done | \
431 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
432 END { if (nonempty) { for (i in files) print i; }; }'`; \
433 mkid -fID $$unique
434 tags: TAGS
435
436 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
437 $(TAGS_FILES) $(LISP)
438 set x; \
439 here=`pwd`; \
440 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
441 unique=`for i in $$list; do \
442 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
443 done | \
444 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
445 END { if (nonempty) { for (i in files) print i; }; }'`; \
446 shift; \
447 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
448 test -n "$$unique" || unique=$$empty_fix; \
449 if test $$# -gt 0; then \
450 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
451 "$$@" $$unique; \
452 else \
453 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
454 $$unique; \
455 fi; \
456 fi
457 ctags: CTAGS
458 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
459 $(TAGS_FILES) $(LISP)
460 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
461 unique=`for i in $$list; do \
462 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
463 done | \
464 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
465 END { if (nonempty) { for (i in files) print i; }; }'`; \
466 test -z "$(CTAGS_ARGS)$$unique" \
467 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
468 $$unique
469
470 GTAGS:
471 here=`$(am__cd) $(top_builddir) && pwd` \
472 && $(am__cd) $(top_srcdir) \
473 && gtags -i $(GTAGS_ARGS) "$$here"
474
475 distclean-tags:
476 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
477 check-am:
478 check: check-am
479 all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA)
480 installdirs:
481 install: install-am
482 install-exec: install-exec-am
483 install-data: install-data-am
484 uninstall: uninstall-am
485
486 install-am: all-am
487 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
488
489 installcheck: installcheck-am
490 install-strip:
491 if test -z '$(STRIP)'; then \
492 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
493 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
494 install; \
495 else \
496 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
497 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
498 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
499 fi
500 mostlyclean-generic:
501
502 clean-generic:
503 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
504
505 distclean-generic:
506 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
507 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
508
509 maintainer-clean-generic:
510 @echo "This command is intended for maintainers to use"
511 @echo "it deletes files that may require special tools to rebuild."
512 clean: clean-am
513
514 clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
515 clean-noinstLTLIBRARIES mostlyclean-am
516
517 distclean: distclean-am
518 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
519 -rm -f Makefile
520 distclean-am: clean-am distclean-compile distclean-generic \
521 distclean-libtool distclean-tags
522
523 dvi: dvi-am
524
525 dvi-am:
526
527 html: html-am
528
529 html-am:
530
531 info: info-am
532
533 info-am:
534
535 install-data-am:
536
537 install-dvi: install-dvi-am
538
539 install-dvi-am:
540
541 install-exec-am:
542
543 install-html: install-html-am
544
545 install-html-am:
546
547 install-info: install-info-am
548
549 install-info-am:
550
551 install-man:
552
553 install-pdf: install-pdf-am
554
555 install-pdf-am:
556
557 install-ps: install-ps-am
558
559 install-ps-am:
560
561 installcheck-am:
562
563 maintainer-clean: maintainer-clean-am
564 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
565 -rm -rf $(top_srcdir)/autom4te.cache
566 -rm -f Makefile
567 maintainer-clean-am: distclean-am maintainer-clean-generic
568
569 mostlyclean: mostlyclean-am
570
571 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
572 mostlyclean-libtool
573
574 pdf: pdf-am
575
576 pdf-am:
577
578 ps: ps-am
579
580 ps-am:
581
582 uninstall-am:
583
584 .MAKE: install-am install-strip
585
586 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
587 clean-generic clean-libtool clean-noinstLIBRARIES \
588 clean-noinstLTLIBRARIES ctags distclean distclean-compile \
589 distclean-generic distclean-libtool distclean-tags dvi dvi-am \
590 html html-am info info-am install install-am install-data \
591 install-data-am install-dvi install-dvi-am install-exec \
592 install-exec-am install-html install-html-am install-info \
593 install-info-am install-man install-pdf install-pdf-am \
594 install-ps install-ps-am install-strip installcheck \
595 installcheck-am installdirs maintainer-clean \
596 maintainer-clean-generic mostlyclean mostlyclean-compile \
597 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
598 tags uninstall uninstall-am
599
600 objectlist.awk.in: $(noinst_LTLIBRARIES)
601 -rm -f objectlist.awk.in
602 for i in `ls *.lo` ; \
603 do \
604 echo $$i `pwd`/$$i >> objectlist.awk.in ; \
605 done
606
607 .c.def:
608 $(CHEW) < $< > $*.def || ( rm $*.def && false )
609 @touch stmp-def
610
611 TARGETDOC ?= ../tmp.texi
612
613 doc: $(CHEWOUT_FILES)
614 for chapter in $(CHAPTERS) ; \
615 do \
616 cat $(srcdir)/$$chapter >> $(TARGETDOC) ; \
617 done
618
619 .c.xml:
620 $(DOCBOOK_CHEW) < $< > $*.xml || ( rm $*.xml && false )
621 @touch stmp-xml
622
623 docbook: $(DOCBOOK_OUT_FILES)
624 for chapter in $(DOCBOOK_CHAPTERS) ; \
625 do \
626 ${top_srcdir}/../doc/chapter-texi2docbook.py <$(srcdir)/$${chapter%.xml}.tex >../$$chapter ; \
627 done
628
629 # Tell versions [3.59,3.63) of GNU make to not export all variables.
630 # Otherwise a system limit (for SysV at least) may be exceeded.
631 .NOEXPORT:
0 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
23 # Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # serial 1
30
31 # AM_AUTOMAKE_VERSION(VERSION)
32 # ----------------------------
33 # Automake X.Y traces this macro to ensure aclocal.m4 has been
34 # generated from the m4 files accompanying Automake X.Y.
35 # (This private macro should not be called outside this file.)
36 AC_DEFUN([AM_AUTOMAKE_VERSION],
37 [am__api_version='1.11'
38 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
39 dnl require some minimum version. Point them to the right macro.
40 m4_if([$1], [1.11.6], [],
41 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
42 ])
43
44 # _AM_AUTOCONF_VERSION(VERSION)
45 # -----------------------------
46 # aclocal traces this macro to find the Autoconf version.
47 # This is a private macro too. Using m4_define simplifies
48 # the logic in aclocal, which can simply ignore this definition.
49 m4_define([_AM_AUTOCONF_VERSION], [])
50
51 # AM_SET_CURRENT_AUTOMAKE_VERSION
52 # -------------------------------
53 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
54 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
55 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
56 [AM_AUTOMAKE_VERSION([1.11.6])dnl
57 m4_ifndef([AC_AUTOCONF_VERSION],
58 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
59 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
60
61 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
62
63 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
64 #
65 # This file is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
68
69 # serial 1
70
71 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
72 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
73 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
74 #
75 # Of course, Automake must honor this variable whenever it calls a
76 # tool from the auxiliary directory. The problem is that $srcdir (and
77 # therefore $ac_aux_dir as well) can be either absolute or relative,
78 # depending on how configure is run. This is pretty annoying, since
79 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
80 # source directory, any form will work fine, but in subdirectories a
81 # relative path needs to be adjusted first.
82 #
83 # $ac_aux_dir/missing
84 # fails when called from a subdirectory if $ac_aux_dir is relative
85 # $top_srcdir/$ac_aux_dir/missing
86 # fails if $ac_aux_dir is absolute,
87 # fails when called from a subdirectory in a VPATH build with
88 # a relative $ac_aux_dir
89 #
90 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
91 # are both prefixed by $srcdir. In an in-source build this is usually
92 # harmless because $srcdir is `.', but things will broke when you
93 # start a VPATH build or use an absolute $srcdir.
94 #
95 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
96 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
97 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
98 # and then we would define $MISSING as
99 # MISSING="\${SHELL} $am_aux_dir/missing"
100 # This will work as long as MISSING is not called from configure, because
101 # unfortunately $(top_srcdir) has no meaning in configure.
102 # However there are other variables, like CC, which are often used in
103 # configure, and could therefore not use this "fixed" $ac_aux_dir.
104 #
105 # Another solution, used here, is to always expand $ac_aux_dir to an
106 # absolute PATH. The drawback is that using absolute paths prevent a
107 # configured tree to be moved without reconfiguration.
108
109 AC_DEFUN([AM_AUX_DIR_EXPAND],
110 [dnl Rely on autoconf to set up CDPATH properly.
111 AC_PREREQ([2.50])dnl
112 # expand $ac_aux_dir to an absolute path
113 am_aux_dir=`cd $ac_aux_dir && pwd`
114 ])
115
116 # AM_CONDITIONAL -*- Autoconf -*-
117
118 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
119 # Free Software Foundation, Inc.
120 #
121 # This file is free software; the Free Software Foundation
122 # gives unlimited permission to copy and/or distribute it,
123 # with or without modifications, as long as this notice is preserved.
124
125 # serial 9
126
127 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
128 # -------------------------------------
129 # Define a conditional.
130 AC_DEFUN([AM_CONDITIONAL],
131 [AC_PREREQ(2.52)dnl
132 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
133 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
134 AC_SUBST([$1_TRUE])dnl
135 AC_SUBST([$1_FALSE])dnl
136 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
137 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
138 m4_define([_AM_COND_VALUE_$1], [$2])dnl
139 if $2; then
140 $1_TRUE=
141 $1_FALSE='#'
142 else
143 $1_TRUE='#'
144 $1_FALSE=
145 fi
146 AC_CONFIG_COMMANDS_PRE(
147 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148 AC_MSG_ERROR([[conditional "$1" was never defined.
149 Usually this means the macro was only invoked conditionally.]])
150 fi])])
151
152 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
153 # 2010, 2011 Free Software Foundation, Inc.
154 #
155 # This file is free software; the Free Software Foundation
156 # gives unlimited permission to copy and/or distribute it,
157 # with or without modifications, as long as this notice is preserved.
158
159 # serial 12
160
161 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
162 # written in clear, in which case automake, when reading aclocal.m4,
163 # will think it sees a *use*, and therefore will trigger all it's
164 # C support machinery. Also note that it means that autoscan, seeing
165 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
166
167
168 # _AM_DEPENDENCIES(NAME)
169 # ----------------------
170 # See how the compiler implements dependency checking.
171 # NAME is "CC", "CXX", "GCJ", or "OBJC".
172 # We try a few techniques and use that to set a single cache variable.
173 #
174 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
175 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
176 # dependency, and given that the user is not expected to run this macro,
177 # just rely on AC_PROG_CC.
178 AC_DEFUN([_AM_DEPENDENCIES],
179 [AC_REQUIRE([AM_SET_DEPDIR])dnl
180 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
181 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
182 AC_REQUIRE([AM_DEP_TRACK])dnl
183
184 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
185 [$1], CXX, [depcc="$CXX" am_compiler_list=],
186 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
187 [$1], UPC, [depcc="$UPC" am_compiler_list=],
188 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
189 [depcc="$$1" am_compiler_list=])
190
191 AC_CACHE_CHECK([dependency style of $depcc],
192 [am_cv_$1_dependencies_compiler_type],
193 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
194 # We make a subdir and do the tests there. Otherwise we can end up
195 # making bogus files that we don't know about and never remove. For
196 # instance it was reported that on HP-UX the gcc test will end up
197 # making a dummy file named `D' -- because `-MD' means `put the output
198 # in D'.
199 rm -rf conftest.dir
200 mkdir conftest.dir
201 # Copy depcomp to subdir because otherwise we won't find it if we're
202 # using a relative directory.
203 cp "$am_depcomp" conftest.dir
204 cd conftest.dir
205 # We will build objects and dependencies in a subdirectory because
206 # it helps to detect inapplicable dependency modes. For instance
207 # both Tru64's cc and ICC support -MD to output dependencies as a
208 # side effect of compilation, but ICC will put the dependencies in
209 # the current directory while Tru64 will put them in the object
210 # directory.
211 mkdir sub
212
213 am_cv_$1_dependencies_compiler_type=none
214 if test "$am_compiler_list" = ""; then
215 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
216 fi
217 am__universal=false
218 m4_case([$1], [CC],
219 [case " $depcc " in #(
220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
221 esac],
222 [CXX],
223 [case " $depcc " in #(
224 *\ -arch\ *\ -arch\ *) am__universal=true ;;
225 esac])
226
227 for depmode in $am_compiler_list; do
228 # Setup a source with many dependencies, because some compilers
229 # like to wrap large dependency lists on column 80 (with \), and
230 # we should not choose a depcomp mode which is confused by this.
231 #
232 # We need to recreate these files for each test, as the compiler may
233 # overwrite some of them when testing with obscure command lines.
234 # This happens at least with the AIX C compiler.
235 : > sub/conftest.c
236 for i in 1 2 3 4 5 6; do
237 echo '#include "conftst'$i'.h"' >> sub/conftest.c
238 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
239 # Solaris 8's {/usr,}/bin/sh.
240 touch sub/conftst$i.h
241 done
242 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
243
244 # We check with `-c' and `-o' for the sake of the "dashmstdout"
245 # mode. It turns out that the SunPro C++ compiler does not properly
246 # handle `-M -o', and we need to detect this. Also, some Intel
247 # versions had trouble with output in subdirs
248 am__obj=sub/conftest.${OBJEXT-o}
249 am__minus_obj="-o $am__obj"
250 case $depmode in
251 gcc)
252 # This depmode causes a compiler race in universal mode.
253 test "$am__universal" = false || continue
254 ;;
255 nosideeffect)
256 # after this tag, mechanisms are not by side-effect, so they'll
257 # only be used when explicitly requested
258 if test "x$enable_dependency_tracking" = xyes; then
259 continue
260 else
261 break
262 fi
263 ;;
264 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
265 # This compiler won't grok `-c -o', but also, the minuso test has
266 # not run yet. These depmodes are late enough in the game, and
267 # so weak that their functioning should not be impacted.
268 am__obj=conftest.${OBJEXT-o}
269 am__minus_obj=
270 ;;
271 none) break ;;
272 esac
273 if depmode=$depmode \
274 source=sub/conftest.c object=$am__obj \
275 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
276 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
277 >/dev/null 2>conftest.err &&
278 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
279 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
280 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
281 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
282 # icc doesn't choke on unknown options, it will just issue warnings
283 # or remarks (even with -Werror). So we grep stderr for any message
284 # that says an option was ignored or not supported.
285 # When given -MP, icc 7.0 and 7.1 complain thusly:
286 # icc: Command line warning: ignoring option '-M'; no argument required
287 # The diagnosis changed in icc 8.0:
288 # icc: Command line remark: option '-MP' not supported
289 if (grep 'ignoring option' conftest.err ||
290 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
291 am_cv_$1_dependencies_compiler_type=$depmode
292 break
293 fi
294 fi
295 done
296
297 cd ..
298 rm -rf conftest.dir
299 else
300 am_cv_$1_dependencies_compiler_type=none
301 fi
302 ])
303 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
304 AM_CONDITIONAL([am__fastdep$1], [
305 test "x$enable_dependency_tracking" != xno \
306 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
307 ])
308
309
310 # AM_SET_DEPDIR
311 # -------------
312 # Choose a directory name for dependency files.
313 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
314 AC_DEFUN([AM_SET_DEPDIR],
315 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
316 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
317 ])
318
319
320 # AM_DEP_TRACK
321 # ------------
322 AC_DEFUN([AM_DEP_TRACK],
323 [AC_ARG_ENABLE(dependency-tracking,
324 [ --disable-dependency-tracking speeds up one-time build
325 --enable-dependency-tracking do not reject slow dependency extractors])
326 if test "x$enable_dependency_tracking" != xno; then
327 am_depcomp="$ac_aux_dir/depcomp"
328 AMDEPBACKSLASH='\'
329 am__nodep='_no'
330 fi
331 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
332 AC_SUBST([AMDEPBACKSLASH])dnl
333 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
334 AC_SUBST([am__nodep])dnl
335 _AM_SUBST_NOTMAKE([am__nodep])dnl
336 ])
337
338 # Generate code to set up dependency tracking. -*- Autoconf -*-
339
340 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
341 # Free Software Foundation, Inc.
342 #
343 # This file is free software; the Free Software Foundation
344 # gives unlimited permission to copy and/or distribute it,
345 # with or without modifications, as long as this notice is preserved.
346
347 #serial 5
348
349 # _AM_OUTPUT_DEPENDENCY_COMMANDS
350 # ------------------------------
351 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
352 [{
353 # Autoconf 2.62 quotes --file arguments for eval, but not when files
354 # are listed without --file. Let's play safe and only enable the eval
355 # if we detect the quoting.
356 case $CONFIG_FILES in
357 *\'*) eval set x "$CONFIG_FILES" ;;
358 *) set x $CONFIG_FILES ;;
359 esac
360 shift
361 for mf
362 do
363 # Strip MF so we end up with the name of the file.
364 mf=`echo "$mf" | sed -e 's/:.*$//'`
365 # Check whether this is an Automake generated Makefile or not.
366 # We used to match only the files named `Makefile.in', but
367 # some people rename them; so instead we look at the file content.
368 # Grep'ing the first line is not enough: some people post-process
369 # each Makefile.in and add a new line on top of each file to say so.
370 # Grep'ing the whole file is not good either: AIX grep has a line
371 # limit of 2048, but all sed's we know have understand at least 4000.
372 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
373 dirpart=`AS_DIRNAME("$mf")`
374 else
375 continue
376 fi
377 # Extract the definition of DEPDIR, am__include, and am__quote
378 # from the Makefile without running `make'.
379 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
380 test -z "$DEPDIR" && continue
381 am__include=`sed -n 's/^am__include = //p' < "$mf"`
382 test -z "am__include" && continue
383 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
384 # When using ansi2knr, U may be empty or an underscore; expand it
385 U=`sed -n 's/^U = //p' < "$mf"`
386 # Find all dependency output files, they are included files with
387 # $(DEPDIR) in their names. We invoke sed twice because it is the
388 # simplest approach to changing $(DEPDIR) to its actual value in the
389 # expansion.
390 for file in `sed -n "
391 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
392 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
393 # Make sure the directory exists.
394 test -f "$dirpart/$file" && continue
395 fdir=`AS_DIRNAME(["$file"])`
396 AS_MKDIR_P([$dirpart/$fdir])
397 # echo "creating $dirpart/$file"
398 echo '# dummy' > "$dirpart/$file"
399 done
400 done
401 }
402 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
403
404
405 # AM_OUTPUT_DEPENDENCY_COMMANDS
406 # -----------------------------
407 # This macro should only be invoked once -- use via AC_REQUIRE.
408 #
409 # This code is only required when automatic dependency tracking
410 # is enabled. FIXME. This creates each `.P' file that we will
411 # need in order to bootstrap the dependency handling code.
412 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
413 [AC_CONFIG_COMMANDS([depfiles],
414 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
415 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
416 ])
417
418 # Do all the work for Automake. -*- Autoconf -*-
419
420 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
421 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
422 #
423 # This file is free software; the Free Software Foundation
424 # gives unlimited permission to copy and/or distribute it,
425 # with or without modifications, as long as this notice is preserved.
426
427 # serial 16
428
429 # This macro actually does too much. Some checks are only needed if
430 # your package does certain things. But this isn't really a big deal.
431
432 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
433 # AM_INIT_AUTOMAKE([OPTIONS])
434 # -----------------------------------------------
435 # The call with PACKAGE and VERSION arguments is the old style
436 # call (pre autoconf-2.50), which is being phased out. PACKAGE
437 # and VERSION should now be passed to AC_INIT and removed from
438 # the call to AM_INIT_AUTOMAKE.
439 # We support both call styles for the transition. After
440 # the next Automake release, Autoconf can make the AC_INIT
441 # arguments mandatory, and then we can depend on a new Autoconf
442 # release and drop the old call support.
443 AC_DEFUN([AM_INIT_AUTOMAKE],
444 [AC_PREREQ([2.62])dnl
445 dnl Autoconf wants to disallow AM_ names. We explicitly allow
446 dnl the ones we care about.
447 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
448 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
449 AC_REQUIRE([AC_PROG_INSTALL])dnl
450 if test "`cd $srcdir && pwd`" != "`pwd`"; then
451 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
452 # is not polluted with repeated "-I."
453 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
454 # test to see if srcdir already configured
455 if test -f $srcdir/config.status; then
456 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
457 fi
458 fi
459
460 # test whether we have cygpath
461 if test -z "$CYGPATH_W"; then
462 if (cygpath --version) >/dev/null 2>/dev/null; then
463 CYGPATH_W='cygpath -w'
464 else
465 CYGPATH_W=echo
466 fi
467 fi
468 AC_SUBST([CYGPATH_W])
469
470 # Define the identity of the package.
471 dnl Distinguish between old-style and new-style calls.
472 m4_ifval([$2],
473 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
474 AC_SUBST([PACKAGE], [$1])dnl
475 AC_SUBST([VERSION], [$2])],
476 [_AM_SET_OPTIONS([$1])dnl
477 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
478 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
479 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
480 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
481 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
482
483 _AM_IF_OPTION([no-define],,
484 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
485 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
486
487 # Some tools Automake needs.
488 AC_REQUIRE([AM_SANITY_CHECK])dnl
489 AC_REQUIRE([AC_ARG_PROGRAM])dnl
490 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
491 AM_MISSING_PROG(AUTOCONF, autoconf)
492 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
493 AM_MISSING_PROG(AUTOHEADER, autoheader)
494 AM_MISSING_PROG(MAKEINFO, makeinfo)
495 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
496 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
497 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
498 # We need awk for the "check" target. The system "awk" is bad on
499 # some platforms.
500 AC_REQUIRE([AC_PROG_AWK])dnl
501 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
502 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
503 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
504 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
505 [_AM_PROG_TAR([v7])])])
506 _AM_IF_OPTION([no-dependencies],,
507 [AC_PROVIDE_IFELSE([AC_PROG_CC],
508 [_AM_DEPENDENCIES(CC)],
509 [define([AC_PROG_CC],
510 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
511 AC_PROVIDE_IFELSE([AC_PROG_CXX],
512 [_AM_DEPENDENCIES(CXX)],
513 [define([AC_PROG_CXX],
514 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
515 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
516 [_AM_DEPENDENCIES(OBJC)],
517 [define([AC_PROG_OBJC],
518 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
519 ])
520 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
521 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
522 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
523 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
524 AC_CONFIG_COMMANDS_PRE(dnl
525 [m4_provide_if([_AM_COMPILER_EXEEXT],
526 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
527 ])
528
529 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
530 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
531 dnl mangled by Autoconf and run in a shell conditional statement.
532 m4_define([_AC_COMPILER_EXEEXT],
533 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
534
535
536 # When config.status generates a header, we must update the stamp-h file.
537 # This file resides in the same directory as the config header
538 # that is generated. The stamp files are numbered to have different names.
539
540 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
541 # loop where config.status creates the headers, so we can generate
542 # our stamp files there.
543 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
544 [# Compute $1's index in $config_headers.
545 _am_arg=$1
546 _am_stamp_count=1
547 for _am_header in $config_headers :; do
548 case $_am_header in
549 $_am_arg | $_am_arg:* )
550 break ;;
551 * )
552 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
553 esac
554 done
555 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
556
557 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
558 # Inc.
559 #
560 # This file is free software; the Free Software Foundation
561 # gives unlimited permission to copy and/or distribute it,
562 # with or without modifications, as long as this notice is preserved.
563
564 # serial 1
565
566 # AM_PROG_INSTALL_SH
567 # ------------------
568 # Define $install_sh.
569 AC_DEFUN([AM_PROG_INSTALL_SH],
570 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
571 if test x"${install_sh}" != xset; then
572 case $am_aux_dir in
573 *\ * | *\ *)
574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
575 *)
576 install_sh="\${SHELL} $am_aux_dir/install-sh"
577 esac
578 fi
579 AC_SUBST(install_sh)])
580
581 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
582 #
583 # This file is free software; the Free Software Foundation
584 # gives unlimited permission to copy and/or distribute it,
585 # with or without modifications, as long as this notice is preserved.
586
587 # serial 2
588
589 # Check whether the underlying file-system supports filenames
590 # with a leading dot. For instance MS-DOS doesn't.
591 AC_DEFUN([AM_SET_LEADING_DOT],
592 [rm -rf .tst 2>/dev/null
593 mkdir .tst 2>/dev/null
594 if test -d .tst; then
595 am__leading_dot=.
596 else
597 am__leading_dot=_
598 fi
599 rmdir .tst 2>/dev/null
600 AC_SUBST([am__leading_dot])])
601
602 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
603 # From Jim Meyering
604
605 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
606 # 2011 Free Software Foundation, Inc.
607 #
608 # This file is free software; the Free Software Foundation
609 # gives unlimited permission to copy and/or distribute it,
610 # with or without modifications, as long as this notice is preserved.
611
612 # serial 5
613
614 # AM_MAINTAINER_MODE([DEFAULT-MODE])
615 # ----------------------------------
616 # Control maintainer-specific portions of Makefiles.
617 # Default is to disable them, unless `enable' is passed literally.
618 # For symmetry, `disable' may be passed as well. Anyway, the user
619 # can override the default with the --enable/--disable switch.
620 AC_DEFUN([AM_MAINTAINER_MODE],
621 [m4_case(m4_default([$1], [disable]),
622 [enable], [m4_define([am_maintainer_other], [disable])],
623 [disable], [m4_define([am_maintainer_other], [enable])],
624 [m4_define([am_maintainer_other], [enable])
625 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
626 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
627 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
628 AC_ARG_ENABLE([maintainer-mode],
629 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
630 (and sometimes confusing) to the casual installer],
631 [USE_MAINTAINER_MODE=$enableval],
632 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
633 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
634 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
635 MAINT=$MAINTAINER_MODE_TRUE
636 AC_SUBST([MAINT])dnl
637 ]
638 )
639
640 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
641
642 # Check to see how 'make' treats includes. -*- Autoconf -*-
643
644 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
645 #
646 # This file is free software; the Free Software Foundation
647 # gives unlimited permission to copy and/or distribute it,
648 # with or without modifications, as long as this notice is preserved.
649
650 # serial 4
651
652 # AM_MAKE_INCLUDE()
653 # -----------------
654 # Check to see how make treats includes.
655 AC_DEFUN([AM_MAKE_INCLUDE],
656 [am_make=${MAKE-make}
657 cat > confinc << 'END'
658 am__doit:
659 @echo this is the am__doit target
660 .PHONY: am__doit
661 END
662 # If we don't find an include directive, just comment out the code.
663 AC_MSG_CHECKING([for style of include used by $am_make])
664 am__include="#"
665 am__quote=
666 _am_result=none
667 # First try GNU make style include.
668 echo "include confinc" > confmf
669 # Ignore all kinds of additional output from `make'.
670 case `$am_make -s -f confmf 2> /dev/null` in #(
671 *the\ am__doit\ target*)
672 am__include=include
673 am__quote=
674 _am_result=GNU
675 ;;
676 esac
677 # Now try BSD make style include.
678 if test "$am__include" = "#"; then
679 echo '.include "confinc"' > confmf
680 case `$am_make -s -f confmf 2> /dev/null` in #(
681 *the\ am__doit\ target*)
682 am__include=.include
683 am__quote="\""
684 _am_result=BSD
685 ;;
686 esac
687 fi
688 AC_SUBST([am__include])
689 AC_SUBST([am__quote])
690 AC_MSG_RESULT([$_am_result])
691 rm -f confinc confmf
692 ])
693
694 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
695
696 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
697 # Free Software Foundation, Inc.
698 #
699 # This file is free software; the Free Software Foundation
700 # gives unlimited permission to copy and/or distribute it,
701 # with or without modifications, as long as this notice is preserved.
702
703 # serial 6
704
705 # AM_MISSING_PROG(NAME, PROGRAM)
706 # ------------------------------
707 AC_DEFUN([AM_MISSING_PROG],
708 [AC_REQUIRE([AM_MISSING_HAS_RUN])
709 $1=${$1-"${am_missing_run}$2"}
710 AC_SUBST($1)])
711
712
713 # AM_MISSING_HAS_RUN
714 # ------------------
715 # Define MISSING if not defined so far and test if it supports --run.
716 # If it does, set am_missing_run to use it, otherwise, to nothing.
717 AC_DEFUN([AM_MISSING_HAS_RUN],
718 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
719 AC_REQUIRE_AUX_FILE([missing])dnl
720 if test x"${MISSING+set}" != xset; then
721 case $am_aux_dir in
722 *\ * | *\ *)
723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
724 *)
725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
726 esac
727 fi
728 # Use eval to expand $SHELL
729 if eval "$MISSING --run true"; then
730 am_missing_run="$MISSING --run "
731 else
732 am_missing_run=
733 AC_MSG_WARN([`missing' script is too old or missing])
734 fi
735 ])
736
737 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
738 # Inc.
739 #
740 # This file is free software; the Free Software Foundation
741 # gives unlimited permission to copy and/or distribute it,
742 # with or without modifications, as long as this notice is preserved.
743
744 # serial 1
745
746 # AM_PROG_MKDIR_P
747 # ---------------
748 # Check for `mkdir -p'.
749 AC_DEFUN([AM_PROG_MKDIR_P],
750 [AC_PREREQ([2.60])dnl
751 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
752 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
753 dnl while keeping a definition of mkdir_p for backward compatibility.
754 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
755 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
756 dnl Makefile.ins that do not define MKDIR_P, so we do our own
757 dnl adjustment using top_builddir (which is defined more often than
758 dnl MKDIR_P).
759 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
760 case $mkdir_p in
761 [[\\/$]]* | ?:[[\\/]]*) ;;
762 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
763 esac
764 ])
765
766 # Helper functions for option handling. -*- Autoconf -*-
767
768 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
769 # Foundation, Inc.
770 #
771 # This file is free software; the Free Software Foundation
772 # gives unlimited permission to copy and/or distribute it,
773 # with or without modifications, as long as this notice is preserved.
774
775 # serial 5
776
777 # _AM_MANGLE_OPTION(NAME)
778 # -----------------------
779 AC_DEFUN([_AM_MANGLE_OPTION],
780 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
781
782 # _AM_SET_OPTION(NAME)
783 # --------------------
784 # Set option NAME. Presently that only means defining a flag for this option.
785 AC_DEFUN([_AM_SET_OPTION],
786 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
787
788 # _AM_SET_OPTIONS(OPTIONS)
789 # ------------------------
790 # OPTIONS is a space-separated list of Automake options.
791 AC_DEFUN([_AM_SET_OPTIONS],
792 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
793
794 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
795 # -------------------------------------------
796 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
797 AC_DEFUN([_AM_IF_OPTION],
798 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
799
800 # Check to make sure that the build environment is sane. -*- Autoconf -*-
801
802 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
803 # Free Software Foundation, Inc.
804 #
805 # This file is free software; the Free Software Foundation
806 # gives unlimited permission to copy and/or distribute it,
807 # with or without modifications, as long as this notice is preserved.
808
809 # serial 5
810
811 # AM_SANITY_CHECK
812 # ---------------
813 AC_DEFUN([AM_SANITY_CHECK],
814 [AC_MSG_CHECKING([whether build environment is sane])
815 # Just in case
816 sleep 1
817 echo timestamp > conftest.file
818 # Reject unsafe characters in $srcdir or the absolute working directory
819 # name. Accept space and tab only in the latter.
820 am_lf='
821 '
822 case `pwd` in
823 *[[\\\"\#\$\&\'\`$am_lf]]*)
824 AC_MSG_ERROR([unsafe absolute working directory name]);;
825 esac
826 case $srcdir in
827 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
828 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
829 esac
830
831 # Do `set' in a subshell so we don't clobber the current shell's
832 # arguments. Must try -L first in case configure is actually a
833 # symlink; some systems play weird games with the mod time of symlinks
834 # (eg FreeBSD returns the mod time of the symlink's containing
835 # directory).
836 if (
837 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
838 if test "$[*]" = "X"; then
839 # -L didn't work.
840 set X `ls -t "$srcdir/configure" conftest.file`
841 fi
842 rm -f conftest.file
843 if test "$[*]" != "X $srcdir/configure conftest.file" \
844 && test "$[*]" != "X conftest.file $srcdir/configure"; then
845
846 # If neither matched, then we have a broken ls. This can happen
847 # if, for instance, CONFIG_SHELL is bash and it inherits a
848 # broken ls alias from the environment. This has actually
849 # happened. Such a system could not be considered "sane".
850 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
851 alias in your environment])
852 fi
853
854 test "$[2]" = conftest.file
855 )
856 then
857 # Ok.
858 :
859 else
860 AC_MSG_ERROR([newly created file is older than distributed files!
861 Check your system clock])
862 fi
863 AC_MSG_RESULT(yes)])
864
865 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
866 #
867 # This file is free software; the Free Software Foundation
868 # gives unlimited permission to copy and/or distribute it,
869 # with or without modifications, as long as this notice is preserved.
870
871 # serial 1
872
873 # AM_PROG_INSTALL_STRIP
874 # ---------------------
875 # One issue with vendor `install' (even GNU) is that you can't
876 # specify the program used to strip binaries. This is especially
877 # annoying in cross-compiling environments, where the build's strip
878 # is unlikely to handle the host's binaries.
879 # Fortunately install-sh will honor a STRIPPROG variable, so we
880 # always use install-sh in `make install-strip', and initialize
881 # STRIPPROG with the value of the STRIP variable (set by the user).
882 AC_DEFUN([AM_PROG_INSTALL_STRIP],
883 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
884 # Installed binaries are usually stripped using `strip' when the user
885 # run `make install-strip'. However `strip' might not be the right
886 # tool to use in cross-compilation environments, therefore Automake
887 # will honor the `STRIP' environment variable to overrule this program.
888 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
889 if test "$cross_compiling" != no; then
890 AC_CHECK_TOOL([STRIP], [strip], :)
891 fi
892 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
893 AC_SUBST([INSTALL_STRIP_PROGRAM])])
894
895 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
896 #
897 # This file is free software; the Free Software Foundation
898 # gives unlimited permission to copy and/or distribute it,
899 # with or without modifications, as long as this notice is preserved.
900
901 # serial 3
902
903 # _AM_SUBST_NOTMAKE(VARIABLE)
904 # ---------------------------
905 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
906 # This macro is traced by Automake.
907 AC_DEFUN([_AM_SUBST_NOTMAKE])
908
909 # AM_SUBST_NOTMAKE(VARIABLE)
910 # --------------------------
911 # Public sister of _AM_SUBST_NOTMAKE.
912 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
913
914 # Check how to create a tarball. -*- Autoconf -*-
915
916 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
917 #
918 # This file is free software; the Free Software Foundation
919 # gives unlimited permission to copy and/or distribute it,
920 # with or without modifications, as long as this notice is preserved.
921
922 # serial 2
923
924 # _AM_PROG_TAR(FORMAT)
925 # --------------------
926 # Check how to create a tarball in format FORMAT.
927 # FORMAT should be one of `v7', `ustar', or `pax'.
928 #
929 # Substitute a variable $(am__tar) that is a command
930 # writing to stdout a FORMAT-tarball containing the directory
931 # $tardir.
932 # tardir=directory && $(am__tar) > result.tar
933 #
934 # Substitute a variable $(am__untar) that extract such
935 # a tarball read from stdin.
936 # $(am__untar) < result.tar
937 AC_DEFUN([_AM_PROG_TAR],
938 [# Always define AMTAR for backward compatibility. Yes, it's still used
939 # in the wild :-( We should find a proper way to deprecate it ...
940 AC_SUBST([AMTAR], ['$${TAR-tar}'])
941 m4_if([$1], [v7],
942 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
943 [m4_case([$1], [ustar],, [pax],,
944 [m4_fatal([Unknown tar format])])
945 AC_MSG_CHECKING([how to create a $1 tar archive])
946 # Loop over all known methods to create a tar archive until one works.
947 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
948 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
949 # Do not fold the above two line into one, because Tru64 sh and
950 # Solaris sh will not grok spaces in the rhs of `-'.
951 for _am_tool in $_am_tools
952 do
953 case $_am_tool in
954 gnutar)
955 for _am_tar in tar gnutar gtar;
956 do
957 AM_RUN_LOG([$_am_tar --version]) && break
958 done
959 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
960 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
961 am__untar="$_am_tar -xf -"
962 ;;
963 plaintar)
964 # Must skip GNU tar: if it does not support --format= it doesn't create
965 # ustar tarball either.
966 (tar --version) >/dev/null 2>&1 && continue
967 am__tar='tar chf - "$$tardir"'
968 am__tar_='tar chf - "$tardir"'
969 am__untar='tar xf -'
970 ;;
971 pax)
972 am__tar='pax -L -x $1 -w "$$tardir"'
973 am__tar_='pax -L -x $1 -w "$tardir"'
974 am__untar='pax -r'
975 ;;
976 cpio)
977 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
978 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
979 am__untar='cpio -i -H $1 -d'
980 ;;
981 none)
982 am__tar=false
983 am__tar_=false
984 am__untar=false
985 ;;
986 esac
987
988 # If the value was cached, stop now. We just wanted to have am__tar
989 # and am__untar set.
990 test -n "${am_cv_prog_tar_$1}" && break
991
992 # tar/untar a dummy directory, and stop if the command works
993 rm -rf conftest.dir
994 mkdir conftest.dir
995 echo GrepMe > conftest.dir/file
996 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
997 rm -rf conftest.dir
998 if test -s conftest.tar; then
999 AM_RUN_LOG([$am__untar <conftest.tar])
1000 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1001 fi
1002 done
1003 rm -rf conftest.dir
1004
1005 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1006 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1007 AC_SUBST([am__tar])
1008 AC_SUBST([am__untar])
1009 ]) # _AM_PROG_TAR
1010
1011 m4_include([../../../../libtool.m4])
1012 m4_include([../../../../ltoptions.m4])
1013 m4_include([../../../../ltsugar.m4])
1014 m4_include([../../../../ltversion.m4])
1015 m4_include([../../../../lt~obsolete.m4])
1016 m4_include([../../../acinclude.m4])
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for newlib 3.3.0.
3 #
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7 # Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
187 fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208 fi
209 fi
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 # Preserve -v and -x to the replacement shell.
226 BASH_ENV=/dev/null
227 ENV=/dev/null
228 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 export CONFIG_SHELL
230 case $- in # ((((
231 *v*x* | *x*v* ) as_opts=-vx ;;
232 *v* ) as_opts=-v ;;
233 *x* ) as_opts=-x ;;
234 * ) as_opts= ;;
235 esac
236 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
237 fi
238
239 if test x$as_have_required = xno; then :
240 $as_echo "$0: This script requires a shell more modern than all"
241 $as_echo "$0: the shells that I found on your system."
242 if test x${ZSH_VERSION+set} = xset ; then
243 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
244 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
245 else
246 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
247 $0: including any error possibly output before this
248 $0: message. Then install a modern shell, or manually run
249 $0: the script under such a shell if you do have one."
250 fi
251 exit 1
252 fi
253 fi
254 fi
255 SHELL=${CONFIG_SHELL-/bin/sh}
256 export SHELL
257 # Unset more variables known to interfere with behavior of common tools.
258 CLICOLOR_FORCE= GREP_OPTIONS=
259 unset CLICOLOR_FORCE GREP_OPTIONS
260
261 ## --------------------- ##
262 ## M4sh Shell Functions. ##
263 ## --------------------- ##
264 # as_fn_unset VAR
265 # ---------------
266 # Portably unset VAR.
267 as_fn_unset ()
268 {
269 { eval $1=; unset $1;}
270 }
271 as_unset=as_fn_unset
272
273 # as_fn_set_status STATUS
274 # -----------------------
275 # Set $? to STATUS, without forking.
276 as_fn_set_status ()
277 {
278 return $1
279 } # as_fn_set_status
280
281 # as_fn_exit STATUS
282 # -----------------
283 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 as_fn_exit ()
285 {
286 set +e
287 as_fn_set_status $1
288 exit $1
289 } # as_fn_exit
290
291 # as_fn_mkdir_p
292 # -------------
293 # Create "$as_dir" as a directory, including parents if necessary.
294 as_fn_mkdir_p ()
295 {
296
297 case $as_dir in #(
298 -*) as_dir=./$as_dir;;
299 esac
300 test -d "$as_dir" || eval $as_mkdir_p || {
301 as_dirs=
302 while :; do
303 case $as_dir in #(
304 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
305 *) as_qdir=$as_dir;;
306 esac
307 as_dirs="'$as_qdir' $as_dirs"
308 as_dir=`$as_dirname -- "$as_dir" ||
309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
310 X"$as_dir" : 'X\(//\)[^/]' \| \
311 X"$as_dir" : 'X\(//\)$' \| \
312 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
313 $as_echo X"$as_dir" |
314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)[^/].*/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)$/{
323 s//\1/
324 q
325 }
326 /^X\(\/\).*/{
327 s//\1/
328 q
329 }
330 s/.*/./; q'`
331 test -d "$as_dir" && break
332 done
333 test -z "$as_dirs" || eval "mkdir $as_dirs"
334 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335
336
337 } # as_fn_mkdir_p
338 # as_fn_append VAR VALUE
339 # ----------------------
340 # Append the text in VALUE to the end of the definition contained in VAR. Take
341 # advantage of any shell optimizations that allow amortized linear growth over
342 # repeated appends, instead of the typical quadratic growth present in naive
343 # implementations.
344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
345 eval 'as_fn_append ()
346 {
347 eval $1+=\$2
348 }'
349 else
350 as_fn_append ()
351 {
352 eval $1=\$$1\$2
353 }
354 fi # as_fn_append
355
356 # as_fn_arith ARG...
357 # ------------------
358 # Perform arithmetic evaluation on the ARGs, and store the result in the
359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
360 # must be portable across $(()) and expr.
361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 eval 'as_fn_arith ()
363 {
364 as_val=$(( $* ))
365 }'
366 else
367 as_fn_arith ()
368 {
369 as_val=`expr "$@" || test $? -eq 1`
370 }
371 fi # as_fn_arith
372
373
374 # as_fn_error STATUS ERROR [LINENO LOG_FD]
375 # ----------------------------------------
376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
378 # script with STATUS, using 1 if that was 0.
379 as_fn_error ()
380 {
381 as_status=$1; test $as_status -eq 0 && as_status=1
382 if test "$4"; then
383 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
385 fi
386 $as_echo "$as_me: error: $2" >&2
387 as_fn_exit $as_status
388 } # as_fn_error
389
390 if expr a : '\(a\)' >/dev/null 2>&1 &&
391 test "X`expr 00001 : '.*\(...\)'`" = X001; then
392 as_expr=expr
393 else
394 as_expr=false
395 fi
396
397 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 as_basename=basename
399 else
400 as_basename=false
401 fi
402
403 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
404 as_dirname=dirname
405 else
406 as_dirname=false
407 fi
408
409 as_me=`$as_basename -- "$0" ||
410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
411 X"$0" : 'X\(//\)$' \| \
412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
413 $as_echo X/"$0" |
414 sed '/^.*\/\([^/][^/]*\)\/*$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\/\)$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\).*/{
423 s//\1/
424 q
425 }
426 s/.*/./; q'`
427
428 # Avoid depending upon Character Ranges.
429 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
430 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
431 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
432 as_cr_digits='0123456789'
433 as_cr_alnum=$as_cr_Letters$as_cr_digits
434
435
436 as_lineno_1=$LINENO as_lineno_1a=$LINENO
437 as_lineno_2=$LINENO as_lineno_2a=$LINENO
438 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
439 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
440 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467 ECHO_C= ECHO_N= ECHO_T=
468 case `echo -n x` in #(((((
469 -n*)
470 case `echo 'xy\c'` in
471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
472 xy) ECHO_C='\c';;
473 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
474 ECHO_T=' ';;
475 esac;;
476 *)
477 ECHO_N='-n';;
478 esac
479
480 rm -f conf$$ conf$$.exe conf$$.file
481 if test -d conf$$.dir; then
482 rm -f conf$$.dir/conf$$.file
483 else
484 rm -f conf$$.dir
485 mkdir conf$$.dir 2>/dev/null
486 fi
487 if (echo >conf$$.file) 2>/dev/null; then
488 if ln -s conf$$.file conf$$ 2>/dev/null; then
489 as_ln_s='ln -s'
490 # ... but there are two gotchas:
491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
493 # In both cases, we have to default to `cp -p'.
494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
495 as_ln_s='cp -p'
496 elif ln conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s=ln
498 else
499 as_ln_s='cp -p'
500 fi
501 else
502 as_ln_s='cp -p'
503 fi
504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
505 rmdir conf$$.dir 2>/dev/null
506
507 if mkdir -p . 2>/dev/null; then
508 as_mkdir_p='mkdir -p "$as_dir"'
509 else
510 test -d ./-p && rmdir ./-p
511 as_mkdir_p=false
512 fi
513
514 if test -x / >/dev/null 2>&1; then
515 as_test_x='test -x'
516 else
517 if ls -dL / >/dev/null 2>&1; then
518 as_ls_L_option=L
519 else
520 as_ls_L_option=
521 fi
522 as_test_x='
523 eval sh -c '\''
524 if test -d "$1"; then
525 test -d "$1/.";
526 else
527 case $1 in #(
528 -*)set "./$1";;
529 esac;
530 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
531 ???[sx]*):;;*)false;;esac;fi
532 '\'' sh
533 '
534 fi
535 as_executable_p=$as_test_x
536
537 # Sed expression to map a string onto a valid CPP name.
538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
539
540 # Sed expression to map a string onto a valid variable name.
541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545
546 test -n "$DJDIR" || exec 7<&0 </dev/null
547 exec 6>&1
548
549 # Name of the host.
550 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
551 # so uname gets run too.
552 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554 #
555 # Initializations.
556 #
557 ac_default_prefix=/usr/local
558 ac_clean_files=
559 ac_config_libobj_dir=.
560 LIBOBJS=
561 cross_compiling=no
562 subdirs=
563 MFLAGS=
564 MAKEFLAGS=
565
566 # Identity of this package.
567 PACKAGE_NAME='newlib'
568 PACKAGE_TARNAME='newlib'
569 PACKAGE_VERSION='3.3.0'
570 PACKAGE_STRING='newlib 3.3.0'
571 PACKAGE_BUGREPORT=''
572 PACKAGE_URL=''
573
574 ac_unique_file="Makefile.am"
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 # include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 # include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 CPP
616 OTOOL64
617 OTOOL
618 LIPO
619 NMEDIT
620 DSYMUTIL
621 LN_S
622 NM
623 ac_ct_DUMPBIN
624 DUMPBIN
625 LD
626 FGREP
627 EGREP
628 GREP
629 EXEEXT
630 ac_ct_CC
631 CPPFLAGS
632 CFLAGS
633 LIBTOOL
634 OBJDUMP
635 DLLTOOL
636 SED
637 sys_dir
638 machine_dir
639 libm_machine_dir
640 lpfx
641 aext
642 oext
643 OBJEXT
644 USE_LIBTOOL_FALSE
645 USE_LIBTOOL_TRUE
646 ELIX_LEVEL_4_FALSE
647 ELIX_LEVEL_4_TRUE
648 ELIX_LEVEL_3_FALSE
649 ELIX_LEVEL_3_TRUE
650 ELIX_LEVEL_2_FALSE
651 ELIX_LEVEL_2_TRUE
652 ELIX_LEVEL_1_FALSE
653 ELIX_LEVEL_1_TRUE
654 ELIX_LEVEL_0_FALSE
655 ELIX_LEVEL_0_TRUE
656 LDFLAGS
657 NO_INCLUDE_LIST
658 NEWLIB_CFLAGS
659 CCASFLAGS
660 CCAS
661 MAINT
662 MAINTAINER_MODE_FALSE
663 MAINTAINER_MODE_TRUE
664 READELF
665 RANLIB
666 AR
667 AS
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 am__nodep
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 CC
679 am__untar
680 am__tar
681 AMTAR
682 am__leading_dot
683 SET_MAKE
684 AWK
685 mkdir_p
686 MKDIR_P
687 INSTALL_STRIP_PROGRAM
688 STRIP
689 install_sh
690 MAKEINFO
691 AUTOHEADER
692 AUTOMAKE
693 AUTOCONF
694 ACLOCAL
695 VERSION
696 PACKAGE
697 CYGPATH_W
698 am__isrc
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 newlib_basedir
711 MAY_SUPPLY_SYSCALLS_FALSE
712 MAY_SUPPLY_SYSCALLS_TRUE
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_multilib
755 enable_target_optspace
756 enable_malloc_debugging
757 enable_newlib_multithread
758 enable_newlib_iconv
759 enable_newlib_elix_level
760 enable_newlib_io_float
761 enable_newlib_supplied_syscalls
762 enable_newlib_fno_builtin
763 enable_dependency_tracking
764 enable_maintainer_mode
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 enable_libtool_lock
771 '
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CCAS
776 CCASFLAGS
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
806
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
842 fi
843
844 case $ac_option in
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 ;;
1189
1190 esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211 do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used" >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1289 fi
1290 else
1291 ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures newlib 3.3.0 to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of newlib 3.3.0:";;
1396 esac
1397 cat <<\_ACEOF
1398
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-multilib build many library versions (default)
1404 --enable-target-optspace optimize for space
1405 --enable-malloc-debugging indicate malloc debugging requested
1406 --enable-newlib-multithread enable support for multiple threads
1407 --enable-newlib-iconv enable iconv library support
1408 --enable-newlib-elix-level supply desired elix library level (1-4)
1409 --disable-newlib-io-float disable printf/scanf family float support
1410 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1411 --disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --enable-maintainer-mode enable make rules and dependencies not useful
1415 (and sometimes confusing) to the casual installer
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428
1429 Some influential environment variables:
1430 CCAS assembler compiler command (defaults to CC)
1431 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1439 CPP C preprocessor
1440
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1443
1444 Report bugs to the package provider.
1445 _ACEOF
1446 ac_status=$?
1447 fi
1448
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1456
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *)
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1472
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1502 fi
1503
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 newlib configure 3.3.0
1508 generated by GNU Autoconf 2.68
1509
1510 Copyright (C) 2010 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1515 fi
1516
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1520
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1525 {
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553 fi
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557 } # ac_fn_c_try_compile
1558
1559 # ac_fn_c_try_link LINENO
1560 # -----------------------
1561 # Try to link conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_link ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest$ac_exeext
1566 if { { ac_try="$ac_link"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest$ac_exeext && {
1585 test "$cross_compiling" = yes ||
1586 $as_test_x conftest$ac_exeext
1587 }; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594 fi
1595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597 # interfere with the next link command; also delete a directory that is
1598 # left behind by Apple's compiler. We do this before executing the actions.
1599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_link
1604
1605 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606 # -------------------------------------------------------
1607 # Tests whether HEADER exists and can be compiled using the include files in
1608 # INCLUDES, setting the cache variable VAR accordingly.
1609 ac_fn_c_check_header_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if eval \${$3+:} false; then :
1615 $as_echo_n "(cached) " >&6
1616 else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 $4
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624 else
1625 eval "$3=no"
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 fi
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_c_check_header_compile
1635
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } > conftest.i && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_cpp
1672
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=$ac_status
1708 fi
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_run
1714
1715 # ac_fn_c_check_func LINENO FUNC VAR
1716 # ----------------------------------
1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718 ac_fn_c_check_func ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1730 #define $2 innocuous_$2
1731
1732 /* System header to define __stub macros and hopefully few prototypes,
1733 which can conflict with char $2 (); below.
1734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1735 <limits.h> exists even on freestanding compilers. */
1736
1737 #ifdef __STDC__
1738 # include <limits.h>
1739 #else
1740 # include <assert.h>
1741 #endif
1742
1743 #undef $2
1744
1745 /* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1748 #ifdef __cplusplus
1749 extern "C"
1750 #endif
1751 char $2 ();
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined __stub_$2 || defined __stub___$2
1756 choke me
1757 #endif
1758
1759 int
1760 main ()
1761 {
1762 return $2 ();
1763 ;
1764 return 0;
1765 }
1766 _ACEOF
1767 if ac_fn_c_try_link "$LINENO"; then :
1768 eval "$3=yes"
1769 else
1770 eval "$3=no"
1771 fi
1772 rm -f core conftest.err conftest.$ac_objext \
1773 conftest$ac_exeext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_func
1781 cat >config.log <<_ACEOF
1782 This file contains any messages produced by compilers while
1783 running configure, to aid debugging if configure makes a mistake.
1784
1785 It was created by newlib $as_me 3.3.0, which was
1786 generated by GNU Autoconf 2.68. Invocation command line was
1787
1788 $ $0 $@
1789
1790 _ACEOF
1791 exec 5>>config.log
1792 {
1793 cat <<_ASUNAME
1794 ## --------- ##
1795 ## Platform. ##
1796 ## --------- ##
1797
1798 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1799 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1800 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1801 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1802 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1803
1804 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1805 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1806
1807 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1808 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1809 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1810 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1811 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1812 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1813 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1814
1815 _ASUNAME
1816
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 $as_echo "PATH: $as_dir"
1823 done
1824 IFS=$as_save_IFS
1825
1826 } >&5
1827
1828 cat >&5 <<_ACEOF
1829
1830
1831 ## ----------- ##
1832 ## Core tests. ##
1833 ## ----------- ##
1834
1835 _ACEOF
1836
1837
1838 # Keep a trace of the command line.
1839 # Strip out --no-create and --no-recursion so they do not pile up.
1840 # Strip out --silent because we don't want to record it for future runs.
1841 # Also quote any args containing shell meta-characters.
1842 # Make two passes to allow for proper duplicate-argument suppression.
1843 ac_configure_args=
1844 ac_configure_args0=
1845 ac_configure_args1=
1846 ac_must_keep_next=false
1847 for ac_pass in 1 2
1848 do
1849 for ac_arg
1850 do
1851 case $ac_arg in
1852 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1854 | -silent | --silent | --silen | --sile | --sil)
1855 continue ;;
1856 *\'*)
1857 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 esac
1859 case $ac_pass in
1860 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1861 2)
1862 as_fn_append ac_configure_args1 " '$ac_arg'"
1863 if test $ac_must_keep_next = true; then
1864 ac_must_keep_next=false # Got value, back to normal.
1865 else
1866 case $ac_arg in
1867 *=* | --config-cache | -C | -disable-* | --disable-* \
1868 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1869 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1870 | -with-* | --with-* | -without-* | --without-* | --x)
1871 case "$ac_configure_args0 " in
1872 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1873 esac
1874 ;;
1875 -* ) ac_must_keep_next=true ;;
1876 esac
1877 fi
1878 as_fn_append ac_configure_args " '$ac_arg'"
1879 ;;
1880 esac
1881 done
1882 done
1883 { ac_configure_args0=; unset ac_configure_args0;}
1884 { ac_configure_args1=; unset ac_configure_args1;}
1885
1886 # When interrupted or exit'd, cleanup temporary files, and complete
1887 # config.log. We remove comments because anyway the quotes in there
1888 # would cause problems or look ugly.
1889 # WARNING: Use '\'' to represent an apostrophe within the trap.
1890 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1891 trap 'exit_status=$?
1892 # Save into config.log some information that might help in debugging.
1893 {
1894 echo
1895
1896 $as_echo "## ---------------- ##
1897 ## Cache variables. ##
1898 ## ---------------- ##"
1899 echo
1900 # The following way of writing the cache mishandles newlines in values,
1901 (
1902 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1903 eval ac_val=\$$ac_var
1904 case $ac_val in #(
1905 *${as_nl}*)
1906 case $ac_var in #(
1907 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1908 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1909 esac
1910 case $ac_var in #(
1911 _ | IFS | as_nl) ;; #(
1912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1913 *) { eval $ac_var=; unset $ac_var;} ;;
1914 esac ;;
1915 esac
1916 done
1917 (set) 2>&1 |
1918 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1919 *${as_nl}ac_space=\ *)
1920 sed -n \
1921 "s/'\''/'\''\\\\'\'''\''/g;
1922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1923 ;; #(
1924 *)
1925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1926 ;;
1927 esac |
1928 sort
1929 )
1930 echo
1931
1932 $as_echo "## ----------------- ##
1933 ## Output variables. ##
1934 ## ----------------- ##"
1935 echo
1936 for ac_var in $ac_subst_vars
1937 do
1938 eval ac_val=\$$ac_var
1939 case $ac_val in
1940 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1941 esac
1942 $as_echo "$ac_var='\''$ac_val'\''"
1943 done | sort
1944 echo
1945
1946 if test -n "$ac_subst_files"; then
1947 $as_echo "## ------------------- ##
1948 ## File substitutions. ##
1949 ## ------------------- ##"
1950 echo
1951 for ac_var in $ac_subst_files
1952 do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in
1955 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1956 esac
1957 $as_echo "$ac_var='\''$ac_val'\''"
1958 done | sort
1959 echo
1960 fi
1961
1962 if test -s confdefs.h; then
1963 $as_echo "## ----------- ##
1964 ## confdefs.h. ##
1965 ## ----------- ##"
1966 echo
1967 cat confdefs.h
1968 echo
1969 fi
1970 test "$ac_signal" != 0 &&
1971 $as_echo "$as_me: caught signal $ac_signal"
1972 $as_echo "$as_me: exit $exit_status"
1973 } >&5
1974 rm -f core *.core core.conftest.* &&
1975 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1976 exit $exit_status
1977 ' 0
1978 for ac_signal in 1 2 13 15; do
1979 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1980 done
1981 ac_signal=0
1982
1983 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1984 rm -f -r conftest* confdefs.h
1985
1986 $as_echo "/* confdefs.h */" > confdefs.h
1987
1988 # Predefined preprocessor variables.
1989
1990 cat >>confdefs.h <<_ACEOF
1991 #define PACKAGE_NAME "$PACKAGE_NAME"
1992 _ACEOF
1993
1994 cat >>confdefs.h <<_ACEOF
1995 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1996 _ACEOF
1997
1998 cat >>confdefs.h <<_ACEOF
1999 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2000 _ACEOF
2001
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_STRING "$PACKAGE_STRING"
2004 _ACEOF
2005
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2008 _ACEOF
2009
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_URL "$PACKAGE_URL"
2012 _ACEOF
2013
2014
2015 # Let the site file select an alternate cache file if it wants to.
2016 # Prefer an explicitly selected file to automatically selected ones.
2017 ac_site_file1=NONE
2018 ac_site_file2=NONE
2019 if test -n "$CONFIG_SITE"; then
2020 # We do not want a PATH search for config.site.
2021 case $CONFIG_SITE in #((
2022 -*) ac_site_file1=./$CONFIG_SITE;;
2023 */*) ac_site_file1=$CONFIG_SITE;;
2024 *) ac_site_file1=./$CONFIG_SITE;;
2025 esac
2026 elif test "x$prefix" != xNONE; then
2027 ac_site_file1=$prefix/share/config.site
2028 ac_site_file2=$prefix/etc/config.site
2029 else
2030 ac_site_file1=$ac_default_prefix/share/config.site
2031 ac_site_file2=$ac_default_prefix/etc/config.site
2032 fi
2033 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2034 do
2035 test "x$ac_site_file" = xNONE && continue
2036 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2038 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2039 sed 's/^/| /' "$ac_site_file" >&5
2040 . "$ac_site_file" \
2041 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 as_fn_error $? "failed to load site script $ac_site_file
2044 See \`config.log' for more details" "$LINENO" 5; }
2045 fi
2046 done
2047
2048 if test -r "$cache_file"; then
2049 # Some versions of bash will fail to source /dev/null (special files
2050 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2051 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2053 $as_echo "$as_me: loading cache $cache_file" >&6;}
2054 case $cache_file in
2055 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2056 *) . "./$cache_file";;
2057 esac
2058 fi
2059 else
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2061 $as_echo "$as_me: creating cache $cache_file" >&6;}
2062 >$cache_file
2063 fi
2064
2065 # Check that the precious variables saved in the cache have kept the same
2066 # value.
2067 ac_cache_corrupted=false
2068 for ac_var in $ac_precious_vars; do
2069 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2070 eval ac_new_set=\$ac_env_${ac_var}_set
2071 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2072 eval ac_new_val=\$ac_env_${ac_var}_value
2073 case $ac_old_set,$ac_new_set in
2074 set,)
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2076 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2077 ac_cache_corrupted=: ;;
2078 ,set)
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2080 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2081 ac_cache_corrupted=: ;;
2082 ,);;
2083 *)
2084 if test "x$ac_old_val" != "x$ac_new_val"; then
2085 # differences in whitespace do not lead to failure.
2086 ac_old_val_w=`echo x $ac_old_val`
2087 ac_new_val_w=`echo x $ac_new_val`
2088 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2090 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2091 ac_cache_corrupted=:
2092 else
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2094 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2095 eval $ac_var=\$ac_old_val
2096 fi
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2098 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2100 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2101 fi;;
2102 esac
2103 # Pass precious variables to config.status.
2104 if test "$ac_new_set" = set; then
2105 case $ac_new_val in
2106 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 *) ac_arg=$ac_var=$ac_new_val ;;
2108 esac
2109 case " $ac_configure_args " in
2110 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2111 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2112 esac
2113 fi
2114 done
2115 if $ac_cache_corrupted; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2119 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2120 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2121 fi
2122 ## -------------------- ##
2123 ## Main body of script. ##
2124 ## -------------------- ##
2125
2126 ac_ext=c
2127 ac_cpp='$CPP $CPPFLAGS'
2128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2131
2132
2133
2134
2135 ac_aux_dir=
2136 for ac_dir in ../../../.. "$srcdir"/../../../..; do
2137 if test -f "$ac_dir/install-sh"; then
2138 ac_aux_dir=$ac_dir
2139 ac_install_sh="$ac_aux_dir/install-sh -c"
2140 break
2141 elif test -f "$ac_dir/install.sh"; then
2142 ac_aux_dir=$ac_dir
2143 ac_install_sh="$ac_aux_dir/install.sh -c"
2144 break
2145 elif test -f "$ac_dir/shtool"; then
2146 ac_aux_dir=$ac_dir
2147 ac_install_sh="$ac_aux_dir/shtool install -c"
2148 break
2149 fi
2150 done
2151 if test -z "$ac_aux_dir"; then
2152 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../../.. \"$srcdir\"/../../../.." "$LINENO" 5
2153 fi
2154
2155 # These three variables are undocumented and unsupported,
2156 # and are intended to be withdrawn in a future Autoconf release.
2157 # They can cause serious problems if a builder's source tree is in a directory
2158 # whose full name contains unusual characters.
2159 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2160 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2161 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2162
2163
2164
2165
2166 # Make sure we can run config.sub.
2167 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2168 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2169
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2171 $as_echo_n "checking build system type... " >&6; }
2172 if ${ac_cv_build+:} false; then :
2173 $as_echo_n "(cached) " >&6
2174 else
2175 ac_build_alias=$build_alias
2176 test "x$ac_build_alias" = x &&
2177 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2178 test "x$ac_build_alias" = x &&
2179 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2180 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2181 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2182
2183 fi
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2185 $as_echo "$ac_cv_build" >&6; }
2186 case $ac_cv_build in
2187 *-*-*) ;;
2188 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2189 esac
2190 build=$ac_cv_build
2191 ac_save_IFS=$IFS; IFS='-'
2192 set x $ac_cv_build
2193 shift
2194 build_cpu=$1
2195 build_vendor=$2
2196 shift; shift
2197 # Remember, the first character of IFS is used to create $*,
2198 # except with old shells:
2199 build_os=$*
2200 IFS=$ac_save_IFS
2201 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2202
2203
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2205 $as_echo_n "checking host system type... " >&6; }
2206 if ${ac_cv_host+:} false; then :
2207 $as_echo_n "(cached) " >&6
2208 else
2209 if test "x$host_alias" = x; then
2210 ac_cv_host=$ac_cv_build
2211 else
2212 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2213 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2214 fi
2215
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2218 $as_echo "$ac_cv_host" >&6; }
2219 case $ac_cv_host in
2220 *-*-*) ;;
2221 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2222 esac
2223 host=$ac_cv_host
2224 ac_save_IFS=$IFS; IFS='-'
2225 set x $ac_cv_host
2226 shift
2227 host_cpu=$1
2228 host_vendor=$2
2229 shift; shift
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2232 host_os=$*
2233 IFS=$ac_save_IFS
2234 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2235
2236
2237 am__api_version='1.11'
2238
2239 # Find a good install program. We prefer a C program (faster),
2240 # so one script is as good as another. But avoid the broken or
2241 # incompatible versions:
2242 # SysV /etc/install, /usr/sbin/install
2243 # SunOS /usr/etc/install
2244 # IRIX /sbin/install
2245 # AIX /bin/install
2246 # AmigaOS /C/install, which installs bootblocks on floppy discs
2247 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2248 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2249 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2250 # OS/2's system install, which has a completely different semantic
2251 # ./install, which can be erroneously created by make from ./install.sh.
2252 # Reject install programs that cannot install multiple files.
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2254 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2255 if test -z "$INSTALL"; then
2256 if ${ac_cv_path_install+:} false; then :
2257 $as_echo_n "(cached) " >&6
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 # Account for people who put trailing slashes in PATH elements.
2265 case $as_dir/ in #((
2266 ./ | .// | /[cC]/* | \
2267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2268 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2269 /usr/ucb/* ) ;;
2270 *)
2271 # OSF1 and SCO ODT 3.0 have their own names for install.
2272 # Don't use installbsd from OSF since it installs stuff as root
2273 # by default.
2274 for ac_prog in ginstall scoinst install; do
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2277 if test $ac_prog = install &&
2278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # AIX install. It has an incompatible calling convention.
2280 :
2281 elif test $ac_prog = install &&
2282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2283 # program-specific install script used by HP pwplus--don't use.
2284 :
2285 else
2286 rm -rf conftest.one conftest.two conftest.dir
2287 echo one > conftest.one
2288 echo two > conftest.two
2289 mkdir conftest.dir
2290 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2291 test -s conftest.one && test -s conftest.two &&
2292 test -s conftest.dir/conftest.one &&
2293 test -s conftest.dir/conftest.two
2294 then
2295 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2296 break 3
2297 fi
2298 fi
2299 fi
2300 done
2301 done
2302 ;;
2303 esac
2304
2305 done
2306 IFS=$as_save_IFS
2307
2308 rm -rf conftest.one conftest.two conftest.dir
2309
2310 fi
2311 if test "${ac_cv_path_install+set}" = set; then
2312 INSTALL=$ac_cv_path_install
2313 else
2314 # As a last resort, use the slow shell script. Don't cache a
2315 # value for INSTALL within a source directory, because that will
2316 # break other packages using the cache if that directory is
2317 # removed, or if the value is a relative name.
2318 INSTALL=$ac_install_sh
2319 fi
2320 fi
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2322 $as_echo "$INSTALL" >&6; }
2323
2324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2325 # It thinks the first close brace ends the variable substitution.
2326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2327
2328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2329
2330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2331
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2333 $as_echo_n "checking whether build environment is sane... " >&6; }
2334 # Just in case
2335 sleep 1
2336 echo timestamp > conftest.file
2337 # Reject unsafe characters in $srcdir or the absolute working directory
2338 # name. Accept space and tab only in the latter.
2339 am_lf='
2340 '
2341 case `pwd` in
2342 *[\\\"\#\$\&\'\`$am_lf]*)
2343 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2344 esac
2345 case $srcdir in
2346 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2347 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2348 esac
2349
2350 # Do `set' in a subshell so we don't clobber the current shell's
2351 # arguments. Must try -L first in case configure is actually a
2352 # symlink; some systems play weird games with the mod time of symlinks
2353 # (eg FreeBSD returns the mod time of the symlink's containing
2354 # directory).
2355 if (
2356 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2357 if test "$*" = "X"; then
2358 # -L didn't work.
2359 set X `ls -t "$srcdir/configure" conftest.file`
2360 fi
2361 rm -f conftest.file
2362 if test "$*" != "X $srcdir/configure conftest.file" \
2363 && test "$*" != "X conftest.file $srcdir/configure"; then
2364
2365 # If neither matched, then we have a broken ls. This can happen
2366 # if, for instance, CONFIG_SHELL is bash and it inherits a
2367 # broken ls alias from the environment. This has actually
2368 # happened. Such a system could not be considered "sane".
2369 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2370 alias in your environment" "$LINENO" 5
2371 fi
2372
2373 test "$2" = conftest.file
2374 )
2375 then
2376 # Ok.
2377 :
2378 else
2379 as_fn_error $? "newly created file is older than distributed files!
2380 Check your system clock" "$LINENO" 5
2381 fi
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2383 $as_echo "yes" >&6; }
2384 test "$program_prefix" != NONE &&
2385 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2386 # Use a double $ so make ignores it.
2387 test "$program_suffix" != NONE &&
2388 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2389 # Double any \ or $.
2390 # By default was `s,x,x', remove it if useless.
2391 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2392 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2393
2394 # expand $ac_aux_dir to an absolute path
2395 am_aux_dir=`cd $ac_aux_dir && pwd`
2396
2397 if test x"${MISSING+set}" != xset; then
2398 case $am_aux_dir in
2399 *\ * | *\ *)
2400 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2401 *)
2402 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2403 esac
2404 fi
2405 # Use eval to expand $SHELL
2406 if eval "$MISSING --run true"; then
2407 am_missing_run="$MISSING --run "
2408 else
2409 am_missing_run=
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2411 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2412 fi
2413
2414 if test x"${install_sh}" != xset; then
2415 case $am_aux_dir in
2416 *\ * | *\ *)
2417 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2418 *)
2419 install_sh="\${SHELL} $am_aux_dir/install-sh"
2420 esac
2421 fi
2422
2423 # Installed binaries are usually stripped using `strip' when the user
2424 # run `make install-strip'. However `strip' might not be the right
2425 # tool to use in cross-compilation environments, therefore Automake
2426 # will honor the `STRIP' environment variable to overrule this program.
2427 if test "$cross_compiling" != no; then
2428 if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2430 set dummy ${ac_tool_prefix}strip; ac_word=$2
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if ${ac_cv_prog_STRIP+:} false; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test -n "$STRIP"; then
2437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 STRIP=$ac_cv_prog_STRIP
2457 if test -n "$STRIP"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2459 $as_echo "$STRIP" >&6; }
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2463 fi
2464
2465
2466 fi
2467 if test -z "$ac_cv_prog_STRIP"; then
2468 ac_ct_STRIP=$STRIP
2469 # Extract the first word of "strip", so it can be a program name with args.
2470 set dummy strip; ac_word=$2
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472 $as_echo_n "checking for $ac_word... " >&6; }
2473 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 if test -n "$ac_ct_STRIP"; then
2477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 ac_cv_prog_ac_ct_STRIP="strip"
2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2489 fi
2490 done
2491 done
2492 IFS=$as_save_IFS
2493
2494 fi
2495 fi
2496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2497 if test -n "$ac_ct_STRIP"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2499 $as_echo "$ac_ct_STRIP" >&6; }
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502 $as_echo "no" >&6; }
2503 fi
2504
2505 if test "x$ac_ct_STRIP" = x; then
2506 STRIP=":"
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509 yes:)
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2512 ac_tool_warned=yes ;;
2513 esac
2514 STRIP=$ac_ct_STRIP
2515 fi
2516 else
2517 STRIP="$ac_cv_prog_STRIP"
2518 fi
2519
2520 fi
2521 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2522
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2524 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2525 if test -z "$MKDIR_P"; then
2526 if ${ac_cv_path_mkdir+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_prog in mkdir gmkdir; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2537 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2538 'mkdir (GNU coreutils) '* | \
2539 'mkdir (coreutils) '* | \
2540 'mkdir (fileutils) '4.1*)
2541 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2542 break 3;;
2543 esac
2544 done
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550
2551 test -d ./--version && rmdir ./--version
2552 if test "${ac_cv_path_mkdir+set}" = set; then
2553 MKDIR_P="$ac_cv_path_mkdir -p"
2554 else
2555 # As a last resort, use the slow shell script. Don't cache a
2556 # value for MKDIR_P within a source directory, because that will
2557 # break other packages using the cache if that directory is
2558 # removed, or if the value is a relative name.
2559 MKDIR_P="$ac_install_sh -d"
2560 fi
2561 fi
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2563 $as_echo "$MKDIR_P" >&6; }
2564
2565 mkdir_p="$MKDIR_P"
2566 case $mkdir_p in
2567 [\\/$]* | ?:[\\/]*) ;;
2568 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2569 esac
2570
2571 for ac_prog in gawk mawk nawk awk
2572 do
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy $ac_prog; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_AWK+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$AWK"; then
2581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_AWK="$ac_prog"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594 done
2595 done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 AWK=$ac_cv_prog_AWK
2601 if test -n "$AWK"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2603 $as_echo "$AWK" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609
2610 test -n "$AWK" && break
2611 done
2612
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2614 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2615 set x ${MAKE-make}
2616 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2617 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 cat >conftest.make <<\_ACEOF
2621 SHELL = /bin/sh
2622 all:
2623 @echo '@@@%%%=$(MAKE)=@@@%%%'
2624 _ACEOF
2625 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2627 *@@@%%%=?*=@@@%%%*)
2628 eval ac_cv_prog_make_${ac_make}_set=yes;;
2629 *)
2630 eval ac_cv_prog_make_${ac_make}_set=no;;
2631 esac
2632 rm -f conftest.make
2633 fi
2634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 $as_echo "yes" >&6; }
2637 SET_MAKE=
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2641 SET_MAKE="MAKE=${MAKE-make}"
2642 fi
2643
2644 rm -rf .tst 2>/dev/null
2645 mkdir .tst 2>/dev/null
2646 if test -d .tst; then
2647 am__leading_dot=.
2648 else
2649 am__leading_dot=_
2650 fi
2651 rmdir .tst 2>/dev/null
2652
2653 DEPDIR="${am__leading_dot}deps"
2654
2655 ac_config_commands="$ac_config_commands depfiles"
2656
2657
2658 am_make=${MAKE-make}
2659 cat > confinc << 'END'
2660 am__doit:
2661 @echo this is the am__doit target
2662 .PHONY: am__doit
2663 END
2664 # If we don't find an include directive, just comment out the code.
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2666 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2667 am__include="#"
2668 am__quote=
2669 _am_result=none
2670 # First try GNU make style include.
2671 echo "include confinc" > confmf
2672 # Ignore all kinds of additional output from `make'.
2673 case `$am_make -s -f confmf 2> /dev/null` in #(
2674 *the\ am__doit\ target*)
2675 am__include=include
2676 am__quote=
2677 _am_result=GNU
2678 ;;
2679 esac
2680 # Now try BSD make style include.
2681 if test "$am__include" = "#"; then
2682 echo '.include "confinc"' > confmf
2683 case `$am_make -s -f confmf 2> /dev/null` in #(
2684 *the\ am__doit\ target*)
2685 am__include=.include
2686 am__quote="\""
2687 _am_result=BSD
2688 ;;
2689 esac
2690 fi
2691
2692
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2694 $as_echo "$_am_result" >&6; }
2695 rm -f confinc confmf
2696
2697 # Check whether --enable-dependency-tracking was given.
2698 if test "${enable_dependency_tracking+set}" = set; then :
2699 enableval=$enable_dependency_tracking;
2700 fi
2701
2702 if test "x$enable_dependency_tracking" != xno; then
2703 am_depcomp="$ac_aux_dir/depcomp"
2704 AMDEPBACKSLASH='\'
2705 am__nodep='_no'
2706 fi
2707 if test "x$enable_dependency_tracking" != xno; then
2708 AMDEP_TRUE=
2709 AMDEP_FALSE='#'
2710 else
2711 AMDEP_TRUE='#'
2712 AMDEP_FALSE=
2713 fi
2714
2715
2716
2717 # Check whether --enable-multilib was given.
2718 if test "${enable_multilib+set}" = set; then :
2719 enableval=$enable_multilib; case "${enableval}" in
2720 yes) multilib=yes ;;
2721 no) multilib=no ;;
2722 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2723 esac
2724 else
2725 multilib=yes
2726 fi
2727
2728 # Check whether --enable-target-optspace was given.
2729 if test "${enable_target_optspace+set}" = set; then :
2730 enableval=$enable_target_optspace; case "${enableval}" in
2731 yes) target_optspace=yes ;;
2732 no) target_optspace=no ;;
2733 *) as_fn_error $? "bad value ${enableval} for target-optspace option" "$LINENO" 5 ;;
2734 esac
2735 else
2736 target_optspace=
2737 fi
2738
2739 # Check whether --enable-malloc-debugging was given.
2740 if test "${enable_malloc_debugging+set}" = set; then :
2741 enableval=$enable_malloc_debugging; case "${enableval}" in
2742 yes) malloc_debugging=yes ;;
2743 no) malloc_debugging=no ;;
2744 *) as_fn_error $? "bad value ${enableval} for malloc-debugging option" "$LINENO" 5 ;;
2745 esac
2746 else
2747 malloc_debugging=
2748 fi
2749
2750 # Check whether --enable-newlib-multithread was given.
2751 if test "${enable_newlib_multithread+set}" = set; then :
2752 enableval=$enable_newlib_multithread; case "${enableval}" in
2753 yes) newlib_multithread=yes ;;
2754 no) newlib_multithread=no ;;
2755 *) as_fn_error $? "bad value ${enableval} for newlib-multithread option" "$LINENO" 5 ;;
2756 esac
2757 else
2758 newlib_multithread=yes
2759 fi
2760
2761 # Check whether --enable-newlib-iconv was given.
2762 if test "${enable_newlib_iconv+set}" = set; then :
2763 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2764 case "${enableval}" in
2765 yes) newlib_iconv=yes ;;
2766 no) newlib_iconv=no ;;
2767 *) as_fn_error $? "bad value ${enableval} for newlib-iconv option" "$LINENO" 5 ;;
2768 esac
2769 fi
2770 else
2771 newlib_iconv=${newlib_iconv}
2772 fi
2773
2774 # Check whether --enable-newlib-elix-level was given.
2775 if test "${enable_newlib_elix_level+set}" = set; then :
2776 enableval=$enable_newlib_elix_level; case "${enableval}" in
2777 0) newlib_elix_level=0 ;;
2778 1) newlib_elix_level=1 ;;
2779 2) newlib_elix_level=2 ;;
2780 3) newlib_elix_level=3 ;;
2781 4) newlib_elix_level=4 ;;
2782 *) as_fn_error $? "bad value ${enableval} for newlib-elix-level option" "$LINENO" 5 ;;
2783 esac
2784 else
2785 newlib_elix_level=0
2786 fi
2787
2788 # Check whether --enable-newlib-io-float was given.
2789 if test "${enable_newlib_io_float+set}" = set; then :
2790 enableval=$enable_newlib_io_float; case "${enableval}" in
2791 yes) newlib_io_float=yes ;;
2792 no) newlib_io_float=no ;;
2793 *) as_fn_error $? "bad value ${enableval} for newlib-io-float option" "$LINENO" 5 ;;
2794 esac
2795 else
2796 newlib_io_float=yes
2797 fi
2798
2799 # Check whether --enable-newlib-supplied-syscalls was given.
2800 if test "${enable_newlib_supplied_syscalls+set}" = set; then :
2801 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2802 yes) newlib_may_supply_syscalls=yes ;;
2803 no) newlib_may_supply_syscalls=no ;;
2804 *) as_fn_error $? "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;;
2805 esac
2806 else
2807 newlib_may_supply_syscalls=yes
2808 fi
2809
2810 if test x${newlib_may_supply_syscalls} = xyes; then
2811 MAY_SUPPLY_SYSCALLS_TRUE=
2812 MAY_SUPPLY_SYSCALLS_FALSE='#'
2813 else
2814 MAY_SUPPLY_SYSCALLS_TRUE='#'
2815 MAY_SUPPLY_SYSCALLS_FALSE=
2816 fi
2817
2818
2819 # Check whether --enable-newlib-fno-builtin was given.
2820 if test "${enable_newlib_fno_builtin+set}" = set; then :
2821 enableval=$enable_newlib_fno_builtin; case "${enableval}" in
2822 yes) newlib_fno_builtin=yes ;;
2823 no) newlib_fno_builtin=no ;;
2824 *) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
2825 esac
2826 else
2827 newlib_fno_builtin=
2828 fi
2829
2830
2831
2832 test -z "${with_target_subdir}" && with_target_subdir=.
2833
2834 if test "${srcdir}" = "."; then
2835 if test "${with_target_subdir}" != "."; then
2836 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2837 else
2838 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2839 fi
2840 else
2841 newlib_basedir="${srcdir}/../../.."
2842 fi
2843
2844
2845
2846
2847 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2848 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2849 # is not polluted with repeated "-I."
2850 am__isrc=' -I$(srcdir)'
2851 # test to see if srcdir already configured
2852 if test -f $srcdir/config.status; then
2853 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2854 fi
2855 fi
2856
2857 # test whether we have cygpath
2858 if test -z "$CYGPATH_W"; then
2859 if (cygpath --version) >/dev/null 2>/dev/null; then
2860 CYGPATH_W='cygpath -w'
2861 else
2862 CYGPATH_W=echo
2863 fi
2864 fi
2865
2866
2867 # Define the identity of the package.
2868 PACKAGE='newlib'
2869 VERSION='3.3.0'
2870
2871
2872 # Some tools Automake needs.
2873
2874 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2875
2876
2877 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2878
2879
2880 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2881
2882
2883 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2884
2885
2886 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2887
2888 # We need awk for the "check" target. The system "awk" is bad on
2889 # some platforms.
2890 # Always define AMTAR for backward compatibility. Yes, it's still used
2891 # in the wild :-( We should find a proper way to deprecate it ...
2892 AMTAR='$${TAR-tar}'
2893
2894 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2895
2896
2897
2898
2899
2900
2901 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
2902 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
2903 # are probably using a cross compiler, which will not be able to fully
2904 # link an executable. This should really be fixed in autoconf
2905 # itself.
2906
2907
2908
2909
2910
2911
2912
2913 # Extract the first word of "gcc", so it can be a program name with args.
2914 set dummy gcc; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_CC+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930 ac_cv_prog_CC="gcc"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi
2939 fi
2940 CC=$ac_cv_prog_CC
2941 if test -n "$CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943 $as_echo "$CC" >&6; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2947 fi
2948
2949
2950
2951 depcc="$CC" am_compiler_list=
2952
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2954 $as_echo_n "checking dependency style of $depcc... " >&6; }
2955 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2959 # We make a subdir and do the tests there. Otherwise we can end up
2960 # making bogus files that we don't know about and never remove. For
2961 # instance it was reported that on HP-UX the gcc test will end up
2962 # making a dummy file named `D' -- because `-MD' means `put the output
2963 # in D'.
2964 rm -rf conftest.dir
2965 mkdir conftest.dir
2966 # Copy depcomp to subdir because otherwise we won't find it if we're
2967 # using a relative directory.
2968 cp "$am_depcomp" conftest.dir
2969 cd conftest.dir
2970 # We will build objects and dependencies in a subdirectory because
2971 # it helps to detect inapplicable dependency modes. For instance
2972 # both Tru64's cc and ICC support -MD to output dependencies as a
2973 # side effect of compilation, but ICC will put the dependencies in
2974 # the current directory while Tru64 will put them in the object
2975 # directory.
2976 mkdir sub
2977
2978 am_cv_CC_dependencies_compiler_type=none
2979 if test "$am_compiler_list" = ""; then
2980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2981 fi
2982 am__universal=false
2983 case " $depcc " in #(
2984 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2985 esac
2986
2987 for depmode in $am_compiler_list; do
2988 # Setup a source with many dependencies, because some compilers
2989 # like to wrap large dependency lists on column 80 (with \), and
2990 # we should not choose a depcomp mode which is confused by this.
2991 #
2992 # We need to recreate these files for each test, as the compiler may
2993 # overwrite some of them when testing with obscure command lines.
2994 # This happens at least with the AIX C compiler.
2995 : > sub/conftest.c
2996 for i in 1 2 3 4 5 6; do
2997 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2998 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2999 # Solaris 8's {/usr,}/bin/sh.
3000 touch sub/conftst$i.h
3001 done
3002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3003
3004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3005 # mode. It turns out that the SunPro C++ compiler does not properly
3006 # handle `-M -o', and we need to detect this. Also, some Intel
3007 # versions had trouble with output in subdirs
3008 am__obj=sub/conftest.${OBJEXT-o}
3009 am__minus_obj="-o $am__obj"
3010 case $depmode in
3011 gcc)
3012 # This depmode causes a compiler race in universal mode.
3013 test "$am__universal" = false || continue
3014 ;;
3015 nosideeffect)
3016 # after this tag, mechanisms are not by side-effect, so they'll
3017 # only be used when explicitly requested
3018 if test "x$enable_dependency_tracking" = xyes; then
3019 continue
3020 else
3021 break
3022 fi
3023 ;;
3024 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3025 # This compiler won't grok `-c -o', but also, the minuso test has
3026 # not run yet. These depmodes are late enough in the game, and
3027 # so weak that their functioning should not be impacted.
3028 am__obj=conftest.${OBJEXT-o}
3029 am__minus_obj=
3030 ;;
3031 none) break ;;
3032 esac
3033 if depmode=$depmode \
3034 source=sub/conftest.c object=$am__obj \
3035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3036 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3037 >/dev/null 2>conftest.err &&
3038 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3039 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3040 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3041 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3042 # icc doesn't choke on unknown options, it will just issue warnings
3043 # or remarks (even with -Werror). So we grep stderr for any message
3044 # that says an option was ignored or not supported.
3045 # When given -MP, icc 7.0 and 7.1 complain thusly:
3046 # icc: Command line warning: ignoring option '-M'; no argument required
3047 # The diagnosis changed in icc 8.0:
3048 # icc: Command line remark: option '-MP' not supported
3049 if (grep 'ignoring option' conftest.err ||
3050 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3051 am_cv_CC_dependencies_compiler_type=$depmode
3052 break
3053 fi
3054 fi
3055 done
3056
3057 cd ..
3058 rm -rf conftest.dir
3059 else
3060 am_cv_CC_dependencies_compiler_type=none
3061 fi
3062
3063 fi
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3065 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3066 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3067
3068 if
3069 test "x$enable_dependency_tracking" != xno \
3070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3071 am__fastdepCC_TRUE=
3072 am__fastdepCC_FALSE='#'
3073 else
3074 am__fastdepCC_TRUE='#'
3075 am__fastdepCC_FALSE=
3076 fi
3077
3078
3079 if test -z "$CC"; then
3080 # Extract the first word of "cc", so it can be a program name with args.
3081 set dummy cc; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3089 else
3090 ac_prog_rejected=no
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3099 ac_prog_rejected=yes
3100 continue
3101 fi
3102 ac_cv_prog_CC="cc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106 done
3107 done
3108 IFS=$as_save_IFS
3109
3110 if test $ac_prog_rejected = yes; then
3111 # We found a bogon in the path, so make sure we never use it.
3112 set dummy $ac_cv_prog_CC
3113 shift
3114 if test $# != 0; then
3115 # We chose a different compiler from the bogus one.
3116 # However, it has the same basename, so the bogon will be chosen
3117 # first if we set CC to just the basename; use the full file name.
3118 shift
3119 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3120 fi
3121 fi
3122 fi
3123 fi
3124 CC=$ac_cv_prog_CC
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
3135 fi
3136
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
3138 $as_echo_n "checking whether we are using GNU C... " >&6; }
3139 if ${ac_cv_c_compiler_gnu+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 cat > conftest.c <<EOF
3143 #ifdef __GNUC__
3144 yes;
3145 #endif
3146 EOF
3147 if { ac_try='${CC-cc} -E conftest.c'
3148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3149 (eval $ac_try) 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
3153 ac_cv_c_compiler_gnu=yes
3154 else
3155 ac_cv_c_compiler_gnu=no
3156 fi
3157 fi
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3160
3161 if test $ac_cv_c_compiler_gnu = yes; then
3162 GCC=yes
3163 ac_test_CFLAGS="${CFLAGS+set}"
3164 ac_save_CFLAGS="$CFLAGS"
3165 ac_test_CFLAGS=${CFLAGS+set}
3166 ac_save_CFLAGS=$CFLAGS
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3169 if ${ac_cv_prog_cc_g+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 ac_save_c_werror_flag=$ac_c_werror_flag
3173 ac_c_werror_flag=yes
3174 ac_cv_prog_cc_g=no
3175 CFLAGS="-g"
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178
3179 int
3180 main ()
3181 {
3182
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 if ac_fn_c_try_compile "$LINENO"; then :
3188 ac_cv_prog_cc_g=yes
3189 else
3190 CFLAGS=""
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 int
3195 main ()
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 if ac_fn_c_try_compile "$LINENO"; then :
3203
3204 else
3205 ac_c_werror_flag=$ac_save_c_werror_flag
3206 CFLAGS="-g"
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3209
3210 int
3211 main ()
3212 {
3213
3214 ;
3215 return 0;
3216 }
3217 _ACEOF
3218 if ac_fn_c_try_compile "$LINENO"; then :
3219 ac_cv_prog_cc_g=yes
3220 fi
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 fi
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 fi
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_c_werror_flag=$ac_save_c_werror_flag
3227 fi
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3229 $as_echo "$ac_cv_prog_cc_g" >&6; }
3230 if test "$ac_test_CFLAGS" = set; then
3231 CFLAGS=$ac_save_CFLAGS
3232 elif test $ac_cv_prog_cc_g = yes; then
3233 if test "$GCC" = yes; then
3234 CFLAGS="-g -O2"
3235 else
3236 CFLAGS="-g"
3237 fi
3238 else
3239 if test "$GCC" = yes; then
3240 CFLAGS="-O2"
3241 else
3242 CFLAGS=
3243 fi
3244 fi
3245 if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS="$ac_save_CFLAGS"
3247 elif test $ac_cv_prog_cc_g = yes; then
3248 CFLAGS="-g -O2"
3249 else
3250 CFLAGS="-O2"
3251 fi
3252 else
3253 GCC=
3254 test "${CFLAGS+set}" = set || CFLAGS="-g"
3255 fi
3256
3257
3258 if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}as; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_AS+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 if test -n "$AS"; then
3267 ac_cv_prog_AS="$AS" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_AS="${ac_tool_prefix}as"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 AS=$ac_cv_prog_AS
3287 if test -n "$AS"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3289 $as_echo "$AS" >&6; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296 fi
3297 if test -z "$ac_cv_prog_AS"; then
3298 ac_ct_AS=$AS
3299 # Extract the first word of "as", so it can be a program name with args.
3300 set dummy as; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 if test -n "$ac_ct_AS"; then
3307 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316 ac_cv_prog_ac_ct_AS="as"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3327 if test -n "$ac_ct_AS"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3329 $as_echo "$ac_ct_AS" >&6; }
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335 if test "x$ac_ct_AS" = x; then
3336 AS=""
3337 else
3338 case $cross_compiling:$ac_tool_warned in
3339 yes:)
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342 ac_tool_warned=yes ;;
3343 esac
3344 AS=$ac_ct_AS
3345 fi
3346 else
3347 AS="$ac_cv_prog_AS"
3348 fi
3349
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}ar; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_AR+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if test -n "$AR"; then
3359 ac_cv_prog_AR="$AR" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368 ac_cv_prog_AR="${ac_tool_prefix}ar"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372 done
3373 done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 AR=$ac_cv_prog_AR
3379 if test -n "$AR"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3381 $as_echo "$AR" >&6; }
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388 fi
3389 if test -z "$ac_cv_prog_AR"; then
3390 ac_ct_AR=$AR
3391 # Extract the first word of "ar", so it can be a program name with args.
3392 set dummy ar; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 if test -n "$ac_ct_AR"; then
3399 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 ac_cv_prog_ac_ct_AR="ar"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3419 if test -n "$ac_ct_AR"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3421 $as_echo "$ac_ct_AR" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427 if test "x$ac_ct_AR" = x; then
3428 AR=""
3429 else
3430 case $cross_compiling:$ac_tool_warned in
3431 yes:)
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434 ac_tool_warned=yes ;;
3435 esac
3436 AR=$ac_ct_AR
3437 fi
3438 else
3439 AR="$ac_cv_prog_AR"
3440 fi
3441
3442 if test -n "$ac_tool_prefix"; then
3443 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3444 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if ${ac_cv_prog_RANLIB+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 if test -n "$RANLIB"; then
3451 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3460 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3463 fi
3464 done
3465 done
3466 IFS=$as_save_IFS
3467
3468 fi
3469 fi
3470 RANLIB=$ac_cv_prog_RANLIB
3471 if test -n "$RANLIB"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3473 $as_echo "$RANLIB" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3477 fi
3478
3479
3480 fi
3481 if test -z "$ac_cv_prog_RANLIB"; then
3482 ac_ct_RANLIB=$RANLIB
3483 # Extract the first word of "ranlib", so it can be a program name with args.
3484 set dummy ranlib; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 if test -n "$ac_ct_RANLIB"; then
3491 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_ac_ct_RANLIB="ranlib"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 break 2
3503 fi
3504 done
3505 done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3511 if test -n "$ac_ct_RANLIB"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3513 $as_echo "$ac_ct_RANLIB" >&6; }
3514 else
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3517 fi
3518
3519 if test "x$ac_ct_RANLIB" = x; then
3520 RANLIB=":"
3521 else
3522 case $cross_compiling:$ac_tool_warned in
3523 yes:)
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3526 ac_tool_warned=yes ;;
3527 esac
3528 RANLIB=$ac_ct_RANLIB
3529 fi
3530 else
3531 RANLIB="$ac_cv_prog_RANLIB"
3532 fi
3533
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_READELF+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$READELF"; then
3543 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 READELF=$ac_cv_prog_READELF
3563 if test -n "$READELF"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3565 $as_echo "$READELF" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572 fi
3573 if test -z "$ac_cv_prog_READELF"; then
3574 ac_ct_READELF=$READELF
3575 # Extract the first word of "readelf", so it can be a program name with args.
3576 set dummy readelf; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$ac_ct_READELF"; then
3583 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_ac_ct_READELF="readelf"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3603 if test -n "$ac_ct_READELF"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3605 $as_echo "$ac_ct_READELF" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611 if test "x$ac_ct_READELF" = x; then
3612 READELF=":"
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620 READELF=$ac_ct_READELF
3621 fi
3622 else
3623 READELF="$ac_cv_prog_READELF"
3624 fi
3625
3626
3627
3628
3629 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3630 ac_given_INSTALL=$INSTALL
3631
3632
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3634 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3635 # Check whether --enable-maintainer-mode was given.
3636 if test "${enable_maintainer_mode+set}" = set; then :
3637 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3638 else
3639 USE_MAINTAINER_MODE=no
3640 fi
3641
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3643 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3644 if test $USE_MAINTAINER_MODE = yes; then
3645 MAINTAINER_MODE_TRUE=
3646 MAINTAINER_MODE_FALSE='#'
3647 else
3648 MAINTAINER_MODE_TRUE='#'
3649 MAINTAINER_MODE_FALSE=
3650 fi
3651
3652 MAINT=$MAINTAINER_MODE_TRUE
3653
3654
3655 # By default we simply use the C compiler to build assembly code.
3656
3657 test "${CCAS+set}" = set || CCAS=$CC
3658 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3659
3660
3661
3662
3663 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3664 # at least currently, we never actually build a program, so we never
3665 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3666 # fails, because we are probably configuring with a cross compiler
3667 # which can't create executables. So we include AC_EXEEXT to keep
3668 # automake happy, but we don't execute it, since we don't care about
3669 # the result.
3670 if false; then
3671
3672 dummy_var=1
3673 fi
3674
3675 . ${newlib_basedir}/configure.host
3676
3677 NEWLIB_CFLAGS=${newlib_cflags}
3678
3679
3680 NO_INCLUDE_LIST=${noinclude}
3681
3682
3683 LDFLAGS=${ldflags}
3684
3685
3686 if test x${newlib_elix_level} = x0; then
3687 ELIX_LEVEL_0_TRUE=
3688 ELIX_LEVEL_0_FALSE='#'
3689 else
3690 ELIX_LEVEL_0_TRUE='#'
3691 ELIX_LEVEL_0_FALSE=
3692 fi
3693
3694 if test x${newlib_elix_level} = x1; then
3695 ELIX_LEVEL_1_TRUE=
3696 ELIX_LEVEL_1_FALSE='#'
3697 else
3698 ELIX_LEVEL_1_TRUE='#'
3699 ELIX_LEVEL_1_FALSE=
3700 fi
3701
3702 if test x${newlib_elix_level} = x2; then
3703 ELIX_LEVEL_2_TRUE=
3704 ELIX_LEVEL_2_FALSE='#'
3705 else
3706 ELIX_LEVEL_2_TRUE='#'
3707 ELIX_LEVEL_2_FALSE=
3708 fi
3709
3710 if test x${newlib_elix_level} = x3; then
3711 ELIX_LEVEL_3_TRUE=
3712 ELIX_LEVEL_3_FALSE='#'
3713 else
3714 ELIX_LEVEL_3_TRUE='#'
3715 ELIX_LEVEL_3_FALSE=
3716 fi
3717
3718 if test x${newlib_elix_level} = x4; then
3719 ELIX_LEVEL_4_TRUE=
3720 ELIX_LEVEL_4_FALSE='#'
3721 else
3722 ELIX_LEVEL_4_TRUE='#'
3723 ELIX_LEVEL_4_FALSE=
3724 fi
3725
3726
3727 if test x${use_libtool} = xyes; then
3728 USE_LIBTOOL_TRUE=
3729 USE_LIBTOOL_FALSE='#'
3730 else
3731 USE_LIBTOOL_TRUE='#'
3732 USE_LIBTOOL_FALSE=
3733 fi
3734
3735
3736 # Emit any target-specific warnings.
3737 if test "x${newlib_msg_warn}" != "x"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${newlib_msg_warn}" >&5
3739 $as_echo "$as_me: WARNING: ${newlib_msg_warn}" >&2;}
3740 fi
3741
3742 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3743 # use oext, which is set in configure.host based on the target platform.
3744 OBJEXT=${oext}
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3757 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3758 if ${ac_cv_path_SED+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3762 for ac_i in 1 2 3 4 5 6 7; do
3763 ac_script="$ac_script$as_nl$ac_script"
3764 done
3765 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3766 { ac_script=; unset ac_script;}
3767 if test -z "$SED"; then
3768 ac_path_SED_found=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_prog in sed gsed; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3778 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3779 # Check for GNU ac_path_SED and select it if it is found.
3780 # Check for GNU $ac_path_SED
3781 case `"$ac_path_SED" --version 2>&1` in
3782 *GNU*)
3783 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3784 *)
3785 ac_count=0
3786 $as_echo_n 0123456789 >"conftest.in"
3787 while :
3788 do
3789 cat "conftest.in" "conftest.in" >"conftest.tmp"
3790 mv "conftest.tmp" "conftest.in"
3791 cp "conftest.in" "conftest.nl"
3792 $as_echo '' >> "conftest.nl"
3793 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3795 as_fn_arith $ac_count + 1 && ac_count=$as_val
3796 if test $ac_count -gt ${ac_path_SED_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_SED="$ac_path_SED"
3799 ac_path_SED_max=$ac_count
3800 fi
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3803 done
3804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3805 esac
3806
3807 $ac_path_SED_found && break 3
3808 done
3809 done
3810 done
3811 IFS=$as_save_IFS
3812 if test -z "$ac_cv_path_SED"; then
3813 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3814 fi
3815 else
3816 ac_cv_path_SED=$SED
3817 fi
3818
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3821 $as_echo "$ac_cv_path_SED" >&6; }
3822 SED="$ac_cv_path_SED"
3823 rm -f conftest.sed
3824
3825 test -z "$SED" && SED=sed
3826 Xsed="$SED -e 1s/^X//"
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3839 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3840 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3841
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3843 $as_echo_n "checking how to print strings... " >&6; }
3844 # Test print first, because it will be a builtin if present.
3845 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3846 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3847 ECHO='print -r --'
3848 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3849 ECHO='printf %s\n'
3850 else
3851 # Use this function as a fallback that always works.
3852 func_fallback_echo ()
3853 {
3854 eval 'cat <<_LTECHO_EOF
3855 $1
3856 _LTECHO_EOF'
3857 }
3858 ECHO='func_fallback_echo'
3859 fi
3860
3861 # func_echo_all arg...
3862 # Invoke $ECHO with all args, space-separated.
3863 func_echo_all ()
3864 {
3865 $ECHO ""
3866 }
3867
3868 case "$ECHO" in
3869 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3870 $as_echo "printf" >&6; } ;;
3871 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3872 $as_echo "print -r" >&6; } ;;
3873 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3874 $as_echo "cat" >&6; } ;;
3875 esac
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890 if test "${use_libtool}" = "yes"; then
3891 enable_win32_dll=yes
3892
3893 case $host in
3894 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3895 if test -n "$ac_tool_prefix"; then
3896 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3897 set dummy ${ac_tool_prefix}as; ac_word=$2
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if ${ac_cv_prog_AS+:} false; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 if test -n "$AS"; then
3904 ac_cv_prog_AS="$AS" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 ac_cv_prog_AS="${ac_tool_prefix}as"
3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3916 fi
3917 done
3918 done
3919 IFS=$as_save_IFS
3920
3921 fi
3922 fi
3923 AS=$ac_cv_prog_AS
3924 if test -n "$AS"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3926 $as_echo "$AS" >&6; }
3927 else
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3930 fi
3931
3932
3933 fi
3934 if test -z "$ac_cv_prog_AS"; then
3935 ac_ct_AS=$AS
3936 # Extract the first word of "as", so it can be a program name with args.
3937 set dummy as; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -n "$ac_ct_AS"; then
3944 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953 ac_cv_prog_ac_ct_AS="as"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957 done
3958 done
3959 IFS=$as_save_IFS
3960
3961 fi
3962 fi
3963 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3964 if test -n "$ac_ct_AS"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3966 $as_echo "$ac_ct_AS" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 fi
3971
3972 if test "x$ac_ct_AS" = x; then
3973 AS="false"
3974 else
3975 case $cross_compiling:$ac_tool_warned in
3976 yes:)
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3979 ac_tool_warned=yes ;;
3980 esac
3981 AS=$ac_ct_AS
3982 fi
3983 else
3984 AS="$ac_cv_prog_AS"
3985 fi
3986
3987 if test -n "$ac_tool_prefix"; then
3988 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3989 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if ${ac_cv_prog_DLLTOOL+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -n "$DLLTOOL"; then
3996 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009 done
4010 done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 DLLTOOL=$ac_cv_prog_DLLTOOL
4016 if test -n "$DLLTOOL"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4018 $as_echo "$DLLTOOL" >&6; }
4019 else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 fi
4023
4024
4025 fi
4026 if test -z "$ac_cv_prog_DLLTOOL"; then
4027 ac_ct_DLLTOOL=$DLLTOOL
4028 # Extract the first word of "dlltool", so it can be a program name with args.
4029 set dummy dlltool; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -n "$ac_ct_DLLTOOL"; then
4036 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4040 do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4048 fi
4049 done
4050 done
4051 IFS=$as_save_IFS
4052
4053 fi
4054 fi
4055 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4056 if test -n "$ac_ct_DLLTOOL"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4058 $as_echo "$ac_ct_DLLTOOL" >&6; }
4059 else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4062 fi
4063
4064 if test "x$ac_ct_DLLTOOL" = x; then
4065 DLLTOOL="false"
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068 yes:)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned=yes ;;
4072 esac
4073 DLLTOOL=$ac_ct_DLLTOOL
4074 fi
4075 else
4076 DLLTOOL="$ac_cv_prog_DLLTOOL"
4077 fi
4078
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_OBJDUMP+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -n "$OBJDUMP"; then
4088 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101 done
4102 done
4103 IFS=$as_save_IFS
4104
4105 fi
4106 fi
4107 OBJDUMP=$ac_cv_prog_OBJDUMP
4108 if test -n "$OBJDUMP"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4110 $as_echo "$OBJDUMP" >&6; }
4111 else
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4114 fi
4115
4116
4117 fi
4118 if test -z "$ac_cv_prog_OBJDUMP"; then
4119 ac_ct_OBJDUMP=$OBJDUMP
4120 # Extract the first word of "objdump", so it can be a program name with args.
4121 set dummy objdump; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$ac_ct_OBJDUMP"; then
4128 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4140 fi
4141 done
4142 done
4143 IFS=$as_save_IFS
4144
4145 fi
4146 fi
4147 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4148 if test -n "$ac_ct_OBJDUMP"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4150 $as_echo "$ac_ct_OBJDUMP" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4154 fi
4155
4156 if test "x$ac_ct_OBJDUMP" = x; then
4157 OBJDUMP="false"
4158 else
4159 case $cross_compiling:$ac_tool_warned in
4160 yes:)
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163 ac_tool_warned=yes ;;
4164 esac
4165 OBJDUMP=$ac_ct_OBJDUMP
4166 fi
4167 else
4168 OBJDUMP="$ac_cv_prog_OBJDUMP"
4169 fi
4170
4171 ;;
4172 esac
4173
4174 test -z "$AS" && AS=as
4175
4176
4177
4178
4179
4180 test -z "$DLLTOOL" && DLLTOOL=dlltool
4181
4182
4183
4184
4185
4186 test -z "$OBJDUMP" && OBJDUMP=objdump
4187
4188
4189
4190
4191
4192
4193
4194 case `pwd` in
4195 *\ * | *\ *)
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4197 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4198 esac
4199
4200
4201
4202 macro_version='2.2.7a'
4203 macro_revision='1.3134'
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217 ltmain="$ac_aux_dir/ltmain.sh"
4218
4219 # Backslashify metacharacters that are still active within
4220 # double-quoted strings.
4221 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4222
4223 # Same as above, but do not quote variable references.
4224 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4225
4226 # Sed substitution to delay expansion of an escaped shell variable in a
4227 # double_quote_subst'ed string.
4228 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4229
4230 # Sed substitution to delay expansion of an escaped single quote.
4231 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4232
4233 # Sed substitution to avoid accidental globbing in evaled expressions
4234 no_glob_subst='s/\*/\\\*/g'
4235
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_CC+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$CC"; then
4250 ac_cv_prog_CC="$CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 CC=$ac_cv_prog_CC
4270 if test -n "$CC"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4272 $as_echo "$CC" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278
4279 fi
4280 if test -z "$ac_cv_prog_CC"; then
4281 ac_ct_CC=$CC
4282 # Extract the first word of "gcc", so it can be a program name with args.
4283 set dummy gcc; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$ac_ct_CC"; then
4290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_ac_ct_CC="gcc"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303 done
4304 done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310 if test -n "$ac_ct_CC"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312 $as_echo "$ac_ct_CC" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318 if test "x$ac_ct_CC" = x; then
4319 CC=""
4320 else
4321 case $cross_compiling:$ac_tool_warned in
4322 yes:)
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325 ac_tool_warned=yes ;;
4326 esac
4327 CC=$ac_ct_CC
4328 fi
4329 else
4330 CC="$ac_cv_prog_CC"
4331 fi
4332
4333 if test -z "$CC"; then
4334 if test -n "$ac_tool_prefix"; then
4335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4336 set dummy ${ac_tool_prefix}cc; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_CC+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -n "$CC"; then
4343 ac_cv_prog_CC="$CC" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_prog_CC="${ac_tool_prefix}cc"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356 done
4357 done
4358 IFS=$as_save_IFS
4359
4360 fi
4361 fi
4362 CC=$ac_cv_prog_CC
4363 if test -n "$CC"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4365 $as_echo "$CC" >&6; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4369 fi
4370
4371
4372 fi
4373 fi
4374 if test -z "$CC"; then
4375 # Extract the first word of "cc", so it can be a program name with args.
4376 set dummy cc; ac_word=$2
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378 $as_echo_n "checking for $ac_word... " >&6; }
4379 if ${ac_cv_prog_CC+:} false; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 if test -n "$CC"; then
4383 ac_cv_prog_CC="$CC" # Let the user override the test.
4384 else
4385 ac_prog_rejected=no
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4388 do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4394 ac_prog_rejected=yes
4395 continue
4396 fi
4397 ac_cv_prog_CC="cc"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4400 fi
4401 done
4402 done
4403 IFS=$as_save_IFS
4404
4405 if test $ac_prog_rejected = yes; then
4406 # We found a bogon in the path, so make sure we never use it.
4407 set dummy $ac_cv_prog_CC
4408 shift
4409 if test $# != 0; then
4410 # We chose a different compiler from the bogus one.
4411 # However, it has the same basename, so the bogon will be chosen
4412 # first if we set CC to just the basename; use the full file name.
4413 shift
4414 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4415 fi
4416 fi
4417 fi
4418 fi
4419 CC=$ac_cv_prog_CC
4420 if test -n "$CC"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4422 $as_echo "$CC" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4426 fi
4427
4428
4429 fi
4430 if test -z "$CC"; then
4431 if test -n "$ac_tool_prefix"; then
4432 for ac_prog in cl.exe
4433 do
4434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if ${ac_cv_prog_CC+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if test -n "$CC"; then
4442 ac_cv_prog_CC="$CC" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4454 fi
4455 done
4456 done
4457 IFS=$as_save_IFS
4458
4459 fi
4460 fi
4461 CC=$ac_cv_prog_CC
4462 if test -n "$CC"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4464 $as_echo "$CC" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4468 fi
4469
4470
4471 test -n "$CC" && break
4472 done
4473 fi
4474 if test -z "$CC"; then
4475 ac_ct_CC=$CC
4476 for ac_prog in cl.exe
4477 do
4478 # Extract the first word of "$ac_prog", so it can be a program name with args.
4479 set dummy $ac_prog; ac_word=$2
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 if test -n "$ac_ct_CC"; then
4486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 ac_cv_prog_ac_ct_CC="$ac_prog"
4496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4498 fi
4499 done
4500 done
4501 IFS=$as_save_IFS
4502
4503 fi
4504 fi
4505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4506 if test -n "$ac_ct_CC"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4508 $as_echo "$ac_ct_CC" >&6; }
4509 else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4512 fi
4513
4514
4515 test -n "$ac_ct_CC" && break
4516 done
4517
4518 if test "x$ac_ct_CC" = x; then
4519 CC=""
4520 else
4521 case $cross_compiling:$ac_tool_warned in
4522 yes:)
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525 ac_tool_warned=yes ;;
4526 esac
4527 CC=$ac_ct_CC
4528 fi
4529 fi
4530
4531 fi
4532
4533
4534 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "no acceptable C compiler found in \$PATH
4537 See \`config.log' for more details" "$LINENO" 5; }
4538
4539 # Provide some information about the compiler.
4540 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4541 set X $ac_compile
4542 ac_compiler=$2
4543 for ac_option in --version -v -V -qversion; do
4544 { { ac_try="$ac_compiler $ac_option >&5"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550 $as_echo "$ac_try_echo"; } >&5
4551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4552 ac_status=$?
4553 if test -s conftest.err; then
4554 sed '10a\
4555 ... rest of stderr output deleted ...
4556 10q' conftest.err >conftest.er1
4557 cat conftest.er1 >&5
4558 fi
4559 rm -f conftest.er1 conftest.err
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }
4562 done
4563
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main ()
4569 {
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 ac_clean_files_save=$ac_clean_files
4576 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4577 # Try to create an executable without -o first, disregard a.out.
4578 # It will help us diagnose broken compilers, and finding out an intuition
4579 # of exeext.
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4581 $as_echo_n "checking whether the C compiler works... " >&6; }
4582 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4583
4584 # The possible output files:
4585 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4586
4587 ac_rmfiles=
4588 for ac_file in $ac_files
4589 do
4590 case $ac_file in
4591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4592 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4593 esac
4594 done
4595 rm -f $ac_rmfiles
4596
4597 if { { ac_try="$ac_link_default"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603 $as_echo "$ac_try_echo"; } >&5
4604 (eval "$ac_link_default") 2>&5
4605 ac_status=$?
4606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607 test $ac_status = 0; }; then :
4608 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4609 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4610 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4611 # so that the user can short-circuit this test for compilers unknown to
4612 # Autoconf.
4613 for ac_file in $ac_files ''
4614 do
4615 test -f "$ac_file" || continue
4616 case $ac_file in
4617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4618 ;;
4619 [ab].out )
4620 # We found the default executable, but exeext='' is most
4621 # certainly right.
4622 break;;
4623 *.* )
4624 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4625 then :; else
4626 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4627 fi
4628 # We set ac_cv_exeext here because the later test for it is not
4629 # safe: cross compilers may not add the suffix if given an `-o'
4630 # argument, so we may need to know it at that point already.
4631 # Even if this section looks crufty: it has the advantage of
4632 # actually working.
4633 break;;
4634 * )
4635 break;;
4636 esac
4637 done
4638 test "$ac_cv_exeext" = no && ac_cv_exeext=
4639
4640 else
4641 ac_file=''
4642 fi
4643 if test -z "$ac_file"; then :
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4646 $as_echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651 as_fn_error 77 "C compiler cannot create executables
4652 See \`config.log' for more details" "$LINENO" 5; }
4653 else
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4655 $as_echo "yes" >&6; }
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4658 $as_echo_n "checking for C compiler default output file name... " >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4660 $as_echo "$ac_file" >&6; }
4661 ac_exeext=$ac_cv_exeext
4662
4663 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4664 ac_clean_files=$ac_clean_files_save
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4666 $as_echo_n "checking for suffix of executables... " >&6; }
4667 if { { ac_try="$ac_link"
4668 case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671 esac
4672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673 $as_echo "$ac_try_echo"; } >&5
4674 (eval "$ac_link") 2>&5
4675 ac_status=$?
4676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677 test $ac_status = 0; }; then :
4678 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4679 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4680 # work properly (i.e., refer to `conftest.exe'), while it won't with
4681 # `rm'.
4682 for ac_file in conftest.exe conftest conftest.*; do
4683 test -f "$ac_file" || continue
4684 case $ac_file in
4685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4686 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4687 break;;
4688 * ) break;;
4689 esac
4690 done
4691 else
4692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4694 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4695 See \`config.log' for more details" "$LINENO" 5; }
4696 fi
4697 rm -f conftest conftest$ac_cv_exeext
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4699 $as_echo "$ac_cv_exeext" >&6; }
4700
4701 rm -f conftest.$ac_ext
4702 EXEEXT=$ac_cv_exeext
4703 ac_exeext=$EXEEXT
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4706 #include <stdio.h>
4707 int
4708 main ()
4709 {
4710 FILE *f = fopen ("conftest.out", "w");
4711 return ferror (f) || fclose (f) != 0;
4712
4713 ;
4714 return 0;
4715 }
4716 _ACEOF
4717 ac_clean_files="$ac_clean_files conftest.out"
4718 # Check that the compiler produces executables we can run. If not, either
4719 # the compiler is broken, or we cross compile.
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4721 $as_echo_n "checking whether we are cross compiling... " >&6; }
4722 if test "$cross_compiling" != yes; then
4723 { { ac_try="$ac_link"
4724 case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727 esac
4728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4729 $as_echo "$ac_try_echo"; } >&5
4730 (eval "$ac_link") 2>&5
4731 ac_status=$?
4732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4733 test $ac_status = 0; }
4734 if { ac_try='./conftest$ac_cv_exeext'
4735 { { case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4740 $as_echo "$ac_try_echo"; } >&5
4741 (eval "$ac_try") 2>&5
4742 ac_status=$?
4743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4744 test $ac_status = 0; }; }; then
4745 cross_compiling=no
4746 else
4747 if test "$cross_compiling" = maybe; then
4748 cross_compiling=yes
4749 else
4750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4752 as_fn_error $? "cannot run C compiled programs.
4753 If you meant to cross compile, use \`--host'.
4754 See \`config.log' for more details" "$LINENO" 5; }
4755 fi
4756 fi
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4759 $as_echo "$cross_compiling" >&6; }
4760
4761 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4762 ac_clean_files=$ac_clean_files_save
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4764 $as_echo_n "checking for suffix of object files... " >&6; }
4765 if ${ac_cv_objext+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770
4771 int
4772 main ()
4773 {
4774
4775 ;
4776 return 0;
4777 }
4778 _ACEOF
4779 rm -f conftest.o conftest.obj
4780 if { { ac_try="$ac_compile"
4781 case "(($ac_try" in
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4784 esac
4785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4786 $as_echo "$ac_try_echo"; } >&5
4787 (eval "$ac_compile") 2>&5
4788 ac_status=$?
4789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4790 test $ac_status = 0; }; then :
4791 for ac_file in conftest.o conftest.obj conftest.*; do
4792 test -f "$ac_file" || continue;
4793 case $ac_file in
4794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4795 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4796 break;;
4797 esac
4798 done
4799 else
4800 $as_echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4805 as_fn_error $? "cannot compute suffix of object files: cannot compile
4806 See \`config.log' for more details" "$LINENO" 5; }
4807 fi
4808 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4811 $as_echo "$ac_cv_objext" >&6; }
4812 OBJEXT=$ac_cv_objext
4813 ac_objext=$OBJEXT
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4815 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4816 if ${ac_cv_c_compiler_gnu+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821
4822 int
4823 main ()
4824 {
4825 #ifndef __GNUC__
4826 choke me
4827 #endif
4828
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 ac_compiler_gnu=yes
4835 else
4836 ac_compiler_gnu=no
4837 fi
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4840
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4843 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4844 if test $ac_compiler_gnu = yes; then
4845 GCC=yes
4846 else
4847 GCC=
4848 fi
4849 ac_test_CFLAGS=${CFLAGS+set}
4850 ac_save_CFLAGS=$CFLAGS
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4852 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4853 if ${ac_cv_prog_cc_g+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 ac_save_c_werror_flag=$ac_c_werror_flag
4857 ac_c_werror_flag=yes
4858 ac_cv_prog_cc_g=no
4859 CFLAGS="-g"
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862
4863 int
4864 main ()
4865 {
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 if ac_fn_c_try_compile "$LINENO"; then :
4872 ac_cv_prog_cc_g=yes
4873 else
4874 CFLAGS=""
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877
4878 int
4879 main ()
4880 {
4881
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_c_try_compile "$LINENO"; then :
4887
4888 else
4889 ac_c_werror_flag=$ac_save_c_werror_flag
4890 CFLAGS="-g"
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893
4894 int
4895 main ()
4896 {
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_prog_cc_g=yes
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_c_werror_flag=$ac_save_c_werror_flag
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4913 $as_echo "$ac_cv_prog_cc_g" >&6; }
4914 if test "$ac_test_CFLAGS" = set; then
4915 CFLAGS=$ac_save_CFLAGS
4916 elif test $ac_cv_prog_cc_g = yes; then
4917 if test "$GCC" = yes; then
4918 CFLAGS="-g -O2"
4919 else
4920 CFLAGS="-g"
4921 fi
4922 else
4923 if test "$GCC" = yes; then
4924 CFLAGS="-O2"
4925 else
4926 CFLAGS=
4927 fi
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4930 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4931 if ${ac_cv_prog_cc_c89+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 ac_cv_prog_cc_c89=no
4935 ac_save_CC=$CC
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 #include <stdarg.h>
4939 #include <stdio.h>
4940 #include <sys/types.h>
4941 #include <sys/stat.h>
4942 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4943 struct buf { int x; };
4944 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4945 static char *e (p, i)
4946 char **p;
4947 int i;
4948 {
4949 return p[i];
4950 }
4951 static char *f (char * (*g) (char **, int), char **p, ...)
4952 {
4953 char *s;
4954 va_list v;
4955 va_start (v,p);
4956 s = g (p, va_arg (v,int));
4957 va_end (v);
4958 return s;
4959 }
4960
4961 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4962 function prototypes and stuff, but not '\xHH' hex character constants.
4963 These don't provoke an error unfortunately, instead are silently treated
4964 as 'x'. The following induces an error, until -std is added to get
4965 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4966 array size at least. It's necessary to write '\x00'==0 to get something
4967 that's true only with -std. */
4968 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4969
4970 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4971 inside strings and character constants. */
4972 #define FOO(x) 'x'
4973 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4974
4975 int test (int i, double x);
4976 struct s1 {int (*f) (int a);};
4977 struct s2 {int (*f) (double a);};
4978 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4979 int argc;
4980 char **argv;
4981 int
4982 main ()
4983 {
4984 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4990 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4991 do
4992 CC="$ac_save_CC $ac_arg"
4993 if ac_fn_c_try_compile "$LINENO"; then :
4994 ac_cv_prog_cc_c89=$ac_arg
4995 fi
4996 rm -f core conftest.err conftest.$ac_objext
4997 test "x$ac_cv_prog_cc_c89" != "xno" && break
4998 done
4999 rm -f conftest.$ac_ext
5000 CC=$ac_save_CC
5001
5002 fi
5003 # AC_CACHE_VAL
5004 case "x$ac_cv_prog_cc_c89" in
5005 x)
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5007 $as_echo "none needed" >&6; } ;;
5008 xno)
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5010 $as_echo "unsupported" >&6; } ;;
5011 *)
5012 CC="$CC $ac_cv_prog_cc_c89"
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5014 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5015 esac
5016 if test "x$ac_cv_prog_cc_c89" != xno; then :
5017
5018 fi
5019
5020 ac_ext=c
5021 ac_cpp='$CPP $CPPFLAGS'
5022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025
5026 depcc="$CC" am_compiler_list=
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5029 $as_echo_n "checking dependency style of $depcc... " >&6; }
5030 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5034 # We make a subdir and do the tests there. Otherwise we can end up
5035 # making bogus files that we don't know about and never remove. For
5036 # instance it was reported that on HP-UX the gcc test will end up
5037 # making a dummy file named `D' -- because `-MD' means `put the output
5038 # in D'.
5039 rm -rf conftest.dir
5040 mkdir conftest.dir
5041 # Copy depcomp to subdir because otherwise we won't find it if we're
5042 # using a relative directory.
5043 cp "$am_depcomp" conftest.dir
5044 cd conftest.dir
5045 # We will build objects and dependencies in a subdirectory because
5046 # it helps to detect inapplicable dependency modes. For instance
5047 # both Tru64's cc and ICC support -MD to output dependencies as a
5048 # side effect of compilation, but ICC will put the dependencies in
5049 # the current directory while Tru64 will put them in the object
5050 # directory.
5051 mkdir sub
5052
5053 am_cv_CC_dependencies_compiler_type=none
5054 if test "$am_compiler_list" = ""; then
5055 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5056 fi
5057 am__universal=false
5058 case " $depcc " in #(
5059 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5060 esac
5061
5062 for depmode in $am_compiler_list; do
5063 # Setup a source with many dependencies, because some compilers
5064 # like to wrap large dependency lists on column 80 (with \), and
5065 # we should not choose a depcomp mode which is confused by this.
5066 #
5067 # We need to recreate these files for each test, as the compiler may
5068 # overwrite some of them when testing with obscure command lines.
5069 # This happens at least with the AIX C compiler.
5070 : > sub/conftest.c
5071 for i in 1 2 3 4 5 6; do
5072 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5073 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5074 # Solaris 8's {/usr,}/bin/sh.
5075 touch sub/conftst$i.h
5076 done
5077 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5078
5079 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5080 # mode. It turns out that the SunPro C++ compiler does not properly
5081 # handle `-M -o', and we need to detect this. Also, some Intel
5082 # versions had trouble with output in subdirs
5083 am__obj=sub/conftest.${OBJEXT-o}
5084 am__minus_obj="-o $am__obj"
5085 case $depmode in
5086 gcc)
5087 # This depmode causes a compiler race in universal mode.
5088 test "$am__universal" = false || continue
5089 ;;
5090 nosideeffect)
5091 # after this tag, mechanisms are not by side-effect, so they'll
5092 # only be used when explicitly requested
5093 if test "x$enable_dependency_tracking" = xyes; then
5094 continue
5095 else
5096 break
5097 fi
5098 ;;
5099 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5100 # This compiler won't grok `-c -o', but also, the minuso test has
5101 # not run yet. These depmodes are late enough in the game, and
5102 # so weak that their functioning should not be impacted.
5103 am__obj=conftest.${OBJEXT-o}
5104 am__minus_obj=
5105 ;;
5106 none) break ;;
5107 esac
5108 if depmode=$depmode \
5109 source=sub/conftest.c object=$am__obj \
5110 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5111 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5112 >/dev/null 2>conftest.err &&
5113 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5114 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5115 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5116 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5117 # icc doesn't choke on unknown options, it will just issue warnings
5118 # or remarks (even with -Werror). So we grep stderr for any message
5119 # that says an option was ignored or not supported.
5120 # When given -MP, icc 7.0 and 7.1 complain thusly:
5121 # icc: Command line warning: ignoring option '-M'; no argument required
5122 # The diagnosis changed in icc 8.0:
5123 # icc: Command line remark: option '-MP' not supported
5124 if (grep 'ignoring option' conftest.err ||
5125 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5126 am_cv_CC_dependencies_compiler_type=$depmode
5127 break
5128 fi
5129 fi
5130 done
5131
5132 cd ..
5133 rm -rf conftest.dir
5134 else
5135 am_cv_CC_dependencies_compiler_type=none
5136 fi
5137
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5140 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5141 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5142
5143 if
5144 test "x$enable_dependency_tracking" != xno \
5145 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5146 am__fastdepCC_TRUE=
5147 am__fastdepCC_FALSE='#'
5148 else
5149 am__fastdepCC_TRUE='#'
5150 am__fastdepCC_FALSE=
5151 fi
5152
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5155 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5156 if ${ac_cv_path_GREP+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if test -z "$GREP"; then
5160 ac_path_GREP_found=false
5161 # Loop through the user's path and test for each of PROGNAME-LIST
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_prog in grep ggrep; do
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5171 # Check for GNU ac_path_GREP and select it if it is found.
5172 # Check for GNU $ac_path_GREP
5173 case `"$ac_path_GREP" --version 2>&1` in
5174 *GNU*)
5175 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5176 *)
5177 ac_count=0
5178 $as_echo_n 0123456789 >"conftest.in"
5179 while :
5180 do
5181 cat "conftest.in" "conftest.in" >"conftest.tmp"
5182 mv "conftest.tmp" "conftest.in"
5183 cp "conftest.in" "conftest.nl"
5184 $as_echo 'GREP' >> "conftest.nl"
5185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5187 as_fn_arith $ac_count + 1 && ac_count=$as_val
5188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5189 # Best one so far, save it but keep looking for a better one
5190 ac_cv_path_GREP="$ac_path_GREP"
5191 ac_path_GREP_max=$ac_count
5192 fi
5193 # 10*(2^10) chars as input seems more than enough
5194 test $ac_count -gt 10 && break
5195 done
5196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5197 esac
5198
5199 $ac_path_GREP_found && break 3
5200 done
5201 done
5202 done
5203 IFS=$as_save_IFS
5204 if test -z "$ac_cv_path_GREP"; then
5205 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5206 fi
5207 else
5208 ac_cv_path_GREP=$GREP
5209 fi
5210
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5213 $as_echo "$ac_cv_path_GREP" >&6; }
5214 GREP="$ac_cv_path_GREP"
5215
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5218 $as_echo_n "checking for egrep... " >&6; }
5219 if ${ac_cv_path_EGREP+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5223 then ac_cv_path_EGREP="$GREP -E"
5224 else
5225 if test -z "$EGREP"; then
5226 ac_path_EGREP_found=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5230 do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_prog in egrep; do
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5236 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5237 # Check for GNU ac_path_EGREP and select it if it is found.
5238 # Check for GNU $ac_path_EGREP
5239 case `"$ac_path_EGREP" --version 2>&1` in
5240 *GNU*)
5241 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5242 *)
5243 ac_count=0
5244 $as_echo_n 0123456789 >"conftest.in"
5245 while :
5246 do
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'EGREP' >> "conftest.nl"
5251 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5253 as_fn_arith $ac_count + 1 && ac_count=$as_val
5254 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_EGREP="$ac_path_EGREP"
5257 ac_path_EGREP_max=$ac_count
5258 fi
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5261 done
5262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5263 esac
5264
5265 $ac_path_EGREP_found && break 3
5266 done
5267 done
5268 done
5269 IFS=$as_save_IFS
5270 if test -z "$ac_cv_path_EGREP"; then
5271 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5272 fi
5273 else
5274 ac_cv_path_EGREP=$EGREP
5275 fi
5276
5277 fi
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5280 $as_echo "$ac_cv_path_EGREP" >&6; }
5281 EGREP="$ac_cv_path_EGREP"
5282
5283
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5285 $as_echo_n "checking for fgrep... " >&6; }
5286 if ${ac_cv_path_FGREP+:} false; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5290 then ac_cv_path_FGREP="$GREP -F"
5291 else
5292 if test -z "$FGREP"; then
5293 ac_path_FGREP_found=false
5294 # Loop through the user's path and test for each of PROGNAME-LIST
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5297 do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_prog in fgrep; do
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5303 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5304 # Check for GNU ac_path_FGREP and select it if it is found.
5305 # Check for GNU $ac_path_FGREP
5306 case `"$ac_path_FGREP" --version 2>&1` in
5307 *GNU*)
5308 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5309 *)
5310 ac_count=0
5311 $as_echo_n 0123456789 >"conftest.in"
5312 while :
5313 do
5314 cat "conftest.in" "conftest.in" >"conftest.tmp"
5315 mv "conftest.tmp" "conftest.in"
5316 cp "conftest.in" "conftest.nl"
5317 $as_echo 'FGREP' >> "conftest.nl"
5318 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5320 as_fn_arith $ac_count + 1 && ac_count=$as_val
5321 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5322 # Best one so far, save it but keep looking for a better one
5323 ac_cv_path_FGREP="$ac_path_FGREP"
5324 ac_path_FGREP_max=$ac_count
5325 fi
5326 # 10*(2^10) chars as input seems more than enough
5327 test $ac_count -gt 10 && break
5328 done
5329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5330 esac
5331
5332 $ac_path_FGREP_found && break 3
5333 done
5334 done
5335 done
5336 IFS=$as_save_IFS
5337 if test -z "$ac_cv_path_FGREP"; then
5338 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5339 fi
5340 else
5341 ac_cv_path_FGREP=$FGREP
5342 fi
5343
5344 fi
5345 fi
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5347 $as_echo "$ac_cv_path_FGREP" >&6; }
5348 FGREP="$ac_cv_path_FGREP"
5349
5350
5351 test -z "$GREP" && GREP=grep
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371 # Check whether --with-gnu-ld was given.
5372 if test "${with_gnu_ld+set}" = set; then :
5373 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5374 else
5375 with_gnu_ld=no
5376 fi
5377
5378 ac_prog=ld
5379 if test "$GCC" = yes; then
5380 # Check if gcc -print-prog-name=ld gives a path.
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5382 $as_echo_n "checking for ld used by $CC... " >&6; }
5383 case $host in
5384 *-*-mingw*)
5385 # gcc leaves a trailing carriage return which upsets mingw
5386 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5387 *)
5388 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5389 esac
5390 case $ac_prog in
5391 # Accept absolute paths.
5392 [\\/]* | ?:[\\/]*)
5393 re_direlt='/[^/][^/]*/\.\./'
5394 # Canonicalize the pathname of ld
5395 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5396 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5397 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5398 done
5399 test -z "$LD" && LD="$ac_prog"
5400 ;;
5401 "")
5402 # If it fails, then pretend we aren't using GCC.
5403 ac_prog=ld
5404 ;;
5405 *)
5406 # If it is relative, then search for the first ld in PATH.
5407 with_gnu_ld=unknown
5408 ;;
5409 esac
5410 elif test "$with_gnu_ld" = yes; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5412 $as_echo_n "checking for GNU ld... " >&6; }
5413 else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5415 $as_echo_n "checking for non-GNU ld... " >&6; }
5416 fi
5417 if ${lt_cv_path_LD+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 if test -z "$LD"; then
5421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5422 for ac_dir in $PATH; do
5423 IFS="$lt_save_ifs"
5424 test -z "$ac_dir" && ac_dir=.
5425 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5426 lt_cv_path_LD="$ac_dir/$ac_prog"
5427 # Check to see if the program is GNU ld. I'd rather use --version,
5428 # but apparently some variants of GNU ld only accept -v.
5429 # Break only if it was the GNU/non-GNU ld that we prefer.
5430 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5431 *GNU* | *'with BFD'*)
5432 test "$with_gnu_ld" != no && break
5433 ;;
5434 *)
5435 test "$with_gnu_ld" != yes && break
5436 ;;
5437 esac
5438 fi
5439 done
5440 IFS="$lt_save_ifs"
5441 else
5442 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5443 fi
5444 fi
5445
5446 LD="$lt_cv_path_LD"
5447 if test -n "$LD"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5449 $as_echo "$LD" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5456 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5457 if ${lt_cv_prog_gnu_ld+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5461 case `$LD -v 2>&1 </dev/null` in
5462 *GNU* | *'with BFD'*)
5463 lt_cv_prog_gnu_ld=yes
5464 ;;
5465 *)
5466 lt_cv_prog_gnu_ld=no
5467 ;;
5468 esac
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5471 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5472 with_gnu_ld=$lt_cv_prog_gnu_ld
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5483 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5484 if ${lt_cv_path_NM+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if test -n "$NM"; then
5488 # Let the user override the test.
5489 lt_cv_path_NM="$NM"
5490 else
5491 lt_nm_to_check="${ac_tool_prefix}nm"
5492 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5493 lt_nm_to_check="$lt_nm_to_check nm"
5494 fi
5495 for lt_tmp_nm in $lt_nm_to_check; do
5496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5497 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5498 IFS="$lt_save_ifs"
5499 test -z "$ac_dir" && ac_dir=.
5500 tmp_nm="$ac_dir/$lt_tmp_nm"
5501 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5502 # Check to see if the nm accepts a BSD-compat flag.
5503 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5504 # nm: unknown option "B" ignored
5505 # Tru64's nm complains that /dev/null is an invalid object file
5506 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5507 */dev/null* | *'Invalid file or object type'*)
5508 lt_cv_path_NM="$tmp_nm -B"
5509 break
5510 ;;
5511 *)
5512 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5513 */dev/null*)
5514 lt_cv_path_NM="$tmp_nm -p"
5515 break
5516 ;;
5517 *)
5518 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5519 continue # so that we can try to find one that supports BSD flags
5520 ;;
5521 esac
5522 ;;
5523 esac
5524 fi
5525 done
5526 IFS="$lt_save_ifs"
5527 done
5528 : ${lt_cv_path_NM=no}
5529 fi
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5532 $as_echo "$lt_cv_path_NM" >&6; }
5533 if test "$lt_cv_path_NM" != "no"; then
5534 NM="$lt_cv_path_NM"
5535 else
5536 # Didn't find any BSD compatible name lister, look for dumpbin.
5537 if test -n "$DUMPBIN"; then :
5538 # Let the user override the test.
5539 else
5540 if test -n "$ac_tool_prefix"; then
5541 for ac_prog in dumpbin "link -dump"
5542 do
5543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_DUMPBIN+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$DUMPBIN"; then
5551 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5563 fi
5564 done
5565 done
5566 IFS=$as_save_IFS
5567
5568 fi
5569 fi
5570 DUMPBIN=$ac_cv_prog_DUMPBIN
5571 if test -n "$DUMPBIN"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5573 $as_echo "$DUMPBIN" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5577 fi
5578
5579
5580 test -n "$DUMPBIN" && break
5581 done
5582 fi
5583 if test -z "$DUMPBIN"; then
5584 ac_ct_DUMPBIN=$DUMPBIN
5585 for ac_prog in dumpbin "link -dump"
5586 do
5587 # Extract the first word of "$ac_prog", so it can be a program name with args.
5588 set dummy $ac_prog; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 if test -n "$ac_ct_DUMPBIN"; then
5595 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5607 fi
5608 done
5609 done
5610 IFS=$as_save_IFS
5611
5612 fi
5613 fi
5614 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5615 if test -n "$ac_ct_DUMPBIN"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5617 $as_echo "$ac_ct_DUMPBIN" >&6; }
5618 else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5621 fi
5622
5623
5624 test -n "$ac_ct_DUMPBIN" && break
5625 done
5626
5627 if test "x$ac_ct_DUMPBIN" = x; then
5628 DUMPBIN=":"
5629 else
5630 case $cross_compiling:$ac_tool_warned in
5631 yes:)
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5634 ac_tool_warned=yes ;;
5635 esac
5636 DUMPBIN=$ac_ct_DUMPBIN
5637 fi
5638 fi
5639
5640 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5641 *COFF*)
5642 DUMPBIN="$DUMPBIN -symbols"
5643 ;;
5644 *)
5645 DUMPBIN=:
5646 ;;
5647 esac
5648 fi
5649
5650 if test "$DUMPBIN" != ":"; then
5651 NM="$DUMPBIN"
5652 fi
5653 fi
5654 test -z "$NM" && NM=nm
5655
5656
5657
5658
5659
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5662 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5663 if ${lt_cv_nm_interface+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 lt_cv_nm_interface="BSD nm"
5667 echo "int some_variable = 0;" > conftest.$ac_ext
5668 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5669 (eval "$ac_compile" 2>conftest.err)
5670 cat conftest.err >&5
5671 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5672 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5673 cat conftest.err >&5
5674 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5675 cat conftest.out >&5
5676 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5677 lt_cv_nm_interface="MS dumpbin"
5678 fi
5679 rm -f conftest*
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5682 $as_echo "$lt_cv_nm_interface" >&6; }
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5685 $as_echo_n "checking whether ln -s works... " >&6; }
5686 LN_S=$as_ln_s
5687 if test "$LN_S" = "ln -s"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5689 $as_echo "yes" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5692 $as_echo "no, using $LN_S" >&6; }
5693 fi
5694
5695 # find the maximum length of command line arguments
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5697 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5698 if ${lt_cv_sys_max_cmd_len+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 i=0
5702 teststring="ABCD"
5703
5704 case $build_os in
5705 msdosdjgpp*)
5706 # On DJGPP, this test can blow up pretty badly due to problems in libc
5707 # (any single argument exceeding 2000 bytes causes a buffer overrun
5708 # during glob expansion). Even if it were fixed, the result of this
5709 # check would be larger than it should be.
5710 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5711 ;;
5712
5713 gnu*)
5714 # Under GNU Hurd, this test is not required because there is
5715 # no limit to the length of command line arguments.
5716 # Libtool will interpret -1 as no limit whatsoever
5717 lt_cv_sys_max_cmd_len=-1;
5718 ;;
5719
5720 cygwin* | mingw* | cegcc*)
5721 # On Win9x/ME, this test blows up -- it succeeds, but takes
5722 # about 5 minutes as the teststring grows exponentially.
5723 # Worse, since 9x/ME are not pre-emptively multitasking,
5724 # you end up with a "frozen" computer, even though with patience
5725 # the test eventually succeeds (with a max line length of 256k).
5726 # Instead, let's just punt: use the minimum linelength reported by
5727 # all of the supported platforms: 8192 (on NT/2K/XP).
5728 lt_cv_sys_max_cmd_len=8192;
5729 ;;
5730
5731 mint*)
5732 # On MiNT this can take a long time and run out of memory.
5733 lt_cv_sys_max_cmd_len=8192;
5734 ;;
5735
5736 amigaos*)
5737 # On AmigaOS with pdksh, this test takes hours, literally.
5738 # So we just punt and use a minimum line length of 8192.
5739 lt_cv_sys_max_cmd_len=8192;
5740 ;;
5741
5742 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5743 # This has been around since 386BSD, at least. Likely further.
5744 if test -x /sbin/sysctl; then
5745 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5746 elif test -x /usr/sbin/sysctl; then
5747 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5748 else
5749 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5750 fi
5751 # And add a safety zone
5752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5754 ;;
5755
5756 interix*)
5757 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5758 lt_cv_sys_max_cmd_len=196608
5759 ;;
5760
5761 osf*)
5762 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5763 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5764 # nice to cause kernel panics so lets avoid the loop below.
5765 # First set a reasonable default.
5766 lt_cv_sys_max_cmd_len=16384
5767 #
5768 if test -x /sbin/sysconfig; then
5769 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5770 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5771 esac
5772 fi
5773 ;;
5774 sco3.2v5*)
5775 lt_cv_sys_max_cmd_len=102400
5776 ;;
5777 sysv5* | sco5v6* | sysv4.2uw2*)
5778 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5779 if test -n "$kargmax"; then
5780 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5781 else
5782 lt_cv_sys_max_cmd_len=32768
5783 fi
5784 ;;
5785 *)
5786 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5787 if test -n "$lt_cv_sys_max_cmd_len"; then
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5790 else
5791 # Make teststring a little bigger before we do anything with it.
5792 # a 1K string should be a reasonable start.
5793 for i in 1 2 3 4 5 6 7 8 ; do
5794 teststring=$teststring$teststring
5795 done
5796 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5797 # If test is not a shell built-in, we'll probably end up computing a
5798 # maximum length that is only half of the actual maximum length, but
5799 # we can't tell.
5800 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5801 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5802 test $i != 17 # 1/2 MB should be enough
5803 do
5804 i=`expr $i + 1`
5805 teststring=$teststring$teststring
5806 done
5807 # Only check the string length outside the loop.
5808 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5809 teststring=
5810 # Add a significant safety factor because C++ compilers can tack on
5811 # massive amounts of additional arguments before passing them to the
5812 # linker. It appears as though 1/2 is a usable value.
5813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5814 fi
5815 ;;
5816 esac
5817
5818 fi
5819
5820 if test -n $lt_cv_sys_max_cmd_len ; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5822 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5825 $as_echo "none" >&6; }
5826 fi
5827 max_cmd_len=$lt_cv_sys_max_cmd_len
5828
5829
5830
5831
5832
5833
5834 : ${CP="cp -f"}
5835 : ${MV="mv -f"}
5836 : ${RM="rm -f"}
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5839 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5840 # Try some XSI features
5841 xsi_shell=no
5842 ( _lt_dummy="a/b/c"
5843 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5844 = c,a/b,, \
5845 && eval 'test $(( 1 + 1 )) -eq 2 \
5846 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5847 && xsi_shell=yes
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5849 $as_echo "$xsi_shell" >&6; }
5850
5851
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5853 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5854 lt_shell_append=no
5855 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5856 >/dev/null 2>&1 \
5857 && lt_shell_append=yes
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5859 $as_echo "$lt_shell_append" >&6; }
5860
5861
5862 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5863 lt_unset=unset
5864 else
5865 lt_unset=false
5866 fi
5867
5868
5869
5870
5871
5872 # test EBCDIC or ASCII
5873 case `echo X|tr X '\101'` in
5874 A) # ASCII based system
5875 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5876 lt_SP2NL='tr \040 \012'
5877 lt_NL2SP='tr \015\012 \040\040'
5878 ;;
5879 *) # EBCDIC based system
5880 lt_SP2NL='tr \100 \n'
5881 lt_NL2SP='tr \r\n \100\100'
5882 ;;
5883 esac
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5894 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5895 if ${lt_cv_ld_reload_flag+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 lt_cv_ld_reload_flag='-r'
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5901 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5902 reload_flag=$lt_cv_ld_reload_flag
5903 case $reload_flag in
5904 "" | " "*) ;;
5905 *) reload_flag=" $reload_flag" ;;
5906 esac
5907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5908 case $host_os in
5909 darwin*)
5910 if test "$GCC" = yes; then
5911 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5912 else
5913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5914 fi
5915 ;;
5916 esac
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926 if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_OBJDUMP+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if test -n "$OBJDUMP"; then
5935 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948 done
5949 done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 OBJDUMP=$ac_cv_prog_OBJDUMP
5955 if test -n "$OBJDUMP"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5957 $as_echo "$OBJDUMP" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963
5964 fi
5965 if test -z "$ac_cv_prog_OBJDUMP"; then
5966 ac_ct_OBJDUMP=$OBJDUMP
5967 # Extract the first word of "objdump", so it can be a program name with args.
5968 set dummy objdump; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if test -n "$ac_ct_OBJDUMP"; then
5975 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992 fi
5993 fi
5994 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5995 if test -n "$ac_ct_OBJDUMP"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5997 $as_echo "$ac_ct_OBJDUMP" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6001 fi
6002
6003 if test "x$ac_ct_OBJDUMP" = x; then
6004 OBJDUMP="false"
6005 else
6006 case $cross_compiling:$ac_tool_warned in
6007 yes:)
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6010 ac_tool_warned=yes ;;
6011 esac
6012 OBJDUMP=$ac_ct_OBJDUMP
6013 fi
6014 else
6015 OBJDUMP="$ac_cv_prog_OBJDUMP"
6016 fi
6017
6018 test -z "$OBJDUMP" && OBJDUMP=objdump
6019
6020
6021
6022
6023
6024
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6026 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6027 if ${lt_cv_deplibs_check_method+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 lt_cv_file_magic_cmd='$MAGIC_CMD'
6031 lt_cv_file_magic_test_file=
6032 lt_cv_deplibs_check_method='unknown'
6033 # Need to set the preceding variable on all platforms that support
6034 # interlibrary dependencies.
6035 # 'none' -- dependencies not supported.
6036 # `unknown' -- same as none, but documents that we really don't know.
6037 # 'pass_all' -- all dependencies passed with no checks.
6038 # 'test_compile' -- check by making test program.
6039 # 'file_magic [[regex]]' -- check by looking for files in library path
6040 # which responds to the $file_magic_cmd with a given extended regex.
6041 # If you have `file' or equivalent on your system and you're not sure
6042 # whether `pass_all' will *always* work, you probably want this one.
6043
6044 case $host_os in
6045 aix[4-9]*)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048
6049 beos*)
6050 lt_cv_deplibs_check_method=pass_all
6051 ;;
6052
6053 bsdi[45]*)
6054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6055 lt_cv_file_magic_cmd='/usr/bin/file -L'
6056 lt_cv_file_magic_test_file=/shlib/libc.so
6057 ;;
6058
6059 cygwin*)
6060 # func_win32_libid is a shell function defined in ltmain.sh
6061 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6062 lt_cv_file_magic_cmd='func_win32_libid'
6063 ;;
6064
6065 mingw* | pw32*)
6066 # Base MSYS/MinGW do not provide the 'file' command needed by
6067 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6068 # unless we find 'file', for example because we are cross-compiling.
6069 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6070 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6072 lt_cv_file_magic_cmd='func_win32_libid'
6073 else
6074 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6075 lt_cv_file_magic_cmd='$OBJDUMP -f'
6076 fi
6077 ;;
6078
6079 cegcc*)
6080 # use the weaker test based on 'objdump'. See mingw*.
6081 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6082 lt_cv_file_magic_cmd='$OBJDUMP -f'
6083 ;;
6084
6085 darwin* | rhapsody*)
6086 lt_cv_deplibs_check_method=pass_all
6087 ;;
6088
6089 freebsd* | dragonfly*)
6090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6091 case $host_cpu in
6092 i*86 )
6093 # Not sure whether the presence of OpenBSD here was a mistake.
6094 # Let's accept both of them until this is cleared up.
6095 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6096 lt_cv_file_magic_cmd=/usr/bin/file
6097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6098 ;;
6099 esac
6100 else
6101 lt_cv_deplibs_check_method=pass_all
6102 fi
6103 ;;
6104
6105 gnu*)
6106 lt_cv_deplibs_check_method=pass_all
6107 ;;
6108
6109 haiku*)
6110 lt_cv_deplibs_check_method=pass_all
6111 ;;
6112
6113 hpux10.20* | hpux11*)
6114 lt_cv_file_magic_cmd=/usr/bin/file
6115 case $host_cpu in
6116 ia64*)
6117 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6118 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6119 ;;
6120 hppa*64*)
6121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6122 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6123 ;;
6124 *)
6125 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6126 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6127 ;;
6128 esac
6129 ;;
6130
6131 interix[3-9]*)
6132 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6134 ;;
6135
6136 irix5* | irix6* | nonstopux*)
6137 case $LD in
6138 *-32|*"-32 ") libmagic=32-bit;;
6139 *-n32|*"-n32 ") libmagic=N32;;
6140 *-64|*"-64 ") libmagic=64-bit;;
6141 *) libmagic=never-match;;
6142 esac
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145
6146 # This must be Linux ELF.
6147 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6148 lt_cv_deplibs_check_method=pass_all
6149 ;;
6150
6151 netbsd*)
6152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6154 else
6155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6156 fi
6157 ;;
6158
6159 newos6*)
6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6161 lt_cv_file_magic_cmd=/usr/bin/file
6162 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6163 ;;
6164
6165 *nto* | *qnx*)
6166 lt_cv_deplibs_check_method=pass_all
6167 ;;
6168
6169 openbsd*)
6170 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6172 else
6173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6174 fi
6175 ;;
6176
6177 osf3* | osf4* | osf5*)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
6180
6181 rdos*)
6182 lt_cv_deplibs_check_method=pass_all
6183 ;;
6184
6185 solaris*)
6186 lt_cv_deplibs_check_method=pass_all
6187 ;;
6188
6189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6190 lt_cv_deplibs_check_method=pass_all
6191 ;;
6192
6193 sysv4 | sysv4.3*)
6194 case $host_vendor in
6195 motorola)
6196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6197 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6198 ;;
6199 ncr)
6200 lt_cv_deplibs_check_method=pass_all
6201 ;;
6202 sequent)
6203 lt_cv_file_magic_cmd='/bin/file'
6204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6205 ;;
6206 sni)
6207 lt_cv_file_magic_cmd='/bin/file'
6208 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6209 lt_cv_file_magic_test_file=/lib/libc.so
6210 ;;
6211 siemens)
6212 lt_cv_deplibs_check_method=pass_all
6213 ;;
6214 pc)
6215 lt_cv_deplibs_check_method=pass_all
6216 ;;
6217 esac
6218 ;;
6219
6220 tpf*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223 esac
6224
6225 fi
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6227 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6228 file_magic_cmd=$lt_cv_file_magic_cmd
6229 deplibs_check_method=$lt_cv_deplibs_check_method
6230 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}ar; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if ${ac_cv_prog_AR+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 if test -n "$AR"; then
6252 ac_cv_prog_AR="$AR" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_AR="${ac_tool_prefix}ar"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 AR=$ac_cv_prog_AR
6272 if test -n "$AR"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6274 $as_echo "$AR" >&6; }
6275 else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280
6281 fi
6282 if test -z "$ac_cv_prog_AR"; then
6283 ac_ct_AR=$AR
6284 # Extract the first word of "ar", so it can be a program name with args.
6285 set dummy ar; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 if test -n "$ac_ct_AR"; then
6292 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_ac_ct_AR="ar"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 break 2
6304 fi
6305 done
6306 done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6312 if test -n "$ac_ct_AR"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6314 $as_echo "$ac_ct_AR" >&6; }
6315 else
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320 if test "x$ac_ct_AR" = x; then
6321 AR="false"
6322 else
6323 case $cross_compiling:$ac_tool_warned in
6324 yes:)
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327 ac_tool_warned=yes ;;
6328 esac
6329 AR=$ac_ct_AR
6330 fi
6331 else
6332 AR="$ac_cv_prog_AR"
6333 fi
6334
6335 test -z "$AR" && AR=ar
6336 test -z "$AR_FLAGS" && AR_FLAGS=cru
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348 if test -n "$ac_tool_prefix"; then
6349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6350 set dummy ${ac_tool_prefix}strip; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_STRIP+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 if test -n "$STRIP"; then
6357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370 done
6371 done
6372 IFS=$as_save_IFS
6373
6374 fi
6375 fi
6376 STRIP=$ac_cv_prog_STRIP
6377 if test -n "$STRIP"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6379 $as_echo "$STRIP" >&6; }
6380 else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6383 fi
6384
6385
6386 fi
6387 if test -z "$ac_cv_prog_STRIP"; then
6388 ac_ct_STRIP=$STRIP
6389 # Extract the first word of "strip", so it can be a program name with args.
6390 set dummy strip; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 if test -n "$ac_ct_STRIP"; then
6397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_ac_ct_STRIP="strip"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410 done
6411 done
6412 IFS=$as_save_IFS
6413
6414 fi
6415 fi
6416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6417 if test -n "$ac_ct_STRIP"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6419 $as_echo "$ac_ct_STRIP" >&6; }
6420 else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6423 fi
6424
6425 if test "x$ac_ct_STRIP" = x; then
6426 STRIP=":"
6427 else
6428 case $cross_compiling:$ac_tool_warned in
6429 yes:)
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6432 ac_tool_warned=yes ;;
6433 esac
6434 STRIP=$ac_ct_STRIP
6435 fi
6436 else
6437 STRIP="$ac_cv_prog_STRIP"
6438 fi
6439
6440 test -z "$STRIP" && STRIP=:
6441
6442
6443
6444
6445
6446
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_RANLIB+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test -n "$RANLIB"; then
6456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 RANLIB=$ac_cv_prog_RANLIB
6476 if test -n "$RANLIB"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6478 $as_echo "$RANLIB" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484
6485 fi
6486 if test -z "$ac_cv_prog_RANLIB"; then
6487 ac_ct_RANLIB=$RANLIB
6488 # Extract the first word of "ranlib", so it can be a program name with args.
6489 set dummy ranlib; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test -n "$ac_ct_RANLIB"; then
6496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_ac_ct_RANLIB="ranlib"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6516 if test -n "$ac_ct_RANLIB"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6518 $as_echo "$ac_ct_RANLIB" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524 if test "x$ac_ct_RANLIB" = x; then
6525 RANLIB=":"
6526 else
6527 case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533 RANLIB=$ac_ct_RANLIB
6534 fi
6535 else
6536 RANLIB="$ac_cv_prog_RANLIB"
6537 fi
6538
6539 test -z "$RANLIB" && RANLIB=:
6540
6541
6542
6543
6544
6545
6546 # Determine commands to create old-style static archives.
6547 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6548 old_postinstall_cmds='chmod 644 $oldlib'
6549 old_postuninstall_cmds=
6550
6551 if test -n "$RANLIB"; then
6552 case $host_os in
6553 openbsd*)
6554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6555 ;;
6556 *)
6557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6558 ;;
6559 esac
6560 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6561 fi
6562
6563 case $host_os in
6564 darwin*)
6565 lock_old_archive_extraction=yes ;;
6566 *)
6567 lock_old_archive_extraction=no ;;
6568 esac
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608 # If no C compiler was specified, use CC.
6609 LTCC=${LTCC-"$CC"}
6610
6611 # If no C compiler flags were specified, use CFLAGS.
6612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6613
6614 # Allow CC to be a program name with arguments.
6615 compiler=$CC
6616
6617
6618 # Check for command to grab the raw symbol name followed by C symbol from nm.
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6620 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6621 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624
6625 # These are sane defaults that work on at least a few old systems.
6626 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6627
6628 # Character class describing NM global symbol codes.
6629 symcode='[BCDEGRST]'
6630
6631 # Regexp to match symbols that can be accessed directly from C.
6632 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6633
6634 # Define system-specific variables.
6635 case $host_os in
6636 aix*)
6637 symcode='[BCDT]'
6638 ;;
6639 cygwin* | mingw* | pw32* | cegcc*)
6640 symcode='[ABCDGISTW]'
6641 ;;
6642 hpux*)
6643 if test "$host_cpu" = ia64; then
6644 symcode='[ABCDEGRST]'
6645 fi
6646 ;;
6647 irix* | nonstopux*)
6648 symcode='[BCDEGRST]'
6649 ;;
6650 osf*)
6651 symcode='[BCDEGQRST]'
6652 ;;
6653 solaris*)
6654 symcode='[BDRT]'
6655 ;;
6656 sco3.2v5*)
6657 symcode='[DT]'
6658 ;;
6659 sysv4.2uw2*)
6660 symcode='[DT]'
6661 ;;
6662 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6663 symcode='[ABDT]'
6664 ;;
6665 sysv4)
6666 symcode='[DFNSTU]'
6667 ;;
6668 esac
6669
6670 # If we're using GNU nm, then use its standard symbol codes.
6671 case `$NM -V 2>&1` in
6672 *GNU* | *'with BFD'*)
6673 symcode='[ABCDGIRSTW]' ;;
6674 esac
6675
6676 # Transform an extracted symbol line into a proper C declaration.
6677 # Some systems (esp. on ia64) link data and code symbols differently,
6678 # so use this general approach.
6679 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6680
6681 # Transform an extracted symbol line into symbol name and symbol address
6682 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6683 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6684
6685 # Handle CRLF in mingw tool chain
6686 opt_cr=
6687 case $build_os in
6688 mingw*)
6689 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6690 ;;
6691 esac
6692
6693 # Try without a prefix underscore, then with it.
6694 for ac_symprfx in "" "_"; do
6695
6696 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6697 symxfrm="\\1 $ac_symprfx\\2 \\2"
6698
6699 # Write the raw and C identifiers.
6700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6701 # Fake it for dumpbin and say T for any non-static function
6702 # and D for any global variable.
6703 # Also find C++ and __fastcall symbols from MSVC++,
6704 # which start with @ or ?.
6705 lt_cv_sys_global_symbol_pipe="$AWK '"\
6706 " {last_section=section; section=\$ 3};"\
6707 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6708 " \$ 0!~/External *\|/{next};"\
6709 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6710 " {if(hide[section]) next};"\
6711 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6712 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6713 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6714 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6715 " ' prfx=^$ac_symprfx"
6716 else
6717 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6718 fi
6719
6720 # Check to see that the pipe works correctly.
6721 pipe_works=no
6722
6723 rm -f conftest*
6724 cat > conftest.$ac_ext <<_LT_EOF
6725 #ifdef __cplusplus
6726 extern "C" {
6727 #endif
6728 char nm_test_var;
6729 void nm_test_func(void);
6730 void nm_test_func(void){}
6731 #ifdef __cplusplus
6732 }
6733 #endif
6734 int main(){nm_test_var='a';nm_test_func();return(0);}
6735 _LT_EOF
6736
6737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6738 (eval $ac_compile) 2>&5
6739 ac_status=$?
6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 test $ac_status = 0; }; then
6742 # Now try to grab the symbols.
6743 nlist=conftest.nm
6744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6745 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6746 ac_status=$?
6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748 test $ac_status = 0; } && test -s "$nlist"; then
6749 # Try sorting and uniquifying the output.
6750 if sort "$nlist" | uniq > "$nlist"T; then
6751 mv -f "$nlist"T "$nlist"
6752 else
6753 rm -f "$nlist"T
6754 fi
6755
6756 # Make sure that we snagged all the symbols we need.
6757 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6758 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6759 cat <<_LT_EOF > conftest.$ac_ext
6760 #ifdef __cplusplus
6761 extern "C" {
6762 #endif
6763
6764 _LT_EOF
6765 # Now generate the symbol file.
6766 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6767
6768 cat <<_LT_EOF >> conftest.$ac_ext
6769
6770 /* The mapping between symbol names and symbols. */
6771 const struct {
6772 const char *name;
6773 void *address;
6774 }
6775 lt__PROGRAM__LTX_preloaded_symbols[] =
6776 {
6777 { "@PROGRAM@", (void *) 0 },
6778 _LT_EOF
6779 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6780 cat <<\_LT_EOF >> conftest.$ac_ext
6781 {0, (void *) 0}
6782 };
6783
6784 /* This works around a problem in FreeBSD linker */
6785 #ifdef FREEBSD_WORKAROUND
6786 static const void *lt_preloaded_setup() {
6787 return lt__PROGRAM__LTX_preloaded_symbols;
6788 }
6789 #endif
6790
6791 #ifdef __cplusplus
6792 }
6793 #endif
6794 _LT_EOF
6795 # Now try linking the two files.
6796 mv conftest.$ac_objext conftstm.$ac_objext
6797 lt_save_LIBS="$LIBS"
6798 lt_save_CFLAGS="$CFLAGS"
6799 LIBS="conftstm.$ac_objext"
6800 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6802 (eval $ac_link) 2>&5
6803 ac_status=$?
6804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6805 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6806 pipe_works=yes
6807 fi
6808 LIBS="$lt_save_LIBS"
6809 CFLAGS="$lt_save_CFLAGS"
6810 else
6811 echo "cannot find nm_test_func in $nlist" >&5
6812 fi
6813 else
6814 echo "cannot find nm_test_var in $nlist" >&5
6815 fi
6816 else
6817 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6818 fi
6819 else
6820 echo "$progname: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6822 fi
6823 rm -rf conftest* conftst*
6824
6825 # Do not use the global_symbol_pipe unless it works.
6826 if test "$pipe_works" = yes; then
6827 break
6828 else
6829 lt_cv_sys_global_symbol_pipe=
6830 fi
6831 done
6832
6833 fi
6834
6835 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6836 lt_cv_sys_global_symbol_to_cdecl=
6837 fi
6838 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6840 $as_echo "failed" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6843 $as_echo "ok" >&6; }
6844 fi
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 # Check whether --enable-libtool-lock was given.
6869 if test "${enable_libtool_lock+set}" = set; then :
6870 enableval=$enable_libtool_lock;
6871 fi
6872
6873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6874
6875 # Some flags need to be propagated to the compiler or linker for good
6876 # libtool support.
6877 case $host in
6878 ia64-*-hpux*)
6879 # Find out which ABI we are using.
6880 echo 'int i;' > conftest.$ac_ext
6881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6882 (eval $ac_compile) 2>&5
6883 ac_status=$?
6884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885 test $ac_status = 0; }; then
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *ELF-32*)
6888 HPUX_IA64_MODE="32"
6889 ;;
6890 *ELF-64*)
6891 HPUX_IA64_MODE="64"
6892 ;;
6893 esac
6894 fi
6895 rm -rf conftest*
6896 ;;
6897 *-*-irix6*)
6898 # Find out which ABI we are using.
6899 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904 test $ac_status = 0; }; then
6905 if test "$lt_cv_prog_gnu_ld" = yes; then
6906 case `/usr/bin/file conftest.$ac_objext` in
6907 *32-bit*)
6908 LD="${LD-ld} -melf32bsmip"
6909 ;;
6910 *N32*)
6911 LD="${LD-ld} -melf32bmipn32"
6912 ;;
6913 *64-bit*)
6914 LD="${LD-ld} -melf64bmip"
6915 ;;
6916 esac
6917 else
6918 case `/usr/bin/file conftest.$ac_objext` in
6919 *32-bit*)
6920 LD="${LD-ld} -32"
6921 ;;
6922 *N32*)
6923 LD="${LD-ld} -n32"
6924 ;;
6925 *64-bit*)
6926 LD="${LD-ld} -64"
6927 ;;
6928 esac
6929 fi
6930 fi
6931 rm -rf conftest*
6932 ;;
6933
6934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; then
6943 case `/usr/bin/file conftest.o` in
6944 *32-bit*)
6945 case $host in
6946 x86_64-*kfreebsd*-gnu)
6947 LD="${LD-ld} -m elf_i386_fbsd"
6948 ;;
6949 x86_64-*linux*)
6950 case `/usr/bin/file conftest.o` in
6951 *x86-64*)
6952 LD="${LD-ld} -m elf32_x86_64"
6953 ;;
6954 *)
6955 LD="${LD-ld} -m elf_i386"
6956 ;;
6957 esac
6958 ;;
6959 powerpc64le-*linux*)
6960 LD="${LD-ld} -m elf32lppclinux"
6961 ;;
6962 powerpc64-*linux*)
6963 LD="${LD-ld} -m elf32ppclinux"
6964 ;;
6965 s390x-*linux*)
6966 LD="${LD-ld} -m elf_s390"
6967 ;;
6968 sparc64-*linux*)
6969 LD="${LD-ld} -m elf32_sparc"
6970 ;;
6971 esac
6972 ;;
6973 *64-bit*)
6974 case $host in
6975 x86_64-*kfreebsd*-gnu)
6976 LD="${LD-ld} -m elf_x86_64_fbsd"
6977 ;;
6978 x86_64-*linux*)
6979 LD="${LD-ld} -m elf_x86_64"
6980 ;;
6981 powerpcle-*linux*)
6982 LD="${LD-ld} -m elf64lppc"
6983 ;;
6984 powerpc-*linux*)
6985 LD="${LD-ld} -m elf64ppc"
6986 ;;
6987 s390*-*linux*|s390*-*tpf*)
6988 LD="${LD-ld} -m elf64_s390"
6989 ;;
6990 sparc*-*linux*)
6991 LD="${LD-ld} -m elf64_sparc"
6992 ;;
6993 esac
6994 ;;
6995 esac
6996 fi
6997 rm -rf conftest*
6998 ;;
6999
7000 *-*-sco3.2v5*)
7001 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7002 SAVE_CFLAGS="$CFLAGS"
7003 CFLAGS="$CFLAGS -belf"
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7005 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7006 if ${lt_cv_cc_needs_belf+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 ac_ext=c
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017
7018 int
7019 main ()
7020 {
7021
7022 ;
7023 return 0;
7024 }
7025 _ACEOF
7026 if ac_fn_c_try_link "$LINENO"; then :
7027 lt_cv_cc_needs_belf=yes
7028 else
7029 lt_cv_cc_needs_belf=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7033 ac_ext=c
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7041 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7044 CFLAGS="$SAVE_CFLAGS"
7045 fi
7046 ;;
7047 sparc*-*solaris*)
7048 # Find out which ABI we are using.
7049 echo 'int i;' > conftest.$ac_ext
7050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051 (eval $ac_compile) 2>&5
7052 ac_status=$?
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; }; then
7055 case `/usr/bin/file conftest.o` in
7056 *64-bit*)
7057 case $lt_cv_prog_gnu_ld in
7058 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7059 *)
7060 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7061 LD="${LD-ld} -64"
7062 fi
7063 ;;
7064 esac
7065 ;;
7066 esac
7067 fi
7068 rm -rf conftest*
7069 ;;
7070 esac
7071
7072 need_locks="$enable_libtool_lock"
7073
7074
7075 case $host_os in
7076 rhapsody* | darwin*)
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$DSYMUTIL"; then
7086 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7090 do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7098 fi
7099 done
7100 done
7101 IFS=$as_save_IFS
7102
7103 fi
7104 fi
7105 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7106 if test -n "$DSYMUTIL"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7108 $as_echo "$DSYMUTIL" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7112 fi
7113
7114
7115 fi
7116 if test -z "$ac_cv_prog_DSYMUTIL"; then
7117 ac_ct_DSYMUTIL=$DSYMUTIL
7118 # Extract the first word of "dsymutil", so it can be a program name with args.
7119 set dummy dsymutil; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test -n "$ac_ct_DSYMUTIL"; then
7126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7146 if test -n "$ac_ct_DSYMUTIL"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7148 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7149 else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154 if test "x$ac_ct_DSYMUTIL" = x; then
7155 DSYMUTIL=":"
7156 else
7157 case $cross_compiling:$ac_tool_warned in
7158 yes:)
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161 ac_tool_warned=yes ;;
7162 esac
7163 DSYMUTIL=$ac_ct_DSYMUTIL
7164 fi
7165 else
7166 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7167 fi
7168
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_NMEDIT+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 if test -n "$NMEDIT"; then
7178 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7187 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191 done
7192 done
7193 IFS=$as_save_IFS
7194
7195 fi
7196 fi
7197 NMEDIT=$ac_cv_prog_NMEDIT
7198 if test -n "$NMEDIT"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7200 $as_echo "$NMEDIT" >&6; }
7201 else
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7204 fi
7205
7206
7207 fi
7208 if test -z "$ac_cv_prog_NMEDIT"; then
7209 ac_ct_NMEDIT=$NMEDIT
7210 # Extract the first word of "nmedit", so it can be a program name with args.
7211 set dummy nmedit; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 if test -n "$ac_ct_NMEDIT"; then
7218 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7230 fi
7231 done
7232 done
7233 IFS=$as_save_IFS
7234
7235 fi
7236 fi
7237 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7238 if test -n "$ac_ct_NMEDIT"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7240 $as_echo "$ac_ct_NMEDIT" >&6; }
7241 else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245
7246 if test "x$ac_ct_NMEDIT" = x; then
7247 NMEDIT=":"
7248 else
7249 case $cross_compiling:$ac_tool_warned in
7250 yes:)
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253 ac_tool_warned=yes ;;
7254 esac
7255 NMEDIT=$ac_ct_NMEDIT
7256 fi
7257 else
7258 NMEDIT="$ac_cv_prog_NMEDIT"
7259 fi
7260
7261 if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7263 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_LIPO+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 if test -n "$LIPO"; then
7270 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287 fi
7288 fi
7289 LIPO=$ac_cv_prog_LIPO
7290 if test -n "$LIPO"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7292 $as_echo "$LIPO" >&6; }
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298
7299 fi
7300 if test -z "$ac_cv_prog_LIPO"; then
7301 ac_ct_LIPO=$LIPO
7302 # Extract the first word of "lipo", so it can be a program name with args.
7303 set dummy lipo; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 if test -n "$ac_ct_LIPO"; then
7310 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_ac_ct_LIPO="lipo"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 break 2
7322 fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327 fi
7328 fi
7329 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7330 if test -n "$ac_ct_LIPO"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7332 $as_echo "$ac_ct_LIPO" >&6; }
7333 else
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338 if test "x$ac_ct_LIPO" = x; then
7339 LIPO=":"
7340 else
7341 case $cross_compiling:$ac_tool_warned in
7342 yes:)
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345 ac_tool_warned=yes ;;
7346 esac
7347 LIPO=$ac_ct_LIPO
7348 fi
7349 else
7350 LIPO="$ac_cv_prog_LIPO"
7351 fi
7352
7353 if test -n "$ac_tool_prefix"; then
7354 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}otool; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_OTOOL+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 if test -n "$OTOOL"; then
7362 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 OTOOL=$ac_cv_prog_OTOOL
7382 if test -n "$OTOOL"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7384 $as_echo "$OTOOL" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390
7391 fi
7392 if test -z "$ac_cv_prog_OTOOL"; then
7393 ac_ct_OTOOL=$OTOOL
7394 # Extract the first word of "otool", so it can be a program name with args.
7395 set dummy otool; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 if test -n "$ac_ct_OTOOL"; then
7402 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_prog_ac_ct_OTOOL="otool"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7422 if test -n "$ac_ct_OTOOL"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7424 $as_echo "$ac_ct_OTOOL" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430 if test "x$ac_ct_OTOOL" = x; then
7431 OTOOL=":"
7432 else
7433 case $cross_compiling:$ac_tool_warned in
7434 yes:)
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7437 ac_tool_warned=yes ;;
7438 esac
7439 OTOOL=$ac_ct_OTOOL
7440 fi
7441 else
7442 OTOOL="$ac_cv_prog_OTOOL"
7443 fi
7444
7445 if test -n "$ac_tool_prefix"; then
7446 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7447 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_OTOOL64+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$OTOOL64"; then
7454 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467 done
7468 done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 OTOOL64=$ac_cv_prog_OTOOL64
7474 if test -n "$OTOOL64"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7476 $as_echo "$OTOOL64" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482
7483 fi
7484 if test -z "$ac_cv_prog_OTOOL64"; then
7485 ac_ct_OTOOL64=$OTOOL64
7486 # Extract the first word of "otool64", so it can be a program name with args.
7487 set dummy otool64; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 if test -n "$ac_ct_OTOOL64"; then
7494 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7503 ac_cv_prog_ac_ct_OTOOL64="otool64"
7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7506 fi
7507 done
7508 done
7509 IFS=$as_save_IFS
7510
7511 fi
7512 fi
7513 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7514 if test -n "$ac_ct_OTOOL64"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7516 $as_echo "$ac_ct_OTOOL64" >&6; }
7517 else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521
7522 if test "x$ac_ct_OTOOL64" = x; then
7523 OTOOL64=":"
7524 else
7525 case $cross_compiling:$ac_tool_warned in
7526 yes:)
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7529 ac_tool_warned=yes ;;
7530 esac
7531 OTOOL64=$ac_ct_OTOOL64
7532 fi
7533 else
7534 OTOOL64="$ac_cv_prog_OTOOL64"
7535 fi
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7564 $as_echo_n "checking for -single_module linker flag... " >&6; }
7565 if ${lt_cv_apple_cc_single_mod+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 lt_cv_apple_cc_single_mod=no
7569 if test -z "${LT_MULTI_MODULE}"; then
7570 # By default we will add the -single_module flag. You can override
7571 # by either setting the environment variable LT_MULTI_MODULE
7572 # non-empty at configure time, or by adding -multi_module to the
7573 # link flags.
7574 rm -rf libconftest.dylib*
7575 echo "int foo(void){return 1;}" > conftest.c
7576 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7577 -dynamiclib -Wl,-single_module conftest.c" >&5
7578 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7579 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7580 _lt_result=$?
7581 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7582 lt_cv_apple_cc_single_mod=yes
7583 else
7584 cat conftest.err >&5
7585 fi
7586 rm -rf libconftest.dylib*
7587 rm -f conftest.*
7588 fi
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7591 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7593 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7594 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 lt_cv_ld_exported_symbols_list=no
7598 save_LDFLAGS=$LDFLAGS
7599 echo "_main" > conftest.sym
7600 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603
7604 int
7605 main ()
7606 {
7607
7608 ;
7609 return 0;
7610 }
7611 _ACEOF
7612 if ac_fn_c_try_link "$LINENO"; then :
7613 lt_cv_ld_exported_symbols_list=yes
7614 else
7615 lt_cv_ld_exported_symbols_list=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7619 LDFLAGS="$save_LDFLAGS"
7620
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7623 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7625 $as_echo_n "checking for -force_load linker flag... " >&6; }
7626 if ${lt_cv_ld_force_load+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 lt_cv_ld_force_load=no
7630 cat > conftest.c << _LT_EOF
7631 int forced_loaded() { return 2;}
7632 _LT_EOF
7633 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7634 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7635 echo "$AR cru libconftest.a conftest.o" >&5
7636 $AR cru libconftest.a conftest.o 2>&5
7637 cat > conftest.c << _LT_EOF
7638 int main() { return 0;}
7639 _LT_EOF
7640 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7641 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7642 _lt_result=$?
7643 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7644 lt_cv_ld_force_load=yes
7645 else
7646 cat conftest.err >&5
7647 fi
7648 rm -f conftest.err libconftest.a conftest conftest.c
7649 rm -rf conftest.dSYM
7650
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7653 $as_echo "$lt_cv_ld_force_load" >&6; }
7654 case $host_os in
7655 rhapsody* | darwin1.[012])
7656 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7657 darwin1.*)
7658 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7659 darwin*) # darwin 5.x on
7660 # if running on 10.5 or later, the deployment target defaults
7661 # to the OS version, if on x86, and 10.4, the deployment
7662 # target defaults to 10.4. Don't you love it?
7663 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7664 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7665 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7666 10.[012][,.]*)
7667 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7668 10.*)
7669 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7670 esac
7671 ;;
7672 esac
7673 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7674 _lt_dar_single_mod='$single_module'
7675 fi
7676 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7677 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7678 else
7679 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7680 fi
7681 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7682 _lt_dsymutil='~$DSYMUTIL $lib || :'
7683 else
7684 _lt_dsymutil=
7685 fi
7686 ;;
7687 esac
7688
7689 ac_ext=c
7690 ac_cpp='$CPP $CPPFLAGS'
7691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7695 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7696 # On Suns, sometimes $CPP names a directory.
7697 if test -n "$CPP" && test -d "$CPP"; then
7698 CPP=
7699 fi
7700 if test -z "$CPP"; then
7701 if ${ac_cv_prog_CPP+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 # Double quotes because CPP needs to be expanded
7705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7706 do
7707 ac_preproc_ok=false
7708 for ac_c_preproc_warn_flag in '' yes
7709 do
7710 # Use a header file that comes with gcc, so configuring glibc
7711 # with a fresh cross-compiler works.
7712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7713 # <limits.h> exists even on freestanding compilers.
7714 # On the NeXT, cc -E runs the code through the compiler's parser,
7715 # not just through cpp. "Syntax error" is here to catch this case.
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 #ifdef __STDC__
7719 # include <limits.h>
7720 #else
7721 # include <assert.h>
7722 #endif
7723 Syntax error
7724 _ACEOF
7725 if ac_fn_c_try_cpp "$LINENO"; then :
7726
7727 else
7728 # Broken: fails on valid input.
7729 continue
7730 fi
7731 rm -f conftest.err conftest.i conftest.$ac_ext
7732
7733 # OK, works on sane cases. Now check whether nonexistent headers
7734 # can be detected and how.
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #include <ac_nonexistent.h>
7738 _ACEOF
7739 if ac_fn_c_try_cpp "$LINENO"; then :
7740 # Broken: success on invalid input.
7741 continue
7742 else
7743 # Passes both tests.
7744 ac_preproc_ok=:
7745 break
7746 fi
7747 rm -f conftest.err conftest.i conftest.$ac_ext
7748
7749 done
7750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7751 rm -f conftest.i conftest.err conftest.$ac_ext
7752 if $ac_preproc_ok; then :
7753 break
7754 fi
7755
7756 done
7757 ac_cv_prog_CPP=$CPP
7758
7759 fi
7760 CPP=$ac_cv_prog_CPP
7761 else
7762 ac_cv_prog_CPP=$CPP
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7765 $as_echo "$CPP" >&6; }
7766 ac_preproc_ok=false
7767 for ac_c_preproc_warn_flag in '' yes
7768 do
7769 # Use a header file that comes with gcc, so configuring glibc
7770 # with a fresh cross-compiler works.
7771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7772 # <limits.h> exists even on freestanding compilers.
7773 # On the NeXT, cc -E runs the code through the compiler's parser,
7774 # not just through cpp. "Syntax error" is here to catch this case.
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777 #ifdef __STDC__
7778 # include <limits.h>
7779 #else
7780 # include <assert.h>
7781 #endif
7782 Syntax error
7783 _ACEOF
7784 if ac_fn_c_try_cpp "$LINENO"; then :
7785
7786 else
7787 # Broken: fails on valid input.
7788 continue
7789 fi
7790 rm -f conftest.err conftest.i conftest.$ac_ext
7791
7792 # OK, works on sane cases. Now check whether nonexistent headers
7793 # can be detected and how.
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #include <ac_nonexistent.h>
7797 _ACEOF
7798 if ac_fn_c_try_cpp "$LINENO"; then :
7799 # Broken: success on invalid input.
7800 continue
7801 else
7802 # Passes both tests.
7803 ac_preproc_ok=:
7804 break
7805 fi
7806 rm -f conftest.err conftest.i conftest.$ac_ext
7807
7808 done
7809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7810 rm -f conftest.i conftest.err conftest.$ac_ext
7811 if $ac_preproc_ok; then :
7812
7813 else
7814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7816 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7817 See \`config.log' for more details" "$LINENO" 5; }
7818 fi
7819
7820 ac_ext=c
7821 ac_cpp='$CPP $CPPFLAGS'
7822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
7826
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7828 $as_echo_n "checking for ANSI C header files... " >&6; }
7829 if ${ac_cv_header_stdc+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #include <stdlib.h>
7835 #include <stdarg.h>
7836 #include <string.h>
7837 #include <float.h>
7838
7839 int
7840 main ()
7841 {
7842
7843 ;
7844 return 0;
7845 }
7846 _ACEOF
7847 if ac_fn_c_try_compile "$LINENO"; then :
7848 ac_cv_header_stdc=yes
7849 else
7850 ac_cv_header_stdc=no
7851 fi
7852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853
7854 if test $ac_cv_header_stdc = yes; then
7855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858 #include <string.h>
7859
7860 _ACEOF
7861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7862 $EGREP "memchr" >/dev/null 2>&1; then :
7863
7864 else
7865 ac_cv_header_stdc=no
7866 fi
7867 rm -f conftest*
7868
7869 fi
7870
7871 if test $ac_cv_header_stdc = yes; then
7872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875 #include <stdlib.h>
7876
7877 _ACEOF
7878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7879 $EGREP "free" >/dev/null 2>&1; then :
7880
7881 else
7882 ac_cv_header_stdc=no
7883 fi
7884 rm -f conftest*
7885
7886 fi
7887
7888 if test $ac_cv_header_stdc = yes; then
7889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7890 if test "$cross_compiling" = yes; then :
7891 :
7892 else
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 #include <ctype.h>
7896 #include <stdlib.h>
7897 #if ((' ' & 0x0FF) == 0x020)
7898 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7899 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7900 #else
7901 # define ISLOWER(c) \
7902 (('a' <= (c) && (c) <= 'i') \
7903 || ('j' <= (c) && (c) <= 'r') \
7904 || ('s' <= (c) && (c) <= 'z'))
7905 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7906 #endif
7907
7908 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7909 int
7910 main ()
7911 {
7912 int i;
7913 for (i = 0; i < 256; i++)
7914 if (XOR (islower (i), ISLOWER (i))
7915 || toupper (i) != TOUPPER (i))
7916 return 2;
7917 return 0;
7918 }
7919 _ACEOF
7920 if ac_fn_c_try_run "$LINENO"; then :
7921
7922 else
7923 ac_cv_header_stdc=no
7924 fi
7925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7926 conftest.$ac_objext conftest.beam conftest.$ac_ext
7927 fi
7928
7929 fi
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7932 $as_echo "$ac_cv_header_stdc" >&6; }
7933 if test $ac_cv_header_stdc = yes; then
7934
7935 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7936
7937 fi
7938
7939 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7940 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7941 inttypes.h stdint.h unistd.h
7942 do :
7943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7944 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7945 "
7946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7947 cat >>confdefs.h <<_ACEOF
7948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7949 _ACEOF
7950
7951 fi
7952
7953 done
7954
7955
7956 for ac_header in dlfcn.h
7957 do :
7958 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7959 "
7960 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7961 cat >>confdefs.h <<_ACEOF
7962 #define HAVE_DLFCN_H 1
7963 _ACEOF
7964
7965 fi
7966
7967 done
7968
7969
7970
7971
7972
7973 # Set options
7974
7975
7976
7977 enable_dlopen=no
7978
7979
7980
7981 # Check whether --enable-shared was given.
7982 if test "${enable_shared+set}" = set; then :
7983 enableval=$enable_shared; p=${PACKAGE-default}
7984 case $enableval in
7985 yes) enable_shared=yes ;;
7986 no) enable_shared=no ;;
7987 *)
7988 enable_shared=no
7989 # Look at the argument we got. We use all the common list separators.
7990 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7991 for pkg in $enableval; do
7992 IFS="$lt_save_ifs"
7993 if test "X$pkg" = "X$p"; then
7994 enable_shared=yes
7995 fi
7996 done
7997 IFS="$lt_save_ifs"
7998 ;;
7999 esac
8000 else
8001 enable_shared=yes
8002 fi
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012 # Check whether --enable-static was given.
8013 if test "${enable_static+set}" = set; then :
8014 enableval=$enable_static; p=${PACKAGE-default}
8015 case $enableval in
8016 yes) enable_static=yes ;;
8017 no) enable_static=no ;;
8018 *)
8019 enable_static=no
8020 # Look at the argument we got. We use all the common list separators.
8021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8022 for pkg in $enableval; do
8023 IFS="$lt_save_ifs"
8024 if test "X$pkg" = "X$p"; then
8025 enable_static=yes
8026 fi
8027 done
8028 IFS="$lt_save_ifs"
8029 ;;
8030 esac
8031 else
8032 enable_static=yes
8033 fi
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044 # Check whether --with-pic was given.
8045 if test "${with_pic+set}" = set; then :
8046 withval=$with_pic; pic_mode="$withval"
8047 else
8048 pic_mode=default
8049 fi
8050
8051
8052 test -z "$pic_mode" && pic_mode=default
8053
8054
8055
8056
8057
8058
8059
8060 # Check whether --enable-fast-install was given.
8061 if test "${enable_fast_install+set}" = set; then :
8062 enableval=$enable_fast_install; p=${PACKAGE-default}
8063 case $enableval in
8064 yes) enable_fast_install=yes ;;
8065 no) enable_fast_install=no ;;
8066 *)
8067 enable_fast_install=no
8068 # Look at the argument we got. We use all the common list separators.
8069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8070 for pkg in $enableval; do
8071 IFS="$lt_save_ifs"
8072 if test "X$pkg" = "X$p"; then
8073 enable_fast_install=yes
8074 fi
8075 done
8076 IFS="$lt_save_ifs"
8077 ;;
8078 esac
8079 else
8080 enable_fast_install=yes
8081 fi
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 # This can be used to rebuild libtool when needed
8094 LIBTOOL_DEPS="$ltmain"
8095
8096 # Always use our own libtool.
8097 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124 test -z "$LN_S" && LN_S="ln -s"
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139 if test -n "${ZSH_VERSION+set}" ; then
8140 setopt NO_GLOB_SUBST
8141 fi
8142
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8144 $as_echo_n "checking for objdir... " >&6; }
8145 if ${lt_cv_objdir+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 rm -f .libs 2>/dev/null
8149 mkdir .libs 2>/dev/null
8150 if test -d .libs; then
8151 lt_cv_objdir=.libs
8152 else
8153 # MS-DOS does not allow filenames that begin with a dot.
8154 lt_cv_objdir=_libs
8155 fi
8156 rmdir .libs 2>/dev/null
8157 fi
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8159 $as_echo "$lt_cv_objdir" >&6; }
8160 objdir=$lt_cv_objdir
8161
8162
8163
8164
8165
8166 cat >>confdefs.h <<_ACEOF
8167 #define LT_OBJDIR "$lt_cv_objdir/"
8168 _ACEOF
8169
8170
8171
8172
8173 case $host_os in
8174 aix3*)
8175 # AIX sometimes has problems with the GCC collect2 program. For some
8176 # reason, if we set the COLLECT_NAMES environment variable, the problems
8177 # vanish in a puff of smoke.
8178 if test "X${COLLECT_NAMES+set}" != Xset; then
8179 COLLECT_NAMES=
8180 export COLLECT_NAMES
8181 fi
8182 ;;
8183 esac
8184
8185 # Global variables:
8186 ofile=libtool
8187 can_build_shared=yes
8188
8189 # All known linkers require a `.a' archive for static linking (except MSVC,
8190 # which needs '.lib').
8191 libext=a
8192
8193 with_gnu_ld="$lt_cv_prog_gnu_ld"
8194
8195 old_CC="$CC"
8196 old_CFLAGS="$CFLAGS"
8197
8198 # Set sane defaults for various variables
8199 test -z "$CC" && CC=cc
8200 test -z "$LTCC" && LTCC=$CC
8201 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8202 test -z "$LD" && LD=ld
8203 test -z "$ac_objext" && ac_objext=o
8204
8205 for cc_temp in $compiler""; do
8206 case $cc_temp in
8207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8209 \-*) ;;
8210 *) break;;
8211 esac
8212 done
8213 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8214
8215
8216 # Only perform the check for file, if the check method requires it
8217 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8218 case $deplibs_check_method in
8219 file_magic*)
8220 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8222 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8223 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 case $MAGIC_CMD in
8227 [\\/*] | ?:[\\/]*)
8228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8229 ;;
8230 *)
8231 lt_save_MAGIC_CMD="$MAGIC_CMD"
8232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8234 for ac_dir in $ac_dummy; do
8235 IFS="$lt_save_ifs"
8236 test -z "$ac_dir" && ac_dir=.
8237 if test -f $ac_dir/${ac_tool_prefix}file; then
8238 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8239 if test -n "$file_magic_test_file"; then
8240 case $deplibs_check_method in
8241 "file_magic "*)
8242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8245 $EGREP "$file_magic_regex" > /dev/null; then
8246 :
8247 else
8248 cat <<_LT_EOF 1>&2
8249
8250 *** Warning: the command libtool uses to detect shared libraries,
8251 *** $file_magic_cmd, produces output that libtool cannot recognize.
8252 *** The result is that libtool may fail to recognize shared libraries
8253 *** as such. This will affect the creation of libtool libraries that
8254 *** depend on shared libraries, but programs linked with such libtool
8255 *** libraries will work regardless of this problem. Nevertheless, you
8256 *** may want to report the problem to your system manager and/or to
8257 *** bug-libtool@gnu.org
8258
8259 _LT_EOF
8260 fi ;;
8261 esac
8262 fi
8263 break
8264 fi
8265 done
8266 IFS="$lt_save_ifs"
8267 MAGIC_CMD="$lt_save_MAGIC_CMD"
8268 ;;
8269 esac
8270 fi
8271
8272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273 if test -n "$MAGIC_CMD"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8275 $as_echo "$MAGIC_CMD" >&6; }
8276 else
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8279 fi
8280
8281
8282
8283
8284
8285 if test -z "$lt_cv_path_MAGIC_CMD"; then
8286 if test -n "$ac_tool_prefix"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8288 $as_echo_n "checking for file... " >&6; }
8289 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 case $MAGIC_CMD in
8293 [\\/*] | ?:[\\/]*)
8294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8295 ;;
8296 *)
8297 lt_save_MAGIC_CMD="$MAGIC_CMD"
8298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8300 for ac_dir in $ac_dummy; do
8301 IFS="$lt_save_ifs"
8302 test -z "$ac_dir" && ac_dir=.
8303 if test -f $ac_dir/file; then
8304 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8305 if test -n "$file_magic_test_file"; then
8306 case $deplibs_check_method in
8307 "file_magic "*)
8308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8311 $EGREP "$file_magic_regex" > /dev/null; then
8312 :
8313 else
8314 cat <<_LT_EOF 1>&2
8315
8316 *** Warning: the command libtool uses to detect shared libraries,
8317 *** $file_magic_cmd, produces output that libtool cannot recognize.
8318 *** The result is that libtool may fail to recognize shared libraries
8319 *** as such. This will affect the creation of libtool libraries that
8320 *** depend on shared libraries, but programs linked with such libtool
8321 *** libraries will work regardless of this problem. Nevertheless, you
8322 *** may want to report the problem to your system manager and/or to
8323 *** bug-libtool@gnu.org
8324
8325 _LT_EOF
8326 fi ;;
8327 esac
8328 fi
8329 break
8330 fi
8331 done
8332 IFS="$lt_save_ifs"
8333 MAGIC_CMD="$lt_save_MAGIC_CMD"
8334 ;;
8335 esac
8336 fi
8337
8338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8339 if test -n "$MAGIC_CMD"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8341 $as_echo "$MAGIC_CMD" >&6; }
8342 else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8345 fi
8346
8347
8348 else
8349 MAGIC_CMD=:
8350 fi
8351 fi
8352
8353 fi
8354 ;;
8355 esac
8356
8357 # Use C for the default configuration in the libtool script
8358
8359 lt_save_CC="$CC"
8360 ac_ext=c
8361 ac_cpp='$CPP $CPPFLAGS'
8362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8365
8366
8367 # Source file extension for C test sources.
8368 ac_ext=c
8369
8370 # Object file extension for compiled C test sources.
8371 objext=o
8372 objext=$objext
8373
8374 # Code to be used in simple compile tests
8375 lt_simple_compile_test_code="int some_variable = 0;"
8376
8377 # Code to be used in simple link tests
8378 lt_simple_link_test_code='int main(){return(0);}'
8379
8380
8381
8382
8383
8384
8385
8386 # If no C compiler was specified, use CC.
8387 LTCC=${LTCC-"$CC"}
8388
8389 # If no C compiler flags were specified, use CFLAGS.
8390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8391
8392 # Allow CC to be a program name with arguments.
8393 compiler=$CC
8394
8395 # Save the default compiler, since it gets overwritten when the other
8396 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8397 compiler_DEFAULT=$CC
8398
8399 # save warnings/boilerplate of simple test code
8400 ac_outfile=conftest.$ac_objext
8401 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8403 _lt_compiler_boilerplate=`cat conftest.err`
8404 $RM conftest*
8405
8406 ac_outfile=conftest.$ac_objext
8407 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8409 _lt_linker_boilerplate=`cat conftest.err`
8410 $RM -r conftest*
8411
8412
8413 ## CAVEAT EMPTOR:
8414 ## There is no encapsulation within the following macros, do not change
8415 ## the running order or otherwise move them around unless you know exactly
8416 ## what you are doing...
8417 if test -n "$compiler"; then
8418
8419 lt_prog_compiler_no_builtin_flag=
8420
8421 if test "$GCC" = yes; then
8422 case $cc_basename in
8423 nvcc*)
8424 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8425 *)
8426 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8427 esac
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8430 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8431 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 lt_cv_prog_compiler_rtti_exceptions=no
8435 ac_outfile=conftest.$ac_objext
8436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8437 lt_compiler_flag="-fno-rtti -fno-exceptions"
8438 # Insert the option either (1) after the last *FLAGS variable, or
8439 # (2) before a word containing "conftest.", or (3) at the end.
8440 # Note that $ac_compile itself does not contain backslashes and begins
8441 # with a dollar sign (not a hyphen), so the echo should work correctly.
8442 # The option is referenced via a variable to avoid confusing sed.
8443 lt_compile=`echo "$ac_compile" | $SED \
8444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8446 -e 's:$: $lt_compiler_flag:'`
8447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8448 (eval "$lt_compile" 2>conftest.err)
8449 ac_status=$?
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 if (exit $ac_status) && test -s "$ac_outfile"; then
8453 # The compiler can only warn and ignore the option if not recognized
8454 # So say no if there are warnings other than the usual output.
8455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8458 lt_cv_prog_compiler_rtti_exceptions=yes
8459 fi
8460 fi
8461 $RM conftest*
8462
8463 fi
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8465 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8466
8467 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8468 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8469 else
8470 :
8471 fi
8472
8473 fi
8474
8475
8476
8477
8478
8479
8480 lt_prog_compiler_wl=
8481 lt_prog_compiler_pic=
8482 lt_prog_compiler_static=
8483
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8485 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8486
8487 if test "$GCC" = yes; then
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_static='-static'
8490
8491 case $host_os in
8492 aix*)
8493 # All AIX code is PIC.
8494 if test "$host_cpu" = ia64; then
8495 # AIX 5 now supports IA64 processor
8496 lt_prog_compiler_static='-Bstatic'
8497 fi
8498 lt_prog_compiler_pic='-fPIC'
8499 ;;
8500
8501 amigaos*)
8502 case $host_cpu in
8503 powerpc)
8504 # see comment about AmigaOS4 .so support
8505 lt_prog_compiler_pic='-fPIC'
8506 ;;
8507 m68k)
8508 # FIXME: we need at least 68020 code to build shared libraries, but
8509 # adding the `-m68020' flag to GCC prevents building anything better,
8510 # like `-m68040'.
8511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8512 ;;
8513 esac
8514 ;;
8515
8516 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8517 # PIC is the default for these OSes.
8518 ;;
8519
8520 mingw* | cygwin* | pw32* | os2* | cegcc*)
8521 # This hack is so that the source file can tell whether it is being
8522 # built for inclusion in a dll (and should export symbols for example).
8523 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8524 # (--disable-auto-import) libraries
8525 lt_prog_compiler_pic='-DDLL_EXPORT'
8526 ;;
8527
8528 darwin* | rhapsody*)
8529 # PIC is the default on this platform
8530 # Common symbols not allowed in MH_DYLIB files
8531 lt_prog_compiler_pic='-fno-common'
8532 ;;
8533
8534 haiku*)
8535 # PIC is the default for Haiku.
8536 # The "-static" flag exists, but is broken.
8537 lt_prog_compiler_static=
8538 ;;
8539
8540 hpux*)
8541 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8542 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8543 # sets the default TLS model and affects inlining.
8544 case $host_cpu in
8545 hppa*64*)
8546 # +Z the default
8547 ;;
8548 *)
8549 lt_prog_compiler_pic='-fPIC'
8550 ;;
8551 esac
8552 ;;
8553
8554 interix[3-9]*)
8555 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8556 # Instead, we relocate shared libraries at runtime.
8557 ;;
8558
8559 msdosdjgpp*)
8560 # Just because we use GCC doesn't mean we suddenly get shared libraries
8561 # on systems that don't support them.
8562 lt_prog_compiler_can_build_shared=no
8563 enable_shared=no
8564 ;;
8565
8566 *nto* | *qnx*)
8567 # QNX uses GNU C++, but need to define -shared option too, otherwise
8568 # it will coredump.
8569 lt_prog_compiler_pic='-fPIC -shared'
8570 ;;
8571
8572 sysv4*MP*)
8573 if test -d /usr/nec; then
8574 lt_prog_compiler_pic=-Kconform_pic
8575 fi
8576 ;;
8577
8578 *)
8579 lt_prog_compiler_pic='-fPIC'
8580 ;;
8581 esac
8582
8583 case $cc_basename in
8584 nvcc*) # Cuda Compiler Driver 2.2
8585 lt_prog_compiler_wl='-Xlinker '
8586 lt_prog_compiler_pic='-Xcompiler -fPIC'
8587 ;;
8588 esac
8589 else
8590 # PORTME Check for flag to pass linker flags through the system compiler.
8591 case $host_os in
8592 aix*)
8593 lt_prog_compiler_wl='-Wl,'
8594 if test "$host_cpu" = ia64; then
8595 # AIX 5 now supports IA64 processor
8596 lt_prog_compiler_static='-Bstatic'
8597 else
8598 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8599 fi
8600 ;;
8601
8602 mingw* | cygwin* | pw32* | os2* | cegcc*)
8603 # This hack is so that the source file can tell whether it is being
8604 # built for inclusion in a dll (and should export symbols for example).
8605 lt_prog_compiler_pic='-DDLL_EXPORT'
8606 ;;
8607
8608 hpux9* | hpux10* | hpux11*)
8609 lt_prog_compiler_wl='-Wl,'
8610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8611 # not for PA HP-UX.
8612 case $host_cpu in
8613 hppa*64*|ia64*)
8614 # +Z the default
8615 ;;
8616 *)
8617 lt_prog_compiler_pic='+Z'
8618 ;;
8619 esac
8620 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8621 lt_prog_compiler_static='${wl}-a ${wl}archive'
8622 ;;
8623
8624 irix5* | irix6* | nonstopux*)
8625 lt_prog_compiler_wl='-Wl,'
8626 # PIC (with -KPIC) is the default.
8627 lt_prog_compiler_static='-non_shared'
8628 ;;
8629
8630 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8631 case $cc_basename in
8632 # old Intel for x86_64 which still supported -KPIC.
8633 ecc*)
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-static'
8637 ;;
8638 # icc used to be incompatible with GCC.
8639 # ICC 10 doesn't accept -KPIC any more.
8640 icc* | ifort*)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-fPIC'
8643 lt_prog_compiler_static='-static'
8644 ;;
8645 # Lahey Fortran 8.1.
8646 lf95*)
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_pic='--shared'
8649 lt_prog_compiler_static='--static'
8650 ;;
8651 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8652 # Portland Group compilers (*not* the Pentium gcc compiler,
8653 # which looks to be a dead project)
8654 lt_prog_compiler_wl='-Wl,'
8655 lt_prog_compiler_pic='-fpic'
8656 lt_prog_compiler_static='-Bstatic'
8657 ;;
8658 ccc*)
8659 lt_prog_compiler_wl='-Wl,'
8660 # All Alpha code is PIC.
8661 lt_prog_compiler_static='-non_shared'
8662 ;;
8663 xl* | bgxl* | bgf* | mpixl*)
8664 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_pic='-qpic'
8667 lt_prog_compiler_static='-qstaticlink'
8668 ;;
8669 *)
8670 case `$CC -V 2>&1 | sed 5q` in
8671 *Sun\ F* | *Sun*Fortran*)
8672 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8673 lt_prog_compiler_pic='-KPIC'
8674 lt_prog_compiler_static='-Bstatic'
8675 lt_prog_compiler_wl=''
8676 ;;
8677 *Sun\ C*)
8678 # Sun C 5.9
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-Bstatic'
8681 lt_prog_compiler_wl='-Wl,'
8682 ;;
8683 esac
8684 ;;
8685 esac
8686 ;;
8687
8688 newsos6)
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-Bstatic'
8691 ;;
8692
8693 *nto* | *qnx*)
8694 # QNX uses GNU C++, but need to define -shared option too, otherwise
8695 # it will coredump.
8696 lt_prog_compiler_pic='-fPIC -shared'
8697 ;;
8698
8699 osf3* | osf4* | osf5*)
8700 lt_prog_compiler_wl='-Wl,'
8701 # All OSF/1 code is PIC.
8702 lt_prog_compiler_static='-non_shared'
8703 ;;
8704
8705 rdos*)
8706 lt_prog_compiler_static='-non_shared'
8707 ;;
8708
8709 solaris*)
8710 lt_prog_compiler_pic='-KPIC'
8711 lt_prog_compiler_static='-Bstatic'
8712 case $cc_basename in
8713 f77* | f90* | f95*)
8714 lt_prog_compiler_wl='-Qoption ld ';;
8715 *)
8716 lt_prog_compiler_wl='-Wl,';;
8717 esac
8718 ;;
8719
8720 sunos4*)
8721 lt_prog_compiler_wl='-Qoption ld '
8722 lt_prog_compiler_pic='-PIC'
8723 lt_prog_compiler_static='-Bstatic'
8724 ;;
8725
8726 sysv4 | sysv4.2uw2* | sysv4.3*)
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_pic='-KPIC'
8729 lt_prog_compiler_static='-Bstatic'
8730 ;;
8731
8732 sysv4*MP*)
8733 if test -d /usr/nec ;then
8734 lt_prog_compiler_pic='-Kconform_pic'
8735 lt_prog_compiler_static='-Bstatic'
8736 fi
8737 ;;
8738
8739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_pic='-KPIC'
8742 lt_prog_compiler_static='-Bstatic'
8743 ;;
8744
8745 unicos*)
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_can_build_shared=no
8748 ;;
8749
8750 uts4*)
8751 lt_prog_compiler_pic='-pic'
8752 lt_prog_compiler_static='-Bstatic'
8753 ;;
8754
8755 *)
8756 lt_prog_compiler_can_build_shared=no
8757 ;;
8758 esac
8759 fi
8760
8761 case $host_os in
8762 # For platforms which do not support PIC, -DPIC is meaningless:
8763 *djgpp*)
8764 lt_prog_compiler_pic=
8765 ;;
8766 *)
8767 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8768 ;;
8769 esac
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8771 $as_echo "$lt_prog_compiler_pic" >&6; }
8772
8773
8774
8775
8776
8777
8778 #
8779 # Check to make sure the PIC flag actually works.
8780 #
8781 if test -n "$lt_prog_compiler_pic"; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8783 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8784 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 lt_cv_prog_compiler_pic_works=no
8788 ac_outfile=conftest.$ac_objext
8789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8791 # Insert the option either (1) after the last *FLAGS variable, or
8792 # (2) before a word containing "conftest.", or (3) at the end.
8793 # Note that $ac_compile itself does not contain backslashes and begins
8794 # with a dollar sign (not a hyphen), so the echo should work correctly.
8795 # The option is referenced via a variable to avoid confusing sed.
8796 lt_compile=`echo "$ac_compile" | $SED \
8797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799 -e 's:$: $lt_compiler_flag:'`
8800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8801 (eval "$lt_compile" 2>conftest.err)
8802 ac_status=$?
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 if (exit $ac_status) && test -s "$ac_outfile"; then
8806 # The compiler can only warn and ignore the option if not recognized
8807 # So say no if there are warnings other than the usual output.
8808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8811 lt_cv_prog_compiler_pic_works=yes
8812 fi
8813 fi
8814 $RM conftest*
8815
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8818 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8819
8820 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8821 case $lt_prog_compiler_pic in
8822 "" | " "*) ;;
8823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8824 esac
8825 else
8826 lt_prog_compiler_pic=
8827 lt_prog_compiler_can_build_shared=no
8828 fi
8829
8830 fi
8831
8832
8833
8834
8835
8836
8837 #
8838 # Check to make sure the static flag actually works.
8839 #
8840 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8842 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8843 if ${lt_cv_prog_compiler_static_works+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 lt_cv_prog_compiler_static_works=no
8847 save_LDFLAGS="$LDFLAGS"
8848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8849 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8851 # The linker can only warn and ignore the option if not recognized
8852 # So say no if there are warnings
8853 if test -s conftest.err; then
8854 # Append any errors to the config.log.
8855 cat conftest.err 1>&5
8856 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8858 if diff conftest.exp conftest.er2 >/dev/null; then
8859 lt_cv_prog_compiler_static_works=yes
8860 fi
8861 else
8862 lt_cv_prog_compiler_static_works=yes
8863 fi
8864 fi
8865 $RM -r conftest*
8866 LDFLAGS="$save_LDFLAGS"
8867
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8870 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8871
8872 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8873 :
8874 else
8875 lt_prog_compiler_static=
8876 fi
8877
8878
8879
8880
8881
8882
8883
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8885 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8886 if ${lt_cv_prog_compiler_c_o+:} false; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 lt_cv_prog_compiler_c_o=no
8890 $RM -r conftest 2>/dev/null
8891 mkdir conftest
8892 cd conftest
8893 mkdir out
8894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8895
8896 lt_compiler_flag="-o out/conftest2.$ac_objext"
8897 # Insert the option either (1) after the last *FLAGS variable, or
8898 # (2) before a word containing "conftest.", or (3) at the end.
8899 # Note that $ac_compile itself does not contain backslashes and begins
8900 # with a dollar sign (not a hyphen), so the echo should work correctly.
8901 lt_compile=`echo "$ac_compile" | $SED \
8902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8904 -e 's:$: $lt_compiler_flag:'`
8905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8906 (eval "$lt_compile" 2>out/conftest.err)
8907 ac_status=$?
8908 cat out/conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8911 then
8912 # The compiler can only warn and ignore the option if not recognized
8913 # So say no if there are warnings
8914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8917 lt_cv_prog_compiler_c_o=yes
8918 fi
8919 fi
8920 chmod u+w . 2>&5
8921 $RM conftest*
8922 # SGI C++ compiler will create directory out/ii_files/ for
8923 # template instantiation
8924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8925 $RM out/* && rmdir out
8926 cd ..
8927 $RM -r conftest
8928 $RM conftest*
8929
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8932 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8933
8934
8935
8936
8937
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8941 if ${lt_cv_prog_compiler_c_o+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 lt_cv_prog_compiler_c_o=no
8945 $RM -r conftest 2>/dev/null
8946 mkdir conftest
8947 cd conftest
8948 mkdir out
8949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8950
8951 lt_compiler_flag="-o out/conftest2.$ac_objext"
8952 # Insert the option either (1) after the last *FLAGS variable, or
8953 # (2) before a word containing "conftest.", or (3) at the end.
8954 # Note that $ac_compile itself does not contain backslashes and begins
8955 # with a dollar sign (not a hyphen), so the echo should work correctly.
8956 lt_compile=`echo "$ac_compile" | $SED \
8957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8959 -e 's:$: $lt_compiler_flag:'`
8960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8961 (eval "$lt_compile" 2>out/conftest.err)
8962 ac_status=$?
8963 cat out/conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8966 then
8967 # The compiler can only warn and ignore the option if not recognized
8968 # So say no if there are warnings
8969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8972 lt_cv_prog_compiler_c_o=yes
8973 fi
8974 fi
8975 chmod u+w . 2>&5
8976 $RM conftest*
8977 # SGI C++ compiler will create directory out/ii_files/ for
8978 # template instantiation
8979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8980 $RM out/* && rmdir out
8981 cd ..
8982 $RM -r conftest
8983 $RM conftest*
8984
8985 fi
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8987 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8988
8989
8990
8991
8992 hard_links="nottested"
8993 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8994 # do not overwrite the value of need_locks provided by the user
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8996 $as_echo_n "checking if we can lock with hard links... " >&6; }
8997 hard_links=yes
8998 $RM conftest*
8999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9000 touch conftest.a
9001 ln conftest.a conftest.b 2>&5 || hard_links=no
9002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9004 $as_echo "$hard_links" >&6; }
9005 if test "$hard_links" = no; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9007 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9008 need_locks=warn
9009 fi
9010 else
9011 need_locks=no
9012 fi
9013
9014
9015
9016
9017
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9021
9022 runpath_var=
9023 allow_undefined_flag=
9024 always_export_symbols=no
9025 archive_cmds=
9026 archive_expsym_cmds=
9027 compiler_needs_object=no
9028 enable_shared_with_static_runtimes=no
9029 export_dynamic_flag_spec=
9030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9031 hardcode_automatic=no
9032 hardcode_direct=no
9033 hardcode_direct_absolute=no
9034 hardcode_libdir_flag_spec=
9035 hardcode_libdir_flag_spec_ld=
9036 hardcode_libdir_separator=
9037 hardcode_minus_L=no
9038 hardcode_shlibpath_var=unsupported
9039 inherit_rpath=no
9040 link_all_deplibs=unknown
9041 module_cmds=
9042 module_expsym_cmds=
9043 old_archive_from_new_cmds=
9044 old_archive_from_expsyms_cmds=
9045 thread_safe_flag_spec=
9046 whole_archive_flag_spec=
9047 # include_expsyms should be a list of space-separated symbols to be *always*
9048 # included in the symbol list
9049 include_expsyms=
9050 # exclude_expsyms can be an extended regexp of symbols to exclude
9051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9053 # as well as any symbol that contains `d'.
9054 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9056 # platforms (ab)use it in PIC code, but their linkers get confused if
9057 # the symbol is explicitly referenced. Since portable code cannot
9058 # rely on this symbol name, it's probably fine to never include it in
9059 # preloaded symbol tables.
9060 # Exclude shared library initialization/finalization symbols.
9061 extract_expsyms_cmds=
9062
9063 case $host_os in
9064 cygwin* | mingw* | pw32* | cegcc*)
9065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9066 # When not using gcc, we currently assume that we are using
9067 # Microsoft Visual C++.
9068 if test "$GCC" != yes; then
9069 with_gnu_ld=no
9070 fi
9071 ;;
9072 interix*)
9073 # we just hope/assume this is gcc and not c89 (= MSVC++)
9074 with_gnu_ld=yes
9075 ;;
9076 openbsd*)
9077 with_gnu_ld=no
9078 ;;
9079 esac
9080
9081 ld_shlibs=yes
9082
9083 # On some targets, GNU ld is compatible enough with the native linker
9084 # that we're better off using the native interface for both.
9085 lt_use_gnu_ld_interface=no
9086 if test "$with_gnu_ld" = yes; then
9087 case $host_os in
9088 aix*)
9089 # The AIX port of GNU ld has always aspired to compatibility
9090 # with the native linker. However, as the warning in the GNU ld
9091 # block says, versions before 2.19.5* couldn't really create working
9092 # shared libraries, regardless of the interface used.
9093 case `$LD -v 2>&1` in
9094 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9095 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9096 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9097 *)
9098 lt_use_gnu_ld_interface=yes
9099 ;;
9100 esac
9101 ;;
9102 *)
9103 lt_use_gnu_ld_interface=yes
9104 ;;
9105 esac
9106 fi
9107
9108 if test "$lt_use_gnu_ld_interface" = yes; then
9109 # If archive_cmds runs LD, not CC, wlarc should be empty
9110 wlarc='${wl}'
9111
9112 # Set some defaults for GNU ld with shared library support. These
9113 # are reset later if shared libraries are not supported. Putting them
9114 # here allows them to be overridden if necessary.
9115 runpath_var=LD_RUN_PATH
9116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9117 export_dynamic_flag_spec='${wl}--export-dynamic'
9118 # ancient GNU ld didn't support --whole-archive et. al.
9119 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9120 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9121 else
9122 whole_archive_flag_spec=
9123 fi
9124 supports_anon_versioning=no
9125 case `$LD -v 2>&1` in
9126 *GNU\ gold*) supports_anon_versioning=yes ;;
9127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9130 *\ 2.11.*) ;; # other 2.11 versions
9131 *) supports_anon_versioning=yes ;;
9132 esac
9133
9134 # See if GNU ld supports shared libraries.
9135 case $host_os in
9136 aix[3-9]*)
9137 # On AIX/PPC, the GNU linker is very broken
9138 if test "$host_cpu" != ia64; then
9139 ld_shlibs=no
9140 cat <<_LT_EOF 1>&2
9141
9142 *** Warning: the GNU linker, at least up to release 2.19, is reported
9143 *** to be unable to reliably create shared libraries on AIX.
9144 *** Therefore, libtool is disabling shared libraries support. If you
9145 *** really care for shared libraries, you may want to install binutils
9146 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9147 *** You will then need to restart the configuration process.
9148
9149 _LT_EOF
9150 fi
9151 ;;
9152
9153 amigaos*)
9154 case $host_cpu in
9155 powerpc)
9156 # see comment about AmigaOS4 .so support
9157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158 archive_expsym_cmds=''
9159 ;;
9160 m68k)
9161 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 hardcode_minus_L=yes
9164 ;;
9165 esac
9166 ;;
9167
9168 beos*)
9169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9170 allow_undefined_flag=unsupported
9171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9172 # support --undefined. This deserves some investigation. FIXME
9173 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9174 else
9175 ld_shlibs=no
9176 fi
9177 ;;
9178
9179 cygwin* | mingw* | pw32* | cegcc*)
9180 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9181 # as there is no search path for DLLs.
9182 hardcode_libdir_flag_spec='-L$libdir'
9183 export_dynamic_flag_spec='${wl}--export-all-symbols'
9184 allow_undefined_flag=unsupported
9185 always_export_symbols=no
9186 enable_shared_with_static_runtimes=yes
9187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9188
9189 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9191 # If the export-symbols file already is a .def file (1st line
9192 # is EXPORTS), use it as is; otherwise, prepend...
9193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9194 cp $export_symbols $output_objdir/$soname.def;
9195 else
9196 echo EXPORTS > $output_objdir/$soname.def;
9197 cat $export_symbols >> $output_objdir/$soname.def;
9198 fi~
9199 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9200 else
9201 ld_shlibs=no
9202 fi
9203 ;;
9204
9205 haiku*)
9206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207 link_all_deplibs=yes
9208 ;;
9209
9210 interix[3-9]*)
9211 hardcode_direct=no
9212 hardcode_shlibpath_var=no
9213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9214 export_dynamic_flag_spec='${wl}-E'
9215 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9216 # Instead, shared libraries are loaded at an image base (0x10000000 by
9217 # default) and relocated if they conflict, which is a slow very memory
9218 # consuming and fragmenting process. To avoid this, we pick a random,
9219 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9220 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9222 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9223 ;;
9224
9225 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9226 tmp_diet=no
9227 if test "$host_os" = linux-dietlibc; then
9228 case $cc_basename in
9229 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9230 esac
9231 fi
9232 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9233 && test "$tmp_diet" = no
9234 then
9235 tmp_addflag=' $pic_flag'
9236 tmp_sharedflag='-shared'
9237 case $cc_basename,$host_cpu in
9238 pgcc*) # Portland Group C compiler
9239 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9240 tmp_addflag=' $pic_flag'
9241 ;;
9242 pgf77* | pgf90* | pgf95* | pgfortran*)
9243 # Portland Group f77 and f90 compilers
9244 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9245 tmp_addflag=' $pic_flag -Mnomain' ;;
9246 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9247 tmp_addflag=' -i_dynamic' ;;
9248 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9249 tmp_addflag=' -i_dynamic -nofor_main' ;;
9250 ifc* | ifort*) # Intel Fortran compiler
9251 tmp_addflag=' -nofor_main' ;;
9252 lf95*) # Lahey Fortran 8.1
9253 whole_archive_flag_spec=
9254 tmp_sharedflag='--shared' ;;
9255 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9256 tmp_sharedflag='-qmkshrobj'
9257 tmp_addflag= ;;
9258 nvcc*) # Cuda Compiler Driver 2.2
9259 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9260 compiler_needs_object=yes
9261 ;;
9262 esac
9263 case `$CC -V 2>&1 | sed 5q` in
9264 *Sun\ C*) # Sun C 5.9
9265 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9266 compiler_needs_object=yes
9267 tmp_sharedflag='-G' ;;
9268 *Sun\ F*) # Sun Fortran 8.3
9269 tmp_sharedflag='-G' ;;
9270 esac
9271 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272
9273 if test "x$supports_anon_versioning" = xyes; then
9274 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9276 echo "local: *; };" >> $output_objdir/$libname.ver~
9277 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9278 fi
9279
9280 case $cc_basename in
9281 xlf* | bgf* | bgxlf* | mpixlf*)
9282 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9283 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9284 hardcode_libdir_flag_spec=
9285 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9286 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9287 if test "x$supports_anon_versioning" = xyes; then
9288 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9289 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9290 echo "local: *; };" >> $output_objdir/$libname.ver~
9291 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9292 fi
9293 ;;
9294 esac
9295 else
9296 ld_shlibs=no
9297 fi
9298 ;;
9299
9300 netbsd*)
9301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9302 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9303 wlarc=
9304 else
9305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9307 fi
9308 ;;
9309
9310 solaris*)
9311 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9312 ld_shlibs=no
9313 cat <<_LT_EOF 1>&2
9314
9315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9316 *** create shared libraries on Solaris systems. Therefore, libtool
9317 *** is disabling shared libraries support. We urge you to upgrade GNU
9318 *** binutils to release 2.9.1 or newer. Another option is to modify
9319 *** your PATH or compiler configuration so that the native linker is
9320 *** used, and then restart.
9321
9322 _LT_EOF
9323 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9326 else
9327 ld_shlibs=no
9328 fi
9329 ;;
9330
9331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9332 case `$LD -v 2>&1` in
9333 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9334 ld_shlibs=no
9335 cat <<_LT_EOF 1>&2
9336
9337 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9338 *** reliably create shared libraries on SCO systems. Therefore, libtool
9339 *** is disabling shared libraries support. We urge you to upgrade GNU
9340 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9341 *** your PATH or compiler configuration so that the native linker is
9342 *** used, and then restart.
9343
9344 _LT_EOF
9345 ;;
9346 *)
9347 # For security reasons, it is highly recommended that you always
9348 # use absolute paths for naming shared libraries, and exclude the
9349 # DT_RUNPATH tag from executables and libraries. But doing so
9350 # requires that you compile everything twice, which is a pain.
9351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355 else
9356 ld_shlibs=no
9357 fi
9358 ;;
9359 esac
9360 ;;
9361
9362 sunos4*)
9363 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9364 wlarc=
9365 hardcode_direct=yes
9366 hardcode_shlibpath_var=no
9367 ;;
9368
9369 *)
9370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9373 else
9374 ld_shlibs=no
9375 fi
9376 ;;
9377 esac
9378
9379 if test "$ld_shlibs" = no; then
9380 runpath_var=
9381 hardcode_libdir_flag_spec=
9382 export_dynamic_flag_spec=
9383 whole_archive_flag_spec=
9384 fi
9385 else
9386 # PORTME fill in a description of your system's linker (not GNU ld)
9387 case $host_os in
9388 aix3*)
9389 allow_undefined_flag=unsupported
9390 always_export_symbols=yes
9391 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9392 # Note: this linker hardcodes the directories in LIBPATH if there
9393 # are no directories specified by -L.
9394 hardcode_minus_L=yes
9395 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9396 # Neither direct hardcoding nor static linking is supported with a
9397 # broken collect2.
9398 hardcode_direct=unsupported
9399 fi
9400 ;;
9401
9402 aix[4-9]*)
9403 if test "$host_cpu" = ia64; then
9404 # On IA64, the linker does run time linking by default, so we don't
9405 # have to do anything special.
9406 aix_use_runtimelinking=no
9407 exp_sym_flag='-Bexport'
9408 no_entry_flag=""
9409 else
9410 # If we're using GNU nm, then we don't want the "-C" option.
9411 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9412 # Also, AIX nm treats weak defined symbols like other global
9413 # defined symbols, whereas GNU nm marks them as "W".
9414 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9415 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9416 else
9417 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9418 fi
9419 aix_use_runtimelinking=no
9420
9421 # Test if we are trying to use run time linking or normal
9422 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9423 # need to do runtime linking.
9424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9425 for ld_flag in $LDFLAGS; do
9426 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9427 aix_use_runtimelinking=yes
9428 break
9429 fi
9430 done
9431 ;;
9432 esac
9433
9434 exp_sym_flag='-bexport'
9435 no_entry_flag='-bnoentry'
9436 fi
9437
9438 # When large executables or shared objects are built, AIX ld can
9439 # have problems creating the table of contents. If linking a library
9440 # or program results in "error TOC overflow" add -mminimal-toc to
9441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9443
9444 archive_cmds=''
9445 hardcode_direct=yes
9446 hardcode_direct_absolute=yes
9447 hardcode_libdir_separator=':'
9448 link_all_deplibs=yes
9449 file_list_spec='${wl}-f,'
9450
9451 if test "$GCC" = yes; then
9452 case $host_os in aix4.[012]|aix4.[012].*)
9453 # We only want to do this on AIX 4.2 and lower, the check
9454 # below for broken collect2 doesn't work under 4.3+
9455 collect2name=`${CC} -print-prog-name=collect2`
9456 if test -f "$collect2name" &&
9457 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9458 then
9459 # We have reworked collect2
9460 :
9461 else
9462 # We have old collect2
9463 hardcode_direct=unsupported
9464 # It fails to find uninstalled libraries when the uninstalled
9465 # path is not listed in the libpath. Setting hardcode_minus_L
9466 # to unsupported forces relinking
9467 hardcode_minus_L=yes
9468 hardcode_libdir_flag_spec='-L$libdir'
9469 hardcode_libdir_separator=
9470 fi
9471 ;;
9472 esac
9473 shared_flag='-shared'
9474 if test "$aix_use_runtimelinking" = yes; then
9475 shared_flag="$shared_flag "'${wl}-G'
9476 fi
9477 else
9478 # not using gcc
9479 if test "$host_cpu" = ia64; then
9480 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9481 # chokes on -Wl,-G. The following line is correct:
9482 shared_flag='-G'
9483 else
9484 if test "$aix_use_runtimelinking" = yes; then
9485 shared_flag='${wl}-G'
9486 else
9487 shared_flag='${wl}-bM:SRE'
9488 fi
9489 fi
9490 fi
9491
9492 export_dynamic_flag_spec='${wl}-bexpall'
9493 # It seems that -bexpall does not export symbols beginning with
9494 # underscore (_), so it is better to generate a list of symbols to export.
9495 always_export_symbols=yes
9496 if test "$aix_use_runtimelinking" = yes; then
9497 # Warning - without using the other runtime loading flags (-brtl),
9498 # -berok will link without error, but may produce a broken library.
9499 allow_undefined_flag='-berok'
9500 # Determine the default libpath from the value encoded in an
9501 # empty executable.
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504
9505 int
9506 main ()
9507 {
9508
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"; then :
9514
9515 lt_aix_libpath_sed='
9516 /Import File Strings/,/^$/ {
9517 /^0/ {
9518 s/^0 *\(.*\)$/\1/
9519 p
9520 }
9521 }'
9522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9523 # Check for a 64-bit object if we didn't find anything.
9524 if test -z "$aix_libpath"; then
9525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9526 fi
9527 fi
9528 rm -f core conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9531
9532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9533 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9534 else
9535 if test "$host_cpu" = ia64; then
9536 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9537 allow_undefined_flag="-z nodefs"
9538 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9539 else
9540 # Determine the default libpath from the value encoded in an
9541 # empty executable.
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544
9545 int
9546 main ()
9547 {
9548
9549 ;
9550 return 0;
9551 }
9552 _ACEOF
9553 if ac_fn_c_try_link "$LINENO"; then :
9554
9555 lt_aix_libpath_sed='
9556 /Import File Strings/,/^$/ {
9557 /^0/ {
9558 s/^0 *\(.*\)$/\1/
9559 p
9560 }
9561 }'
9562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9563 # Check for a 64-bit object if we didn't find anything.
9564 if test -z "$aix_libpath"; then
9565 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9566 fi
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
9570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9571
9572 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9573 # Warning - without using the other run time loading flags,
9574 # -berok will link without error, but may produce a broken library.
9575 no_undefined_flag=' ${wl}-bernotok'
9576 allow_undefined_flag=' ${wl}-berok'
9577 if test "$with_gnu_ld" = yes; then
9578 # We only use this code for GNU lds that support --whole-archive.
9579 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9580 else
9581 # Exported symbols can be pulled into shared objects from archives
9582 whole_archive_flag_spec='$convenience'
9583 fi
9584 archive_cmds_need_lc=yes
9585 # This is similar to how AIX traditionally builds its shared libraries.
9586 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9587 fi
9588 fi
9589 ;;
9590
9591 amigaos*)
9592 case $host_cpu in
9593 powerpc)
9594 # see comment about AmigaOS4 .so support
9595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596 archive_expsym_cmds=''
9597 ;;
9598 m68k)
9599 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9600 hardcode_libdir_flag_spec='-L$libdir'
9601 hardcode_minus_L=yes
9602 ;;
9603 esac
9604 ;;
9605
9606 bsdi[45]*)
9607 export_dynamic_flag_spec=-rdynamic
9608 ;;
9609
9610 cygwin* | mingw* | pw32* | cegcc*)
9611 # When not using gcc, we currently assume that we are using
9612 # Microsoft Visual C++.
9613 # hardcode_libdir_flag_spec is actually meaningless, as there is
9614 # no search path for DLLs.
9615 hardcode_libdir_flag_spec=' '
9616 allow_undefined_flag=unsupported
9617 # Tell ltmain to make .lib files, not .a files.
9618 libext=lib
9619 # Tell ltmain to make .dll files, not .so files.
9620 shrext_cmds=".dll"
9621 # FIXME: Setting linknames here is a bad hack.
9622 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9623 # The linker will automatically build a .lib file if we build a DLL.
9624 old_archive_from_new_cmds='true'
9625 # FIXME: Should let the user specify the lib program.
9626 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9627 fix_srcfile_path='`cygpath -w "$srcfile"`'
9628 enable_shared_with_static_runtimes=yes
9629 ;;
9630
9631 darwin* | rhapsody*)
9632
9633
9634 archive_cmds_need_lc=no
9635 hardcode_direct=no
9636 hardcode_automatic=yes
9637 hardcode_shlibpath_var=unsupported
9638 if test "$lt_cv_ld_force_load" = "yes"; then
9639 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9640 else
9641 whole_archive_flag_spec=''
9642 fi
9643 link_all_deplibs=yes
9644 allow_undefined_flag="$_lt_dar_allow_undefined"
9645 case $cc_basename in
9646 ifort*) _lt_dar_can_shared=yes ;;
9647 *) _lt_dar_can_shared=$GCC ;;
9648 esac
9649 if test "$_lt_dar_can_shared" = "yes"; then
9650 output_verbose_link_cmd=func_echo_all
9651 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9652 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9653 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9654 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9655
9656 else
9657 ld_shlibs=no
9658 fi
9659
9660 ;;
9661
9662 dgux*)
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_libdir_flag_spec='-L$libdir'
9665 hardcode_shlibpath_var=no
9666 ;;
9667
9668 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9669 # support. Future versions do this automatically, but an explicit c++rt0.o
9670 # does not break anything, and helps significantly (at the cost of a little
9671 # extra space).
9672 freebsd2.2*)
9673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9674 hardcode_libdir_flag_spec='-R$libdir'
9675 hardcode_direct=yes
9676 hardcode_shlibpath_var=no
9677 ;;
9678
9679 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9680 freebsd2.*)
9681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_direct=yes
9683 hardcode_minus_L=yes
9684 hardcode_shlibpath_var=no
9685 ;;
9686
9687 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9688 freebsd* | dragonfly*)
9689 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9690 hardcode_libdir_flag_spec='-R$libdir'
9691 hardcode_direct=yes
9692 hardcode_shlibpath_var=no
9693 ;;
9694
9695 hpux9*)
9696 if test "$GCC" = yes; then
9697 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9698 else
9699 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9700 fi
9701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9702 hardcode_libdir_separator=:
9703 hardcode_direct=yes
9704
9705 # hardcode_minus_L: Not really in the search PATH,
9706 # but as the default location of the library.
9707 hardcode_minus_L=yes
9708 export_dynamic_flag_spec='${wl}-E'
9709 ;;
9710
9711 hpux10*)
9712 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9713 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9714 else
9715 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9716 fi
9717 if test "$with_gnu_ld" = no; then
9718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9719 hardcode_libdir_flag_spec_ld='+b $libdir'
9720 hardcode_libdir_separator=:
9721 hardcode_direct=yes
9722 hardcode_direct_absolute=yes
9723 export_dynamic_flag_spec='${wl}-E'
9724 # hardcode_minus_L: Not really in the search PATH,
9725 # but as the default location of the library.
9726 hardcode_minus_L=yes
9727 fi
9728 ;;
9729
9730 hpux11*)
9731 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9732 case $host_cpu in
9733 hppa*64*)
9734 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 ;;
9736 ia64*)
9737 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9738 ;;
9739 *)
9740 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9741 ;;
9742 esac
9743 else
9744 case $host_cpu in
9745 hppa*64*)
9746 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 ;;
9748 ia64*)
9749 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9750 ;;
9751 *)
9752
9753 # Older versions of the 11.00 compiler do not understand -b yet
9754 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9756 $as_echo_n "checking if $CC understands -b... " >&6; }
9757 if ${lt_cv_prog_compiler__b+:} false; then :
9758 $as_echo_n "(cached) " >&6
9759 else
9760 lt_cv_prog_compiler__b=no
9761 save_LDFLAGS="$LDFLAGS"
9762 LDFLAGS="$LDFLAGS -b"
9763 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9765 # The linker can only warn and ignore the option if not recognized
9766 # So say no if there are warnings
9767 if test -s conftest.err; then
9768 # Append any errors to the config.log.
9769 cat conftest.err 1>&5
9770 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9772 if diff conftest.exp conftest.er2 >/dev/null; then
9773 lt_cv_prog_compiler__b=yes
9774 fi
9775 else
9776 lt_cv_prog_compiler__b=yes
9777 fi
9778 fi
9779 $RM -r conftest*
9780 LDFLAGS="$save_LDFLAGS"
9781
9782 fi
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9784 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9785
9786 if test x"$lt_cv_prog_compiler__b" = xyes; then
9787 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9788 else
9789 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9790 fi
9791
9792 ;;
9793 esac
9794 fi
9795 if test "$with_gnu_ld" = no; then
9796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9797 hardcode_libdir_separator=:
9798
9799 case $host_cpu in
9800 hppa*64*|ia64*)
9801 hardcode_direct=no
9802 hardcode_shlibpath_var=no
9803 ;;
9804 *)
9805 hardcode_direct=yes
9806 hardcode_direct_absolute=yes
9807 export_dynamic_flag_spec='${wl}-E'
9808
9809 # hardcode_minus_L: Not really in the search PATH,
9810 # but as the default location of the library.
9811 hardcode_minus_L=yes
9812 ;;
9813 esac
9814 fi
9815 ;;
9816
9817 irix5* | irix6* | nonstopux*)
9818 if test "$GCC" = yes; then
9819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9820 # Try to use the -exported_symbol ld option, if it does not
9821 # work, assume that -exports_file does not work either and
9822 # implicitly export all symbols.
9823 save_LDFLAGS="$LDFLAGS"
9824 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9827 int foo(void) {}
9828 _ACEOF
9829 if ac_fn_c_try_link "$LINENO"; then :
9830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9831
9832 fi
9833 rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
9835 LDFLAGS="$save_LDFLAGS"
9836 else
9837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9839 fi
9840 archive_cmds_need_lc='no'
9841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9842 hardcode_libdir_separator=:
9843 inherit_rpath=yes
9844 link_all_deplibs=yes
9845 ;;
9846
9847 netbsd*)
9848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9850 else
9851 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9852 fi
9853 hardcode_libdir_flag_spec='-R$libdir'
9854 hardcode_direct=yes
9855 hardcode_shlibpath_var=no
9856 ;;
9857
9858 newsos6)
9859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9860 hardcode_direct=yes
9861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9862 hardcode_libdir_separator=:
9863 hardcode_shlibpath_var=no
9864 ;;
9865
9866 *nto* | *qnx*)
9867 ;;
9868
9869 openbsd*)
9870 if test -f /usr/libexec/ld.so; then
9871 hardcode_direct=yes
9872 hardcode_shlibpath_var=no
9873 hardcode_direct_absolute=yes
9874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9876 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9878 export_dynamic_flag_spec='${wl}-E'
9879 else
9880 case $host_os in
9881 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9883 hardcode_libdir_flag_spec='-R$libdir'
9884 ;;
9885 *)
9886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9887 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9888 ;;
9889 esac
9890 fi
9891 else
9892 ld_shlibs=no
9893 fi
9894 ;;
9895
9896 os2*)
9897 hardcode_libdir_flag_spec='-L$libdir'
9898 hardcode_minus_L=yes
9899 allow_undefined_flag=unsupported
9900 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9901 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9902 ;;
9903
9904 osf3*)
9905 if test "$GCC" = yes; then
9906 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9907 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9908 else
9909 allow_undefined_flag=' -expect_unresolved \*'
9910 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9911 fi
9912 archive_cmds_need_lc='no'
9913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9914 hardcode_libdir_separator=:
9915 ;;
9916
9917 osf4* | osf5*) # as osf3* with the addition of -msym flag
9918 if test "$GCC" = yes; then
9919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9920 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9922 else
9923 allow_undefined_flag=' -expect_unresolved \*'
9924 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9925 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9926 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9927
9928 # Both c and cxx compiler support -rpath directly
9929 hardcode_libdir_flag_spec='-rpath $libdir'
9930 fi
9931 archive_cmds_need_lc='no'
9932 hardcode_libdir_separator=:
9933 ;;
9934
9935 solaris*)
9936 no_undefined_flag=' -z defs'
9937 if test "$GCC" = yes; then
9938 wlarc='${wl}'
9939 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9941 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9942 else
9943 case `$CC -V 2>&1` in
9944 *"Compilers 5.0"*)
9945 wlarc=''
9946 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9948 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9949 ;;
9950 *)
9951 wlarc='${wl}'
9952 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9953 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9954 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9955 ;;
9956 esac
9957 fi
9958 hardcode_libdir_flag_spec='-R$libdir'
9959 hardcode_shlibpath_var=no
9960 case $host_os in
9961 solaris2.[0-5] | solaris2.[0-5].*) ;;
9962 *)
9963 # The compiler driver will combine and reorder linker options,
9964 # but understands `-z linker_flag'. GCC discards it without `$wl',
9965 # but is careful enough not to reorder.
9966 # Supported since Solaris 2.6 (maybe 2.5.1?)
9967 if test "$GCC" = yes; then
9968 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9969 else
9970 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9971 fi
9972 ;;
9973 esac
9974 link_all_deplibs=yes
9975 ;;
9976
9977 sunos4*)
9978 if test "x$host_vendor" = xsequent; then
9979 # Use $CC to link under sequent, because it throws in some extra .o
9980 # files that make .init and .fini sections work.
9981 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9982 else
9983 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9984 fi
9985 hardcode_libdir_flag_spec='-L$libdir'
9986 hardcode_direct=yes
9987 hardcode_minus_L=yes
9988 hardcode_shlibpath_var=no
9989 ;;
9990
9991 sysv4)
9992 case $host_vendor in
9993 sni)
9994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995 hardcode_direct=yes # is this really true???
9996 ;;
9997 siemens)
9998 ## LD is ld it makes a PLAMLIB
9999 ## CC just makes a GrossModule.
10000 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10001 reload_cmds='$CC -r -o $output$reload_objs'
10002 hardcode_direct=no
10003 ;;
10004 motorola)
10005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10007 ;;
10008 esac
10009 runpath_var='LD_RUN_PATH'
10010 hardcode_shlibpath_var=no
10011 ;;
10012
10013 sysv4.3*)
10014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015 hardcode_shlibpath_var=no
10016 export_dynamic_flag_spec='-Bexport'
10017 ;;
10018
10019 sysv4*MP*)
10020 if test -d /usr/nec; then
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_shlibpath_var=no
10023 runpath_var=LD_RUN_PATH
10024 hardcode_runpath_var=yes
10025 ld_shlibs=yes
10026 fi
10027 ;;
10028
10029 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10030 no_undefined_flag='${wl}-z,text'
10031 archive_cmds_need_lc=no
10032 hardcode_shlibpath_var=no
10033 runpath_var='LD_RUN_PATH'
10034
10035 if test "$GCC" = yes; then
10036 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 else
10039 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041 fi
10042 ;;
10043
10044 sysv5* | sco3.2v5* | sco5v6*)
10045 # Note: We can NOT use -z defs as we might desire, because we do not
10046 # link with -lc, and that would cause any symbols used from libc to
10047 # always be unresolved, which means just about no library would
10048 # ever link correctly. If we're not using GNU ld we use -z text
10049 # though, which does catch some bad symbols but isn't as heavy-handed
10050 # as -z defs.
10051 no_undefined_flag='${wl}-z,text'
10052 allow_undefined_flag='${wl}-z,nodefs'
10053 archive_cmds_need_lc=no
10054 hardcode_shlibpath_var=no
10055 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10056 hardcode_libdir_separator=':'
10057 link_all_deplibs=yes
10058 export_dynamic_flag_spec='${wl}-Bexport'
10059 runpath_var='LD_RUN_PATH'
10060
10061 if test "$GCC" = yes; then
10062 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 else
10065 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10066 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 fi
10068 ;;
10069
10070 uts4*)
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 hardcode_shlibpath_var=no
10074 ;;
10075
10076 *)
10077 ld_shlibs=no
10078 ;;
10079 esac
10080
10081 if test x$host_vendor = xsni; then
10082 case $host in
10083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10084 export_dynamic_flag_spec='${wl}-Blargedynsym'
10085 ;;
10086 esac
10087 fi
10088 fi
10089
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10091 $as_echo "$ld_shlibs" >&6; }
10092 test "$ld_shlibs" = no && can_build_shared=no
10093
10094 with_gnu_ld=$with_gnu_ld
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110 #
10111 # Do we need to explicitly link libc?
10112 #
10113 case "x$archive_cmds_need_lc" in
10114 x|xyes)
10115 # Assume -lc should be added
10116 archive_cmds_need_lc=yes
10117
10118 if test "$enable_shared" = yes && test "$GCC" = yes; then
10119 case $archive_cmds in
10120 *'~'*)
10121 # FIXME: we may have to deal with multi-command sequences.
10122 ;;
10123 '$CC '*)
10124 # Test whether the compiler implicitly links with -lc since on some
10125 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10126 # to ld, don't add -lc before -lgcc.
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10128 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10129 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 $RM conftest*
10133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10134
10135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10136 (eval $ac_compile) 2>&5
10137 ac_status=$?
10138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10139 test $ac_status = 0; } 2>conftest.err; then
10140 soname=conftest
10141 lib=conftest
10142 libobjs=conftest.$ac_objext
10143 deplibs=
10144 wl=$lt_prog_compiler_wl
10145 pic_flag=$lt_prog_compiler_pic
10146 compiler_flags=-v
10147 linker_flags=-v
10148 verstring=
10149 output_objdir=.
10150 libname=conftest
10151 lt_save_allow_undefined_flag=$allow_undefined_flag
10152 allow_undefined_flag=
10153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10154 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10155 ac_status=$?
10156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10157 test $ac_status = 0; }
10158 then
10159 lt_cv_archive_cmds_need_lc=no
10160 else
10161 lt_cv_archive_cmds_need_lc=yes
10162 fi
10163 allow_undefined_flag=$lt_save_allow_undefined_flag
10164 else
10165 cat conftest.err 1>&5
10166 fi
10167 $RM conftest*
10168
10169 fi
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10171 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10172 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10173 ;;
10174 esac
10175 fi
10176 ;;
10177 esac
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10336 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10337
10338 if test "$GCC" = yes; then
10339 case $host_os in
10340 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10341 *) lt_awk_arg="/^libraries:/" ;;
10342 esac
10343 case $host_os in
10344 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10345 *) lt_sed_strip_eq="s,=/,/,g" ;;
10346 esac
10347 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10348 case $lt_search_path_spec in
10349 *\;*)
10350 # if the path contains ";" then we assume it to be the separator
10351 # otherwise default to the standard path separator (i.e. ":") - it is
10352 # assumed that no part of a normal pathname contains ";" but that should
10353 # okay in the real world where ";" in dirpaths is itself problematic.
10354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10355 ;;
10356 *)
10357 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10358 ;;
10359 esac
10360 # Ok, now we have the path, separated by spaces, we can step through it
10361 # and add multilib dir if necessary.
10362 lt_tmp_lt_search_path_spec=
10363 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10364 for lt_sys_path in $lt_search_path_spec; do
10365 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10367 else
10368 test -d "$lt_sys_path" && \
10369 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10370 fi
10371 done
10372 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10373 BEGIN {RS=" "; FS="/|\n";} {
10374 lt_foo="";
10375 lt_count=0;
10376 for (lt_i = NF; lt_i > 0; lt_i--) {
10377 if ($lt_i != "" && $lt_i != ".") {
10378 if ($lt_i == "..") {
10379 lt_count++;
10380 } else {
10381 if (lt_count == 0) {
10382 lt_foo="/" $lt_i lt_foo;
10383 } else {
10384 lt_count--;
10385 }
10386 }
10387 }
10388 }
10389 if (lt_foo != "") { lt_freq[lt_foo]++; }
10390 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10391 }'`
10392 # AWK program above erroneously prepends '/' to C:/dos/paths
10393 # for these hosts.
10394 case $host_os in
10395 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10396 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10397 esac
10398 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10399 else
10400 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10401 fi
10402 library_names_spec=
10403 libname_spec='lib$name'
10404 soname_spec=
10405 shrext_cmds=".so"
10406 postinstall_cmds=
10407 postuninstall_cmds=
10408 finish_cmds=
10409 finish_eval=
10410 shlibpath_var=
10411 shlibpath_overrides_runpath=unknown
10412 version_type=none
10413 dynamic_linker="$host_os ld.so"
10414 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10415 need_lib_prefix=unknown
10416 hardcode_into_libs=no
10417
10418 # when you set need_version to no, make sure it does not cause -set_version
10419 # flags to be left without arguments
10420 need_version=unknown
10421
10422 case $host_os in
10423 aix3*)
10424 version_type=linux
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10426 shlibpath_var=LIBPATH
10427
10428 # AIX 3 has no versioning support, so we append a major version to the name.
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 ;;
10431
10432 aix[4-9]*)
10433 version_type=linux
10434 need_lib_prefix=no
10435 need_version=no
10436 hardcode_into_libs=yes
10437 if test "$host_cpu" = ia64; then
10438 # AIX 5 supports IA64
10439 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 else
10442 # With GCC up to 2.95.x, collect2 would create an import file
10443 # for dependence libraries. The import file would start with
10444 # the line `#! .'. This would cause the generated library to
10445 # depend on `.', always an invalid library. This was fixed in
10446 # development snapshots of GCC prior to 3.0.
10447 case $host_os in
10448 aix4 | aix4.[01] | aix4.[01].*)
10449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10450 echo ' yes '
10451 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10452 :
10453 else
10454 can_build_shared=no
10455 fi
10456 ;;
10457 esac
10458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10459 # soname into executable. Probably we can add versioning support to
10460 # collect2, so additional links can be useful in future.
10461 if test "$aix_use_runtimelinking" = yes; then
10462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10463 # instead of lib<name>.a to let people know that these are not
10464 # typical AIX shared libraries.
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 else
10467 # We preserve .a as extension for shared libraries through AIX4.2
10468 # and later when we are not doing run time linking.
10469 library_names_spec='${libname}${release}.a $libname.a'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 fi
10472 shlibpath_var=LIBPATH
10473 fi
10474 ;;
10475
10476 amigaos*)
10477 case $host_cpu in
10478 powerpc)
10479 # Since July 2007 AmigaOS4 officially supports .so libraries.
10480 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482 ;;
10483 m68k)
10484 library_names_spec='$libname.ixlibrary $libname.a'
10485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10486 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10487 ;;
10488 esac
10489 ;;
10490
10491 beos*)
10492 library_names_spec='${libname}${shared_ext}'
10493 dynamic_linker="$host_os ld.so"
10494 shlibpath_var=LIBRARY_PATH
10495 ;;
10496
10497 bsdi[45]*)
10498 version_type=linux
10499 need_version=no
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10506 # the default ld.so.conf also contains /usr/contrib/lib and
10507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10508 # libtool to hard-code these into programs
10509 ;;
10510
10511 cygwin* | mingw* | pw32* | cegcc*)
10512 version_type=windows
10513 shrext_cmds=".dll"
10514 need_version=no
10515 need_lib_prefix=no
10516
10517 case $GCC,$host_os in
10518 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10519 library_names_spec='$libname.dll.a'
10520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10521 postinstall_cmds='base_file=`basename \${file}`~
10522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10523 dldir=$destdir/`dirname \$dlpath`~
10524 test -d \$dldir || mkdir -p \$dldir~
10525 $install_prog $dir/$dlname \$dldir/$dlname~
10526 chmod a+x \$dldir/$dlname~
10527 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10528 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10529 fi'
10530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10531 dlpath=$dir/\$dldll~
10532 $RM \$dlpath'
10533 shlibpath_overrides_runpath=yes
10534
10535 case $host_os in
10536 cygwin*)
10537 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10538 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10539
10540 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10541 ;;
10542 mingw* | cegcc*)
10543 # MinGW DLLs use traditional 'lib' prefix
10544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10545 ;;
10546 pw32*)
10547 # pw32 DLLs use 'pw' prefix rather than 'lib'
10548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10549 ;;
10550 esac
10551 ;;
10552
10553 *)
10554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10555 ;;
10556 esac
10557 dynamic_linker='Win32 ld.exe'
10558 # FIXME: first we should search . and the directory the executable is in
10559 shlibpath_var=PATH
10560 ;;
10561
10562 darwin* | rhapsody*)
10563 dynamic_linker="$host_os dyld"
10564 version_type=darwin
10565 need_lib_prefix=no
10566 need_version=no
10567 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10568 soname_spec='${libname}${release}${major}$shared_ext'
10569 shlibpath_overrides_runpath=yes
10570 shlibpath_var=DYLD_LIBRARY_PATH
10571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10572
10573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10575 ;;
10576
10577 dgux*)
10578 version_type=linux
10579 need_lib_prefix=no
10580 need_version=no
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 ;;
10585
10586 freebsd* | dragonfly*)
10587 # DragonFly does not have aout. When/if they implement a new
10588 # versioning mechanism, adjust this.
10589 if test -x /usr/bin/objformat; then
10590 objformat=`/usr/bin/objformat`
10591 else
10592 case $host_os in
10593 freebsd[23].*) objformat=aout ;;
10594 *) objformat=elf ;;
10595 esac
10596 fi
10597 version_type=freebsd-$objformat
10598 case $version_type in
10599 freebsd-elf*)
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10601 need_version=no
10602 need_lib_prefix=no
10603 ;;
10604 freebsd-*)
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10606 need_version=yes
10607 ;;
10608 esac
10609 shlibpath_var=LD_LIBRARY_PATH
10610 case $host_os in
10611 freebsd2.*)
10612 shlibpath_overrides_runpath=yes
10613 ;;
10614 freebsd3.[01]* | freebsdelf3.[01]*)
10615 shlibpath_overrides_runpath=yes
10616 hardcode_into_libs=yes
10617 ;;
10618 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10619 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10620 shlibpath_overrides_runpath=no
10621 hardcode_into_libs=yes
10622 ;;
10623 *) # from 4.6 on, and DragonFly
10624 shlibpath_overrides_runpath=yes
10625 hardcode_into_libs=yes
10626 ;;
10627 esac
10628 ;;
10629
10630 gnu*)
10631 version_type=linux
10632 need_lib_prefix=no
10633 need_version=no
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 hardcode_into_libs=yes
10638 ;;
10639
10640 haiku*)
10641 version_type=linux
10642 need_lib_prefix=no
10643 need_version=no
10644 dynamic_linker="$host_os runtime_loader"
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 shlibpath_var=LIBRARY_PATH
10648 shlibpath_overrides_runpath=yes
10649 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10650 hardcode_into_libs=yes
10651 ;;
10652
10653 hpux9* | hpux10* | hpux11*)
10654 # Give a soname corresponding to the major version so that dld.sl refuses to
10655 # link against other versions.
10656 version_type=sunos
10657 need_lib_prefix=no
10658 need_version=no
10659 case $host_cpu in
10660 ia64*)
10661 shrext_cmds='.so'
10662 hardcode_into_libs=yes
10663 dynamic_linker="$host_os dld.so"
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10668 if test "X$HPUX_IA64_MODE" = X32; then
10669 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10670 else
10671 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10672 fi
10673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10674 ;;
10675 hppa*64*)
10676 shrext_cmds='.sl'
10677 hardcode_into_libs=yes
10678 dynamic_linker="$host_os dld.sl"
10679 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10685 ;;
10686 *)
10687 shrext_cmds='.sl'
10688 dynamic_linker="$host_os dld.sl"
10689 shlibpath_var=SHLIB_PATH
10690 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 ;;
10694 esac
10695 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10696 postinstall_cmds='chmod 555 $lib'
10697 # or fails outright, so override atomically:
10698 install_override_mode=555
10699 ;;
10700
10701 interix[3-9]*)
10702 version_type=linux
10703 need_lib_prefix=no
10704 need_version=no
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10706 soname_spec='${libname}${release}${shared_ext}$major'
10707 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=no
10710 hardcode_into_libs=yes
10711 ;;
10712
10713 irix5* | irix6* | nonstopux*)
10714 case $host_os in
10715 nonstopux*) version_type=nonstopux ;;
10716 *)
10717 if test "$lt_cv_prog_gnu_ld" = yes; then
10718 version_type=linux
10719 else
10720 version_type=irix
10721 fi ;;
10722 esac
10723 need_lib_prefix=no
10724 need_version=no
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10727 case $host_os in
10728 irix5* | nonstopux*)
10729 libsuff= shlibsuff=
10730 ;;
10731 *)
10732 case $LD in # libtool.m4 will add one of these switches to LD
10733 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10734 libsuff= shlibsuff= libmagic=32-bit;;
10735 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10736 libsuff=32 shlibsuff=N32 libmagic=N32;;
10737 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10738 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10739 *) libsuff= shlibsuff= libmagic=never-match;;
10740 esac
10741 ;;
10742 esac
10743 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10744 shlibpath_overrides_runpath=no
10745 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10746 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10747 hardcode_into_libs=yes
10748 ;;
10749
10750 # No shared lib support for Linux oldld, aout, or coff.
10751 linux*oldld* | linux*aout* | linux*coff*)
10752 dynamic_linker=no
10753 ;;
10754
10755 # This must be Linux ELF.
10756 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10757 version_type=linux
10758 need_lib_prefix=no
10759 need_version=no
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 shlibpath_overrides_runpath=no
10765
10766 # Some binutils ld are patched to set DT_RUNPATH
10767 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10770 lt_cv_shlibpath_overrides_runpath=no
10771 save_LDFLAGS=$LDFLAGS
10772 save_libdir=$libdir
10773 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10774 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777
10778 int
10779 main ()
10780 {
10781
10782 ;
10783 return 0;
10784 }
10785 _ACEOF
10786 if ac_fn_c_try_link "$LINENO"; then :
10787 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10788 lt_cv_shlibpath_overrides_runpath=yes
10789 fi
10790 fi
10791 rm -f core conftest.err conftest.$ac_objext \
10792 conftest$ac_exeext conftest.$ac_ext
10793 LDFLAGS=$save_LDFLAGS
10794 libdir=$save_libdir
10795
10796 fi
10797
10798 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10799
10800 # This implies no fast_install, which is unacceptable.
10801 # Some rework will be needed to allow for fast_install
10802 # before this can be enabled.
10803 hardcode_into_libs=yes
10804
10805 # Append ld.so.conf contents to the search path
10806 if test -f /etc/ld.so.conf; then
10807 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10808 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10809 fi
10810
10811 # We used to test for /lib/ld.so.1 and disable shared libraries on
10812 # powerpc, because MkLinux only supported shared libraries with the
10813 # GNU dynamic linker. Since this was broken with cross compilers,
10814 # most powerpc-linux boxes support dynamic linking these days and
10815 # people can always --disable-shared, the test was removed, and we
10816 # assume the GNU/Linux dynamic linker is in use.
10817 dynamic_linker='GNU/Linux ld.so'
10818 ;;
10819
10820 netbsd*)
10821 version_type=sunos
10822 need_lib_prefix=no
10823 need_version=no
10824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10827 dynamic_linker='NetBSD (a.out) ld.so'
10828 else
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 dynamic_linker='NetBSD ld.elf_so'
10832 fi
10833 shlibpath_var=LD_LIBRARY_PATH
10834 shlibpath_overrides_runpath=yes
10835 hardcode_into_libs=yes
10836 ;;
10837
10838 newsos6)
10839 version_type=linux
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes
10843 ;;
10844
10845 *nto* | *qnx*)
10846 version_type=qnx
10847 need_lib_prefix=no
10848 need_version=no
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850 soname_spec='${libname}${release}${shared_ext}$major'
10851 shlibpath_var=LD_LIBRARY_PATH
10852 shlibpath_overrides_runpath=no
10853 hardcode_into_libs=yes
10854 dynamic_linker='ldqnx.so'
10855 ;;
10856
10857 openbsd*)
10858 version_type=sunos
10859 sys_lib_dlsearch_path_spec="/usr/lib"
10860 need_lib_prefix=no
10861 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10862 case $host_os in
10863 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10864 *) need_version=no ;;
10865 esac
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10870 case $host_os in
10871 openbsd2.[89] | openbsd2.[89].*)
10872 shlibpath_overrides_runpath=no
10873 ;;
10874 *)
10875 shlibpath_overrides_runpath=yes
10876 ;;
10877 esac
10878 else
10879 shlibpath_overrides_runpath=yes
10880 fi
10881 ;;
10882
10883 os2*)
10884 libname_spec='$name'
10885 shrext_cmds=".dll"
10886 need_lib_prefix=no
10887 library_names_spec='$libname${shared_ext} $libname.a'
10888 dynamic_linker='OS/2 ld.exe'
10889 shlibpath_var=LIBPATH
10890 ;;
10891
10892 osf3* | osf4* | osf5*)
10893 version_type=osf
10894 need_lib_prefix=no
10895 need_version=no
10896 soname_spec='${libname}${release}${shared_ext}$major'
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10900 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10901 ;;
10902
10903 rdos*)
10904 dynamic_linker=no
10905 ;;
10906
10907 solaris*)
10908 version_type=linux
10909 need_lib_prefix=no
10910 need_version=no
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 shlibpath_var=LD_LIBRARY_PATH
10914 shlibpath_overrides_runpath=yes
10915 hardcode_into_libs=yes
10916 # ldd complains unless libraries are executable
10917 postinstall_cmds='chmod +x $lib'
10918 ;;
10919
10920 sunos4*)
10921 version_type=sunos
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10923 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 shlibpath_overrides_runpath=yes
10926 if test "$with_gnu_ld" = yes; then
10927 need_lib_prefix=no
10928 fi
10929 need_version=yes
10930 ;;
10931
10932 sysv4 | sysv4.3*)
10933 version_type=linux
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 case $host_vendor in
10938 sni)
10939 shlibpath_overrides_runpath=no
10940 need_lib_prefix=no
10941 runpath_var=LD_RUN_PATH
10942 ;;
10943 siemens)
10944 need_lib_prefix=no
10945 ;;
10946 motorola)
10947 need_lib_prefix=no
10948 need_version=no
10949 shlibpath_overrides_runpath=no
10950 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10951 ;;
10952 esac
10953 ;;
10954
10955 sysv4*MP*)
10956 if test -d /usr/nec ;then
10957 version_type=linux
10958 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10959 soname_spec='$libname${shared_ext}.$major'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 fi
10962 ;;
10963
10964 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10965 version_type=freebsd-elf
10966 need_lib_prefix=no
10967 need_version=no
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes
10972 hardcode_into_libs=yes
10973 if test "$with_gnu_ld" = yes; then
10974 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10975 else
10976 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10977 case $host_os in
10978 sco3.2v5*)
10979 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10980 ;;
10981 esac
10982 fi
10983 sys_lib_dlsearch_path_spec='/usr/lib'
10984 ;;
10985
10986 tpf*)
10987 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10988 version_type=linux
10989 need_lib_prefix=no
10990 need_version=no
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=no
10994 hardcode_into_libs=yes
10995 ;;
10996
10997 uts4*)
10998 version_type=linux
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 ;;
11003
11004 *)
11005 dynamic_linker=no
11006 ;;
11007 esac
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11009 $as_echo "$dynamic_linker" >&6; }
11010 test "$dynamic_linker" = no && can_build_shared=no
11011
11012 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11013 if test "$GCC" = yes; then
11014 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11015 fi
11016
11017 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11018 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11019 fi
11020 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11021 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11022 fi
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11116 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11117 hardcode_action=
11118 if test -n "$hardcode_libdir_flag_spec" ||
11119 test -n "$runpath_var" ||
11120 test "X$hardcode_automatic" = "Xyes" ; then
11121
11122 # We can hardcode non-existent directories.
11123 if test "$hardcode_direct" != no &&
11124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11125 # have to relink, otherwise we might link with an installed library
11126 # when we should be linking with a yet-to-be-installed one
11127 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11128 test "$hardcode_minus_L" != no; then
11129 # Linking always hardcodes the temporary library directory.
11130 hardcode_action=relink
11131 else
11132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11133 hardcode_action=immediate
11134 fi
11135 else
11136 # We cannot hardcode anything, or else we can only hardcode existing
11137 # directories.
11138 hardcode_action=unsupported
11139 fi
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11141 $as_echo "$hardcode_action" >&6; }
11142
11143 if test "$hardcode_action" = relink ||
11144 test "$inherit_rpath" = yes; then
11145 # Fast installation is not supported
11146 enable_fast_install=no
11147 elif test "$shlibpath_overrides_runpath" = yes ||
11148 test "$enable_shared" = no; then
11149 # Fast installation is not necessary
11150 enable_fast_install=needless
11151 fi
11152
11153
11154
11155
11156
11157
11158 if test "x$enable_dlopen" != xyes; then
11159 enable_dlopen=unknown
11160 enable_dlopen_self=unknown
11161 enable_dlopen_self_static=unknown
11162 else
11163 lt_cv_dlopen=no
11164 lt_cv_dlopen_libs=
11165
11166 case $host_os in
11167 beos*)
11168 lt_cv_dlopen="load_add_on"
11169 lt_cv_dlopen_libs=
11170 lt_cv_dlopen_self=yes
11171 ;;
11172
11173 mingw* | pw32* | cegcc*)
11174 lt_cv_dlopen="LoadLibrary"
11175 lt_cv_dlopen_libs=
11176 ;;
11177
11178 cygwin*)
11179 lt_cv_dlopen="dlopen"
11180 lt_cv_dlopen_libs=
11181 ;;
11182
11183 darwin*)
11184 # if libdl is installed we need to link against it
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11186 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11187 if ${ac_cv_lib_dl_dlopen+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 ac_check_lib_save_LIBS=$LIBS
11191 LIBS="-ldl $LIBS"
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194
11195 /* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11198 #ifdef __cplusplus
11199 extern "C"
11200 #endif
11201 char dlopen ();
11202 int
11203 main ()
11204 {
11205 return dlopen ();
11206 ;
11207 return 0;
11208 }
11209 _ACEOF
11210 if ac_fn_c_try_link "$LINENO"; then :
11211 ac_cv_lib_dl_dlopen=yes
11212 else
11213 ac_cv_lib_dl_dlopen=no
11214 fi
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217 LIBS=$ac_check_lib_save_LIBS
11218 fi
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11220 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11221 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11223 else
11224
11225 lt_cv_dlopen="dyld"
11226 lt_cv_dlopen_libs=
11227 lt_cv_dlopen_self=yes
11228
11229 fi
11230
11231 ;;
11232
11233 *)
11234 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11235 if test "x$ac_cv_func_shl_load" = xyes; then :
11236 lt_cv_dlopen="shl_load"
11237 else
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11239 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11240 if ${ac_cv_lib_dld_shl_load+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 ac_check_lib_save_LIBS=$LIBS
11244 LIBS="-ldld $LIBS"
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11247
11248 /* Override any GCC internal prototype to avoid an error.
11249 Use char because int might match the return type of a GCC
11250 builtin and then its argument prototype would still apply. */
11251 #ifdef __cplusplus
11252 extern "C"
11253 #endif
11254 char shl_load ();
11255 int
11256 main ()
11257 {
11258 return shl_load ();
11259 ;
11260 return 0;
11261 }
11262 _ACEOF
11263 if ac_fn_c_try_link "$LINENO"; then :
11264 ac_cv_lib_dld_shl_load=yes
11265 else
11266 ac_cv_lib_dld_shl_load=no
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext \
11269 conftest$ac_exeext conftest.$ac_ext
11270 LIBS=$ac_check_lib_save_LIBS
11271 fi
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11273 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11274 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11275 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11276 else
11277 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11278 if test "x$ac_cv_func_dlopen" = xyes; then :
11279 lt_cv_dlopen="dlopen"
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11282 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11283 if ${ac_cv_lib_dl_dlopen+:} false; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11286 ac_check_lib_save_LIBS=$LIBS
11287 LIBS="-ldl $LIBS"
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290
11291 /* Override any GCC internal prototype to avoid an error.
11292 Use char because int might match the return type of a GCC
11293 builtin and then its argument prototype would still apply. */
11294 #ifdef __cplusplus
11295 extern "C"
11296 #endif
11297 char dlopen ();
11298 int
11299 main ()
11300 {
11301 return dlopen ();
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 if ac_fn_c_try_link "$LINENO"; then :
11307 ac_cv_lib_dl_dlopen=yes
11308 else
11309 ac_cv_lib_dl_dlopen=no
11310 fi
11311 rm -f core conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11313 LIBS=$ac_check_lib_save_LIBS
11314 fi
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11316 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11317 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11321 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11322 if ${ac_cv_lib_svld_dlopen+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 ac_check_lib_save_LIBS=$LIBS
11326 LIBS="-lsvld $LIBS"
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11329
11330 /* Override any GCC internal prototype to avoid an error.
11331 Use char because int might match the return type of a GCC
11332 builtin and then its argument prototype would still apply. */
11333 #ifdef __cplusplus
11334 extern "C"
11335 #endif
11336 char dlopen ();
11337 int
11338 main ()
11339 {
11340 return dlopen ();
11341 ;
11342 return 0;
11343 }
11344 _ACEOF
11345 if ac_fn_c_try_link "$LINENO"; then :
11346 ac_cv_lib_svld_dlopen=yes
11347 else
11348 ac_cv_lib_svld_dlopen=no
11349 fi
11350 rm -f core conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_lib_save_LIBS
11353 fi
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11355 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11356 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11360 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11361 if ${ac_cv_lib_dld_dld_link+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 ac_check_lib_save_LIBS=$LIBS
11365 LIBS="-ldld $LIBS"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char dld_link ();
11376 int
11377 main ()
11378 {
11379 return dld_link ();
11380 ;
11381 return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385 ac_cv_lib_dld_dld_link=yes
11386 else
11387 ac_cv_lib_dld_dld_link=no
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11394 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11395 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11396 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11397 fi
11398
11399
11400 fi
11401
11402
11403 fi
11404
11405
11406 fi
11407
11408
11409 fi
11410
11411
11412 fi
11413
11414 ;;
11415 esac
11416
11417 if test "x$lt_cv_dlopen" != xno; then
11418 enable_dlopen=yes
11419 else
11420 enable_dlopen=no
11421 fi
11422
11423 case $lt_cv_dlopen in
11424 dlopen)
11425 save_CPPFLAGS="$CPPFLAGS"
11426 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11427
11428 save_LDFLAGS="$LDFLAGS"
11429 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11430
11431 save_LIBS="$LIBS"
11432 LIBS="$lt_cv_dlopen_libs $LIBS"
11433
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11435 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11436 if ${lt_cv_dlopen_self+:} false; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 if test "$cross_compiling" = yes; then :
11440 lt_cv_dlopen_self=cross
11441 else
11442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11443 lt_status=$lt_dlunknown
11444 cat > conftest.$ac_ext <<_LT_EOF
11445 #line 11446 "configure"
11446 #include "confdefs.h"
11447
11448 #if HAVE_DLFCN_H
11449 #include <dlfcn.h>
11450 #endif
11451
11452 #include <stdio.h>
11453
11454 #ifdef RTLD_GLOBAL
11455 # define LT_DLGLOBAL RTLD_GLOBAL
11456 #else
11457 # ifdef DL_GLOBAL
11458 # define LT_DLGLOBAL DL_GLOBAL
11459 # else
11460 # define LT_DLGLOBAL 0
11461 # endif
11462 #endif
11463
11464 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11465 find out it does not work in some platform. */
11466 #ifndef LT_DLLAZY_OR_NOW
11467 # ifdef RTLD_LAZY
11468 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11469 # else
11470 # ifdef DL_LAZY
11471 # define LT_DLLAZY_OR_NOW DL_LAZY
11472 # else
11473 # ifdef RTLD_NOW
11474 # define LT_DLLAZY_OR_NOW RTLD_NOW
11475 # else
11476 # ifdef DL_NOW
11477 # define LT_DLLAZY_OR_NOW DL_NOW
11478 # else
11479 # define LT_DLLAZY_OR_NOW 0
11480 # endif
11481 # endif
11482 # endif
11483 # endif
11484 #endif
11485
11486 /* When -fvisbility=hidden is used, assume the code has been annotated
11487 correspondingly for the symbols needed. */
11488 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11489 void fnord () __attribute__((visibility("default")));
11490 #endif
11491
11492 void fnord () { int i=42; }
11493 int main ()
11494 {
11495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11496 int status = $lt_dlunknown;
11497
11498 if (self)
11499 {
11500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11501 else
11502 {
11503 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11504 else puts (dlerror ());
11505 }
11506 /* dlclose (self); */
11507 }
11508 else
11509 puts (dlerror ());
11510
11511 return status;
11512 }
11513 _LT_EOF
11514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11515 (eval $ac_link) 2>&5
11516 ac_status=$?
11517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11518 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11519 (./conftest; exit; ) >&5 2>/dev/null
11520 lt_status=$?
11521 case x$lt_status in
11522 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11523 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11524 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11525 esac
11526 else :
11527 # compilation failed
11528 lt_cv_dlopen_self=no
11529 fi
11530 fi
11531 rm -fr conftest*
11532
11533
11534 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11536 $as_echo "$lt_cv_dlopen_self" >&6; }
11537
11538 if test "x$lt_cv_dlopen_self" = xyes; then
11539 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11541 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11542 if ${lt_cv_dlopen_self_static+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 if test "$cross_compiling" = yes; then :
11546 lt_cv_dlopen_self_static=cross
11547 else
11548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11549 lt_status=$lt_dlunknown
11550 cat > conftest.$ac_ext <<_LT_EOF
11551 #line 11552 "configure"
11552 #include "confdefs.h"
11553
11554 #if HAVE_DLFCN_H
11555 #include <dlfcn.h>
11556 #endif
11557
11558 #include <stdio.h>
11559
11560 #ifdef RTLD_GLOBAL
11561 # define LT_DLGLOBAL RTLD_GLOBAL
11562 #else
11563 # ifdef DL_GLOBAL
11564 # define LT_DLGLOBAL DL_GLOBAL
11565 # else
11566 # define LT_DLGLOBAL 0
11567 # endif
11568 #endif
11569
11570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11571 find out it does not work in some platform. */
11572 #ifndef LT_DLLAZY_OR_NOW
11573 # ifdef RTLD_LAZY
11574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11575 # else
11576 # ifdef DL_LAZY
11577 # define LT_DLLAZY_OR_NOW DL_LAZY
11578 # else
11579 # ifdef RTLD_NOW
11580 # define LT_DLLAZY_OR_NOW RTLD_NOW
11581 # else
11582 # ifdef DL_NOW
11583 # define LT_DLLAZY_OR_NOW DL_NOW
11584 # else
11585 # define LT_DLLAZY_OR_NOW 0
11586 # endif
11587 # endif
11588 # endif
11589 # endif
11590 #endif
11591
11592 /* When -fvisbility=hidden is used, assume the code has been annotated
11593 correspondingly for the symbols needed. */
11594 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11595 void fnord () __attribute__((visibility("default")));
11596 #endif
11597
11598 void fnord () { int i=42; }
11599 int main ()
11600 {
11601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11602 int status = $lt_dlunknown;
11603
11604 if (self)
11605 {
11606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11607 else
11608 {
11609 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11610 else puts (dlerror ());
11611 }
11612 /* dlclose (self); */
11613 }
11614 else
11615 puts (dlerror ());
11616
11617 return status;
11618 }
11619 _LT_EOF
11620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11621 (eval $ac_link) 2>&5
11622 ac_status=$?
11623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11625 (./conftest; exit; ) >&5 2>/dev/null
11626 lt_status=$?
11627 case x$lt_status in
11628 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11629 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11630 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11631 esac
11632 else :
11633 # compilation failed
11634 lt_cv_dlopen_self_static=no
11635 fi
11636 fi
11637 rm -fr conftest*
11638
11639
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11642 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11643 fi
11644
11645 CPPFLAGS="$save_CPPFLAGS"
11646 LDFLAGS="$save_LDFLAGS"
11647 LIBS="$save_LIBS"
11648 ;;
11649 esac
11650
11651 case $lt_cv_dlopen_self in
11652 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11653 *) enable_dlopen_self=unknown ;;
11654 esac
11655
11656 case $lt_cv_dlopen_self_static in
11657 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11658 *) enable_dlopen_self_static=unknown ;;
11659 esac
11660 fi
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678 striplib=
11679 old_striplib=
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11681 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11682 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11683 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11684 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11686 $as_echo "yes" >&6; }
11687 else
11688 # FIXME - insert some real tests, host_os isn't really good enough
11689 case $host_os in
11690 darwin*)
11691 if test -n "$STRIP" ; then
11692 striplib="$STRIP -x"
11693 old_striplib="$STRIP -S"
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695 $as_echo "yes" >&6; }
11696 else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11699 fi
11700 ;;
11701 *)
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703 $as_echo "no" >&6; }
11704 ;;
11705 esac
11706 fi
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719 # Report which library types will actually be built
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11721 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11723 $as_echo "$can_build_shared" >&6; }
11724
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11726 $as_echo_n "checking whether to build shared libraries... " >&6; }
11727 test "$can_build_shared" = "no" && enable_shared=no
11728
11729 # On AIX, shared libraries and static libraries use the same namespace, and
11730 # are all built from PIC.
11731 case $host_os in
11732 aix3*)
11733 test "$enable_shared" = yes && enable_static=no
11734 if test -n "$RANLIB"; then
11735 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11736 postinstall_cmds='$RANLIB $lib'
11737 fi
11738 ;;
11739
11740 aix[4-9]*)
11741 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11742 test "$enable_shared" = yes && enable_static=no
11743 fi
11744 ;;
11745 esac
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11747 $as_echo "$enable_shared" >&6; }
11748
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11750 $as_echo_n "checking whether to build static libraries... " >&6; }
11751 # Make sure either enable_shared or enable_static is yes.
11752 test "$enable_shared" = yes || enable_static=yes
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11754 $as_echo "$enable_static" >&6; }
11755
11756
11757
11758
11759 fi
11760 ac_ext=c
11761 ac_cpp='$CPP $CPPFLAGS'
11762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765
11766 CC="$lt_save_CC"
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780 ac_config_commands="$ac_config_commands libtool"
11781
11782
11783
11784
11785 # Only expand once:
11786
11787
11788 fi
11789
11790 ac_config_files="$ac_config_files Makefile"
11791
11792 cat >confcache <<\_ACEOF
11793 # This file is a shell script that caches the results of configure
11794 # tests run on this system so they can be shared between configure
11795 # scripts and configure runs, see configure's option --config-cache.
11796 # It is not useful on other systems. If it contains results you don't
11797 # want to keep, you may remove or edit it.
11798 #
11799 # config.status only pays attention to the cache file if you give it
11800 # the --recheck option to rerun configure.
11801 #
11802 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11803 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11804 # following values.
11805
11806 _ACEOF
11807
11808 # The following way of writing the cache mishandles newlines in values,
11809 # but we know of no workaround that is simple, portable, and efficient.
11810 # So, we kill variables containing newlines.
11811 # Ultrix sh set writes to stderr and can't be redirected directly,
11812 # and sets the high bit in the cache file unless we assign to the vars.
11813 (
11814 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11815 eval ac_val=\$$ac_var
11816 case $ac_val in #(
11817 *${as_nl}*)
11818 case $ac_var in #(
11819 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11820 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11821 esac
11822 case $ac_var in #(
11823 _ | IFS | as_nl) ;; #(
11824 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11825 *) { eval $ac_var=; unset $ac_var;} ;;
11826 esac ;;
11827 esac
11828 done
11829
11830 (set) 2>&1 |
11831 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11832 *${as_nl}ac_space=\ *)
11833 # `set' does not quote correctly, so add quotes: double-quote
11834 # substitution turns \\\\ into \\, and sed turns \\ into \.
11835 sed -n \
11836 "s/'/'\\\\''/g;
11837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11838 ;; #(
11839 *)
11840 # `set' quotes correctly as required by POSIX, so do not add quotes.
11841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11842 ;;
11843 esac |
11844 sort
11845 ) |
11846 sed '
11847 /^ac_cv_env_/b end
11848 t clear
11849 :clear
11850 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11851 t end
11852 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11853 :end' >>confcache
11854 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11855 if test -w "$cache_file"; then
11856 if test "x$cache_file" != "x/dev/null"; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11858 $as_echo "$as_me: updating cache $cache_file" >&6;}
11859 if test ! -f "$cache_file" || test -h "$cache_file"; then
11860 cat confcache >"$cache_file"
11861 else
11862 case $cache_file in #(
11863 */* | ?:*)
11864 mv -f confcache "$cache_file"$$ &&
11865 mv -f "$cache_file"$$ "$cache_file" ;; #(
11866 *)
11867 mv -f confcache "$cache_file" ;;
11868 esac
11869 fi
11870 fi
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11873 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11874 fi
11875 fi
11876 rm -f confcache
11877
11878 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11879 # Let make expand exec_prefix.
11880 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11881
11882 # Transform confdefs.h into DEFS.
11883 # Protect against shell expansion while executing Makefile rules.
11884 # Protect against Makefile macro expansion.
11885 #
11886 # If the first sed substitution is executed (which looks for macros that
11887 # take arguments), then branch to the quote section. Otherwise,
11888 # look for a macro that doesn't take arguments.
11889 ac_script='
11890 :mline
11891 /\\$/{
11892 N
11893 s,\\\n,,
11894 b mline
11895 }
11896 t clear
11897 :clear
11898 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11899 t quote
11900 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11901 t quote
11902 b any
11903 :quote
11904 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11905 s/\[/\\&/g
11906 s/\]/\\&/g
11907 s/\$/$$/g
11908 H
11909 :any
11910 ${
11911 g
11912 s/^\n//
11913 s/\n/ /g
11914 p
11915 }
11916 '
11917 DEFS=`sed -n "$ac_script" confdefs.h`
11918
11919
11920 ac_libobjs=
11921 ac_ltlibobjs=
11922 U=
11923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11924 # 1. Remove the extension, and $U if already installed.
11925 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11926 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11928 # will be set to the directory where LIBOBJS objects are built.
11929 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11930 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11931 done
11932 LIBOBJS=$ac_libobjs
11933
11934 LTLIBOBJS=$ac_ltlibobjs
11935
11936
11937 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11938 as_fn_error $? "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11940 fi
11941 if test -n "$EXEEXT"; then
11942 am__EXEEXT_TRUE=
11943 am__EXEEXT_FALSE='#'
11944 else
11945 am__EXEEXT_TRUE='#'
11946 am__EXEEXT_FALSE=
11947 fi
11948
11949 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11950 as_fn_error $? "conditional \"AMDEP\" was never defined.
11951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11952 fi
11953 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11954 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11956 fi
11957 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11958 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11960 fi
11961 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11962 as_fn_error $? "conditional \"ELIX_LEVEL_0\" was never defined.
11963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11964 fi
11965 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11966 as_fn_error $? "conditional \"ELIX_LEVEL_1\" was never defined.
11967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11968 fi
11969 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11970 as_fn_error $? "conditional \"ELIX_LEVEL_2\" was never defined.
11971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11972 fi
11973 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11974 as_fn_error $? "conditional \"ELIX_LEVEL_3\" was never defined.
11975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11976 fi
11977 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11978 as_fn_error $? "conditional \"ELIX_LEVEL_4\" was never defined.
11979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11980 fi
11981 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11982 as_fn_error $? "conditional \"USE_LIBTOOL\" was never defined.
11983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11984 fi
11985 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11986 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11988 fi
11989
11990 : "${CONFIG_STATUS=./config.status}"
11991 ac_write_fail=0
11992 ac_clean_files_save=$ac_clean_files
11993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11995 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11996 as_write_fail=0
11997 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11998 #! $SHELL
11999 # Generated by $as_me.
12000 # Run this file to recreate the current configuration.
12001 # Compiler output produced by configure, useful for debugging
12002 # configure, is in config.log if it exists.
12003
12004 debug=false
12005 ac_cs_recheck=false
12006 ac_cs_silent=false
12007
12008 SHELL=\${CONFIG_SHELL-$SHELL}
12009 export SHELL
12010 _ASEOF
12011 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12012 ## -------------------- ##
12013 ## M4sh Initialization. ##
12014 ## -------------------- ##
12015
12016 # Be more Bourne compatible
12017 DUALCASE=1; export DUALCASE # for MKS sh
12018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12019 emulate sh
12020 NULLCMD=:
12021 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12022 # is contrary to our usage. Disable this feature.
12023 alias -g '${1+"$@"}'='"$@"'
12024 setopt NO_GLOB_SUBST
12025 else
12026 case `(set -o) 2>/dev/null` in #(
12027 *posix*) :
12028 set -o posix ;; #(
12029 *) :
12030 ;;
12031 esac
12032 fi
12033
12034
12035 as_nl='
12036 '
12037 export as_nl
12038 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12039 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12042 # Prefer a ksh shell builtin over an external printf program on Solaris,
12043 # but without wasting forks for bash or zsh.
12044 if test -z "$BASH_VERSION$ZSH_VERSION" \
12045 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12046 as_echo='print -r --'
12047 as_echo_n='print -rn --'
12048 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12049 as_echo='printf %s\n'
12050 as_echo_n='printf %s'
12051 else
12052 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12053 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12054 as_echo_n='/usr/ucb/echo -n'
12055 else
12056 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12057 as_echo_n_body='eval
12058 arg=$1;
12059 case $arg in #(
12060 *"$as_nl"*)
12061 expr "X$arg" : "X\\(.*\\)$as_nl";
12062 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12063 esac;
12064 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12065 '
12066 export as_echo_n_body
12067 as_echo_n='sh -c $as_echo_n_body as_echo'
12068 fi
12069 export as_echo_body
12070 as_echo='sh -c $as_echo_body as_echo'
12071 fi
12072
12073 # The user is always right.
12074 if test "${PATH_SEPARATOR+set}" != set; then
12075 PATH_SEPARATOR=:
12076 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12077 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12078 PATH_SEPARATOR=';'
12079 }
12080 fi
12081
12082
12083 # IFS
12084 # We need space, tab and new line, in precisely that order. Quoting is
12085 # there to prevent editors from complaining about space-tab.
12086 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12087 # splitting by setting IFS to empty value.)
12088 IFS=" "" $as_nl"
12089
12090 # Find who we are. Look in the path if we contain no directory separator.
12091 as_myself=
12092 case $0 in #((
12093 *[\\/]* ) as_myself=$0 ;;
12094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12096 do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12100 done
12101 IFS=$as_save_IFS
12102
12103 ;;
12104 esac
12105 # We did not find ourselves, most probably we were run as `sh COMMAND'
12106 # in which case we are not to be found in the path.
12107 if test "x$as_myself" = x; then
12108 as_myself=$0
12109 fi
12110 if test ! -f "$as_myself"; then
12111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12112 exit 1
12113 fi
12114
12115 # Unset variables that we do not need and which cause bugs (e.g. in
12116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12117 # suppresses any "Segmentation fault" message there. '((' could
12118 # trigger a bug in pdksh 5.2.14.
12119 for as_var in BASH_ENV ENV MAIL MAILPATH
12120 do eval test x\${$as_var+set} = xset \
12121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12122 done
12123 PS1='$ '
12124 PS2='> '
12125 PS4='+ '
12126
12127 # NLS nuisances.
12128 LC_ALL=C
12129 export LC_ALL
12130 LANGUAGE=C
12131 export LANGUAGE
12132
12133 # CDPATH.
12134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12135
12136
12137 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12138 # ----------------------------------------
12139 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12140 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12141 # script with STATUS, using 1 if that was 0.
12142 as_fn_error ()
12143 {
12144 as_status=$1; test $as_status -eq 0 && as_status=1
12145 if test "$4"; then
12146 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12147 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12148 fi
12149 $as_echo "$as_me: error: $2" >&2
12150 as_fn_exit $as_status
12151 } # as_fn_error
12152
12153
12154 # as_fn_set_status STATUS
12155 # -----------------------
12156 # Set $? to STATUS, without forking.
12157 as_fn_set_status ()
12158 {
12159 return $1
12160 } # as_fn_set_status
12161
12162 # as_fn_exit STATUS
12163 # -----------------
12164 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12165 as_fn_exit ()
12166 {
12167 set +e
12168 as_fn_set_status $1
12169 exit $1
12170 } # as_fn_exit
12171
12172 # as_fn_unset VAR
12173 # ---------------
12174 # Portably unset VAR.
12175 as_fn_unset ()
12176 {
12177 { eval $1=; unset $1;}
12178 }
12179 as_unset=as_fn_unset
12180 # as_fn_append VAR VALUE
12181 # ----------------------
12182 # Append the text in VALUE to the end of the definition contained in VAR. Take
12183 # advantage of any shell optimizations that allow amortized linear growth over
12184 # repeated appends, instead of the typical quadratic growth present in naive
12185 # implementations.
12186 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12187 eval 'as_fn_append ()
12188 {
12189 eval $1+=\$2
12190 }'
12191 else
12192 as_fn_append ()
12193 {
12194 eval $1=\$$1\$2
12195 }
12196 fi # as_fn_append
12197
12198 # as_fn_arith ARG...
12199 # ------------------
12200 # Perform arithmetic evaluation on the ARGs, and store the result in the
12201 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12202 # must be portable across $(()) and expr.
12203 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12204 eval 'as_fn_arith ()
12205 {
12206 as_val=$(( $* ))
12207 }'
12208 else
12209 as_fn_arith ()
12210 {
12211 as_val=`expr "$@" || test $? -eq 1`
12212 }
12213 fi # as_fn_arith
12214
12215
12216 if expr a : '\(a\)' >/dev/null 2>&1 &&
12217 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12218 as_expr=expr
12219 else
12220 as_expr=false
12221 fi
12222
12223 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12224 as_basename=basename
12225 else
12226 as_basename=false
12227 fi
12228
12229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12230 as_dirname=dirname
12231 else
12232 as_dirname=false
12233 fi
12234
12235 as_me=`$as_basename -- "$0" ||
12236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12237 X"$0" : 'X\(//\)$' \| \
12238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12239 $as_echo X/"$0" |
12240 sed '/^.*\/\([^/][^/]*\)\/*$/{
12241 s//\1/
12242 q
12243 }
12244 /^X\/\(\/\/\)$/{
12245 s//\1/
12246 q
12247 }
12248 /^X\/\(\/\).*/{
12249 s//\1/
12250 q
12251 }
12252 s/.*/./; q'`
12253
12254 # Avoid depending upon Character Ranges.
12255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12258 as_cr_digits='0123456789'
12259 as_cr_alnum=$as_cr_Letters$as_cr_digits
12260
12261 ECHO_C= ECHO_N= ECHO_T=
12262 case `echo -n x` in #(((((
12263 -n*)
12264 case `echo 'xy\c'` in
12265 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12266 xy) ECHO_C='\c';;
12267 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12268 ECHO_T=' ';;
12269 esac;;
12270 *)
12271 ECHO_N='-n';;
12272 esac
12273
12274 rm -f conf$$ conf$$.exe conf$$.file
12275 if test -d conf$$.dir; then
12276 rm -f conf$$.dir/conf$$.file
12277 else
12278 rm -f conf$$.dir
12279 mkdir conf$$.dir 2>/dev/null
12280 fi
12281 if (echo >conf$$.file) 2>/dev/null; then
12282 if ln -s conf$$.file conf$$ 2>/dev/null; then
12283 as_ln_s='ln -s'
12284 # ... but there are two gotchas:
12285 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12286 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12287 # In both cases, we have to default to `cp -p'.
12288 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12289 as_ln_s='cp -p'
12290 elif ln conf$$.file conf$$ 2>/dev/null; then
12291 as_ln_s=ln
12292 else
12293 as_ln_s='cp -p'
12294 fi
12295 else
12296 as_ln_s='cp -p'
12297 fi
12298 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12299 rmdir conf$$.dir 2>/dev/null
12300
12301
12302 # as_fn_mkdir_p
12303 # -------------
12304 # Create "$as_dir" as a directory, including parents if necessary.
12305 as_fn_mkdir_p ()
12306 {
12307
12308 case $as_dir in #(
12309 -*) as_dir=./$as_dir;;
12310 esac
12311 test -d "$as_dir" || eval $as_mkdir_p || {
12312 as_dirs=
12313 while :; do
12314 case $as_dir in #(
12315 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12316 *) as_qdir=$as_dir;;
12317 esac
12318 as_dirs="'$as_qdir' $as_dirs"
12319 as_dir=`$as_dirname -- "$as_dir" ||
12320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12321 X"$as_dir" : 'X\(//\)[^/]' \| \
12322 X"$as_dir" : 'X\(//\)$' \| \
12323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12324 $as_echo X"$as_dir" |
12325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12326 s//\1/
12327 q
12328 }
12329 /^X\(\/\/\)[^/].*/{
12330 s//\1/
12331 q
12332 }
12333 /^X\(\/\/\)$/{
12334 s//\1/
12335 q
12336 }
12337 /^X\(\/\).*/{
12338 s//\1/
12339 q
12340 }
12341 s/.*/./; q'`
12342 test -d "$as_dir" && break
12343 done
12344 test -z "$as_dirs" || eval "mkdir $as_dirs"
12345 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12346
12347
12348 } # as_fn_mkdir_p
12349 if mkdir -p . 2>/dev/null; then
12350 as_mkdir_p='mkdir -p "$as_dir"'
12351 else
12352 test -d ./-p && rmdir ./-p
12353 as_mkdir_p=false
12354 fi
12355
12356 if test -x / >/dev/null 2>&1; then
12357 as_test_x='test -x'
12358 else
12359 if ls -dL / >/dev/null 2>&1; then
12360 as_ls_L_option=L
12361 else
12362 as_ls_L_option=
12363 fi
12364 as_test_x='
12365 eval sh -c '\''
12366 if test -d "$1"; then
12367 test -d "$1/.";
12368 else
12369 case $1 in #(
12370 -*)set "./$1";;
12371 esac;
12372 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12373 ???[sx]*):;;*)false;;esac;fi
12374 '\'' sh
12375 '
12376 fi
12377 as_executable_p=$as_test_x
12378
12379 # Sed expression to map a string onto a valid CPP name.
12380 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12381
12382 # Sed expression to map a string onto a valid variable name.
12383 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12384
12385
12386 exec 6>&1
12387 ## ----------------------------------- ##
12388 ## Main body of $CONFIG_STATUS script. ##
12389 ## ----------------------------------- ##
12390 _ASEOF
12391 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12392
12393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12394 # Save the log message, to keep $0 and so on meaningful, and to
12395 # report actual input values of CONFIG_FILES etc. instead of their
12396 # values after options handling.
12397 ac_log="
12398 This file was extended by newlib $as_me 3.3.0, which was
12399 generated by GNU Autoconf 2.68. Invocation command line was
12400
12401 CONFIG_FILES = $CONFIG_FILES
12402 CONFIG_HEADERS = $CONFIG_HEADERS
12403 CONFIG_LINKS = $CONFIG_LINKS
12404 CONFIG_COMMANDS = $CONFIG_COMMANDS
12405 $ $0 $@
12406
12407 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12408 "
12409
12410 _ACEOF
12411
12412 case $ac_config_files in *"
12413 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12414 esac
12415
12416
12417
12418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12419 # Files that config.status was made for.
12420 config_files="$ac_config_files"
12421 config_commands="$ac_config_commands"
12422
12423 _ACEOF
12424
12425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12426 ac_cs_usage="\
12427 \`$as_me' instantiates files and other configuration actions
12428 from templates according to the current configuration. Unless the files
12429 and actions are specified as TAGs, all are instantiated by default.
12430
12431 Usage: $0 [OPTION]... [TAG]...
12432
12433 -h, --help print this help, then exit
12434 -V, --version print version number and configuration settings, then exit
12435 --config print configuration, then exit
12436 -q, --quiet, --silent
12437 do not print progress messages
12438 -d, --debug don't remove temporary files
12439 --recheck update $as_me by reconfiguring in the same conditions
12440 --file=FILE[:TEMPLATE]
12441 instantiate the configuration file FILE
12442
12443 Configuration files:
12444 $config_files
12445
12446 Configuration commands:
12447 $config_commands
12448
12449 Report bugs to the package provider."
12450
12451 _ACEOF
12452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12453 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12454 ac_cs_version="\\
12455 newlib config.status 3.3.0
12456 configured by $0, generated by GNU Autoconf 2.68,
12457 with options \\"\$ac_cs_config\\"
12458
12459 Copyright (C) 2010 Free Software Foundation, Inc.
12460 This config.status script is free software; the Free Software Foundation
12461 gives unlimited permission to copy, distribute and modify it."
12462
12463 ac_pwd='$ac_pwd'
12464 srcdir='$srcdir'
12465 INSTALL='$INSTALL'
12466 MKDIR_P='$MKDIR_P'
12467 AWK='$AWK'
12468 test -n "\$AWK" || AWK=awk
12469 _ACEOF
12470
12471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472 # The default lists apply if the user does not specify any file.
12473 ac_need_defaults=:
12474 while test $# != 0
12475 do
12476 case $1 in
12477 --*=?*)
12478 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12479 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12480 ac_shift=:
12481 ;;
12482 --*=)
12483 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12484 ac_optarg=
12485 ac_shift=:
12486 ;;
12487 *)
12488 ac_option=$1
12489 ac_optarg=$2
12490 ac_shift=shift
12491 ;;
12492 esac
12493
12494 case $ac_option in
12495 # Handling of the options.
12496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12497 ac_cs_recheck=: ;;
12498 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12499 $as_echo "$ac_cs_version"; exit ;;
12500 --config | --confi | --conf | --con | --co | --c )
12501 $as_echo "$ac_cs_config"; exit ;;
12502 --debug | --debu | --deb | --de | --d | -d )
12503 debug=: ;;
12504 --file | --fil | --fi | --f )
12505 $ac_shift
12506 case $ac_optarg in
12507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12508 '') as_fn_error $? "missing file argument" ;;
12509 esac
12510 as_fn_append CONFIG_FILES " '$ac_optarg'"
12511 ac_need_defaults=false;;
12512 --he | --h | --help | --hel | -h )
12513 $as_echo "$ac_cs_usage"; exit ;;
12514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12515 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12516 ac_cs_silent=: ;;
12517
12518 # This is an error.
12519 -*) as_fn_error $? "unrecognized option: \`$1'
12520 Try \`$0 --help' for more information." ;;
12521
12522 *) as_fn_append ac_config_targets " $1"
12523 ac_need_defaults=false ;;
12524
12525 esac
12526 shift
12527 done
12528
12529 ac_configure_extra_args=
12530
12531 if $ac_cs_silent; then
12532 exec 6>/dev/null
12533 ac_configure_extra_args="$ac_configure_extra_args --silent"
12534 fi
12535
12536 _ACEOF
12537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12538 if \$ac_cs_recheck; then
12539 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12540 shift
12541 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12542 CONFIG_SHELL='$SHELL'
12543 export CONFIG_SHELL
12544 exec "\$@"
12545 fi
12546
12547 _ACEOF
12548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12549 exec 5>>config.log
12550 {
12551 echo
12552 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12553 ## Running $as_me. ##
12554 _ASBOX
12555 $as_echo "$ac_log"
12556 } >&5
12557
12558 _ACEOF
12559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12560 #
12561 # INIT-COMMANDS
12562 #
12563 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12564
12565
12566 # The HP-UX ksh and POSIX shell print the target directory to stdout
12567 # if CDPATH is set.
12568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12569
12570 sed_quote_subst='$sed_quote_subst'
12571 double_quote_subst='$double_quote_subst'
12572 delay_variable_subst='$delay_variable_subst'
12573 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12574 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12575 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12576 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12577 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12578 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12579 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12580 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12581 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12582 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12583 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12584 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12585 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12586 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12587 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12588 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12589 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12590 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12591 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12592 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12593 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12594 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12595 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12596 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12597 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12598 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12599 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12600 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12601 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12602 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12603 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12604 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12605 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12606 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12607 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12608 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12609 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12610 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12611 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12612 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12613 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12614 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12615 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12616 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12617 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12618 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12619 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12620 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12621 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12622 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12623 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12624 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12625 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12626 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12627 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12628 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12629 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12630 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12631 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12632 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12633 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12634 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12635 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12636 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12637 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12638 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12639 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12640 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12641 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12642 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12643 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12644 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12645 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12646 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12647 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12648 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12649 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12650 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12651 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12652 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12653 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12654 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12655 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12656 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12657 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12658 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12659 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12660 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12661 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12662 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12663 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12664 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12665 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12666 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12667 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12668 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12669 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12670 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12671 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12672 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12673 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12674 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12675 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12676 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12677 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12678 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12679 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12680 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12681 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12682 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12683 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12684 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12685 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12686 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12687 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12688 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12689 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12690 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12691 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12692 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12693 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12694 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12695
12696 LTCC='$LTCC'
12697 LTCFLAGS='$LTCFLAGS'
12698 compiler='$compiler_DEFAULT'
12699
12700 # A function that is used when there is no print builtin or printf.
12701 func_fallback_echo ()
12702 {
12703 eval 'cat <<_LTECHO_EOF
12704 \$1
12705 _LTECHO_EOF'
12706 }
12707
12708 # Quote evaled strings.
12709 for var in SED \
12710 SHELL \
12711 ECHO \
12712 AS \
12713 DLLTOOL \
12714 OBJDUMP \
12715 GREP \
12716 EGREP \
12717 FGREP \
12718 LD \
12719 NM \
12720 LN_S \
12721 lt_SP2NL \
12722 lt_NL2SP \
12723 reload_flag \
12724 deplibs_check_method \
12725 file_magic_cmd \
12726 AR \
12727 AR_FLAGS \
12728 STRIP \
12729 RANLIB \
12730 CC \
12731 CFLAGS \
12732 compiler \
12733 lt_cv_sys_global_symbol_pipe \
12734 lt_cv_sys_global_symbol_to_cdecl \
12735 lt_cv_sys_global_symbol_to_c_name_address \
12736 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12737 lt_prog_compiler_no_builtin_flag \
12738 lt_prog_compiler_wl \
12739 lt_prog_compiler_pic \
12740 lt_prog_compiler_static \
12741 lt_cv_prog_compiler_c_o \
12742 need_locks \
12743 DSYMUTIL \
12744 NMEDIT \
12745 LIPO \
12746 OTOOL \
12747 OTOOL64 \
12748 shrext_cmds \
12749 export_dynamic_flag_spec \
12750 whole_archive_flag_spec \
12751 compiler_needs_object \
12752 with_gnu_ld \
12753 allow_undefined_flag \
12754 no_undefined_flag \
12755 hardcode_libdir_flag_spec \
12756 hardcode_libdir_flag_spec_ld \
12757 hardcode_libdir_separator \
12758 fix_srcfile_path \
12759 exclude_expsyms \
12760 include_expsyms \
12761 file_list_spec \
12762 variables_saved_for_relink \
12763 libname_spec \
12764 library_names_spec \
12765 soname_spec \
12766 install_override_mode \
12767 finish_eval \
12768 old_striplib \
12769 striplib; do
12770 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12771 *[\\\\\\\`\\"\\\$]*)
12772 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12773 ;;
12774 *)
12775 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12776 ;;
12777 esac
12778 done
12779
12780 # Double-quote double-evaled strings.
12781 for var in reload_cmds \
12782 old_postinstall_cmds \
12783 old_postuninstall_cmds \
12784 old_archive_cmds \
12785 extract_expsyms_cmds \
12786 old_archive_from_new_cmds \
12787 old_archive_from_expsyms_cmds \
12788 archive_cmds \
12789 archive_expsym_cmds \
12790 module_cmds \
12791 module_expsym_cmds \
12792 export_symbols_cmds \
12793 prelink_cmds \
12794 postinstall_cmds \
12795 postuninstall_cmds \
12796 finish_cmds \
12797 sys_lib_search_path_spec \
12798 sys_lib_dlsearch_path_spec; do
12799 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12800 *[\\\\\\\`\\"\\\$]*)
12801 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12802 ;;
12803 *)
12804 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12805 ;;
12806 esac
12807 done
12808
12809 ac_aux_dir='$ac_aux_dir'
12810 xsi_shell='$xsi_shell'
12811 lt_shell_append='$lt_shell_append'
12812
12813 # See if we are running on zsh, and set the options which allow our
12814 # commands through without removal of \ escapes INIT.
12815 if test -n "\${ZSH_VERSION+set}" ; then
12816 setopt NO_GLOB_SUBST
12817 fi
12818
12819
12820 PACKAGE='$PACKAGE'
12821 VERSION='$VERSION'
12822 TIMESTAMP='$TIMESTAMP'
12823 RM='$RM'
12824 ofile='$ofile'
12825
12826
12827
12828
12829 _ACEOF
12830
12831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12832
12833 # Handling of arguments.
12834 for ac_config_target in $ac_config_targets
12835 do
12836 case $ac_config_target in
12837 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12838 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12839 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12840
12841 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12842 esac
12843 done
12844
12845
12846 # If the user did not use the arguments to specify the items to instantiate,
12847 # then the envvar interface is used. Set only those that are not.
12848 # We use the long form for the default assignment because of an extremely
12849 # bizarre bug on SunOS 4.1.3.
12850 if $ac_need_defaults; then
12851 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12853 fi
12854
12855 # Have a temporary directory for convenience. Make it in the build tree
12856 # simply because there is no reason against having it here, and in addition,
12857 # creating and moving files from /tmp can sometimes cause problems.
12858 # Hook for its removal unless debugging.
12859 # Note that there is a small window in which the directory will not be cleaned:
12860 # after its creation but before its name has been assigned to `$tmp'.
12861 $debug ||
12862 {
12863 tmp= ac_tmp=
12864 trap 'exit_status=$?
12865 : "${ac_tmp:=$tmp}"
12866 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12867 ' 0
12868 trap 'as_fn_exit 1' 1 2 13 15
12869 }
12870 # Create a (secure) tmp directory for tmp files.
12871
12872 {
12873 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12874 test -d "$tmp"
12875 } ||
12876 {
12877 tmp=./conf$$-$RANDOM
12878 (umask 077 && mkdir "$tmp")
12879 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12880 ac_tmp=$tmp
12881
12882 # Set up the scripts for CONFIG_FILES section.
12883 # No need to generate them if there are no CONFIG_FILES.
12884 # This happens for instance with `./config.status config.h'.
12885 if test -n "$CONFIG_FILES"; then
12886
12887
12888 ac_cr=`echo X | tr X '\015'`
12889 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12890 # But we know of no other shell where ac_cr would be empty at this
12891 # point, so we can use a bashism as a fallback.
12892 if test "x$ac_cr" = x; then
12893 eval ac_cr=\$\'\\r\'
12894 fi
12895 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12896 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12897 ac_cs_awk_cr='\\r'
12898 else
12899 ac_cs_awk_cr=$ac_cr
12900 fi
12901
12902 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12903 _ACEOF
12904
12905
12906 {
12907 echo "cat >conf$$subs.awk <<_ACEOF" &&
12908 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12909 echo "_ACEOF"
12910 } >conf$$subs.sh ||
12911 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12912 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12913 ac_delim='%!_!# '
12914 for ac_last_try in false false false false false :; do
12915 . ./conf$$subs.sh ||
12916 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12917
12918 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12919 if test $ac_delim_n = $ac_delim_num; then
12920 break
12921 elif $ac_last_try; then
12922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12923 else
12924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12925 fi
12926 done
12927 rm -f conf$$subs.sh
12928
12929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12930 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12931 _ACEOF
12932 sed -n '
12933 h
12934 s/^/S["/; s/!.*/"]=/
12935 p
12936 g
12937 s/^[^!]*!//
12938 :repl
12939 t repl
12940 s/'"$ac_delim"'$//
12941 t delim
12942 :nl
12943 h
12944 s/\(.\{148\}\)..*/\1/
12945 t more1
12946 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12947 p
12948 n
12949 b repl
12950 :more1
12951 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12952 p
12953 g
12954 s/.\{148\}//
12955 t nl
12956 :delim
12957 h
12958 s/\(.\{148\}\)..*/\1/
12959 t more2
12960 s/["\\]/\\&/g; s/^/"/; s/$/"/
12961 p
12962 b
12963 :more2
12964 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12965 p
12966 g
12967 s/.\{148\}//
12968 t delim
12969 ' <conf$$subs.awk | sed '
12970 /^[^""]/{
12971 N
12972 s/\n//
12973 }
12974 ' >>$CONFIG_STATUS || ac_write_fail=1
12975 rm -f conf$$subs.awk
12976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12977 _ACAWK
12978 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12979 for (key in S) S_is_set[key] = 1
12980 FS = ""
12981
12982 }
12983 {
12984 line = $ 0
12985 nfields = split(line, field, "@")
12986 substed = 0
12987 len = length(field[1])
12988 for (i = 2; i < nfields; i++) {
12989 key = field[i]
12990 keylen = length(key)
12991 if (S_is_set[key]) {
12992 value = S[key]
12993 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12994 len += length(value) + length(field[++i])
12995 substed = 1
12996 } else
12997 len += 1 + keylen
12998 }
12999
13000 print line
13001 }
13002
13003 _ACAWK
13004 _ACEOF
13005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13006 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13007 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13008 else
13009 cat
13010 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13011 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13012 _ACEOF
13013
13014 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13015 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13016 # trailing colons and then remove the whole line if VPATH becomes empty
13017 # (actually we leave an empty line to preserve line numbers).
13018 if test "x$srcdir" = x.; then
13019 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13020 h
13021 s///
13022 s/^/:/
13023 s/[ ]*$/:/
13024 s/:\$(srcdir):/:/g
13025 s/:\${srcdir}:/:/g
13026 s/:@srcdir@:/:/g
13027 s/^:*//
13028 s/:*$//
13029 x
13030 s/\(=[ ]*\).*/\1/
13031 G
13032 s/\n//
13033 s/^[^=]*=[ ]*$//
13034 }'
13035 fi
13036
13037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13038 fi # test -n "$CONFIG_FILES"
13039
13040
13041 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13042 shift
13043 for ac_tag
13044 do
13045 case $ac_tag in
13046 :[FHLC]) ac_mode=$ac_tag; continue;;
13047 esac
13048 case $ac_mode$ac_tag in
13049 :[FHL]*:*);;
13050 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13051 :[FH]-) ac_tag=-:-;;
13052 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13053 esac
13054 ac_save_IFS=$IFS
13055 IFS=:
13056 set x $ac_tag
13057 IFS=$ac_save_IFS
13058 shift
13059 ac_file=$1
13060 shift
13061
13062 case $ac_mode in
13063 :L) ac_source=$1;;
13064 :[FH])
13065 ac_file_inputs=
13066 for ac_f
13067 do
13068 case $ac_f in
13069 -) ac_f="$ac_tmp/stdin";;
13070 *) # Look for the file first in the build tree, then in the source tree
13071 # (if the path is not absolute). The absolute path cannot be DOS-style,
13072 # because $ac_f cannot contain `:'.
13073 test -f "$ac_f" ||
13074 case $ac_f in
13075 [\\/$]*) false;;
13076 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13077 esac ||
13078 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13079 esac
13080 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13081 as_fn_append ac_file_inputs " '$ac_f'"
13082 done
13083
13084 # Let's still pretend it is `configure' which instantiates (i.e., don't
13085 # use $as_me), people would be surprised to read:
13086 # /* config.h. Generated by config.status. */
13087 configure_input='Generated from '`
13088 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13089 `' by configure.'
13090 if test x"$ac_file" != x-; then
13091 configure_input="$ac_file. $configure_input"
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13093 $as_echo "$as_me: creating $ac_file" >&6;}
13094 fi
13095 # Neutralize special characters interpreted by sed in replacement strings.
13096 case $configure_input in #(
13097 *\&* | *\|* | *\\* )
13098 ac_sed_conf_input=`$as_echo "$configure_input" |
13099 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13100 *) ac_sed_conf_input=$configure_input;;
13101 esac
13102
13103 case $ac_tag in
13104 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13106 esac
13107 ;;
13108 esac
13109
13110 ac_dir=`$as_dirname -- "$ac_file" ||
13111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13112 X"$ac_file" : 'X\(//\)[^/]' \| \
13113 X"$ac_file" : 'X\(//\)$' \| \
13114 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13115 $as_echo X"$ac_file" |
13116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13117 s//\1/
13118 q
13119 }
13120 /^X\(\/\/\)[^/].*/{
13121 s//\1/
13122 q
13123 }
13124 /^X\(\/\/\)$/{
13125 s//\1/
13126 q
13127 }
13128 /^X\(\/\).*/{
13129 s//\1/
13130 q
13131 }
13132 s/.*/./; q'`
13133 as_dir="$ac_dir"; as_fn_mkdir_p
13134 ac_builddir=.
13135
13136 case "$ac_dir" in
13137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13138 *)
13139 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13140 # A ".." for each directory in $ac_dir_suffix.
13141 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13142 case $ac_top_builddir_sub in
13143 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13144 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13145 esac ;;
13146 esac
13147 ac_abs_top_builddir=$ac_pwd
13148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13149 # for backward compatibility:
13150 ac_top_builddir=$ac_top_build_prefix
13151
13152 case $srcdir in
13153 .) # We are building in place.
13154 ac_srcdir=.
13155 ac_top_srcdir=$ac_top_builddir_sub
13156 ac_abs_top_srcdir=$ac_pwd ;;
13157 [\\/]* | ?:[\\/]* ) # Absolute name.
13158 ac_srcdir=$srcdir$ac_dir_suffix;
13159 ac_top_srcdir=$srcdir
13160 ac_abs_top_srcdir=$srcdir ;;
13161 *) # Relative name.
13162 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13163 ac_top_srcdir=$ac_top_build_prefix$srcdir
13164 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13165 esac
13166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13167
13168
13169 case $ac_mode in
13170 :F)
13171 #
13172 # CONFIG_FILE
13173 #
13174
13175 case $INSTALL in
13176 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13177 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13178 esac
13179 ac_MKDIR_P=$MKDIR_P
13180 case $MKDIR_P in
13181 [\\/$]* | ?:[\\/]* ) ;;
13182 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13183 esac
13184 _ACEOF
13185
13186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13187 # If the template does not know about datarootdir, expand it.
13188 # FIXME: This hack should be removed a few years after 2.60.
13189 ac_datarootdir_hack=; ac_datarootdir_seen=
13190 ac_sed_dataroot='
13191 /datarootdir/ {
13192 p
13193 q
13194 }
13195 /@datadir@/p
13196 /@docdir@/p
13197 /@infodir@/p
13198 /@localedir@/p
13199 /@mandir@/p'
13200 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13201 *datarootdir*) ac_datarootdir_seen=yes;;
13202 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13204 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13205 _ACEOF
13206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207 ac_datarootdir_hack='
13208 s&@datadir@&$datadir&g
13209 s&@docdir@&$docdir&g
13210 s&@infodir@&$infodir&g
13211 s&@localedir@&$localedir&g
13212 s&@mandir@&$mandir&g
13213 s&\\\${datarootdir}&$datarootdir&g' ;;
13214 esac
13215 _ACEOF
13216
13217 # Neutralize VPATH when `$srcdir' = `.'.
13218 # Shell code in configure.ac might set extrasub.
13219 # FIXME: do we really want to maintain this feature?
13220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 ac_sed_extra="$ac_vpsub
13222 $extrasub
13223 _ACEOF
13224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13225 :t
13226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13227 s|@configure_input@|$ac_sed_conf_input|;t t
13228 s&@top_builddir@&$ac_top_builddir_sub&;t t
13229 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13230 s&@srcdir@&$ac_srcdir&;t t
13231 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13232 s&@top_srcdir@&$ac_top_srcdir&;t t
13233 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13234 s&@builddir@&$ac_builddir&;t t
13235 s&@abs_builddir@&$ac_abs_builddir&;t t
13236 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13237 s&@INSTALL@&$ac_INSTALL&;t t
13238 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13239 $ac_datarootdir_hack
13240 "
13241 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13242 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13243
13244 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13245 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13246 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13247 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13249 which seems to be undefined. Please make sure it is defined" >&5
13250 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13251 which seems to be undefined. Please make sure it is defined" >&2;}
13252
13253 rm -f "$ac_tmp/stdin"
13254 case $ac_file in
13255 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13256 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13257 esac \
13258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13259 ;;
13260
13261
13262 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13263 $as_echo "$as_me: executing $ac_file commands" >&6;}
13264 ;;
13265 esac
13266
13267
13268 case $ac_file$ac_mode in
13269 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13270 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13271 # are listed without --file. Let's play safe and only enable the eval
13272 # if we detect the quoting.
13273 case $CONFIG_FILES in
13274 *\'*) eval set x "$CONFIG_FILES" ;;
13275 *) set x $CONFIG_FILES ;;
13276 esac
13277 shift
13278 for mf
13279 do
13280 # Strip MF so we end up with the name of the file.
13281 mf=`echo "$mf" | sed -e 's/:.*$//'`
13282 # Check whether this is an Automake generated Makefile or not.
13283 # We used to match only the files named `Makefile.in', but
13284 # some people rename them; so instead we look at the file content.
13285 # Grep'ing the first line is not enough: some people post-process
13286 # each Makefile.in and add a new line on top of each file to say so.
13287 # Grep'ing the whole file is not good either: AIX grep has a line
13288 # limit of 2048, but all sed's we know have understand at least 4000.
13289 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13290 dirpart=`$as_dirname -- "$mf" ||
13291 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13292 X"$mf" : 'X\(//\)[^/]' \| \
13293 X"$mf" : 'X\(//\)$' \| \
13294 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13295 $as_echo X"$mf" |
13296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13297 s//\1/
13298 q
13299 }
13300 /^X\(\/\/\)[^/].*/{
13301 s//\1/
13302 q
13303 }
13304 /^X\(\/\/\)$/{
13305 s//\1/
13306 q
13307 }
13308 /^X\(\/\).*/{
13309 s//\1/
13310 q
13311 }
13312 s/.*/./; q'`
13313 else
13314 continue
13315 fi
13316 # Extract the definition of DEPDIR, am__include, and am__quote
13317 # from the Makefile without running `make'.
13318 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13319 test -z "$DEPDIR" && continue
13320 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13321 test -z "am__include" && continue
13322 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13323 # When using ansi2knr, U may be empty or an underscore; expand it
13324 U=`sed -n 's/^U = //p' < "$mf"`
13325 # Find all dependency output files, they are included files with
13326 # $(DEPDIR) in their names. We invoke sed twice because it is the
13327 # simplest approach to changing $(DEPDIR) to its actual value in the
13328 # expansion.
13329 for file in `sed -n "
13330 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13331 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13332 # Make sure the directory exists.
13333 test -f "$dirpart/$file" && continue
13334 fdir=`$as_dirname -- "$file" ||
13335 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13336 X"$file" : 'X\(//\)[^/]' \| \
13337 X"$file" : 'X\(//\)$' \| \
13338 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13339 $as_echo X"$file" |
13340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13341 s//\1/
13342 q
13343 }
13344 /^X\(\/\/\)[^/].*/{
13345 s//\1/
13346 q
13347 }
13348 /^X\(\/\/\)$/{
13349 s//\1/
13350 q
13351 }
13352 /^X\(\/\).*/{
13353 s//\1/
13354 q
13355 }
13356 s/.*/./; q'`
13357 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13358 # echo "creating $dirpart/$file"
13359 echo '# dummy' > "$dirpart/$file"
13360 done
13361 done
13362 }
13363 ;;
13364 "libtool":C)
13365
13366 # See if we are running on zsh, and set the options which allow our
13367 # commands through without removal of \ escapes.
13368 if test -n "${ZSH_VERSION+set}" ; then
13369 setopt NO_GLOB_SUBST
13370 fi
13371
13372 cfgfile="${ofile}T"
13373 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13374 $RM "$cfgfile"
13375
13376 cat <<_LT_EOF >> "$cfgfile"
13377 #! $SHELL
13378
13379 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13380 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13382 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13383 #
13384 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13385 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13386 # Written by Gordon Matzigkeit, 1996
13387 #
13388 # This file is part of GNU Libtool.
13389 #
13390 # GNU Libtool is free software; you can redistribute it and/or
13391 # modify it under the terms of the GNU General Public License as
13392 # published by the Free Software Foundation; either version 2 of
13393 # the License, or (at your option) any later version.
13394 #
13395 # As a special exception to the GNU General Public License,
13396 # if you distribute this file as part of a program or library that
13397 # is built using GNU Libtool, you may include this file under the
13398 # same distribution terms that you use for the rest of that program.
13399 #
13400 # GNU Libtool is distributed in the hope that it will be useful,
13401 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13402 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13403 # GNU General Public License for more details.
13404 #
13405 # You should have received a copy of the GNU General Public License
13406 # along with GNU Libtool; see the file COPYING. If not, a copy
13407 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13408 # obtained by writing to the Free Software Foundation, Inc.,
13409 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13410
13411
13412 # The names of the tagged configurations supported by this script.
13413 available_tags=""
13414
13415 # ### BEGIN LIBTOOL CONFIG
13416
13417 # A sed program that does not truncate output.
13418 SED=$lt_SED
13419
13420 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13421 Xsed="\$SED -e 1s/^X//"
13422
13423 # Shell to use when invoking shell scripts.
13424 SHELL=$lt_SHELL
13425
13426 # An echo program that protects backslashes.
13427 ECHO=$lt_ECHO
13428
13429 # Assembler program.
13430 AS=$lt_AS
13431
13432 # DLL creation program.
13433 DLLTOOL=$lt_DLLTOOL
13434
13435 # Object dumper program.
13436 OBJDUMP=$lt_OBJDUMP
13437
13438 # Which release of libtool.m4 was used?
13439 macro_version=$macro_version
13440 macro_revision=$macro_revision
13441
13442 # Whether or not to build shared libraries.
13443 build_libtool_libs=$enable_shared
13444
13445 # Whether or not to build static libraries.
13446 build_old_libs=$enable_static
13447
13448 # What type of objects to build.
13449 pic_mode=$pic_mode
13450
13451 # Whether or not to optimize for fast installation.
13452 fast_install=$enable_fast_install
13453
13454 # The host system.
13455 host_alias=$host_alias
13456 host=$host
13457 host_os=$host_os
13458
13459 # The build system.
13460 build_alias=$build_alias
13461 build=$build
13462 build_os=$build_os
13463
13464 # A grep program that handles long lines.
13465 GREP=$lt_GREP
13466
13467 # An ERE matcher.
13468 EGREP=$lt_EGREP
13469
13470 # A literal string matcher.
13471 FGREP=$lt_FGREP
13472
13473 # A BSD- or MS-compatible name lister.
13474 NM=$lt_NM
13475
13476 # Whether we need soft or hard links.
13477 LN_S=$lt_LN_S
13478
13479 # What is the maximum length of a command?
13480 max_cmd_len=$max_cmd_len
13481
13482 # Object file suffix (normally "o").
13483 objext=$ac_objext
13484
13485 # Executable file suffix (normally "").
13486 exeext=$exeext
13487
13488 # whether the shell understands "unset".
13489 lt_unset=$lt_unset
13490
13491 # turn spaces into newlines.
13492 SP2NL=$lt_lt_SP2NL
13493
13494 # turn newlines into spaces.
13495 NL2SP=$lt_lt_NL2SP
13496
13497 # Method to check whether dependent libraries are shared objects.
13498 deplibs_check_method=$lt_deplibs_check_method
13499
13500 # Command to use when deplibs_check_method == "file_magic".
13501 file_magic_cmd=$lt_file_magic_cmd
13502
13503 # The archiver.
13504 AR=$lt_AR
13505 AR_FLAGS=$lt_AR_FLAGS
13506
13507 # A symbol stripping program.
13508 STRIP=$lt_STRIP
13509
13510 # Commands used to install an old-style archive.
13511 RANLIB=$lt_RANLIB
13512 old_postinstall_cmds=$lt_old_postinstall_cmds
13513 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13514
13515 # Whether to use a lock for old archive extraction.
13516 lock_old_archive_extraction=$lock_old_archive_extraction
13517
13518 # A C compiler.
13519 LTCC=$lt_CC
13520
13521 # LTCC compiler flags.
13522 LTCFLAGS=$lt_CFLAGS
13523
13524 # Take the output of nm and produce a listing of raw symbols and C names.
13525 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13526
13527 # Transform the output of nm in a proper C declaration.
13528 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13529
13530 # Transform the output of nm in a C name address pair.
13531 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13532
13533 # Transform the output of nm in a C name address pair when lib prefix is needed.
13534 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13535
13536 # The name of the directory that contains temporary libtool files.
13537 objdir=$objdir
13538
13539 # Used to examine libraries when file_magic_cmd begins with "file".
13540 MAGIC_CMD=$MAGIC_CMD
13541
13542 # Must we lock files when doing compilation?
13543 need_locks=$lt_need_locks
13544
13545 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13546 DSYMUTIL=$lt_DSYMUTIL
13547
13548 # Tool to change global to local symbols on Mac OS X.
13549 NMEDIT=$lt_NMEDIT
13550
13551 # Tool to manipulate fat objects and archives on Mac OS X.
13552 LIPO=$lt_LIPO
13553
13554 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13555 OTOOL=$lt_OTOOL
13556
13557 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13558 OTOOL64=$lt_OTOOL64
13559
13560 # Old archive suffix (normally "a").
13561 libext=$libext
13562
13563 # Shared library suffix (normally ".so").
13564 shrext_cmds=$lt_shrext_cmds
13565
13566 # The commands to extract the exported symbol list from a shared archive.
13567 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13568
13569 # Variables whose values should be saved in libtool wrapper scripts and
13570 # restored at link time.
13571 variables_saved_for_relink=$lt_variables_saved_for_relink
13572
13573 # Do we need the "lib" prefix for modules?
13574 need_lib_prefix=$need_lib_prefix
13575
13576 # Do we need a version for libraries?
13577 need_version=$need_version
13578
13579 # Library versioning type.
13580 version_type=$version_type
13581
13582 # Shared library runtime path variable.
13583 runpath_var=$runpath_var
13584
13585 # Shared library path variable.
13586 shlibpath_var=$shlibpath_var
13587
13588 # Is shlibpath searched before the hard-coded library search path?
13589 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13590
13591 # Format of library name prefix.
13592 libname_spec=$lt_libname_spec
13593
13594 # List of archive names. First name is the real one, the rest are links.
13595 # The last name is the one that the linker finds with -lNAME
13596 library_names_spec=$lt_library_names_spec
13597
13598 # The coded name of the library, if different from the real name.
13599 soname_spec=$lt_soname_spec
13600
13601 # Permission mode override for installation of shared libraries.
13602 install_override_mode=$lt_install_override_mode
13603
13604 # Command to use after installation of a shared archive.
13605 postinstall_cmds=$lt_postinstall_cmds
13606
13607 # Command to use after uninstallation of a shared archive.
13608 postuninstall_cmds=$lt_postuninstall_cmds
13609
13610 # Commands used to finish a libtool library installation in a directory.
13611 finish_cmds=$lt_finish_cmds
13612
13613 # As "finish_cmds", except a single script fragment to be evaled but
13614 # not shown.
13615 finish_eval=$lt_finish_eval
13616
13617 # Whether we should hardcode library paths into libraries.
13618 hardcode_into_libs=$hardcode_into_libs
13619
13620 # Compile-time system search path for libraries.
13621 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13622
13623 # Run-time system search path for libraries.
13624 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13625
13626 # Whether dlopen is supported.
13627 dlopen_support=$enable_dlopen
13628
13629 # Whether dlopen of programs is supported.
13630 dlopen_self=$enable_dlopen_self
13631
13632 # Whether dlopen of statically linked programs is supported.
13633 dlopen_self_static=$enable_dlopen_self_static
13634
13635 # Commands to strip libraries.
13636 old_striplib=$lt_old_striplib
13637 striplib=$lt_striplib
13638
13639
13640 # The linker used to build libraries.
13641 LD=$lt_LD
13642
13643 # How to create reloadable object files.
13644 reload_flag=$lt_reload_flag
13645 reload_cmds=$lt_reload_cmds
13646
13647 # Commands used to build an old-style archive.
13648 old_archive_cmds=$lt_old_archive_cmds
13649
13650 # A language specific compiler.
13651 CC=$lt_compiler
13652
13653 # Is the compiler the GNU compiler?
13654 with_gcc=$GCC
13655
13656 # Compiler flag to turn off builtin functions.
13657 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13658
13659 # How to pass a linker flag through the compiler.
13660 wl=$lt_lt_prog_compiler_wl
13661
13662 # Additional compiler flags for building library objects.
13663 pic_flag=$lt_lt_prog_compiler_pic
13664
13665 # Compiler flag to prevent dynamic linking.
13666 link_static_flag=$lt_lt_prog_compiler_static
13667
13668 # Does compiler simultaneously support -c and -o options?
13669 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13670
13671 # Whether or not to add -lc for building shared libraries.
13672 build_libtool_need_lc=$archive_cmds_need_lc
13673
13674 # Whether or not to disallow shared libs when runtime libs are static.
13675 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13676
13677 # Compiler flag to allow reflexive dlopens.
13678 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13679
13680 # Compiler flag to generate shared objects directly from archives.
13681 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13682
13683 # Whether the compiler copes with passing no objects directly.
13684 compiler_needs_object=$lt_compiler_needs_object
13685
13686 # Create an old-style archive from a shared archive.
13687 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13688
13689 # Create a temporary old-style archive to link instead of a shared archive.
13690 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13691
13692 # Commands used to build a shared archive.
13693 archive_cmds=$lt_archive_cmds
13694 archive_expsym_cmds=$lt_archive_expsym_cmds
13695
13696 # Commands used to build a loadable module if different from building
13697 # a shared archive.
13698 module_cmds=$lt_module_cmds
13699 module_expsym_cmds=$lt_module_expsym_cmds
13700
13701 # Whether we are building with GNU ld or not.
13702 with_gnu_ld=$lt_with_gnu_ld
13703
13704 # Flag that allows shared libraries with undefined symbols to be built.
13705 allow_undefined_flag=$lt_allow_undefined_flag
13706
13707 # Flag that enforces no undefined symbols.
13708 no_undefined_flag=$lt_no_undefined_flag
13709
13710 # Flag to hardcode \$libdir into a binary during linking.
13711 # This must work even if \$libdir does not exist
13712 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13713
13714 # If ld is used when linking, flag to hardcode \$libdir into a binary
13715 # during linking. This must work even if \$libdir does not exist.
13716 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13717
13718 # Whether we need a single "-rpath" flag with a separated argument.
13719 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13720
13721 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13722 # DIR into the resulting binary.
13723 hardcode_direct=$hardcode_direct
13724
13725 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13726 # DIR into the resulting binary and the resulting library dependency is
13727 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13728 # library is relocated.
13729 hardcode_direct_absolute=$hardcode_direct_absolute
13730
13731 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13732 # into the resulting binary.
13733 hardcode_minus_L=$hardcode_minus_L
13734
13735 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13736 # into the resulting binary.
13737 hardcode_shlibpath_var=$hardcode_shlibpath_var
13738
13739 # Set to "yes" if building a shared library automatically hardcodes DIR
13740 # into the library and all subsequent libraries and executables linked
13741 # against it.
13742 hardcode_automatic=$hardcode_automatic
13743
13744 # Set to yes if linker adds runtime paths of dependent libraries
13745 # to runtime path list.
13746 inherit_rpath=$inherit_rpath
13747
13748 # Whether libtool must link a program against all its dependency libraries.
13749 link_all_deplibs=$link_all_deplibs
13750
13751 # Fix the shell variable \$srcfile for the compiler.
13752 fix_srcfile_path=$lt_fix_srcfile_path
13753
13754 # Set to "yes" if exported symbols are required.
13755 always_export_symbols=$always_export_symbols
13756
13757 # The commands to list exported symbols.
13758 export_symbols_cmds=$lt_export_symbols_cmds
13759
13760 # Symbols that should not be listed in the preloaded symbols.
13761 exclude_expsyms=$lt_exclude_expsyms
13762
13763 # Symbols that must always be exported.
13764 include_expsyms=$lt_include_expsyms
13765
13766 # Commands necessary for linking programs (against libraries) with templates.
13767 prelink_cmds=$lt_prelink_cmds
13768
13769 # Specify filename containing input files.
13770 file_list_spec=$lt_file_list_spec
13771
13772 # How to hardcode a shared library path into an executable.
13773 hardcode_action=$hardcode_action
13774
13775 # ### END LIBTOOL CONFIG
13776
13777 _LT_EOF
13778
13779 case $host_os in
13780 aix3*)
13781 cat <<\_LT_EOF >> "$cfgfile"
13782 # AIX sometimes has problems with the GCC collect2 program. For some
13783 # reason, if we set the COLLECT_NAMES environment variable, the problems
13784 # vanish in a puff of smoke.
13785 if test "X${COLLECT_NAMES+set}" != Xset; then
13786 COLLECT_NAMES=
13787 export COLLECT_NAMES
13788 fi
13789 _LT_EOF
13790 ;;
13791 esac
13792
13793
13794 ltmain="$ac_aux_dir/ltmain.sh"
13795
13796
13797 # We use sed instead of cat because bash on DJGPP gets confused if
13798 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13799 # text mode, it properly converts lines to CR/LF. This bash problem
13800 # is reportedly fixed, but why not run on old versions too?
13801 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13802 || (rm -f "$cfgfile"; exit 1)
13803
13804 case $xsi_shell in
13805 yes)
13806 cat << \_LT_EOF >> "$cfgfile"
13807
13808 # func_dirname file append nondir_replacement
13809 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13810 # otherwise set result to NONDIR_REPLACEMENT.
13811 func_dirname ()
13812 {
13813 case ${1} in
13814 */*) func_dirname_result="${1%/*}${2}" ;;
13815 * ) func_dirname_result="${3}" ;;
13816 esac
13817 }
13818
13819 # func_basename file
13820 func_basename ()
13821 {
13822 func_basename_result="${1##*/}"
13823 }
13824
13825 # func_dirname_and_basename file append nondir_replacement
13826 # perform func_basename and func_dirname in a single function
13827 # call:
13828 # dirname: Compute the dirname of FILE. If nonempty,
13829 # add APPEND to the result, otherwise set result
13830 # to NONDIR_REPLACEMENT.
13831 # value returned in "$func_dirname_result"
13832 # basename: Compute filename of FILE.
13833 # value retuned in "$func_basename_result"
13834 # Implementation must be kept synchronized with func_dirname
13835 # and func_basename. For efficiency, we do not delegate to
13836 # those functions but instead duplicate the functionality here.
13837 func_dirname_and_basename ()
13838 {
13839 case ${1} in
13840 */*) func_dirname_result="${1%/*}${2}" ;;
13841 * ) func_dirname_result="${3}" ;;
13842 esac
13843 func_basename_result="${1##*/}"
13844 }
13845
13846 # func_stripname prefix suffix name
13847 # strip PREFIX and SUFFIX off of NAME.
13848 # PREFIX and SUFFIX must not contain globbing or regex special
13849 # characters, hashes, percent signs, but SUFFIX may contain a leading
13850 # dot (in which case that matches only a dot).
13851 func_stripname ()
13852 {
13853 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13854 # positional parameters, so assign one to ordinary parameter first.
13855 func_stripname_result=${3}
13856 func_stripname_result=${func_stripname_result#"${1}"}
13857 func_stripname_result=${func_stripname_result%"${2}"}
13858 }
13859
13860 # func_opt_split
13861 func_opt_split ()
13862 {
13863 func_opt_split_opt=${1%%=*}
13864 func_opt_split_arg=${1#*=}
13865 }
13866
13867 # func_lo2o object
13868 func_lo2o ()
13869 {
13870 case ${1} in
13871 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13872 *) func_lo2o_result=${1} ;;
13873 esac
13874 }
13875
13876 # func_xform libobj-or-source
13877 func_xform ()
13878 {
13879 func_xform_result=${1%.*}.lo
13880 }
13881
13882 # func_arith arithmetic-term...
13883 func_arith ()
13884 {
13885 func_arith_result=$(( $* ))
13886 }
13887
13888 # func_len string
13889 # STRING may not start with a hyphen.
13890 func_len ()
13891 {
13892 func_len_result=${#1}
13893 }
13894
13895 _LT_EOF
13896 ;;
13897 *) # Bourne compatible functions.
13898 cat << \_LT_EOF >> "$cfgfile"
13899
13900 # func_dirname file append nondir_replacement
13901 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13902 # otherwise set result to NONDIR_REPLACEMENT.
13903 func_dirname ()
13904 {
13905 # Extract subdirectory from the argument.
13906 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13907 if test "X$func_dirname_result" = "X${1}"; then
13908 func_dirname_result="${3}"
13909 else
13910 func_dirname_result="$func_dirname_result${2}"
13911 fi
13912 }
13913
13914 # func_basename file
13915 func_basename ()
13916 {
13917 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13918 }
13919
13920
13921 # func_stripname prefix suffix name
13922 # strip PREFIX and SUFFIX off of NAME.
13923 # PREFIX and SUFFIX must not contain globbing or regex special
13924 # characters, hashes, percent signs, but SUFFIX may contain a leading
13925 # dot (in which case that matches only a dot).
13926 # func_strip_suffix prefix name
13927 func_stripname ()
13928 {
13929 case ${2} in
13930 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13931 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13932 esac
13933 }
13934
13935 # sed scripts:
13936 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13937 my_sed_long_arg='1s/^-[^=]*=//'
13938
13939 # func_opt_split
13940 func_opt_split ()
13941 {
13942 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13943 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13944 }
13945
13946 # func_lo2o object
13947 func_lo2o ()
13948 {
13949 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13950 }
13951
13952 # func_xform libobj-or-source
13953 func_xform ()
13954 {
13955 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13956 }
13957
13958 # func_arith arithmetic-term...
13959 func_arith ()
13960 {
13961 func_arith_result=`expr "$@"`
13962 }
13963
13964 # func_len string
13965 # STRING may not start with a hyphen.
13966 func_len ()
13967 {
13968 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13969 }
13970
13971 _LT_EOF
13972 esac
13973
13974 case $lt_shell_append in
13975 yes)
13976 cat << \_LT_EOF >> "$cfgfile"
13977
13978 # func_append var value
13979 # Append VALUE to the end of shell variable VAR.
13980 func_append ()
13981 {
13982 eval "$1+=\$2"
13983 }
13984 _LT_EOF
13985 ;;
13986 *)
13987 cat << \_LT_EOF >> "$cfgfile"
13988
13989 # func_append var value
13990 # Append VALUE to the end of shell variable VAR.
13991 func_append ()
13992 {
13993 eval "$1=\$$1\$2"
13994 }
13995
13996 _LT_EOF
13997 ;;
13998 esac
13999
14000
14001 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14002 || (rm -f "$cfgfile"; exit 1)
14003
14004 mv -f "$cfgfile" "$ofile" ||
14005 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14006 chmod +x "$ofile"
14007
14008 ;;
14009
14010 esac
14011 done # for ac_tag
14012
14013
14014 as_fn_exit 0
14015 _ACEOF
14016 ac_clean_files=$ac_clean_files_save
14017
14018 test $ac_write_fail = 0 ||
14019 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14020
14021
14022 # configure is writing to config.log, and then calls config.status.
14023 # config.status does its own redirection, appending to config.log.
14024 # Unfortunately, on DOS this fails, as config.log is still kept open
14025 # by configure, so config.status won't be able to write to it; its
14026 # output is simply discarded. So we exec the FD to /dev/null,
14027 # effectively closing config.log, so it can be properly (re)opened and
14028 # appended to by config.status. When coming back to configure, we
14029 # need to make the FD available again.
14030 if test "$no_create" != yes; then
14031 ac_cs_success=:
14032 ac_config_status_args=
14033 test "$silent" = yes &&
14034 ac_config_status_args="$ac_config_status_args --quiet"
14035 exec 5>/dev/null
14036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14037 exec 5>>config.log
14038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14039 # would make configure fail if this is the last instruction.
14040 $ac_cs_success || as_fn_exit 1
14041 fi
14042 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14044 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14045 fi
14046
0 dnl This is the newlib/libc/machine/x86_64 configure.in file.
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_PREREQ(2.59)
4 AC_INIT([newlib],[NEWLIB_VERSION])
5 AC_CONFIG_SRCDIR([Makefile.am])
6
7 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
8 AC_CONFIG_AUX_DIR(../../../..)
9
10 NEWLIB_CONFIGURE(../../..)
11
12 dnl We have to add the following lines because automake detects the
13 dnl references to libtool libraries from aclocal and tries to verify that
14 dnl AM_PROG_LIBTOOL is being used. This code must occur after
15 dnl NEWLIB_CONFIGURE.
16 _LT_DECL_SED
17 _LT_PROG_ECHO_BACKSLASH
18 if test "${use_libtool}" = "yes"; then
19 AC_LIBTOOL_WIN32_DLL
20 AM_PROG_LIBTOOL
21 fi
22
23 AC_CONFIG_FILES([Makefile])
24 AC_OUTPUT
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
0 /*
1 * SPDX-License-Identifier: BSD-2-Clause
2 *
3 * Copyright (c) 2010-2019 Red Hat, Inc.
4 */
5
6 #define _GNU_SOURCE // for FE_NOMASK_ENV
7
8 #include <fenv.h>
9 #include <errno.h>
10 #include <string.h> // for memcpy
11 #include <stdbool.h>
12
13 /* x87 supports subnormal numbers so we need it below. */
14 #define __FE_DENORM (1 << 1)
15 /* mask (= 0x3f) to disable all exceptions at initialization */
16 #define __FE_ALL_EXCEPT_X86 (FE_ALL_EXCEPT | __FE_DENORM)
17
18 /* Mask and shift amount for rounding bits. */
19 #define FE_CW_ROUND_MASK (0x0c00)
20 #define FE_CW_ROUND_SHIFT (10)
21 /* Same, for SSE MXCSR. */
22 #define FE_MXCSR_ROUND_MASK (0x6000)
23 #define FE_MXCSR_ROUND_SHIFT (13)
24
25 /* Mask and shift amount for precision bits. */
26 #define FE_CW_PREC_MASK (0x0300)
27 #define FE_CW_PREC_SHIFT (8)
28
29 /* In x87, exception status bits and mask bits occupy
30 corresponding bit positions in the status and control
31 registers, respectively. In SSE, they are both located
32 in the control-and-status register, with the status bits
33 corresponding to the x87 positions, and the mask bits
34 shifted by this amount to the left. */
35 #define FE_SSE_EXCEPT_MASK_SHIFT (7)
36
37 /* These are writable so we can initialise them at startup. */
38 static fenv_t fe_nomask_env;
39
40 /* These pointers provide the outside world with read-only access to them. */
41 const fenv_t *_fe_nomask_env = &fe_nomask_env;
42
43 /* Assume i686 or above (hence SSE available) these days, with the
44 compiler feels free to use it (depending on compile- time flags of
45 course), but we should avoid needlessly breaking any purely integer mode
46 apps (or apps compiled with -mno-sse), so we only manage SSE state in this
47 fenv module if we detect that SSE instructions are available at runtime.
48 If we didn't do this, all applications run on older machines would bomb
49 out with an invalid instruction exception right at startup; let's not
50 be *that* WJM! */
51 static inline bool use_sse(void)
52 {
53 unsigned int edx, eax;
54
55 /* Check for presence of SSE: invoke CPUID #1, check EDX bit 25. */
56 eax = 1;
57 __asm__ volatile ("cpuid" : "=d" (edx), "+a" (eax) :: "%ecx", "%ebx");
58 /* If this flag isn't set we'll avoid trying to execute any SSE. */
59 if ((edx & (1 << 25)) != 0)
60 return true;
61
62 return false;
63 }
64
65 /* forward declaration */
66 static void _feinitialise (void);
67
68 /* This function enables traps for each of the exceptions as indicated
69 by the parameter except. The individual exceptions are described in
70 [ ... glibc manual xref elided ...]. Only the specified exceptions are
71 enabled, the status of the other exceptions is not changed.
72 The function returns the previous enabled exceptions in case the
73 operation was successful, -1 otherwise. */
74 int
75 feenableexcept (int excepts)
76 {
77 unsigned short cw, old_cw;
78 unsigned int mxcsr = 0;
79
80 if (excepts & ~FE_ALL_EXCEPT)
81 return -1;
82
83 /* Get control words. */
84 __asm__ volatile ("fnstcw %0" : "=m" (old_cw) : );
85 if (use_sse())
86 __asm__ volatile ("stmxcsr %0" : "=m" (mxcsr) : );
87
88 /* Enable exceptions by clearing mask bits. */
89 cw = old_cw & ~excepts;
90 mxcsr &= ~(excepts << FE_SSE_EXCEPT_MASK_SHIFT);
91
92 /* Store updated control words. */
93 __asm__ volatile ("fldcw %0" :: "m" (cw));
94 if (use_sse())
95 __asm__ volatile ("ldmxcsr %0" :: "m" (mxcsr));
96
97 /* Return old value. We assume SSE and x87 stay in sync. Note that
98 we are returning a mask of enabled exceptions, which is the opposite
99 of the flags in the register, which are set to disable (mask) their
100 related exceptions. */
101 return (~old_cw) & FE_ALL_EXCEPT;
102 }
103
104 /* This function disables traps for each of the exceptions as indicated
105 by the parameter except. The individual exceptions are described in
106 [ ... glibc manual xref elided ...]. Only the specified exceptions are
107 disabled, the status of the other exceptions is not changed.
108 The function returns the previous enabled exceptions in case the
109 operation was successful, -1 otherwise. */
110 int
111 fedisableexcept (int excepts)
112 {
113 unsigned short cw, old_cw;
114 unsigned int mxcsr = 0;
115
116 if (excepts & ~FE_ALL_EXCEPT)
117 return -1;
118
119 /* Get control words. */
120 __asm__ volatile ("fnstcw %0" : "=m" (old_cw) : );
121 if (use_sse())
122 __asm__ volatile ("stmxcsr %0" : "=m" (mxcsr) : );
123
124 /* Disable exceptions by setting mask bits. */
125 cw = old_cw | excepts;
126 mxcsr |= (excepts << FE_SSE_EXCEPT_MASK_SHIFT);
127
128 /* Store updated control words. */
129 __asm__ volatile ("fldcw %0" :: "m" (cw));
130 if (use_sse())
131 __asm__ volatile ("ldmxcsr %0" :: "m" (mxcsr));
132
133 /* Return old value. We assume SSE and x87 stay in sync. Note that
134 we are returning a mask of enabled exceptions, which is the opposite
135 of the flags in the register, which are set to disable (mask) their
136 related exceptions. */
137 return (~old_cw) & FE_ALL_EXCEPT;
138 }
139
140 /* This function returns a bitmask of all currently enabled exceptions. It
141 returns -1 in case of failure. */
142 int
143 fegetexcept (void)
144 {
145 unsigned short cw;
146
147 /* Get control word. We assume SSE and x87 stay in sync. */
148 __asm__ volatile ("fnstcw %0" : "=m" (cw) : );
149
150 /* Exception is *dis*abled when mask bit is set. */
151 return (~cw) & FE_ALL_EXCEPT;
152 }
153
154 /* Store the floating-point environment in the variable pointed to by envp.
155 The function returns zero in case the operation was successful, a non-zero
156 value otherwise. */
157 int
158 fegetenv (fenv_t *envp)
159 {
160 /* fnstenv disables all exceptions in the x87 FPU; as this is not what is
161 desired here, reload the cfg saved from the x87 FPU, back to the FPU */
162 __asm__ volatile ("fnstenv %0\n\
163 fldenv %0"
164 : "=m" (envp->_fpu) : );
165 if (use_sse())
166 __asm__ volatile ("stmxcsr %0" : "=m" (envp->_sse_mxcsr) : );
167 return 0;
168 }
169
170 /* Store the current floating-point environment in the object pointed to
171 by envp. Then clear all exception flags, and set the FPU to trap no
172 exceptions. Not all FPUs support trapping no exceptions; if feholdexcept
173 cannot set this mode, it returns nonzero value. If it succeeds, it
174 returns zero. */
175 int
176 feholdexcept (fenv_t *envp)
177 {
178 unsigned int mxcsr;
179 fegetenv (envp);
180 mxcsr = envp->_sse_mxcsr & ~FE_ALL_EXCEPT;
181 if (use_sse())
182 __asm__ volatile ("ldmxcsr %0" :: "m" (mxcsr));
183 __asm__ volatile ("fnclex");
184 fedisableexcept (FE_ALL_EXCEPT);
185 return 0;
186 }
187
188 /* Set the floating-point environment to that described by envp. The
189 function returns zero in case the operation was successful, a non-zero
190 value otherwise. */
191 int
192 fesetenv (const fenv_t *envp)
193 {
194 if ((envp == FE_DFL_ENV || envp == FE_NOMASK_ENV) &&
195 envp->_fpu._fpu_cw == 0)
196 _feinitialise ();
197
198 __asm__ volatile ("fldenv %0" :: "m" (envp->_fpu) );
199 if (use_sse())
200 __asm__ volatile ("ldmxcsr %0" :: "m" (envp->_sse_mxcsr));
201 return 0;
202 }
203
204 /* Like fesetenv, this function sets the floating-point environment to
205 that described by envp. However, if any exceptions were flagged in the
206 status word before feupdateenv was called, they remain flagged after
207 the call. In other words, after feupdateenv is called, the status
208 word is the bitwise OR of the previous status word and the one saved
209 in envp. The function returns zero in case the operation was successful,
210 a non-zero value otherwise. */
211 int
212 feupdateenv (const fenv_t *envp)
213 {
214 fenv_t envcopy;
215 unsigned int mxcsr = 0;
216 unsigned short sw;
217
218 /* Don't want to modify *envp, but want to update environment atomically,
219 so take a copy and merge the existing exceptions into it. */
220 memcpy (&envcopy, envp, sizeof *envp);
221 __asm__ volatile ("fnstsw %0" : "=m" (sw) : );
222 if (use_sse())
223 __asm__ volatile ("stmxcsr %0" : "=m" (mxcsr) : );
224 envcopy._fpu._fpu_sw |= (sw & FE_ALL_EXCEPT);
225 envcopy._sse_mxcsr |= (mxcsr & FE_ALL_EXCEPT);
226
227 return fesetenv (&envcopy);
228 }
229
230 /* This function clears all of the supported exception flags indicated by
231 excepts. The function returns zero in case the operation was successful,
232 a non-zero value otherwise. */
233 int
234 feclearexcept (int excepts)
235 {
236 fenv_t fenv;
237
238 if (excepts & ~FE_ALL_EXCEPT)
239 return EINVAL;
240
241 /* Need to save/restore whole environment to modify status word. */
242 fegetenv (&fenv);
243
244 /* Mask undesired bits out. */
245 fenv._fpu._fpu_sw &= ~excepts;
246 fenv._sse_mxcsr &= ~excepts;
247
248 /* Set back into FPU state. */
249 return fesetenv (&fenv);
250 }
251
252 /* This function raises the supported exceptions indicated by
253 excepts. If more than one exception bit in excepts is set the order
254 in which the exceptions are raised is undefined except that overflow
255 (FE_OVERFLOW) or underflow (FE_UNDERFLOW) are raised before inexact
256 (FE_INEXACT). Whether for overflow or underflow the inexact exception
257 is also raised is also implementation dependent. The function returns
258 zero in case the operation was successful, a non-zero value otherwise. */
259 int
260 feraiseexcept (int excepts)
261 {
262 fenv_t fenv;
263
264 if (excepts & ~FE_ALL_EXCEPT)
265 return EINVAL;
266
267 /* Need to save/restore whole environment to modify status word. */
268 __asm__ volatile ("fnstenv %0" : "=m" (fenv) : );
269
270 /* Set desired exception bits. */
271 fenv._fpu._fpu_sw |= excepts;
272
273 /* Set back into FPU state. */
274 __asm__ volatile ("fldenv %0" :: "m" (fenv));
275
276 /* And trigger them - whichever are unmasked. */
277 __asm__ volatile ("fwait");
278
279 return 0;
280 }
281
282 /* Test whether the exception flags indicated by the parameter except
283 are currently set. If any of them are, a nonzero value is returned
284 which specifies which exceptions are set. Otherwise the result is zero. */
285 int
286 fetestexcept (int excepts)
287 {
288 unsigned short sw;
289 unsigned int mxcsr = 0;
290
291 if (excepts & ~FE_ALL_EXCEPT)
292 return EINVAL;
293
294 /* Get status registers. */
295 __asm__ volatile ("fnstsw %0" : "=m" (sw) : );
296 if (use_sse())
297 __asm__ volatile ("stmxcsr %0" : "=m" (mxcsr) : );
298
299 /* Mask undesired bits out and return result. */
300 return (sw | mxcsr) & excepts;
301 }
302 /* This function stores in the variable pointed to by flagp an
303 implementation-defined value representing the current setting of the
304 exception flags indicated by excepts. The function returns zero in
305 case the operation was successful, a non-zero value otherwise. */
306 int
307 fegetexceptflag (fexcept_t *flagp, int excepts)
308 {
309 unsigned short sw;
310 unsigned int mxcsr = 0;
311
312 if (excepts & ~FE_ALL_EXCEPT)
313 return EINVAL;
314
315 /* Get status registers. */
316 __asm__ volatile ("fnstsw %0" : "=m" (sw) : );
317 if (use_sse())
318 __asm__ volatile ("stmxcsr %0" : "=m" (mxcsr) : );
319
320 /* Mask undesired bits out and set result. */
321 *flagp = (sw | mxcsr) & excepts;
322
323 return 0;
324 }
325
326 /* This function restores the flags for the exceptions indicated by
327 excepts to the values stored in the variable pointed to by flagp. */
328 int
329 fesetexceptflag (const fexcept_t *flagp, int excepts)
330 {
331 fenv_t fenv;
332
333 if (excepts & ~FE_ALL_EXCEPT)
334 return EINVAL;
335
336 /* Need to save/restore whole environment to modify status word. */
337 fegetenv (&fenv);
338
339 /* Set/Clear desired exception bits. */
340 fenv._fpu._fpu_sw &= ~excepts;
341 fenv._fpu._fpu_sw |= excepts & *flagp;
342 fenv._sse_mxcsr &= ~excepts;
343 fenv._sse_mxcsr |= excepts & *flagp;
344
345 /* Set back into FPU state. */
346 return fesetenv (&fenv);
347 }
348
349 /* Returns the currently selected rounding mode, represented by one of the
350 values of the defined rounding mode macros. */
351 int
352 fegetround (void)
353 {
354 unsigned short cw;
355
356 /* Get control word. We assume SSE and x87 stay in sync. */
357 __asm__ volatile ("fnstcw %0" : "=m" (cw) : );
358
359 return (cw & FE_CW_ROUND_MASK) >> FE_CW_ROUND_SHIFT;
360 }
361
362 /* Changes the currently selected rounding mode to round. If round does
363 not correspond to one of the supported rounding modes nothing is changed.
364 fesetround returns zero if it changed the rounding mode, a nonzero value
365 if the mode is not supported. */
366 int
367 fesetround (int round)
368 {
369 unsigned short cw;
370 unsigned int mxcsr = 0;
371
372 /* Will succeed for any valid value of the input parameter. */
373 if (round < FE_TONEAREST || round > FE_TOWARDZERO)
374 return EINVAL;
375
376 /* Get control words. */
377 __asm__ volatile ("fnstcw %0" : "=m" (cw) : );
378 if (use_sse())
379 __asm__ volatile ("stmxcsr %0" : "=m" (mxcsr) : );
380
381 /* Twiddle bits. */
382 cw &= ~FE_CW_ROUND_MASK;
383 cw |= (round << FE_CW_ROUND_SHIFT);
384 mxcsr &= ~FE_MXCSR_ROUND_MASK;
385 mxcsr |= (round << FE_MXCSR_ROUND_SHIFT);
386
387 /* Set back into FPU state. */
388 __asm__ volatile ("fldcw %0" :: "m" (cw));
389 if (use_sse())
390 __asm__ volatile ("ldmxcsr %0" :: "m" (mxcsr));
391
392 /* Indicate success. */
393 return 0;
394 }
395
396 #if defined(__CYGWIN__)
397 /* Returns the currently selected precision, represented by one of the
398 values of the defined precision macros. */
399 int
400 fegetprec (void)
401 {
402 unsigned short cw;
403
404 /* Get control word. */
405 __asm__ volatile ("fnstcw %0" : "=m" (cw) : );
406
407 return (cw & FE_CW_PREC_MASK) >> FE_CW_PREC_SHIFT;
408 }
409
410 /* http://www.open-std.org/jtc1/sc22//WG14/www/docs/n752.htm:
411
412 The fesetprec function establishes the precision represented by its
413 argument prec. If the argument does not match a precision macro, the
414 precision is not changed.
415
416 The fesetprec function returns a nonzero value if and only if the
417 argument matches a precision macro (that is, if and only if the requested
418 precision can be established). */
419 int
420 fesetprec (int prec)
421 {
422 unsigned short cw;
423
424 /* Will succeed for any valid value of the input parameter. */
425 switch (prec)
426 {
427 case FE_FLTPREC:
428 case FE_DBLPREC:
429 case FE_LDBLPREC:
430 break;
431 default:
432 return 0;
433 }
434
435 /* Get control word. */
436 __asm__ volatile ("fnstcw %0" : "=m" (cw) : );
437
438 /* Twiddle bits. */
439 cw &= ~FE_CW_PREC_MASK;
440 cw |= (prec << FE_CW_PREC_SHIFT);
441
442 /* Set back into FPU state. */
443 __asm__ volatile ("fldcw %0" :: "m" (cw));
444
445 /* Indicate success. */
446 return 1;
447 }
448 #endif
449
450 /* Set up the FPU and SSE environment at the start of execution. */
451 static void
452 _feinitialise (void)
453 {
454 extern fenv_t __fe_dfl_env;
455
456 /* Reset FPU: extended prec, all exceptions cleared and masked off. */
457 __asm__ volatile ("fninit");
458 /* The default cw value, 0x37f, is rounding mode zero. The MXCSR has
459 no precision control, so the only thing to do is set the exception
460 mask bits. */
461
462 /* initialize the MXCSR register: mask all exceptions */
463 unsigned int mxcsr = __FE_ALL_EXCEPT_X86 << FE_SSE_EXCEPT_MASK_SHIFT;
464 if (use_sse())
465 __asm__ volatile ("ldmxcsr %0" :: "m" (mxcsr));
466
467 /* Setup unmasked environment, but leave __FE_DENORM masked. */
468 feenableexcept (FE_ALL_EXCEPT);
469 fegetenv (&fe_nomask_env);
470
471 /* Restore default exception masking (all masked). */
472 fedisableexcept (FE_ALL_EXCEPT);
473
474 /* Finally cache state as default environment. */
475 fegetenv (&__fe_dfl_env);
476 }
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
0 ../../fenv/fenv_stub.c
3030 #endif
3131
3232 /*
33 * Standard conformance (non-IEEE) on exception cases.
33 * POSIX Standard conformance on exception cases.
3434 * Mapping:
3535 * 1 -- acos(|x|>1)
3636 * 2 -- asin(|x|>1)
8484 double x,y; int type;
8585 #endif
8686 {
87 struct exception exc;
88 #ifndef HUGE_VAL /* this is the only routine that uses HUGE_VAL */
89 #define HUGE_VAL inf
90 double inf = 0.0;
91
92 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
93 #endif
87 double retval = 0.0;
9488
9589 #ifdef _USE_WRITE
9690 /* (void) fflush(_stdout_r(p)); */
9791 #endif
98 exc.arg1 = x;
99 exc.arg2 = y;
100 exc.err = 0;
10192 switch(type) {
10293 case 1:
10394 case 101:
10495 /* acos(|x|>1) */
105 exc.type = DOMAIN;
106 exc.name = type < 100 ? "acos" : "acosf";
107 exc.retval = zero;
108 if (_LIB_VERSION == _POSIX_)
109 errno = EDOM;
110 else if (!matherr(&exc)) {
111 /* if(_LIB_VERSION == _SVID_) {
112 (void) WRITE2("acos: DOMAIN error\n", 19);
113 } */
114 errno = EDOM;
115 }
96 retval = zero;
97 errno = EDOM;
11698 break;
11799 case 2:
118100 case 102:
119101 /* asin(|x|>1) */
120 exc.type = DOMAIN;
121 exc.name = type < 100 ? "asin" : "asinf";
122 exc.retval = zero;
123 if(_LIB_VERSION == _POSIX_)
124 errno = EDOM;
125 else if (!matherr(&exc)) {
126 /* if(_LIB_VERSION == _SVID_) {
127 (void) WRITE2("asin: DOMAIN error\n", 19);
128 } */
129 errno = EDOM;
130 }
102 retval = zero;
103 errno = EDOM;
131104 break;
132105 case 3:
133106 case 103:
134107 /* atan2(+-0,+-0) */
135 exc.arg1 = y;
136 exc.arg2 = x;
137 exc.type = DOMAIN;
138 exc.name = type < 100 ? "atan2" : "atan2f";
139 exc.retval = zero;
140 if(_LIB_VERSION == _POSIX_)
141 errno = EDOM;
142 else if (!matherr(&exc)) {
143 /* if(_LIB_VERSION == _SVID_) {
144 (void) WRITE2("atan2: DOMAIN error\n", 20);
145 } */
146 errno = EDOM;
147 }
108 retval = zero;
109 errno = EDOM;
148110 break;
149111 case 4:
150112 case 104:
151113 /* hypot(finite,finite) overflow */
152 exc.type = OVERFLOW;
153 exc.name = type < 100 ? "hypot" : "hypotf";
154 if (_LIB_VERSION == _SVID_)
155 exc.retval = HUGE;
156 else
157 exc.retval = HUGE_VAL;
158 if (_LIB_VERSION == _POSIX_)
159 errno = ERANGE;
160 else if (!matherr(&exc)) {
161 errno = ERANGE;
162 }
114 retval = HUGE_VAL;
115 errno = ERANGE;
163116 break;
164117 case 5:
165118 case 105:
166119 /* cosh(finite) overflow */
167 exc.type = OVERFLOW;
168 exc.name = type < 100 ? "cosh" : "coshf";
169 if (_LIB_VERSION == _SVID_)
170 exc.retval = HUGE;
171 else
172 exc.retval = HUGE_VAL;
173 if (_LIB_VERSION == _POSIX_)
174 errno = ERANGE;
175 else if (!matherr(&exc)) {
176 errno = ERANGE;
177 }
120 retval = HUGE_VAL;
121 errno = ERANGE;
178122 break;
179123 case 6:
180124 case 106:
181125 /* exp(finite) overflow */
182 exc.type = OVERFLOW;
183 exc.name = type < 100 ? "exp" : "expf";
184 if (_LIB_VERSION == _SVID_)
185 exc.retval = HUGE;
186 else
187 exc.retval = HUGE_VAL;
188 if (_LIB_VERSION == _POSIX_)
189 errno = ERANGE;
190 else if (!matherr(&exc)) {
191 errno = ERANGE;
192 }
126 retval = HUGE_VAL;
127 errno = ERANGE;
193128 break;
194129 case 7:
195130 case 107:
196131 /* exp(finite) underflow */
197 exc.type = UNDERFLOW;
198 exc.name = type < 100 ? "exp" : "expf";
199 exc.retval = zero;
200 if (_LIB_VERSION == _POSIX_)
201 errno = ERANGE;
202 else if (!matherr(&exc)) {
203 errno = ERANGE;
204 }
132 retval = zero;
133 errno = ERANGE;
205134 break;
206135 case 8:
207136 case 108:
208137 /* y0(0) = -inf */
209 exc.type = DOMAIN; /* should be SING for IEEE */
210 exc.name = type < 100 ? "y0" : "y0f";
211 if (_LIB_VERSION == _SVID_)
212 exc.retval = -HUGE;
213 else
214 exc.retval = -HUGE_VAL;
215 if (_LIB_VERSION == _POSIX_)
216 errno = EDOM;
217 else if (!matherr(&exc)) {
218 /* if (_LIB_VERSION == _SVID_) {
219 (void) WRITE2("y0: DOMAIN error\n", 17);
220 } */
221 errno = EDOM;
222 }
138 retval = -HUGE_VAL;
139 errno = EDOM;
223140 break;
224141 case 9:
225142 case 109:
226143 /* y0(x<0) = NaN */
227 exc.type = DOMAIN;
228 exc.name = type < 100 ? "y0" : "y0f";
229 if (_LIB_VERSION == _SVID_)
230 exc.retval = -HUGE;
231 else
232 exc.retval = -HUGE_VAL;
233 if (_LIB_VERSION == _POSIX_)
234 errno = EDOM;
235 else if (!matherr(&exc)) {
236 /*if (_LIB_VERSION == _SVID_) {
237 (void) WRITE2("y0: DOMAIN error\n", 17);
238 } */
239 errno = EDOM;
240 }
144 retval = -HUGE_VAL;
145 errno = EDOM;
241146 break;
242147 case 10:
243148 case 110:
244149 /* y1(0) = -inf */
245 exc.type = DOMAIN; /* should be SING for IEEE */
246 exc.name = type < 100 ? "y1" : "y1f";
247 if (_LIB_VERSION == _SVID_)
248 exc.retval = -HUGE;
249 else
250 exc.retval = -HUGE_VAL;
251 if (_LIB_VERSION == _POSIX_)
252 errno = EDOM;
253 else if (!matherr(&exc)) {
254 /* if (_LIB_VERSION == _SVID_) {
255 (void) WRITE2("y1: DOMAIN error\n", 17);
256 } */
257 errno = EDOM;
258 }
150 retval = -HUGE_VAL;
151 errno = EDOM;
259152 break;
260153 case 11:
261154 case 111:
262155 /* y1(x<0) = NaN */
263 exc.type = DOMAIN;
264 exc.name = type < 100 ? "y1" : "y1f";
265 if (_LIB_VERSION == _SVID_)
266 exc.retval = -HUGE;
267 else
268 exc.retval = -HUGE_VAL;
269 if (_LIB_VERSION == _POSIX_)
270 errno = EDOM;
271 else if (!matherr(&exc)) {
272 /* if (_LIB_VERSION == _SVID_) {
273 (void) WRITE2("y1: DOMAIN error\n", 17);
274 } */
275 errno = EDOM;
276 }
156 retval = -HUGE_VAL;
157 errno = EDOM;
277158 break;
278159 case 12:
279160 case 112:
280161 /* yn(n,0) = -inf */
281 exc.type = DOMAIN; /* should be SING for IEEE */
282 exc.name = type < 100 ? "yn" : "ynf";
283 if (_LIB_VERSION == _SVID_)
284 exc.retval = -HUGE;
285 else
286 exc.retval = -HUGE_VAL;
287 if (_LIB_VERSION == _POSIX_)
288 errno = EDOM;
289 else if (!matherr(&exc)) {
290 /* if (_LIB_VERSION == _SVID_) {
291 (void) WRITE2("yn: DOMAIN error\n", 17);
292 } */
293 errno = EDOM;
294 }
162 retval = -HUGE_VAL;
163 errno = EDOM;
295164 break;
296165 case 13:
297166 case 113:
298167 /* yn(x<0) = NaN */
299 exc.type = DOMAIN;
300 exc.name = type < 100 ? "yn" : "ynf";
301 if (_LIB_VERSION == _SVID_)
302 exc.retval = -HUGE;
303 else
304 exc.retval = -HUGE_VAL;
305 if (_LIB_VERSION == _POSIX_)
306 errno = EDOM;
307 else if (!matherr(&exc)) {
308 /* if (_LIB_VERSION == _SVID_) {
309 (void) WRITE2("yn: DOMAIN error\n", 17);
310 } */
311 errno = EDOM;
312 }
168 retval = -HUGE_VAL;
169 errno = EDOM;
313170 break;
314171 case 14:
315172 case 114:
316173 /* lgamma(finite) overflow */
317 exc.type = OVERFLOW;
318 exc.name = type < 100 ? "lgamma" : "lgammaf";
319 if (_LIB_VERSION == _SVID_)
320 exc.retval = HUGE;
321 else
322 exc.retval = HUGE_VAL;
323 if (_LIB_VERSION == _POSIX_)
324 errno = ERANGE;
325 else if (!matherr(&exc)) {
326 errno = ERANGE;
327 }
174 retval = HUGE_VAL;
175 errno = ERANGE;
328176 break;
329177 case 15:
330178 case 115:
331179 /* lgamma(-integer) or lgamma(0) */
332 exc.type = SING;
333 exc.name = type < 100 ? "lgamma" : "lgammaf";
334 if (_LIB_VERSION == _SVID_)
335 exc.retval = HUGE;
336 else
337 exc.retval = HUGE_VAL;
338 if (_LIB_VERSION == _POSIX_)
339 errno = EDOM;
340 else if (!matherr(&exc)) {
341 /* if (_LIB_VERSION == _SVID_) {
342 (void) WRITE2("lgamma: SING error\n", 19);
343 } */
344 errno = EDOM;
345 }
180 retval = HUGE_VAL;
181 errno = EDOM;
346182 break;
347183 case 16:
348184 case 116:
349185 /* log(0) */
350 exc.type = SING;
351 exc.name = type < 100 ? "log" : "logf";
352 if (_LIB_VERSION == _SVID_)
353 exc.retval = -HUGE;
354 else
355 exc.retval = -HUGE_VAL;
356 if (_LIB_VERSION == _POSIX_)
357 errno = ERANGE;
358 else if (!matherr(&exc)) {
359 /* if (_LIB_VERSION == _SVID_) {
360 (void) WRITE2("log: SING error\n", 16);
361 } */
362 errno = EDOM;
363 }
186 retval = -HUGE_VAL;
187 errno = EDOM;
364188 break;
365189 case 17:
366190 case 117:
367191 /* log(x<0) */
368 exc.type = DOMAIN;
369 exc.name = type < 100 ? "log" : "logf";
370 if (_LIB_VERSION == _SVID_)
371 exc.retval = -HUGE;
372 else
373 exc.retval = -HUGE_VAL;
374 if (_LIB_VERSION == _POSIX_)
375 errno = EDOM;
376 else if (!matherr(&exc)) {
377 /* if (_LIB_VERSION == _SVID_) {
378 (void) WRITE2("log: DOMAIN error\n", 18);
379 } */
380 errno = EDOM;
381 }
192 retval = -HUGE_VAL;
193 errno = EDOM;
382194 break;
383195 case 18:
384196 case 118:
385197 /* log10(0) */
386 exc.type = SING;
387 exc.name = type < 100 ? "log10" : "log10f";
388 if (_LIB_VERSION == _SVID_)
389 exc.retval = -HUGE;
390 else
391 exc.retval = -HUGE_VAL;
392 if (_LIB_VERSION == _POSIX_)
393 errno = ERANGE;
394 else if (!matherr(&exc)) {
395 /* if (_LIB_VERSION == _SVID_) {
396 (void) WRITE2("log10: SING error\n", 18);
397 } */
398 errno = EDOM;
399 }
198 retval = -HUGE_VAL;
199 errno = EDOM;
400200 break;
401201 case 19:
402202 case 119:
403203 /* log10(x<0) */
404 exc.type = DOMAIN;
405 exc.name = type < 100 ? "log10" : "log10f";
406 if (_LIB_VERSION == _SVID_)
407 exc.retval = -HUGE;
408 else
409 exc.retval = -HUGE_VAL;
410 if (_LIB_VERSION == _POSIX_)
411 errno = EDOM;
412 else if (!matherr(&exc)) {
413 /* if (_LIB_VERSION == _SVID_) {
414 (void) WRITE2("log10: DOMAIN error\n", 20);
415 } */
416 errno = EDOM;
417 }
204 retval = -HUGE_VAL;
205 errno = EDOM;
418206 break;
419207 case 20:
420208 case 120:
421209 /* pow(0.0,0.0) */
422 /* error only if _LIB_VERSION == _SVID_ */
423 exc.type = DOMAIN;
424 exc.name = type < 100 ? "pow" : "powf";
425 exc.retval = zero;
426 if (_LIB_VERSION != _SVID_) exc.retval = 1.0;
427 else if (!matherr(&exc)) {
428 /* (void) WRITE2("pow(0,0): DOMAIN error\n", 23); */
429 errno = EDOM;
430 }
210 /* Not an error. */
211 retval = 1.0;
431212 break;
432213 case 21:
433214 case 121:
434215 /* pow(x,y) overflow */
435 exc.type = OVERFLOW;
436 exc.name = type < 100 ? "pow" : "powf";
437 if (_LIB_VERSION == _SVID_) {
438 exc.retval = HUGE;
439 y *= 0.5;
440 if(x<zero&&rint(y)!=y) exc.retval = -HUGE;
441 } else {
442 exc.retval = HUGE_VAL;
443 y *= 0.5;
444 if(x<zero&&rint(y)!=y) exc.retval = -HUGE_VAL;
445 }
446 if (_LIB_VERSION == _POSIX_)
447 errno = ERANGE;
448 else if (!matherr(&exc)) {
449 errno = ERANGE;
450 }
216 retval = HUGE_VAL;
217 y *= 0.5;
218 if(x<zero&&rint(y)!=y)
219 retval = -HUGE_VAL;
220 errno = ERANGE;
451221 break;
452222 case 22:
453223 case 122:
454224 /* pow(x,y) underflow */
455 exc.type = UNDERFLOW;
456 exc.name = type < 100 ? "pow" : "powf";
457 exc.retval = zero;
458 if (_LIB_VERSION == _POSIX_)
459 errno = ERANGE;
460 else if (!matherr(&exc)) {
461 errno = ERANGE;
462 }
225 retval = zero;
226 errno = ERANGE;
463227 break;
464228 case 23:
465229 case 123:
466230 /* 0**neg */
467 exc.type = DOMAIN;
468 exc.name = type < 100 ? "pow" : "powf";
469 if (_LIB_VERSION == _SVID_)
470 exc.retval = zero;
471 else
472 exc.retval = -HUGE_VAL;
473 if (_LIB_VERSION == _POSIX_)
474 errno = EDOM;
475 else if (!matherr(&exc)) {
476 /* if (_LIB_VERSION == _SVID_) {
477 (void) WRITE2("pow(0,neg): DOMAIN error\n", 25);
478 } */
479 errno = EDOM;
480 }
231 retval = -HUGE_VAL;
232 errno = EDOM;
481233 break;
482234 case 24:
483235 case 124:
484236 /* neg**non-integral */
485 exc.type = DOMAIN;
486 exc.name = type < 100 ? "pow" : "powf";
487 if (_LIB_VERSION == _SVID_)
488 exc.retval = zero;
489 else
490 exc.retval = zero/zero; /* X/Open allow NaN */
491 if (_LIB_VERSION == _POSIX_)
492 errno = EDOM;
493 else if (!matherr(&exc)) {
494 /* if (_LIB_VERSION == _SVID_) {
495 (void) WRITE2("neg**non-integral: DOMAIN error\n", 32);
496 } */
497 errno = EDOM;
498 }
237 retval = zero/zero;
238 errno = EDOM;
499239 break;
500240 case 25:
501241 case 125:
502242 /* sinh(finite) overflow */
503 exc.type = OVERFLOW;
504 exc.name = type < 100 ? "sinh" : "sinhf";
505 if (_LIB_VERSION == _SVID_)
506 exc.retval = ( (x>zero) ? HUGE : -HUGE);
507 else
508 exc.retval = ( (x>zero) ? HUGE_VAL : -HUGE_VAL);
509 if (_LIB_VERSION == _POSIX_)
510 errno = ERANGE;
511 else if (!matherr(&exc)) {
512 errno = ERANGE;
513 }
243 retval = ( (x>zero) ? HUGE_VAL : -HUGE_VAL);
244 errno = ERANGE;
514245 break;
515246 case 26:
516247 case 126:
517248 /* sqrt(x<0) */
518 exc.type = DOMAIN;
519 exc.name = type < 100 ? "sqrt" : "sqrtf";
520 if (_LIB_VERSION == _SVID_)
521 exc.retval = zero;
522 else
523 exc.retval = zero/zero;
524 if (_LIB_VERSION == _POSIX_)
525 errno = EDOM;
526 else if (!matherr(&exc)) {
527 /* if (_LIB_VERSION == _SVID_) {
528 (void) WRITE2("sqrt: DOMAIN error\n", 19);
529 } */
530 errno = EDOM;
531 }
249 retval = zero/zero;
250 errno = EDOM;
532251 break;
533252 case 27:
534253 case 127:
535 /* fmod(x,0) */
536 exc.type = DOMAIN;
537 exc.name = type < 100 ? "fmod" : "fmodf";
538 if (_LIB_VERSION == _SVID_)
539 exc.retval = x;
540 else
541 exc.retval = zero/zero;
542 if (_LIB_VERSION == _POSIX_)
543 errno = EDOM;
544 else if (!matherr(&exc)) {
545 /* if (_LIB_VERSION == _SVID_) {
546 (void) WRITE2("fmod: DOMAIN error\n", 20);
547 } */
548 errno = EDOM;
549 }
254 /* fmod(x,0) */
255 retval = zero/zero;
256 errno = EDOM;
550257 break;
551258 case 28:
552259 case 128:
553260 /* remainder(x,0) */
554 exc.type = DOMAIN;
555 exc.name = type < 100 ? "remainder" : "remainderf";
556 exc.retval = zero/zero;
557 if (_LIB_VERSION == _POSIX_)
558 errno = EDOM;
559 else if (!matherr(&exc)) {
560 /* if (_LIB_VERSION == _SVID_) {
561 (void) WRITE2("remainder: DOMAIN error\n", 24);
562 } */
563 errno = EDOM;
564 }
261 retval = zero/zero;
262 errno = EDOM;
565263 break;
566264 case 29:
567265 case 129:
568266 /* acosh(x<1) */
569 exc.type = DOMAIN;
570 exc.name = type < 100 ? "acosh" : "acoshf";
571 exc.retval = zero/zero;
572 if (_LIB_VERSION == _POSIX_)
573 errno = EDOM;
574 else if (!matherr(&exc)) {
575 /* if (_LIB_VERSION == _SVID_) {
576 (void) WRITE2("acosh: DOMAIN error\n", 20);
577 } */
578 errno = EDOM;
579 }
267 retval = zero/zero;
268 errno = EDOM;
580269 break;
581270 case 30:
582271 case 130:
583272 /* atanh(|x|>1) */
584 exc.type = DOMAIN;
585 exc.name = type < 100 ? "atanh" : "atanhf";
586 exc.retval = zero/zero;
587 if (_LIB_VERSION == _POSIX_)
588 errno = EDOM;
589 else if (!matherr(&exc)) {
590 /* if (_LIB_VERSION == _SVID_) {
591 (void) WRITE2("atanh: DOMAIN error\n", 20);
592 } */
593 errno = EDOM;
594 }
273 retval = zero/zero;
274 errno = EDOM;
595275 break;
596276 case 31:
597277 case 131:
598278 /* atanh(|x|=1) */
599 exc.type = SING;
600 exc.name = type < 100 ? "atanh" : "atanhf";
601 exc.retval = x/zero; /* sign(x)*inf */
602 if (_LIB_VERSION == _POSIX_)
603 errno = EDOM;
604 else if (!matherr(&exc)) {
605 /* if (_LIB_VERSION == _SVID_) {
606 (void) WRITE2("atanh: SING error\n", 18);
607 } */
608 errno = EDOM;
609 }
279 retval = x/zero; /* sign(x)*inf */
280 errno = EDOM;
610281 break;
611282 case 32:
612283 case 132:
613 /* scalb overflow; SVID also returns +-HUGE_VAL */
614 exc.type = OVERFLOW;
615 exc.name = type < 100 ? "scalb" : "scalbf";
616 exc.retval = x > zero ? HUGE_VAL : -HUGE_VAL;
617 if (_LIB_VERSION == _POSIX_)
618 errno = ERANGE;
619 else if (!matherr(&exc)) {
620 errno = ERANGE;
621 }
284 /* scalb overflow */
285 retval = x > zero ? HUGE_VAL : -HUGE_VAL;
286 errno = ERANGE;
622287 break;
623288 case 33:
624289 case 133:
625290 /* scalb underflow */
626 exc.type = UNDERFLOW;
627 exc.name = type < 100 ? "scalb" : "scalbf";
628 exc.retval = copysign(zero,x);
629 if (_LIB_VERSION == _POSIX_)
630 errno = ERANGE;
631 else if (!matherr(&exc)) {
632 errno = ERANGE;
633 }
291 retval = copysign(zero,x);
292 errno = ERANGE;
634293 break;
635294 case 34:
636295 case 134:
637296 /* j0(|x|>X_TLOSS) */
638 exc.type = TLOSS;
639 exc.name = type < 100 ? "j0" : "j0f";
640 exc.retval = zero;
641 if (_LIB_VERSION == _POSIX_)
642 errno = ERANGE;
643 else if (!matherr(&exc)) {
644 /* if (_LIB_VERSION == _SVID_) {
645 (void) WRITE2(exc.name, 2);
646 (void) WRITE2(": TLOSS error\n", 14);
647 } */
648 errno = ERANGE;
649 }
297 retval = zero;
298 errno = ERANGE;
650299 break;
651300 case 35:
652301 case 135:
653302 /* y0(x>X_TLOSS) */
654 exc.type = TLOSS;
655 exc.name = type < 100 ? "y0" : "y0f";
656 exc.retval = zero;
657 if (_LIB_VERSION == _POSIX_)
658 errno = ERANGE;
659 else if (!matherr(&exc)) {
660 /* if (_LIB_VERSION == _SVID_) {
661 (void) WRITE2(exc.name, 2);
662 (void) WRITE2(": TLOSS error\n", 14);
663 } */
664 errno = ERANGE;
665 }
303 retval = zero;
304 errno = ERANGE;
666305 break;
667306 case 36:
668307 case 136:
669308 /* j1(|x|>X_TLOSS) */
670 exc.type = TLOSS;
671 exc.name = type < 100 ? "j1" : "j1f";
672 exc.retval = zero;
673 if (_LIB_VERSION == _POSIX_)
674 errno = ERANGE;
675 else if (!matherr(&exc)) {
676 /* if (_LIB_VERSION == _SVID_) {
677 (void) WRITE2(exc.name, 2);
678 (void) WRITE2(": TLOSS error\n", 14);
679 } */
680 errno = ERANGE;
681 }
309 retval = zero;
310 errno = ERANGE;
682311 break;
683312 case 37:
684313 case 137:
685314 /* y1(x>X_TLOSS) */
686 exc.type = TLOSS;
687 exc.name = type < 100 ? "y1" : "y1f";
688 exc.retval = zero;
689 if (_LIB_VERSION == _POSIX_)
690 errno = ERANGE;
691 else if (!matherr(&exc)) {
692 /* if (_LIB_VERSION == _SVID_) {
693 (void) WRITE2(exc.name, 2);
694 (void) WRITE2(": TLOSS error\n", 14);
695 } */
696 errno = ERANGE;
697 }
315 retval = zero;
316 errno = ERANGE;
698317 break;
699318 case 38:
700319 case 138:
701320 /* jn(|x|>X_TLOSS) */
702 exc.type = TLOSS;
703 exc.name = type < 100 ? "jn" : "jnf";
704 exc.retval = zero;
705 if (_LIB_VERSION == _POSIX_)
706 errno = ERANGE;
707 else if (!matherr(&exc)) {
708 /* if (_LIB_VERSION == _SVID_) {
709 (void) WRITE2(exc.name, 2);
710 (void) WRITE2(": TLOSS error\n", 14);
711 } */
712 errno = ERANGE;
713 }
321 retval = zero;
322 errno = ERANGE;
714323 break;
715324 case 39:
716325 case 139:
717326 /* yn(x>X_TLOSS) */
718 exc.type = TLOSS;
719 exc.name = type < 100 ? "yn" : "ynf";
720 exc.retval = zero;
721 if (_LIB_VERSION == _POSIX_)
722 errno = ERANGE;
723 else if (!matherr(&exc)) {
724 /* if (_LIB_VERSION == _SVID_) {
725 (void) WRITE2(exc.name, 2);
726 (void) WRITE2(": TLOSS error\n", 14);
727 } */
728 errno = ERANGE;
729 }
327 retval = zero;
328 errno = ERANGE;
730329 break;
731330 case 40:
732331 case 140:
733332 /* gamma(finite) overflow */
734 exc.type = OVERFLOW;
735 exc.name = type < 100 ? "gamma" : "gammaf";
736 if (_LIB_VERSION == _SVID_)
737 exc.retval = HUGE;
738 else
739 exc.retval = HUGE_VAL;
740 if (_LIB_VERSION == _POSIX_)
741 errno = ERANGE;
742 else if (!matherr(&exc)) {
743 errno = ERANGE;
744 }
333 retval = HUGE_VAL;
334 errno = ERANGE;
745335 break;
746336 case 41:
747337 case 141:
748338 /* gamma(-integer) or gamma(0) */
749 exc.type = SING;
750 exc.name = type < 100 ? "gamma" : "gammaf";
751 if (_LIB_VERSION == _SVID_)
752 exc.retval = HUGE;
753 else
754 exc.retval = HUGE_VAL;
755 if (_LIB_VERSION == _POSIX_)
756 errno = EDOM;
757 else if (!matherr(&exc)) {
758 /* if (_LIB_VERSION == _SVID_) {
759 (void) WRITE2("gamma: SING error\n", 18);
760 } */
761 errno = EDOM;
762 }
339 retval = HUGE_VAL;
340 errno = EDOM;
763341 break;
764342 case 42:
765343 case 142:
766344 /* pow(NaN,0.0) */
767 /* error only if _LIB_VERSION == _SVID_ & _XOPEN_ */
768 exc.type = DOMAIN;
769 exc.name = type < 100 ? "pow" : "powf";
770 exc.retval = x;
771 if (_LIB_VERSION == _IEEE_ ||
772 _LIB_VERSION == _POSIX_) exc.retval = 1.0;
773 else if (!matherr(&exc)) {
774 errno = EDOM;
775 }
345 /* Not an error. */
346 retval = 1.0;
776347 break;
777348 }
778 if (exc.err != 0)
779 errno = exc.err;
780 return exc.retval;
349 return retval;
781350 }
782351
783352
22
33 This chapter groups a wide variety of mathematical functions. The
44 corresponding definitions and declarations are in @file{math.h}.
5 Two definitions from @file{math.h} are of particular interest.
5 The definition of HUGE_VAL from @file{math.h} is of particular interest.
66
77 @enumerate
88 @item
99 The representation of infinity as a @code{double} is defined as
1010 @code{HUGE_VAL}; this number is returned on overflow by many functions.
1111 The macro @code{HUGE_VALF} is a corresponding value for @code{float}.
12
13 @item
14 The structure @code{exception} is used when you write customized error
15 handlers for the mathematical functions. You can customize error
16 handling for most of these functions by defining your own version of
17 @code{matherr}; see the section on @code{matherr} for details.
1812 @end enumerate
19
20 @cindex system calls
21 @cindex support subroutines
22 @cindex stubs
23 @cindex OS stubs
24 Since the error handling code calls @code{fputs}, the mathematical
25 subroutines require stubs or minimal implementations for the same list
26 of OS subroutines as @code{fputs}: @code{close}, @code{fstat},
27 @code{isatty}, @code{lseek}, @code{read}, @code{sbrk}, @code{write}.
28 @xref{syscalls,,System Calls, libc.info, The Red Hat newlib C Library},
29 for a discussion and for sample minimal implementations of these support
30 subroutines.
3113
3214 Alternative declarations of the mathematical functions, which exploit
3315 specific machine capabilities to operate faster---but generally have
7557 * logb:: Get exponent
7658 * lrint:: Round to integer
7759 * lround:: Round to integer, away from zero (lround, llround)
78 * matherr:: Modifiable math error handler
7960 * modf:: Split fractional and integer parts
8061 * nan:: Floating Not a Number
8162 * nearbyint:: Round to integer
10081 @node version
10182 @section Error Handling
10283
103 There are four different versions of the math library routines: IEEE,
104 POSIX, X/Open, or SVID. The version may be selected at runtime by
84 There are two different versions of the math library routines: IEEE
85 and POSIX. The version may be selected at runtime by
10586 setting the global variable @code{_LIB_VERSION}, defined in
10687 @file{math.h}. It may be set to one of the following constants defined
107 in @file{math.h}: @code{_IEEE_}, @code{_POSIX_}, @code{_XOPEN_}, or
108 @code{_SVID_}. The @code{_LIB_VERSION} variable is not specific to any
88 in @file{math.h}: @code{_IEEE_} or @code{_POSIX_}.
89 The @code{_LIB_VERSION} variable is not specific to any
10990 thread, and changing it will affect all threads.
11091
111 The versions of the library differ only in how errors are handled.
112
113 In IEEE mode, the @code{matherr} function is never called, no warning
114 messages are printed, and @code{errno} is never set.
115
116 In POSIX mode, @code{errno} is set correctly, but the @code{matherr}
117 function is never called and no warning messages are printed.
118
119 In X/Open mode, @code{errno} is set correctly, and @code{matherr} is
120 called, but warning message are not printed.
121
122 In SVID mode, functions which overflow return 3.40282346638528860e+38,
123 the maximum single-precision floating-point value, rather than infinity.
124 Also, @code{errno} is set correctly, @code{matherr} is called, and, if
125 @code{matherr} returns 0, warning messages are printed for some errors.
126 For example, by default @samp{log(-1.0)} writes this message on standard
127 error output:
128
129 @example
130 log: DOMAIN error
131 @end example
132
133 The library is set to X/Open mode by default.
134
135 The aforementioned error reporting is the supported Newlib libm error
136 handling method. However, the majority of the functions are written
92 The versions of the library differ only in the setting of @code{errno}.
93
94 In IEEE mode, @code{errno} is never set.
95
96 In POSIX mode, @code{errno} is set correctly.
97
98 The library is set to IEEE mode by default.
99
100 The majority of the floating-point math functions are written
137101 so as to produce the floating-point exceptions (e.g. "invalid",
138102 "divide-by-zero") as required by the C and POSIX standards, for
139103 floating-point implementations that support them. Newlib does not provide
240204 @page
241205 @include common/s_lround.def
242206 @page
243 @include common/s_matherr.def
244 @page
245207 @include common/s_modf.def
246208 @page
247209 @include common/s_nan.def
4141 @end tex
4242
4343 If <[x]> is not between @minus{}1 and 1, the returned value is NaN
44 (not a number) the global variable <<errno>> is set to <<EDOM>>, and a
45 <<DOMAIN error>> message is sent as standard error output.
46
47 You can modify error handling for these functions using <<matherr>>.
48
44 (not a number), and the global variable <<errno>> is set to <<EDOM>>.
4945
5046 QUICKREF
51 ansi svid posix rentrant
52 acos y,y,y,m
53 acosf n,n,n,m
47 ansi posix rentrant
48 acos y,y,m
49 acosf n,n,m
5450
5551 MATHREF
5652 acos, [-1,1], acos(arg),,,
8278 return __ieee754_acos(x);
8379 #else
8480 double z;
85 struct exception exc;
8681 z = __ieee754_acos(x);
8782 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
8883 if(fabs(x)>1.0) {
8984 /* acos(|x|>1) */
90 exc.type = DOMAIN;
91 exc.name = "acos";
92 exc.err = 0;
93 exc.arg1 = exc.arg2 = x;
94 exc.retval = nan("");
95 if (_LIB_VERSION == _POSIX_)
96 errno = EDOM;
97 else if (!matherr(&exc)) {
98 errno = EDOM;
99 }
100 if (exc.err != 0)
101 errno = exc.err;
102 return exc.retval;
85 errno = EDOM;
86 return nan("");
10387 } else
10488 return z;
10589 #endif
4343 <<acosh>> and <<acoshf>> return the calculated value. If <[x]>
4444 less than 1, the return value is NaN and <<errno>> is set to <<EDOM>>.
4545
46 You can change the error-handling behavior with the non-ANSI
47 <<matherr>> function.
48
4946 PORTABILITY
5047 Neither <<acosh>> nor <<acoshf>> are ANSI C. They are not recommended
5148 for portable programs.
5249
5350
5451 QUICKREF
55 ansi svid posix rentrant
56 acos n,n,n,m
57 acosf n,n,n,m
52 ansi posix rentrant
53 acos n,n,m
54 acosf n,n,m
5855
5956 MATHREF
6057 acosh, NAN, arg,DOMAIN,EDOM
8885 return __ieee754_acosh(x);
8986 #else
9087 double z;
91 struct exception exc;
9288 z = __ieee754_acosh(x);
9389 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
9490 if(x<1.0) {
9591 /* acosh(x<1) */
96 exc.type = DOMAIN;
97 exc.name = "acosh";
98 exc.err = 0;
99 exc.arg1 = exc.arg2 = x;
100 exc.retval = 0.0/0.0;
101 if (_LIB_VERSION == _POSIX_)
102 errno = EDOM;
103 else if (!matherr(&exc)) {
104 errno = EDOM;
105 }
106 if (exc.err != 0)
107 errno = exc.err;
108 return exc.retval;
92 errno = EDOM;
93 return 0.0/0.0;
10994 } else
11095 return z;
11196 #endif
3333 <<asinf>> is identical to <<asin>>, other than taking and
3434 returning floats.
3535
36 You can modify error handling for these routines using <<matherr>>.
37
3836 RETURNS
3937 @ifnottex
4038 <<asin>> returns values in radians, in the range of -pi/2 to pi/2.
4442 @end tex
4543
4644 If <[x]> is not in the range @minus{}1 to 1, <<asin>> and <<asinf>>
47 return NaN (not a number), set the global variable <<errno>> to
48 <<EDOM>>, and issue a <<DOMAIN error>> message.
49
50 You can change this error treatment using <<matherr>>.
45 return NaN (not a number), and the global variable <<errno>> is set to
46 <<EDOM>>.
5147
5248 QUICKREF
53 ansi svid posix rentrant
54 asin y,y,y,m
55 asinf n,n,n,m
49 ansi posix rentrant
50 asin y,y,m
51 asinf n,n,m
5652
5753 MATHREF
5854 asin, -1<=arg<=1, asin(arg),,,
8682 return __ieee754_asin(x);
8783 #else
8884 double z;
89 struct exception exc;
9085 z = __ieee754_asin(x);
9186 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
9287 if(fabs(x)>1.0) {
9388 /* asin(|x|>1) */
94 exc.type = DOMAIN;
95 exc.name = "asin";
96 exc.err = 0;
97 exc.arg1 = exc.arg2 = x;
98 exc.retval = nan("");
99 if(_LIB_VERSION == _POSIX_)
100 errno = EDOM;
101 else if (!matherr(&exc)) {
102 errno = EDOM;
103 }
104 if (exc.err != 0)
105 errno = exc.err;
106 return exc.retval;
89 errno = EDOM;
90 return nan("");
10791 } else
10892 return z;
10993 #endif
4949 $-\pi$ to $\pi$.
5050 @end tex
5151
52 You can modify error handling for these functions using <<matherr>>.
53
5452 PORTABILITY
5553 <<atan2>> is ANSI C. <<atan2f>> is an extension.
5654
5353 is 1, the global <<errno>> is set to <<EDOM>>; and the result is
5454 infinity with the same sign as <<x>>. A <<SING error>> is reported.
5555
56 You can modify the error handling for these routines using
57 <<matherr>>.
58
5956 PORTABILITY
6057 Neither <<atanh>> nor <<atanhf>> are ANSI C.
6158
8683 return __ieee754_atanh(x);
8784 #else
8885 double z,y;
89 struct exception exc;
9086 z = __ieee754_atanh(x);
9187 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
9288 y = fabs(x);
9389 if(y>=1.0) {
9490 if(y>1.0) {
95 /* atanh(|x|>1) */
96 exc.type = DOMAIN;
97 exc.name = "atanh";
98 exc.err = 0;
99 exc.arg1 = exc.arg2 = x;
100 exc.retval = 0.0/0.0;
101 if (_LIB_VERSION == _POSIX_)
102 errno = EDOM;
103 else if (!matherr(&exc)) {
104 errno = EDOM;
105 }
91 /* atanh(|x|>1) */
92 errno = EDOM;
93 return 0.0/0.0;
10694 } else {
107 /* atanh(|x|=1) */
108 exc.type = SING;
109 exc.name = "atanh";
110 exc.err = 0;
111 exc.arg1 = exc.arg2 = x;
112 exc.retval = x/0.0; /* sign(x)*inf */
113 if (_LIB_VERSION == _POSIX_)
114 errno = EDOM;
115 else if (!matherr(&exc)) {
116 errno = EDOM;
117 }
118 }
119 if (exc.err != 0)
120 errno = exc.err;
121 return exc.retval;
95 /* atanh(|x|=1) */
96 errno = EDOM;
97 return x/0.0; /* sign(x)*inf */
98 }
12299 } else
123100 return z;
124101 #endif
4040 an overflow, <<cosh>> returns the value <<HUGE_VAL>> with the
4141 appropriate sign, and the global value <<errno>> is set to <<ERANGE>>.
4242
43 You can modify error handling for these functions using the
44 function <<matherr>>.
45
4643 PORTABILITY
4744 <<cosh>> is ANSI.
4845 <<coshf>> is an extension.
7269 return __ieee754_cosh(x);
7370 #else
7471 double z;
75 struct exception exc;
7672 z = __ieee754_cosh(x);
7773 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
7874 if(fabs(x)>7.10475860073943863426e+02) {
7975 /* cosh(finite) overflow */
80 #ifndef HUGE_VAL
81 #define HUGE_VAL inf
82 double inf = 0.0;
83
84 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
85 #endif
86 exc.type = OVERFLOW;
87 exc.name = "cosh";
88 exc.err = 0;
89 exc.arg1 = exc.arg2 = x;
90 if (_LIB_VERSION == _SVID_)
91 exc.retval = HUGE;
92 else
93 exc.retval = HUGE_VAL;
94 if (_LIB_VERSION == _POSIX_)
95 errno = ERANGE;
96 else if (!matherr(&exc)) {
97 errno = ERANGE;
98 }
99 if (exc.err != 0)
100 errno = exc.err;
101 return exc.retval;
76 errno = ERANGE;
77 return HUGE_VAL;
10278 } else
10379 return z;
10480 #endif
3232 $e^x$ (where $e$
3333 @end tex
3434 is the base of the natural system of logarithms, approximately 2.71828).
35
36 You can use the (non-ANSI) function <<matherr>> to specify
37 error handling for these functions.
3835
3936 RETURNS
4037 On success, <<exp>> and <<expf>> return the calculated value.
7673 return __ieee754_exp(x);
7774 #else
7875 double z;
79 struct exception exc;
8076 z = __ieee754_exp(x);
8177 if(_LIB_VERSION == _IEEE_) return z;
8278 if(finite(x)) {
8379 if(x>o_threshold) {
8480 /* exp(finite) overflow */
85 #ifndef HUGE_VAL
86 #define HUGE_VAL inf
87 double inf = 0.0;
88
89 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
90 #endif
91 exc.type = OVERFLOW;
92 exc.name = "exp";
93 exc.err = 0;
94 exc.arg1 = exc.arg2 = x;
95 if (_LIB_VERSION == _SVID_)
96 exc.retval = HUGE;
97 else
98 exc.retval = HUGE_VAL;
99 if (_LIB_VERSION == _POSIX_)
100 errno = ERANGE;
101 else if (!matherr(&exc)) {
102 errno = ERANGE;
103 }
104 if (exc.err != 0)
105 errno = exc.err;
106 return exc.retval;
81 errno = ERANGE;
82 return HUGE_VAL;
10783 } else if(x<u_threshold) {
10884 /* exp(finite) underflow */
109 exc.type = UNDERFLOW;
110 exc.name = "exp";
111 exc.err = 0;
112 exc.arg1 = exc.arg2 = x;
113 exc.retval = 0.0;
114 if (_LIB_VERSION == _POSIX_)
115 errno = ERANGE;
116 else if (!matherr(&exc)) {
117 errno = ERANGE;
118 }
119 if (exc.err != 0)
120 errno = exc.err;
121 return exc.retval;
85 errno = ERANGE;
86 return 0.0;
12287 }
12388 }
12489 return z;
3232 $2^x$
3333 @end tex
3434
35 You can use the (non-ANSI) function <<matherr>> to specify
36 error handling for these functions.
37
3835 RETURNS
3936 On success, <<exp2>> and <<exp2f>> return the calculated value.
4037 If the result underflows, the returned value is <<0>>. If the
4242
4343 <<fmod(<[x]>,0)>> returns NaN, and sets <<errno>> to <<EDOM>>.
4444
45 You can modify error treatment for these functions using <<matherr>>.
46
4745 PORTABILITY
4846 <<fmod>> is ANSI C. <<fmodf>> is an extension.
4947 */
6866 return __ieee754_fmod(x,y);
6967 #else
7068 double z;
71 struct exception exc;
7269 z = __ieee754_fmod(x,y);
7370 if(_LIB_VERSION == _IEEE_ ||isnan(y)||isnan(x)) return z;
7471 if(y==0.0) {
75 /* fmod(x,0) */
76 exc.type = DOMAIN;
77 exc.name = "fmod";
78 exc.arg1 = x;
79 exc.arg2 = y;
80 exc.err = 0;
81 if (_LIB_VERSION == _SVID_)
82 exc.retval = x;
83 else
84 exc.retval = 0.0/0.0;
85 if (_LIB_VERSION == _POSIX_)
86 errno = EDOM;
87 else if (!matherr(&exc)) {
88 errno = EDOM;
89 }
90 if (exc.err != 0)
91 errno = exc.err;
92 return exc.retval;
72 /* fmod(x,0) */
73 errno = EDOM;
74 return 0.0/0.0;
9375 } else
9476 return z;
9577 #endif
120120 and <<errno>> is set to <<EDOM>>. If the result overflows, <<gamma>>
121121 returns <<HUGE_VAL>> and <<errno>> is set to <<ERANGE>>.
122122
123 You can modify this error treatment using <<matherr>>.
124
125123 PORTABILITY
126124 Neither <<gamma>> nor <<gammaf>> is ANSI C. It is better not to use either
127125 of these; use <<lgamma>> or <<tgamma>> instead.@*
128126 <<lgamma>>, <<lgammaf>>, <<tgamma>>, and <<tgammaf>> are nominally C standard
129 in terms of the base return values, although the <<matherr>> error-handling
130 is not standard, nor is the <[signgam]> global for <<lgamma>>.
127 in terms of the base return values, although the <[signgam]> global for
128 <<lgamma>> is not standard.
131129 */
132130
133131 /* double gamma(double x)
153151 return __ieee754_gamma_r(x,&(_REENT_SIGNGAM(_REENT)));
154152 #else
155153 double y;
156 struct exception exc;
157154 y = __ieee754_gamma_r(x,&(_REENT_SIGNGAM(_REENT)));
158155 if(_LIB_VERSION == _IEEE_) return y;
159156 if(!finite(y)&&finite(x)) {
160 #ifndef HUGE_VAL
161 #define HUGE_VAL inf
162 double inf = 0.0;
163
164 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
165 #endif
166 exc.name = "gamma";
167 exc.err = 0;
168 exc.arg1 = exc.arg2 = x;
169 if (_LIB_VERSION == _SVID_)
170 exc.retval = HUGE;
171 else
172 exc.retval = HUGE_VAL;
173157 if(floor(x)==x&&x<=0.0) {
174158 /* gamma(-integer) or gamma(0) */
175 exc.type = SING;
176 if (_LIB_VERSION == _POSIX_)
177 errno = EDOM;
178 else if (!matherr(&exc)) {
179 errno = EDOM;
180 }
181 } else {
159 errno = EDOM;
160 } else {
182161 /* gamma(finite) overflow */
183 exc.type = OVERFLOW;
184 if (_LIB_VERSION == _POSIX_)
185 errno = ERANGE;
186 else if (!matherr(&exc)) {
187 errno = ERANGE;
188 }
189 }
190 if (exc.err != 0)
191 errno = exc.err;
192 return exc.retval;
162 errno = ERANGE;
163 }
164 return HUGE_VAL;
193165 } else
194166 return y;
195167 #endif
4040 <<hypot>> returns <<HUGE_VAL>> and sets <<errno>> to
4141 <<ERANGE>>.
4242
43 You can change the error treatment with <<matherr>>.
44
4543 PORTABILITY
4644 <<hypot>> and <<hypotf>> are not ANSI C. */
4745
6563 return __ieee754_hypot(x,y);
6664 #else
6765 double z;
68 struct exception exc;
6966 z = __ieee754_hypot(x,y);
7067 if(_LIB_VERSION == _IEEE_) return z;
7168 if((!finite(z))&&finite(x)&&finite(y)) {
7269 /* hypot(finite,finite) overflow */
73 #ifndef HUGE_VAL
74 #define HUGE_VAL inf
75 double inf = 0.0;
76
77 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
78 #endif
79 exc.type = OVERFLOW;
80 exc.name = "hypot";
81 exc.err = 0;
82 exc.arg1 = x;
83 exc.arg2 = y;
84 if (_LIB_VERSION == _SVID_)
85 exc.retval = HUGE;
86 else
87 exc.retval = HUGE_VAL;
88 if (_LIB_VERSION == _POSIX_)
89 errno = ERANGE;
90 else if (!matherr(&exc)) {
91 errno = ERANGE;
92 }
93 if (exc.err != 0)
94 errno = exc.err;
95 return exc.retval;
70 errno = ERANGE;
71 return HUGE_VAL;
9672 } else
9773 return z;
9874 #endif
103103 #ifdef _IEEE_LIBM
104104 return __ieee754_j0(x);
105105 #else
106 struct exception exc;
107106 double z = __ieee754_j0(x);
108107 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
109108 if(fabs(x)>X_TLOSS) {
110109 /* j0(|x|>X_TLOSS) */
111 exc.type = TLOSS;
112 exc.name = "j0";
113 exc.err = 0;
114 exc.arg1 = exc.arg2 = x;
115 exc.retval = 0.0;
116 if (_LIB_VERSION == _POSIX_)
117 errno = ERANGE;
118 else if (!matherr(&exc)) {
119 errno = ERANGE;
120 }
121 if (exc.err != 0)
122 errno = exc.err;
123 return exc.retval;
110 errno = ERANGE;
111 return 0.0;
124112 } else
125113 return z;
126114 #endif
137125 return __ieee754_y0(x);
138126 #else
139127 double z;
140 struct exception exc;
141128 z = __ieee754_y0(x);
142129 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
143130 if(x <= 0.0){
144 #ifndef HUGE_VAL
145 #define HUGE_VAL inf
146 double inf = 0.0;
147
148 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
149 #endif
150131 /* y0(0) = -inf or y0(x<0) = NaN */
151 exc.type = DOMAIN; /* should be SING for IEEE y0(0) */
152 exc.name = "y0";
153 exc.err = 0;
154 exc.arg1 = exc.arg2 = x;
155 if (_LIB_VERSION == _SVID_)
156 exc.retval = -HUGE;
157 else
158 exc.retval = -HUGE_VAL;
159 if (_LIB_VERSION == _POSIX_)
160 errno = EDOM;
161 else if (!matherr(&exc)) {
162 errno = EDOM;
163 }
164 if (exc.err != 0)
165 errno = exc.err;
166 return exc.retval;
132 errno = EDOM;
133 return -HUGE_VAL;
167134 }
168135 if(x>X_TLOSS) {
169136 /* y0(x>X_TLOSS) */
170 exc.type = TLOSS;
171 exc.name = "y0";
172 exc.err = 0;
173 exc.arg1 = exc.arg2 = x;
174 exc.retval = 0.0;
175 if (_LIB_VERSION == _POSIX_)
176 errno = ERANGE;
177 else if (!matherr(&exc)) {
178 errno = ERANGE;
179 }
180 if (exc.err != 0)
181 errno = exc.err;
182 return exc.retval;
137 errno = ERANGE;
138 return 0.0;
183139 } else
184140 return z;
185141 #endif
3030 return __ieee754_j1(x);
3131 #else
3232 double z;
33 struct exception exc;
3433 z = __ieee754_j1(x);
3534 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
3635 if(fabs(x)>X_TLOSS) {
3736 /* j1(|x|>X_TLOSS) */
38 exc.type = TLOSS;
39 exc.name = "j1";
40 exc.err = 0;
41 exc.arg1 = exc.arg2 = x;
42 exc.retval = 0.0;
43 if (_LIB_VERSION == _POSIX_)
44 errno = ERANGE;
45 else if (!matherr(&exc)) {
46 errno = ERANGE;
47 }
48 if (exc.err != 0)
49 errno = exc.err;
50 return exc.retval;
37 errno = ERANGE;
38 return 0.0;
5139 } else
5240 return z;
5341 #endif
6452 return __ieee754_y1(x);
6553 #else
6654 double z;
67 struct exception exc;
6855 z = __ieee754_y1(x);
6956 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
7057 if(x <= 0.0){
71 #ifndef HUGE_VAL
72 #define HUGE_VAL inf
73 double inf = 0.0;
74
75 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
76 #endif
7758 /* y1(0) = -inf or y1(x<0) = NaN */
78 exc.type = DOMAIN; /* should be SING for IEEE */
79 exc.name = "y1";
80 exc.err = 0;
81 exc.arg1 = exc.arg2 = x;
82 if (_LIB_VERSION == _SVID_)
83 exc.retval = -HUGE;
84 else
85 exc.retval = -HUGE_VAL;
86 if (_LIB_VERSION == _POSIX_)
87 errno = EDOM;
88 else if (!matherr(&exc)) {
89 errno = EDOM;
90 }
91 if (exc.err != 0)
92 errno = exc.err;
93 return exc.retval;
59 errno = EDOM;
60 return -HUGE_VAL;
9461 }
9562 if(x>X_TLOSS) {
9663 /* y1(x>X_TLOSS) */
97 exc.type = TLOSS;
98 exc.name = "y1";
99 exc.err = 0;
100 exc.arg1 = exc.arg2 = x;
101 exc.retval = 0.0;
102 if (_LIB_VERSION == _POSIX_)
103 errno = ERANGE;
104 else if (!matherr(&exc)) {
105 errno = ERANGE;
106 }
107 if (exc.err != 0)
108 errno = exc.err;
109 return exc.retval;
64 errno = ERANGE;
65 return 0.0;
11066 } else
11167 return z;
11268 #endif
5252 return __ieee754_jn(n,x);
5353 #else
5454 double z;
55 struct exception exc;
5655 z = __ieee754_jn(n,x);
5756 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
5857 if(fabs(x)>X_TLOSS) {
5958 /* jn(|x|>X_TLOSS) */
60 exc.type = TLOSS;
61 exc.name = "jn";
62 exc.err = 0;
63 exc.arg1 = n;
64 exc.arg2 = x;
65 exc.retval = 0.0;
66 if (_LIB_VERSION == _POSIX_)
67 errno = ERANGE;
68 else if (!matherr(&exc)) {
69 errno = ERANGE;
70 }
71 if (exc.err != 0)
72 errno = exc.err;
73 return exc.retval;
59 errno = ERANGE;
60 return 0.0;
7461 } else
7562 return z;
7663 #endif
8774 return __ieee754_yn(n,x);
8875 #else
8976 double z;
90 struct exception exc;
9177 z = __ieee754_yn(n,x);
9278 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
9379 if(x <= 0.0){
9480 /* yn(n,0) = -inf or yn(x<0) = NaN */
95 #ifndef HUGE_VAL
96 #define HUGE_VAL inf
97 double inf = 0.0;
98
99 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
100 #endif
101 exc.type = DOMAIN; /* should be SING for IEEE */
102 exc.name = "yn";
103 exc.err = 0;
104 exc.arg1 = n;
105 exc.arg2 = x;
106 if (_LIB_VERSION == _SVID_)
107 exc.retval = -HUGE;
108 else
109 exc.retval = -HUGE_VAL;
110 if (_LIB_VERSION == _POSIX_)
111 errno = EDOM;
112 else if (!matherr(&exc)) {
113 errno = EDOM;
114 }
115 if (exc.err != 0)
116 errno = exc.err;
117 return exc.retval;
81 errno = EDOM;
82 return -HUGE_VAL;
11883 }
11984 if(x>X_TLOSS) {
12085 /* yn(x>X_TLOSS) */
121 exc.type = TLOSS;
122 exc.name = "yn";
123 exc.err = 0;
124 exc.arg1 = n;
125 exc.arg2 = x;
126 exc.retval = 0.0;
127 if (_LIB_VERSION == _POSIX_)
128 errno = ERANGE;
129 else if (!matherr(&exc)) {
130 errno = ERANGE;
131 }
132 if (exc.err != 0)
133 errno = exc.err;
134 return exc.retval;
86 errno = ERANGE;
87 return 0.0;
13588 } else
13689 return z;
13790 #endif
3434 return __ieee754_lgamma_r(x,&(_REENT_SIGNGAM(_REENT)));
3535 #else
3636 double y;
37 struct exception exc;
3837 y = __ieee754_lgamma_r(x,&(_REENT_SIGNGAM(_REENT)));
3938 if(_LIB_VERSION == _IEEE_) return y;
4039 if(!finite(y)&&finite(x)) {
41 #ifndef HUGE_VAL
42 #define HUGE_VAL inf
43 double inf = 0.0;
44
45 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
46 #endif
47 exc.name = "lgamma";
48 exc.err = 0;
49 exc.arg1 = x;
50 exc.arg2 = x;
51 if (_LIB_VERSION == _SVID_)
52 exc.retval = HUGE;
53 else
54 exc.retval = HUGE_VAL;
55 if(floor(x)==x&&x<=0.0) {
56 /* lgamma(-integer) */
57 exc.type = SING;
58 if (_LIB_VERSION == _POSIX_)
59 errno = EDOM;
60 else if (!matherr(&exc)) {
61 errno = EDOM;
62 }
63
64 } else {
65 /* lgamma(finite) overflow */
66 exc.type = OVERFLOW;
67 if (_LIB_VERSION == _POSIX_)
68 errno = ERANGE;
69 else if (!matherr(&exc)) {
70 errno = ERANGE;
71 }
72 }
73 if (exc.err != 0)
74 errno = exc.err;
75 return exc.retval;
76 } else
40 if(floor(x)==x&&x<=0.0)
41 /* lgamma(-integer) */
42 errno = EDOM;
43 else
44 /* lgamma(finite) overflow */
45 errno = ERANGE;
46 return HUGE_VAL;
47 } else
7748 return y;
7849 #endif
7950 }
2929 (where e is the base of the natural system of logarithms, 2.71828@dots{}).
3030 <<log>> and <<logf>> are identical save for the return and argument types.
3131
32 You can use the (non-ANSI) function <<matherr>> to specify error
33 handling for these functions.
34
3532 RETURNS
3633 Normally, returns the calculated value. When <[x]> is zero, the
3734 returned value is <<-HUGE_VAL>> and <<errno>> is set to <<ERANGE>>.
3835 When <[x]> is negative, the returned value is NaN (not a number) and
39 <<errno>> is set to <<EDOM>>. You can control the error behavior via
40 <<matherr>>.
36 <<errno>> is set to <<EDOM>>.
4137
4238 PORTABILITY
4339 <<log>> is ANSI. <<logf>> is an extension.
6460 return __ieee754_log(x);
6561 #else
6662 double z;
67 struct exception exc;
6863 z = __ieee754_log(x);
6964 if(_LIB_VERSION == _IEEE_ || isnan(x) || x > 0.0) return z;
70 #ifndef HUGE_VAL
71 #define HUGE_VAL inf
72 double inf = 0.0;
73
74 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
75 #endif
76 exc.name = "log";
77 exc.err = 0;
78 exc.arg1 = x;
79 exc.arg2 = x;
80 if (_LIB_VERSION == _SVID_)
81 exc.retval = -HUGE;
82 else
83 exc.retval = -HUGE_VAL;
8465 if(x==0.0) {
8566 /* log(0) */
86 exc.type = SING;
87 if (_LIB_VERSION == _POSIX_)
88 errno = ERANGE;
89 else if (!matherr(&exc)) {
90 errno = ERANGE;
91 }
67 errno = ERANGE;
68 return -HUGE_VAL;
9269 } else {
9370 /* log(x<0) */
94 exc.type = DOMAIN;
95 if (_LIB_VERSION == _POSIX_)
96 errno = EDOM;
97 else if (!matherr(&exc)) {
98 errno = EDOM;
99 }
100 exc.retval = nan("");
71 errno = EDOM;
72 return nan("");
10173 }
102 if (exc.err != 0)
103 errno = exc.err;
104 return exc.retval;
10574 #endif
10675 }
10776
6060 return __ieee754_log10(x);
6161 #else
6262 double z;
63 struct exception exc;
6463 z = __ieee754_log10(x);
6564 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
6665 if(x<=0.0) {
67 #ifndef HUGE_VAL
68 #define HUGE_VAL inf
69 double inf = 0.0;
70
71 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
72 #endif
73 exc.name = "log10";
74 exc.err = 0;
75 exc.arg1 = x;
76 exc.arg2 = x;
77 if (_LIB_VERSION == _SVID_)
78 exc.retval = -HUGE;
79 else
80 exc.retval = -HUGE_VAL;
8166 if(x==0.0) {
82 /* log10(0) */
83 exc.type = SING;
84 if (_LIB_VERSION == _POSIX_)
85 errno = ERANGE;
86 else if (!matherr(&exc)) {
87 errno = ERANGE;
88 }
67 /* log10(0) */
68 errno = ERANGE;
69 return -HUGE_VAL;
8970 } else {
90 /* log10(x<0) */
91 exc.type = DOMAIN;
92 if (_LIB_VERSION == _POSIX_)
93 errno = EDOM;
94 else if (!matherr(&exc)) {
95 errno = EDOM;
96 }
97 exc.retval = nan("");
98 }
99 if (exc.err != 0)
100 errno = exc.err;
101 return exc.retval;
71 /* log10(x<0) */
72 errno = EDOM;
73 return nan("");
74 }
10275 } else
10376 return z;
10477 #endif
4141 is set to <<EDOM>>. If <[x]> and <[y]> are both 0, then
4242 <<pow>> and <<powf>> return <<1>>.
4343
44 You can modify error handling for these functions using <<matherr>>.
45
4644 PORTABILITY
4745 <<pow>> is ANSI C. <<powf>> is an extension. */
4846
6765 return __ieee754_pow(x,y);
6866 #else
6967 double z;
70 #ifndef HUGE_VAL
71 #define HUGE_VAL inf
72 double inf = 0.0;
73
74 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
75 #endif
76 struct exception exc;
7768 z=__ieee754_pow(x,y);
7869 if(_LIB_VERSION == _IEEE_|| isnan(y)) return z;
7970 if(isnan(x)) {
8071 if(y==0.0) {
8172 /* pow(NaN,0.0) */
82 /* error only if _LIB_VERSION == _SVID_ & _XOPEN_ */
83 exc.type = DOMAIN;
84 exc.name = "pow";
85 exc.err = 0;
86 exc.arg1 = x;
87 exc.arg2 = y;
88 exc.retval = 1.0;
89 if (_LIB_VERSION == _IEEE_ ||
90 _LIB_VERSION == _POSIX_) exc.retval = 1.0;
91 else if (!matherr(&exc)) {
92 errno = EDOM;
93 }
94 if (exc.err != 0)
95 errno = exc.err;
96 return exc.retval;
73 /* Not an error. */
74 return 1.0;
9775 } else
9876 return z;
9977 }
10078 if(x==0.0){
10179 if(y==0.0) {
10280 /* pow(0.0,0.0) */
103 /* error only if _LIB_VERSION == _SVID_ */
104 exc.type = DOMAIN;
105 exc.name = "pow";
106 exc.err = 0;
107 exc.arg1 = x;
108 exc.arg2 = y;
109 exc.retval = 0.0;
110 if (_LIB_VERSION != _SVID_) exc.retval = 1.0;
111 else if (!matherr(&exc)) {
112 errno = EDOM;
113 }
114 if (exc.err != 0)
115 errno = exc.err;
116 return exc.retval;
81 /* Not an error. */
82 return 1.0;
11783 }
118 if(finite(y)&&y<0.0) {
84 if(finite(y)&&y<0.0) {
11985 /* 0**neg */
120 exc.type = DOMAIN;
121 exc.name = "pow";
122 exc.err = 0;
123 exc.arg1 = x;
124 exc.arg2 = y;
125 if (_LIB_VERSION == _SVID_)
126 exc.retval = 0.0;
127 else
128 exc.retval = -HUGE_VAL;
129 if (_LIB_VERSION == _POSIX_)
130 errno = EDOM;
131 else if (!matherr(&exc)) {
132 errno = EDOM;
133 }
134 if (exc.err != 0)
135 errno = exc.err;
136 return exc.retval;
137 }
86 errno = EDOM;
87 return -HUGE_VAL;
88 }
13889 return z;
13990 }
14091 if(!finite(z)) {
14192 if(finite(x)&&finite(y)) {
14293 if(isnan(z)) {
14394 /* neg**non-integral */
144 exc.type = DOMAIN;
145 exc.name = "pow";
146 exc.err = 0;
147 exc.arg1 = x;
148 exc.arg2 = y;
149 if (_LIB_VERSION == _SVID_)
150 exc.retval = 0.0;
151 else
152 exc.retval = 0.0/0.0; /* X/Open allow NaN */
153 if (_LIB_VERSION == _POSIX_)
154 errno = EDOM;
155 else if (!matherr(&exc)) {
156 errno = EDOM;
157 }
158 if (exc.err != 0)
159 errno = exc.err;
160 return exc.retval;
95 errno = EDOM;
96 return 0.0/0.0;
16197 } else {
16298 /* pow(x,y) overflow */
163 exc.type = OVERFLOW;
164 exc.name = "pow";
165 exc.err = 0;
166 exc.arg1 = x;
167 exc.arg2 = y;
168 if (_LIB_VERSION == _SVID_) {
169 exc.retval = HUGE;
170 y *= 0.5;
171 if(x<0.0&&rint(y)!=y) exc.retval = -HUGE;
172 } else {
173 exc.retval = HUGE_VAL;
174 y *= 0.5;
175 if(x<0.0&&rint(y)!=y) exc.retval = -HUGE_VAL;
176 }
177 if (_LIB_VERSION == _POSIX_)
178 errno = ERANGE;
179 else if (!matherr(&exc)) {
180 errno = ERANGE;
181 }
182 if (exc.err != 0)
183 errno = exc.err;
184 return exc.retval;
99 errno = ERANGE;
100 if(x<0.0&&rint(y)!=y)
101 return -HUGE_VAL;
102 return HUGE_VAL;
185103 }
186104 }
187105 }
188106 if(z==0.0&&finite(x)&&finite(y)) {
189107 /* pow(x,y) underflow */
190 exc.type = UNDERFLOW;
191 exc.name = "pow";
192 exc.err = 0;
193 exc.arg1 = x;
194 exc.arg2 = y;
195 exc.retval = 0.0;
196 if (_LIB_VERSION == _POSIX_)
197 errno = ERANGE;
198 else if (!matherr(&exc)) {
199 errno = ERANGE;
200 }
201 if (exc.err != 0)
202 errno = exc.err;
203 return exc.retval;
108 errno = ERANGE;
109 return 0.0;
204110 }
205111 return z;
206112 #endif
5656 return __ieee754_remainder(x,y);
5757 #else
5858 double z;
59 struct exception exc;
6059 z = __ieee754_remainder(x,y);
6160 if(_LIB_VERSION == _IEEE_ || isnan(y)) return z;
6261 if(y==0.0) {
6362 /* remainder(x,0) */
64 exc.type = DOMAIN;
65 exc.name = "remainder";
66 exc.err = 0;
67 exc.arg1 = x;
68 exc.arg2 = y;
69 exc.retval = 0.0/0.0;
70 if (_LIB_VERSION == _POSIX_)
71 errno = EDOM;
72 else if (!matherr(&exc)) {
73 errno = EDOM;
74 }
75 if (exc.err != 0)
76 errno = exc.err;
77 return exc.retval;
63 errno = EDOM;
64 return 0.0/0.0;
7865 } else
7966 return z;
8067 #endif
4040 return __ieee754_scalb(x,fn);
4141 #else
4242 double z;
43 #ifndef HUGE_VAL
44 #define HUGE_VAL inf
45 double inf = 0.0;
46
47 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
48 #endif
49 struct exception exc;
5043 z = __ieee754_scalb(x,fn);
5144 if(_LIB_VERSION == _IEEE_) return z;
5245 if(!(finite(z)||isnan(z))&&finite(x)) {
53 /* scalb overflow; SVID also returns +-HUGE_VAL */
54 exc.type = OVERFLOW;
55 exc.name = "scalb";
56 exc.err = 0;
57 exc.arg1 = x;
58 exc.arg2 = fn;
59 exc.retval = x > 0.0 ? HUGE_VAL : -HUGE_VAL;
60 if (_LIB_VERSION == _POSIX_)
61 errno = ERANGE;
62 else if (!matherr(&exc)) {
63 errno = ERANGE;
64 }
65 if (exc.err != 0)
66 errno = exc.err;
67 return exc.retval;
46 /* scalb overflow */
47 errno = ERANGE;
48 return (x > 0.0 ? HUGE_VAL : -HUGE_VAL);
6849 }
6950 if(z==0.0&&z!=x) {
7051 /* scalb underflow */
71 exc.type = UNDERFLOW;
72 exc.name = "scalb";
73 exc.err = 0;
74 exc.arg1 = x;
75 exc.arg2 = fn;
76 exc.retval = copysign(0.0,x);
77 if (_LIB_VERSION == _POSIX_)
78 errno = ERANGE;
79 else if (!matherr(&exc)) {
80 errno = ERANGE;
81 }
82 if (exc.err != 0)
83 errno = exc.err;
84 return exc.retval;
52 errno = ERANGE;
53 return copysign(0.0,x);
8554 }
8655 #ifndef _SCALB_INT
8756 if(!finite(fn)) errno = ERANGE;
4545 appropriate sign, and sets the global value <<errno>> to
4646 <<ERANGE>>.
4747
48 You can modify error handling for these functions with <<matherr>>.
49
5048 PORTABILITY
5149 <<sinh>> is ANSI C.
5250 <<sinhf>> is an extension.
7674 return __ieee754_sinh(x);
7775 #else
7876 double z;
79 struct exception exc;
8077 z = __ieee754_sinh(x);
8178 if(_LIB_VERSION == _IEEE_) return z;
8279 if(!finite(z)&&finite(x)) {
8380 /* sinh(finite) overflow */
84 #ifndef HUGE_VAL
85 #define HUGE_VAL inf
86 double inf = 0.0;
87
88 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
89 #endif
90 exc.type = OVERFLOW;
91 exc.name = "sinh";
92 exc.err = 0;
93 exc.arg1 = exc.arg2 = x;
94 if (_LIB_VERSION == _SVID_)
95 exc.retval = ( (x>0.0) ? HUGE : -HUGE);
96 else
97 exc.retval = ( (x>0.0) ? HUGE_VAL : -HUGE_VAL);
98 if (_LIB_VERSION == _POSIX_)
99 errno = ERANGE;
100 else if (!matherr(&exc)) {
101 errno = ERANGE;
102 }
103 if (exc.err != 0)
104 errno = exc.err;
105 return exc.retval;
81 errno = ERANGE;
82 return ((x>0.0) ? HUGE_VAL : -HUGE_VAL);
10683 } else
10784 return z;
10885 #endif
2626
2727 DESCRIPTION
2828 <<sqrt>> computes the positive square root of the argument.
29 You can modify error handling for this function with
30 <<matherr>>.
3129
3230 RETURNS
3331 On success, the square root is returned. If <[x]> is real and
5856 #ifdef _IEEE_LIBM
5957 return __ieee754_sqrt(x);
6058 #else
61 struct exception exc;
6259 double z;
6360 z = __ieee754_sqrt(x);
6461 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
6562 if(x<0.0) {
66 exc.type = DOMAIN;
67 exc.name = "sqrt";
68 exc.err = 0;
69 exc.arg1 = exc.arg2 = x;
70 if (_LIB_VERSION == _SVID_)
71 exc.retval = 0.0;
72 else
73 exc.retval = 0.0/0.0;
74 if (_LIB_VERSION == _POSIX_)
75 errno = EDOM;
76 else if (!matherr(&exc)) {
77 errno = EDOM;
78 }
79 if (exc.err != 0)
80 errno = exc.err;
81 return exc.retval;
63 errno = EDOM;
64 return 0.0/0.0;
8265 } else
8366 return z;
8467 #endif
2525 return __ieee754_acosf(x);
2626 #else
2727 float z;
28 struct exception exc;
2928 z = __ieee754_acosf(x);
3029 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
31 if(fabsf(x)>(float)1.0) {
30 if(fabsf(x)>1.0f) {
3231 /* acosf(|x|>1) */
33 exc.type = DOMAIN;
34 exc.name = "acosf";
35 exc.err = 0;
36 exc.arg1 = exc.arg2 = (double)x;
37 exc.retval = nan("");
38 if (_LIB_VERSION == _POSIX_)
39 errno = EDOM;
40 else if (!matherr(&exc)) {
41 errno = EDOM;
42 }
43 if (exc.err != 0)
44 errno = exc.err;
45 return (float)exc.retval;
32 errno = EDOM;
33 return nanf("");
4634 } else
4735 return z;
4836 #endif
3131 return __ieee754_acoshf(x);
3232 #else
3333 float z;
34 struct exception exc;
3534 z = __ieee754_acoshf(x);
3635 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
37 if(x<(float)1.0) {
38 /* acoshf(x<1) */
39 exc.type = DOMAIN;
40 exc.name = "acoshf";
41 exc.err = 0;
42 exc.arg1 = exc.arg2 = (double)x;
43 exc.retval = 0.0/0.0;
44 if (_LIB_VERSION == _POSIX_)
45 errno = EDOM;
46 else if (!matherr(&exc)) {
47 errno = EDOM;
48 }
49 if (exc.err != 0)
50 errno = exc.err;
51 return (float)exc.retval;
36 if(x<1.0f) {
37 /* acoshf(x<1) */
38 errno = EDOM;
39 return 0.0f/0.0f;
5240 } else
5341 return z;
5442 #endif
3232 return __ieee754_asinf(x);
3333 #else
3434 float z;
35 struct exception exc;
3635 z = __ieee754_asinf(x);
3736 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
38 if(fabsf(x)>(float)1.0) {
37 if(fabsf(x)>1.0f) {
3938 /* asinf(|x|>1) */
40 exc.type = DOMAIN;
41 exc.name = "asinf";
42 exc.err = 0;
43 exc.arg1 = exc.arg2 = (double)x;
44 exc.retval = nan("");
45 if(_LIB_VERSION == _POSIX_)
46 errno = EDOM;
47 else if (!matherr(&exc)) {
48 errno = EDOM;
49 }
50 if (exc.err != 0)
51 errno = exc.err;
52 return (float)exc.retval;
39 errno = EDOM;
40 return nanf("");
5341 } else
5442 return z;
5543 #endif
2929 return __ieee754_atanhf(x);
3030 #else
3131 float z,y;
32 struct exception exc;
3332 z = __ieee754_atanhf(x);
3433 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
3534 y = fabsf(x);
36 if(y>=(float)1.0) {
37 if(y>(float)1.0) {
38 /* atanhf(|x|>1) */
39 exc.type = DOMAIN;
40 exc.name = "atanhf";
41 exc.err = 0;
42 exc.arg1 = exc.arg2 = (double)x;
43 exc.retval = 0.0/0.0;
44 if (_LIB_VERSION == _POSIX_)
45 errno = EDOM;
46 else if (!matherr(&exc)) {
47 errno = EDOM;
48 }
35 if(y>=1.0f) {
36 if(y>1.0f) {
37 /* atanhf(|x|>1) */
38 errno = EDOM;
39 return 0.0f/0.0f;
4940 } else {
50 /* atanhf(|x|=1) */
51 exc.type = SING;
52 exc.name = "atanhf";
53 exc.err = 0;
54 exc.arg1 = exc.arg2 = (double)x;
55 exc.retval = x/0.0; /* sign(x)*inf */
56 if (_LIB_VERSION == _POSIX_)
57 errno = EDOM;
58 else if (!matherr(&exc)) {
59 errno = EDOM;
60 }
61 }
62 if (exc.err != 0)
63 errno = exc.err;
64 return (float)exc.retval;
41 /* atanhf(|x|=1) */
42 errno = EDOM;
43 return x/0.0f; /* sign(x)*inf */
44 }
6545 } else
6646 return z;
6747 #endif
3030 return __ieee754_coshf(x);
3131 #else
3232 float z;
33 struct exception exc;
3433 z = __ieee754_coshf(x);
3534 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
36 if(fabsf(x)>(float)8.9415985107e+01) {
35 if(fabsf(x)>8.9415985107e+01f) {
3736 /* coshf(finite) overflow */
38 #ifndef HUGE_VAL
39 #define HUGE_VAL inf
40 double inf = 0.0;
41
42 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
43 #endif
44 exc.type = OVERFLOW;
45 exc.name = "coshf";
46 exc.err = 0;
47 exc.arg1 = exc.arg2 = (double)x;
48 if (_LIB_VERSION == _SVID_)
49 exc.retval = HUGE;
50 else
51 exc.retval = HUGE_VAL;
52 if (_LIB_VERSION == _POSIX_)
53 errno = ERANGE;
54 else if (!matherr(&exc)) {
55 errno = ERANGE;
56 }
57 if (exc.err != 0)
58 errno = exc.err;
59 return (float)exc.retval;
37 errno = ERANGE;
38 return HUGE_VALF;
6039 } else
6140 return z;
6241 #endif
3939 return __ieee754_expf(x);
4040 #else
4141 float z;
42 struct exception exc;
4342 z = __ieee754_expf(x);
4443 if(_LIB_VERSION == _IEEE_) return z;
4544 if(finitef(x)) {
4645 if(x>o_threshold) {
4746 /* expf(finite) overflow */
48 #ifndef HUGE_VAL
49 #define HUGE_VAL inf
50 double inf = 0.0;
51
52 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
53 #endif
54 exc.type = OVERFLOW;
55 exc.name = "expf";
56 exc.err = 0;
57 exc.arg1 = exc.arg2 = (double)x;
58 if (_LIB_VERSION == _SVID_)
59 exc.retval = HUGE;
60 else
61 exc.retval = HUGE_VAL;
62 if (_LIB_VERSION == _POSIX_)
63 errno = ERANGE;
64 else if (!matherr(&exc)) {
65 errno = ERANGE;
66 }
67 if (exc.err != 0)
68 errno = exc.err;
69 return exc.retval;
47 errno = ERANGE;
48 return HUGE_VALF;
7049 } else if(x<u_threshold) {
7150 /* expf(finite) underflow */
72 exc.type = UNDERFLOW;
73 exc.name = "expf";
74 exc.err = 0;
75 exc.arg1 = exc.arg2 = (double)x;
76 exc.retval = 0.0;
77 if (_LIB_VERSION == _POSIX_)
78 errno = ERANGE;
79 else if (!matherr(&exc)) {
80 errno = ERANGE;
81 }
82 if (exc.err != 0)
83 errno = exc.err;
84 return exc.retval;
51 errno = ERANGE;
52 return 0.0f;
8553 }
8654 }
8755 return z;
3030 return __ieee754_fmodf(x,y);
3131 #else
3232 float z;
33 struct exception exc;
3433 z = __ieee754_fmodf(x,y);
3534 if(_LIB_VERSION == _IEEE_ ||isnan(y)||isnan(x)) return z;
36 if(y==(float)0.0) {
35 if(y==0.0f) {
3736 /* fmodf(x,0) */
38 exc.type = DOMAIN;
39 exc.name = "fmodf";
40 exc.err = 0;
41 exc.arg1 = (double)x;
42 exc.arg2 = (double)y;
43 if (_LIB_VERSION == _SVID_)
44 exc.retval = x;
45 else
46 exc.retval = 0.0/0.0;
47 if (_LIB_VERSION == _POSIX_)
48 errno = EDOM;
49 else if (!matherr(&exc)) {
50 errno = EDOM;
51 }
52 if (exc.err != 0)
53 errno = exc.err;
54 return (float)exc.retval;
37 errno = EDOM;
38 return 0.0f/0.0f;
5539 } else
5640 return z;
5741 #endif
2828 return __ieee754_gammaf_r(x,&(_REENT_SIGNGAM(_REENT)));
2929 #else
3030 float y;
31 struct exception exc;
3231 y = __ieee754_gammaf_r(x,&(_REENT_SIGNGAM(_REENT)));
3332 if(_LIB_VERSION == _IEEE_) return y;
3433 if(!finitef(y)&&finitef(x)) {
35 #ifndef HUGE_VAL
36 #define HUGE_VAL inf
37 double inf = 0.0;
38
39 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
40 #endif
41 if(floorf(x)==x&&x<=(float)0.0) {
34 if(floorf(x)==x&&x<=0.0f) {
4235 /* gammaf(-integer) or gammaf(0) */
43 exc.type = SING;
44 exc.name = "gammaf";
45 exc.err = 0;
46 exc.arg1 = exc.arg2 = (double)x;
47 if (_LIB_VERSION == _SVID_)
48 exc.retval = HUGE;
49 else
50 exc.retval = HUGE_VAL;
51 if (_LIB_VERSION == _POSIX_)
52 errno = EDOM;
53 else if (!matherr(&exc)) {
54 errno = EDOM;
55 }
36 errno = EDOM;
5637 } else {
5738 /* gammaf(finite) overflow */
58 exc.type = OVERFLOW;
59 exc.name = "gammaf";
60 exc.err = 0;
61 exc.arg1 = exc.arg2 = (double)x;
62 if (_LIB_VERSION == _SVID_)
63 exc.retval = HUGE;
64 else
65 exc.retval = HUGE_VAL;
66 if (_LIB_VERSION == _POSIX_)
67 errno = ERANGE;
68 else if (!matherr(&exc)) {
69 errno = ERANGE;
70 }
39 errno = ERANGE;
7140 }
72 if (exc.err != 0)
73 errno = exc.err;
74 return (float)exc.retval;
41 return HUGE_VALF;
7542 } else
7643 return y;
7744 #endif
3030 return __ieee754_hypotf(x,y);
3131 #else
3232 float z;
33 struct exception exc;
3433 z = __ieee754_hypotf(x,y);
3534 if(_LIB_VERSION == _IEEE_) return z;
3635 if((!finitef(z))&&finitef(x)&&finitef(y)) {
3736 /* hypotf(finite,finite) overflow */
38 #ifndef HUGE_VAL
39 #define HUGE_VAL inf
40 double inf = 0.0;
41
42 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
43 #endif
44 exc.type = OVERFLOW;
45 exc.name = "hypotf";
46 exc.err = 0;
47 exc.arg1 = (double)x;
48 exc.arg2 = (double)y;
49 if (_LIB_VERSION == _SVID_)
50 exc.retval = HUGE;
51 else
52 exc.retval = HUGE_VAL;
53 if (_LIB_VERSION == _POSIX_)
54 errno = ERANGE;
55 else if (!matherr(&exc)) {
56 errno = ERANGE;
57 }
58 if (exc.err != 0)
59 errno = exc.err;
60 return (float)exc.retval;
37 errno = ERANGE;
38 return HUGE_VALF;
6139 } else
6240 return z;
6341 #endif
2929 #ifdef _IEEE_LIBM
3030 return __ieee754_j0f(x);
3131 #else
32 struct exception exc;
3332 float z = __ieee754_j0f(x);
3433 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
3534 if(fabsf(x)>(float)X_TLOSS) {
3635 /* j0f(|x|>X_TLOSS) */
37 exc.type = TLOSS;
38 exc.name = "j0f";
39 exc.err = 0;
40 exc.arg1 = exc.arg2 = (double)x;
41 exc.retval = 0.0;
42 if (_LIB_VERSION == _POSIX_)
43 errno = ERANGE;
44 else if (!matherr(&exc)) {
45 errno = ERANGE;
46 }
47 if (exc.err != 0)
48 errno = exc.err;
49 return (float)exc.retval;
36 errno = ERANGE;
37 return 0.0f;
5038 } else
5139 return z;
5240 #endif
6351 return __ieee754_y0f(x);
6452 #else
6553 float z;
66 struct exception exc;
6754 z = __ieee754_y0f(x);
6855 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
6956 if(x <= (float)0.0){
70 #ifndef HUGE_VAL
71 #define HUGE_VAL inf
72 double inf = 0.0;
73
74 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
75 #endif
7657 /* y0f(0) = -inf or y0f(x<0) = NaN */
77 exc.type = DOMAIN; /* should be SING for IEEE y0f(0) */
78 exc.name = "y0f";
79 exc.err = 0;
80 exc.arg1 = exc.arg2 = (double)x;
81 if (_LIB_VERSION == _SVID_)
82 exc.retval = -HUGE;
83 else
84 exc.retval = -HUGE_VAL;
85 if (_LIB_VERSION == _POSIX_)
86 errno = EDOM;
87 else if (!matherr(&exc)) {
88 errno = EDOM;
89 }
90 if (exc.err != 0)
91 errno = exc.err;
92 return (float)exc.retval;
58 errno = EDOM;
59 return -HUGE_VALF;
9360 }
9461 if(x>(float)X_TLOSS) {
9562 /* y0f(x>X_TLOSS) */
96 exc.type = TLOSS;
97 exc.name = "y0f";
98 exc.err = 0;
99 exc.arg1 = exc.arg2 = (double)x;
100 exc.retval = 0.0;
101 if (_LIB_VERSION == _POSIX_)
102 errno = ERANGE;
103 else if (!matherr(&exc)) {
104 errno = ERANGE;
105 }
106 if (exc.err != 0)
107 errno = exc.err;
108 return (float)exc.retval;
63 errno = ERANGE;
64 return 0.0f;
10965 } else
11066 return z;
11167 #endif
3131 return __ieee754_j1f(x);
3232 #else
3333 float z;
34 struct exception exc;
3534 z = __ieee754_j1f(x);
3635 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
3736 if(fabsf(x)>(float)X_TLOSS) {
3837 /* j1f(|x|>X_TLOSS) */
39 exc.type = TLOSS;
40 exc.name = "j1f";
41 exc.err = 0;
42 exc.arg1 = exc.arg2 = (double)x;
43 exc.retval = 0.0;
44 if (_LIB_VERSION == _POSIX_)
45 errno = ERANGE;
46 else if (!matherr(&exc)) {
47 errno = ERANGE;
48 }
49 if (exc.err != 0)
50 errno = exc.err;
51 return exc.retval;
38 errno = ERANGE;
39 return 0.0f;
5240 } else
5341 return z;
5442 #endif
6553 return __ieee754_y1f(x);
6654 #else
6755 float z;
68 struct exception exc;
6956 z = __ieee754_y1f(x);
7057 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
71 if(x <= (float)0.0){
58 if(x <= 0.0f){
7259 /* y1f(0) = -inf or y1f(x<0) = NaN */
73 #ifndef HUGE_VAL
74 #define HUGE_VAL inf
75 double inf = 0.0;
76
77 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
78 #endif
79 exc.type = DOMAIN; /* should be SING for IEEE */
80 exc.name = "y1f";
81 exc.err = 0;
82 exc.arg1 = exc.arg2 = (double)x;
83 if (_LIB_VERSION == _SVID_)
84 exc.retval = -HUGE;
85 else
86 exc.retval = -HUGE_VAL;
87 if (_LIB_VERSION == _POSIX_)
88 errno = EDOM;
89 else if (!matherr(&exc)) {
90 errno = EDOM;
91 }
92 if (exc.err != 0)
93 errno = exc.err;
94 return (float)exc.retval;
60 errno = EDOM;
61 return -HUGE_VALF;
9562 }
9663 if(x>(float)X_TLOSS) {
9764 /* y1f(x>X_TLOSS) */
98 exc.type = TLOSS;
99 exc.name = "y1f";
100 exc.err = 0;
101 exc.arg1 = exc.arg2 = (double)x;
102 exc.retval = 0.0;
103 if (_LIB_VERSION == _POSIX_)
104 errno = ERANGE;
105 else if (!matherr(&exc)) {
106 errno = ERANGE;
107 }
108 if (exc.err != 0)
109 errno = exc.err;
110 return (float)exc.retval;
65 errno = ERANGE;
66 return 0.0f;
11167 } else
11268 return z;
11369 #endif
2727 return __ieee754_jnf(n,x);
2828 #else
2929 float z;
30 struct exception exc;
3130 z = __ieee754_jnf(n,x);
3231 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
3332 if(fabsf(x)>(float)X_TLOSS) {
3433 /* jnf(|x|>X_TLOSS) */
35 exc.type = TLOSS;
36 exc.name = "jnf";
37 exc.err = 0;
38 exc.arg1 = (double)n;
39 exc.arg2 = (double)x;
40 exc.retval = 0.0;
41 if (_LIB_VERSION == _POSIX_)
42 errno = ERANGE;
43 else if (!matherr(&exc)) {
44 errno = ERANGE;
45 }
46 if (exc.err != 0)
47 errno = exc.err;
48 return exc.retval;
34 errno = ERANGE;
35 return 0.0f;
4936 } else
5037 return z;
5138 #endif
6249 return __ieee754_ynf(n,x);
6350 #else
6451 float z;
65 struct exception exc;
6652 z = __ieee754_ynf(n,x);
6753 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
68 if(x <= (float)0.0){
54 if(x <= 0.0f){
6955 /* ynf(n,0) = -inf or ynf(x<0) = NaN */
70 #ifndef HUGE_VAL
71 #define HUGE_VAL inf
72 double inf = 0.0;
73
74 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
75 #endif
76 exc.type = DOMAIN; /* should be SING for IEEE */
77 exc.name = "ynf";
78 exc.err = 0;
79 exc.arg1 = (double)n;
80 exc.arg2 = (double)x;
81 if (_LIB_VERSION == _SVID_)
82 exc.retval = -HUGE;
83 else
84 exc.retval = -HUGE_VAL;
85 if (_LIB_VERSION == _POSIX_)
86 errno = EDOM;
87 else if (!matherr(&exc)) {
88 errno = EDOM;
89 }
90 if (exc.err != 0)
91 errno = exc.err;
92 return (float)exc.retval;
56 errno = EDOM;
57 return -HUGE_VALF;
9358 }
9459 if(x>(float)X_TLOSS) {
9560 /* ynf(x>X_TLOSS) */
96 exc.type = TLOSS;
97 exc.name = "ynf";
98 exc.err = 0;
99 exc.arg1 = (double)n;
100 exc.arg2 = (double)x;
101 exc.retval = 0.0;
102 if (_LIB_VERSION == _POSIX_)
103 errno = ERANGE;
104 else if (!matherr(&exc)) {
105 errno = ERANGE;
106 }
107 if (exc.err != 0)
108 errno = exc.err;
109 return (float)exc.retval;
61 errno = ERANGE;
62 return 0.0f;
11063 } else
11164 return z;
11265 #endif
2828 return __ieee754_lgammaf_r(x,&(_REENT_SIGNGAM(_REENT)));
2929 #else
3030 float y;
31 struct exception exc;
3231 y = __ieee754_lgammaf_r(x,&(_REENT_SIGNGAM(_REENT)));
3332 if(_LIB_VERSION == _IEEE_) return y;
3433 if(!finitef(y)&&finitef(x)) {
35 #ifndef HUGE_VAL
36 #define HUGE_VAL inf
37 double inf = 0.0;
38
39 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
40 #endif
41 exc.name = "lgammaf";
42 exc.err = 0;
43 exc.arg1 = exc.arg2 = (double)x;
44 if (_LIB_VERSION == _SVID_)
45 exc.retval = HUGE;
46 else
47 exc.retval = HUGE_VAL;
48 if(floorf(x)==x&&x<=(float)0.0) {
34 if(floorf(x)==x&&x<=0.0f) {
4935 /* lgammaf(-integer) */
50 exc.type = SING;
51 if (_LIB_VERSION == _POSIX_)
52 errno = EDOM;
53 else if (!matherr(&exc)) {
54 errno = EDOM;
55 }
56
57 } else {
36 errno = EDOM;
37 } else {
5838 /* lgammaf(finite) overflow */
59 exc.type = OVERFLOW;
60 if (_LIB_VERSION == _POSIX_)
61 errno = ERANGE;
62 else if (!matherr(&exc)) {
63 errno = ERANGE;
64 }
65 }
66 if (exc.err != 0)
67 errno = exc.err;
68 return (float)exc.retval;
39 errno = ERANGE;
40 }
41 return HUGE_VALF;
6942 } else
7043 return y;
7144 #endif
3131 return __ieee754_logf(x);
3232 #else
3333 float z;
34 struct exception exc;
3534 z = __ieee754_logf(x);
36 if(_LIB_VERSION == _IEEE_ || isnan(x) || x > (float)0.0) return z;
37 #ifndef HUGE_VAL
38 #define HUGE_VAL inf
39 double inf = 0.0;
40
41 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
42 #endif
43 exc.name = "logf";
44 exc.err = 0;
45 exc.arg1 = exc.arg2 = (double)x;
46 if (_LIB_VERSION == _SVID_)
47 exc.retval = -HUGE;
48 else
49 exc.retval = -HUGE_VAL;
50 if(x==(float)0.0) {
35 if(_LIB_VERSION == _IEEE_ || isnan(x) || x > 0.0f) return z;
36 if(x==0.0f) {
5137 /* logf(0) */
52 exc.type = SING;
53 if (_LIB_VERSION == _POSIX_)
54 errno = ERANGE;
55 else if (!matherr(&exc)) {
56 errno = ERANGE;
57 }
38 errno = ERANGE;
39 return -HUGE_VALF;
5840 } else {
5941 /* logf(x<0) */
60 exc.type = DOMAIN;
61 if (_LIB_VERSION == _POSIX_)
62 errno = EDOM;
63 else if (!matherr(&exc)) {
64 errno = EDOM;
65 }
66 exc.retval = nan("");
42 errno = EDOM;
43 return nanf("");
6744 }
68 if (exc.err != 0)
69 errno = exc.err;
70 return (float)exc.retval;
7145 #endif
7246 }
7347
3030 return __ieee754_log10f(x);
3131 #else
3232 float z;
33 struct exception exc;
3433 z = __ieee754_log10f(x);
3534 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
36 if(x<=(float)0.0) {
37 #ifndef HUGE_VAL
38 #define HUGE_VAL inf
39 double inf = 0.0;
40
41 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
42 #endif
43 exc.name = "log10f";
44 exc.err = 0;
45 exc.arg1 = exc.arg2 = (double)x;
46 if (_LIB_VERSION == _SVID_)
47 exc.retval = -HUGE;
48 else
49 exc.retval = -HUGE_VAL;
50 if(x==(float)0.0) {
51 /* log10f(0) */
52 exc.type = SING;
53 if (_LIB_VERSION == _POSIX_)
54 errno = ERANGE;
55 else if (!matherr(&exc)) {
56 errno = ERANGE;
57 }
35 if(x<=0.0f) {
36 if(x==0.0f) {
37 /* log10f(0) */
38 errno = ERANGE;
39 return -HUGE_VALF;
5840 } else {
59 /* log10f(x<0) */
60 exc.type = DOMAIN;
61 if (_LIB_VERSION == _POSIX_)
62 errno = EDOM;
63 else if (!matherr(&exc)) {
64 errno = EDOM;
65 }
66 exc.retval = nan("");
41 /* log10f(x<0) */
42 errno = EDOM;
43 return nanf("");
6744 }
68 if (exc.err != 0)
69 errno = exc.err;
70 return (float)exc.retval;
7145 } else
7246 return z;
7347 #endif
3131 return __ieee754_powf(x,y);
3232 #else
3333 float z;
34 struct exception exc;
3534 z=__ieee754_powf(x,y);
3635 if(_LIB_VERSION == _IEEE_|| isnan(y)) return z;
3736 if(isnan(x)) {
38 if(y==(float)0.0) {
37 if(y==0.0f) {
3938 /* powf(NaN,0.0) */
40 /* error only if _LIB_VERSION == _SVID_ & _XOPEN_ */
41 exc.type = DOMAIN;
42 exc.name = "powf";
43 exc.err = 0;
44 exc.arg1 = (double)x;
45 exc.arg2 = (double)y;
46 exc.retval = 1.0;
47 if (_LIB_VERSION == _IEEE_ ||
48 _LIB_VERSION == _POSIX_) exc.retval = 1.0;
49 else if (!matherr(&exc)) {
50 errno = EDOM;
51 }
52 if (exc.err != 0)
53 errno = exc.err;
54 return (float)exc.retval;
39 /* Not an error. */
40 return 1.0f;
5541 } else
5642 return z;
5743 }
58 if(x==(float)0.0){
59 if(y==(float)0.0) {
44 if(x==0.0f){
45 if(y==0.0f) {
6046 /* powf(0.0,0.0) */
61 /* error only if _LIB_VERSION == _SVID_ */
62 exc.type = DOMAIN;
63 exc.name = "powf";
64 exc.err = 0;
65 exc.arg1 = (double)x;
66 exc.arg2 = (double)y;
67 exc.retval = 0.0;
68 if (_LIB_VERSION != _SVID_) exc.retval = 1.0;
69 else if (!matherr(&exc)) {
70 errno = EDOM;
71 }
72 if (exc.err != 0)
73 errno = exc.err;
74 return (float)exc.retval;
47 /* Not an error. */
48 return 1.0f;
7549 }
76 if(finitef(y)&&y<(float)0.0) {
50 if(finitef(y)&&y<0.0f) {
7751 /* 0**neg */
78 exc.type = DOMAIN;
79 exc.name = "powf";
80 exc.err = 0;
81 exc.arg1 = (double)x;
82 exc.arg2 = (double)y;
83 if (_LIB_VERSION == _SVID_)
84 exc.retval = 0.0;
85 else
86 exc.retval = -HUGE_VAL;
87 if (_LIB_VERSION == _POSIX_)
88 errno = EDOM;
89 else if (!matherr(&exc)) {
90 errno = EDOM;
91 }
92 if (exc.err != 0)
93 errno = exc.err;
94 return (float)exc.retval;
95 }
52 errno = EDOM;
53 return -HUGE_VALF;
54 }
9655 return z;
9756 }
9857 if(!finitef(z)) {
9958 if(finitef(x)&&finitef(y)) {
100 if(isnan(z)) {
59 if(isnan(z)) {
10160 /* neg**non-integral */
102 exc.type = DOMAIN;
103 exc.name = "powf";
104 exc.err = 0;
105 exc.arg1 = (double)x;
106 exc.arg2 = (double)y;
107 if (_LIB_VERSION == _SVID_)
108 exc.retval = 0.0;
109 else
110 /* Use a float divide, to avoid a soft-float double
111 divide call on single-float only targets. */
112 exc.retval = (0.0f/0.0f); /* X/Open allow NaN */
113 if (_LIB_VERSION == _POSIX_)
114 errno = EDOM;
115 else if (!matherr(&exc)) {
116 errno = EDOM;
117 }
118 if (exc.err != 0)
119 errno = exc.err;
120 return (float)exc.retval;
121 } else {
61 errno = EDOM;
62 /* Use a float divide, to avoid a soft-float double
63 divide call on single-float only targets. */
64 return 0.0f/0.0f;
65 } else {
12266 /* powf(x,y) overflow */
123 exc.type = OVERFLOW;
124 exc.name = "powf";
125 exc.err = 0;
126 exc.arg1 = (double)x;
127 exc.arg2 = (double)y;
128 if (_LIB_VERSION == _SVID_) {
129 exc.retval = HUGE;
130 y *= 0.5;
131 if(x<0.0f&&rintf(y)!=y) exc.retval = -HUGE;
132 } else {
133 exc.retval = HUGE_VAL;
134 y *= 0.5;
135 if(x<0.0f&&rintf(y)!=y) exc.retval = -HUGE_VAL;
136 }
137 if (_LIB_VERSION == _POSIX_)
138 errno = ERANGE;
139 else if (!matherr(&exc)) {
140 errno = ERANGE;
141 }
142 if (exc.err != 0)
143 errno = exc.err;
144 return (float)exc.retval;
145 }
67 errno = ERANGE;
68 if(x<0.0f&&rintf(y)!=y)
69 return -HUGE_VALF;
70 return HUGE_VALF;
71 }
14672 }
14773 }
148 if(z==(float)0.0&&finitef(x)&&finitef(y)) {
74 if(z==0.0f&&finitef(x)&&finitef(y)) {
14975 /* powf(x,y) underflow */
150 exc.type = UNDERFLOW;
151 exc.name = "powf";
152 exc.err = 0;
153 exc.arg1 = (double)x;
154 exc.arg2 = (double)y;
155 exc.retval = 0.0;
156 if (_LIB_VERSION == _POSIX_)
157 errno = ERANGE;
158 else if (!matherr(&exc)) {
159 errno = ERANGE;
160 }
161 if (exc.err != 0)
162 errno = exc.err;
163 return (float)exc.retval;
76 errno = ERANGE;
77 return 0.0f;
16478 }
16579 return z;
16680 #endif
3030 return __ieee754_remainderf(x,y);
3131 #else
3232 float z;
33 struct exception exc;
3433 z = __ieee754_remainderf(x,y);
3534 if(_LIB_VERSION == _IEEE_ || isnan(y)) return z;
36 if(y==(float)0.0) {
37 /* remainderf(x,0) */
38 exc.type = DOMAIN;
39 exc.name = "remainderf";
40 exc.err = 0;
41 exc.arg1 = (double)x;
42 exc.arg2 = (double)y;
43 exc.retval = 0.0/0.0;
44 if (_LIB_VERSION == _POSIX_)
45 errno = EDOM;
46 else if (!matherr(&exc)) {
47 errno = EDOM;
48 }
49 if (exc.err != 0)
50 errno = exc.err;
51 return (float)exc.retval;
35 if(y==0.0f) {
36 /* remainderf(x,0) */
37 errno = EDOM;
38 return 0.0f/0.0f;
5239 } else
5340 return z;
5441 #endif
4040 return __ieee754_scalbf(x,fn);
4141 #else
4242 float z;
43 #ifndef HUGE_VAL
44 #define HUGE_VAL inf
45 double inf = 0.0;
46
47 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
48 #endif
49 struct exception exc;
5043 z = __ieee754_scalbf(x,fn);
5144 if(_LIB_VERSION == _IEEE_) return z;
5245 if(!(finitef(z)||isnan(z))&&finitef(x)) {
53 /* scalbf overflow; SVID also returns +-HUGE_VAL */
54 exc.type = OVERFLOW;
55 exc.name = "scalbf";
56 exc.err = 0;
57 exc.arg1 = (double)x;
58 exc.arg2 = (double)fn;
59 exc.retval = x > 0.0 ? HUGE_VAL : -HUGE_VAL;
60 if (_LIB_VERSION == _POSIX_)
61 errno = ERANGE;
62 else if (!matherr(&exc)) {
63 errno = ERANGE;
64 }
65 if (exc.err != 0)
66 errno = exc.err;
67 return exc.retval;
46 /* scalbf overflow; */
47 errno = ERANGE;
48 return (x > 0.0 ? HUGE_VALF : -HUGE_VALF);
6849 }
69 if(z==(float)0.0&&z!=x) {
50 if(z==0.0f&&z!=x) {
7051 /* scalbf underflow */
71 exc.type = UNDERFLOW;
72 exc.name = "scalbf";
73 exc.err = 0;
74 exc.arg1 = (double)x;
75 exc.arg2 = (double)fn;
76 exc.retval = copysign(0.0,x);
77 if (_LIB_VERSION == _POSIX_)
78 errno = ERANGE;
79 else if (!matherr(&exc)) {
80 errno = ERANGE;
81 }
82 if (exc.err != 0)
83 errno = exc.err;
84 return exc.retval;
52 errno = ERANGE;
53 return copysign(0.0,x);
8554 }
8655 #ifndef _SCALB_INT
8756 if(!finitef(fn)) errno = ERANGE;
3030 return __ieee754_sinhf(x);
3131 #else
3232 float z;
33 struct exception exc;
3433 z = __ieee754_sinhf(x);
3534 if(_LIB_VERSION == _IEEE_) return z;
3635 if(!finitef(z)&&finitef(x)) {
3736 /* sinhf(finite) overflow */
38 #ifndef HUGE_VAL
39 #define HUGE_VAL inf
40 double inf = 0.0;
41
42 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
43 #endif
44 exc.type = OVERFLOW;
45 exc.name = "sinhf";
46 exc.err = 0;
47 exc.arg1 = exc.arg2 = (double)x;
48 if (_LIB_VERSION == _SVID_)
49 exc.retval = ( (x>0.0) ? HUGE : -HUGE);
50 else
51 exc.retval = ( (x>0.0) ? HUGE_VAL : -HUGE_VAL);
52 if (_LIB_VERSION == _POSIX_)
53 errno = ERANGE;
54 else if (!matherr(&exc)) {
55 errno = ERANGE;
56 }
57 if (exc.err != 0)
58 errno = exc.err;
59 return (float)exc.retval;
37 errno = ERANGE;
38 return ( (x>0.0f) ? HUGE_VALF : -HUGE_VALF);
6039 } else
6140 return z;
6241 #endif
3030 return __ieee754_sqrtf(x);
3131 #else
3232 float z;
33 struct exception exc;
3433 z = __ieee754_sqrtf(x);
3534 if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
36 if(x<(float)0.0) {
37 /* sqrtf(negative) */
38 exc.type = DOMAIN;
39 exc.name = "sqrtf";
40 exc.err = 0;
41 exc.arg1 = exc.arg2 = (double)x;
42 if (_LIB_VERSION == _SVID_)
43 exc.retval = 0.0;
44 else
45 exc.retval = 0.0/0.0;
46 if (_LIB_VERSION == _POSIX_)
47 errno = EDOM;
48 else if (!matherr(&exc)) {
49 errno = EDOM;
50 }
51 if (exc.err != 0)
52 errno = exc.err;
53 return (float)exc.retval;
35 if(x<0.0f) {
36 /* sqrtf(negative) */
37 errno = EDOM;
38 return 0.0f/0.0f;
5439 } else
5540 return z;
5641 #endif
3030 return __ieee754_gamma_r(x,signgamp);
3131 #else
3232 double y;
33 struct exception exc;
3433 y = __ieee754_gamma_r(x,signgamp);
3534 if(_LIB_VERSION == _IEEE_) return y;
3635 if(!finite(y)&&finite(x)) {
37 #ifndef HUGE_VAL
38 #define HUGE_VAL inf
39 double inf = 0.0;
40
41 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
42 #endif
43 exc.name = "gamma";
44 exc.err = 0;
45 exc.arg1 = exc.arg2 = (double)x;
46 if (_LIB_VERSION == _SVID_)
47 exc.retval = HUGE;
48 else
49 exc.retval = HUGE_VAL;
50 if(floor(x)==x&&x<=0.0) {
51 /* gamma(-integer) or gamma(0) */
52 exc.type = SING;
53 if (_LIB_VERSION == _POSIX_)
54 errno = EDOM;
55 else if (!matherr(&exc)) {
56 errno = EDOM;
57 }
58 } else {
59 /* gamma(finite) overflow */
60 exc.type = OVERFLOW;
61 if (_LIB_VERSION == _POSIX_)
62 errno = ERANGE;
63 else if (!matherr(&exc)) {
64 errno = ERANGE;
65 }
66 }
67 if (exc.err != 0)
68 errno = exc.err;
69 return exc.retval;
36 if(floor(x)==x&&x<=0.0)
37 /* gamma(-integer) or gamma(0) */
38 errno = EDOM;
39 else
40 /* gamma(finite) overflow */
41 errno = ERANGE;
42 return HUGE_VALF;
7043 } else
7144 return y;
7245 #endif
3030 return __ieee754_lgamma_r(x,signgamp);
3131 #else
3232 double y;
33 struct exception exc;
3433 y = __ieee754_lgamma_r(x,signgamp);
3534 if(_LIB_VERSION == _IEEE_) return y;
3635 if(!finite(y)&&finite(x)) {
37 #ifndef HUGE_VAL
38 #define HUGE_VAL inf
39 double inf = 0.0;
40
41 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
42 #endif
43 exc.name = "lgamma";
44 exc.err = 0;
45 exc.arg1 = exc.arg2 = (double)x;
46 if (_LIB_VERSION == _SVID_)
47 exc.retval = HUGE;
48 else
49 exc.retval = HUGE_VAL;
50 if(floor(x)==x&&x<=0.0) {
51 /* lgamma(-integer) */
52 exc.type = SING;
53 if (_LIB_VERSION == _POSIX_)
54 errno = EDOM;
55 else if (!matherr(&exc)) {
56 errno = EDOM;
57 }
58
59 } else {
60 /* lgamma(finite) overflow */
61 exc.type = OVERFLOW;
62 if (_LIB_VERSION == _POSIX_)
63 errno = ERANGE;
64 else if (!matherr(&exc)) {
65 errno = ERANGE;
66 }
67 }
68 if (exc.err != 0)
69 errno = exc.err;
70 return exc.retval;
36 if(floor(x)==x&&x<=0.0)
37 /* lgamma(-integer) */
38 errno = EDOM;
39 else
40 /* lgamma(finite) overflow */
41 errno = ERANGE;
42 return HUGE_VAL;
7143 } else
7244 return y;
7345 #endif
3030 return __ieee754_gammaf_r(x,signgamp);
3131 #else
3232 float y;
33 struct exception exc;
3433 y = __ieee754_gammaf_r(x,signgamp);
3534 if(_LIB_VERSION == _IEEE_) return y;
3635 if(!finitef(y)&&finitef(x)) {
37 #ifndef HUGE_VAL
38 #define HUGE_VAL inf
39 double inf = 0.0;
40
41 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
42 #endif
43 exc.name = "gammaf";
44 exc.err = 0;
45 exc.arg1 = exc.arg2 = (double)x;
46 if (_LIB_VERSION == _SVID_)
47 exc.retval = HUGE;
48 else
49 exc.retval = HUGE_VAL;
50 if(floorf(x)==x&&x<=(float)0.0) {
36 if(floorf(x)==x&&x<=0.0f) {
5137 /* gammaf(-integer) or gamma(0) */
52 exc.type = SING;
53 if (_LIB_VERSION == _POSIX_)
54 errno = EDOM;
55 else if (!matherr(&exc)) {
56 errno = EDOM;
57 }
58 } else {
38 errno = EDOM;
39 } else {
5940 /* gammaf(finite) overflow */
60 exc.type = OVERFLOW;
61 if (_LIB_VERSION == _POSIX_)
62 errno = ERANGE;
63 else if (!matherr(&exc)) {
64 errno = ERANGE;
65 }
66 }
67 if (exc.err != 0)
68 errno = exc.err;
69 return (float)exc.retval;
41 errno = ERANGE;
42 }
43 return HUGE_VALF;
7044 } else
7145 return y;
7246 #endif
3030 return __ieee754_lgammaf_r(x,signgamp);
3131 #else
3232 float y;
33 struct exception exc;
3433 y = __ieee754_lgammaf_r(x,signgamp);
3534 if(_LIB_VERSION == _IEEE_) return y;
3635 if(!finitef(y)&&finitef(x)) {
37 #ifndef HUGE_VAL
38 #define HUGE_VAL inf
39 double inf = 0.0;
40
41 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
42 #endif
43 exc.name = "lgammaf";
44 exc.err = 0;
45 exc.arg1 = exc.arg2 = (double)x;
46 if (_LIB_VERSION == _SVID_)
47 exc.retval = HUGE;
48 else
49 exc.retval = HUGE_VAL;
50 if(floorf(x)==x&&x<=(float)0.0) {
36 if(floorf(x)==x&&x<=0.0f) {
5137 /* lgammaf(-integer) or lgamma(0) */
52 exc.type = SING;
53 if (_LIB_VERSION == _POSIX_)
54 errno = EDOM;
55 else if (!matherr(&exc)) {
56 errno = EDOM;
57 }
58
59 } else {
38 errno = EDOM;
39 } else {
6040 /* lgammaf(finite) overflow */
61 exc.type = OVERFLOW;
62 if (_LIB_VERSION == _POSIX_)
63 errno = ERANGE;
64 else if (!matherr(&exc)) {
65 errno = ERANGE;
66 }
67 }
68 if (exc.err != 0)
69 errno = exc.err;
70 return (float)exc.retval;
41 errno = ERANGE;
42 }
43 return HUGE_VALF;
7144 } else
7245 return y;
7346 #endif
3232 <<acosh>> and <<acoshf>> return the calculated value. If <[x]>
3333 less than 1, the return value is NaN and <<errno>> is set to <<EDOM>>.
3434
35 You can change the error-handling behavior with the non-ANSI
36 <<matherr>> function.
37
3835 PORTABILITY
3936 Neither <<acosh>> nor <<acoshf>> are ANSI C. They are not recommended
4037 for portable programs.
4138
4239
4340 QUICKREF
44 ansi svid posix rentrant
45 acos n,n,n,m
46 acosf n,n,n,m
41 ansi posix rentrant
42 acos n,n,m
43 acosf n,n,m
4744
4845 MATHREF
4946 acosh, NAN, arg,DOMAIN,EDOM
5353 @end tex
5454 is 1, the global <<errno>> is set to <<EDOM>>; and the result is
5555 infinity with the same sign as <<x>>. A <<SING error>> is reported.
56
57 You can modify the error handling for these routines using
58 <<matherr>>.
5956
6057 PORTABILITY
6158 Neither <<atanh>> nor <<atanhf>> are ANSI C.
3939 Normally, the distance value is returned. On overflow,
4040 <<hypot>> returns <<HUGE_VAL>> and sets <<errno>> to
4141 <<ERANGE>>.
42
43 You can change the error treatment with <<matherr>>.
4442
4543 PORTABILITY
4644 <<hypot>> and <<hypotf>> are not ANSI C. */
9595 When <[x]> is a nonpositive integer, <<gamma>> returns <<HUGE_VAL>>
9696 and <<errno>> is set to <<EDOM>>. If the result overflows, <<gamma>>
9797 returns <<HUGE_VAL>> and <<errno>> is set to <<ERANGE>>.
98
99 You can modify this error treatment using <<matherr>>.
10098
10199 PORTABILITY
102100 Neither <<gamma>> nor <<gammaf>> is ANSI C. */
3636 (not a number) the global variable <<errno>> is set to <<EDOM>>, and a
3737 <<DOMAIN error>> message is sent as standard error output.
3838
39 You can modify error handling for these functions using <<matherr>>.
40
41
4239 QUICKREF
43 ansi svid posix rentrant
44 acos y,y,y,m
45 acosf n,n,n,m
40 ansi posix rentrant
41 acos y,y,m
42 acosf n,n,m
4643
4744 MATHREF
4845 acos, [-1,1], acos(arg),,,
4040
4141 If both <[x]> and <[y]> are 0.0, <<atan2>> causes a <<DOMAIN>> error.
4242
43 You can modify error handling for these functions using <<matherr>>.
44
4543 PORTABILITY
4644 <<atan2>> is ANSI C. <<atan2f>> is an extension.
4745
2929 The computed value is returned. When the correct value would create
3030 an overflow, <<cosh>> returns the value <<HUGE_VAL>> with the
3131 appropriate sign, and the global value <<errno>> is set to <<ERANGE>>.
32
33 You can modify error handling for these functions using the
34 function <<matherr>>.
3532
3633 PORTABILITY
3734 <<cosh>> is ANSI.
4141 magnitude of <[y]>.
4242
4343 <<fmod(<[x]>,0)>> returns NaN, and sets <<errno>> to <<EDOM>>.
44
45 You can modify error treatment for these functions using <<matherr>>.
4644
4745 PORTABILITY
4846 <<fmod>> is ANSI C. <<fmodf>> is an extension.
3737 Normally, returns the calculated value. When <[x]> is zero, the
3838 returned value is <<-HUGE_VAL>> and <<errno>> is set to <<ERANGE>>.
3939 When <[x]> is negative, the returned value is <<-HUGE_VAL>> and
40 <<errno>> is set to <<EDOM>>. You can control the error behavior via
41 <<matherr>>.
40 <<errno>> is set to <<EDOM>>.
4241
4342 PORTABILITY
4443 <<log>> is ANSI. <<logf>> is an extension.
2929 noninteger, and <[y]> is also not an integer, then <<errno>>
3030 is set to <<EDOM>>. If <[x]> and <[y]> are both 0, then
3131 <<pow>> and <<powf>> return <<1>>.
32
33 You can modify error handling for these functions using <<matherr>>.
3432
3533 PORTABILITY
3634 <<pow>> is ANSI C. <<powf>> is an extension. */
126126 return jn(n,x);
127127 #else
128128 double z;
129 struct exception exc;
130129 z = jn(n,x);
131130 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
132131 if(fabs(x)>X_TLOSS) {
133132 /* jn(|x|>X_TLOSS) */
134 exc.type = TLOSS;
135 exc.name = "jn";
136 exc.err = 0;
137 exc.arg1 = n;
138 exc.arg2 = x;
139 exc.retval = 0.0;
140 if (_LIB_VERSION == _POSIX_)
141 errno = ERANGE;
142 else if (!matherr(&exc)) {
143 errno = ERANGE;
144 }
145 if (exc.err != 0)
146 errno = exc.err;
147 return exc.retval;
133 errno = ERANGE;
134 return 0.0;
148135 } else
149136 return z;
150137 #endif
161148 return yn(n,x);
162149 #else
163150 double z;
164 struct exception exc;
165151 z = yn(n,x);
166152 if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
167153 if(x <= 0.0){
172158
173159 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
174160 #endif
175 exc.type = DOMAIN; /* should be SING for IEEE */
176 exc.name = "yn";
177 exc.err = 0;
178 exc.arg1 = n;
179 exc.arg2 = x;
180 if (_LIB_VERSION == _SVID_)
181 exc.retval = -HUGE;
182 else
183 exc.retval = -HUGE_VAL;
184 if (_LIB_VERSION == _POSIX_)
185 errno = EDOM;
186 else if (!matherr(&exc)) {
187 errno = EDOM;
188 }
189 if (exc.err != 0)
190 errno = exc.err;
191 return exc.retval;
161 errno = EDOM;
162 return -HUGE_VAL;
192163 }
193164 if(x>X_TLOSS) {
194165 /* yn(x>X_TLOSS) */
195 exc.type = TLOSS;
196 exc.name = "yn";
197 exc.err = 0;
198 exc.arg1 = n;
199 exc.arg2 = x;
200 exc.retval = 0.0;
201 if (_LIB_VERSION == _POSIX_)
202 errno = ERANGE;
203 else if (!matherr(&exc)) {
204 errno = ERANGE;
205 }
206 if (exc.err != 0)
207 errno = exc.err;
208 return exc.retval;
166 errno = ERANGE;
167 return 0.0;
209168 } else
210169 return z;
211170 #endif
2727 return jnf(n,x);
2828 #else
2929 float z;
30 struct exception exc;
3130 z = jnf(n,x);
3231 if(_LIB_VERSION == _IEEE_ || isnanf(x) ) return z;
3332 if(fabsf(x)>(float)X_TLOSS) {
3433 /* jnf(|x|>X_TLOSS) */
35 exc.type = TLOSS;
36 exc.name = "jnf";
37 exc.err = 0;
38 exc.arg1 = (double)n;
39 exc.arg2 = (double)x;
40 exc.retval = 0.0;
41 if (_LIB_VERSION == _POSIX_)
42 errno = ERANGE;
43 else if (!matherr(&exc)) {
44 errno = ERANGE;
45 }
46 if (exc.err != 0)
47 errno = exc.err;
48 return exc.retval;
34 errno = ERANGE;
35 return 0.0f;
4936 } else
5037 return z;
5138 #endif
6249 return ynf(n,x);
6350 #else
6451 float z;
65 struct exception exc;
6652 z = ynf(n,x);
6753 if(_LIB_VERSION == _IEEE_ || isnanf(x) ) return z;
68 if(x <= (float)0.0){
54 if(x <= 0.0f){
6955 /* ynf(n,0) = -inf or ynf(x<0) = NaN */
7056 #ifndef HUGE_VAL
7157 #define HUGE_VAL inf
7359
7460 SET_HIGH_WORD(inf,0x7ff00000); /* set inf to infinite */
7561 #endif
76 exc.type = DOMAIN; /* should be SING for IEEE */
77 exc.name = "ynf";
78 exc.err = 0;
79 exc.arg1 = (double)n;
80 exc.arg2 = (double)x;
81 if (_LIB_VERSION == _SVID_)
82 exc.retval = -HUGE;
83 else
84 exc.retval = -HUGE_VAL;
85 if (_LIB_VERSION == _POSIX_)
86 errno = EDOM;
87 else if (!matherr(&exc)) {
88 errno = EDOM;
89 }
90 if (exc.err != 0)
91 errno = exc.err;
92 return (float)exc.retval;
62 errno = EDOM;
63 return (float)-HUGE_VAL;
9364 }
9465 if(x>(float)X_TLOSS) {
9566 /* ynf(x>X_TLOSS) */
96 exc.type = TLOSS;
97 exc.name = "ynf";
98 exc.err = 0;
99 exc.arg1 = (double)n;
100 exc.arg2 = (double)x;
101 exc.retval = 0.0;
102 if (_LIB_VERSION == _POSIX_)
103 errno = ERANGE;
104 else if (!matherr(&exc)) {
105 errno = ERANGE;
106 }
107 if (exc.err != 0)
108 errno = exc.err;
109 return (float)exc.retval;
67 errno = ERANGE;
68 return 0.0f;
11069 } else
11170 return z;
11271 #endif
3131 char *mname;
3232
3333 int verbose;
34
35 /* To test exceptions - we trap them all and return a known value */
36 int
37 matherr (struct exception *e)
38 {
39 if (traperror)
40 {
41 merror = e->type + 12;
42 mname = e->name;
43 e->retval = mretval;
44 errno = merror + 24;
45 return 1;
46 }
47 return 0;
48 }
49
5034
5135 void translate_to (FILE *file,
5236 double r)
8973 #if 0
9074 if (p->qs[0].merror != merror)
9175 {
76 /* Beware, matherr doesn't exist anymore. */
9277 printf("testing %s_vec.c:%d, matherr wrong: %d %d\n",
9378 name, p->line, merror, p->qs[0].merror);
9479 }
3030 /* Optional reentrant struct support. Used mostly on platforms with
3131 very restricted storage. */
3232 #undef _WANT_REENT_SMALL
33
34 /* Verify _REENT_CHECK macros allocate memory successfully. */
35 #undef _REENT_CHECK_VERIFY
3336
3437 /* Multibyte supported */
3538 #undef _MB_CAPABLE